query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
|---|---|---|---|---|---|---|
Set the discourseId, iff IQ item is mapped to a Discourse.
|
public void setDiscourseId(Long discourseId) { this.discourseId = discourseId; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Long getDiscourseId() { return discourseId; }",
"public void setIdCourse(Long idCourse) {\n this.idCourse = idCourse;\n }",
"public void setIdDiscord(String idDiscord) {\n\t\tthis.idDiscord = idDiscord;\n\t}",
"public void setCourseID(int courseID) {\n this.courseID = courseID;\n }",
"public void setIsDiscourseDataset(Boolean isDiscourseDataset) {\n this.isDiscourseDataset = isDiscourseDataset;\n }",
"@Override\n\tpublic String setCourseId() {\n\t\treturn null;\n\t}",
"public final void setDiscordId(final String discordId) {\n this.discordId = discordId;\n }",
"protected void setCourseID(String courseID){\n //adds a key value pair to pref\n edit.putString(AppCSTR.ACCOUNT_COURSE, courseID);\n //records changes\n edit.commit();\n }",
"public static void setIccid(Object iccid) {\n\t\t\n\t}",
"public void setCourseId(String courseId) {\n this.courseId = courseId;\n }",
"public void setID(int iD) {\r\n\t\tthis.iD = iD;\r\n\t}",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }",
"public void setCourseId(long courseId) {\n _courseImage.setCourseId(courseId);\n }",
"public void setCourse(String course);",
"public void setCourseId(String courseId) {\n\t\tthis.courseId = courseId == null ? null : courseId.trim();\n\t}",
"public long getDiscussId() {\n\t\treturn this.id;\r\n\t}",
"public void setdId(Integer dId) {\n this.dId = dId;\n }",
"public void setId(String i) {\n\t\tid = i;\n\t}",
"public void setTestSetDiscrepancyReportId(String testSetDiscrepancyReportId) {\n this.testSetDiscrepancyReportId = testSetDiscrepancyReportId;\n }",
"public void setID(Integer iD) {\n ID = iD;\n }",
"public Long getIdCourse() {\n return idCourse;\n }",
"public void setIdAttribute(String idAttribute) {\n this.idAttribute = idAttribute;\n }",
"public String getCourseId() {\n return courseId;\n }",
"public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }",
"public void setIdcard(String idcard) {\n\t\tthis.idcard = idcard;\n\t}",
"public void setImageId(long imageId) {\n _courseImage.setImageId(imageId);\n }",
"@PUT @Path(\"/{courseId}\")\n \tpublic Response setCourse(\n \t\t\t@Context HttpServletRequest req, \n \t\t\t@Context HttpServletResponse resp,\n \t\t\t@PathParam(\"courseId\") Long courseId) throws IOException {\n \t\tCourse dbCourse = ofy().load().type(Course.class).id(courseId).now();\n \t\t\n \t\t// get provided course object\n \t\tInputStream inputStream = req.getInputStream();\n \t\tCourse providedCourse = new ObjectMapper().readValue(inputStream, Course.class);\n \t\t\n \t\t// ...validate fields?\n \t\ttry {\n \t\t\tassert providedCourse.getId() == dbCourse.getId(); // (dbCourse.id == courseId)\n \t\t} catch(AssertionError ex) {\n \t\t\tthrow new eDABException.NotAuthorizedException(\"Illegal field change\");\n \t\t}\n \t\t\n \t\t// save\n \t\tofy().save().entity(providedCourse).now();\n \t\t\n \t\treturn Response.ok().build();\n \t}",
"public void setID(String iD) {\r\n\t\tID = iD;\r\n\t}",
"public void setId(String id)\n\t{\n\t\tm_sID=id;\t\n\t}",
"DUserDiscourseMapItem get(DUserDiscourseMapId id);",
"public int getCourseId()\n {\n return this.courseId;\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }",
"public void setICID(int value) {\n this.icid = value;\n }",
"public int getID() {\n return courseID;\n }",
"public void changecourse(String replacementcourse, String id1)\n {\n course = replacementcourse;\n courseid = id1;\n }",
"public void setId(String idIn) {\n this.id = idIn;\n }",
"public void setID(String idIn) {this.id = idIn;}",
"final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}",
"void setItemId(String itemId);",
"public void setID(int iD) {\n\t\tID = iD;\n\t}",
"public void setID(int iD) {\n\t\tID = iD;\n\t}",
"DUserDiscourseMapItem find(DUserDiscourseMapId id);",
"public void setId(int studentId) \r\n {\r\n String strId = String.valueOf(studentId);\r\n if (studentId < 0 ) \r\n {\r\n throw new IllegalArgumentException(\"Student ID cannot be less than zero.\");\r\n } \r\n else if(strId == null || strId.trim().isBlank())\r\n {\r\n throw new IllegalArgumentException(\"Student id cannot be blank.\");\r\n }\r\n else \r\n {\r\n this.studentId = studentId;\r\n }\r\n\r\n }",
"public void setIdrequest(String idrequest) {\r\n\t\tthis.idrequest = idrequest;\r\n\t}",
"@Override\n\t\tpublic void setId(final String identifier) {\n\t\t}",
"@Override\n\tpublic String getCourseId() \n\t{\n\t\treturn null;\n\t}",
"public void setCourseImageId(long courseImageId) {\n _courseImage.setCourseImageId(courseImageId);\n }",
"public String getCourseId() {\n\t\treturn courseId;\n\t}",
"public void setID(String iD) {\n\t\tID = iD;\n\t}",
"@DynamoDBAttribute(attributeName = \"discordId\")\n public final String getDiscordId() {\n return discordId;\n }",
"public int getCourseID() {\n return courseID;\n }",
"public void setId(String agendaItemId) {\r\n if (agendaItemId != null && StringUtils.isBlank(agendaItemId)) {\r\n throw new IllegalArgumentException(\"agendaItemId must be null or non-blank\");\r\n }\r\n\t\t\tthis.id = agendaItemId;\r\n\t\t}",
"public void setId(String id) {\r\n\t\tsId = id;\r\n\t}",
"public String getIdCourse() {\n\t\t\treturn idCourse;\n\t\t}",
"public void setMusicCDIdentifier(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), MUSICCDIDENTIFIER, value);\r\n\t}",
"public void setIdAuthority(String theString) {\n\t \r\n }",
"public void setSubjectId(int newSubjectId) {\n if (this.subjectId == newSubjectId)\n return;\n this.subjectId = newSubjectId;\n VideoAPIManager.getCategoriesFor(subjectId, new VideoAPIManager.VideoCategoryLoaderListener() {\n @Override\n public void onSuccess(HashMap<VideoCategoryItem, ArrayList<VideoCategoryItem>> results) {\n mAdapter.setData(results);\n mAdapter.notifyDataSetChanged();\n }\n @Override\n public void onFailure(Error error) {\n if (getActivity() == null)\n return;\n Toast.makeText(getActivity(), error != null ? error.getMessage() : \"Unknown Error Occurred\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public void setId(String anId) {\n _theId = anId;\n }",
"public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }",
"public void setId(String s) {\n\t\tid = s;\n\t}",
"public void setCare_id(java.lang.Integer newCare_id);",
"@Test\n public void setGetID() {\n final CourseType courseType = new CourseType();\n final String ID = \"ID\";\n courseType.setId(ID);\n\n assertSame(ID, courseType.getId());\n }",
"public void setItemid(Integer itemid) {\n this.itemid = itemid;\n }",
"public void setItemid(Integer itemid) {\n this.itemid = itemid;\n }",
"public void assignCourse(Course course) {\n assignedCourse = course;\n }",
"public void setId(String uid){\n this.uid = uid;\n }",
"@Override\r\n public void setItemId(int itemId) {\n this.itemId = itemId;\r\n }",
"public void setIdCard(String idCard) {\n\t\tthis.idCard = idCard;\n\t}",
"public void setCid(Integer cid) {\n this.cid = cid;\n }",
"public void setCid(Integer cid) {\n this.cid = cid;\n }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"public abstract void setTica_id(java.lang.String newTica_id);",
"public void updateSCId(int sCid){\n\t\tthis.sCiD = sCid;\n\t}",
"protected void setId(short id) {\n this.id = id;\n }",
"public void setCoachid(Integer coachid) {\n this.coachid = coachid;\n }",
"public void setId(Identificator id) {\n\t\tthis.getMdht().getIds().clear();\n\t\tif (id != null) {\n\t\t\tthis.getMdht().getIds().add(id.getIi());\n\t\t}\n\t}",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}",
"public void setId (String id)\n {\n _id = id;\n }",
"public void setIdDominioUrl(Integer idDominioUrl) {\n\t\tthis.idDominioUrl = idDominioUrl;\n\t}",
"private DiscourseItem getSrcDiscourse(DiscourseItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscourseDao dao = DiscourseDbDaoFactory.DEFAULT.getDiscourseDao();\r\n DiscourseItem result = dao.findBySourceId((Long)item.getId());\r\n return result;\r\n }",
"public void setCrowdId(Integer crowdId) {\n this.crowdId = crowdId;\n }",
"protected void setID(int i){\r\n\t\tthis.ID = i;\r\n\t}",
"public void setId(int id) throws ItemException\n {\n if (id > 0)\n {\n this.id = id;\n }\n else\n {\n Throwable t = new Throwable(\n \"ERROR setId: the item's id value is not a valid positive integer.\");\n throw new ItemException(\"There was a problem with the item's id value to be set.\", t);\n }\n }",
"public void setAsicIdentifier(au.gov.asic.types.DocumentIdentifierType asicIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n }\n target.set(asicIdentifier);\n }\n }",
"public String getCourseID() {\r\n return COURSE_ID;\r\n }",
"public org.mddarr.rides.event.dto.AvroRide.Builder setRideid(java.lang.String value) {\n validate(fields()[0], value);\n this.rideid = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setStudentID(long studentID);",
"@Override\n public void setId(int pintId) {\n this.intDynaGraphId = pintId;\n }",
"public void setRideid(java.lang.String value) {\n this.rideid = value;\n }",
"public void setId(String eId) {\n\t\tmId = eId;\n\t}",
"@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void setId(int i) {\n\t\tthis.id = i;\n\t}",
"public void setIdOverDay(int rdID, int c) {\n\t\t((BorrowDAL)dal).setIdOverDay(rdID,c);\r\n\t}",
"public void setId(String key, Object value) {\n // remove ID, if empty/0/null\n // if we only skipped it, the existing entry will stay although someone changed it to empty.\n String v = String.valueOf(value);\n if (\"\".equals(v) || \"0\".equals(v) || \"null\".equals(v)) {\n ids.remove(key);\n }\n else {\n ids.put(key, value);\n }\n firePropertyChange(key, null, value);\n\n // fire special events for our well known IDs\n if (Constants.TMDB.equals(key) || Constants.IMDB.equals(key) || Constants.TVDB.equals(key) || Constants.TRAKT.equals(key)) {\n firePropertyChange(key + \"Id\", null, value);\n }\n }",
"public void setcId(Integer cId) {\n this.cId = cId;\n }",
"public void setMusicCDIdentifier( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), MUSICCDIDENTIFIER, value);\r\n\t}"
] |
[
"0.6755385",
"0.66178304",
"0.59795606",
"0.58074635",
"0.5755819",
"0.5681284",
"0.55320835",
"0.5496237",
"0.54852545",
"0.5434697",
"0.5413999",
"0.5401976",
"0.53734666",
"0.5360979",
"0.53433406",
"0.5335244",
"0.53170174",
"0.52832574",
"0.52760327",
"0.52696025",
"0.5260013",
"0.5238708",
"0.5236138",
"0.52163035",
"0.5204676",
"0.52033395",
"0.52024144",
"0.5201244",
"0.52002794",
"0.5198837",
"0.51961744",
"0.51902866",
"0.5182559",
"0.5178009",
"0.5164523",
"0.51536334",
"0.51440525",
"0.5140078",
"0.5130449",
"0.51283824",
"0.5125533",
"0.5125533",
"0.51223415",
"0.512003",
"0.51070756",
"0.5106386",
"0.50988686",
"0.50972223",
"0.5096343",
"0.5092833",
"0.5083108",
"0.507895",
"0.50737274",
"0.50717956",
"0.5070034",
"0.5065808",
"0.5063916",
"0.5060883",
"0.5054315",
"0.50527567",
"0.5052042",
"0.5042739",
"0.50258744",
"0.5021875",
"0.5021875",
"0.50213313",
"0.5009754",
"0.49956805",
"0.49954522",
"0.49934548",
"0.49934548",
"0.49919352",
"0.49855736",
"0.498077",
"0.49799725",
"0.49765587",
"0.49749804",
"0.49746203",
"0.49746203",
"0.49746203",
"0.49737993",
"0.49706185",
"0.49687636",
"0.49665746",
"0.4962354",
"0.49622983",
"0.49551976",
"0.49481663",
"0.494515",
"0.49448547",
"0.49447852",
"0.4940725",
"0.49368718",
"0.4935247",
"0.4933862",
"0.49320665",
"0.49297407",
"0.49291876",
"0.4927931",
"0.49265465"
] |
0.7117883
|
0
|
METHODS FOR SORTING Returns the relative path to the appropriate image.
|
public static String getSortImage(String columnName,
String sortByColumn, Boolean isAscending) {
String imgIcon = "images/trans_spacer.gif";
if (sortByColumn != null && sortByColumn.equals(columnName)) {
imgIcon = isAscending ? "images/grid/up.gif" : "images/grid/down.gif";
}
return imgIcon;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static JwComparator<AcPost> getImagePathComparator()\n {\n return AcPostTools.instance.getImagePathComparator();\n }",
"java.lang.String getImagePath();",
"String getImagePath();",
"String getImagePath();",
"public static String getOrderImagesPath() {\n\t\treturn \"/home/ftpshared/OrderImages\";\n\t}",
"abstract public String getImageResourcesDir();",
"public String getImg(){\n switch(image){\n case 0: // Case 0: Ant looks up/north\n return \"imgs/ant_n.png\";\n case 1: // Case 1: Ant looks right/east\n return \"imgs/ant_e.png\";\n case 2: // Case 2: Ant looks down/south\n return \"imgs/ant_s.png\";\n case 3: // Case 3: Ant looks left/west\n return \"imgs/ant_w.png\";\n default: // Default: This shouldn't happen on a normal run. It returns an empty string and prints an error.\n System.err.println(\"Something went wrong while the ant was trying change direction\");\n return \"\";\n }\n }",
"public void getImagePath(String imagePath);",
"public String getImageResource() {\n \t\t// if (isWindows)\n \t\t// return \"/\" + new File(imageResource).getPath();\n \t\t// else\n \t\treturn imageResource;\n \t}",
"private static ArrayList<String> getImagesInFileSystem() {\n\t\t// get file list in database\n\t\tArrayList<String> fileNameList = new ArrayList<String>();\n\t\t\n\t\tFile folder = new File(IMAGE_DIRECTORY);\n\t File[] listOfFiles = folder.listFiles();\n\t \n\t for (File currFile : listOfFiles) {\n\t if (currFile.isFile() && !currFile.getName().startsWith(\".\")) {\n\t \t fileNameList.add(currFile.getName());\n\t }\n\t }\n\t \n\t return fileNameList;\n\t}",
"public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}",
"private ArrayList<String> getImagesPathList() {\n String MEDIA_IMAGES_PATH = \"CuraContents/images\";\n File fileImages = new File(Environment.getExternalStorageDirectory(), MEDIA_IMAGES_PATH);\n if (fileImages.isDirectory()) {\n File[] listImagesFile = fileImages.listFiles();\n ArrayList<String> imageFilesPathList = new ArrayList<>();\n for (File file1 : listImagesFile) {\n imageFilesPathList.add(file1.getAbsolutePath());\n }\n return imageFilesPathList;\n }\n return null;\n }",
"java.lang.String getImage();",
"private ArrayList<String> getAllShownImagesPath(Activity activity) {\n Uri uri;\n Cursor cursor;\n int column_index_data, column_index_folder_name;\n ArrayList<String> listOfAllImages = new ArrayList<String>();\n String absolutePathOfImage = null;\n uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n\n String[] projection = { MediaStore.MediaColumns.DATA,\n MediaStore.Images.Media.BUCKET_DISPLAY_NAME };\n\n cursor = activity.getContentResolver().query(uri, projection, null,\n null, null);\n\n column_index_data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n column_index_folder_name = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);\n while (cursor.moveToNext()) {\n absolutePathOfImage = cursor.getString(column_index_data);\n\n listOfAllImages.add(absolutePathOfImage);\n }\n return listOfAllImages;\n }",
"String getImage();",
"@Override\n public String getImagePath() {\n return IMAGE_PATH;\n }",
"String getAnnotationFile() {\n File imgFile = photos[fileIndex];\n String parentDir = imgFile.getParent();\n String fileName = imgFile.getName();\n String annotationName = fileName.replace(fileName.substring(fileName.lastIndexOf('.') + 1), \"xml\");\n File annotationDir = new File(parentDir.replace(\"images\", \"annotations\"));\n if (!annotationDir.exists()) {\n annotationDir.mkdirs();//create dir if none\n }\n return annotationDir.getAbsolutePath() + File.separator + annotationName;\n }",
"public abstract String getFotoPath();",
"private List<String> getAllShownImagesPath(Activity context) {\n String[] columns = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.DATE_ADDED};\n\n Cursor cursor = context.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, // Specify the provider\n columns, // The columns we're interested in m\n MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME + \" = \" + \"'Camera'\", // A WHERE-filter query\n null, // The arguments for the filter-query\n MediaStore.Images.Media.DATE_ADDED + \" DESC\" // Order the results, newest first\n );\n //\n\n List<String> result = new ArrayList<String>(cursor.getCount());\n\n if (cursor.moveToFirst()) {\n final int image_path_col = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n do {\n result.add(cursor.getString(image_path_col));\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n\n return result;\n\n }",
"public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}",
"@Override\n\tpublic String getResource() {\n\t\ttry {\n\t\t\treturn (new File(\"./resources/images/mageTowerCard.png\")).getCanonicalPath();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }",
"private BufferedImage[] loadImages(String directory, BufferedImage[] img) throws Exception {\n\t\tFile dir = new File(directory);\n\t\tFile[] files = dir.listFiles();\n\t\tArrays.sort(files, (s, t) -> s.getName().compareTo(t.getName()));\n\t\t\n\t\timg = new BufferedImage[files.length];\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\timg[i] = ImageIO.read(files[i]);\n\t\t}\n\t\treturn img;\n\t}",
"protected DraggableImage getPanelPathImage() {\n\treturn pathImage;\n }",
"private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }",
"public static void loadImages()\n \t{\n \t\tSystem.out.print(\"Loading images... \");\n \t\t\n \t\tallImages = new TreeMap<ImageEnum, ImageIcon>();\n \t\t\n \t\ttry {\n \t\taddImage(ImageEnum.RAISIN, \"images/parts/raisin.png\");\n \t\taddImage(ImageEnum.NUT, \"images/parts/nut.png\");\n \t\taddImage(ImageEnum.PUFF_CHOCOLATE, \"images/parts/puff_chocolate.png\");\n \t\taddImage(ImageEnum.PUFF_CORN, \"images/parts/puff_corn.png\");\n \t\taddImage(ImageEnum.BANANA, \"images/parts/banana.png\");\n \t\taddImage(ImageEnum.CHEERIO, \"images/parts/cheerio.png\");\n \t\taddImage(ImageEnum.CINNATOAST, \"images/parts/cinnatoast.png\");\n\t\taddImage(ImageEnum.CORNFLAKE, \"images/parts/flake_corn.png\");\n \t\taddImage(ImageEnum.FLAKE_BRAN, \"images/parts/flake_bran.png\");\n \t\taddImage(ImageEnum.GOLDGRAHAM, \"images/parts/goldgraham.png\");\n \t\taddImage(ImageEnum.STRAWBERRY, \"images/parts/strawberry.png\");\n \t\t\n \t\taddImage(ImageEnum.PART_ROBOT_HAND, \"images/robots/part_robot_hand.png\");\n \t\taddImage(ImageEnum.KIT_ROBOT_HAND, \"images/robots/kit_robot_hand.png\");\n \t\taddImage(ImageEnum.ROBOT_ARM_1, \"images/robots/robot_arm_1.png\");\n \t\taddImage(ImageEnum.ROBOT_BASE, \"images/robots/robot_base.png\");\n \t\taddImage(ImageEnum.ROBOT_RAIL, \"images/robots/robot_rail.png\");\n \t\t\n \t\taddImage(ImageEnum.KIT, \"images/kit/empty_kit.png\");\n \t\taddImage(ImageEnum.KIT_TABLE, \"images/kit/kit_table.png\");\n \t\taddImage(ImageEnum.KITPORT, \"images/kit/kitport.png\");\n \t\taddImage(ImageEnum.KITPORT_HOOD_IN, \"images/kit/kitport_hood_in.png\");\n \t\taddImage(ImageEnum.KITPORT_HOOD_OUT, \"images/kit/kitport_hood_out.png\");\n \t\taddImage(ImageEnum.PALLET, \"images/kit/pallet.png\");\n \t\t\n \t\taddImage(ImageEnum.FEEDER, \"images/lane/feeder.png\");\n \t\taddImage(ImageEnum.LANE, \"images/lane/lane.png\");\n \t\taddImage(ImageEnum.NEST, \"images/lane/nest.png\");\n \t\taddImage(ImageEnum.DIVERTER, \"images/lane/diverter.png\");\n \t\taddImage(ImageEnum.DIVERTER_ARM, \"images/lane/diverter_arm.png\");\n \t\taddImage(ImageEnum.PARTS_BOX, \"images/lane/partsbox.png\");\n \t\t\n \t\taddImage(ImageEnum.CAMERA_FLASH, \"images/misc/camera_flash.png\");\n \t\taddImage(ImageEnum.SHADOW1, \"images/misc/shadow1.png\");\n \t\taddImage(ImageEnum.SHADOW2, \"images/misc/shadow2.png\");\n \t\t\n \t\taddImage(ImageEnum.GANTRY_BASE, \"images/gantry/gantry_base.png\");\n \t\taddImage(ImageEnum.GANTRY_CRANE, \"images/gantry/gantry_crane.png\");\n \t\taddImage(ImageEnum.GANTRY_TRUSS_H, \"images/gantry/gantry_truss_h.png\");\n \t\taddImage(ImageEnum.GANTRY_TRUSS_V, \"images/gantry/gantry_truss_v.png\");\n \t\taddImage(ImageEnum.GANTRY_WHEEL, \"images/gantry/gantry_wheel.png\");\n \t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t\tSystem.exit(1);\n \t\t}\n \t\tSystem.out.println(\"Done\");\n \t}",
"public String getImagePath() {\n return thumbnail.path + \".\" + thumbnail.extension;\n }",
"private String getImagePath(@Nullable Intent data) {\n Uri selectedImage = Objects.requireNonNull(data).getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n Cursor cursor = getContentResolver().query(Objects.requireNonNull(selectedImage), filePathColumn,\n null, null, null);\n Objects.requireNonNull(cursor).moveToFirst();\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\n String imagePath = cursor.getString(columnIndex);\n cursor.close();\n return imagePath;\n }",
"java.lang.String getHotelImageURLs(int index);",
"@Override\n\tpublic String getResource() {\n\t\tif (this.getUpgraded()) {\n\t\t\ttry {\n\t\t\t\treturn (new File(\"./resources/images/ArcherTower_Upgrade.png\")).getCanonicalPath();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn (new File(\"./resources/images/ArcherTower_Default.png\")).getCanonicalPath();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic File getImage(String name) {\n\n\t\tFile returnValue = new File(RestService.imageDirectory + name + \".png\");\n\t\t\n\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t{ \n\t\t return returnValue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = new File(RestService.imageDirectory + name + \".jpg\");\n\t\t\t\n\t\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t\t{ \n\t\t\t return returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"@Override\npublic int compareTo(ImageForSort newImage) {\n\tif(this.distance==newImage.distance)\n\treturn 0;\n\telse if(this.getDistance()>newImage.getDistance()){\n\t\treturn 1;\n\t}else{\n\t\treturn -1;\n\t}\n}",
"public String getResultPath() {\n\t\tString append = (DBCatalog.getCatalog().inputPath.contains(\"/\") ? \"/sortResult\" : \"\\\\sortResult\");\n\t\treturn tempsubdir + append;\n\t}",
"java.lang.String getPackageImageURL();",
"public abstract String getIconPath();",
"public String getImgPath() {\n return imgPath;\n }",
"abstract public String imageUrl ();",
"String getItemImage();",
"java.lang.String getSrcPath();",
"public String getImgPath() {\n\t\treturn this.imgPath;\n\t}",
"@Override\n\tpublic List<URL> getPhotos() {\n\t\timages.clear(); //vide la liste des images\n\t\t\n\t\t\n\t\tList<URL> allImagesURL = new ArrayList<URL>();\n\t\t\n\t\t/* On initialise la liste de toutes les images */\n\t\tList<String> filelocations = null;\n\t\t\n\t\t/*Nous allons retrouver les fichiers images présent dans le répertoire et tous ses sous-répertoires*/\n\t\tPath start = Paths.get(path); //détermine le point de départ \n\t\ttry (Stream<Path> stream = Files.walk(start, Integer.MAX_VALUE)) {\n\t\t filelocations = stream\n\t\t .map(String::valueOf) //transforme les Path en string\n\t\t .filter(filename -> filename.contains(\".jpg\") || filename.contains(\".png\")) //ne prend que les images jpg et png\n\t\t .collect(Collectors.toList());\n\t\t \n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t/* Pour chaque fichier retrouvé, on essaie de retrouver son chemin absolu pour le stocker dans le allImagesURL */\n\t\tfor (String filelocation : filelocations) {\n\t\t\tString relativeLocation = filelocation.replace(path+\"/\", \"\"); // Pour ne pas partir de src mais de la classe courante\n\t\t\trelativeLocation = relativeLocation.replace(windowspath+\"\\\\\", \"\");\n\t\t\tallImagesURL.add(this.getClass().getResource(relativeLocation)); //on ajoute le chemin absolu dans la liste\n\t\t}\n\t\t\n\t\t\n\t\treturn allImagesURL; //on retourne la liste\n\t}",
"File getTilePathBase();",
"private Uri getPicOutputUri(){\n String filePath = getExternalFilesDir(Environment.DIRECTORY_PICTURES) + File.separator + String.valueOf(System.currentTimeMillis())+\".jpg\";\n return Uri.fromFile(new File(filePath));\n }",
"public int getImage();",
"File resolveImage(Box box);",
"public static String getImagePathname(Bundle data) {\n // Extract the path to the image file from the Bundle, which\n // should be stored using the IMAGE_PATHNAME key.\n return data.getString(IMAGE_PATHNAME);\n }",
"private String createScreenshotFilePath() {\n String fileName = new SimpleDateFormat(FILE_NAME_FORMAT).format(new Date());\n String filePath = MainMenu.PUBLIC_EXTERNAL_PICTURES_ORION_PATH + fileName;\n return filePath;\n }",
"public void initImage() {\n if (isInited())\n return;\n //获取大图的游标\n Cursor cursor = context.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, // 大图URI\n STORE_IMAGES, // 字段\n null, // No where clause\n null, // No where clause\n MediaStore.Images.Media.DATE_TAKEN + \" DESC\"); //根据时间升序\n Log.e(\"eeeeeeeeeeeeeeeeeee\", \"------cursor:\" + cursor);\n if (cursor == null)\n return;\n while (cursor.moveToNext()) {\n int id = cursor.getInt(0);//大图ID\n String path = cursor.getString(1);//大图路径\n LogTool.setLog(\"大图路径1\", path);\n File file = new File(path);\n //判断大图是否存在\n if (file.exists()) {\n //小图URI\n String thumbUri = getThumbnail(id, path);\n //获取大图URI\n String uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon().\n appendPath(Integer.toString(id)).build().toString();\n LogTool.setLog(\"大图路径2\", uri);\n if (Tools.isEmpty(uri))\n continue;\n if (Tools.isEmpty(thumbUri))\n thumbUri = uri;\n //获取目录名\n String folder = file.getParentFile().getName();\n String appFile = context.getResources().getString(R.string.app_name);\n if (!folder.equals(appFile)) {\n LocalFile localFile = new LocalFile();\n localFile.setPath(path);\n localFile.setOriginalUri(uri);\n localFile.setThumbnailUri(thumbUri);\n int degree = cursor.getInt(2);\n if (degree != 0) {\n degree = degree + 180;\n }\n localFile.setOrientation(360 - degree);\n\n\n paths.add(localFile);\n\n\n //判断文件夹是否已经存在\n if (folders.containsKey(folder)) {\n folders.get(folder).add(localFile);\n } else {\n List<LocalFile> files = new ArrayList<>();\n files.add(localFile);\n folders.put(folder, files);\n }\n }\n }\n }\n folders.put(\"所有图片\", paths);\n cursor.close();\n isRunning = false;\n }",
"public abstract String getImageSuffix();",
"private File imageFile() throws IOException {\n File directory = Environment.getExternalStorageDirectory();\n\n // FileOperations.checkDirectory(directory, false);\n Photopath = directory.getAbsolutePath();\n return new File(directory,\"displaypic.jpg\");\n\n }",
"public static String getFilePath(int index) {\n Logger.d(TAG, \"getFilePath() entry\");\n Cursor cursor = null;\n String filePath = null;\n try {\n cursor =\n mContext.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null);\n cursor.moveToFirst();\n for (int i = 0 ; i < index ; i++) {\n cursor.moveToNext();\n }\n filePath = cursor.getString(cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA));\n } finally {\n if (cursor != null) {\n cursor.close();\n cursor = null;\n }\n }\n Logger.d(TAG, \"getFilePath() exit with the file path \" + filePath);\n return filePath;\n }",
"public List<String> getListPic(String delegation_name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select path,event_name,team_name,rank \"\r\n\t\t\t\t + \"from team_result join sports_pic using(sports_name) \" \r\n\t\t\t\t + \"where type='logo' and state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '\" + delegation_name + \"' union \"\r\n\t\t + \"select path,event_name,athlete_name,rank \"\r\n\t\t + \"from individual_result join sports_pic using (sports_name) \" \r\n\t\t + \"where type='logo' and state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '\" + delegation_name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString path = rst.getString(\"path\");\r\n list.add(path);\t\t\t\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\t\t\r\n\t}",
"public static String getPath() {\n\t\t// Lấy đường dẫn link\n\t\tAuthentication auth1 = SecurityContextHolder.getContext().getAuthentication();\n\t\tAgentconnection cus = (Agentconnection) auth1.getPrincipal();\n\t\t \n\t\t//String PATH_STRING_REAL = fileStorageProperties.getUploadDir()+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t String PATH_STRING_REAL = \"E:/ezcloud/upload/\"+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t return PATH_STRING_REAL;\n\t}",
"public static Path findImagePath(String imageName, Path logosDir) throws IOException {\n if (imageName.indexOf('.') > -1) {\n final Path imagePath = logosDir.resolve(imageName);\n if (java.nio.file.Files.exists(imagePath)) {\n return imagePath;\n }\n } else {\n try (DirectoryStream<Path> possibleLogos = java.nio.file.Files.newDirectoryStream(logosDir, imageName + \".*\")) {\n final Iterator<Path> pathIterator = possibleLogos.iterator();\n while (pathIterator.hasNext()) {\n final Path next = pathIterator.next();\n String ext = Files.getFileExtension(next.getFileName().toString());\n if (IMAGE_EXTENSIONS.contains(ext.toLowerCase())) {\n return next;\n }\n }\n }\n }\n\n return null;\n }",
"public String[] getImagePaths() {\n return new String[]{\"/RpgIcons/fire.png\",\n \"/RpgIcons/water.png\",\n \"/RpgIcons/wind.png\",\n \"/RpgIcons/earth.png\",\n \"/RpgIcons/light.png\",\n \"/RpgIcons/dark.png\",\n \"/RpgIcons/lightning.png\"};\n }",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"public abstract String getPath();",
"public abstract String getPath();",
"public String getImgpath() {\r\n return imgpath;\r\n }",
"public String getLevelImagePatternFolder() {\n\t\treturn \"../resources/images/tilesets/\" + level_image_pattern + \"/\";\n\t}",
"public Image getColumnImage(Object element, int columnIndex) {\n\t\tif (element instanceof TreeNode) {\n\t\t\tTreeNode node = (TreeNode) element;\n\t\t\tImage image = null;\n\t\t\tImageManager manager = ImageManager.getInstance();\n\t\t\tif(columnIndex == 0) {\n\t\t\t\tswitch (node.getType()) {\n\t\t\t\tcase IViewConstant.TYPE_COLUMNS_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_CONSTRAINT_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_COLUMNS_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_PROPERTY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_DATASOURCE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_DATASOURCE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARY_KEY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROPERTY_PRIMARYKEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_REFERENCE_KEY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_REFERENCE_KEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_REPOSITORY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_REPOSITORY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_SCHEMAS:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_TABLE_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_USER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_USER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_VIEWS_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_VIEWS_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_VIEW);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_SEQUENCES_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_SEQUENCES_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_SEQUENCES);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_TABLE_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TABLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PROJECTS:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROJECTS);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_DIRECTORY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_OM_FILE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_OM);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_BUSINESSCLASS:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_BUSINESSCLASS);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PROPERTY_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_OPERATION);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PACKAGE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PACKAGE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARY_COLUMN:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROPERTY_PRIMARYKEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_REFERENCE_COLUMN:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_REFERENCE_KEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARY_PROPERTY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROPERTY_PRIMARYKEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_RELATION:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_ASSOCIATION_ONE2MULT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_BUSINESSCLASS_ERROR:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_BUSINESSCLASS_ERROR);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_OPERATION_ERROR:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_OPERATION_ERROR);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARYKEY_ERROR:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PRIMARYKEY_ERROR);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_BUSINESSCLASS_CONFLICT:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_BUSINESSCLASS_CONFLICT);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn image;\n\t\t}\n\t\treturn null;\n\t}",
"public String getImageUrl();",
"public java.lang.String getImagePath() {\n java.lang.Object ref = imagePath_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n imagePath_ = s;\n }\n return s;\n }\n }",
"public String getImagePath() {\n\t\treturn imagePath;\n\t}",
"public List<Upfile> findLinerPic(Long itickettypeid);",
"@SuppressWarnings(\"serial\")\n public DefaultTableCellRenderer createTableCellRenderer(boolean ascending) {\n final boolean isAscending = ascending;\n DefaultTableCellRenderer tableHeaderRenderer = new DefaultTableCellRenderer() {\n\n public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n ImageIcon up = new ImageIcon();\n ImageIcon down = new ImageIcon();\n String path = ResourceUtil.getResource(TableSorter.class, \"image.path\");\n String upArrow = ResourceUtil.getResource(TableSorter.class, \"image.file.upArrow\");\n String downArrow = ResourceUtil.getResource(TableSorter.class, \"image.file.downArrow\");\n try {\n up = new ImageIcon(Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(path + upArrow)));\n down = new ImageIcon(Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(path + downArrow)));\n } catch (Exception ex) {\n System.out.println(\" Image fetching exception :\" + ex);\n Log.log(Log.ERROR, new Throwable(), ex, ResourceUtil.getMessage(TableSorter.class, \"image_fetching_exception\"));\n }\n JButton headerCellRenderer = new JButton();\n headerCellRenderer.setText((value == null) ? \"\" : value.toString());\n headerCellRenderer.setBackground(UIManager.getColor(\"Button.pressed\"));\n headerCellRenderer.setBorder(new CompoundBorder(new BevelBorder(BevelBorder.RAISED, Color.gray, Color.white), new EmptyBorder(2, 2, 2, 2)));\n if (isAscending) {\n headerCellRenderer.setIcon(up);\n } else {\n headerCellRenderer.setIcon(down);\n }\n return headerCellRenderer;\n }\n };\n return tableHeaderRenderer;\n }",
"Object getComparefile();",
"private List<String> getRemoteImageFilenames() {\n\n ArrayList<String> imageNames = new ArrayList<>();\n\n // Since all local image files have a random name, we will use the same names remotely\n for (int i = 0; i < MAX_IMAGES; i++)\n if (imageFilesToUpload[i] != null)\n imageNames.add( imageFilesToUpload[i].getName() ); // note: this is NOT the full URL\n\n return imageNames;\n }",
"private void imageSearch(ArrayList<Html> src) {\n // loop through the Html objects\n for(Html page : src) {\n\n // Temp List for improved readability\n ArrayList<Image> images = page.getImages();\n\n // loop through the corresponding images\n for(Image i : images) {\n if(i.getName().equals(this.fileName)) {\n this.numPagesDisplayed++;\n this.pageList.add(page.getLocalPath());\n }\n }\n }\n }",
"@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}",
"abstract public String getImageKey();",
"@DhtmlColumn(columnIndex = 4, headerName = \"图标\")\n\tpublic String getImagePath() {\n\t\treturn imagePath;\n\t}",
"private static Image getMovePoint()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + move));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}",
"public void findImages() {\n URL imgURL = ImageLoader.class.getResource(\"/BackgroundMenu.jpg\");\n this.backgroundImages.put(MenuP.TITLE, loadImage(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/backgroundGame.png\");\n this.backgroundImages.put(ArenaView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/gameOver.jpg\");\n this.backgroundImages.put(GameOverView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Player.png\");\n this.entityImages.put(ID.PLAYER, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Enemy1.png\");\n this.entityImages.put(ID.BASIC_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/boss.png\");\n this.entityImages.put(ID.BOSS_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/meteorBrown_big1.png\");\n this.entityImages.put(ID.METEOR, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/BlueBullet.png\");\n this.bulletImages.put(new Pair<>(ID.PLAYER_BULLET, ID.PLAYER), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/redBullet.png\");\n this.entityImages.put(ID.ENEMY_BULLET, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_FireBoost.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Freeze.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL)); \n \n imgURL = ImageLoader.class.getResource(\"/powerup_Health.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.HEALTH), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Shield.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.SHIELD), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/bulletSpeedUp.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadEffect(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Explosion.png\");\n this.AnimationsEffect.put(new Pair<>(ID.EFFECT, SpecialEffectT.EXPLOSION), loadEffect(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/freeze.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL));\n }",
"public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }",
"private IFolder getSortedFolder() {\n \t\tString sortedFolder = (String) arguments.get(SORTED_FOLDER);\n \t\tif (sortedFolder == null)\n \t\t\tsortedFolder = DEFAULT_SORTED_FOLDER;\n \t\treturn getProject().getFolder(sortedFolder);\n \t}",
"private String getFilename(int type, Boolean held) {\n\t\tString filename = \"images/\";\n\t\tswitch(type) {\n\t\tcase 0:\n\t\t\tfilename += \"knife\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tfilename += \"cut\";\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (held) {\n\t\t\tfilename += \"2\";\n\t\t} else {\n\t\t\tfilename += \"1\";\n\t\t}\n\t\treturn filename + \".png\";\n\t}",
"public static String getPageImagePath(final Resource resource) {\n String imgSrc = StringUtils.EMPTY;\n if (resource == null) {\n return imgSrc;\n }\n final Image image = new Image(resource, \"image\");\n // check if the image from dam\n String fileReference = image.getFileReference();\n if (StringUtils.isNotEmpty(fileReference)) {\n return fileReference;\n }\n // else drag & drop image\n image.setSelector(\".img\");\n if (image.hasContent()) {\n imgSrc = image.getSrc();\n imgSrc = imgSrc.replaceAll(\"image.img\", \"image/file.img\");\n }\n return imgSrc;\n }",
"static String getImage() {\n int rand = (int) (Math.random() * 13);\n return \"file:src/images/spaceships/\" + rand + \".png\";\n }",
"public List<String> getOriginalPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException {\n try {\n FilesetData fs = loadFileset(ctx, img);\n if (fs != null)\n return fs.getUsedFilePaths();\n } catch (Throwable t) {\n handleException(this, t, \"Could not get the file paths.\");\n }\n return Collections.emptyList();\n }",
"java.lang.String getCityImageURLs(int index);",
"private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }",
"public Cursor getLogoImagePath() {\n\n\t\ttry {\n\t\t\tString sql = \"SELECT LogoPath FROm Logos\";\n\n\t\t\tCursor mCur = mDb.rawQuery(sql, null);\n\t\t\treturn mCur;\n\n\t\t} catch (SQLException mSQLException) {\n\t\t\tLog.e(TAG, \"getTestData >>\" + mSQLException.toString());\n\t\t\tthrow mSQLException;\n\t\t}\n\t}",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"private String getPhotoFilePath(boolean getThumbnail) throws IOException {\n\n String mainPath = config.getString(\"travelea.photos.main\");\n\n String returnPath = mainPath + (getThumbnail\n ? config.getString(\"travelea.photos.thumbnail\")\n : \"\");\n\n\n Path path = Paths.get(returnPath).toAbsolutePath();\n\n returnPath = path.toString();\n\n if (!path.toFile().exists() || !path.toFile().isDirectory()) {\n Files.createDirectory(path);\n }\n\n return returnPath;\n }",
"String getPathName();",
"String getPathName();",
"public java.lang.String getImagePath() {\n java.lang.Object ref = imagePath_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n imagePath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Label getPic(){\n //try {//getPic is only called if isPic is true, so side1 would contain picture path\n /*BufferedImage unsized = ImageIO.read(new File(side1));\n BufferedImage resized = resizeImage(unsized,275,250, unsized.getType());\n frontPic.setIcon(new ImageIcon(resized));*/\n\n\t\t\tImage image = new Image(new File(side1).toURI().toString());\n\t\t\tImageView iv = new ImageView(image);\n\t\t\tLabel imageLabel = new Label(\"Image\");\n\t\t\timageLabel.setGraphic(iv);\n\t\t\treturn imageLabel;\n /*} catch (IOException ex) {\n System.out.println(\"Trouble reading from the file: \" + ex.getMessage());\n }\n return frontPic;*/\n }",
"private void addImgList() {\n\t\tdogImg.add(\"./data/img/labrador.jpg\");\t\t\t\t\n\t\tdogImg.add(\"./data/img/germanshepherd.jpg\");\t\n\t\tdogImg.add(\"./data/img/bulldog.jpg\");\t\t\t\t\t\t\t\t\n\t\tdogImg.add(\"./data/img/rottweiler.jpg\");\n\t\tdogImg.add(\"./data/img/husky.jpg\");\n\n\t}",
"private String image_path(String path, String name, String ext) {\n return path + \"/\" + name + \".\" + ext;\n }",
"public void createImageSet() {\n\t\t\n\t\t\n\t\tString image_folder = getLevelImagePatternFolder();\n \n String resource = \"0.png\";\n ImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(\"navigable\", ii.getImage());\n\n\t}",
"int img(String path) {\n //TODO: is this correct?\n return this.renderEngine.b(path);\n }",
"public String getImagePath() {\n\t\treturn mPath;\n\t}"
] |
[
"0.6983521",
"0.63470393",
"0.6233355",
"0.6233355",
"0.6062491",
"0.60122037",
"0.594348",
"0.5894518",
"0.576427",
"0.5756206",
"0.57494265",
"0.57230884",
"0.5685261",
"0.5616713",
"0.5596388",
"0.55904007",
"0.5571093",
"0.5566416",
"0.55640876",
"0.55610317",
"0.5537714",
"0.55362827",
"0.5439503",
"0.54376596",
"0.5436681",
"0.5387805",
"0.5386075",
"0.53573334",
"0.53529185",
"0.53368956",
"0.5305416",
"0.5296007",
"0.5283499",
"0.52772003",
"0.52757025",
"0.5273815",
"0.5268934",
"0.5259353",
"0.52590597",
"0.52530265",
"0.52271605",
"0.5222042",
"0.5211781",
"0.5209587",
"0.519175",
"0.51874393",
"0.5177921",
"0.5158321",
"0.5158028",
"0.5137883",
"0.51289284",
"0.51282185",
"0.5125008",
"0.5122407",
"0.51158506",
"0.51125497",
"0.51125497",
"0.51125497",
"0.51125497",
"0.51125497",
"0.510865",
"0.510865",
"0.51011497",
"0.5093596",
"0.50818205",
"0.50804585",
"0.50695235",
"0.50654566",
"0.50653046",
"0.5061161",
"0.50554985",
"0.5051901",
"0.5045536",
"0.5041892",
"0.5035742",
"0.5031181",
"0.5021741",
"0.50182164",
"0.50163573",
"0.5013871",
"0.50132096",
"0.50091237",
"0.50054914",
"0.5002951",
"0.49966344",
"0.49898055",
"0.4985561",
"0.497545",
"0.497545",
"0.497545",
"0.49737808",
"0.49598432",
"0.49598432",
"0.4957917",
"0.49491078",
"0.49480718",
"0.49416745",
"0.49382848",
"0.49374047",
"0.4932254"
] |
0.5594191
|
15
|
Gets the current sortBy parameters.
|
public static SortParameter[] getSortByParameters(String sortByColumn, Boolean isAscending) {
SortParameter[] sortParams = ASC_DATASET_PARAMS;
if (sortByColumn.equals(COLUMN_DATASET)) {
if (isAscending) {
sortParams = ASC_DATASET_PARAMS;
} else {
sortParams = DESC_DATASET_PARAMS;
}
} else if (sortByColumn.equals(COLUMN_USER)) {
if (isAscending) {
sortParams = ASC_USER_PARAMS;
} else {
sortParams = DESC_USER_PARAMS;
}
} else if (sortByColumn.equals(COLUMN_STATUS)) {
if (isAscending) {
sortParams = ASC_STATUS_PARAMS;
} else {
sortParams = DESC_STATUS_PARAMS;
}
} else if (sortByColumn.equals(COLUMN_LAST_UPDATE)) {
if (isAscending) {
sortParams = ASC_LAST_UPDATE_PARAMS;
} else {
sortParams = DESC_LAST_UPDATE_PARAMS;
}
}
return sortParams;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public LSPSortByField[] getSortByFields () {\r\n return sortByFields;\r\n }",
"public ArrayList<SortingRule> get_sort_by() {\n\t\treturn sort_by;\n\t}",
"public final String getSortBy() {\n return this.sortBy;\n }",
"public ProductSearchSortBy getSortBy() {\r\n\t\treturn sortBy;\r\n\t}",
"public java.lang.String getSortBy() {\n\t\treturn sortBy;\n\t}",
"Sort asc(QueryParameter parameter);",
"public java.lang.Object[] getOrderBy() {\n return orderBy;\n }",
"java.lang.String getOrderBy();",
"public String sortBy();",
"public ISortField[] getSortFields() {\n\t\treturn mFields;\n\t}",
"@SuppressWarnings(\"unchecked\")\n private static Map<String, String[]> sortRequestParameters( ServletRequest request ) {\n Map<String, String[]> sortedParams = new TreeMap<String, String[]>();\n Set<Map.Entry<String, String[]>> params = request.getParameterMap().entrySet();\n for ( Map.Entry<String, String[]> entry : params ) {\n sortedParams.put( entry.getKey(), entry.getValue() );\n }\n return sortedParams;\n }",
"String getSortColumn();",
"public IScapSyncSearchSortField[] getSortFields();",
"public String getSortOrder();",
"public int getSortingColumn() {\n return this.sortingColumn;\n }",
"public String[] getsSortDirCol() {\r\n\t\treturn sSortDirCol;\r\n\t}",
"public Integer getSort() {\r\n return sort;\r\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public Integer getSort() {\n return sort;\n }",
"public BoxPlotSortConfiguration getSortConfiguration() {\n return this.sortConfiguration;\n }",
"private DBObject buildSortSpec(final GetObjectInformationParameters params) {\n\t\tfinal DBObject sort = new BasicDBObject();\n\t\tif (params.isObjectIDFiltersOnly()) {\n\t\t\tsort.put(Fields.VER_WS_ID, 1);\n\t\t\tsort.put(Fields.VER_ID, 1);\n\t\t\tsort.put(Fields.VER_VER, -1);\n\t\t}\n\t\treturn sort;\n\t}",
"public List getDatabaseOrderParams() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? Arrays.asList(expr.getValues()) : new ArrayList();\n\t}",
"public DefaultSortParameters() {\n\t\tthis(null, null, null, null, null);\n\t}",
"public String sortOrder();",
"public Integer getiSortingCols() {\r\n\t\treturn iSortingCols;\r\n\t}",
"public int[] getColumnsOfSpecialComparatorForSorting() {\n return new int[]{0, 1, 2};\n }",
"private void fetchSortingConfig() {\n IndexingConfig indexingConfig = _tableConfig.getIndexingConfig();\n List<String> sortedColumns = indexingConfig.getSortedColumn();\n Preconditions.checkArgument(sortedColumns.size() <= 1, \"There should be at most 1 sorted column in the table.\");\n if (sortedColumns.size() == 1) {\n _sortedColumn = sortedColumns.get(0);\n }\n }",
"public void setSortby(String sortby) {\n\t\tparameters.put(\"sortby\", sortby);\n\t}",
"private int getSortValue() {\n\t\tint sortBy = DisplaySpecServices.ORDERDATESORT; // default sort option -\n\t\t// ORDERDATE\n\t\tif (this.searchNotSort == false) {\n\t\t\ttry {\n\t\t\t\tsortBy = Integer.parseInt(this.sortOption);\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default sort\n\t\t\t\t// option\n\t\t\t}\n\t\t} else {\n\t\t\tString searchOption = this.getSearchOption();\n\n\t\t\ttry {\n\t\t\t\tint searchOptValue = Integer.parseInt(searchOption);\n\t\t\t\tswitch (searchOptValue) {\n\t\t\t\tcase DisplaySpecServices.ORDERDATEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONDATEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PUBLICATIONTITLEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PUBLICATIONTITLESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.ORDERDETAILIDFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDETAILIDSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PERMISSIONTYPEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PERMISSIONTYPESORT; // 2ndary\n\t\t\t\t\t// sort\n\t\t\t\t\t// Order\n\t\t\t\t\t// Date\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PERMISSIONSTATUSFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PERMISSIONSTATUSSORT; // 2ndary\n\t\t\t\t\t// sort\n\t\t\t\t\t// Order\n\t\t\t\t\t// Date\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.BILLINGSTATUSFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.YOURREFERENCEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.YOURREFERENCESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.INVOICENUMBERFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.INVOICENUMBERSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONTITLEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONTITLESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONPUBLISHERFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONPUBLISHERSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.LASTUPDATEDATESORT:\n\t\t\t\t\tsortBy = DisplaySpecServices.LASTUPDATEDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default\n\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t}\n\t\t}\n\t\treturn sortBy;\n\t}",
"public com.sforce.soap.partner.ListViewOrderBy[] getOrderBy() {\r\n return orderBy;\r\n }",
"private String doSortOrder(SlingHttpServletRequest request) {\n RequestParameter sortOnParam = request.getRequestParameter(\"sortOn\");\n RequestParameter sortOrderParam = request.getRequestParameter(\"sortOrder\");\n String sortOn = \"sakai:filename\";\n String sortOrder = \"ascending\";\n if (sortOrderParam != null\n && (sortOrderParam.getString().equals(\"ascending\") || sortOrderParam.getString()\n .equals(\"descending\"))) {\n sortOrder = sortOrderParam.getString();\n }\n if (sortOnParam != null) {\n sortOn = sortOnParam.getString();\n }\n return \" order by @\" + sortOn + \" \" + sortOrder;\n }",
"public static Collection<SortBy> values() {\n\t\treturn values(SortBy.class);\n\t}",
"private String getOrderBy( List<Integer> listSortBy )\n {\n StringBuffer strOrderBy = new StringBuffer( );\n String strReturn = SuggestUtils.EMPTY_STRING;\n int ncpt = 0;\n\n if ( ( listSortBy != null ) && ( listSortBy.size( ) != 0 ) )\n {\n strOrderBy.append( SQL_ORDER_BY );\n\n for ( Integer sort : listSortBy )\n {\n ncpt++;\n\n switch ( sort )\n {\n case SubmitFilter.SORT_BY_DATE_RESPONSE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_DATE_RESPONSE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_DATE_RESPONSE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_DATE_RESPONSE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_SCORE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_SCORE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_SCORE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_SCORE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_COMMENT_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_COMMENT_ENABLE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_COMMENT_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_COMMENT_ENABLE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VIEW_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VIEW_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VIEW_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VIEW_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VOTE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VOTE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VOTE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VOTE_DESC );\n\n break;\n\n case SubmitFilter.SORT_MANUALLY:\n strOrderBy.append( SQL_FILTER_SORT_MANUALLY );\n\n break;\n\n default:\n break;\n }\n\n if ( ncpt < listSortBy.size( ) )\n {\n strOrderBy.append( \",\" );\n }\n }\n\n strReturn = strOrderBy.toString( );\n\n if ( strReturn.endsWith( \",\" ) )\n {\n strReturn = strReturn.substring( 0, strReturn.length( ) - 1 );\n }\n }\n\n return strReturn;\n }",
"public String getIdxSearchSort() {\n Preferences prefs = getPreferences();\n return prefs.get(PROP_SEARCH_SORT, \"A\"); // NOI18N\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t\t\t\t@Override\n\t\t\t\tpublic List getSortKeys() {\n\t\t\t\t\treturn sortKeys.stream().filter(x -> x.getSortOrder() != SortOrder.UNSORTED)\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t}",
"static String getSorting(String sortingKey, boolean modifier)\r\n {\r\n String s;\r\n if (sortingMap.containsKey(sortingKey))\r\n {\r\n s = sortingMap.get(sortingKey);\r\n }\r\n else\r\n {\r\n s = sortingMap.get(SORT_PROPERTY_NAME);\r\n }\r\n\r\n if (modifier)\r\n {\r\n s += \" ASC\";\r\n }\r\n else\r\n {\r\n s += \" DESC\";\r\n }\r\n\r\n return s;\r\n }",
"public Sort getSort() {\r\n\t\t\t\treturn sort;\r\n\t\t\t}",
"protected Sort getSortASC() {\n Sort.Order order = new Sort.Order(Sort.Direction.ASC, \"id\");\n return Sort.by(order);\n }",
"ColumnSortList.ColumnSortInfo getSortInfo();",
"protected Map<String, AccommodationOfferingSearchResponseSortStrategy> getSortStrategyMap()\n\t{\n\t\treturn sortStrategyMap;\n\t}",
"public Integer getSortOrder() {\n return sortOrder;\n }",
"Sort desc(QueryParameter parameter);",
"public int getSortOrder() {\r\n return sortOrder;\r\n }",
"public List getOrderByItems() {\n if (orderByItems == null) {\n setOrderByItems(new Vector());\n }\n return orderByItems;\n }",
"public static Sort getSortColumnAndOrderFromRequest(Request request) {\n ParameterValue sort = request.getQueryParameter(\"sort\");\n return Arrays.stream(sort.getValues()).findFirst()\n .map(sortColumnAndOrderStr -> {\n String[] sortColumnAndOrder = sortColumnAndOrderStr.split(\",\");\n String sortColumn = sortColumnAndOrder[0];\n\n Sort.SortOrder sortOrder = Sort.SortOrder.ASC;\n if (sortColumnAndOrder.length == 2) {\n String sortOrderStr = sortColumnAndOrder[1];\n if (sortOrderStr.equals(\"ASC\") || sortOrderStr.equals(\"DESC\")) {\n sortOrder = Sort.SortOrder.valueOf(sortOrderStr);\n }\n }\n return new Sort(sortColumn, sortOrder);\n }).orElse(null);\n }",
"public String getOrderby() {\n return this.Orderby;\n }",
"public String getOrderBy() {\n\t\treturn orderBy;\n\t}",
"public synchronized final ColumnSort getSort() {\r\n return f_sort;\r\n }",
"public void setSortByFields (LSPSortByField[] sortByFields) {\r\n this.sortByFields = sortByFields;\r\n }",
"Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);",
"public SortOption getSortOption() {\n return sortOption;\n }",
"void sort(OrderBy orderBy);",
"public double getSortTime() {\n return sortTime_;\n }",
"public double getSortTime() {\n return sortTime_;\n }",
"public Short getSort() {\n return sort;\n }",
"@Override\n\tpublic void setSorting(Object[] propertyIds, boolean[] ascending) {\n\t\t\n\t}",
"public BsonDocument getSort() {\n return sort;\n }",
"Comparator<T> sortBy();",
"public SortDirection getSortDirection() {\r\n return sortDirection;\r\n }",
"public Long getSort_merge_passes() {\n return sort_merge_passes;\n }",
"@VTID(25)\n com.exceljava.com4j.excel.XlSlicerSort getSortItems();",
"public void setSortBy(final ProductSearchSortBy sortBy) {\r\n\t\tthis.sortBy = sortBy;\r\n\t}",
"public Short getSortOrder() {\n return sortOrder;\n }",
"public Integer[] getiSortCol() {\r\n\t\treturn iSortCol;\r\n\t}",
"public Boolean getSortOrder() {\n return sortOrder;\n }",
"public Map findAvailableSorters(INavigatorContentDescriptor theSource);",
"public int getSortType() {\n\t\treturn SortType;\n\t}",
"abstract String getSortKey();",
"public DefaultSortParameters(byte[] byPattern, Range limit, byte[][] getPattern, Order order, Boolean alphabetic) {\n\t\tsuper();\n\t\tthis.byPattern = byPattern;\n\t\tthis.limit = limit;\n\t\tthis.order = order;\n\t\tthis.alphabetic = alphabetic;\n\t\tsetGetPattern(getPattern);\n\t}",
"@Override\n public Sort getDefaultSort() {\n return Sort.add(SiteConfineArea.PROP_CREATE_TIME, Direction.DESC);\n }",
"public synchronized void sort()\n\t{\n\t\tCollections.sort(vars, tvComparator);\n\t}",
"public Integer getTimeSort() {\n return timeSort;\n }",
"public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }",
"double getSortTime();",
"public StringPair[] getSortedFields() {\n return m_classBuilder.getSortedFields();\n }",
"com.google.protobuf.ByteString\n getOrderByBytes();",
"public Integer getSlideSort() {\n return slideSort;\n }",
"public void initializeSortModel()\r\n {\r\n oldSortColumnProperty = sortColumnProperty;\r\n oldAscending = !ascending; // To make sure Sort happens on first render \r\n }",
"public synchronized final Vector getPreprocessingParams() {\n return getParams(PREPROCESSING);\n }",
"protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}",
"public Integer getSortOrder() {\n\t\t\treturn sortOrder;\n\t\t}",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder=new ArrayList<>();\n FieldOrder.add(\"defaultValue\");\n FieldOrder.add(\"helpText\");\n FieldOrder.add(\"paramPrompt\");\n FieldOrder.add(\"paramType\");\n FieldOrder.add(\"desDefaultValue\");\n FieldOrder.add(\"listValues\");\n FieldOrder.add(\"desListValues\");\n FieldOrder.add(\"promptAtRun\");\n return FieldOrder;\n }",
"@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}",
"public SiteSortCol getSortColumn() {\n\t\treturn sortColumn;\n\t}",
"public static void doSort ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString criteria = params.getString (\"criteria\");\n\n\t\tif (criteria.equals (\"title\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\t\telse if (criteria.equals (\"size\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_LENGTH;\n\t\t}\n\t\telse if (criteria.equals (\"created by\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CREATOR;\n\t\t}\n\t\telse if (criteria.equals (\"last modified\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_MODIFIED_DATE;\n\t\t}\n\t\telse if (criteria.equals(\"priority\") && ContentHostingService.isSortByPriorityEnabled())\n\t\t{\n\t\t\t// if error, use title sort\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_PRIORITY;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\n\t\tString sortBy_attribute = STATE_SORT_BY;\n\t\tString sortAsc_attribute = STATE_SORT_ASC;\n\t\tString comparator_attribute = STATE_LIST_VIEW_SORT;\n\t\t\n\t\tif(state.getAttribute(STATE_MODE).equals(MODE_REORDER))\n\t\t{\n\t\t\tsortBy_attribute = STATE_REORDER_SORT_BY;\n\t\t\tsortAsc_attribute = STATE_REORDER_SORT_ASC;\n\t\t\tcomparator_attribute = STATE_REORDER_SORT;\n\t\t}\n\t\t// current sorting sequence\n\t\tString asc = NULL_STRING;\n\t\tif (!criteria.equals (state.getAttribute (sortBy_attribute)))\n\t\t{\n\t\t\tstate.setAttribute (sortBy_attribute, criteria);\n\t\t\tasc = Boolean.TRUE.toString();\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// current sorting sequence\n\t\t\tasc = (String) state.getAttribute (sortAsc_attribute);\n\n\t\t\t//toggle between the ascending and descending sequence\n\t\t\tif (asc.equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tasc = Boolean.FALSE.toString();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tasc = Boolean.TRUE.toString();\n\t\t\t}\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tComparator comparator = ContentHostingService.newContentHostingComparator(criteria, Boolean.getBoolean(asc));\n\t\t\tstate.setAttribute(comparator_attribute, comparator);\n\t\t\t\n\t\t\t// sort sucessful\n\t\t\t// state.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t}\t// if-else\n\n\t}",
"public List<OrderByInf> getOrderBys()\n {\n if(orderBysFields == null)\n {\n orderBysFields = parseOrderBys(orderBys);\n }\n return orderBysFields;\n }",
"String convertToSortProperty(String sortParameter) throws ValidationFailureException;",
"public void sortBy(Comparator<Trip> cmp) {\n comparator = cmp;\n modifiedSinceLastResult = true;\n }",
"public final native String getOrderBy() /*-{\n return this.getOrderBy();\n }-*/;",
"public String[] getSortConditionTable()\n\t{\n\t\tKey[] karray = new Key[_searchKeyList.size()] ;\n\n\t\t_searchKeyList.copyInto(karray) ;\n\t\tfor (int i = 0; i < karray.length; i++)\n\t\t{\n\t\t\tfor (int j = i; j < karray.length; j++)\n\t\t\t{\n\t\t\t\tif (karray[i].getTableOrder() > karray[j].getTableOrder())\n\t\t\t\t{\n\t\t\t\t\tKey ktmp = karray[i] ;\n\t\t\t\t\tkarray[i] = karray[j] ;\n\t\t\t\t\tkarray[j] = ktmp ;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tString stbf = \"\" ;\n\t\tVector vec = new Vector();\n\t\t\n\n\t\tfor (int i = 0; i < karray.length; i++)\n\t\t{\n\t\t\tif (karray[i].getTableOrder() > 0)\n\t\t\t{\n\t\t\t\tstbf = Integer.toString(karray[i].getTableOrder()) + \",\" + karray[i].getTableColumn() ;\n\t\t\t\t//#CM708962\n\t\t\t\t// The descending key word is set for the descending order. \n\t\t\t\tif (karray[i].getTableDesc() == false)\n\t\t\t\t{\n\t\t\t\t\tstbf = stbf + \" DESC\" ;\n\t\t\t\t}\n\t\t\t\tvec.addElement(stbf);\n\t\t\t}\n\t\t}\n\n\t\t//#CM708963\n\t\t// Return the content of Vector. \n\t\tString[] rStr = new String[vec.size()];\n\t\tvec.copyInto(rStr);\n\t\treturn rStr ;\n\t}",
"public BigDecimal getSortOrder() {\r\n return (BigDecimal) getAttributeInternal(SORTORDER);\r\n }",
"private void addSortingPagination(Map params, String entity, String dir, String sort, int start, int limit,\n\t\t\tint page) {\n\n\t\tparams.put(IReportDAO.ENTITY, entity);\n\t\tparams.put(IReportDAO.DIR, dir);\n\t\tparams.put(IReportDAO.SORT_COLUMN, sort);\n\t\tparams.put(IReportDAO.START_INDEX, start);\n\t\tparams.put(IReportDAO.LIMIT, limit);\n\t\tparams.put(IReportDAO.PAGE, page);\n\t}",
"private OrderSpecifier[] getOrderSpecifiers(@NotNull Pageable pageable) {\n\n return pageable.getSort().stream()\n .map(order -> new OrderSpecifier(\n Order.valueOf(order.getDirection().toString()),\n new PathBuilder(AirplaneTrip.class, \"airplaneTrip\")\n .get(order.getProperty()))\n )\n .toArray(OrderSpecifier[]::new);\n }"
] |
[
"0.6657385",
"0.63428",
"0.620778",
"0.61682725",
"0.6155712",
"0.60849077",
"0.59228945",
"0.58972406",
"0.5871237",
"0.5841883",
"0.5824279",
"0.5821106",
"0.5816625",
"0.5810857",
"0.57888305",
"0.57526916",
"0.56605875",
"0.56476223",
"0.56476223",
"0.56476223",
"0.56476223",
"0.56476223",
"0.56476223",
"0.56476223",
"0.56476223",
"0.56476223",
"0.56455916",
"0.5636108",
"0.5635286",
"0.56213063",
"0.5601264",
"0.5561796",
"0.55418676",
"0.5514127",
"0.54966956",
"0.5491313",
"0.5485345",
"0.54738677",
"0.5461976",
"0.5456485",
"0.5445744",
"0.5440976",
"0.5440973",
"0.5439159",
"0.5436535",
"0.5433847",
"0.5387921",
"0.53702617",
"0.5354852",
"0.53465253",
"0.5339105",
"0.5316673",
"0.5308255",
"0.53007877",
"0.5293604",
"0.5268739",
"0.52680606",
"0.5263334",
"0.521372",
"0.5209476",
"0.52034307",
"0.51929444",
"0.51733017",
"0.51726174",
"0.51707774",
"0.51636946",
"0.5161069",
"0.51342314",
"0.5128409",
"0.51217",
"0.51197743",
"0.50994253",
"0.508648",
"0.508169",
"0.50771177",
"0.5072939",
"0.5066932",
"0.5066321",
"0.5050904",
"0.50440365",
"0.50432265",
"0.5041221",
"0.5039127",
"0.5038105",
"0.5034081",
"0.50331026",
"0.5031674",
"0.5029599",
"0.5028245",
"0.50269705",
"0.50242347",
"0.5020582",
"0.50170064",
"0.5016241",
"0.5010818",
"0.5006959",
"0.50045425",
"0.4999735",
"0.4996031",
"0.49844202"
] |
0.652384
|
1
|
SORTING COMPARATOR Comparator object used for sorting.
|
public static Comparator<ImportQueueDto> getComparator(SortParameter... sortParameters) {
return new ImportQueueDtoComparator(sortParameters);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected Comparator<?> getInitialSortOrderComparator() {\n MetaData md = PmTableImpl.this.getOwnMetaDataWithoutPmInitCall();\n return (md.initialBeanSortComparatorClass != null)\n ? (Comparator<?>)ClassUtil.newInstance(md.initialBeanSortComparatorClass)\n : null;\n }",
"private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n (Comparable) valueOf(sortClause.getKey(), person));\n\n if (sortClause.getValue() == SortDirection.DESCENDING) {\n comparator = comparator.reversed();\n }\n\n return comparator;\n } catch (Exception ex) {\n return (Comparator<Person>) (o1, o2) -> 0;\n }\n })\n .reduce(Comparator::thenComparing)\n .orElse((o1, o2) -> 0);\n }",
"Comparator<T> sortBy();",
"void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);",
"private Comparator<Node> getComparator() {\n class QueueCompare implements Comparator<Node> {\n @Override\n public int compare(Node o1, Node o2) {\n if (o1.manPrior > o2.manPrior) return 1;\n else if (o1.manPrior < o2.manPrior) return -1;\n else if (o1.hamPrior > o2.hamPrior) return 1;\n else if (o1.hamPrior < o2.hamPrior) return -1;\n else if (o1.manPrior - o1.movesToBoard > o2.manPrior - o2.movesToBoard) return 1;\n else if (o1.manPrior - o1.movesToBoard < o2.manPrior - o2.movesToBoard) return -1;\n else if (o1.hamPrior - o1.movesToBoard > o2.hamPrior - o2.movesToBoard) return 1;\n else if (o1.hamPrior - o1.movesToBoard < o2.hamPrior - o2.movesToBoard) return -1;\n return 1;\n }\n }\n return new QueueCompare();\n }",
"public Comparator<? super P> comparator();",
"Comparator<? super K> comparator();",
"@Transient\n\tpublic static Comparator<Requerimiento> getComparator(){\n\t\treturn new Comparator<Requerimiento>(){\n\t\t\tpublic int compare(Requerimiento requer1, Requerimiento requer2) {\n\t\t\t\treturn requer1.getIdRequerimiento().compareTo(requer2.getIdRequerimiento());\n\t\t\t}\n\t\t};\n\t}",
"interface IComparator<T> {\n // Returns a negative number if t1 comes before t2 in this ordering\n // Returns zero if t1 is the same as t2 in this ordering\n // Returns a positive number if t1 comes after t2 in this ordering\n int compare(T t1, T t2);\n}",
"public interface Comparator {\n default int compare(Object a, Object b) {\n FeatureExpr ctx = Contexts.model_java_util_Comparator_compare;\n V<?> compareResult = compare__Ljava_lang_Object_Ljava_lang_Object__I(V.one(ctx, a), V.one(ctx, b), ctx);\n V<?> selected = compareResult.select(ctx);\n assert selected.getOne() instanceof java.lang.Integer : \"compare returns non-Integer\";\n return ((java.lang.Integer) selected.getOne());\n }\n V<?> compare__Ljava_lang_Object_Ljava_lang_Object__I(V a, V b, FeatureExpr fe);\n}",
"protected Comparator getNameComparator()\n {\n if(nameComparator == null)\n {\n nameComparator = new SMComponentNameComparator();\n }\n\n return nameComparator;\n }",
"public static Comparator BytewiseComparator() {\n\t\treturn new BytewiseComparatorImpl();\n\t}",
"protected Comparator getNestedComparator() {\r\n return nestedComparator;\r\n }",
"public Comparator<? super K> comparator() {\n/* 102 */ return null;\n/* */ }",
"public PriceComparator()\n\t{\n\t\tascending=true;\n\t}",
"public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}",
"public SortingFocusTraversalPolicy(Comparator comparator)\n {\n this.comparator = comparator;\n }",
"public Comparator<Integer> comparator() {\n return new Comparator<Integer>() {\n @Override\n public int compare(Integer o1, Integer o2) {\n Http2PriorityNode n1 = nodesByID.get(o1);\n Http2PriorityNode n2 = nodesByID.get(o2);\n if(n1 == null && n2 == null) {\n return 0;\n }\n if(n1 == null) {\n return -1;\n }\n if(n2 == null) {\n return 1;\n }\n //do the comparison\n //this is kinda crap, but I can't really think of any better way to handle this\n\n double d1 = createWeightingProportion(n1);\n double d2 = createWeightingProportion(n2);\n return Double.compare(d1, d2);\n }\n };\n }",
"public static Comparator<Card> createByRankComparator()\n {\n return new Comparator<Card>()\n {\n public int compare(Card pCard1, Card pCard2)\n {\n return pCard1.aRank.compareTo(pCard2.aRank);\n }\n };\n }",
"default EqualityComparator<? super E> getComparator() {\n // Most implementations do not support custom equality comparators,\n // and just use the equals() and hashCode() implementations of the objects by default.\n return EqualityComparator.getDefault();\n }",
"public interface Comparator extends ComparisonConstants {\n public int compare(Object a, Object b);\n}",
"private Comparator<Integer> getIntegerComparator() {\n return new Comparator<Integer>() {\n @Override\n public int compare(Integer integer1, Integer integer2) {\n return integer1 - integer2;\n }\n };\n }",
"public interface Comparator<Item>{\n\tpublic int compare(Item a, Item b);\n}",
"void sort(Comparator<E> comp);",
"@Override\n public Comparator<? super E> comparator() {\n return comparator;\n }",
"public DoComparator()\n {\n this(true, false, false);\n }",
"public Comparator<? super N> getComparator() {\n\t\treturn comparator;\n\t}",
"public void sortElements(Comparator<TLProperty> comparator);",
"public void sort(@NonNull Comparator<? super T> comparator) {\n ArrayList<T> sortedList = new ArrayList<T>();\n if (mData.isFiltered()) {\n sortedList = new ArrayList<T>(mData.getFilteredValues().values());\n } else {\n sortedList = new ArrayList<T>(mData.getValues().values());\n }\n Collections.sort(sortedList, comparator);\n\n mData.createIndexMapFromList(sortedList, mData.isFiltered() ? mData.getFilteredValues() : mData.getValues());\n notifyDataSetChanged();\n }",
"public void sort(List<T> objects, Comparator<T> comparator) {\n }",
"public Comparator<Target> getComparator() {\n return new DependencyComparator(flatDependencies);\n }",
"protected BaseComparator() {}",
"public void sort(Comparator<? super AudioFile> comparator) {\n Collections.sort(mObjects, comparator);\n if (mNotifyOnChange) notifyDataSetChanged();\n }",
"public static Comparator<VisualizarEncontroDTO> comparator() {\r\n\t\t\r\n\t\treturn (d1,d2) -> d1.dataInicio.compareTo(d2.dataInicio);\r\n\t}",
"public static Comparator<Transfer> getSortComparator(String sortPropertyName) {\n if (sortPropertyName == null) return null;\n\n try {\n // translate field name to accessor to property\n final Method method = Transfer.class.getMethod(\"get\" + StringUtils.capitalize(sortPropertyName));\n return (x, y) -> MethodGetWrapper.of(method, x).compareTo(MethodGetWrapper.of(method, y));\n } catch (NoSuchMethodException ex) {\n throw new IllegalArgumentException(\"Invalid field name in query parameter 'sort'\", ex);\n }\n }",
"@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}",
"public ArrayList<SortingRule> get_sort_by() {\n\t\treturn sort_by;\n\t}",
"public void sortBy(Comparator<Trip> cmp) {\n comparator = cmp;\n modifiedSinceLastResult = true;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static <E extends Comparable<E>> Comparator<E> getComparableComparator() {\n\t\treturn (Comparator<E>) COMPARABLE_COMPARATOR;\n\t}",
"public Comparator<Integer> createIntegerComparator() {\n \n return (Integer i1, Integer i2) -> ( i1.intValue() - i2.intValue());\n }",
"public static <T extends Ordinal> Comparator<T> ordinalComparator() {\r\n\t\treturn new Comparator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(T o1, T o2) {\r\n\t\t\t\tint result = o1.getOrdinal()-o2.getOrdinal();\r\n\t\t\t\tif(result == 0) {\r\n\t\t\t\t\tresult = o1.getClass().getSimpleName().compareTo(o2.getClass().getSimpleName());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn result;\r\n\t\t\t}};\r\n\t\t\r\n\t}",
"@Override\n public Object[] sort(Object[] elementData, int size, Comparator comparator) {\n c=comparator;\n Object[] elementTemp = new Object[size];\n System.arraycopy(elementData,0,elementTemp,0,size);\n\n SimpleMerger ss=new SimpleMerger(elementTemp,c);\n\n ss.sort();\n\n if(comparator==null){\n elementData=ss.getSorted();\n }else{\n elementData=ss.getSorted2();\n }\n\n return elementData;\n }",
"public synchronized final ColumnSort getSort() {\r\n return f_sort;\r\n }",
"public static Comparator<Term> byLexicographicOrder()\n\t{\n\t\tComparator<Term> comp = new byLexicographicOrder();\n\t\treturn comp;\n\t}",
"@Override\n void sort(Comparator<E> comparator) {\n for (Node<E> i = head.next; i != tail.prev; i = i.next) {\n Node<E> min = i;\n E minValue = min.value;\n\n for (Node<E> j = i.next; j != tail; j = j.next) {\n if (comparator.compare(minValue, j.value) > 0) {\n min = j;\n minValue = min.value;\n }\n }\n\n min.value = i.value;\n i.value = minValue;\n }\n }",
"public void sortCompetitors(){\n\t\t}",
"@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}",
"public final CQLParser.sortOptions_return sortOptions() throws RecognitionException {\n CQLParser.sortOptions_return retval = new CQLParser.sortOptions_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token i=null;\n Token SORT14=null;\n Token BY15=null;\n Token SORT16=null;\n Token BY17=null;\n Token DESCENDING18=null;\n Token DESC19=null;\n\n Object i_tree=null;\n Object SORT14_tree=null;\n Object BY15_tree=null;\n Object SORT16_tree=null;\n Object BY17_tree=null;\n Object DESCENDING18_tree=null;\n Object DESC19_tree=null;\n RewriteRuleTokenStream stream_SORT=new RewriteRuleTokenStream(adaptor,\"token SORT\");\n RewriteRuleTokenStream stream_BY=new RewriteRuleTokenStream(adaptor,\"token BY\");\n RewriteRuleTokenStream stream_DESC=new RewriteRuleTokenStream(adaptor,\"token DESC\");\n RewriteRuleTokenStream stream_DESCENDING=new RewriteRuleTokenStream(adaptor,\"token DESCENDING\");\n RewriteRuleTokenStream stream_ID=new RewriteRuleTokenStream(adaptor,\"token ID\");\n\n errorMessageStack.push(\"SORT statement\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:232:2: ( SORT BY i= ID -> ^( SORT $i) | SORT BY i= ID ( DESCENDING | DESC ) -> ^( SORT $i DESC ) )\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( (LA8_0==SORT) ) {\n int LA8_1 = input.LA(2);\n\n if ( (LA8_1==BY) ) {\n int LA8_2 = input.LA(3);\n\n if ( (LA8_2==ID) ) {\n int LA8_3 = input.LA(4);\n\n if ( (LA8_3==SORT||LA8_3==LIMIT||LA8_3==110) ) {\n alt8=1;\n }\n else if ( ((LA8_3>=DESCENDING && LA8_3<=DESC)) ) {\n alt8=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 3, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 1, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 0, input);\n\n throw nvae;\n }\n switch (alt8) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:232:4: SORT BY i= ID\n {\n SORT14=(Token)match(input,SORT,FOLLOW_SORT_in_sortOptions559); \n stream_SORT.add(SORT14);\n\n BY15=(Token)match(input,BY,FOLLOW_BY_in_sortOptions561); \n stream_BY.add(BY15);\n\n i=(Token)match(input,ID,FOLLOW_ID_in_sortOptions565); \n stream_ID.add(i);\n\n\n\n // AST REWRITE\n // elements: SORT, i\n // token labels: i\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_i=new RewriteRuleTokenStream(adaptor,\"token i\",i);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 233:3: -> ^( SORT $i)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:233:6: ^( SORT $i)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_SORT.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_i.nextNode());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:235:4: SORT BY i= ID ( DESCENDING | DESC )\n {\n SORT16=(Token)match(input,SORT,FOLLOW_SORT_in_sortOptions584); \n stream_SORT.add(SORT16);\n\n BY17=(Token)match(input,BY,FOLLOW_BY_in_sortOptions586); \n stream_BY.add(BY17);\n\n i=(Token)match(input,ID,FOLLOW_ID_in_sortOptions590); \n stream_ID.add(i);\n\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:235:17: ( DESCENDING | DESC )\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==DESCENDING) ) {\n alt7=1;\n }\n else if ( (LA7_0==DESC) ) {\n alt7=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 7, 0, input);\n\n throw nvae;\n }\n switch (alt7) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:235:18: DESCENDING\n {\n DESCENDING18=(Token)match(input,DESCENDING,FOLLOW_DESCENDING_in_sortOptions593); \n stream_DESCENDING.add(DESCENDING18);\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:235:29: DESC\n {\n DESC19=(Token)match(input,DESC,FOLLOW_DESC_in_sortOptions595); \n stream_DESC.add(DESC19);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: DESC, i, SORT\n // token labels: i\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_i=new RewriteRuleTokenStream(adaptor,\"token i\",i);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 236:3: -> ^( SORT $i DESC )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:236:6: ^( SORT $i DESC )\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_SORT.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_i.nextNode());\n adaptor.addChild(root_1, stream_DESC.nextNode());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }",
"public void sort(Comparator<Beer> comparator) {\n if(mBeerItems == null) {\n return;\n }\n Collections.sort(mBeerItems, comparator);\n notifyDataSetChanged();\n }",
"public DefaultJavaElementComparator() {\n // initialize default categories\n this.categories = new int[] { // static type\n 1, // static field\n 2, // static initializer\n 3, // static method\n 7, // type\n 6, // field\n 4, // initializer\n 5, // constructor\n 8, // method\n 9 };\n this.collator = Collator.getInstance();\n }",
"private SimplexComparator() {}",
"public static void main(String[] args) {\n Circle[] circles = new Circle[3];\n circles[0] = new Circle(3.6);\n circles[1] = new Circle();\n circles[2] = new Circle(3.5, \"indigo\", false);\n System.out.println(\"Pre-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n\n Comparator circleComparator = new CircleComparator();\n Arrays.sort(circles,circleComparator);\n\n System.out.println(\"After-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n /*ComparableCircle[] circles= new ComparableCircle[3];\n circles[0]= new ComparableCircle(3.6);\n circles[1]=new ComparableCircle();\n circles[2]=new ComparableCircle(\"blue\",true,3.4);\n System.out.println(\"Pre-sorted:\");\n for(ComparableCircle circle:circles) {\n System.out.println(circle);\n }\n System.out.println(circles[0].compareTo(circles[1]));\n System.out.println(circles[1].compareTo(circles[2]));\n System.out.println(circles[0].compareTo(circles[2]));\n\n Arrays.sort(circles);\n\n System.out.println(\"After-sorted: \");\n for(ComparableCircle circle:circles){\n System.out.println(circle);\n }*/\n }",
"public static final Comparator fieldOrder()\n {\n return new Comparator()\n {\n public int compare(Object o1, Object o2)\n {\n int v1 = ((ReportField) o1).getPk().intValue();\n int v2 = ((ReportField) o2).getPk().intValue();\n return v1 - v2;\n }\n };\n }",
"public static Comparator method_1283(Comparator var0) {\n return new class_39(var0);\n }",
"public Sort getSort() {\r\n\t\tif (sortAsc)\r\n\t\t\treturn Sort.by(sortField).ascending();\r\n\r\n\t\treturn Sort.by(sortField).descending();\r\n\t}",
"@Override\n\t\t\tpublic Comparator<HidenMachines> getComparator() {\n\t\t\t\treturn new Comparator<HidenMachines>(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(HidenMachines machine1,\n\t\t\t\t\t\t\tHidenMachines machine2) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn machine1.no-machine2.no;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}",
"public abstract BoundCodeDt<?> getComparatorElement();",
"public PeerGroupAdvComparator() {\n }",
"public static JwComparator<AcPost> getActiveComparator()\n {\n return AcPostTools.instance.getActiveComparator();\n }",
"public int compare(Object o1, Object o2) {\n/* 25 */ Alphabet a1 = (Alphabet)o1;\n/* 26 */ Alphabet a2 = (Alphabet)o2;\n/* */ \n/* 28 */ return a2.order - a1.order;\n/* */ }",
"@Override\n\t public int compare(Player p1, Player p2) {\n\t boolean desc = sortField.startsWith(\"-\");\n\t String fieldToUse = desc ? sortField.substring(1): sortField; \n\n\t try {\n\t String field1 = BeanUtils.getProperty(p1, fieldToUse);\n\t String field2 = BeanUtils.getProperty(p2, fieldToUse);\n\t return (desc) ? field2.compareTo(field1) : field1.compareTo(field2);\n\t } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// Again just for test purposes. Since we are in the service layer \n\t\t\t\t\t\t// and beyond the API. We will throw a Business Logic Exception.\n\t\t\t\t\t\tthrow new BusinessLogicException(e.getMessage(), \n\t\t\t\t\t\t\t\tBusinessErrorCodeEnum.INTERNAL_PROCESSING_ERROR);\n\t\t\t\t\t}\n\t\t\t\t}",
"public int getComparatorLevel() {\n return -1;\n }",
"public DominanceComparator getComparator() {\r\n\t\treturn comparator;\r\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\n\t}",
"@Override\n\t\t\tpublic Comparator<HidenMachines> getComparator() {\n\t\t\t\treturn new Comparator<HidenMachines>(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(HidenMachines machine1,\n\t\t\t\t\t\t\tHidenMachines machine2) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn machine1.name.compareTo(machine2.name);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}",
"protected Comparator<VirtualMachine> makeDecreasingVirtualMachineComparator() {\n return new Comparator<VirtualMachine>() {\n Comparator<Machine> cap_comp = makeDecreasingMachineComparator();\n public int compare(VirtualMachine m0, VirtualMachine m1) {\n int diff = cap_comp.compare(m0, m1);\n if (diff == 0) {\n diff = m0.getJobID() - m1.getJobID();\n if (diff == 0) {\n diff = m0.getIndex() - m1.getIndex();\n }\n }\n return diff;\n }\n };\n }",
"protected abstract Comparator<T> getFallbackComparator();",
"private Sort() { }",
"public final Comparator<? super Node<N>> comparator() {\n return null;\n }",
"protected BaseComparator(boolean nullIsGreater, \r\n boolean sortDescending, \r\n Comparator nestedComparator) {\r\n this.nullIsGreater = nullIsGreater;\r\n this.sortDescending = sortDescending;\r\n this.nestedComparator = nestedComparator;\r\n }",
"public void sort(Comparator<T> comparator, boolean asc) {\n sortWithoutNotify(comparator, asc);\n notifyDataSetChanged();\n }",
"protected Comparator<PhysicalMachine> makeDecreasingPhysicalMachineComparator() {\n return new Comparator<PhysicalMachine>() {\n Comparator<Machine> cap_comp = makeDecreasingMachineComparator();\n public int compare(PhysicalMachine m0, PhysicalMachine m1) {\n int diff = cap_comp.compare(m0, m1);\n if (diff == 0) {\n diff = m0.getID() - m1.getID();\n }\n return diff;\n }\n };\n }",
"private Comparator<Node> boardOrder() {\n return new Comparator<Node>() {\n @Override\n public int compare(final Node o1, final Node o2) {\n int a = o1.theBoard.manhattan() + o1.numberOfMovesMade;\n int b = o2.theBoard.manhattan() + o2.numberOfMovesMade;\n\n return Integer.compare(a, b);\n }\n };\n }",
"public String sortBy();",
"public static void main(String[] args) {\n\t\t\n\t\tEmployee emp1 = new Employee(1,\"Hibachi\",2000000);\n\t\tEmployee emp2 = new Employee(2,\"Budh\",50000000);\n\t\tEmployee emp3 = new Employee(3,\"Som\",1000000);\n\t\tEmployee emp4 = new Employee(4,\"Mangal\",600000);\n\t\tEmployee emp5 = new Employee(5,\"Brihaspati\",7000000);\n\t\t\n\t\tList<Employee> empList = new ArrayList<>();\n\t\tempList.add(emp1);\n\t\tempList.add(emp2);\n\t\tempList.add(emp3);\n\t\tempList.add(emp4);\n\t\tempList.add(emp5);\n\t\t\n\t\t// sorting done using comparable implementation Employee\n\t\tSystem.out.println(\"sorting using comparable. Sorts by default by name\");\n \t\tCollections.sort(empList);\n\t\t\n\t\tempList.forEach(empl -> System.out.println(empl));\n\n\t\t//using comparator in Employee sort the employees by salary\n\t\tCollections.sort(empList, Employee.compareSalary);\n\t\tSystem.out.println(\"*****************************************************\");\n\t\tSystem.out.println(\"sorting using comparator. sorts based on salary\");\n\t\tempList.forEach(emp -> System.out.println(emp));\n\t\t\n\t\t\n\t\t//using comparator in Employee sort the employees by id\n\t\tCollections.sort(empList, Employee.compareId);\n\t\tSystem.out.println(\"*****************************************************\");\n\t\tSystem.out.println(\"sorting using comparator. sorts based on Id\");\n\t\tempList.forEach(emp -> System.out.println(emp));\n\t\t\n\t\t\n\t\t//Now let's say we want to use the comparator to sort in descending order\n\t\tComparator<Employee> reverseSortSalaryDescendingOrder = Collections.reverseOrder(Employee.compareSalary);\n\t\tCollections.sort(empList,reverseSortSalaryDescendingOrder );\n\t\tSystem.out.println(\"*****************************************************\");\n\t\tSystem.out.println(\"Salary soreted in reverse order i.e. descending order using same comparator and Collections reverseOrder()\");\n\t\tempList.forEach(empl -> System.out.println(empl));\n\t\t\n\t\t// Or we can reverse using the comparator's own reversed() method. Internally it calls reverseOrder() \n\t\tCollections.sort(empList, Employee.compareSalary.reversed());\n\t\t\n\t\t\n\t}",
"public static Comparator method_1280() {\n return field_713;\n }",
"@Override\n public int compare(T a, T b) {\n for (Comparator<T> comparator : comparators) {\n int cmp = comparator.compare(a, b);\n\n if (cmp != 0) {\n return cmp;\n }\n }\n return 0;\n }",
"public int[] getColumnsOfSpecialComparatorForSorting() {\n return new int[]{0, 1, 2};\n }",
"ColumnSortList.ColumnSortInfo getSortInfo();",
"public static JwComparator<AcCustodySummaryVo> getHashKeyComparator()\n {\n return AcCustodySummaryVoTools.instance.getHashKeyComparator();\n }",
"public String name_of_sort()\r\n\t{\r\n\t\treturn \"Merge sort\";\r\n\t}",
"private static Comparator<String> getItemNameComparator()\n\t{\n\t\tComparator<String> c = new Comparator<String>() {\n\t\t\tpublic int compare(String a, String b)\n\t\t\t{\n\t\t\t\tString help = StandardOptions.HELP.toString();\n\t\t\t\tif (a.equalsIgnoreCase(help))\n\t\t\t\t{\n\t\t\t\t\treturn b.equalsIgnoreCase(help) ? 0 : 1;\n\t\t\t\t}\n\t\t\t\telse if (b.equalsIgnoreCase(help)) // Only b is help, so a < b\n\t\t\t\t{\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\telse // neither are help\n\t\t\t\t{\n\t\t\t\t\treturn a.compareToIgnoreCase(b);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\treturn c;\n\t}",
"public CollectionComparator(Method attributeCaller, boolean descending)\n\t{\n\t\tthis.attributeCaller = attributeCaller;\n\t\tthis.descending = descending;\n\t}",
"public void sort(final int columnIndex, final Comparator<V> comparator) {\r\n\t\tsetComparator(columnIndex, comparator);\r\n\t\tsort(columnIndex);\r\n\t}",
"public compare(){\r\n }",
"protected Sort getSortASC() {\n Sort.Order order = new Sort.Order(Sort.Direction.ASC, \"id\");\n return Sort.by(order);\n }",
"@Test\n\tpublic void testComparator() {\n\t\tComparator<Integer> compare = (left, right) -> { return left > right ? 1: (left < right ? -1 : 0); };\n\t\t\n\t\tassertThat(compare.compare(1,1), is(0));\n\t\tassertThat(compare.compare(1,2), is(-1));\n\t\tassertThat(compare.compare(2,1), is(1));\n\t\t\n\t\t//Callable<String> \n\t\t// String call()\n\t\tCallable<String> sayHello = () -> \"Hello World\";\n\t\ttry {\n\t\t\tassertThat(sayHello.call(), is(\"Hello World\"));\n\t\t}catch(Exception e) { }\n\t\t\n\t\t/*\n\t\tRunnable runMe = () -> { System.out.println(\"Hello from run me!\"); };\n\t\trunMe.run();\n\t\t\n\t\tnew Thread(runMe).start();\n\t\t\n\t\tint test = 10;\n\t\tRunnable perhapsRun = () -> {\n\t\t\tif(test < 10) {\n\t\t\t\tSystem.out.println(\"Hello from run\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Good-bye from run\");\n\t\t\t}\n\t\t};\n\t\ttest = 6;\n\t\tnew Thread(perhapsRun).start();\n\t\t*/\n\t\t\n\t\tPredicate<Integer> odd = n -> n % 2 != 0;\n\t\tPredicate<Integer> positive = n -> n >= 0;\n\t\t\n\t\tPredicate<Integer> oddAndPositive = Predicates.<Integer>and( n -> n % 2 != 0, n -> n >= 0);\n\t\t\n\t\tassertThat(oddAndPositive.test(3), is(true));\n\t}",
"public static final Iterator sort(final Iterator it, final Comparator c) {\n final List l = (List) IterationTools.append(it, new ArrayList());\n Collections.sort(l, c);\n return l.iterator();\n }",
"public static void sort(java.util.List arg0, java.util.Comparator arg1)\n { return; }",
"public static JwComparator<AcWebServiceRequestData> getDataComparator()\n {\n return AcWebServiceRequestDataTools.instance.getDataComparator();\n }",
"@Override\n\t\t\tpublic Comparator<SkillMachines> getComparator() {\n\t\t\t\treturn new Comparator<SkillMachines>(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(SkillMachines machine1,\n\t\t\t\t\t\t\tSkillMachines machine2) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn machine1.no-machine2.no;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}",
"Comparator<O> getObjectComparator();",
"public String doSort();",
"public static void main(String[] args) {\n\t\tList<Product> prodList = new ArrayList<>();\n\t\tprodList.add(new Product(12, \"Refrigerator\", \"Whirlpool\", 43000.00f));\n\t\tprodList.add(new Product(16, \"Mobile\", \"Samsung\", 18000.00f));\n\t\tprodList.add(new Product(11, \"Laptop\", \"Lenovo\", 28300.00f));\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before Sorting\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList);\n\t\t\n\t\tSystem.out.println(\"After Sorting\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tProductNameComparator pnc = new ProductNameComparator();\n\t\tCollections.sort(prodList, pnc);\n\t\t\n\t\tSystem.out.println(\"After Sorting as per name\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList,Collections.reverseOrder());\n\t\t\n\t\tSystem.out.println(\"After Sorting as per desc id\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList,Collections.reverseOrder(pnc));\n\t\t\n\t\tSystem.out.println(\"After Sorting as per desc name\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\t\n\t\tCollections.sort(prodList, (p1,p2)-> p1.getPrice()>p2.getPrice()?1:-1 );\n\t\tSystem.out.println(\"After Sorting as per price\");\n\t\tprodList.forEach(p->System.out.println(p));\n\t\t\n\t\tCollections.sort(prodList, (p1,p2)-> p1.getPrice()<p2.getPrice()?1:-1 );\n\t\tSystem.out.println(\"After Sorting as per desc price\");\n\t\tprodList.forEach(System.out::println);\n\t\t\n\t}",
"public MapVOComparator(boolean isAscending, SortType primarySortType, SortType secondarySortType)\n\t{\n\t\tascending = isAscending;\n\t\tprimarySortingType = primarySortType;\n\t\tsecondarySortingType = secondarySortType;\n\t}",
"@NonNull\r\n public Comparator<FindingData> getFindingComparator() {\r\n return f_findingComparator;\r\n }",
"@Override\r\n public void sort(final IRepository<T> repository,\r\n final Comparator<T> comparator) {\r\n int personLength = 0;\r\n for (T iPerson : repository.toList()) {\r\n if (iPerson != null) {\r\n ++personLength;\r\n }\r\n }\r\n for (int i = 1; i < personLength; i++) {\r\n T current = repository.get(i);\r\n int j = i - 1;\r\n while(j >= 0 && comparator.compare(repository.get(j), current) > 0) {\r\n repository.set(j + 1, repository.get(j));\r\n j--;\r\n }\r\n repository.set(j + 1, current);\r\n }\r\n }",
"public DefaultJavaElementComparator(int staticTypeCategory, int staticFieldCategory, int staticInitializerCategory, int staticMethodCategory, int typeCategory, int fieldCategory, int initializerCategory, int constructorCategory, int methodCategory) {\n this.categories = new int[] { staticTypeCategory, staticFieldCategory, staticInitializerCategory, staticMethodCategory, typeCategory, fieldCategory, initializerCategory, constructorCategory, methodCategory };\n this.collator = Collator.getInstance();\n }",
"public ReverseComparator() {\n this(null);\n }",
"public static void main(String[] args) {\n\n Comparator<Integer> comparator = new Comparator<Integer>() {\n @Override\n public int compare(Integer o1, Integer o2) {\n return o1.compareTo(o2);\n }\n };\n\n System.out.println(\" result of comparator :\" + comparator.compare(3,2));\n\n\n /*\n After java8\n */\n\n Comparator<Integer> comparatorLambda = (a, b)-> a.compareTo(b);\n\n\n System.out.println(\" result of comparator lambda is : \"+ comparatorLambda.compare(3,2));\n\n }"
] |
[
"0.6610415",
"0.655877",
"0.6505474",
"0.6454848",
"0.63788575",
"0.6316831",
"0.62774116",
"0.62538517",
"0.61157006",
"0.6080931",
"0.60548",
"0.60458887",
"0.60448855",
"0.6001768",
"0.5995091",
"0.5957365",
"0.5912905",
"0.59019",
"0.58997333",
"0.5890269",
"0.58863115",
"0.58830535",
"0.5882008",
"0.587018",
"0.58588797",
"0.58434427",
"0.5843318",
"0.58394593",
"0.5838804",
"0.58330613",
"0.5782101",
"0.5734011",
"0.572318",
"0.57218885",
"0.57118917",
"0.57002604",
"0.5653583",
"0.56218636",
"0.5619604",
"0.56120855",
"0.5605578",
"0.5587601",
"0.5567384",
"0.55436295",
"0.55388993",
"0.5524719",
"0.5521447",
"0.55212253",
"0.5516541",
"0.5497923",
"0.54967946",
"0.5475766",
"0.5472996",
"0.54668987",
"0.5456175",
"0.5455223",
"0.54476076",
"0.54330665",
"0.54169154",
"0.54114485",
"0.5411371",
"0.5407996",
"0.539938",
"0.53943235",
"0.5389528",
"0.5369027",
"0.5359774",
"0.5353226",
"0.53322124",
"0.53318465",
"0.5326326",
"0.5325304",
"0.5320337",
"0.5317648",
"0.53166056",
"0.52987456",
"0.5298439",
"0.52947676",
"0.5279547",
"0.5278135",
"0.52760386",
"0.52645725",
"0.5249919",
"0.5248405",
"0.52461916",
"0.52461016",
"0.52437186",
"0.52418077",
"0.52296454",
"0.52295893",
"0.521685",
"0.5209074",
"0.5205625",
"0.5202215",
"0.5199408",
"0.51973885",
"0.5195131",
"0.51950103",
"0.5186276",
"0.51842356"
] |
0.5425649
|
58
|
constructor with error message
|
public BaseException(String message) {
super(message);
setErrorCode();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Error(String message) {\r\n \tsuper(message);\r\n \t}",
"public Error() {\n }",
"public ErrorMessage() {\n\t}",
"public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }",
"public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }",
"@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }",
"public JDBFException (String message){\r\n super(Messages.message(message));\r\n }",
"public ShopingCartException(String err) {\n\tsuper(err); // call super class constructor\n\tmistake = err; // save message\n }",
"public ValidationException(String msg) {\n\t\tsuper(msg);\n\t}",
"public G_DocumentError() {}",
"private ErrorFactory() {\r\n\t}",
"public NotValidException(String message) {\r\n super(message);\r\n }",
"public SMSLibException() {}",
"public MyException(String message)\n { super(message); }",
"public ValidationFailure(String message) {\n this.message = message;\n }",
"public SintaxException() { //Si se llama con el mensaje por defecto\n super(\"Error de sintaxis en el polinomio\"); //El constructor llama a la clase superior\n }",
"public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }",
"private ResourceDefinitionError(final String description) {\n this.description = description;\n }",
"public LiquidoException(Errors errCode, String msg) {\n\tsuper(msg);\n\tthis.error = errCode;\n }",
"public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }",
"public DukeException(String errorMessage) {\n super(errorMessage);\n }",
"public MessageParseException() {\n }",
"public ArgumentException(String msg) {\n super(msg);\n }",
"public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }",
"public ExecutionError(String message, Error cause) {\n/* 51 */ super(message, cause);\n/* */ }",
"public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}",
"public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }",
"public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }",
"public FullCarException() {\r\n super(\"\");\r\n }",
"private ValidationError() {\n }",
"public JDBFException (String message, Object [] args){\r\n super(Messages.format(message, args));\r\n }",
"public ValidationException(String userMessage, String logMessage) {\r\n super(userMessage, logMessage);\r\n }",
"public ErrorResponse() {\n }",
"public ApiError()\n\t{\n\n\t}",
"public NetworkCallError() {\n }",
"public OLMSException(String message) {\r\n super(message);\r\n }",
"public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }",
"public Error(int code, String msg) {\r\n\tthis.code = code;\r\n\tthis.msg = msg;\r\n }",
"public GotNullException(String message)\n {\n super(message);\n }",
"public NotToBeFriendsException(String errMsg){\n super(\"The error message is \"+errMsg);\n System.err.println(\"make friends failed\");\n }",
"public void testCtor2Accuracy() {\n ContestEligibilityValidatorException exception = new ContestEligibilityValidatorException(MESSAGE);\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n assertEquals(\"Error message is not properly propagated to super class.\", MESSAGE, exception\n .getMessage());\n }",
"public InvalidInputException(String errMessage)\n\t{\n\t\tthis.errMessage = errMessage;\n\t}",
"public JDBFException (String message, Object type){\r\n super(Messages.format(message, type));\r\n }",
"public abstract void setError(String message);",
"public VocabularioIOException(String msg)\n {\n message = msg;\n }",
"public void error(String message);",
"public InvalidRequestMsg() {\n\n this(\"\");\n\n }",
"public ErrorMessage(String nickname, String errorString) {\n super(nickname, MessageType.ERROR);\n this.errorString = errorString;\n }",
"public Exception(String s) {\n\tsuper(s);\n }",
"public CRLException(String message) {\n super(message);\n }",
"public DukeException(String error) {\n super(error);\n }",
"public TwoDAReadException(String message) { super(message); }",
"public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}",
"public DataDiFineTirocinioNonValidaException(String messaggio) {\r\n super(messaggio);\r\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"MyException(String str)\n {\n //parametrize constructor\n super(str);\n }",
"public PetsValidationException(String message) {\n super(message);\n }",
"public ValidationException(String msgKey) {\r\n\t\tsuper(getMessageValue(msgKey));\r\n\t}",
"public FilenameModel(String errorText) {\n this.errorText = errorText;\n\n }",
"public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }",
"private GmailErrorCodes() {\n }",
"public CompilationException(String message) {\n\t\tsuper(message);\n\t}",
"public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}",
"public CryptoException(String err) {\n super(err);\n errMsg = err;\n }",
"public abstract void showInitError(String s);",
"public PolynomialException(String msg) {\n super(msg);\n }",
"public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }",
"public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public ArquivoNaoEncontradoException(String errorMessage) {\n\t\tsuper(errorMessage);\n\t}",
"public Neo4jException(String message) {\n this(\"N/A\", message);\n }",
"public DataConversionException(String msg) {\n super(msg);\n }",
"public ErrorGUI() {\n\t\terror = new Error();\n\t\t\n\t}",
"public InsertErrorException() {\n super(ErrorConstants.DEFAULT_TYPE, MessageContants.CONST_ERROR_CODE_INSERT_FAILURE, Status.INTERNAL_SERVER_ERROR);\n }",
"public ValidationMessage() {\n }",
"public Erreur() {\n\t}",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }",
"public FullCarException(String message) {\r\n super(message);\r\n }",
"public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }",
"public OLMSException() {\r\n super();\r\n }",
"public IplantErrorRepresentation(String errorMessage)\n\t{\n\t\tsuper(\"error\", errorMessage, null);\n\t}",
"public InvalidCommand() {\n this.errorMessage = EMPTY_STRING;\n }",
"public LinkException(String msg) {\n super(msg);\n }",
"public XMLParseException() { super(defaultMessage); }",
"public LexerException(String message) {\n\t\tsuper(message);\n\t}",
"public DataException(String message, String code){\r\n super(message, code);\r\n }",
"public MRFException() {\n\t\tsuper();\n\t}",
"public InvalidUsername(String msg) {\n super(msg);\n }",
"public MessageParseException(String message) {\n super(message);\n }",
"public MyException(){\r\n super(\"Loi sai nhap du lieu!!!!\");// super là nói về lớp cha- đại diện đối tượng cha\r\n }",
"@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createError(final String message) {\n return createError(message, null);\n }",
"public ValidationException(String userMessage, String logMessage, String context) {\r\n super(userMessage, logMessage);\r\n setContext(context);\r\n }",
"public SmartScriptParserException(String message) {super(message);}",
"public User(Message message) {\n\t\tthis.message = message;\n\t\tlogger.info(\"Error has occured :(\");\n\t}",
"public CanyonException( String message )\r\n {\r\n super( message );\r\n }",
"public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}",
"public DataControlException(String msg) {\r\n super(msg);\r\n }",
"public TDLProException(String message)\n {\n super(message);\n }",
"public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }",
"public ShowErrorMessage(@NotNull String str) {\n super(null);\n Intrinsics.checkNotNullParameter(str, \"text\");\n this.a = str;\n }"
] |
[
"0.79731846",
"0.76924187",
"0.7365308",
"0.7257605",
"0.7246013",
"0.7165723",
"0.710336",
"0.7083699",
"0.70731425",
"0.7048703",
"0.70329666",
"0.70011795",
"0.69793147",
"0.6958975",
"0.695703",
"0.69276804",
"0.6907643",
"0.6844017",
"0.6843322",
"0.6833012",
"0.68055063",
"0.67928404",
"0.67912513",
"0.6785097",
"0.6781603",
"0.67760134",
"0.6775959",
"0.67739505",
"0.6763482",
"0.6749276",
"0.6736819",
"0.6736536",
"0.6726816",
"0.67249715",
"0.67238903",
"0.672266",
"0.67198473",
"0.6709141",
"0.6707195",
"0.6697815",
"0.66957617",
"0.66955674",
"0.6692136",
"0.6691298",
"0.6684383",
"0.6683069",
"0.6682",
"0.6676589",
"0.6674746",
"0.6664027",
"0.6656782",
"0.6648412",
"0.6626971",
"0.66138875",
"0.65969235",
"0.6589122",
"0.65885645",
"0.65856194",
"0.6565833",
"0.6564985",
"0.6551256",
"0.6547696",
"0.6538994",
"0.6537821",
"0.6536964",
"0.6525327",
"0.6521051",
"0.65201765",
"0.6519083",
"0.65144044",
"0.6512721",
"0.6511221",
"0.6506876",
"0.65052074",
"0.6504757",
"0.65000707",
"0.64991766",
"0.6493656",
"0.6488833",
"0.6487734",
"0.64875656",
"0.6487373",
"0.6455331",
"0.6455127",
"0.64544165",
"0.6451572",
"0.6449951",
"0.6447132",
"0.6445881",
"0.64409024",
"0.6439643",
"0.6438506",
"0.643766",
"0.6434006",
"0.64325756",
"0.6432233",
"0.64289254",
"0.6421822",
"0.6420122",
"0.64164543"
] |
0.66929734
|
42
|
return the error code
|
public String getErrorCode() {
return errorCode;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getErrcode();",
"int getErrorCode();",
"public int getErrcode() {\n return errcode_;\n }",
"public int getErrcode() {\n return errcode_;\n }",
"public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }",
"public int getErrorCode() {\n return parameter.getErrCode();\n }",
"public int getErrorCode() {\r\n\t\treturn ERROR_CODE;\r\n\t}",
"public int error() {\n return this.error;\n }",
"public int errorCode()\n {\n return edma_errorCode;\n }",
"public int getError() {\n return error;\n }",
"public int getErrorCode()\n\t{\n\t\treturn errorCode;\n\t}",
"public int getErrorCode() {\n return Util.bytesToInt(new byte[]{data[2], data[3], data[4], data[5]});\n }",
"public int getErrorCode() {\n return errorCode_;\n }",
"public int getErrorCode() {\r\n\t\treturn errorCode;\r\n\t}",
"public int getErrorCode() {\n return errorCode;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"int getReturnCode();",
"int getReturnCode();",
"public int getErrorCode() {\n return errorCode_;\n }",
"boolean hasErrcode();",
"public int getErrorCode() {\n\t\treturn errorCode;\n\t}",
"public int getErrorNumber() {\n return errorNumber;\n }",
"public native int getErrorCode() /*-{\n\t\treturn this.target.error.code;\n\t}-*/;",
"public int getErrorType() {\r\n\t\treturn errorType;\r\n\t}",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"public int getErrorCode() {\n\t\treturn this.errorCode;\n\t}",
"public int getErrorCode() {\n return this.errorCode;\n }",
"public String getErrorCode();",
"public ErrorCode errorCode()\n {\n return ErrorCode.get(uint8Get(offset() + ERROR_CODE_FIELD_OFFSET));\n }",
"int getErrorCount();",
"public int DSGetLastError();",
"public String error();",
"public java.lang.String getErrCode () {\r\n\t\treturn errCode;\r\n\t}",
"@Override\r\n\tpublic String getErrorCode() {\n\t\treturn DUP_DATA_CODE;\r\n\t}",
"public int getErrorCode() {\n\n return mErrorCode;\n }",
"int getStatusCode( );",
"public int statusCode(){\n return code;\n }",
"java.lang.String getErr();",
"public java.lang.String getErrCode() {\n return errCode;\n }",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"public String getErrorCode()\n\t{\n\t\treturn errorCode;\n\t}",
"public void handleError(int code);",
"public Integer getCodError() {\r\n\t\treturn codError;\r\n\t}",
"public void error();",
"public int getErrorCode() {\n\t\treturn httpErrorCode;\n\t}",
"public String errorCode() {\n return this.errorCode;\n }",
"int getStatusCode();",
"int getStatusCode();",
"public String getErrorCode() {\r\n return errorCode;\r\n }",
"public abstract int statusCode();",
"public ErrorCode error() {\n return new ErrorCode(alert.getError());\n }",
"@ErrorType\n public int getErrorType() {\n return mErrorType;\n }",
"public int errorChecker()\n\t{\n\t\tboolean error = false;\n\t\tint checker=0; //variable to determine how many 1's in the number\n\t\tint row;\n\t\t\n\t\t//loops through the array identifying parity coverage\n\t\tfor (row=0;row<PARITYCOVERAGE.length; row++)\n\t\t{\n\t\t\t\n\t\t\t//calls the method to count the number of parity bits\n\t\t\tchecker = counter(row, true); \n\t\n\t\t\tint compare = 0; //the default value (odd parity)\n\t\t\t\n\t\t\t//checks whether it is even or odd parity\n\t\t\tif (parityType.contentEquals(\"e\"))\n\t\t\t{\n\t\t\t\t//value for even parity\n\t\t\t\tcompare=1;\n\t\t\t}\n\n\t\t\t//checks to see if the result is even or odd\n\t\t\tif (checker%2 ==compare) \n\t\t\t{\n\t\t\t\terror=true;\n\t\t\t\t\n\t\t\t\t//sets parity bit to 1, if parity is even/odd\n\t\t\t\terrorCode[row]=true;\n\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t//otherwise the bit is 0\n\t\t\t\terrorCode[row]=false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//if an error has been detected\n\t\tif (error)\n\t\t{\n\t\t\t\n\t\t\t//passes the binary code to the covertor\n\t\t\t//and returns the location of the error\n\t\t\treturn (binaryNumber.decimalConverter(errorCode)-1);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//if there is no error, returns a negative value\n\t\treturn -1;\n\t\t\t\t\t\n\t}",
"com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode();",
"java.lang.String getErrmsg();",
"public java.lang.String getErrorCode() {\r\n return errorCode;\r\n }",
"public int getErrorcount() {\n return errorcount;\n }",
"public int errorCount() {\n\t\treturn errorCount;\n\t}",
"public abstract void OnError(int code);",
"void notSupported(String errorcode);",
"public String getReturnCode()\r\n\t{\r\n\t\treturn returnCode;\r\n\t}",
"public Integer getNumError() {\n return numError;\n }",
"public String getFailureCode() {\n return this.failureCode;\n }",
"public int getErrorCount() {\n return this._errorCount;\n }",
"public Integer getErrorCnt() {\r\n return errorCnt;\r\n }",
"public final int getErrorCount()\n\t{\n\t\treturn errorCount_;\n\t}",
"public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }",
"public int getReturnCode() {\n return returnCode_;\n }",
"public int getReturnCode() {\n return returnCode_;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType.valueOf(code_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType.NICK_IN_USE : result;\n }",
"public int getErrorCounter() {\n return errorCounter;\n }",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"protected int getErrorCode(CmisBaseException ex) {\n if (ex instanceof CmisConstraintException) {\n return 409;\n } else if (ex instanceof CmisContentAlreadyExistsException) {\n return 409;\n } else if (ex instanceof CmisFilterNotValidException) {\n return 400;\n } else if (ex instanceof CmisInvalidArgumentException) {\n return 400;\n } else if (ex instanceof CmisNameConstraintViolationException) {\n return 409;\n } else if (ex instanceof CmisNotSupportedException) {\n return 405;\n } else if (ex instanceof CmisObjectNotFoundException) {\n return 404;\n } else if (ex instanceof CmisPermissionDeniedException) {\n return 403;\n } else if (ex instanceof CmisStorageException) {\n return 500;\n } else if (ex instanceof CmisStreamNotSupportedException) {\n return 403;\n } else if (ex instanceof CmisUpdateConflictException) {\n return 409;\n } else if (ex instanceof CmisVersioningException) {\n return 409;\n }\n\n return 500;\n }",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType.valueOf(code_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType.NICK_IN_USE : result;\n }",
"WorldUps.UErr getError(int index);",
"public int getStatusCode() {\n return code;\n }",
"public int getErrorCount() {\n return error_.size();\n }",
"public int getDataSourceErrorCode() {\r\n\t\treturn DATASOURCE_ERROR_CODE;\r\n\t}",
"abstract Integer getStatusCode();",
"int getSocketError() {\n\t\treturn type - getSimpleType();\n\t}",
"public int getReturnCode() {\n return returnCode_;\n }",
"public int getReturnCode() {\n return returnCode_;\n }",
"public int status() {\n\t\treturn code;\n\t}",
"public int getErrors() {\n return errors;\n }",
"public int getErrors() {\n return errors;\n }",
"public String getErrorStatus() {\r\n return errorStatus;\r\n }",
"public int getErrorIndex() {\r\n return textErrorIndex;\r\n }",
"public java.lang.Integer getN_error() {\n return n_error;\n }",
"public int getExceptionNumber(\n ) {return (0);}",
"public int getStatusCode()\n {\n return Integer.parseInt(startLine.split(\" \")[1]);\n }",
"public abstract int getHttpStatusErrorCode();"
] |
[
"0.86431193",
"0.80883425",
"0.8057261",
"0.803618",
"0.78758246",
"0.76894146",
"0.76841074",
"0.7652997",
"0.75913894",
"0.75651044",
"0.7462247",
"0.7459938",
"0.7297022",
"0.7291616",
"0.7274922",
"0.7270449",
"0.72695506",
"0.72695506",
"0.7250577",
"0.72484744",
"0.7229612",
"0.71899277",
"0.71641433",
"0.7149925",
"0.71158254",
"0.71158254",
"0.71158254",
"0.7114342",
"0.7113637",
"0.70880455",
"0.7005502",
"0.697874",
"0.693938",
"0.69344527",
"0.68811065",
"0.6859229",
"0.6816586",
"0.6813636",
"0.6811592",
"0.678502",
"0.67753994",
"0.67655975",
"0.6749651",
"0.6705795",
"0.6704113",
"0.6694771",
"0.6649111",
"0.66382843",
"0.6632166",
"0.6632166",
"0.6631464",
"0.66277033",
"0.66196364",
"0.6618308",
"0.6603822",
"0.65912855",
"0.65891474",
"0.6539185",
"0.6519204",
"0.6517357",
"0.6512436",
"0.6507754",
"0.6483922",
"0.6476825",
"0.647502",
"0.6469275",
"0.6466944",
"0.6446602",
"0.6441966",
"0.6440495",
"0.6440495",
"0.64374256",
"0.6428125",
"0.641887",
"0.6413746",
"0.6413746",
"0.6413746",
"0.6413746",
"0.6413746",
"0.6403113",
"0.6394277",
"0.63901347",
"0.6380211",
"0.637786",
"0.63764906",
"0.63691777",
"0.6357901",
"0.63474685",
"0.63474685",
"0.6345102",
"0.63261825",
"0.6325281",
"0.6323134",
"0.6320827",
"0.630112",
"0.62997353",
"0.6292153",
"0.6291354"
] |
0.65460664
|
59
|
each child class should be set there own error code
|
protected abstract void setErrorCode();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract void OnError(int code);",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public abstract void setError(String message);",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"void setError();",
"protected abstract void error(String err);",
"abstract void error(String error);",
"public void setError(int value) {\n this.error = value;\n }",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\n public void visitErrorNode(ErrorNode node) {\n\n }",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"private ModelValidationException constructClassException (String className, \n\t\tObject relatedField, String keyBase)\n\t{\n\t\treturn constructClassException(ModelValidationException.ERROR, \n\t\t\tclassName, relatedField, keyBase);\n\t}",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"public void handleError(int code);",
"public RightsManagementFailureCode(java.lang.Object instance) {\n super(instance);\n if (instance instanceof JCObject) {\n try {\n String enumName = NetEnum.GetName(classType, (JCObject)instance);\n classInstance = enumReflected.fromValue(enumName);\n } catch (Throwable t) {\n JCOReflector.writeLog(t);\n classInstance = enumReflected;\n }\n } else if (instance instanceof JCEnum) {\n classInstance = (JCEnum)instance;\n }\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"public void Error(){\n }",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }",
"public abstract Error errorCheck(Model m, String command);",
"@Override\n public void onError(int code, String msg) {\n }",
"@Override\n\tpublic void error(String message, Object p0) {\n\n\t}",
"@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void setMyPhoneError() {\n\t\t\n\t}",
"public DAOException(Integer errorCode)\r\n {\r\n super(errorCode);\r\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"public PromoNotFoundException (int promo_error)\n {\n super(\"Promo ID: \");\n this.promo_error=promo_error;\n }",
"public InsertErrorException() {\n super(ErrorConstants.DEFAULT_TYPE, MessageContants.CONST_ERROR_CODE_INSERT_FAILURE, Status.INTERNAL_SERVER_ERROR);\n }",
"public abstract void\n fail(ValidationError error);",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"public void setFieldError(String field, String error) {\n\t\tif (field.equals(\"name\"))\n\t\t\tnameCG.setClassName(\"control-group error\");\n\n\t\telse if (field.equals(\"description\"))\n\t\t\tdescriptionCG.setClassName(\"control-group error\");\n\n\t\telse if (field.equals(\"price\"))\n\t\t\tpriceCG.setClassName(\"control-group error\");\n\t}",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"public ValidatorStandardSubsetBroad() {\n super();\n addErrorKey(ERROR_KEY1);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY1);\n addErrorKey(ERROR_KEY2);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY2); \n }",
"public LiquidoException(Errors errCode, String msg) {\n\tsuper(msg);\n\tthis.error = errCode;\n }",
"abstract void error(String error, Exception[] exceptions);",
"@Override\n public void onResponceError(final ErrorCode errorCode) {\n }",
"public void error() {\n throw new RuntimeException(getClass().getName() + \" error\");\n }",
"public void setError(CharSequence error) {\n/* 1515 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setError(int errorCase) {\n\n\t\tswitch (errorCase) {\n\n\t\tcase 1: {\n\t\t\tthis.error = \"Number should be from 0 to N\";\n\t\t\tbreak;\n\t\t}\n\t\tcase 2: {\n\t\t\tthis.error = \"Base should be from 2 to 25\";\n\t\t\tbreak;\n\t\t}\n\n\t\tdefault: {\n\t\t\tthis.error = null;\n\t\t\tbreak;\n\t\t}\n\n\t\t}\n\t}",
"public void setErrors(int err) {\n errors = err;\n }",
"@Override\n\t\tpublic void loadError() {\n\t\t}",
"public void handleErrors() {\n // hook method\n }",
"public void setErrorCode(int value) {\n this.errorCode = value;\n }",
"public BaseException(String message) {\n super(message);\n setErrorCode();\n }",
"private void setErrorCode(Throwable ex, ErrorResponse errorMessage) {\n errorMessage.setCode(\"1\");\n }",
"protected abstract BuildFailureException newBuildFailureException(int errorCount);",
"private GmailErrorCodes() {\n }",
"public void setErrorCode(int errorCode) {\n this.errorCode = errorCode;\n }",
"@Test\r\n\tpublic void setRelatedFieldError() {\r\n\t\ttry {\r\n\t\t\ttestObj.setRelatedField(0, 1);\r\n\t\t \tfail(\"Expected an IndexOutOfBoundsException to be thrown for setRelatedField\");\r\n\t\t} \r\n\t\tcatch (IndexOutOfBoundsException anIndexOutOfBoundsException) {\r\n\t\t \treturn;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}"
] |
[
"0.65056646",
"0.64665705",
"0.6371069",
"0.6256555",
"0.6107764",
"0.6106705",
"0.6095896",
"0.6047685",
"0.598034",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5970608",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5954895",
"0.5947003",
"0.59401417",
"0.5933253",
"0.5933253",
"0.5933253",
"0.5926962",
"0.5908972",
"0.5908972",
"0.5908972",
"0.5905966",
"0.5903967",
"0.58907956",
"0.58907956",
"0.58907956",
"0.5877997",
"0.58679086",
"0.58616346",
"0.5839177",
"0.58135325",
"0.580701",
"0.5799681",
"0.5787403",
"0.5784935",
"0.5778705",
"0.575039",
"0.5741375",
"0.5730055",
"0.5716116",
"0.5714207",
"0.5707819",
"0.56966364",
"0.5693362",
"0.56827",
"0.5680975",
"0.5678057",
"0.56764346",
"0.5669565",
"0.56644493",
"0.5663586",
"0.5660479",
"0.5657624",
"0.56548524",
"0.56393695",
"0.5633157",
"0.5625316",
"0.5610751",
"0.5610209",
"0.560159",
"0.5587907",
"0.55765224",
"0.55620897",
"0.5558306",
"0.5557123",
"0.5553425",
"0.555242",
"0.55431557",
"0.5533696",
"0.5522731",
"0.5517816",
"0.551598"
] |
0.71068156
|
0
|
Returns an empty instance of this class
|
public static PhoneNumber emptyPhone() {
return EMPTY_PHONE_NUMBER;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Empty getInstance() {\n return instance;\n }",
"public static Query empty() {\n return new Query();\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"@Nonnull\n public static <T> PlayList<T> empty()\n {\n return new PlayList<>();\n }",
"public static Rosters empty()\n\t{\n\t\tList<Player> pList = new ArrayList<Player>();\n\t\treturn new Rosters(pList);\n\t}",
"@Override public Graph<String> emptyInstance() {\n return new ConcreteVerticesGraph<String>();\n }",
"public static TracingMetadata empty() {\n return EMPTY;\n }",
"public static UserAggregate buildEmpty() {\n return new UserAggregate();\n }",
"public static UserRegistryImposition none() {\n return of(Registry.empty());\n }",
"default Empty getEmptyObject() {\n return null;\n }",
"public static Scope empty(){\n return EMPTY;\n }",
"public static LinkedList createEmpty(){\n return new LinkedList();\n }",
"public None()\n {\n \n }",
"@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}",
"public ResourceCollection<T> emptyPage() {\n if (empty == null) {\n empty = new ResourceCollectionEmpty<>(); // can't create this in the ctor\n }\n return empty;\n }",
"@Override\n\tpublic Graph<String> emptyInstance() {\n\t\treturn new ConcreteEdgesGraph();\n\t}",
"public static NonpositiveRequiredCapabilityMatch newEmptyMatch() {\r\n return new Mutable(null, null, null, null);\r\n }",
"static Set createEmpty() {\n return new EmptySet();\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public static Object builder() {\n\t\treturn null;\n\t}",
"protected E getEmptyObject() {\n try {\n ParameterizedType type = (ParameterizedType) getClass().getGenericSuperclass();\n Class<E> eClazz = (Class<E>) type.getActualTypeArguments()[0];\n\n return eClazz.newInstance();\n } catch (InstantiationException | IllegalAccessException ex) {\n return null;\n }\n }",
"public static FeatureSet empty() {\n return new FeatureSet(ImmutableSet.of(), ImmutableSet.of());\n }",
"public void makeEmpty();",
"public void makeEmpty();",
"static <V> Value<V> empty() {\n return new ImmutableValue<>((V) null);\n }",
"public Instance() {\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"static <R,C> DataFrame<R,C> empty() {\n return DataFrame.factory().empty();\n }",
"public EfficientTerminalSet empty() {\n return new EfficientTerminalSet(terminals, indices, new int[data.length]);\n }",
"public static DuplicateNameMatch newEmptyMatch() {\r\n return new Mutable(null, null);\r\n }",
"private Node() {\n // Start empty.\n element = null;\n }",
"public static AddressableDataFile getEmptyImmutableDataFile() {\n return new EmptyDataFile();\n }",
"protected abstract T _createEmpty(DeserializationContext ctxt);",
"public static Composition empty(int width, int height) {\n Canvas canvas = new Canvas(width, height);\n Composition comp = new Composition(canvas);\n return comp;\n }",
"public static VehicleSlowsDownMeasurements.Match newEmptyMatch() {\n return new Mutable(null, null, null);\n }",
"public CLElenco() {\n /** rimanda al costruttore di questa classe */\n this(null);\n }",
"public Dataset getEmptyDataset() {\r\n\t\treturn InitialData.emptyClone();\r\n\t}",
"public ShadowOperation createEmptyShadowOperation() {\n\t\treturn new ShadowOperation();\n\t}",
"@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}",
"public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}",
"public static CommandElement none() {\n return NONE;\n }",
"public abstract void makeEmpty();",
"@Override\n public void clear() {\n initialize();\n }",
"public static <T>\n LazyList<T> empty() {\n return EMPTY;\n }",
"EmptyType createEmptyType();",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"protected SimpleTypeImpl getSimpleNoCollection() {\n return new SimpleTypeImpl(\"simpleNameSpace\", SIMPLE_TYPE_NAME, null);\n }",
"public static ConstraintEvaluator emptyEvaluator()\n {\n return new ConstraintEvaluator(null, SchemaBuilder.newBuilder().build(), new Constraints(new HashMap<>(), Collections.emptyList(), Collections.emptyList(), DEFAULT_NO_LIMIT));\n }",
"public EmptyType() {\n super(\"<EMPTY>\");\n }",
"public View getEmptyView() {\n return mEmptyLayout;\n }",
"public static ArticleFilter none() {\n return new ArticleFilter() {\n @Override public boolean testArticle(PubmedArticle article) {\n return false;\n };\n };\n }",
"private Test emptyTest() {\n return new TestSuite();\n }",
"public static Change empty() { return empty; }",
"public AllDifferent()\n {\n this(0);\n }",
"private ContentUtil() {\n // do nothing\n }",
"@SuppressWarnings(\"unused\")\n public Item() {\n }",
"private XmlFactory() {\r\n /* no-op */\r\n }",
"public Builder()\n {\n this(\"\", \"\");\n }",
"public Builder clearAlive() {\n copyOnWrite();\n instance.clearAlive();\n return this;\n }",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"final Truerandomness defaultInstance() {\n\n\t\ttry {\n\t\t\treturn newInstance();\n\t\t} catch (Throwable t) {\n\t\t\t// hide\n\t\t}\n\n\t\t// not supported\n\t\treturn null;\n\t}",
"private SingleObject(){}",
"public static Value makeNone() {\n return theNone;\n }",
"@Override\n public Object build() {\n return null;\n }",
"@Override\n public Object build() {\n return null;\n }",
"protected EmptyIterator() {\n\t\t\tsuper();\n\t\t}",
"private Default()\n {}",
"public static DefaultExpression empty() { throw Extensions.todo(); }",
"Cell() {\r\n\t\tstate = CellState.EMPTY;\r\n\t}",
"public void clear() {\r\n init();\r\n }",
"public Nota() {\n }",
"public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public Pleasure() {\r\n\t\t}",
"private EmptySet() {}",
"public static LogEvent createEmptyEvent()\n\t{\n\t\treturn new LogEvent();\n\t}",
"private static KafkaUserQuotas emptyQuotas() {\n KafkaUserQuotas emptyQuotas = new KafkaUserQuotas();\n emptyQuotas.setProducerByteRate(null);\n emptyQuotas.setConsumerByteRate(null);\n emptyQuotas.setRequestPercentage(null);\n emptyQuotas.setControllerMutationRate(null);\n\n return emptyQuotas;\n }",
"public AllOne() {\n \n }",
"public CellBackup withoutModified() {\n if (!this.modified) return this;\n return new CellBackup(this.cellRevision, this.techPool, false);\n }",
"public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}",
"public Member() {\n //Empty constructor!\n }",
"public Memory() {\n this(false);\n }",
"@Override\n\tpublic Object clone() {\n\t\treturn null;\n\t}",
"public Cache() {\n this(null);\n }",
"public Builder clearContents() {\n bitField0_ = (bitField0_ & ~0x00000004);\n contents_ = getDefaultInstance().getContents();\n onChanged();\n return this;\n }",
"private SingleObject()\r\n {\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> never() {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\treturn Closeables.emptyCloseable();\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static Metrics createDetached() {\n return new Metrics();\n }",
"static IntSet empty() {\n if (emptySet == null) {\n emptySet = new EmptySet();\n }\n return emptySet;\n }",
"public void makeEmpty( )\n {\n doClear( );\n }",
"public static FilePath empty() {\n return EMPTY;\n }",
"public static <T> CollectionUpdateResult<T> noop() {\n return new CollectionUpdateResult<>(Status.NOOP, null);\n }",
"public Builder clearNoId() {\n\n noId_ = 0L;\n onChanged();\n return this;\n }",
"public Generic(){\n\t\tthis(null);\n\t}",
"Result() {\n empty = true;\n }",
"public Builder clearState() {\n bitField0_ = (bitField0_ & ~0x00000004);\n state_ = 0;\n onChanged();\n return this;\n }",
"@Override\n\tpublic Base getBase() {\n\t\treturn null;\n\t}"
] |
[
"0.74527705",
"0.7078083",
"0.6998747",
"0.68279994",
"0.6733842",
"0.6630634",
"0.6610201",
"0.6608405",
"0.65770215",
"0.656905",
"0.6564851",
"0.6547569",
"0.65080446",
"0.6445754",
"0.64419967",
"0.6436236",
"0.6408827",
"0.6403545",
"0.63761234",
"0.633987",
"0.6315491",
"0.62699497",
"0.6268416",
"0.6268416",
"0.6259911",
"0.62359047",
"0.6226071",
"0.62159914",
"0.6196168",
"0.6187849",
"0.61806583",
"0.6179453",
"0.6178273",
"0.6178117",
"0.6172041",
"0.6167691",
"0.6143036",
"0.6138545",
"0.6106086",
"0.6090604",
"0.60785383",
"0.607148",
"0.6065027",
"0.60603774",
"0.605807",
"0.6045913",
"0.6026211",
"0.6021738",
"0.59953606",
"0.59931386",
"0.5969965",
"0.5941505",
"0.59267277",
"0.5919266",
"0.5917457",
"0.5914992",
"0.5912559",
"0.5909871",
"0.5905742",
"0.58999914",
"0.5895068",
"0.5893086",
"0.58911765",
"0.58819246",
"0.58819246",
"0.58772427",
"0.5875312",
"0.58725065",
"0.58680207",
"0.58560765",
"0.58470374",
"0.5845951",
"0.5845951",
"0.58446306",
"0.58446306",
"0.58446306",
"0.5843959",
"0.583858",
"0.5830897",
"0.58153194",
"0.5813308",
"0.5812217",
"0.5811114",
"0.58105356",
"0.58044815",
"0.5799286",
"0.5798164",
"0.5793516",
"0.57842445",
"0.5775679",
"0.5767017",
"0.57651836",
"0.57651365",
"0.57633495",
"0.5761008",
"0.5758574",
"0.5757354",
"0.5756729",
"0.5755453",
"0.5754668",
"0.5754662"
] |
0.0
|
-1
|
Returns phone number without country code
|
public String getPhoneNumber() {
return mPhoneNumber;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.lang.String getPhoneNumber();",
"java.lang.String getPhoneNumber();",
"java.lang.String getPhoneNumber();",
"java.lang.String getPhonenumber();",
"java.lang.String getPhone();",
"java.lang.String getUserPhone();",
"public static String unformatPhoneNumber(String phoneNo) {\n if (!TextUtils.isEmpty(phoneNo))\n return phoneNo.replaceAll(\"\\\\D\", \"\");\n\n return phoneNo;\n }",
"private String getMyPhoneNO() {\n String mPhoneNumber;\n TelephonyManager tMgr = (TelephonyManager) this.getActivity().getSystemService(Context\n .TELEPHONY_SERVICE);\n mPhoneNumber = tMgr.getLine1Number();\n if(mPhoneNumber == null)\n mPhoneNumber = \"+NoNotFound\";\n return mPhoneNumber;\n }",
"String getPhone(int type);",
"String formatPhoneNumber(String phoneNumber);",
"public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}",
"public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }",
"public java.lang.String getContactPhoneNumber()\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(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"@Override\n public String getphoneNumber() {\n return ((EditText)findViewById(R.id.phoneNumberUserPage)).getText().toString().trim();\n }",
"public String getPhoneNumber() {\r\n return number;\r\n }",
"public String getPhoneNumber() throws NullPointerException {\n\n\t\tString phoneNumber = user.getPhoneNumber();\n\t\tif (phoneNumber == null || phoneNumber.isEmpty()) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\treturn Utils.formatPhoneNumber(phoneNumber);\n\t}",
"public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }",
"public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }",
"public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }",
"com.google.protobuf.ByteString\n getPhoneNumberBytes();",
"private String generatePhone() {\n\t\tString ret = \"\";\n\t\tString[] areaCode = { \"051\", \"055\", \"045\", \"043\", \"053\" };\n\n\t\t// Gets an area code\n\t\tret = areaCode[(new Random()).nextInt(5)];\n\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tint n = (new Random()).nextInt(9);\n\n\t\t\t// Checks if the first number is 0\n\t\t\tif (i == 0 && n == 0) {\n\t\t\t\ti -= 1;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tret += n;\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}",
"public static String beautifyPhone(String phone) {\r\n\t\tif (isNullOrEmpty(phone)) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (phone.startsWith(\"84\")) {\r\n\t\t\treturn \"0\" + phone.substring(2);\r\n\t\t}\r\n\t\tif (phone.startsWith(\"+84\")) {\r\n\t\t\treturn \"0\" + phone.substring(3);\r\n\t\t}\r\n\t\treturn phone;\r\n\t}",
"public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}",
"@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }",
"public static String m21399d(Context context) {\n String str = \"\";\n try {\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n if (telephonyManager != null) {\n str = telephonyManager.getSimCountryIso().toUpperCase();\n }\n } catch (Exception e) {\n C5205o.m21464a((Throwable) e);\n }\n return TextUtils.isEmpty(str) ? Locale.getDefault().getCountry().toString().toUpperCase() : str;\n }",
"public String getPhoneNumberString() {\n return mPhoneNumberString;\n }",
"public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}",
"public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}",
"public String getPhoneNumber()\n\t{\n\t\treturn this._phoneNumber;\n\t}",
"public String getPhone() {\r\n // Bouml preserved body begin 00040C82\r\n\t return phoneNumber;\r\n // Bouml preserved body end 00040C82\r\n }",
"com.google.protobuf.ByteString\n getPhoneNumberBytes();",
"public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n }\n }",
"public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n }\n }",
"public String getPhoneNumber(int n) {\r\n\t\tif(phone.size()>n && n>=0)\r\n\t\t\treturn phone.get(n);\r\n\t\telse\r\n\t\t\treturn null;\t\t\r\n\t}",
"com.google.protobuf.ByteString\n getPhoneNumberBytes();",
"public String getPhonenumber() {\n return phonenumber;\n }",
"public String standardizePhoneNumber() {\r\n StringBuilder phoneNumber = new StringBuilder();\r\n\r\n //retrieves all the digits from the string\r\n for (int i = 0; i < string.length(); i++) {\r\n char temp = string.charAt(i);\r\n if (Character.isDigit(temp)) {\r\n phoneNumber.append(temp);\r\n }\r\n }\r\n if (phoneNumber.length() != 10) {\r\n return \"This WackyString is not a phone number.\";\r\n }\r\n else {\r\n return \"(\" + phoneNumber.substring(0,3) + \") \" + phoneNumber.substring(3,6) + \"-\" + phoneNumber.substring(6);\r\n }\r\n }",
"public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}",
"public String getPhoneNum()\r\n {\r\n return phoneNum;\r\n }",
"public java.lang.String getInternalphone() {\n\treturn internalphone;\n}",
"@java.lang.Override\n public com.google.protobuf.StringValue getPhoneNumber() {\n return phoneNumber_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : phoneNumber_;\n }",
"public String getPhonenumber() {\n\t\treturn phonenumber;\n\t}",
"public String getPhoneNumber() {\n\t\treturn this.phoneNumber;\n\t}",
"public String getPhoneNum() {\n return phoneNum;\n }",
"public String getPhoneNum() {\n return phoneNum;\n }",
"public String getPhoneNum() {\n return phoneNum;\n }",
"public String getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}",
"public String getPhoneNumber() {\r\n return phoneNumber;\r\n }",
"public static String standardizePhoneNumber( String phoneNumber)\n {\n // Write your implementation here\n String res = \"\";\n int count = 0;\n for (int i = 0; i < phoneNumber.length(); i++) {\n char c = phoneNumber.charAt(i);\n if (c >= 48 && c <= 57) {\n count++;\n res += String.valueOf(c);\n if (res.length() == 3 || res.length() == 7)\n res += \"-\";\n }\n if (count > 10) return \"\";\n }\n\n if (count != 10) return \"\";\n return res;\n }",
"int getPhone();",
"@AutoEscape\n\tpublic String getPhone();",
"public String getSenderPhoneNumber();",
"com.google.protobuf.ByteString\n getPhonenumberBytes();",
"public static String canonicalizeMobilePhone(String mobilePhone) \n {\n\t\tif (mobilePhone == null)\n\t\t\treturn null;\n\n\t\t// Check for explicit country code given.\n\t\tboolean hasCountryCode = mobilePhone.matches(\"^\\\\s*\\\\+\");\n\t\t\n\t\t// Keep digits only.\n\t\tString m = mobilePhone.replaceAll(\"\\\\D\", \"\");\n\t\t\n\t\t// If bogus mobilePhone, then return original.\n\t\tif (m.equals(\"\"))\n\t\t\treturn mobilePhone;\n\t\t\n\t\t// Add country code: always Singapore unless otherwise specified.\n\t\tif (!hasCountryCode && !m.startsWith(\"65\")&& m.length() <= 8)\n m = \"65\" + m;\n\t\t\n\t\treturn \"+\" + m;\n\t}",
"public String getPhone_number() {\n return phone_number;\n }",
"public static final String number2show(String phoneNumber) throws Exception {\n\t\tif (phoneNumber == null || phoneNumber.length() == 0) {\n\t\t\treturn phoneNumber;\n\t\t}\n\n\t\tboolean isIpCall = false;\n\n\t\tint lth = phoneNumber.length();\n\t\tif(lth >= CHINA_MOBILE_LDC.length()){\n\t\t\tif (phoneNumber.substring(0, 5).equals(CHINA_MOBILE_LDC)) {\n\t\t\t\tisIpCall = true;\n\n\t\t\t\tphoneNumber = phoneNumber.substring(5);\n\t\t\t}\n\t\t}\n\t\t//phone not encrypt yet, like 10086/955555 etc, it is not a cipher text\n\t\tif (phoneNumber.length() != CIPHER_FIXED_LENGTH) {\n\t\t\t//with '+'\n\t\t\tif (phoneNumber.length() != 22) {\n\t\t\t\tif (isIpCall) {\n\t\t\t\t\treturn CHINA_MOBILE_LDC + phoneNumber;\n\t\t\t\t}\n\t\t\t\treturn phoneNumber;\n\t\t\t} else {\n\t\t\t\t// with '+' maybe\n\t\t\t\t//TODO: strange here\n\t\t\t\tchar first = phoneNumber.charAt(0);\n\t\t\t\tif (first != '+') {\n\t\t\t\t\tif (isIpCall) {\n\t\t\t\t\t\treturn CHINA_MOBILE_LDC + phoneNumber;\n\t\t\t\t\t}\n\t\t\t\t\treturn phoneNumber;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn phoneNumber;\n\t\t}\n\t\tif (phoneNumber.charAt(0) == '+') {\n\t\t\tphoneNumber = phoneNumber.substring(1);\n\t\t}\n\t\t\n\t\t//TODO when input length is 21, can not know it is a \n\t\t//plain text or encrypt text\n\t\t//check the last two bit, if more than 19, return \n\t\tint length = phoneNumber.length();\n\t\tString twobitString = phoneNumber.substring(length - 2);\n\t\tint twobitInt = 0;\n\t\ttry{\n\t\t\ttwobitInt = Integer.parseInt(twobitString);\n\t\t}catch(Exception e){\n\t\t\treturn phoneNumber;\n\t\t}\n\t\t\n\t\tif(twobitInt > CIPHER_FIXED_LENGTH - LAST_TWO_BITS_INDICATOR){\n\t\t\treturn phoneNumber;\n\t\t}\n\t\t//do the real work, it is must the valid encrypt phone\n\t\tString body = unpadding(phoneNumber);\n\n\t\tString realPhone = show(body, TIMES);\n\t\tif (!isEmpty(realPhone) || realPhone.length() >= 2) {\n\t\t\tString with86 = realPhone.substring(0, 2);\n\n\t\t\tif (with86.equals(\"86\")) {\n\t\t\t\trealPhone = realPhone.substring(2);\n\t\t\t}\n\t\t}\n\n\t\tif (isIpCall) {\n\t\t\treturn CHINA_MOBILE_LDC + realPhone;\n\t\t}\n\t\treturn realPhone;\n\t}",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getMyPhoneNumber() {\n return ((TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE))\n .getLine1Number();\n }",
"public java.lang.String getPhone_number() {\n return phone_number;\n }",
"public int getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return phoneNumber;\n }",
"public String getPhoneNumber() {\n return this.phoneNumber;\n }",
"public String getFixedPhone() {\n return fixedPhone;\n }",
"public Long getHome_phone();",
"public Long getMobile_phone();",
"void formatPhoneNumber(String phoneNumber) throws PhoneNumberFormatException;",
"public String cleanPhoneNumber(String string) {\n\t\tstring = string.replaceAll(\"\\\\s\", \"\");\n\t\tif (!string.matches(\n\t\t\t\t\"(\\\\+?1{1})?([\\\\.\\\\,\\\\-]?)(\\\\(?[2-9]{1}[0-9]{2}\\\\)?)([\\\\.\\\\,\\\\-]?)(\\\\(?[2-9]{1}[0-9]{2}\\\\)?)([\\\\.\\\\,\\\\-]?)([0-9]{4})\"))\n\t\t\tthrow new IllegalArgumentException();\n\t\treturn string.replaceAll(\"(^\\\\+?1)?(\\\\W)+\", \"\");\n\t}",
"private void formatPhoneNum() {\n\t\tthis.phoneNum = \"(\" + this.phoneNum.substring(0, 3) + \") \" + this.phoneNum.substring(3, 6) + \" \"\n\t\t\t\t+ this.phoneNum.substring(6);\n\t}",
"public static PhoneNumber emptyPhone() {\n return EMPTY_PHONE_NUMBER;\n }",
"public void getPhoneNumber(ArrayList<String> document) {\r\n String line = \"\";\r\n for(int i = 0; i < document.size(); i++)\r\n {\r\n if(document.get(i).contains(\"Fax:\"))\r\n {\r\n continue;\r\n }\r\n if(document.get(i).contains(\"(\") || document.get(i).contains(\"-\"))\r\n {\r\n line = document.get(i);\r\n break;\r\n }\r\n }\r\n number = line.replaceAll(\"[^\\\\d]\", \"\");\r\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:06.410 -0500\", hash_original_method = \"BFC255CAA5852747525F7A463403B75F\", hash_generated_method = \"5E246E1D734705125312F8B71BE424A7\")\n \nprivate String getCountryNameForNumber(PhoneNumber number, Locale language) {\n String regionCode = phoneUtil.getRegionCodeForNumber(number);\n return (regionCode == null || regionCode.equals(\"ZZ\"))\n ? \"\" : new Locale(\"\", regionCode).getDisplayCountry(language);\n }",
"public String getTelephone() {\n return (String) get(\"telephone\");\n }",
"public java.lang.String getPhone () {\n\t\treturn phone;\n\t}",
"Optional<String> prefixByPhoneNumber(String phoneNumber);",
"public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}",
"public final String getPhone() {\n return phone;\n }",
"public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getCountryCode();",
"java.lang.String getCountryCode();",
"public String cleanPhoneNumber(String string) {\n\t\tString newNumber = \"\"; \n\t\tfor(int i =0; i < string.length(); i++) {\n\t\t\tif(Character.isDigit(string.charAt(i))) {\n\t\t\t\tnewNumber = newNumber + string.charAt(i);\n\t\t\t}\n\t\t}\n\t\t//System.out.println(newNumber);\n\t\tif(newNumber.length() == 10) {\n\t\t\treturn newNumber;\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"number must contain only 10 digits\");\n\t\t}\n\t\t\n\t\t\n\t}",
"public com.google.protobuf.StringValue getPhoneNumber() {\n if (phoneNumberBuilder_ == null) {\n return phoneNumber_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : phoneNumber_;\n } else {\n return phoneNumberBuilder_.getMessage();\n }\n }",
"public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n }\n }",
"public String formatPhoneNumber(String number) {\n return \"+44\" + number.substring(1, 11);\n }",
"@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}",
"public com.google.protobuf.ByteString\n getPhoneNumberBytes() {\n java.lang.Object ref = phoneNumber_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n phoneNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Integer getPhonenumber() {\n return phonenumber;\n }",
"public java.lang.String getTelphone () {\r\n\t\treturn telphone;\r\n\t}",
"public java.lang.String getPstnphone() {\n\treturn pstnphone;\n}",
"public String getSpPhoneNumber() {\r\n return spPhoneNumber;\r\n }",
"private String genSenderID(String phoneNumber) {\r\n String sid = phoneNumber.replaceAll(senderIDRegex, \"\");\r\n return sid.length() > 11 ? sid.substring(sid.length() - 11, sid.length()) : sid;\r\n }"
] |
[
"0.762505",
"0.762505",
"0.762505",
"0.7455709",
"0.7075213",
"0.68710923",
"0.6803568",
"0.66987014",
"0.6572036",
"0.65205556",
"0.6494124",
"0.6485083",
"0.64840436",
"0.6476223",
"0.6467579",
"0.6443556",
"0.6439001",
"0.6424977",
"0.6416403",
"0.6386238",
"0.63812774",
"0.6370543",
"0.6339772",
"0.6337034",
"0.6336575",
"0.6331182",
"0.63135976",
"0.63132375",
"0.6311972",
"0.6309347",
"0.630033",
"0.62979186",
"0.62893444",
"0.62796605",
"0.6275334",
"0.62547225",
"0.62518305",
"0.6240135",
"0.62234133",
"0.6222611",
"0.6207332",
"0.6198938",
"0.6194997",
"0.61828864",
"0.61811495",
"0.61759806",
"0.61759806",
"0.61759806",
"0.61576396",
"0.6155631",
"0.61508673",
"0.6140094",
"0.61373574",
"0.6130685",
"0.6125169",
"0.61168694",
"0.6112973",
"0.61109155",
"0.6091374",
"0.6090927",
"0.6085056",
"0.6066905",
"0.6066368",
"0.6066368",
"0.6066368",
"0.6066368",
"0.6066368",
"0.6066368",
"0.6066368",
"0.6066368",
"0.6066368",
"0.60603184",
"0.60461766",
"0.6044292",
"0.6042551",
"0.6028722",
"0.6025416",
"0.6019677",
"0.6009327",
"0.60088104",
"0.60002506",
"0.5987228",
"0.598486",
"0.59777725",
"0.5971571",
"0.59667027",
"0.595297",
"0.59501356",
"0.59501356",
"0.5948633",
"0.594721",
"0.59431195",
"0.5915669",
"0.5903472",
"0.59017515",
"0.5901514",
"0.58993363",
"0.58980083",
"0.58946836",
"0.58933157"
] |
0.618384
|
43
|
Returns 2 char country ISO
|
public String getCountryIso() {
return mCountryIso;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.lang.String getCountry();",
"java.lang.String getCountry();",
"String toAlpha2(final String iso3166Alpha3);",
"String toAlpha3(final String iso3166Alpha2);",
"java.lang.String getCountryCode();",
"java.lang.String getCountryCode();",
"java.lang.String getCountryName();",
"String getCountryCode();",
"public interface CountryIsoConverter {\n\n /**\n * <p> Converts an ISO 3166 alpha-2 country code to ISO 3166 alpha-3.\n * Example: toAlpha3(\"DE\") would result in \"DEU\".\n * </p>\n * \n * @since 1.8\n * @param iso3166Alpha2 the ISO 3166 alpha-2 country code\n * @return the ISO 3166 alpha-3 conversion of the parameter\n * @throws NullPointerException if parameter iso3166Alpha2 is null\n * @throws IllegalArgumentException if parameter iso3166Alpha2 is not in ISO 3166 alpha-2\n * @throws IsoConversionException if no alpha-3 code is known for the given alpha-2 code\n */\n String toAlpha3(final String iso3166Alpha2);\n\n /**\n * <p> Converts an ISO 3166 alpha-3 country code to ISO 3166 alpha-2.\n * Example: toAlpha2(\"DEU\") would result in \"DE\".\n * </p>\n * \n * @since 1.8\n * @param iso3166Alpha3 the ISO 3166 alpha-3 country code\n * @return the ISO 3166 alpha-2 conversion of the parameter\n * @throws NullPointerException if parameter iso3166Alpha3 is null\n * @throws IsoConversionException if no alpha-2 code is known for the given alpha-3 code\n */\n String toAlpha2(final String iso3166Alpha3);\n\n}",
"public java.lang.CharSequence getCountry() {\n return country;\n }",
"private String getCountryName(String name)\r\n {\r\n }",
"public String getCountryName();",
"public static String getCountry(final String rfcLocale) {\n return rfcLocale.contains(DASH)\n ? rfcLocale.toUpperCase(Locale.ENGLISH).substring(3)\n : \"\";\n }",
"public java.lang.CharSequence getCountry() {\n return country;\n }",
"public static String m21399d(Context context) {\n String str = \"\";\n try {\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n if (telephonyManager != null) {\n str = telephonyManager.getSimCountryIso().toUpperCase();\n }\n } catch (Exception e) {\n C5205o.m21464a((Throwable) e);\n }\n return TextUtils.isEmpty(str) ? Locale.getDefault().getCountry().toString().toUpperCase() : str;\n }",
"public java.lang.String getCountry() {\n java.lang.Object ref = country_;\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 if (bs.isValidUtf8()) {\n country_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getCountry() {\n Scanner scanner = new Scanner(System.in);\n\n // Tell User to enter two digit state\n System.out.println(\"Enter two digit country: \");\n\n // Get the two digit state\n String country = scanner.next();\n\n System.out.print(\"You entered: \" + country);\n\n return country;\n\n }",
"public java.lang.String getCountry() {\n java.lang.Object ref = country_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n country_ = s;\n }\n return s;\n }\n }",
"private static String getCountryLocale() {\n return Locale.getDefault().getCountry();\n }",
"public static String getISO3Country(String localeID) {\n/* 477 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Country findByIso2(String iso2);",
"public String getCoutryName(String code) {\n\t\tString countryName = code;\n\t\tif (code.length() == 3) {\n\t\t\tcountryName = jsonCountryAlpha3.getString(code);\n\t\t} else if (code.length() == 2) {\n\t\t\tcountryName = jsonCountryAlpha2.getString(code);\n\t\t}\n\t\tif (countryName == null) {\n\t\t\treturn code;\n\t\t}\n\t\treturn countryName;\n\t}",
"private String getCountry(int countryCode) {\n switch (countryCode) {\n case 1:\n return countryName = \"Korea\";\n case 2:\n return countryName = \"England\";\n case 3:\n return countryName = \"France\";\n default:\n return \"Error\";\n }\n }",
"public IsoCountry getCountry() {\n return country;\n }",
"public String getISO3Country() {\n/* 467 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public String getCountryCode() {\n return normalizedBic.substring(COUNTRY_CODE_INDEX, COUNTRY_CODE_INDEX + COUNTRY_CODE_LENGTH);\n }",
"public String countryCode() {\n return countryCode;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.country;\n\t}",
"Country getCountry();",
"public String getCountry(){\n\t\treturn country;\n\t}",
"public String getCountry(){\n\t\treturn country;\n\t}",
"public java.lang.String getCountry () {\n\t\treturn country;\n\t}",
"public java.lang.String getCountry() {\r\n return country;\r\n }",
"public final String getCountry() {\n\t\treturn country;\n\t}",
"private String getCountry(String id) {\n\t\tif(Utility.keyLevel(id) == 0 ) // It's a country\n\t\t\treturn id;\n\t\telse if(Utility.keyLevel(id) == -1 ) // ZZZ\n\t\t\t return id;\n\t\telse {\n\t\t\t// It's higher admin than level 0. We need to find the country the code is in\n\t\t\tString ctrcode = GeographicMapper.getAlpha3(id.substring(0, 2));\n\t\t\treturn ctrcode;\n\t\t}\n\t}",
"public java.lang.String getCountry() {\n return country;\n }",
"public String getCountry() {\r\n return country;\r\n }",
"public String getCountry() {\n return country;\n }",
"com.google.protobuf.ByteString\n getCountryBytes();",
"public String getCountryName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_NAME);\n\t}",
"public String getCountry() {\r\n return this.country;\r\n }",
"public String getCountry()\n {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public java.lang.String getCountry() {\n return Country;\n }",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"private String countryCode(String address) {\n\t\tint j = address.lastIndexOf('.') + 1;\n\t\tString cc = address.substring(j);\n\t\treturn cc.toLowerCase();\n\t}",
"public String getCountry() {\n return Country;\n }",
"public String getCountry() {\n return country;\n }",
"com.google.protobuf.ByteString\n getCountryBytes();",
"private static String getCountrySim(NgApp ngApp) {\n TelephonyManager tm = (TelephonyManager)ngApp.activity.getSystemService(Context.TELEPHONY_SERVICE);\n return tm.getSimCountryIso();\n }",
"public String getCountryFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.COUNTRY);\n }",
"public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCountryLink(){\n\t\treturn (String)this.entryMap.get(GeoKeys.LOCAL_GEO_COUNTRY_LINK);\n\t}",
"public String getCountryDescription() {\n return (String)getAttributeInternal(COUNTRYDESCRIPTION);\n }",
"String getCountryOfOrigin(long id) throws RemoteException;",
"public String getCountry() {\n\t\treturn addressFormat;\n\t}",
"com.google.protobuf.ByteString\n getCountryNameBytes();",
"public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\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 country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public StrColumn getCountry() {\n return delegate.getColumn(\"country\", DelegatingStrColumn::new);\n }",
"public String getCountryName() {\n return countryName;\n }",
"public String getCountryName() {\n return countryName;\n }",
"public String getCountryName() {\n return countryName;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:06.410 -0500\", hash_original_method = \"BFC255CAA5852747525F7A463403B75F\", hash_generated_method = \"5E246E1D734705125312F8B71BE424A7\")\n \nprivate String getCountryNameForNumber(PhoneNumber number, Locale language) {\n String regionCode = phoneUtil.getRegionCodeForNumber(number);\n return (regionCode == null || regionCode.equals(\"ZZ\"))\n ? \"\" : new Locale(\"\", regionCode).getDisplayCountry(language);\n }",
"public String getcountryCode() {\n return countryCode;\n }",
"public String getCountryCode()\r\n\t{\r\n\t\treturn this.countryCode;\r\n\t}",
"String getIPGeolocationCountryEmbeddedResource();",
"public static String m21409l(Context context) {\n Locale locale = Locale.getDefault();\n return String.format(\"%s_%s\", new Object[]{locale.getLanguage().toLowerCase(), locale.getCountry().toLowerCase()});\n }",
"String getProvincia();",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"public String getCurrencyISO() {\n return MCurrency.getISO_Code(getCtx(), getC_Currency_ID());\n }",
"public ScText newOriginCountryCodeText()\n {\n return newOriginCountryCodeText(\"Origin Country Code\");\n }",
"@JsonGetter(\"countryCodeA3\")\r\n public String getCountryCodeA3 ( ) { \r\n return this.countryCodeA3;\r\n }",
"public String getCapital(String country){\n\n c=db.rawQuery(\"select Capital from Countries where Country = '\"+country+\"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String capital = c.getString(0);\n buffer.append(\"\"+capital);\n }\n return buffer.toString();\n }",
"public java.lang.String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"@ApiModelProperty(value = \"Nation with its own government, occupying a particular territory.\")\n\n@Pattern(regexp=\"^[A-Z]{2,2}$\") \n public String getCountry() {\n return country;\n }",
"public String getNYSIISCode(String s){\n String result = null;\n \n if (s != null && !s.trim().equals(\"\")){\n String temp = s.toUpperCase(Locale.US).trim();\n \n // Standardize the string by removing all punctuations and spaces\n temp = temp.replaceAll(\"[^\\\\w]\", \"\");\n temp = temp.replaceAll(\"[\\\\d]\", \"\");\n \n // Step 1. Replace the first letters of the name\n if (temp.startsWith(\"MAC\")){\n temp = \"MCC\" + temp.substring(3);\n } else if (temp.startsWith(\"KN\")){\n temp = \"NN\" + temp.substring(2);\n } else if (temp.startsWith(\"K\")){\n temp = \"C\" + temp.substring(1);\n } else if (temp.startsWith(\"PH\")){\n temp = \"FF\" + temp.substring(2);\n } else if (temp.startsWith(\"PF\")){\n temp = \"FF\" + temp.substring(2);\n } else if (temp.startsWith(\"SCH\")){\n temp = \"SSS\" + temp.substring(3);\n }\n \n // Step 2. Replace the last letters of the name\n if (temp.endsWith(\"EE\")){\n temp = temp.substring(0, temp.length()-2) + \"Y \";\n } else if (temp.endsWith(\"IE\")){\n temp = temp.substring(0, temp.length()-2) + \"Y \";\n } else if (temp.endsWith(\"DT\") || temp.endsWith(\"RT\") || temp.endsWith(\"RD\") ||\n temp.endsWith(\"NT\") || temp.endsWith(\"ND\")){\n temp = temp.substring(0, temp.length()-2) + \"D \";\n }\n \n // 3. Get the first letter\n result = \"\" + s.charAt(0);\n \n // 4. Encode the String\n char c;\n for (int i = 1; i < temp.length(); i++){\n c = temp.charAt(i);\n \n if (isVowel(c)){\n if (c == 'E' && (i+1 < temp.length() && temp.charAt(i+1) == 'V')) {\n result += \"AF\";\n } else {\n result += \"A\";\n }\n } else if (c == 'Q') {\n result += \"G\";\n } else if (c == 'Z') {\n result += \"S\";\n } else if (c == 'M') {\n result += \"N\";\n } else if (c == 'K'){\n if (i+1 < temp.length() && temp.charAt(i+1) == 'N') {\n result += \"N\";\n } else {\n result += \"C\";\n }\n } else if ((i+3 < temp.length()) && temp.substring(i, i+3).equals(\"SCH\")){\n result += \"SSS\";\n } else if ((i+2 < temp.length()) && temp.substring(i, i+2).equals(\"PH\")){\n result += \"FF\";\n } else if (c == 'H' && (i > 0 && !isVowel(temp.charAt(i-1)) || \n (i+1 < temp.length() && !isVowel(temp.charAt(i+1))))){\n result += temp.charAt(i-1);\n } else if (c == 'W' && (i > 0 && isVowel(temp.charAt(i-1)))){\n result += temp.charAt(i-1);\n } else {\n result += c;\n }\n }\n \n if (result.endsWith(\"S\")) {\n result = result.substring(0, result.length()-1);\n }\n if (result.endsWith(\"AY\")) {\n result = result.substring(0, result.length()-2) + \"Y\";\n }\n if (result.endsWith(\"A\")) {\n result = result.substring(0, result.length()-1);\n }\n \n // 5. Remove duplicate letters\n if (result.length() > 1) {\n c = result.charAt(0);\n for (int i = 1; i < result.length(); i++) {\n if (c == result.charAt(i)) {\n result = result.substring(0, i) + result.substring(i + 1);\n i--;\n } else if (result.length() > i) {\n c = result.charAt(i);\n }\n }\n }\n result = result.trim();\n }\n \n return result;\n }",
"public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }",
"public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }",
"protected static String getLanguageIso3() {\n try {\n return Locale.getDefault().getISO3Language().toLowerCase(Locale.US);\n }\n catch (MissingResourceException e) {\n return LANGUAGE_DEFAULT_ISO3;\n }\n }",
"java.lang.String getRegionCode();",
"@AutoEscape\n\tpublic String getNationality();",
"public String detectCountry(String ip) {\n try {\n if (\"127.0.0.1\".equals(ip)) {\n return \"lv\"; // for test purposes\n }\n GeoIpResponse geoIpResponse = geoIpService.getGeoIpData(ip);\n String country = geoIpResponse.getCountry_code();\n if (StringUtils.hasText(country)) {\n return country.toLowerCase();\n }\n } catch (IOException e) {\n log.error(\"Could not detect country by IP {}. Use default value {}\", ip, defaultCountry, e);\n }\n return defaultCountry.toLowerCase();\n }",
"public static String getCountry(String localeID) {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Integer getCountry() {\n return country;\n }",
"public Integer getCountry() {\n return country;\n }",
"@Override\n\tpublic long getCountryId() {\n\t\treturn _candidate.getCountryId();\n\t}"
] |
[
"0.75122225",
"0.75122225",
"0.7437496",
"0.7226472",
"0.71832806",
"0.71832806",
"0.7098703",
"0.6979567",
"0.68219745",
"0.6766147",
"0.6761635",
"0.6750512",
"0.6696765",
"0.6692498",
"0.6615337",
"0.66069037",
"0.65988785",
"0.65862143",
"0.65388775",
"0.65370417",
"0.6533091",
"0.6520573",
"0.6493563",
"0.6488621",
"0.64593714",
"0.64099157",
"0.638805",
"0.6327843",
"0.63132185",
"0.63102096",
"0.63102096",
"0.62879777",
"0.62763083",
"0.6271754",
"0.6260278",
"0.62379634",
"0.62278223",
"0.62232625",
"0.6218327",
"0.6211726",
"0.6184119",
"0.6181151",
"0.6180328",
"0.6180328",
"0.6180328",
"0.6180328",
"0.6180328",
"0.6180328",
"0.6180328",
"0.61645675",
"0.6162735",
"0.6162735",
"0.6162735",
"0.61477184",
"0.61477184",
"0.61477184",
"0.6134514",
"0.61338234",
"0.61296535",
"0.6119709",
"0.61099964",
"0.60863805",
"0.60748947",
"0.6071325",
"0.606115",
"0.6047743",
"0.6037405",
"0.60211796",
"0.5991527",
"0.59710777",
"0.5940706",
"0.5940706",
"0.5940706",
"0.5935835",
"0.5876621",
"0.5874538",
"0.5845908",
"0.5827822",
"0.582548",
"0.5820494",
"0.5820494",
"0.58163637",
"0.5806305",
"0.5803694",
"0.5786624",
"0.57752687",
"0.57587695",
"0.57587695",
"0.5756048",
"0.57522726",
"0.5752019",
"0.5752019",
"0.57195437",
"0.5710274",
"0.57051295",
"0.5697055",
"0.56904715",
"0.56901604",
"0.56901604",
"0.56900597"
] |
0.67389303
|
12
|
Nurse n = new Nurse(0, "JULIA", "NOWAK", "normalna");
|
private void generate(){
nurses.add(new Nurse(1, "ZUZANNA", "KOWALSKA", "normalna"));
nurses.add(new Nurse(2, "ZOFIA", "WISNIEWSKA", "normalna"));
nurses.add(new Nurse(3, "MAJA", "WOJCIK", "normalna"));
nurses.add(new Nurse(4, "HANNA", "KOWALCZYK", "normalna"));
nurses.add(new Nurse(5, "AMELIA", "KAMINSKA", "normalna"));
nurses.add(new Nurse(6, "ALICJA", "LEWANDOWSKA", "normalna"));
nurses.add(new Nurse(7, "MARIA", "ZIELINSKA", "normalna"));
nurses.add(new Nurse(8, "ALEKSANDRA", "WOZNIAK", "normalna"));
nurses.add(new Nurse(9, "OLIWIA", "SZYMANSKA", "normalna"));
nurses.add(new Nurse(10, "NATALIA", "DABROWSKA", "normalna"));
nurses.add(new Nurse(11, "WIKTORIA", "KOZLOWSKA", "normalna"));
nurses.add(new Nurse(12, "EMILIA", "JANKOWSKA", "bez_nocnych"));
nurses.add(new Nurse(13, "ANTONINA", "WOJCIECHOWSKA", "normalna", 32));
nurses.add(new Nurse(14, "LAURA", "KWIATKOWSKA", "normalna", 24));
nurses.add(new Nurse(15, "POLA", "MAZUR", "normalna", 24));
nurses.add(new Nurse(16, "IGA", "KRAWCZYK", "normalna", 24));
// nurses.add(new Nurse(17, "ANNA", "KACZMAREK", "normalna"));
// nurses.add(new Nurse(18, "LILIANA", "PIOTROWSKA", "normalna"));
// nurses.add(new Nurse(19, "MARCELINA", "GRABOWSKA", "normalna"));
// nurses.add(new Nurse(20, "GABRIELA", "PAWLOWSKA", "normalna"));
// nurses.add(new Nurse(21, "MICHALINA", "MICHALSKA", "normalna"));
// nurses.add(new Nurse(22, "KORNELIA", "ZAJAC", "normalna"));
// nurses.add(new Nurse(23, "NIKOLA", "KROL", "normalna"));
// nurses.add(new Nurse(24, "HELENA", "JABLONSKA", "normalna"));
// nurses.add(new Nurse(25, "JULIA", "WIECZOREK", "normalna"));
// nurses.add(new Nurse(26, "JULIA", "NOWAKOWSKA", "normalna"));
// nurses.add(new Nurse(27, "MILENA", "MAJEWSKA", "normalna"));
// nurses.add(new Nurse(28, "MARTYNA", "WROBEL", "normalna"));
// nurses.add(new Nurse(29, "JAGODA", "STEPIEN", "normalna"));
// nurses.add(new Nurse(30, "MAGDALENA", "OLSZEWSKA", "normalna"));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Nurse()\r\n {\r\n firstName = \"\";\r\n familyName = \"\";\r\n ID = IDCreator;\r\n\t\t\tIDCreator++;\r\n }",
"Student4(int i, String n) {\n id = i;\n name = n;\n\n }",
"public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }",
"Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }",
"public School() {\r\n }",
"public SchoolPerson() {\n }",
"public Student( String name ) {\n sname=name;\n }",
"public Student(){}",
"public Professor()\n\t{\n\t\t//stuff\n\t}",
"Student(int i, String n) {\n id = i;\n name = n;\n }",
"public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}",
"public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }",
"public Student() {\r\n }",
"public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }",
"public TutorIndustrial() {}",
"public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }",
"public Student() {\n }",
"public Student() {\n }",
"public Student() {\n }",
"Student createStudent();",
"public student1(int r)\n {\n this();//calling default constructor\n System.out.println(\"rno = \" + r);\n }",
"Schulleiter createSchulleiter();",
"public Employee(String proffesion) {\n\n this.name = rnd.randomCharName(8);\n this.surname = rnd.randomCharName(7);\n this.hourSalary = rnd.randomNumber(75,100);\n this.profession = proffesion;\n this.workingHour = WORKING_HOURS;\n this.moneyEarned = 0;\n this.moneyEarned = 0;\n this.isAbleTowork = true; \n }",
"public University(String name){\n this.name = name;\n }",
"public Student() {\n \n }",
"public Student()\r\n {\r\n //This is intended to be empty\r\n }",
"public Promo(String n){\nnom = n;\n}",
"student(){\r\n \r\n //constructor\r\n //always same as class name\r\n //we can also have code here\r\n //this will be the first method to be intialised\r\n //can never return a value\r\n number++;// default initialisation\r\n }",
"public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }",
"public Student(Integer age) {\n\n this.age = age;\n }",
"public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }",
"public Hospital() {\n noOfHospitals++; //increase static var by one each time\n // a constructor is called because you add an object\n this.name = \"Hospital X\";\n this.mainUse = \"unknown\";\n this.qualifiedStaff = 0;\n this.otherStaff = 0;\n this.spaces = 0;\n this.stateFunded = false;\n }",
"public StudyGroup()\n {\n s1 = new Student(\"Brianna\", 22, \"Neuroscience\");\n s2 = new Student(\"Noah\");\n s3 = new Student(\"Jenny\", 19, \"Applied Math\");\n s4 = new Student(\"Sean\", 22);\n \n System.out.println(\"Student 1 is \" + s1); // s1 is a Student object\n// i see a memory address\n System.out.println(\"Studnet 2 is \" + s2);\n System.out.println(\"Students in the group\");\n int x = 42;\n System.out.println(\" x is holding \" + x); //int --> Integer\n s1.printName();\n s2.printName();\n s3.printName();\n s4.printName();\n }",
"public Employee(String nama, int usia) {\r\n // Constructor digunakan untuk inisialisasi value, yang di inisiate saat melakukan instantiation\r\n this.nama = nama;\r\n this.usia = usia;\r\n }",
"Student(String name){\n this.name = name;\n }",
"public StudentDemo(){\r\n \r\n \r\n \r\n }",
"public static void createArmy() {\n Unit unitOne = new Unit(\"Unit One\");\n Unit unitTwo = new Unit(\"Unit Two\");\n Unit unitThree = new Unit(\"Unit Three\");\n Unit unitFour = new Unit(\"Unit Four\");\n Unit unitFive = new Unit(\"Unit Five\");\n\n Knight knightOne = new Knight(\"Knight One\");\n Knight knightTwo = new Knight(\"Knight Two\");\n Knight knightThree = new Knight(\"Knight Three\");\n\n General general = new General(\"General\");\n Doctor doctor = new Doctor(\"Doctor\");\n }",
"public Person(String firstName, String lastName) {\r\n name = new Name(firstName, lastName); \r\n id = (int )(Math.random() * 200 + 100);; \r\n }",
"public NhanVien()\n {\n }",
"@Test\n\tpublic void testProfessorConstructor3Params(){\n\t\tString firstname = \"Dennis\";\n\t\tString lastName = \"Ritchie\";\n\t\tlong id = 0451;\n\t\tProfessor testProfessor = new Professor(firstname, lastName, id);\n\t\tAssert.assertEquals(\"Dennis\", testProfessor.getFirstName());\n\t\tAssert.assertEquals(\"Ritchie\", testProfessor.getLastName());\n\t\tAssert.assertEquals(Long.valueOf(0451), testProfessor.getId());\n\t}",
"public Person(String vorname, String nachname) {\n\n\t}",
"public User(String n, int a) { // constructor\r\n name = n;\r\n age = a;\r\n }",
"Employees() { \r\n\t\t this(100,\"Hari\",\"TestLeaf\");\r\n\t\t System.out.println(\"default Constructor\"); \r\n\t }",
"public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }",
"public StudentPlayer() {\n super(\"260719721\");\n }",
"public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }",
"public Bank(){\n this(\"Seneca@York\", 0);\n }",
"public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }",
"public Employee(String firstName, String lastName, String SSN){\r\n this.firstName=firstName;\r\n this.lastName=lastName;\r\n this.SSN=SSN;\r\n }",
"public Human(int theShipType){\n super(theShipType);\n }",
"public StudentPlayer() {\n super(\"260622641\");\n }",
"public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }",
"public School (){\n name = \"Unknown\";\n address = \"Unknown\";\n level = \"Unknown\";\n info = \"Name: \"+name+\"\\tAddress: \"+address+\"\\tLevel: \"+level;\n }",
"public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }",
"public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}",
"@Test\n\tpublic void testProfessorConstructor2params(){\n\t\tString firstname = \"Steven\";\n\t\tString lastName = \"Beaty\";\n\t\tProfessor testProfessor = new Professor(firstname, lastName);\n\t\tAssert.assertEquals(\"Steven\", testProfessor.getFirstName());\n\t\tAssert.assertEquals(\"Beaty\", testProfessor.getLastName());\n\t}",
"public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}",
"public CyanSus() {\n\n }",
"public Person(String inName)\n {\n name = inName;\n }",
"public Lemur(){\r\n //Call to super class\r\n super();\r\n //Set variables\r\n location = \"Madagascar\";\r\n classification = \"Prosimians\";\r\n coat = \"Fur\";\r\n dominantRole = \"Female\";\r\n grooming = \"Use their teeth as a comb\";\r\n age = rand.nextInt((20-1)+1)+1;\r\n weight = Math.random()*((7-1)+1)+1;\r\n }",
"public Student (String first, String last)\n {\n firstName = first;\n lastName = last;\n testScore1 = 0;\n testScore2 = 0;\n testScore3 = 0;\n }",
"public Student() {\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter Student first name: \");\r\n\t\tthis.firstName=in.nextLine();\r\n\t\tSystem.out.print(\"Enter Student last name: \");\r\n\t\tthis.lastName=in.nextLine();\r\n\t\tSystem.out.print(\"1.Infant\\n2.child\\n3.junior\\n4.senior\\nEnter student class level: \");\r\n\t\tthis.gradeYear=in.nextInt();\r\n\t\r\n\t\tsetStudentId();\r\n\t\t\r\n\t\t\r\n\t}",
"public Student(String name) {\n this.name = name;\n }",
"public Warrior(String n)\n {\n\tname = n;\n\tHP = 1300;\n\tstr = 1000;\n\tdef = 400;\n\tdmg = 0.5;\n }",
"public Dice() { \n this(6); /* Invoke the above Dice constructor with value 6. */ \n }",
"public StudentPlayer() {\n super(\"260740998\");\n }",
"public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}",
"public StudentPlayer() {\r\n super(\"260767897\");\r\n }",
"public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }",
"public Surgeon() {\n }",
"public Doctor(String name)\n {\n super(name, \"Dr\");\n }",
"public royalBlueSchool(int sizeE,int sizeF){}",
"public Department() \n {\n name = \"unnamed department\";\n }",
"public Student(String studentId){\n id = studentId;\n }",
"Classroom() {}",
"public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public Patient(String iD, String givenName, String surName)\n {\n super(iD, givenName, surName); \n }",
"public Person(){\n count++;\n System.out.println(\"Creating an object\");\n }",
"public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }",
"public Person() {}",
"Schueler createSchueler();",
"public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}",
"public Person(String name, String lastName, String home, int identificationNumber) {\n this.name = name;\n this.lastName = lastName;\n this.home = home;\n this.identificationNumber = identificationNumber;\n }",
"public Student(String name, Integer age) {\n\n this.name = name;\n this.age = age;\n }",
"public static void main(String[] args) {\n\t\tRoom ru= null;\n\t\t\n\t\tpublic School(Room ru){\n\t\t\tthis.ru= ru;\n\t\t}\n\t\t\n School sc= new School();\n \n\t}",
"public RailRoad() {}",
"public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }",
"public Jeu(){\n Saisie.Initialiser();\n this.premierJoueur = CreationDePersonnage(\"joueur1\");\n this.secondJoueur = CreationDePersonnage(\"joueur2\");\n Combat();\n Saisie.Terminer();\n }",
"public StudentRecord() {}",
"public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }",
"public Argonian()\n\t{\n\t\tthis.race = \"Argonian\";\n\t}",
"public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }",
"public Patient (){\r\n }",
"public Citizen(){\n fullName = \"\";\n email = \"\";\n address = \"\";\n age = 0;\n district = 0;\n resident = false;\n gender = 'M';\n }",
"public StudentAthlete() {\n }",
"public Person() {\n\t\t\n\t}",
"public Person (String _name, int _ID) {\n name = _name;\n ID = _ID;\n }",
"public Student(String name) {\n\n this.name = name;\n }",
"public Vehicle(){\n System.out.println(\"Parking a unknown model Vehicle\");\n numberOfVehicle++;\n }",
"public Individual()\r\n\t{\r\n\t}"
] |
[
"0.78525597",
"0.71050787",
"0.70530105",
"0.6958132",
"0.67922205",
"0.67216593",
"0.66960925",
"0.6681275",
"0.66346014",
"0.66199946",
"0.6610923",
"0.6591792",
"0.65147823",
"0.65114826",
"0.6504006",
"0.64998156",
"0.64964896",
"0.64964896",
"0.64964896",
"0.6495178",
"0.6444333",
"0.6401211",
"0.6397184",
"0.63869256",
"0.6373538",
"0.6369921",
"0.6368198",
"0.6368138",
"0.6352658",
"0.6352063",
"0.6336065",
"0.6328647",
"0.6322636",
"0.6303798",
"0.6301067",
"0.6285377",
"0.62743187",
"0.6257817",
"0.6247619",
"0.6247157",
"0.6238961",
"0.62336624",
"0.6231878",
"0.6226377",
"0.6209672",
"0.6203633",
"0.61788565",
"0.6178433",
"0.61727464",
"0.617259",
"0.6170411",
"0.61596847",
"0.61595076",
"0.6159107",
"0.61482525",
"0.613165",
"0.6131371",
"0.61260355",
"0.6121927",
"0.6120428",
"0.6117913",
"0.61074984",
"0.6106744",
"0.6098546",
"0.6097837",
"0.6092061",
"0.6082375",
"0.608063",
"0.60794026",
"0.6079227",
"0.6076631",
"0.60706615",
"0.6067195",
"0.6064384",
"0.60641223",
"0.6060733",
"0.6052052",
"0.603788",
"0.6034687",
"0.6033261",
"0.60323536",
"0.603073",
"0.60266733",
"0.60230845",
"0.60202277",
"0.6017923",
"0.6006439",
"0.5997938",
"0.5989383",
"0.59783775",
"0.5977276",
"0.5976188",
"0.5975665",
"0.5972484",
"0.5971058",
"0.59689033",
"0.5967848",
"0.59673995",
"0.59656054",
"0.5964094",
"0.59616154"
] |
0.0
|
-1
|
real time this is the place where we have to register/add all the "service/MQ/Endpoint" to the mediator.
|
public void addUser(User user) {
System.out.println("adding user :"+user.toString());
userList.add(user);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void onEndpointConnected(Endpoint endpoint) {}",
"private void setupMqttEndpoint() {\n\n this.mqttEndpoint\n .publishHandler(this::publishHandler)\n .publishAcknowledgeHandler(this::pubackHandler)\n .publishReleaseHandler(this::pubrelHandler)\n .publishReceivedHandler(this::pubrecHandler)\n .publishCompletionHandler(this::pubcompHandler)\n .subscribeHandler(this::subscribeHandler)\n .unsubscribeHandler(this::unsubscribeHandler)\n .disconnectHandler(this::disconnectHandler)\n .closeHandler(this::closeHandler);\n }",
"ManagedEndpoint next();",
"public void initPublicEndpoint() {\n \t//TODO: Register the new Public End Point with in the Content Repository Node\n \tString uniqueId = UUID.randomUUID().toString();\n \t\n \tpublicEndPoint = new JMSEndpoint();\n \tpublicEndPoint.setAddress(uniqueId + \"/public\");\n \t\n \tpublicEndPoint.setProperties(configuration.getBrokerPool().getBroker().getConnections(\"topic\").getParameters());\n \n // save the public endpoint from the registry\n registry.createPublicEndpoint();\n \n publicSender = initPublicSender(new JMSSenderFactory().create(publicEndPoint));\n \t\n \tisPublicEndPointInit = true;\n }",
"@Activate\n public void activate(ComponentContext ctx) {\n try {\n this.serverContainer.addEndpoint(RealTimeWebSocketServerMsgHandler.class);\n LOG.info(\"Hydra Data-collection service Websocket: Server endpoint for key-value stream deployed\"); //endpoint is immediately available //$NON-NLS-1$\n this.serverContainer.addEndpoint(MessageWebSocketServerMsgHandler.class);\n LOG.info(\"Hydra Data-collection service Websocket: Server endpoint for messages deployed\"); //endpoint is immediately available //$NON-NLS-1$\n } catch (DeploymentException e) {\n LOG.error(\"Hydra Data-collection service Websocket: Error occurred while deploying the server endpoint\", e); //$NON-NLS-1$\n }\n }",
"public void addEndpoint(Endpoint endpoint)\n\t\t{\n\t\t\tEndpoint newEndpoint = addNewEndpoint(endpoint.getEntity());\n\t\t\tnewEndpoint.setStatus(endpoint.getStatus());\n\t\t\tnewEndpoint.setState(endpoint.getState());\n\t\t\tfor (Media media : endpoint.getMedias())\n\t\t\t\tnewEndpoint.addMedia(media);\n\t\t}",
"protected void registerReceiverWithMuleService(UMOMessageReceiver receiver, UMOEndpointURI ep)\n throws UMOException\n {\n if (xfireDescriptor == null) {\n // See if the axis descriptor has already been added. This allows\n // developers to override the default configuration, say to increase\n // the threadpool\n xfireDescriptor = (MuleDescriptor)MuleManager.getInstance().getModel().getDescriptor(\n XFIRE_SERVICE_COMPONENT_NAME);\n if (xfireDescriptor == null) {\n xfireDescriptor = createxfireDescriptor();\n }\n else {\n // Lets unregister the 'template' instance, configure it and\n // then register\n // again later\n MuleManager.getInstance().getModel().unregisterComponent(xfireDescriptor);\n }\n // if the axis server hasn't been set, set it now. The Axis server\n // may be set externally\n if (xfireDescriptor.getProperties().get(\"xfire\") == null) {\n xfireDescriptor.getProperties().put(\"xfire\", xfire);\n }\n xfireDescriptor.setContainerManaged(false);\n }\n String serviceName = receiver.getComponent().getDescriptor().getName();\n\n // No determine if the endpointUri requires a new connector to be\n // registed in the case of http we only need to register the new\n // endpointUri if\n // the port is different\n String endpoint = receiver.getEndpointURI().getAddress();\n\n String scheme = ep.getScheme().toLowerCase();\n boolean sync = receiver.getEndpoint().isSynchronous();\n if (scheme.equals(\"http\") || scheme.equals(\"tcp\")) {\n // if we are using a socket based endpointUri make sure it is\n // running synchronously by default\n sync = true;\n receiver.getEndpoint().getProperties().put(HttpConnector.HTTP_METHOD_PROPERTY, \"POST\");\n receiver.getEndpoint().getProperties().put(HttpConstants.HEADER_CONTENT_TYPE, \"text/xml\");\n endpoint += \"/\" + serviceName;\n }\n\n UMOEndpoint serviceEndpoint = new MuleEndpoint(endpoint, true);\n serviceEndpoint.setSynchronous(sync);\n serviceEndpoint.setName(ep.getScheme() + \":\" + serviceName);\n\n // Set the transformers on the endpoint too\n serviceEndpoint.setTransformer(receiver.getEndpoint().getTransformer());\n receiver.getEndpoint().setTransformer(null);\n\n serviceEndpoint.setResponseTransformer(receiver.getEndpoint().getResponseTransformer());\n receiver.getEndpoint().setResponseTransformer(null);\n\n // set the filter on the axis endpoint on the real receiver endpoint\n serviceEndpoint.setFilter(receiver.getEndpoint().getFilter());\n // Remove the Axis filter now\n receiver.getEndpoint().setFilter(null);\n\n // set the Security filter on the axis endpoint on the real receiver\n // endpoint\n serviceEndpoint.setSecurityFilter(receiver.getEndpoint().getSecurityFilter());\n // Remove the Axis Receiver Security filter now\n receiver.getEndpoint().setSecurityFilter(null);\n xfireDescriptor.getInboundRouter().addEndpoint(serviceEndpoint);\n }",
"@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}",
"@Override\n\tpublic Service duplexstreamDeliverMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void init(EndpointConfig arg0) {\n\t\t\r\n\t}",
"static public void register (EndPoint endPoint) {\n\t\tKryo kryo = endPoint.getKryo();\n kryo.register(CommandMessage.class);\n\t}",
"void configureEndpoint(Endpoint endpoint);",
"@Override\n\tpublic Service duplexstreamReceiveMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}",
"@Override\n public void onEndpointConnected(String id, List<String> names) {\n Log.d(TAG, \"endpoint connected: \" + id + \" \" + names);\n }",
"@Override\n public void onEndpointDiscovered(String id, String name) {\n Log.d(TAG, \"endpoint discovered: \" + id + \" \" + name);\n }",
"private Endpoint(Element endpoint)\n\t\t{\n\t\t\tthis.endpointElement = endpoint;\n\t\t\tNodeList mediaNodeList = endpoint.getElementsByTagName(MEDIA_ELEMENT_NAME);\n\t\t\tfor (int i = 0; i < mediaNodeList.getLength(); i++) {\n\t\t\t\tMedia media = new Media((Element) mediaNodeList.item(i));\n\t\t\t\tmediasList.add(media);\n\t\t\t}\n\t\t}",
"UMOEndpointURI getEndpointURI();",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(SAMPLE_ENDPOINT_MESSAGE_MAPPING)\n .setAllowedOrigins(\"*\")\n .withSockJS();\n\n }",
"public void init() {\n configuration.init();\n \n //Connections connections = configuration.getBroker().getConnections(\"topic\");\n Connections connections = configuration.getBrokerPool().getBroker().getConnections(\"topic\");\n \n if (connections == null) {\n handleException(\"Couldn't find the connection factor: \" + \"topic\");\n }\n \n sensorCatalog = new SensorCatalog();\n clientCatalog = new ClientCatalog();\n \n nodeCatalog = new NodeCatalog();\n \n updateManager = new UpdateManager(configuration, sensorCatalog, this);\n updateManager.init();\n \n endpointAllocator = new EndpointAllocator(configuration, nodeCatalog);\n\n registry = new JCRRegistry(this);\n registry.init();\n\n // Initialize Public-End-Point\n if(!isPublicEndPointInit) {\n \tinitPublicEndpoint();\n }\n }",
"void setEndpoint(String endpoint);",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/messages\").withSockJS();\n }",
"@Override\n\tpublic Service duplexstreamResponseMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}",
"public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);",
"private void setupAmqpEndpoits() {\n\n // NOTE : Last Will and Testament Service endpoint is opened only if MQTT client provides will information\n // The receiver on the unique client publish address will be opened only after\n // connection is established (and CONNACK sent to the MQTT client)\n\n // setup and open AMQP endpoint for receiving on unique client control/publish addresses\n ProtonReceiver receiverControl = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_CONTROL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n ProtonReceiver receiverPublish = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_PUBLISH_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.rcvEndpoint = new AmqpReceiverEndpoint(new AmqpReceiver(receiverControl, receiverPublish));\n\n // setup and open AMQP endpoint to Subscription Service\n ProtonSender ssSender = this.connection.createSender(AmqpSubscriptionServiceEndpoint.SUBSCRIPTION_SERVICE_ENDPOINT);\n this.ssEndpoint = new AmqpSubscriptionServiceEndpoint(ssSender);\n\n // setup and open AMQP endpoint for publishing\n ProtonSender senderPubrel = this.connection.createSender(String.format(AmqpPublishEndpoint.AMQP_CLIENT_PUBREL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.pubEndpoint = new AmqpPublishEndpoint(senderPubrel);\n\n this.rcvEndpoint.openControl();\n this.ssEndpoint.open();\n this.pubEndpoint.open();\n }",
"public void addEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().add(endpoint);\r\n }",
"public void registerStompEndpoints(StompEndpointRegistry registry) {\r\n\t\tLog.info(\"WebSocketConfig : registerStompEndpoints : start\");\r\n\t\tregistry.addEndpoint(\"/ws\").withSockJS();\r\n\t\tLog.info(\"WebSocketConfig : registerStompEndpoints : end\");\r\n\t}",
"public interface ImgurNotificationEndpoint {\n\t// todo finish this.\n}",
"protected abstract String getBaseEndpoint();",
"public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}",
"public static void loadEndpoints(){\n\t\tStart.loadEndpoints();\n\t\t//add\t\t\n\t\t//e.g.: get(\"/my-endpoint\", (request, response) ->\t\tmyEndpointGet(request, response));\n\t\t//e.g.: post(\"/my-endpoint\", (request, response) ->\t\tmyEndpointPost(request, response));\n\t}",
"public static EndpointMBean getAddEndpointMBean()\n {\n return new Endpoint(\n \"http://localhost:9080/WebServiceProject/CalculatorService\");\n }",
"@Override\n\tpublic Service duplexstreamReceiveMsgPluginManagerServiceInit(\n\t\t\tList<String> confiList) {\n\t\treturn null;\n\t}",
"@Test\n\tpublic void testRegisterCustomEndpointsMakesExpectedCalls() {\n\n\t\tStompWebSocketEndpointRegistration registration = Mockito.mock(StompWebSocketEndpointRegistration.class);\n\t\tStompEndpointRegistry registry = Mockito.mock(StompEndpointRegistry.class);\n\n\t\twhen(registry.addEndpoint(\"/fiveinarow-example\")).thenReturn(registration);\n\n\t\tGameWebSocketConfig gameWebSocketConfig = new GameWebSocketConfig();\n\t\tgameWebSocketConfig.registerStompEndpoints(registry);\n\n\t\tverify(registry, times(1)).addEndpoint(anyString());\n\t\tverify(registry, times(1)).addEndpoint(\"/fiveinarow-example\");\n\n\t\tverify(registration, times(1)).withSockJS();\n\t}",
"@Override\r\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/server_socket\").withSockJS();\r\n }",
"public void init(EndpointConfig arg0) {\n\t\t\n\t}",
"private TelemetryMessageHandler(){\n super();\n messageList = new TelemetryMessageList();\n telemetryArrivalMap = new TelemetryArrivalMap();\n }",
"@Override\n\tpublic Service duplexstreamDeliverMsgPluginManagerServiceInit(\n\t\t\tList<String> configList) {\n\t\treturn null;\n\t}",
"@Override\n public void startEndpoint() throws IOException, InstantiationException {\n setRunning(true);\n \n rampUpProcessorTask();\n registerComponents();\n\n startPipelines();\n startListener();\n }",
"private void setupBroker(String uri) {\n try {\n broker = BrokerFactory.createBroker(uri);\n\n VirtualDestinationInterceptor interceptor = new VirtualDestinationInterceptor();\n VirtualTopic virtualTopic = new VirtualTopic();\n virtualTopic.setName(\"VirtualOrders.>\");\n virtualTopic.setSelectorAware(true);\n VirtualDestination[] virtualDestinations = { virtualTopic };\n interceptor.setVirtualDestinations(virtualDestinations);\n broker.setDestinationInterceptors(new DestinationInterceptor[]{interceptor});\n\n SubQueueSelectorCacheBrokerPlugin subQueueSelectorCacheBrokerPlugin = new SubQueueSelectorCacheBrokerPlugin();\n BrokerPlugin[] updatedPlugins = {subQueueSelectorCacheBrokerPlugin};\n broker.setPlugins(updatedPlugins);\n\n broker.setUseJmx(false);\n broker.start();\n broker.waitUntilStarted();\n } catch (Exception e) {\n LOG.error(\"Failed creating broker\", e);\n }\n }",
"public interface MnsService {\n\n void init();\n\n String pop();\n\n boolean sendMsg(BaseConsumer.Message entity);\n\n String getTopicName();\n\n void destroy();\n}",
"public SoapAdminDispatcher() {\n\t interfaceMappings = new Hashtable();\n\t //Small hashtable for determing the query interface.\n\t interfaceMappings.put(\"http://www.astrogrid.org/wsdl/RegistryUpdate/v0.1\",\"0.1\");\t \n\t interfaceMappings.put(\"http://www.astrogrid.org/wsdl/RegistryUpdate/v1.0\",\"1.0\");\t \n\t \n }",
"@Override\n public void configure() throws Exception {TODO: implement using data generators\n// final SensorDataProcessor sensorDataProcessor = new SensorDataProcessor();\n//\n// from(restBaseUri() + \"/sensorData?httpMethodRestrict=GET\")\n// .setHeader(\"address\", simple(CONFIG.getSensorAddress()))\n// .setBody(simple(\"\"))\n// .to(\"bulldog:i2c?readLength=2\")\n// .process(sensorDataProcessor)\n// .marshal().json(JsonLibrary.Jackson, true);\n//\n from(\"timer:sensorBroadcast?period=5000\")\n .setBody(simple(\"\\\"temperature\\\" : 10, \\\"humidity\\\" : 100, \"))\n .log(\"firing\")\n .to(\"websocket:weather?sendToAll=true\");\n\n HouseBean houseBean = HouseBean.getInstance();\n\n from(restBaseUri() + \"/all?httpMethodRestrict=GET\")\n .setProperty(\"type\", simple(Object.class.getSimpleName()))\n .bean(houseBean, \"objInfo\")\n .marshal().json(JsonLibrary.Jackson, true);\n\n\n }",
"@Override\n\tpublic Service upstreamDeliverMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}",
"protected void setup() {\n\t\t\t\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\t\t\t\tdfd.setName(getAID());\n\t\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\t\tsd.setType(\"wHOST\");\n\t\t\t\t\tsd.setName(\"wumpus-host-\" + Math.random());\n\t\t\t\t\tdfd.addServices(sd);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDFService.register(this, dfd);\n\t\t\t\t\t\thostMap = new WumpusMapHost();\n\t\t\t\t\t\tSystem.out.println(\"Registered as a host in the DF Service.\");\n\t\t\t\t\t\tlogic = new WumpusLogic();\n\t\t\t\t\t\tlogic.setHostMap(hostMap.getMap());\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tcatch (FIPAException fe) {\n\t\t\t\t\t\tfe.printStackTrace();\n\t\t\t\t\t}\n\t\t\n\t\t// Printing out a message stating that the agent is ready for service.\n\t\tSystem.out.println(\"Wumpus host \"+getAID().getName()+\" is ready.\");\n\t\t\n\t\taddBehaviour(new TickerBehaviour(this, 1000) {\n\t\t\tprotected void onTick() {\n\t\t\t\tmyAgent.addBehaviour(new HandleRequest());\n\t\t\t}\n\t\t});\n\t \t\n\t\t\n\t}",
"@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}",
"@PostConstruct\n private void init() {\n if(properties != null && properties.getOverride()) {\n LOGGER.info(\"############# Override Rabbit MQ Settings #############\");\n\n amqpAdmin.deleteExchange(DIRECT_EXCHANGE);\n amqpAdmin.declareExchange(\n new DirectExchange(DIRECT_EXCHANGE, true, false));\n\n bindingQueue(DIRECT_EXCHANGE, REGISTER_QUEUE,\n DIRECT_REGISTER_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SEND_TEMPLATE_EMAIL_QUEUE,\n SEND_TEMPLATE_EMAIL_QUEUE_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SUBJECT_REQUEST_VOTE_QUEUE,\n SUBJECT_REQUEST_VOTE_QUEUE_ROUTER_KEY);\n }\n }",
"public boolean hasEndpoint() { return true; }",
"public static EndpointMBean getMultiplyEndpointMBean()\n {\n return new Endpoint(\n \"http://localhost:9080/WebServiceProject/CalculatorService\");\n }",
"@Override\n\tprotected void initializeRegionAndEndpoint(ProcessContext context) {\n\t}",
"void addPeerEndpoint(PeerEndpoint peer);",
"@Override\r\n\tpublic void startup()\r\n\t{\n\t\tif (LOG.isDebugEnabled())\r\n\t\t{\r\n\t\t\tLOG.debug(\"starting broker by plugging configured engines\");\r\n\t\t}\r\n\t\tconfigure(broker);\r\n\t\t\r\n\t\t// register this engine for handling new (Un)PlugEvents\r\n\t\tProcessingEngine processing = broker.getEngine(ProcessingEngine.class);\r\n\t\tif (processing == null)\r\n\t\t{\r\n\t\t\tLOG.error(\"no processing engine available for registering event \"\r\n\t\t\t\t\t+ \"handlers\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tprocessing.registerEventClass(PlugEvent.class, this);\r\n\t}",
"@Override\n\tpublic Service duplexstreamDeliverServiceInit() {\n\t\treturn null;\n\t}",
"public interface UMOMessageReceiver extends Lifecycle, UMOConnectable\n{\n /**\n * @return the receivers endpoint\n */\n UMOImmutableEndpoint getEndpoint();\n\n /**\n * @param message\n * @param exception\n */\n // void handleException(Object message, Throwable exception);\n /**\n * @return the component associated with the receiver\n */\n UMOComponent getComponent();\n\n /**\n * @param endpoint the endpoint to listen on\n * @see UMOImmutableEndpoint\n */\n void setEndpoint(UMOImmutableEndpoint endpoint);\n\n /**\n * @param component the component to associate with the receiver. When data is\n * received the component <code>dispatchEvent</code> or\n * <code>sendEvent</code> is used to dispatch the data to the\n * relivant UMO.\n */\n void setComponent(UMOComponent component);\n\n void setConnector(UMOConnector connector);\n\n UMOConnector getConnector();\n\n /**\n * The endpointUri that this receiver listens on\n * \n * @return\n */\n UMOEndpointURI getEndpointURI();\n\n String getReceiverKey();\n\n void setReceiverKey(String key);\n\n UMOMessage routeMessage(UMOMessage message) throws UMOException;\n\n UMOMessage routeMessage(UMOMessage message, boolean synchronous) throws UMOException;\n\n UMOMessage routeMessage(UMOMessage message, UMOTransaction trans, boolean synchronous)\n throws UMOException;\n\n UMOMessage routeMessage(UMOMessage message, OutputStream outputStream) throws UMOException;\n\n UMOMessage routeMessage(UMOMessage message, boolean synchronous, OutputStream outputStream)\n throws UMOException;\n\n UMOMessage routeMessage(UMOMessage message,\n UMOTransaction trans,\n boolean synchronous,\n OutputStream outputStream) throws UMOException;\n\n}",
"private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) {\n stompEndpointRegistry.addEndpoint(\"/stock-list\")\n .setAllowedOrigins(\"*\")\n .withSockJS();\n }",
"@Override\n\tpublic Service upstreamDeliverMsgPluginManagerServiceInit(\n\t\t\tList<String> configList) {\n\t\treturn null;\n\t}",
"public interface AppFooEndpoint {\n}",
"@Override\n\tpublic void registerStompEndpoints(StompEndpointRegistry registry) {\n\t\tregistry.addEndpoint(\"/messages\");\n\n\t\t// Register additional fallback handling using sock-js\n\t\t// (http://myserver.com/ws/rest/messages)\n\t\tregistry.addEndpoint(\"/messages\").withSockJS();\n\n\t}",
"private void initializeRecallServiceManager() {\n\n }",
"private void registerWithService() {\n\n try {\n\n Message msg = Message.obtain(null, TallyDeviceService.MSG_REGISTER_MESSAGE_ACTIVITY);\n if (msg == null) { return; }\n msg.obj = this;\n msg.replyTo = messenger;\n service.send(msg);\n\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Line 306 :: \" + e.getMessage());\n service = null;\n }\n\n }",
"public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public interface AMQPIntegratorService {\n\n\tvoid queueMessage(MailStructure email);\n}",
"public void setEndpoint(com.quikj.server.app.EndPointInterface endpoint) {\n\t\tthis.endpoint = endpoint;\n\t}",
"@Override\n\tpublic Service duplexstreamResponseMsgPluginManagerServiceInit(\n\t\t\tList<String> configList) {\n\t\treturn null;\n\t}",
"@Override\n public void teleopInit() {\n\n }",
"ClientDto register() throws IOException, MlmqException;",
"public void processStart(){\n initWorkerQueue();\n DataBean serverArgs = new DataBean();\n serverArgs.setValue(\"mode\",\"server\");\n serverArgs.setValue(\"messagekey\",\"72999\");\n serverArgs.setValue(\"user\",\"auth\");\n serverArgs.setValue(\"messagechannel\",\"/esb/system\");\n messageClient = new MessageClient(this,serverArgs);\n Helper.writeLog(1,\"starting message server\");\n messageClient.addHandler(this);\n \n }",
"public void addMessageProcessor(String xml) throws AxisFault {\n try {\n OMElement msElem = createElement(xml);\n MessageProcessor messageProcessor =\n MessageProcessorFactory.createMessageProcessor(msElem);\n if (messageProcessor != null && messageProcessor.getName() != null) {\n SynapseConfiguration synapseConfiguration = getSynapseConfiguration();\n String fileName = ServiceBusUtils.generateFileName(messageProcessor.getName());\n messageProcessor.init(getSynapseEnvironment());\n messageProcessor.setFileName(fileName);\n synapseConfiguration.addMessageProcessor(messageProcessor.getName(),\n messageProcessor);\n if(!Boolean.parseBoolean(System.getProperty(\"NonRegistryMode\"))) {\n MediationPersistenceManager mp = getMediationPersistenceManager();\n mp.saveItem(messageProcessor.getName(), ServiceBusConstants.ITEM_TYPE_MESSAGE_PROCESSOR);\n }\n } else {\n String message = \"Unable to create Message Processor \";\n handleException(log, message, null);\n }\n\n } catch (XMLStreamException e) {\n String message = \"Unable to create Message Processor \";\n handleException(log, message, e);\n }\n\n }",
"@Override\r\n\tpublic void startup() {\n\t\tif(!initialized)\r\n\t\t\tinitOperation();\r\n\t\tregisterMBean();\r\n\t}",
"public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }",
"@Override\n protected void onStart() {\n\n try {\n\n executorService = Executors.newFixedThreadPool(1);\n\n cryptoAddressesNetworkServiceDatabaseFactory = new CryptoAddressesNetworkServiceDeveloperDatabaseFactory(pluginDatabaseSystem,pluginId);\n try {\n cryptoAddressesNetworkServiceDatabaseFactory.initializeDatabase();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n //DAO\n cryptoAddressesNetworkServiceDao = new CryptoAddressesNetworkServiceDao(pluginDatabaseSystem, pluginId);\n\n try {\n cryptoAddressesNetworkServiceDao.initialize();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n\n\n // change message state to process again first time\n reprocessPendingMessage();\n\n //declare a schedule to process waiting request message\n startTimer();\n\n }catch (Exception e){\n\n System.out.println(\" -- CRYPTO ADDRESS NS START ERROR \" + e.getMessage());\n e.printStackTrace();\n }\n\n\n\n\n }",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/ws\")\n .setAllowedOrigins(\"*\");\n }",
"public interface OnMessagingServiceConnetcedListenner {\n void onServiceConnected();\n}",
"public void configure() {\n\t\tfrom(\"seda:vxf.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardVxFToMANOProvider\") //returns exception or nothing\n\t\t.log(\"VNFD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"VNFD Onboarding failed!\");\n\n\t\tfrom(\"seda:nsd.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NSD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NSD Onboarding failed!\");\t\t\n\n\t\t\n\t\tfrom(\"seda:nsd.deploy?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deployNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deployed Successfully\").stop()\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deployment failed!\").stop();\t\t\n\n\t\tfrom(\"seda:nsd.deployment.complete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"terminateNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS completed Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS completion failed!\").stop();\n\n\t\tfrom(\"seda:nsd.deployment.delete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deleteNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deleted Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deletion failed!\").stop();\n\t\t\n\t\t//from(\"timer://checkAndDeployTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndDeployExperimentToMANOProvider\").stop();\n\t\t//from(\"timer://checkAndTerminateTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndTerminateExperimentToMANOProvider\").stop();\n\t\t\n\t\tfrom(\"timer://checkAndUpdateRunningDeploymentDescriptors?delay=1m&period=120000\").bean(MANOController.class,\"checkAndUpdateRunningDeploymentDescriptors\").stop();\n\t\t\n\t}",
"public AbstractReceiverRest(String platformEndpoint) {\n \t\tthis(platformEndpoint + SubscriptionService.PATH, platformEndpoint + TopicService.PATH);\n \t}",
"@Override\n\tpublic Service duplexstreamServiceInit() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Service duplexstreamDeliverServiceInit(List<String> configList) {\n\t\treturn null;\n\t}",
"@Override\n public void init(ConfigurationContext cfgCtx, TransportOutDescription transportOut)\n throws AxisFault {\n super.init(cfgCtx, transportOut);\n rabbitMQConnectionFactoryManager = new RabbitMQConnectionFactoryManager(transportOut);\n log.info(\"RabbitMQ AMQP Transport Sender initialized...\");\n\n }",
"public void handleMessage(Message msg) {\n int nRequestType = msg.what;\n switch(nRequestType)\n {\n case WIPER_START_PERIODIC_HI_FREQ_FIXES:\n lPeriod = lHighFreqPeriodMs; // hardcoded to 3.5 sec for now\n if(bIsWifiScanStopped == true){\n registerReceiver(mReceiver, mScanResultIntentFilter);\n bIsWifiScanStopped = false;\n }\n if(bIsNetworkSessionStopped == true){\n locationManager.requestLocationUpdates(locationProvider.getName(),lPeriod, (float)0, locationListener);\n bIsNetworkSessionStopped = false;\n }\n break;\n\n case WIPER_START_PERIODIC_KEEP_WARM:\n lPeriod = lLowFreqPeriodMs;// hardcoded to 5 sec for now\n //Start the Wifi scanner\n if(bIsWifiScanStopped == true){\n registerReceiver(mReceiver, mScanResultIntentFilter);\n bIsWifiScanStopped = false;\n }\n if(bIsNetworkSessionStopped == true){\n locationManager.requestLocationUpdates(locationProvider.getName(),lPeriod, (float)0, locationListener);\n bIsNetworkSessionStopped = false;\n }\n break;\n\n\n case WIPER_STOP_PERIODIC_FIXES:\n case WIPER_SUSPEND:\n if(bIsNetworkSessionStopped == false){\n locationManager.removeUpdates(locationListener);\n bIsNetworkSessionStopped = true;\n }\n if(bIsWifiScanStopped == false){\n unregisterReceiver(mReceiver);\n bIsWifiScanStopped = true;\n }\n break;\n\n case STOP_WIPER_SERVICE:\n if (Config.LOGD)\n {\n Log.d(TAG,\"Ending Wiper Service \");\n }\n stopSelf ();\n break;\n\n default:\n super.handleMessage(msg);\n }\n }",
"@Override\n protected void onStarted() {\n\n super.onStarted();\n\n // No need for discovery services in Archive mode\n if (mIsArchive) return; //TODO: maybe remove this line - should be caught by the NETWORK_NONE case\n\n\n switch (mNetworkType) {\n case BabbleService.NETWORK_NONE:\n Log.i(TAG, \"NONE / Archive\");\n return;\n case BabbleService.NETWORK_WIFI:\n Log.i(TAG, \"WIFI / MDNS\");\n mAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n break;\n case BabbleService.NETWORK_P2P:\n Log.i(TAG, \"P2P\");\n mAdvertiser = P2PService.getInstance(mAppContext);\n break;\n }\n\n // mMdnsAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n\n Log.i(TAG, \"onStarted: Port \"+sDiscoveryPort);\n\n mHttpPeerDiscoveryServer = new HttpPeerDiscoveryServer(sDiscoveryPort, mBabbleNode); //TODO: use next available port?\n try {\n mHttpPeerDiscoveryServer.start();\n mAdvertiser.advertise(); // start mDNS advertising if server started\n mAdvertising = true;\n } catch (IOException ex) {\n //Probably the port is in use, we'll continue without the discovery service\n }\n }",
"public void addEndpoint(String endpoint) {\n\t\tif (sessionMap.putIfAbsent(endpoint, new ArrayList<Session>()) != null)\n\t\t\tLOG.warn(\"Endpoint {} already exists\", endpoint);\n\t\telse\n\t\t\tLOG.info(\"Added new endpoint {}\", endpoint);\n\t}",
"public boolean hasEndpoint2() { return true; }",
"private ResolverService(Peer peer, EndpointService epService)\n {\n super(peer, RESSERVICE_NAME);\n\n // init fields\n initFields();\n \n \n this.epService = epService;\n epService.addListener(serviceName, this); //adding listener to end\n // point service\n\n cache = Cache.createInstance(); //creating cache\n cache.addResource(peer);\n \n\n // get SeedPeerList\n EndpointAddress[] seedPeerList = getSeedURIs();\n \n if (seedPeerList != null && seedPeerList.length > 0)\n {\n int seedListSize = (neighbors > seedPeerList.length ? seedPeerList.length : neighbors);\n seedURI = new EndpointAddress[seedListSize][1];\n for (int i = 0; i < seedListSize; i++)\n {\n seedURI[i][0] = seedPeerList[i];\n }\n }\n// try\n// {\n// mcastURI = new EndpointAddress(null, null, 0);\n// } catch (Exception e)\n// {\n// e.printStackTrace();\n// }\n\n// myPeer = peer;\n peerId = peer.getID().toString(); //TBD kuldeep - Is this needed?\n// peername = myPeer.getName();\n }",
"public void startElement (String uri, String name,\r\n\t\t\t String qName, Attributes atts)\r\n {\r\n if(name.equals(\"manager\"))\r\n {\r\n baseAddress = atts.getValue(\"domainAddress\");\r\n }\r\n \r\n else if(name.equals(\"topic\"))\r\n {\r\n Topic t = new Topic();\r\n t.setName(atts.getValue(\"name\"));\r\n t.setTypeID(atts.getValue(\"type\"));\r\n t.setPort(Integer.parseInt(atts.getValue(\"portID\")));\r\n t.setDomainAddress(baseAddress);\r\n try\r\n {\r\n t.setReplyPort(Integer.parseInt(atts.getValue(\"replyPortID\")));\r\n } \r\n catch (NumberFormatException ex)\r\n {\r\n //ex.printStackTrace();\r\n }\r\n catch (NullPointerException ex)\r\n {\r\n \r\n }\r\n topics.add(t);\r\n }\r\n }",
"@Before\n\tpublic void loadQueueSettings(){\n\t\textendedBeans = new ClassPathXmlApplicationContext(\"applicationContext-messaging-incoming.xml.optional\");\n\t\tIncomingCommandsListener listener = (IncomingCommandsListener) extendedBeans.getBean(\"incomingCommandsListener\");\n\t\tlog.info(listener);\n\t}",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n RemoteSensor remoteSensor = RemoteSensorManager.getInstance().addSensorChannel(ctx);\n QueuerManager.getInstance().addClient(remoteSensor);\n// System.out.println(RemoteSensorManager.getInstance().getRemoteSensorsNamesList().size());\n }",
"public void setupSubscriptions()\n {\n String debug = System.getProperty(\"SAFE.debug\");\n if (debug != null && debug.equalsIgnoreCase(\"true\")) {\n _debug = true;\n }\n \n // get handle to message transport service \n try {\n MessageTransportService mts = (MessageTransportService) this.getBindingSite().getServiceBroker().getService(this,\n MessageTransportService.class,\n null);\n \n // get the name of the domain we are managing\n String domainName = System.getProperty(\"org.cougaar.safe.domainName\");\n if (domainName == null) {\n throw new NullPointerException(\"System property org.cougaar.safe.domainName is not set\");\n } \n\n // create MessageSender and MessageReceiver for DM\n // create local locator and bind MessageReceiver to it\n CougaarMessageTransportService messageTransport = new CougaarMessageTransportService(mts);\n MessageSender sender = messageTransport.newMessageSender();\n MessageReceiver receiver = messageTransport.newMessageReceiver(); \n CougaarLocator myLocator = new CougaarLocator(domainName);\n receiver.bindToLocalLocator(myLocator);\n \n // create Domain Manager\n _dm = new MyDomainManager(domainName,\n receiver,\n sender);\n \n }\n catch (Exception xcp) {\n xcp.printStackTrace();\n }\n \n // BEGIN rehydrate \n \n // rehydrate: get entity descriptions from the blackboard and register them\n // with the domain manager\n Iterator entityDescriptions = query(_entityDescriptionPredicate).iterator();\n Vector nonGuardDescrips = new Vector();\n while (entityDescriptions.hasNext()) { \n KAoSEntityDescription entityDescrip = (KAoSEntityDescription) entityDescriptions.next();\n // register all the guards first\n if (entityDescrip.getEntityType().equals(KAoSConstants.GUARD)) { \n _dm.register(entityDescrip, true);\n }\n else {\n nonGuardDescrips.addElement(entityDescrip);\n }\n }\n // then register the other entities\n for (int i=0; i<nonGuardDescrips.size(); i++) {\n _dm.register((KAoSEntityDescription) nonGuardDescrips.elementAt(i), true);\n }\n \n // rehydrate: get policies from the blackboard and give\n // them to the domain manager\n Iterator policyMsgs = query(_policyMsgPredicate).iterator();\n Vector policyMsgsV = new Vector();\n while (policyMsgs.hasNext()) {\n policyMsgsV.addElement(policyMsgs.next());\n }\n _dm.rehydratePolicies(policyMsgsV);\n \n // END rehydrate\n \n _proposedPolicyUpdate = (IncrementalSubscription) subscribe(_proposedPolicyUpdatePredicate); \n }",
"public interface WebsocketLocalOutputCallbackRegisterService {\n\n public void subscribe(int tenantId, String adaptorName, String topic, Session session);\n\n public void unsubscribe(int tenantId, String adaptorName, String topic, Session session);\n}",
"void setDefaultEndpoint(Endpoint defaultEndpoint);",
"public void register() {\r\n\t\tHandlerSet hs = HandlerSet.getHandlerSet();\r\n\t\ths.addHandler(this);\r\n\t}",
"public void initReceiver() {\n }",
"@MessagingGateway(defaultRequestChannel = \"eventOutput\")\ninterface EventWriter {\n\n @Gateway(requestChannel = \"eventOutput\")\n void writeEvent(Event event);\n}",
"@Override\n\tpublic Service duplexstreamReserveDeliverServiceInit() {\n\t\treturn null;\n\t}",
"public interface INetworkHandlerManager {\n public void registerHandler (String handlerName, INetworkHandler handler);\n public INetworkHandler getHandler (INetworkMessage message);\n}",
"protected void setup() {\n\t\tSystem.out.println(\"Messenger agent \"+getAID().getName()+\" is ready.\");\r\n\t\tagentList = new ArrayList();\r\n\t\trefreshActiveAgents();\r\n\r\n\t\tmessageGUI = new MessageAgentGui(this);\r\n\t\tmessageGUI.displayGUI();\r\n\r\n\t\tDFAgentDescription dfd = new DFAgentDescription();\r\n\t\tdfd.setName(getAID());\r\n\t\tServiceDescription sd = new ServiceDescription();\r\n\t\tsd.setType(\"messenger-agent\");\r\n\t\tsd.setName(getLocalName()+\"-Messenger agent\");\r\n\t\tdfd.addServices(sd);\r\n\t\ttry {\r\n\t\t\tDFService.register(this, dfd);\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\taddBehaviour(new ReceiveMessage());\r\n\t}",
"@Override\r\n\tpublic void register() {\n\t\t\r\n\t}",
"@Override\n\tpublic Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> arg0) {\n\t\tSet<ServerEndpointConfig> result = new HashSet<>();\n//\t\tif (arg0.contains(EchoEndpoint.class)) {\n//\t\t\tresult.add(ServerEndpointConfig.Builder.create(\n//\t\t\t\t\tEchoEndpoint.class,\n//\t\t\t\t\t\"/websocket/echoProgrammatic\").build());\n//\t\t}\n\n\t\treturn result;\t\n\t}",
"@Override\r\n protected Set<Object> serviceInstances(Injector injector) {\r\n return Sets.newHashSet(\r\n injector.getInstance(RabbitMQAPI.class));\r\n }",
"ManagedEndpoint next(EndpointCriteria criteria);",
"public void configure() {\n from(\"as2://\" + PATH_PREFIX + \"/listen?requestUriPattern=/\")\n .to(\"mock:as2RcvMsgs\");\n\n // test route processing exception\n Processor failingProcessor = new Processor() {\n public void process(org.apache.camel.Exchange exchange) throws Exception {\n throw new Exception(PROCESSOR_EXCEPTION_MSG);\n }\n };\n from(\"as2://\" + PATH_PREFIX + \"/listen?requestUriPattern=/process_error\")\n .process(failingProcessor)\n .to(\"mock:as2RcvMsgs\");\n\n // test route for listen with custom MDN parameters\n from(\"as2://\" + PATH_PREFIX\n + \"/listen?requestUriPattern=/mdnTest&from=MdnTestFrom&subject=MdnTestSubjectPrefix\")\n .to(\"mock:as2RcvMsgs\");\n }"
] |
[
"0.6511682",
"0.63555443",
"0.6320652",
"0.61630857",
"0.6058195",
"0.604476",
"0.6017889",
"0.59452707",
"0.59452707",
"0.5935031",
"0.58845943",
"0.5877571",
"0.5861216",
"0.585608",
"0.58519155",
"0.58292073",
"0.58229053",
"0.5821918",
"0.58034986",
"0.57645905",
"0.5761589",
"0.5752854",
"0.5724405",
"0.57192034",
"0.57112104",
"0.56852883",
"0.5684039",
"0.5679346",
"0.5642365",
"0.5639294",
"0.5616733",
"0.5575957",
"0.55692774",
"0.555634",
"0.5544887",
"0.5532529",
"0.5511427",
"0.5509638",
"0.5499243",
"0.5498143",
"0.54950416",
"0.54888165",
"0.5458426",
"0.5446441",
"0.5433988",
"0.5428832",
"0.5424929",
"0.5416267",
"0.5415555",
"0.54090333",
"0.53943276",
"0.53929085",
"0.53859097",
"0.5370501",
"0.53376085",
"0.5324336",
"0.5315299",
"0.5302005",
"0.5299646",
"0.5294705",
"0.5292205",
"0.52846617",
"0.5282326",
"0.52815926",
"0.5281081",
"0.52756685",
"0.5267644",
"0.52639925",
"0.52632666",
"0.5259598",
"0.5256143",
"0.52558523",
"0.52529347",
"0.52490735",
"0.5239486",
"0.5236439",
"0.52327526",
"0.5224366",
"0.52240354",
"0.52232045",
"0.52208644",
"0.5214264",
"0.52046484",
"0.52026963",
"0.5196908",
"0.5177299",
"0.51721364",
"0.5169414",
"0.5167156",
"0.5161806",
"0.5161128",
"0.5157606",
"0.51474464",
"0.51469576",
"0.51435965",
"0.51434016",
"0.5142629",
"0.51422423",
"0.51362884",
"0.513495",
"0.51224345"
] |
0.0
|
-1
|
ajout de la police
|
@Override
public void onBindViewHolder(LeaderboardViewHolder holder, int position) {
Typeface typeface = Typeface.createFromAsset(mCtx.getAssets(), "BTTF.ttf");
//set les margin des paramètres
//params.setMargins(0, 20, 0, 0);
//holder.getmCardView().setAlpha(0.6f);
holder.getmTextViewView().setTextSize(18);
//suivant la position
if(position==0) {
holder.getmCardView().setCardBackgroundColor(Color.parseColor("#ffd700"));
holder.getmImageView().setImageResource(R.drawable.ic_or);
holder.getmTextViewView().setTypeface(typeface);
if(tableaudemerde[0] == null){
holder.getmTextViewView().setText(R.string.iftextnull);
}else{
holder.getmTextViewView().setText("Score : " + String.valueOf(tableaudemerde[position]));
}
}
else if(position==1) {
holder.getmCardView().setCardBackgroundColor(Color.parseColor("#CECECE"));
holder.getmImageView().setImageResource(R.drawable.ic_argent);
holder.getmTextViewView().setTypeface(typeface);
if(tableaudemerde[1] == null){
holder.getmTextViewView().setText(R.string.iftextnull);
}
else{
holder.getmTextViewView().setText("Score : " + String.valueOf(tableaudemerde[position]));
}
}
else if(position==2) {
holder.getmCardView().setCardBackgroundColor(Color.parseColor("#cd7f32"));
holder.getmImageView().setImageResource(R.drawable.ic_bronze);
holder.getmTextViewView().setTypeface(typeface);
if(tableaudemerde[2] == null){
holder.getmTextViewView().setText(R.string.iftextnull);
}
else{
holder.getmTextViewView().setText("Score : " + String.valueOf(tableaudemerde[position]));
}
}
else if(tableaudemerde[position] == null) {
holder.getmTextViewView().setTypeface(typeface);
holder.getmTextViewView().setText(">");
holder.getmTextViewView().setTextSize(30);
holder.getmImageView().setImageResource(R.drawable.delorean1);
}
else {
holder.getmTextViewView().setTextSize(20);
holder.getmTextViewView().setTypeface(typeface);
holder.getmTextViewView().setText("Score : " + String.valueOf(tableaudemerde[position]));
holder.getmImageView().setImageResource(R.drawable.ic_trophee);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }",
"public PoliceEdit() {\n initComponents();\n showDate();\n showTime();\n PoliceEdit();\n \n\n }",
"public AdminJP() {\n initComponents();\n aplicarTextPrompt();\n }",
"public void mostrarInformacion(){\n mostrarInformacionP();\n }",
"public void action() {\n\t\t\n\t\tjugar.setOnAction(f->{\n\n\t\t\tMain.pantallaPersonaje();\n\t\t});\n\t\n\t\tpuntajes.setOnAction(f->{\n\t\t\tMain.pantallaPuntajes();\n\t\t});\n\t\n\t\n\t}",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }",
"@Override protected void cadastroAction() {\n try {\n // JOptionPane.showMessageDialog(this, codigoTxtField.getText() +\n // descricaoTextArea.getText() + capacidadeTxtField.getText(),\n // \"teste\", JOptionPane.INFORMATION_MESSAGE, null);\n MaintainRoom.getInstance().insertRooms(codigoTxtField.getText(), descricaoTextArea.getText(), capacidadeTxtField.getText());\n\n JOptionPane.showMessageDialog(this, \"Sala Cadastrada com sucesso\", \"Sucesso\", JOptionPane.INFORMATION_MESSAGE, null);\n this.setVisible(false);\n\n } catch (PatrimonyException ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"Erro\", JOptionPane.ERROR_MESSAGE, null);\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(this, ex.getSQLState() + \"\\n\" + ex.getMessage(), \"Erro\", JOptionPane.ERROR_MESSAGE, null);\n }\n\n }",
"@Test\n public void crearIC(){\n WebDriverWait wait = new WebDriverWait(driver, 30);\n //Thread.sleep(50000);\n ingenieria.completarNombre(\"Prueba Automatizada\");\n ingenieria.completarProyecto(60241342,3059083);\n ingenieria.buscarProyecto();\n //Se realiza una espera para que se visualicen los checkboxes.\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@class = 'ui-radiobutton-icon ui-icon ui-icon-blank ui-c']\")));\n ingenieria.seleccionarProyecto();\n ingenieria.crearProyecto();\n //Se realiza una espera para que se visualice la pagina de creacion.\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"formIngDet:numeroIng\")));\n ingenieria.completarPlanilla(\"prueba\", \"ALTA\",\"prueba@claro.com.ar\");\n ingenieria.crearIngenieria();\n Assert.assertEquals(driver.findElement(By.id(\"growlError_container\")).getText(),\"\");\n }",
"private void ajouterParametre() {\n FenetreAjouterParametre fenetreAjouterParametre = new FenetreAjouterParametre();\n fenetreAjouterParametre.showAndWait();\n if (fenetreAjouterParametre.getParametre() == null) return;\n parametreListView.getItems().add(fenetreAjouterParametre.getParametre());\n }",
"@Override\n\tpublic void EjecutaGui() {\n\t\tSystem.out.println(\"Ejecucion en ventana del ejercicio 2 del grupo 3\");\n\t}",
"public void visualizarMensaje(Object pila);",
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }",
"public void sendPoll() {\n CreatePollLogic.sendPoll(pollOptions, questionArea, publicResults);\n }",
"public void msgErreur(){\n \n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Entrée invalide\");\n alert.setHeaderText(\"Corriger les entrées invalides.\");\n alert.setContentText(\"Les informations entrées sont erronnées\");\n\n alert.showAndWait();\n \n\n}",
"public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}",
"private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }",
"private void createSendArea() {\n\t\tthis.btnSend = new Button(\"Envoyer\");\n\t\tthis.btnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tboolean sent = window.sendMessage(message.getText());\n\t\t\t\tif(sent) {\n\t\t\t\t\tmessage.setText(\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\tnew JFrame(),\n\t\t\t\t\t\t\"Erreur lors de l'envoi du message...\",\n\t\t\t\t\t\t\"Dialog\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void SuccessfulBox(View v){\n \t//create an alert box with specified properties\n \tnew AlertDialog.Builder(this)\n \t.setTitle(\"Submit Successfully!\")\n \t.setMessage(\"New prescription information has been added to\" + \" \" +item)\n \t.setNeutralButton(\"ok\", null)\n \t.show();\n }",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"public hesapekrani() {\n initComponents();\n getedits();\n \n \n }",
"public void addTeacherWindow(ControllerAdmin controllerAdmin) throws SQLException, ClassNotFoundException {\n JFrame addFrame = new JFrame();\n\n JButton jButtonCanceled = new JButton(\"Annuler\");\n jButtonCanceled.setBounds(380, 240, 100, 28);\n JButton jButtonAdd = new JButton(\"Ajouter\");\n jButtonAdd.setBounds(490, 240, 100, 28);\n\n JLabel jLabelIdStudent = new JLabel(\"Saissisez l'ID du professeur à créer : \");\n jLabelIdStudent.setBounds(20, 20, 250, 28);\n\n JTextField jTextFieldId = new JTextField();\n jTextFieldId.setBounds(280, 20, 200, 28);\n\n JLabel jLabelEmail = new JLabel(\"Saissisez l'Email du professeur : \");\n jLabelEmail.setBounds(20, 48, 250, 28);\n\n JTextField jTextFielEmailPart1 = new JTextField();\n jTextFielEmailPart1.setBounds(280, 48, 100, 28);\n JTextField jTextFielEmailPart2 = new JTextField(\"@ece.fr\");\n jTextFielEmailPart2.setBounds(380, 48, 100, 28);\n\n JLabel jLabelPassword = new JLabel(\"Saissisez le mot de passe du professeur : \");\n jLabelPassword.setBounds(20, 80, 280, 28);\n\n JTextField jTextFieldPassword = new JTextField();\n jTextFieldPassword.setBounds(280, 80, 200, 28);\n\n JLabel jLabelLastName = new JLabel(\"Saissisez le nom du professeur : \");\n jLabelLastName.setBounds(20, 108, 250, 28);\n\n JTextField jTextFieldLastName = new JTextField();\n jTextFieldLastName.setBounds(280, 108, 200, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Saissisez le prénom du professeur : \");\n jLabelFirstName.setBounds(20, 140, 250, 28);\n\n JTextField jTextFieldFirstName = new JTextField();\n jTextFieldFirstName.setBounds(280, 140, 200, 28);\n\n JLabel jLabelSelectPromo = new JLabel(\"Selectionner une matière :\");\n jLabelSelectPromo.setBounds(20, 170, 250, 28);\n\n ArrayList<String> promotions = controllerAdmin.getAllIdCourse();\n String[] strCourse = new String[promotions.size()];\n for (int j = 0; j < promotions.size(); j++) {\n strCourse[j] = promotions.get(j);\n }\n JComboBox jComboBoxSelectCourse = new JComboBox(strCourse);\n jComboBoxSelectCourse.setBounds(280, 170, 100, 28);\n\n addFrame.add(jButtonCanceled);\n addFrame.add(jButtonAdd);\n addFrame.add(jLabelIdStudent);\n addFrame.add(jTextFieldId);\n addFrame.add(jLabelEmail);\n addFrame.add(jTextFielEmailPart1);\n addFrame.add(jTextFielEmailPart2);\n addFrame.add(jLabelPassword);\n addFrame.add(jTextFieldPassword);\n addFrame.add(jLabelLastName);\n addFrame.add(jTextFieldLastName);\n addFrame.add(jLabelFirstName);\n addFrame.add(jTextFieldFirstName);\n addFrame.add(jLabelSelectPromo);\n addFrame.add(jComboBoxSelectCourse);\n\n jButtonCanceled.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n addFrame.dispose();\n }\n });\n jButtonAdd.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n User user = new User();\n if (!jTextFieldId.getText().equals(\"\") && !jTextFielEmailPart1.getText().equals(\"\") && !jTextFieldFirstName.getText().equals(\"\") && !jTextFieldLastName.getText().equals(\"\")){\n if(!user.alreadyExist(jTextFieldId.getText())){\n Teacher teacher = new Teacher(jTextFieldId.getText(), jTextFielEmailPart1.getText() + jTextFielEmailPart2.getText(), jTextFieldPassword.getText(), jTextFieldLastName.getText(), jTextFieldFirstName.getText(), \"TEACHER\", Objects.requireNonNull(jComboBoxSelectCourse.getSelectedItem()).toString());\n teacher.createTeacher();\n }}\n else {\n addTeacherWindow(controllerAdmin);\n System.out.println(\"Erreur Id deja utilise\");\n AlertePopUp alertePopUp = new AlertePopUp();\n alertePopUp.AddFailId.setVisible(true);\n\n }\n } catch (SQLException | ClassNotFoundException throwables) {\n throwables.printStackTrace();\n }\n addFrame.dispose();\n }\n });\n\n addFrame.setTitle(\"Ajout d'un professeur\");\n addFrame.setSize(600,300);\n addFrame.setLocation(200, 100);\n addFrame.setLayout(null);\n addFrame.setVisible(true);\n }",
"void generar_dialog_preguntas();",
"private void paginaAddAluno(JPanel quadroAddAluno){\n\t\t\tJLabel lblAdcionandoUmAluno = new JLabel(\"ADICIONANDO UM ALUNO\");\n\t\t\tlblAdcionandoUmAluno.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\t\tlblAdcionandoUmAluno.setBounds(215, 135, 334, 32);\n\t\t\tquadroAddAluno.add(lblAdcionandoUmAluno);\n\t\t\t\n\t\t\tJLabel lblParaAdiconarUm = new JLabel(\"PARA ADICONAR UM ALUNO AO SISTEMA, BASTA COLOCAR O NOME, SOBRENOME DO NOVO ALUNO\");\n\t\t\tlblParaAdiconarUm.setBounds(73, 226, 648, 16);\n\t\t\tquadroAddAluno.add(lblParaAdiconarUm);\n\t\t\t\n\t\t\tJLabel lblNome = new JLabel(\"NOME:\");\n\t\t\tlblNome.setBounds(138, 341, 61, 16);\n\t\t\tquadroAddAluno.add(lblNome);\n\t\t\t\n\t\t\taddNome = new JFormattedTextField();\n\t\t\taddNome.setBounds(187, 336, 477, 26);\n\t\t\tquadroAddAluno.add(addNome);\n\t\t\taddNome.setColumns(10);\n\t\t\t\n\t\t\tJLabel lblSobrenome = new JLabel(\"SOBRENOME:\");\n\t\t\tlblSobrenome.setBounds(138, 434, 81, 16);\n\t\t\tquadroAddAluno.add(lblSobrenome);\n\t\t\t\n\t\t\taddSobrenome = new JFormattedTextField();\n\t\t\taddSobrenome.setBounds(231, 429, 433, 26);\n\t\t\tquadroAddAluno.add(addSobrenome);\n\t\t\taddSobrenome.setColumns(10);\n\t\t\t\n\t\t\tJButton btnNewButton = new JButton(\"ADICIONAR\");\n\t\t\tbtnNewButton.setBounds(336, 619, 117, 29);\n\t\t\tquadroAddAluno.add(btnNewButton);\n\t\t\t\n\t\t\tJLabel lblAoClicarEm = new JLabel(\"AO CLICAR EM ADICIONAR, UMA MENSAGEM SERÁ EXIBIDA INFORMANDO SE O ALUNO FOI ADIOCIONADO COM SUCESSO\");\n\t\t\tlblAoClicarEm.setBounds(20, 531, 763, 32);\n\t\t\tquadroAddAluno.add(lblAoClicarEm);\n\t\t}",
"public void open(Plugin plugin, SpoutPlayer splayer) {\n\n GenericPopup popup = new GenericPopup();\n int width = splayer.getMainScreen().getMaxWidth();\n int height = splayer.getMainScreen().getMaxHeight();\n pluginLeg.log(\"aight\" + width + \"\" + height);\n\n// int width = splayer.getCurrentScreen().getWidth();\n// int height = splayer.getCurrentScreen().getHeight();\n\n //title of the screen\n GenericLabel topLabel = new GenericLabel(\"Clan-Invitation\");\n topLabel.setScale(1);\n\n topLabel.setWidth(topLabel.getText().length() * 8 * (int) topLabel.getScale()).setHeight((int) topLabel.getScale() * 15);\n\n topLabel.setX(width / 2 - topLabel.getWidth() / 2);\n topLabel.setY(topLabel.getHeight() / 2 + 5);\n popup.attachWidget(plugin, topLabel);\n\n //title of the screen\n String questionString = \"&2You are invited to \"+clan.getName()+\". Do you want to join?\";\n GenericLabel questionLabel = new GenericLabel(LegendaryClans.parseColor(questionString));\n questionLabel.setScale(1);\n questionLabel.setWidth(questionLabel.getText().length() * 5 * (int) questionLabel.getScale());\n questionLabel.setHeight((int) questionLabel.getScale() * 15);\n\n questionLabel.setX(width / 2 - questionLabel.getWidth() / 2);\n questionLabel.setY(height / 2 - questionLabel.getHeight() / 2);\n popup.attachWidget(plugin, questionLabel);\n\n //Accept Button\n LegendaryButton acceptButton = new LegendaryButton(LegendaryClans.parseColor(\"&2Accept!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n if (pluginLeg.getClanManager().getClanByPlayer(clan.getLeaders().get(0)) != null && askedPlayer != null) {\n clan.addMember(askedPlayer);\n } \n getPopup().close();\n }\n };\n\n\n acceptButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale()).setHeight((int) acceptButton.getScale() * 15);;\n acceptButton.setX(width / 2 + width / 4 - acceptButton.getWidth() / 2).setY(height / 2 + height / 4 - acceptButton.getHeight() / 2);\n\n\n popup.attachWidget(plugin, acceptButton);\n //deny button\n LegendaryButton denieButton = new LegendaryButton(LegendaryClans.parseColor(\"&4Deny!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n clan.broadcastMessage(\"&4\" + askedPlayer.getName() + \" denied invitation!\");\n getPopup().close();\n }\n };\n\n denieButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale());\n denieButton.setHeight((int) denieButton.getScale() * 15);\n// \n// ((LegendaryClans)plugin).log(\"\"+width+\",\"+height);\n// denieButton.setX(denieButton.getX()+denieButton.getWidth()/2 +10);\n\n denieButton.setX(width / 4 - denieButton.getWidth() / 2);\n denieButton.setY(height / 2 + height / 4 - denieButton.getHeight() / 2);\n popup.attachWidget(plugin, denieButton);\n\n splayer.closeActiveWindow();\n splayer.getMainScreen().attachPopupScreen(popup);\n }",
"@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\tString toSave = assignmentObjectiveView.getAssignmentObjective().getText();\n\t\t\t\tint jobCreationId = selectedJobId;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tAuditEngagement e = new AuditEngagement();\n\t\t\t\te.setAssignmentObj(toSave);\n\t\t\t\t\n\t\t\t\tJobCreation j = new JobCreation();\n\t\t\t\tj.setJobCreationId(jobCreationId);\n\t\t\t\te.setJobCreation(j);\n\t\t\t\t\n\t\t\t\trpcService.updateAuditEngagement(e, \"assignmentObj\", new AsyncCallback<Boolean>() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Boolean arg0) {\n\t\t\t\t\t\tWindow.alert(\"success\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tWindow.alert(\"fail\");\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tlogger.log(Level.INFO, \"FAIL: updateAuditEngagement .Inside Audit AuditAreaspresenter\");\n\t\t\t\t\t\tif(caught instanceof TimeOutException){\n\t\t\t\t\t\t\tHistory.newItem(\"login\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.println(\"FAIL: updateAuditEngagement .Inside AuditAreaspresenter\");\n\t\t\t\t\t\t\tWindow.alert(\"FAIL: updateAuditEngagement\");// After FAIL ... write RPC Name NOT Method Name..\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// call rpc from here.. and save this data to this selectedJobId.. in our new table under column assignmentObjective\n\t\t\t}",
"private void btnSimpanActionPerformed(java.awt.event.ActionEvent evt) {\n if (txtAlamat.getText().equals(\"\") || txtEmail.getText().equals(\"\") || txtHp.getText().equals(\"\") || txtNama.getText().equals(\"\") || !validate(txtEmail.getText()) || txtPasar.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Isi data dengan benar!\");\n return;\n }\n \n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyyMMdd\");\n\n if (pelanggan.getPgn_id().equals(\"\")) {\n pelanggan.setPgn_id(controlpelanggan.getLastID());\n }\n\n pelanggan.setPgn_nama(txtNama.getText());\n pelanggan.setPgn_no_hp(txtHp.getText());\n pelanggan.setPgn_email(txtEmail.getText());\n pelanggan.setPgn_alamat(txtAlamat.getText());\n pelanggan.setPgn_jumlah_transaksi(0);\n pelanggan.setPgn_nama_pasar(txtPasar.getText());\n pelanggan.setPgn_nama_toko(txtToko.getText());\n pelanggan.setPgn_total_hutang(0);\n pelanggan.setPgn_uang_transaksi(0);\n\n \n if(controlpelanggan.simpanPelanggan(pelanggan)){\n JOptionPane.showMessageDialog(this, \"Berhasil menambah ...\");\n }else{\n JOptionPane.showMessageDialog(this, \"Gagal menambah ...\");\n }\n \n\n addData();\n clear();\n }",
"private void mostrarEmenta (){\n }",
"public void submitBugPopUp() {\n\t\tJPanel bugPanel = new JPanel();\n\n\t\tHintTextField title = new HintTextField(\"Enter a bug title here\");\n\n\t\tJTextArea description = new JTextArea();\n\t\tdescription.setPreferredSize(new Dimension(500, 250));\n\t\tdescription.setBorder(BorderFactory.createEtchedBorder());\n\t\tdescription.setLineWrap(true);\n\n\t\t// Fill a dropdown menu with all the products\n\t\tDefaultComboBoxModel<String> productModel = new DefaultComboBoxModel<String>();\n\t\tDefaultListModel<String> model = (DefaultListModel<String>) productlist.getModel();\n\n\t\t// Fill combobox with only product names\n\t\tfor (int i = 0; i < model.size(); i++)\n\t\t\tproductModel.addElement(model.getElementAt(i).split(\" \")[1]);\n\t\tJComboBox<String> products = new JComboBox<String>(productModel);\n\n\t\tBox vBox = Box.createVerticalBox();\n\t\tvBox.add(products);\n\t\tvBox.add(Box.createVerticalStrut(20));\n\t\tvBox.add(title);\n\t\tvBox.add(Box.createVerticalStrut(20));\n\t\tvBox.add(description);\n\t\tvBox.add(Box.createVerticalStrut(20));\n\n\t\tbugPanel.add(vBox);\n\n\t\tObject options[] = { \"Submit Bug\", \"Cancel\" };\n\t\tint selection = JOptionPane.showOptionDialog(null, bugPanel, \"New Bug\", JOptionPane.OK_CANCEL_OPTION,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\n\t\tif (selection == JOptionPane.OK_OPTION) {\n\t\t\t// Get selected product ID\n\t\t\tString selectedProduct = model.getElementAt(products.getSelectedIndex());\n\t\t\tint productID = Integer.parseInt(selectedProduct.split(\" \")[0]);\n\n\t\t\t// Create the new bug\n\t\t\tBug b = new Bug();\n\t\t\tb.setBugId_(uiController_.BrowseBugs().size() + 101);\n\t\t\tb.setBugTitle_(title.getText());\n\t\t\tb.setDescription_(description.getText());\n\t\t\tb.setProductId_(productID);\n\t\t\tb.setState_(Bug.State.PENDING_APPROVAL);\n\t\t\tuiController_.SubmitBug(b);\n\t\t}\n\t}",
"public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }",
"public static void editAlert() {\n\n }",
"public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\n }",
"@Test\n public void crearSinOrden(){\n WebDriverWait wait = new WebDriverWait(driver, 30);\n ingenieria.completarNombre(\"Prueba Automatizada\");\n ingenieria.crearProyecto();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"growlError_container\")));\n Assert.assertEquals(\"Debe seleccionar una Ingeniería\", driver.findElement(By.id(\"growlError_container\")).getText());\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><center><u><strong>Edité par :</strong></u><br>RAHMANI ABD EL KADER<br>SEIF EL ISLEM<br> Groupe 1 Section 1</center></html>\", \"A propros\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(name_field.getText().equals(\"\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"사용자 이름을 설정해 주세요.\", \"warning\",JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}else {\n\t\t\t\t\tid = name_field.getText();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"설정되었습니다.\", \"success\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\tsetting.setEnabled(false);\n\t\t\t\t\tname_field.setEnabled(false);\n\t\t\t\t\twt.sendMsg();\n\t\t\t\t\t// who_area.append(id + \"\\n\");\n\t\t\t\t}\t\n\t\t\t}",
"public GWDPEXPRESS_MY_ACHIEVEMENTS()\n{\najouterFenetre(\"EXPRESS_FEN_Search\", mWD_EXPRESS_FEN_Search);\najouterFenetre(\"EXPRESS_FEN_Profil\", mWD_EXPRESS_FEN_Profil);\najouterFenetre(\"EXPRESS_FEN_Achievement\", mWD_EXPRESS_FEN_Achievement);\n\n}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tnew AlertDialog.Builder(Portal.this)\n\t\t\t\t.setTitle(R.string.about_uol)\n\t\t\t\t.setMessage(R.string.about_uol_message)\n\t\t\t\t.setNeutralButton(R.string.close, new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.show();\n\t\t\t}",
"private void presenta(Oferta oft) {\n panelOferta1.setjNombre(oft.getNombre());\n panelOferta1.setjApertura(oft.getFechaApertura());\n panelOferta1.setjCaducidad(oft.getFechaCaducidad());\n panelOferta1.setjListaClave(oft.getListaClave());\n panelOferta1.setjOcupacion(oft.getOcupacion());\n panelOferta1.setjRango(oft.getRangoSalarial());\n panelOferta1.getPanelOficina1().setjNombre(oft.getOficina().getNombre());\n panelOferta1.getPanelOficina1().setjTelefono(oft.getOficina().getTelefono());\n panelOferta1.getPanelOficina1().getPanelDireccion1().setjCP(oft.getOficina().getDireccion().getCodigoPostal());\n panelOferta1.getPanelOficina1().getPanelDireccion1().setjLocalidad(oft.getOficina().getDireccion().getLocalidad());\n panelOferta1.getPanelOficina1().getPanelDireccion1().setjNumero(oft.getOficina().getDireccion().getNumero());\n panelOferta1.getPanelOficina1().getPanelDireccion1().setjPisoLetra(oft.getOficina().getDireccion().getPisoLetra());\n panelOferta1.getPanelOficina1().getPanelDireccion1().setjVia(oft.getOficina().getDireccion().getNombreVia());\n }",
"@Test\n public void crearSinCompletarNombre(){\n WebDriverWait wait = new WebDriverWait(driver, 30);\n ingenieria.completarProyecto(60241342, 3059083);\n ingenieria.crearProyecto();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"growlError_container\")));\n Assert.assertEquals(\"Debe completar el nombre\",driver.findElement(By.id(\"growlError_container\")).getText());\n //helper.captura(\"crearSinCompletarNombre\");\n }",
"public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }",
"public Punto_venta() {\n initComponents();\n }",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"@RequestMapping(value=\"/komponenGaji/ubah\", method = RequestMethod.POST)\n private String ubahKomponenGajiSubmit(\n @ModelAttribute KomponenPengaliModel komponenGaji,\n Model model) {\n payrollService.ubahKomponenGaji(komponenGaji);\n model.addAttribute(\"komponenGaji\", komponenGaji);\n model.addAttribute(\"message\", \"Komponen Gaji berhasil diubah.\");\n return \"payroll-notifs\";\n }",
"public String showAddPage(String errorMsg) \n throws HttpPresentationException, webschedulePresentationException\n { \n\n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String password = this.getComms().request.getParameter(PASSWORD);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n\tString contactname = this.getComms().request.getParameter(CONTACTNAME);\n\tString contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n\tString billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n\tString billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n\tString billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n\tString city = this.getComms().request.getParameter(CITY);\n\tString state = this.getComms().request.getParameter(STATE);\n\tString zip = this.getComms().request.getParameter(ZIP);\n\tString accountid = this.getComms().request.getParameter(ACCOUNTID);\n\tString isoutside = this.getComms().request.getParameter(OUTSIDE);\n\tString exp = this.getComms().request.getParameter(EXP);\n\tString expday = this.getComms().request.getParameter(EXPDAY);\n\tString expmonth = this.getComms().request.getParameter(EXPMONTH);\n\tString expyear = this.getComms().request.getParameter(EXPYEAR);\n\tString notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\n\n\t // Instantiate the page object\n\t EditHTML page = new EditHTML();\n\n\tHTMLOptionElement templateOption = page.getElementTemplateOption();\n Node PersonSelect = templateOption.getParentNode();\n templateOption.removeAttribute(\"id\");\n templateOption.removeChild(templateOption.getFirstChild());\n\n if(null != this.getComms().request.getParameter(PROJ_NAME)) {\n page.getElementProj_name().setValue(this.getComms().request.getParameter(PROJ_NAME));\n }\n\n try {\n \tPerson[] PersonList = PersonFactory.getPersonsList();\n \tfor (int numPersons = 0; numPersons < PersonList.length; numPersons++) {\n \t Person currentPerson = PersonList[numPersons] ;\n \t HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true);\n clonedOption.setValue(currentPerson.getHandle());\n Node optionTextNode = clonedOption.getOwnerDocument().\n createTextNode(currentPerson.getFirstname() + \" \" +\n currentPerson.getLastname());\n clonedOption.appendChild(optionTextNode);\n // Do only a shallow copy of the option as we don't want the text child\n // of the node option\n PersonSelect.appendChild(clonedOption);\n // Alternative way to insert nodes below\n // insertBefore(newNode, oldNode);\n // ProjSelect.insertBefore(clonedOption, templateOption);\n\t }\n\t } catch(Exception ex) {\n\t this.writeDebugMsg(\"Error populating Persons List: \" + ex);\n throw new webschedulePresentationException(\"Error getting Persons List: \", ex);\n\t }\n\t\n templateOption.getParentNode().removeChild(templateOption);\n\n if(null != this.getComms().request.getParameter(PASSWORD)) {\n page.getElementPassword().setValue(this.getComms().request.getParameter(PASSWORD));\n }\n\n if(null != this.getComms().request.getParameter(DISCRIB)) {\n page.getElementDiscrib().setValue(this.getComms().request.getParameter(DISCRIB));\n }\n if(null != this.getComms().request.getParameter(INDEXNUM)) {\n page.getElementIndexnum().setValue(this.getComms().request.getParameter(INDEXNUM));\n }\n\n if(null != this.getComms().request.getParameter(THOURS)) {\n page.getElementThours().setValue(this.getComms().request.getParameter(THOURS));\n }\n\n if(null != this.getComms().request.getParameter(DHOURS)) {\n page.getElementDhours().setValue(this.getComms().request.getParameter(DHOURS));\n }\n\n if(null != this.getComms().request.getParameter(CODEOFPAY)) {\n page.getElementCodeofpay().setValue(this.getComms().request.getParameter(CODEOFPAY));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTNAME)) {\n page.getElementContactname().setValue(this.getComms().request.getParameter(CONTACTNAME));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTPHONE)) {\n \npage.getElementContactphone().setValue(this.getComms().request.getParameter(CONTACTPHONE));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR1)) {\n \npage.getElementBilladdr1().setValue(this.getComms().request.getParameter(BILLADDR1));\n }\n\n\n\nif(null != this.getComms().request.getParameter(BILLADDR2)) {\n \npage.getElementBilladdr2().setValue(this.getComms().request.getParameter(BILLADDR2));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR3)) {\n \npage.getElementBilladdr3().setValue(this.getComms().request.getParameter(BILLADDR3));\n }\n\nif(null != this.getComms().request.getParameter(STATE)) {\n \npage.getElementState().setValue(this.getComms().request.getParameter(STATE));\n }\n\nif(null != this.getComms().request.getParameter(ZIP)) {\n \npage.getElementZip().setValue(this.getComms().request.getParameter(ZIP));\n }\n\n if(null != this.getComms().request.getParameter(OUTSIDE)) {\n page.getElementOutsideBox().setChecked(true);\n } else {\n page.getElementOutsideBox().setChecked(false);\n }\n\t\nif(null != this.getComms().request.getParameter(EXP)) {\n page.getElementExpBox().setChecked(true);\n } else {\n page.getElementExpBox().setChecked(false);\n }\t\n\t\nif(null != this.getComms().request.getParameter(ACCOUNTID)) {\n \npage.getElementAccountid().setValue(this.getComms().request.getParameter(ACCOUNTID));\n }\n\t\n\t\nif(null != this.getComms().request.getParameter(EXPDAY)) {\n \npage.getElementExpday().setValue(this.getComms().request.getParameter(EXPDAY));\n }\n\n\nif(null != this.getComms().request.getParameter(EXPMONTH)) {\n \npage.getElementExpmonth().setValue(this.getComms().request.getParameter(EXPMONTH));\n }\nif(null != this.getComms().request.getParameter(EXPYEAR)) {\n \npage.getElementExpyear().setValue(this.getComms().request.getParameter(EXPYEAR));\n }\n\n if(null != this.getComms().request.getParameter(NOTIFYCONTACT)) {\n page.getElementNotifycontact().setValue(this.getComms().request.getParameter(NOTIFYCONTACT));\n }\n\n if(null == errorMsg) { \n\t page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText());\n } else {\n page.setTextErrorText(errorMsg);\n }\n \n\t return page.toDocument();\n }",
"@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private void btnPerbaruiActionPerformed(java.awt.event.ActionEvent evt) {\n if (txtAlamat.getText().equals(\"\") || txtEmail.getText().equals(\"\") || txtHp.getText().equals(\"\") || txtNama.getText().equals(\"\") || !validate(txtEmail.getText()) || txtPasar.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Isi data dengan benar!\");\n return;\n }\n pelanggan.setPgn_nama(txtNama.getText());\n pelanggan.setPgn_no_hp(txtHp.getText());\n pelanggan.setPgn_email(txtEmail.getText());\n pelanggan.setPgn_alamat(txtAlamat.getText());\n pelanggan.setPgn_nama_pasar(txtPasar.getText());\n pelanggan.setPgn_nama_toko(txtToko.getText());\n try{\n controlpelanggan.updatePelanggan(pelanggan);\n JOptionPane.showMessageDialog(this, \"Berhasil memperbarui ...\");\n }catch(Exception ex){\n JOptionPane.showMessageDialog(this, \"Gagal ...\");\n }\n \n clear();\n addData();\n }",
"public void crearP(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n // Create two JPanels one on top on the other\n p1 = new JPanel();\n p2 = new JPanel();\n \n // Set the grid layout \n p1.setLayout(new GridLayout(5,2));\n p2.setLayout(new GridLayout(2,1));\n \n //********************//\n // Create the buttons //\n //********************//\n \n buttonAbonar = new JButton(\"Abonar\");\n botones.add(buttonAbonar);\n \n buttonRetirar = new JButton(\"Retirar\");\n botones.add(buttonRetirar);\n\n buttonComprarPagar = new JButton(\"Comprar / Pagar\");\n botones.add(buttonComprarPagar);\n\n buttonComprarInversion = new JButton(\"Comprar Inversion\");\n botones.add(buttonComprarInversion);\n\n buttonRecibirTransferencia = new JButton(\"Recibir Transferencia\");\n botones.add(buttonRecibirTransferencia);\n\n buttonRealizarTransferencia = new JButton(\"Realizar Transferencia\"); \n botones.add(buttonRealizarTransferencia);\n\n buttonGenerarCorte = new JButton(\"Generar Corte\");\n botones.add(buttonGenerarCorte);\n\n buttonVerEstado= new JButton(\"Ver Estado Datos Banco\"); \n botones.add(buttonVerEstado);\n\n buttonAddConto= new JButton(\"Insertar Cuenta Credito\"); \n botones.add(buttonAddConto);\n buttonAddConto= new JButton(\"Insertar Cuenta Debito\"); \n botones.add(buttonAddConto);\n \n buttonAddUser= new JButton(\"Insertar Cliente\"); \n botones.add(buttonAddUser);\n \n // Set the size for the buttons\n for(JButton x:botones){\n x.setMaximumSize(new Dimension(250,250));\n x.setMinimumSize(new Dimension(200,200));\n x.setPreferredSize(new Dimension(200,200));\n // Adding the button to the view\n p1.add(x);\n }\n \n //***************************//\n // Adding a text to a JLabel //\n //***************************//\n\n labelPanel = new JLabel(\" Estado...\");\n p2.add(labelPanel);\n \n //*******************************//\n // Adding a text to a JTextField //\n // To display the errors..\t\t //\n //*******************************//\n \n tf = new JTextField(\"Detalles del error...\");\n textos.add(tf);\n p2.add(textos.get(0));\n \n // Setting the layout of the Panels\n add(p1, BorderLayout.WEST);\n add(p2, BorderLayout.CENTER);\n }",
"public void popup(String s, String id){\n\t\t\n\t\t// call to a db function -> what kind if exercises was carried out during this training?\n\t\tExerciseForTrainingFetch eftf = new ExerciseForTrainingFetch();\n\t\ttry {\n\t\t\teftf.readDataBase(id);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tArrayList<ArrayList> allOvelser = eftf.getExForTraining();\n\t\t\n\t\tStringBuilder bStr = new StringBuilder();\n\t\tfor (int i=0;i<allOvelser.get(0).size();i++){\n\t\t\tbStr.append(\"Ovelse: \" + allOvelser.get(0).get(i) + \" Belastning: \" +allOvelser.get(1).get(i) +\n\t\t\t\t\t\" Sett: \" + allOvelser.get(2).get(i) + \" Repetisjoner: \" + allOvelser.get(3).get(i) + \" Beskrivelse: \" + allOvelser.get(4).get(i) + \n\t\t\t\t\t\" Kategori: \" + allOvelser.get(5).get(i) + \"\\n\" + \"-----------------\\n\");\n\t\t}\n\t\t\n\t\tGroup root = new Group();\n\t\tScene dialogScene = new Scene(root, 400, 300);\n\t\tLabel label3 = new Label(bStr.toString());\n\t\tlabel3.setWrapText(true);\n\t\tlabel3.setFont(new Font(\"Arial\", 12));\n\t\tlabel3.setMaxSize(380, 300);\n\t\t\n final Stage dialog = new Stage();\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initOwner(UserApplication.primaryStage);\n\n Button cancel = new Button(\"Cancel\");\n cancel.setCancelButton(true);\n cancel.setOnAction((actionEvent) -> dialog.close());\n GridPane gridpane = new GridPane();\n gridpane.setMaxSize(400, 300);\n gridpane.setHgap(10); //horizontal gap in pixels => that's what you are asking for\n gridpane.setVgap(10); //vertical gap in pixels\n gridpane.setPadding(new Insets(10, 10, 10, 10)); //margins around the whole grid\n //(top/right/bottom/left)\n ScrollPane s1 = new ScrollPane();\n s1.setPrefSize(380, 300);\n s1.setHbarPolicy(ScrollBarPolicy.NEVER);\n s1.setContent(label3);\n gridpane.add(cancel, 0, 3); // column=0 row=3\n gridpane.add(s1, 0, 1); // column=0 row=1\n gridpane.setMaxSize(400, 300);\n root.getChildren().addAll(gridpane);\n \n dialog.setScene(dialogScene);\n dialog.show(); \n \n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tpKhachHang.setVisible(true);\r\n\t\t\t\tpDashboard.setVisible(false);\r\n\t\t\t\tpHangHoa.setVisible(false);\r\n\t\t\t\tpLichLamViec.setVisible(false);\r\n\t\t\t\t\r\n\t\t\t\tJList lstKhachHang = new JList();\r\n\t\t\t\tlstKhachHang.setBounds(10, 51, 896, 550);\r\n\t\t\t\tpKhachHang.add(lstKhachHang);\r\n\t\t\t\t\r\n\t\t\t\ttxtTKKhachHang = new JTextField();\r\n\t\t\t\ttxtTKKhachHang.setText(\"Nhập tên hoặc SĐT khách hàng ...\");\r\n\t\t\t\ttxtTKKhachHang.setColumns(10);\r\n\t\t\t\ttxtTKKhachHang.setBounds(10, 11, 562, 20);\r\n\t\t\t\tpKhachHang.add(txtTKKhachHang);\r\n\t\t\t\t\r\n\t\t\t\tJComboBox cbxKHNgayBD = new JComboBox();\r\n\t\t\t\tcbxKHNgayBD.setToolTipText(\"\");\r\n\t\t\t\tcbxKHNgayBD.setBounds(582, 11, 146, 20);\r\n\t\t\t\tpKhachHang.add(cbxKHNgayBD);\r\n\t\t\t\t\r\n\t\t\t\tJComboBox cbxKHNgayKT = new JComboBox();\r\n\t\t\t\tcbxKHNgayKT.setToolTipText(\"\");\r\n\t\t\t\tcbxKHNgayKT.setBounds(740, 11, 146, 20);\r\n\t\t\t\tpKhachHang.add(cbxKHNgayKT);\r\n\t\t\t\t\r\n\t\t\t\tJButton btnTimKiem = new JButton(\"Tìm kiếm\");\r\n\t\t\t\tbtnTimKiem.setBounds(900, 11, 89, 23);\r\n\t\t\t\tpKhachHang.add(btnTimKiem);\r\n\r\n\t\t\t}",
"public void ajouter(){\n Main.showPages(\"pageAjoutMateriel.fxml\");\n\n }",
"public void informarTeclaPressionada( Tecla t );",
"private void jBtn_AjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_AjouterActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n Formulaire_Client creaClient = new Formulaire_Client();\n creaClient.setVisible(true);\n this.setVisible(false);\n \n }\n else{\n Formulaire_Prospect creaProspect = new Formulaire_Prospect();\n creaProspect.setVisible(true);\n this.setVisible(false);\n } \n }",
"@Test\n public void testAdicionarUmaInformacaoAdicionalDoUsuario(){\n WebElement linkSignIn = navegador.findElement(By.linkText(\"Sign in\"));\n linkSignIn.click();\n\n //Identificando o formulário de login\n WebElement formularioSignInBox = navegador.findElement(By.id(\"signinbox\"));\n\n //Digitar no campo com name \"login\" que está dentro do formulário de id \"signinbox\" o texto \"julio0001\"\n formularioSignInBox.findElement(By.name(\"login\")).sendKeys(\"julio0001\");\n\n //Digitar no campo com name \"passwor\" que está dentro do formulário de id \"signinbox\" o texto \"123456\"\n formularioSignInBox.findElement(By.name(\"password\")).sendKeys(\"123456\");\n\n //Clicar no link com o texto \"SIGN IN\"\n navegador.findElement(By.linkText(\"SIGN IN\")).click();\n\n //Clicar em um link que possui a class \"me\"\n navegador.findElement(By.className(\"me\")).click();\n\n //Clicar em um link que possui \"MORE DATA ABOUT YOU\"\n navegador.findElement(By.linkText(\"MORE DATA ABOUT YOU\")).click();\n\n //Clicar no botão através do seu xpath //button[@data-target=\"addmoredata\"]\n navegador.findElement(By.xpath(\"//button[@data-target=\\\"addmoredata\\\"]\")).click();\n\n //Identificar a popup onde está o formulário de id addmoredata\n WebElement popupAddMoreData = navegador.findElement(By.id(\"addmoredata\"));\n\n //Na combo de name \"type\" escolher a opção \"Phone\"\n WebElement campoType = popupAddMoreData.findElement(By.name(\"type\"));\n new Select(campoType).selectByVisibleText(\"Phone\");\n\n //No campo de name \"contact\" digitar \"+5511888888888\"\n popupAddMoreData.findElement(By.name(\"contact\")).sendKeys(\"+5592888888888\");\n\n //Clicar no link de text \"SAVE\" que está na popup\n popupAddMoreData.findElement(By.linkText(\"SAVE\")).click();\n\n //Na mensagem de id \"toast-container\" validar que o texto \"Your contact has been added!\"\n WebElement mensagemPop = navegador.findElement(By.id(\"toast-container\"));\n String mensagem = mensagemPop.getText();\n assertEquals(\"Your contact has been added!\", mensagem);\n }",
"public void createnewusersubmitbutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Create new user button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"createnewuserbutton\"));\r\n\t\t\tclick(locator_split(\"createnewuserbutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- create new user button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- create new user button is not clicked \"+elementProperties.getProperty(\"createnewuserbutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"createnewuserbutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(chat_field.getText().equals(\"\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"채팅을 입력해주세요.\", \"warning\",JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t\tchat_area.append(\"[\" + id + \"]\" + chat_field.getText() + \"\\n\");\n\t\t\t\twt.sendMsg();\n\t\t\t\tchat_field.setText(\"\");\n\t\t\t}",
"@Listen(\"onClick =#asignarEspacio\")\n\tpublic void Planificacion() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-recursos-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}",
"@RequestMapping(value = \"/absensi/tambah/submit\", method = RequestMethod.POST)\n public String tambahSubmit (@NotNull Authentication auth, Model model, @ModelAttribute(\"newAbsen\") AbsenModel newAbsen)\n {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n int id_employee = absenDAO.selectIdByUsername(penggunaLogin.getUsername());\n newAbsen.setId_employee(id_employee);\n if(absenDAO.cekAbsen(newAbsen) == null){\n absenDAO.addAbsen(newAbsen);\n return \"redirect:/absen/kelola?success=menambah\";\n } else {\n model.addAttribute(\"message\", \"Absensi pada tanggal \" +newAbsen.getTanggal_absen() + \" gagal dibuat\");\n return \"redirect:/absen/kelola?gagal=menambah\";\n }\n\n }",
"public void nuevaEquiparacion() throws ExceptionConnection {\n FacesContext context = FacesContext.getCurrentInstance();\n try {\n\n context.getExternalContext().redirect(context.getExternalContext().getRequestContextPath() + \"/faces/paginas/Equiparaciones.xhtml\");\n } catch (IOException ex) {\n Logger.getLogger(ListaEquiparacionesController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void mostrarNuevaPregunta(){\n p = new Pregunta();\n preguntaView.setText(p.getPregunta());\n }",
"public void callWaiter(View v){\n\n new AlertDialog.Builder(this).setMessage(\"Appeler un serveur ?\").setPositiveButton(\"Oui\", null).setNegativeButton(\"Non\",null).show();\n }",
"void prosegui(String messaggio);",
"public void sol_nuevasolicitud(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"sol_nuevasolicitud.xhtml\");\n }\n catch(Exception e){\n System.out.println(\"Error: \"+e);\n }\n }",
"private void affPremierJoueur(String nomPJoueur) {\r\n\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\talert.setTitle(\"Premier joueur\");\r\n\t\talert.setHeaderText(null);\r\n\t\talert.setContentText(nomPJoueur + \" est le premier joueur a jouer\");\r\n\t\talert.showAndWait();\r\n\t}",
"@Override\n public void addParticipantAction() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"addParticipantAction\");\n }\n clearAddPanels();\n\n renderAddPanel = true;\n selectedConnectathonParticipant = new ConnectathonParticipant();\n ConnectathonParticipantStatus cps = new ConnectathonParticipantStatus();\n selectedConnectathonParticipant.setConnectathonParticipantStatus(cps);\n\n if (!Role.isLoggedUserAdmin() && !Role.isLoggedUserProjectManager() && !Role.isLoggedUserMonitor()) {\n selectedConnectathonParticipant.setInstitution(Institution.getLoggedInInstitution());\n }\n selectedConnectathonParticipant.setTestingSession(TestingSession.getSelectedTestingSession());\n\n }",
"private void testButActionPerformed(java.awt.event.ActionEvent evt, Worker worker) {\r\n\t\tif (worker==null) {\r\n\t\t\tJOptionPane.showMessageDialog(restConfigDialog, \"Ошибка соединения!\",\r\n\t\t\t\t\t\"Тест соединения\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t} else {\r\n\t\t\tStringBuffer sub = new StringBuffer();\r\n\t\t\tsub.append(\"<html>\");\r\n\t\t\tsub.append(\"<b>Соединение успешно:</b><br>\");\r\n\t\t\tsub.append(\"<p>\" + worker.getName() + \" \" + worker.getLastName() + \"</p>\");\r\n\t\t\tsub.append(\"</html>\");\r\n\t\t\tJOptionPane.showMessageDialog(restConfigDialog, sub.toString(), \"Тест соединения\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tpLichLamViec.setVisible(true);\r\n\t\t\t\tpHangHoa.setVisible(false);\r\n\t\t\t\tpKhachHang.setVisible(false);\r\n\t\t\t\tpDashboard.setVisible(false);\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\tJList lstLichLamViec = new JList();\r\n\t\t\t\tlstLichLamViec.setBounds(10, 51, 896, 550);\r\n\t\t\t\tpLichLamViec.add(lstLichLamViec);\r\n\t\t\t\t\r\n\t\t\t\ttxtTKLichLV = new JTextField();\r\n\t\t\t\ttxtTKLichLV.setText(\"Nhập tên nhân viên ...\");\r\n\t\t\t\ttxtTKLichLV.setColumns(10);\r\n\t\t\t\ttxtTKLichLV.setBounds(10, 11, 562, 20);\r\n\t\t\t\tpLichLamViec.add(txtTKLichLV);\r\n\t\t\t\t\r\n\t\t\t\tJComboBox cbxLLVNgayBD = new JComboBox();\r\n\t\t\t\tcbxLLVNgayBD.setToolTipText(\"\");\r\n\t\t\t\tcbxLLVNgayBD.setBounds(582, 11, 146, 20);\r\n\t\t\t\tpLichLamViec.add(cbxLLVNgayBD);\r\n\t\t\t\t\r\n\t\t\t\tJComboBox cbxLLVNgayKT = new JComboBox();\r\n\t\t\t\tcbxLLVNgayKT.setToolTipText(\"\");\r\n\t\t\t\tcbxLLVNgayKT.setBounds(740, 11, 146, 20);\r\n\t\t\t\tpLichLamViec.add(cbxLLVNgayKT);\r\n\t\t\t\t\r\n\t\t\t\tJButton btnThemLich = new JButton(\"Thêm Lịch\");\r\n\t\t\t\tbtnThemLich.setBounds(900, 11, 89, 23);\r\n\t\t\t\tpLichLamViec.add(btnThemLich);\r\n\r\n\t\t\t}",
"public ingresarLecturas() {\n initComponents();\n }",
"public ticket() {\n initComponents();\n this.mostrar();\n }",
"public Pregunta5_percepcion() {\n initComponents();\n }",
"public void displayProfile (Person personBean){\n \n \n Stage window = new Stage();\n window.initModality(Modality.APPLICATION_MODAL);\n window.setTitle(\"Welcome \" + personBean.getUsername());\n window.setMinWidth(500);\n \n Button logout= new Button(\"Logout\");\n GridPane.setConstraints(logout,2,2);\n logout.setOnAction(e->window.close());\n \n //confirm and send button\n Button chooseRestrictions = new Button(\"Choose Restrictions\");\n GridPane.setConstraints(chooseRestrictions,2,2);\n //save al users selection when done\n chooseRestrictions.setOnAction(e->{\n dietPlanObj.restrictions(personBean.getId());\n try {\n dietPlanObj.handleRestrictions(personBean.getId());\n } catch (SQLException ex) {\n Logger.getLogger(Profile.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n window.close();\n });\n \n /*\n Button modifyDiet = new Button(\"Modify Diet\");\n GridPane.setConstraints(modifyDiet,2,2);\n //save al users selection when done\n modifyDiet.setOnAction(e->{\n dietPlanObj.modifyDiet(\"Change Diet\");\n dietPlanObj.handleChangesDiet();\n \n //window.close();\n });\n */\n Button viewMealSchedule = new Button(\"View Meal Schedule\");\n \n viewMealSchedule.setOnAction(e ->\n {\n MealScheduleGUI.display(personBean.getId(), personBean.getUsername());\n });\n \n Hyperlink musclePreference;\n Hyperlink loseWeightPreference;\n Hyperlink stayHealthyPreference;\n Hyperlink noPreference;\n \n //no preference = 0\n //musclePreference = 1\n //loseWeightPreference = 2\n //stayHealthyPreference = 3\n \n Label choosePreferenceLabel = new Label(\"Choose your diet preference\");\n \n noPreference = new Hyperlink(\"No preference\");\n musclePreference = new Hyperlink(\"Get buff!\");\n loseWeightPreference = new Hyperlink(\"Lose Weight\");\n stayHealthyPreference = new Hyperlink(\"Stay Healthy\");\n \n //hyperlink event listeners\n noPreference.setOnAction(e-> {\n ArrayList<Food> pickedFoods = ApplicableFoodGUI.display(personBean.getId(), personBean.getUsername(), 0, \"No preference\");\n MealSchedule mealBean = new MealSchedule();\n int dayCounter = 0;\n int dayTimeCounter = 0;\n for (Food x : pickedFoods)\n {\n mealBean.setFoodId(x.getId());\n mealBean.setUserId(personBean.getId());\n mealBean.setQuantity(1);\n System.out.println(x.getFoodName());\n if (dayCounter == 7)\n dayCounter = 0;\n mealBean.setDay(dayCounter++);\n if (dayTimeCounter == 3)\n dayTimeCounter = 0;\n mealBean.setDayTime(dayTimeCounter++);\n \n try {\n if (ManagerMealSchedule.setMealSchedule(mealBean))\n {\n System.out.println(\"Meal Schedule set\");\n }\n else\n System.out.println(\"ERROR: Meal Schedule not set\");\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n \n //And take his picked foods and put his foods in the MealSchedule based on userId\n \n });\n musclePreference.setOnAction(e->\n {\n ArrayList<Food> pickedFoods = ApplicableFoodGUI.display(personBean.getId(), personBean.getUsername(), 1, \"Muscle\");\n for (Food x : pickedFoods)\n {\n System.out.println(x.getFoodName());\n }\n \n \n });\n \n loseWeightPreference.setOnAction(e->\n {\n ArrayList<Food> pickedFoods = ApplicableFoodGUI.display(personBean.getId(), personBean.getUsername(), 2, \"Weight loss\");\n for (Food x : pickedFoods)\n {\n System.out.println(x.getFoodName());\n } \n });\n \n \n VBox layout = new VBox (20);\n layout.setPadding(new Insets (20,20,20,20));\n layout.getChildren().addAll(logout, chooseRestrictions, viewMealSchedule, choosePreferenceLabel, noPreference, musclePreference, loseWeightPreference, stayHealthyPreference);\n \n \n \n Scene scene = new Scene(layout,500,500);\n window.setScene(scene);\n window.showAndWait();\n \n \n \n }",
"private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }",
"@FXML\n void setSubmit() {\n generalTextArea.clear();\n\n RadioButton selectedRadioButton;\n String departSet;\n try{\n selectedRadioButton = (RadioButton) departmentSet.getSelectedToggle();\n departSet = selectedRadioButton.getText();\n }catch(NullPointerException e){\n generalTextArea.appendText(\"Please select a department.\");\n return;\n }\n\n String date = dateSetText.getText();\n if(!isParse(date)){\n return;\n }\n String name = nameSetText.getText();\n if(name.length() == 0){\n generalTextArea.appendText(\"The name field was left blank. Please enter a name! \\n\");\n return;\n }\n int hours = 0;\n try {\n hours = Integer.parseInt(hoursSetText.getText());\n }catch(NumberFormatException e){\n generalTextArea.appendText(\"Please enter a valid number for the hours! \\n\");\n hoursSetText.clear();\n return;\n }\n int tempPay = 0;\n if(isValidHours(hours) && isValidDate(date)){\n Profile newEmployeeProfile = profileData(name, departSet, date);\n Employee employeeHoursSet = new Parttime(newEmployeeProfile, tempPay);\n Parttime tempEmployee = (Parttime)employeeHoursSet;\n tempEmployee.setHours(hours);\n boolean wasEmployeeHoursSet = company.setHours(employeeHoursSet);\n if(wasEmployeeHoursSet){\n generalTextArea.appendText(\"Working hours set.\");\n }else if (company.getNumEmployee() == 0){\n generalTextArea.appendText(\"Employee database is empty.\");\n }else{\n generalTextArea.appendText(\"Employee does not exist.\");\n }\n\n\n }\n clearEverything();\n\n }",
"@Override\r\n public void actionPerformed(ActionEvent el) {\n \r\n \r\n if(el.getSource()==b9)\r\n {\r\n adminsuccess l1=new adminsuccess();\r\n l1.setVisible(true);\r\n l1.setLocationRelativeTo(null);\r\n dispose();\r\n }\r\n \r\n \r\n }",
"public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }",
"private void ajouteBouton(String label, JPanel p) {\r\n // Ajoute un bouton, avec le texte label, au panneau p\r\n JButton b = new JButton(label);\r\n p.add(b);\r\n b.addActionListener(this);\r\n }",
"public tambah() {\n initComponents();\n }",
"private void setAddVisitDialogUI(Frame parent, Point loc) {\n dialog = new JDialog(parent);\n dialog.setLocation(loc.x + 80, loc.y + 80);\n panel = new JPanel();\n panel.setBackground(new Color(248, 248, 251));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n panel.add(Box.createVerticalStrut(20));\n\n message = new JPanel();\n text = new JLabel(\"Add visit\");\n\n text.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n\n message.setBackground(null);\n message.add(text);\n panel.add(message);\n panel.add(Box.createVerticalStrut(20));\n }",
"private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == btnNewButton) {\r\n\t\t\tString name = textField.getText();\r\n\t\t\tString password = passwordField.getText();\r\n\t\t\t\r\n\t\t\tif(connect(name, password)) {\r\n\t\t\t\tJOptionPane.showMessageDialog(btnNewButton, \"로그인 성공\");\r\n\t\t\t\tSelectUI selectUI = new SelectUI();\r\n\t\t\t\tselectUI.setVisible(true);\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}else {\r\n\t\t\t\tJOptionPane.showMessageDialog(btnNewButton, \"로그인 실패\");\r\n\t\t\t}\t\t\t\r\n\t\t} \r\n\t\t\r\n\t\tif (e.getSource() == btnNewButton_1) {\r\n\t\t\tWorkerUI workerUI = new WorkerUI();\r\n\t\t\tworkerUI.setVisible(true);\r\n\t\t}\r\n\t}",
"private void sendPollAction() {\n\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tif (caught instanceof StatusCodeException && ((StatusCodeException) caught).getStatusCode() == 0) {}\n\t\t\t\t\telse showErrorMessage(this.getClass().getName() + \"-sendPollAction() ERROR: \" + caught.toString());\n\t\t\t\t}\n\n\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tif (result.hasErrors())\n\t\t\t\t\t\tshowSystemMessage(\"Error al Enviar Encuesta: \" + result.errorsToString());\n\t\t\t\t\telse {\n\t\t\t\t\t\tshowSystemMessage(\"Encuesta Enviada. \"+\n\t\t\t\t\t\t\t\t\"<a href=\\\"\" + GWT.getHostPageBaseURL() + \n\t\t\t\t\t\t\t\t\"/frm/flex_customerpoll.jsp?h=\" + new Date().getTime() + \"proj&w=EXT&z=\" + \n\t\t\t\t\t\t\t\tGwtUtil.encryptId(bmoProject.getId()) + \"&r=interv\" + (new Date().getTime() * 456) +\"\\\" target='_blank'><br>Ver Encuesta</a>\"\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Llamada al servicio RPC\n\t\t\ttry {\n\t\t\t\tif (!isLoading()) {\n\t\t\t\t\tstartLoading();\n\t\t\t\t\tgetUiParams().getBmObjectServiceAsync().action(bmoProject.getPmClass(), bmoProject, BmoProject.ACTION_SENDPOLL, \"\" + bmoProject.getId(), callback);\n\t\t\t\t}\n\t\t\t} catch (SFException e) {\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-sendPollAction() ERROR: \" + e.toString());\n\t\t\t}\n\t\t}",
"public void addNewQuestionInputTextArea(final String question) {\n if (isQuestionEditMode || getQuestions().isEmpty()) {\n if (getNumberOfQuestions() <= (MAX_NUMBER_OF_QUESTIONS - 1)) {\n UIComponent questionsPanel = FacesContext.getCurrentInstance().getViewRoot().findComponent(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:questionsPerformanceAppraisalPanel\");\n ResourceBundle resourceBundle = PropertyResourceBundle.getBundle(\"messages/messages\");\n//\n// /*****************************QUESTION*TEXT*AREA***************************************************/\n// OutputLabel outputLabel = new OutputLabel();\n// outputLabel.setValue(String.format(\"%d. %s\", questions.indexOf(question) + 1, question));\n// outputLabel.setValueExpression(\"rendered\",\n// createValueExpression(\"#{!performanceAppraisalSettingBean.questionEditMode}\", boolean.class));\n// outputLabel.setStyle(\"width:310px;height:auto\"); //width:335px - default\n//\n// InputTextarea inputTextarea = new InputTextarea();\n// inputTextarea.setId(\"question\" + getNumberOfQuestions());\n// inputTextarea.setRows(1);\n// inputTextarea.setCols(56);\n// inputTextarea.setStyle(\"width:310px;height:auto\"); //width: 335px - default\n// inputTextarea.setValueExpression(\"rendered\",\n// createValueExpression(\"#{performanceAppraisalSettingBean.questionEditMode}\", boolean.class));\n// inputTextarea.setValue(question);\n// inputTextarea.addValidator(new QuestionValidator());\n//\n// AjaxBehavior ajaxBehavior = new AjaxBehavior();\n// ajaxBehavior.setUpdate(\"questionMessage\" + getNumberOfQuestions() + \", performanceAppraisalSettingSave\");\n// inputTextarea.addClientBehavior(\"keyup\", ajaxBehavior);\n// /**************************************************************************************************/\n//\n// column.getChildren().add(outputLabel);\n// column.getChildren().add(inputTextarea);\n//\n// row.getChildren().add(column);\n//\n// questionsPanel.getChildren().add(row);\n\n Row rowMessage = new Row();\n Column columnMessage = new Column();\n columnMessage.setStyle(\"height:30px!important\");\n Message message = new Message();\n message.setFor(\"question\" + getNumberOfQuestions());\n message.setId(\"questionMessage\" + getNumberOfQuestions());\n message.setDisplay(\"text\");\n columnMessage.getChildren().add(message);\n\n rowMessage.getChildren().add(columnMessage);\n\n questionsPanel.getChildren().add(rowMessage);\n\n setNumberOfQuestions(getNumberOfQuestions() + 1); //add one more question | need to iterate all questions and check max of questions\n } else {\n ResourceBundle resourceBundle = PropertyResourceBundle.getBundle(\"messages/messages\");\n String lastQuestionId = \"question\" + (MAX_NUMBER_OF_QUESTIONS - 1);\n FacesContext.getCurrentInstance().addMessage(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:\" + lastQuestionId,\n new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", resourceBundle.getString(\"AdminTask.PerformanceAppraisal.MaxNumberQuestions\")));\n }\n }\n }",
"public void visualizzaCampo(){\r\n\t\tInputOutput.stampaCampo(nome, descrizione, obbligatorio);\r\n\t}",
"private void tampilPesan(String message) {\n JOptionPane.showMessageDialog(this, message);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new QuestionAnsweredMessage(answerField.getText()));\n //mainGUI.showMainPanel();\n }",
"@Override\n public void buttonClick(ClickEvent event) {\n try {\n boolean terminado = false;\n ProfesorDAO profesorDAO = new ProfesorDAO();\n List<Profesor> listProf = new ArrayList<>();\n listProf.addAll(profesorDAO.listaProfesores());\n Iterator<Profesor> it = listProf.iterator();\n\n if (!email_profesor.equals(\"\")) {\n if (!id_profesor.equals(\"\")) {\n if (password_profesor.equals(repassword_profesor)) {\n while ((it.hasNext() && terminado == false)) {\n Profesor p = it.next();\n if (p.getEmail().equals(email_profesor.getValue()) || p.getIdProfesor().equals(id_profesor)) {\n terminado = true;\n Notification.show(\"Campo email o identificador ya usado por otro usuario\", Notification.Type.WARNING_MESSAGE);\n }\n }\n } else {\n //Notification.show(\"No coincide los campos contraseña y repetir contraseña\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo identificador vacio\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo email vacio\", Notification.Type.WARNING_MESSAGE);\n }\n if (terminado == false) {\n Profesor p = new Profesor();\n p.setIdProfesor(id_profesor.getValue());\n p.setIdLugar((String) id_lugar_profesor.getValue());\n p.setNombre(nombre_profesor.getValue());\n p.setApellidos(apellidos_profesor.getValue());\n p.setEdad(edad_profesor.getValue());\n p.setMovil(movil_profesor.getValue());\n p.setHorario(horario_profesor.getValue());\n p.setAsignaturas(asignaturas_profesor);\n p.setDescripcion(descripcion_profesor.getValue());\n p.setEmail(email_profesor.getValue());\n p.setPassword(password_profesor.getValue());\n Notification.show(\"Profesor modificado\", \"Se ha actualizado el \"\n + \"profesor en la base de datos\", Notification.Type.TRAY_NOTIFICATION);\n profesorDAO.crear(p);\n getUI().getPage().setLocation(getUI().getPage().getLocation().getPath());\n }\n } catch (UnknownHostException ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n try {\n HelpCenter.sendQuestion(\"\", URLEncoder.encode(questionEdit.getText().toString(), \"utf-8\"));\n } catch(Exception e){\n\n }\n }",
"private void tutorial(){\n\t\tString msg = \"[Space] = Inicia e pausa o jogo depois de iniciado.\";\n\t\tmsg += \"\\n[Seta esquerda] = Move o paddle para a esquerda.\";\n\t\tmsg += \"\\n[Seta direita] = Move o paddle para a direita.\";\n\t\tmsg += \"\\n[I] = Abre a janela de informaçoes.\";\n\t\tmsg += \"\\n[R] = Reinicia o jogo.\";\n\t\tJOptionPane.showMessageDialog(null, \"\"+msg, \"Informaçoes\", JOptionPane.INFORMATION_MESSAGE);\n\t}",
"public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }",
"public void praticien_zone(){\n\n JLabel lbl_Praticien = new JLabel(\"Praticien :\");\n lbl_Praticien.setBounds(40, 50, 119, 16);\n add(lbl_Praticien);\n\n\n\n JTextField praticien = new JTextField();\n praticien.setBounds(200, 50, 200, 22);\n praticien.setEditable(false);\n try {\n praticien.setText((DAO_Praticien.nomPraticien(rapport_visite.elementAt(DAO_Rapport.indice)[1])));\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n add(praticien);\n\n }",
"public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }",
"public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }",
"protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }",
"public void addRoomWindow(ControllerAdmin controllerAdmin) throws SQLException, ClassNotFoundException {\n JFrame addFrame = new JFrame();\n\n JButton jButtonCanceled = new JButton(\"Annuler\");\n jButtonCanceled.setBounds(380, 140, 100, 28);\n JButton jButtonAdd = new JButton(\"Ajouter\");\n jButtonAdd.setBounds(490, 140, 100, 28);\n\n JLabel jLabelIdSite = new JLabel(\"Selectionner le site où ajouter la salle à créer : \");\n jLabelIdSite.setBounds(20, 20, 250, 28);\n\n ArrayList<String> site = controllerAdmin.getAllNamesSite();\n String[] strSite = new String[site.size()];\n for (int j = 0; j < site.size(); j++) {\n strSite[j] = site.get(j);\n }\n JComboBox jComboBoxSelectSite = new JComboBox(strSite);\n jComboBoxSelectSite.setBounds(280, 20, 200, 28);\n\n JLabel jLabelIdRoom = new JLabel(\"Saissisez l'ID de la salle : \");\n jLabelIdRoom.setBounds(20, 48, 250, 28);\n\n JTextField jTextFiedlIdRoom = new JTextField();\n jTextFiedlIdRoom.setBounds(280, 48, 200, 28);\n\n JLabel jLabelName = new JLabel(\"Saissisez le nom de la salle : \");\n jLabelName.setBounds(20, 80, 280, 28);\n\n JTextField jTextFiedldName = new JTextField();\n jTextFiedldName.setBounds(280, 80, 200, 28);\n\n JLabel jLabelCapacity = new JLabel(\"Saissisez la capacite de la salle : \");\n jLabelCapacity.setBounds(20, 108, 250, 28);\n\n JTextField jTextFiedldCapacity = new JTextField();\n jTextFiedldCapacity.setBounds(280, 108, 200, 28);\n\n addFrame.add(jLabelIdSite);\n addFrame.add(jComboBoxSelectSite);\n addFrame.add(jLabelIdRoom);\n addFrame.add(jTextFiedlIdRoom);\n addFrame.add(jLabelName);\n addFrame.add(jTextFiedldName);\n addFrame.add(jLabelCapacity);\n addFrame.add(jTextFiedldCapacity);\n addFrame.add(jButtonCanceled);\n addFrame.add(jButtonAdd);\n\n jButtonCanceled.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n addFrame.dispose();\n }\n });\n jButtonAdd.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n Room rm = new Room();\n Site site = new Site();\n assert rm != null;\n if(!jTextFiedldName.getText().equals(\"\") && !jTextFiedldCapacity.getText().equals(\"\")){\n if(!rm.alreadyExist(jTextFiedlIdRoom.getText())){\n Room room = new Room(jTextFiedlIdRoom.getText(), Integer.parseInt(jTextFiedldCapacity.getText()), jTextFiedldName.getText(), site.findByName(Objects.requireNonNull(jComboBoxSelectSite.getSelectedItem()).toString()).getIdSite());\n room.createRoom();\n addFrame.dispose();\n }}\n else {\n AlertePopUp alertePopUp = new AlertePopUp();\n alertePopUp.AddFailId.setVisible(true);\n System.out.println(\"Erreur de saisie des informations\");\n addRoomWindow(controllerAdmin);\n }\n } catch (SQLException | ClassNotFoundException throwables) {\n throwables.printStackTrace();\n }\n }\n });\n\n addFrame.setTitle(\"Ajout d'une salle\");\n addFrame.setSize(600,200);\n addFrame.setLocation(200, 100);\n addFrame.setLayout(null);\n addFrame.setVisible(true);\n }",
"public static void Display(AnalysisController pController, String pstrTitle) {\n \n Stage stgAboutMeerkatDialog = new Stage();\n stgAboutMeerkatDialog.initModality(Modality.APPLICATION_MODAL);\n \n //Label lblAboutMeerkat = new Label(strAboutMeerkat);\n \n String aboutMeerkat = \"Meerkat is a social network analysis tool developed at AMII, Department of Computing Science, University of Alberta, \"\n + \"under the leadership of Dr. Osmar Zaïane.\";\n \n String meerkatURL = \"https://www.amii.ca/meerkat\";\n \n Hyperlink link = new Hyperlink(meerkatURL);\n link.setBorder(Border.EMPTY);\n link.setPadding(new Insets(0, 0, 0, 0));\n link.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n try{\n if( Desktop.isDesktopSupported() )\n {\n new Thread(() -> {\n try {\n Desktop.getDesktop().browse( new URI( meerkatURL ) );\n } catch (Exception et) {\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }).start();\n }\n stgAboutMeerkatDialog.close();\n }catch(Exception exp){\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }\n });\n \n \n \n String meerkatEmail = \"meerkat@cs.ualberta.ca \";\n\n String details = \"For more details please visit us online at: \";\n String emailDetails = \" or email us at: meerkat@cs.ualberta.ca\";\n \n String meerkatVersion = \"Meerkat Version: \"+MeerkatSoftwareValidator.getMeerkatVersion();\n String meerkatReleaseDate = \"Version Release Date: 2018 February 02\";\n\n String meerkatcurrentDevs = \"Current Developers : Sankalp Prabhakar, Talat Iqbal Syed\";\n \n String meerkatPastDevs = \"Past and Present Team Members (alphabetically): Abhimanyu Panwar, Ali Yadollahi, Afra Abnar, Amin Travelsi, Eric Verbeek, Farzad Sangi, Justin Fagnan, \\n\" +\n \"Jiyang Chen, Matt Gallivan, Mansoureh Takaffoli, Reihaneh Rabbany, Sankalp Prabhakar, Shiva Zamani Gharaghooshi, \"\n + \"Talat Iqbal Syed, Xiaoxiao Li.\";\n\n \n VBox labels = new VBox();\n Label label1 = new Label(aboutMeerkat);\n Label label2 = new Label(details);\n Label label3 = new Label(emailDetails);\n \n HBox hbox = new HBox();\n hbox.getChildren().addAll(label2, link, label3);\n \n Label version = new Label(meerkatVersion);\n Label releaseDate = new Label(meerkatReleaseDate);\n Label currDevs = new Label(meerkatcurrentDevs);\n Label pastDevs = new Label(meerkatPastDevs);\n \n labels.getChildren().addAll(label1,hbox,version,releaseDate,currDevs,pastDevs);\n labels.setPadding(new Insets(5, 10, 5, 10));\n labels.setSpacing(10);\n \n // Build a VBox\n Button btnOK = new Button(LangConfig.GENERAL_OK);\n VBox vboxRows = new VBox(5);\n vboxRows.setPadding(new Insets(5,10,5,10)); \n vboxRows.getChildren().addAll(labels, btnOK);\n vboxRows.setAlignment(Pos.CENTER);\n \n Scene scnAboutMeerkatDialog = new Scene(vboxRows);\n scnAboutMeerkatDialog.addEventFilter(KeyEvent.KEY_PRESSED, (KeyEvent evt) -> {\n if (evt.getCode().equals(KeyCode.ESCAPE)) {\n stgAboutMeerkatDialog.close();\n pController.updateStatusBar(false, StatusMsgsConfig.WINDOW_CLOSED);\n }\n });\n \n //stgAboutMeerkatDialog.initModality(Modality.WINDOW_MODAL);\n stgAboutMeerkatDialog.setTitle(pstrTitle); \n stgAboutMeerkatDialog.setResizable(false);\n \n \n // Events \n btnOK.setOnAction((ActionEvent e) -> {\n // Close the dialog box\n stgAboutMeerkatDialog.close();\n \n // Update the Status bar\n pController.updateStatusBar(false, StatusMsgsConfig.ABOUT_CLOSED);\n });\n \n stgAboutMeerkatDialog.setScene(scnAboutMeerkatDialog);\n stgAboutMeerkatDialog.show();\n \n // Update the status bar\n pController.updateStatusBar(true, StatusMsgsConfig.ABOUT_SHOW);\n }",
"public Login(Main pai) {\n this.pai = pai;\n initComponents();\n senhaBox.setEchoChar('*');\n \n loginBox.setText(\"eymar@dono.goldfork.com\");\n senhaBox.setText(\"eymar\");\n }",
"private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDescription = makeJLabel(\"Description: \", 10, 130, 80, 25);\r\n JLabel createLabelDueDate = makeJLabel(\"Due Date: \", 10, 160, 80, 25);\r\n JLabel createLabelPriority = makeJLabel(\"Priority Level: \", 10, 190, 80, 25);\r\n\r\n addToTodoTaskGui(createLabelName, createLabelDescription, createLabelDueDate, createLabelPriority);\r\n\r\n JButton clickSave = makeButton(\"saveTask\", \"Save\", 80, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickSave);\r\n\r\n JButton clickCancel = makeButton(\"cancelTask\", \"Cancel\", 280, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickCancel);\r\n }\r\n }",
"private void srediFormu() {\n txtStatus.setEditable(false);\n txtStatus.setText(\"Server nije pokrenut\");\n btnPokreniServer.setEnabled(true);\n btnZaustaviServer.setEnabled(false);\n this.setTitle(\"Server Aplikacija\");\n }",
"private void pokupiIzPoljaIKreirajServisera() {\n\t\tServiser noviServiser;\n\t\tif(izmena == false) {\n\t\t\tString ime = rssv.getTfIme().getText();\n\t\t\tString prezime = rssv.getTfPrezime().getText();\n\t\t\tString JMBG = rssv.getTfJMBG().getText();\n\t\t\tPol pol = rssv.getPolBox().getSelectionModel().getSelectedItem();\n\t\t\tString adresa = rssv.getTfAdresa().getText();\n\t\t\tString brojTelefona = rssv.getTfBrojTelefona().getText();\n\t\t\tString korisnickoIme = rssv.getTfKorisnickoIme().getText();\n\t\t\tString lozinka = rssv.getTfLozinka().getText();\n\t\t\tSpecijalizacija specijalizacija = rssv.getSpecijalizacijaBox().getSelectionModel().getSelectedItem();\n\t\t\t\t\n\t\t\ttry {\n\t\t\t\tdouble plata = Double.valueOf(rssv.getTfPlata().getText());\n\t\t\t\tnoviServiser = new Serviser(ime, prezime, JMBG, pol, adresa, brojTelefona, korisnickoIme, lozinka, specijalizacija, plata);\n\t\t\t\trssv.getTabela().getItems().add(noviServiser);\n\t\t\t\tServiserController.upisiServiseraUFajl(noviServiser);\n\t\t\t\trssv.resetujPolja();\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\trssv.izbaciPorukuOGresci(e.getMessage());\n\t\t\t} catch (Exception e) {\n\t\t\t\trssv.izbaciPorukuOGresci(e.getMessage());\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tString ime = rssv.getTfIme().getText();\n\t\t\tString prezime = rssv.getTfPrezime().getText();\n\t\t\tString JMBG = rssv.getTfJMBG().getText();\n\t\t\tPol pol = rssv.getPolBox().getSelectionModel().getSelectedItem();\n\t\t\tString adresa = rssv.getTfAdresa().getText();\n\t\t\tString brojTelefona = rssv.getTfBrojTelefona().getText();\n\t\t\tString korisnickoIme = rssv.getTfKorisnickoIme().getText();\n\t\t\tString lozinka = rssv.getTfLozinka().getText();\n\t\t\tSpecijalizacija specijalizacija = rssv.getSpecijalizacijaBox().getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tdouble plata = Double.valueOf(rssv.getTfPlata().getText());\n\t\t\t\tnoviServiser = new Serviser(tempServiser.getOznaka(), ime, prezime, JMBG, pol, adresa, brojTelefona, korisnickoIme, lozinka, false, specijalizacija, plata);\n\t\t\t\tServiserController.izbrisiIzUcitanihServiseraSaOznakom(tempServiser.getOznaka());\n\t\t\t\trssv.getTabela().getItems().add(noviServiser);\n\t\t\t\tServiserController.upisiServiseraUFajl(noviServiser);\n\t\t\t\trssv.getTabela().getItems().remove(tempServiser);\n\t\t\t\tServiserController.sacuvajIzmeneUFajl();\n\t\t\t\trssv.resetujPolja();\n\t\t\t\t\n\t\t\t\tizmena = false;\n\t\t\t\ttempServiser = null;\n\t\t\t\t\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}"
] |
[
"0.6040914",
"0.59809023",
"0.5897623",
"0.5838972",
"0.5776661",
"0.5714994",
"0.57012767",
"0.56778055",
"0.56567",
"0.5649244",
"0.55539566",
"0.5547978",
"0.5526691",
"0.55158335",
"0.5492498",
"0.54340106",
"0.5433981",
"0.54337704",
"0.54316854",
"0.5430177",
"0.54283124",
"0.54244393",
"0.5419118",
"0.5414409",
"0.5412114",
"0.53857034",
"0.53778183",
"0.53677887",
"0.5366964",
"0.53505003",
"0.5349202",
"0.5341294",
"0.5337514",
"0.5327238",
"0.53254783",
"0.5324122",
"0.53226614",
"0.5321149",
"0.53154176",
"0.5312741",
"0.53050715",
"0.52969724",
"0.5296674",
"0.5283582",
"0.5274504",
"0.5273554",
"0.5266742",
"0.5264803",
"0.52641237",
"0.52437985",
"0.5242071",
"0.5236552",
"0.5221744",
"0.5219814",
"0.52185047",
"0.5218152",
"0.5217524",
"0.5217038",
"0.52127415",
"0.5209246",
"0.52058846",
"0.520316",
"0.51966774",
"0.51949096",
"0.5194419",
"0.51892143",
"0.5184559",
"0.51788884",
"0.5175478",
"0.51737666",
"0.5170176",
"0.5167508",
"0.5164371",
"0.51605904",
"0.51579195",
"0.51489115",
"0.5148737",
"0.51457316",
"0.5140975",
"0.5140747",
"0.5137134",
"0.51347685",
"0.51342684",
"0.51287425",
"0.5128719",
"0.5123574",
"0.5122964",
"0.5120339",
"0.5117126",
"0.5114133",
"0.51114637",
"0.51113045",
"0.51099867",
"0.5108266",
"0.51047707",
"0.51024026",
"0.5102345",
"0.5101133",
"0.50987434",
"0.5097109",
"0.50915253"
] |
0.0
|
-1
|
Checks the error listener for an expected error. The properties of the error event will be compared with the expected values.
|
private void checkErrorListener(final EventType<? extends ConfigurationErrorEvent> type, final EventType<?> opType, final String key, final Object value) {
final Throwable exception = listener.checkEvent(type, opType, key, value);
assertInstanceOf(SQLException.class, exception);
listener = null; // mark as checked
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testGetPropertyError() throws ConfigurationException {\n setUpErrorConfig().getProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"public void calculateError(double expected) {\n error = neuron.getTransferFunction().derivative(neuron.getRawOutput()) * (expected - neuron.getOutput());\n }",
"@Test\n public void testAddPropertyError() throws ConfigurationException {\n setUpErrorConfig().addProperty(\"key1\", \"value\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.ADD_PROPERTY, \"key1\", \"value\");\n }",
"@Test\n public void testLogErrorListener() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpConfig();\n assertEquals(1, config.getEventListeners(ConfigurationErrorEvent.ANY).size());\n }",
"@Test\n public void setError_ErrorIsSet_Passes() throws Exception {\n test2JsonResponse.setError(test2error);\n Assert.assertEquals(test2JsonResponse.getError(), test2error);\n }",
"private void setUpErrorListener(final PotentialErrorDatabaseConfiguration config) {\n // remove log listener to avoid exception longs\n config.clearErrorListeners();\n listener = new ErrorListenerTestImpl(config);\n config.addEventListener(ConfigurationErrorEvent.ANY, listener);\n config.failOnConnect = true;\n }",
"private static void assertEquals(double expected, double actual, double delta) {\n if (Math.abs(actual - expected) >= delta) {\n System.err.println(\"Test Failure! Expected: \" + expected + \", actual: \" + actual);\n doesPass = false;\n (new Exception()).printStackTrace(); // trick to show stack trace to identify failure\n }\n }",
"@Test\n public void testLogErrorListener()\n {\n assertEquals(\"No default error listener registered\", 1,\n new DefaultConfigurationBuilder().getErrorListeners().size());\n }",
"public boolean isInError()\r\n {\r\n return myCurrentState.equals(State.ERROR);\r\n }",
"@Test\n public void testGetKeysError() throws ConfigurationException {\n final Iterator<String> it = setUpErrorConfig().getKeys();\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, null, null);\n assertFalse(it.hasNext());\n }",
"public void onReceivedError();",
"public static void calError(Neuron x) {\r\n int error = x.getDesired() - x.getActual();\r\n x.setError(error);\r\n }",
"@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}",
"public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}",
"@Override\n public void onError(SpeedTestError speedTestError, String errorMessage) {\n }",
"private void reportExpectedError(@Nullable Token token, Object expected) {\n reportError(token, \"'%s' expected\", expected);\n }",
"public void verify(Object expListener)\n {\n assertEquals(\"Wrong number of invocations\", listenerTypeIndex,\n expectedListenerTypes.length);\n assertSame(\"Wrong listener\", expListener, listener);\n }",
"Set<ExpectedErrorConfig> getExpectedErrors();",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Test(expected = ChangeException.class)\n public void testGiveChangeException()throws ChangeException{\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n instance.giveChange();\n }",
"public void correctErrors();",
"@Test\n\tpublic void testValidationTrace() throws Exception {\n\t\ttry {\n\t\t\tSchema schema = factory.create(basicSchema);\n\t\t\tschema.validate(parser.read(basicJsonError));\n\t\t} catch (ValidationException e) {\n\t\t\tassertEquals(\"model.members[1].size\", e.toString());\n\t\t}\n\t}",
"@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }",
"private void checkResults() {\n\t\tif (isOver()) {\n\t\t\tfor (GameListener gameListener : gameListeners) {\n\t\t\t\tgameListener.gameOverCallback();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void verifyResultDocument(TransformerFactory transformerFactory, Document resultDocument) throws Throwable {\n List<UpConversionFailure> upConversionFailures = UpConversionUtilities.extractUpConversionFailures(resultDocument);\n String result;\n if (upConversionFailures.isEmpty()) {\n /* Should have succeeded, so verify as normal */\n super.verifyResultDocument(transformerFactory, resultDocument);\n }\n else {\n /* Make sure we get the correct error code(s) */\n result = expectedXML.replaceAll(\"<.+?>\", \"\"); /* (Yes, it's not really XML in this case!) */\n if (result.charAt(0)!='!') {\n Assert.fail(\"Did not expect up-conversion errors!\");\n }\n String[] expectedErrorCodes = result.substring(1).split(\",\\\\s*\");\n Assert.assertEquals(expectedErrorCodes.length, upConversionFailures.size());\n for (int i=0; i<expectedErrorCodes.length; i++) {\n Assert.assertEquals(expectedErrorCodes[i], upConversionFailures.get(i).getErrorCode().toString());\n }\n }\n }",
"private static void checkError(Class<?> expectedErrorClass, Throwable thrown,\n boolean in_invocation_exc) {\n if (expectedErrorClass != null && thrown == null) {\n fail(\"Expected error of type \" + expectedErrorClass);\n } else if (expectedErrorClass == null && thrown != null) {\n fail(\"Unexpected error \" + thrown);\n } else if (expectedErrorClass != null && thrown != null) {\n if (in_invocation_exc) {\n if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) {\n fail(\"Expected invocation target exception, but got \" + thrown);\n }\n thrown = thrown.getCause();\n }\n if (!expectedErrorClass.equals(thrown.getClass())) {\n thrown.printStackTrace(System.err);\n fail(\"Expected error of type \" + expectedErrorClass + \", but got \" +\n thrown.getClass());\n }\n }\n }",
"void checkConsumption()\n {\n assertEquals(\"Consumption doesn't match\", keyEventPair.getKey().isConsumed(), keyEventPair.getValue().isConsumed());\n }",
"boolean hadErrors();",
"void onErrorOccurred() {\n mUserAwarenessListener.onErrorOccurred(Errors.UNDEFINED);\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }",
"public boolean hasErrors();",
"public void checkError(int[][] job, int size) {\n\t\tif(size == 0) {\n\t\t\tthrow new AssertionError(\"No jobs to show result\");\n\t\t}\n\t\t\n\t\tif(size != job.length) {\n\t\t\tthrow new AssertionError(\"Wrong number of jobs given.\");\n\t\t}\n\t\t\n\t\tfor(int i=0; i<size; i++) {\n\t\t\tif(job[i][0] < 0 || job[i][1] < 0) {\n\t\t\t\t\tthrow new AssertionError(\"Negative value found.\");\n\t\t\t}\t\t\n\t\t}\n\t}",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }",
"@Before\n public void checkGameState() throws Exception {\n assertThat(game.isGameError()).isFalse();\n }",
"protected void checkValidity(Epml epml) {\n\t}",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"public interface ErrorListener {\r\n /**\r\n * Responds to the error event in any way that the listener chooses\r\n * @param source The object that raised the error event\r\n * @param msg An optional message created by the source object\r\n */\r\n public void respondToError(Object source, String msg);\r\n}",
"@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }",
"public void errorOccured(String errorMessage, Exception e);",
"boolean assertExpected(Exception e);",
"public synchronized void setErrListener(LineListener errListener) {\n this.errListener = errListener;\n }",
"public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult Result) {\n\t\t\r\n\t}",
"private void notifyListenerError(VolleyError error) {\n for (OnDataChangedListener listener : dataChangedListeners) {\n listener.onDataError(error);\n }\n }",
"boolean hasErrors();",
"public void ValidateErrorLabel()\n {\n\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(ErrorLabel));\n\n Assert.assertEquals(ErrorLabel.getText(), \"You need to upload at least one file.\");\n\n }",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\r\n\t}",
"private void verifyExceptionThrown(Exception thrown, Class expected) {\n\n boolean exceptionFound = false;\n Throwable cause = thrown;\n while (cause != null) {\n if (expected.isInstance(cause)) {\n // good\n exceptionFound = true;\n break;\n }\n else {\n cause = cause.getCause();\n }\n }\n if (!exceptionFound) {\n Assert.fail(expected.getSimpleName() + \" was expected but not thrown\", thrown);\n }\n }",
"void notifyError(RecorderErrorEvent event);",
"@Then(\"^validation error message should be displayed$\")\n public void verifyThatValidationErrorMessageIsDiplayed() {\n assertion.assertTrue(StoryBoard.validationError());\n }",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\n\t}",
"@Override\n\t\tprotected boolean onError(final Exception e) {\n\t\t\treturn false;\n\t\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\r\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\r\n\t}",
"protected void VerifyUrlDoesntHaveAnError() {\n\t\tif (urlHasAnError())\n\t\t\tReports.logAMessage(LogStatus.ERROR, \"BasePage: URL has an error\");\n\t}",
"public boolean hasError();",
"public static void assertEquals(double expected, double actual, double delta) throws AssertException\n\t{\n\t\tif (Math.abs(expected - actual) > delta)\n\t\t{\n\t\t\tString errorMessage = String.format(\"\\n*******************************\"\n\t\t\t\t\t+ \"\\n*** Test Results: *************\"\n\t\t\t\t\t+ \"\\n*******************************\\n\"\n\t\t\t\t\t+ \"Equality Error!\\nExpected: %f\\nActually: %f\\n\"\n\t\t\t\t\t+ \"Should be equal within a range of %f\\n\", expected, actual, delta);\n\t\t\tthrow new AssertException(errorMessage);\n\t\t}\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"private void verifyEvents(boolean titleEvent, boolean nameEvent, boolean descriptionEvent) {\n if (titleEvent) {\n Assert.assertEquals(\"Missing title change event\", titleEvent, titleChangeEvent);\n }\n if (nameEvent) {\n Assert.assertEquals(\"Missing name change event\", nameEvent, nameChangeEvent);\n }\n if (descriptionEvent) {\n Assert.assertEquals(\"Missing content description event\", descriptionEvent, contentChangeEvent);\n }\n }",
"@Test\n public void testSingleErrorDetecting() {\n final int[] msgWithError = {0,0,1,0, 1,0,1,1, 1,0,1,0, 1,1,1,0};\n final int expectedErrorIndex = 10;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n\t}",
"public void checkError() {\n if (this.threadError != null) {\n throw new EncogError(this.threadError);\n }\n }",
"@Override\n\t\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\tSystem.out.println(\"on failed but within success percentage\");\n\t\t\n\t}",
"private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }",
"public boolean hasError() {\n\t\treturn results.getErrors().contains( \"ERROR\") ;\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}",
"public void onBattleError(BattleErrorEvent e) {\n System.out.println(\"Err> \" + e.getError());\n }",
"private void assertCommandFailure(String inputCommand, String expectedMessage) {\n WhatsLeft expectedWhatsLeft = new WhatsLeft(model.getWhatsLeft());\n List<ReadOnlyEvent> expectedShownList = new ArrayList<>(model.getFilteredEventList());\n assertCommandBehavior(true, inputCommand, expectedMessage, expectedWhatsLeft, expectedShownList);\n }",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n\t}",
"public void mo55177a() {\n this.f1453a.onError(this.f1454b);\n }",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"@Override\n\tpublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"public void testSamePathHasError() {\n PersonEditorReceivesErrors editor = new PersonEditorReceivesErrors();\n AddressEditorReceivesErrors addressEditor = new AddressEditorReceivesErrors();\n editor.addressEditor = addressEditor;\n\n Address a = new Address();\n Person p = new Person();\n p.address = a;\n\n PersonEditorDriver driver = new PersonEditorDriver_Impl();\n driver.initialize(editor);\n driver.edit(p);\n driver.flush();\n\n driver.setConstraintViolations(\n Arrays.<ConstraintViolation<?>>asList(createViolation(\"samePathError\", p, \"address\")));\n assertEquals(0, driver.getErrors().size());\n\n assertEquals(0, editor.errors.size());\n\n List<EditorError> list = addressEditor.errors;\n assertNotNull(list);\n assertEquals(1, list.size());\n\n EditorError error = list.get(0);\n assertNotNull(error);\n assertEquals(\"address\", error.getAbsolutePath());\n assertEquals(\"samePathError\", error.getMessage());\n assertEquals(\"\", error.getPath());\n assertNotNull(error.getUserData());\n assertSame(a, error.getValue());\n assertSame(addressEditor, error.getEditor());\n }",
"boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }",
"void onValidationFailed();",
"public void doRequiredCheck() {\n\t\tthis.checkValue(listener);\n\t}",
"@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}",
"public void testChangeListener() throws Exception\n {\n checkFormEventListener(CHANGE_BUILDER, \"CHANGE\");\n }",
"public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\n\t}"
] |
[
"0.59909296",
"0.56294835",
"0.55764395",
"0.54935116",
"0.54794174",
"0.54360914",
"0.5297812",
"0.52899",
"0.52857125",
"0.5281978",
"0.5267491",
"0.52651864",
"0.5234916",
"0.5231009",
"0.52176213",
"0.51983225",
"0.5188406",
"0.5183958",
"0.5173518",
"0.51438797",
"0.51378727",
"0.513749",
"0.5135618",
"0.51331687",
"0.50963163",
"0.5085977",
"0.5081352",
"0.5079022",
"0.50590897",
"0.50553566",
"0.5054691",
"0.50508034",
"0.50495625",
"0.50491786",
"0.5040734",
"0.5035697",
"0.5032443",
"0.5028686",
"0.5027069",
"0.50147367",
"0.5013484",
"0.50089896",
"0.500623",
"0.49934357",
"0.4989499",
"0.49861568",
"0.4983427",
"0.4983427",
"0.4983427",
"0.4980067",
"0.4979475",
"0.4973584",
"0.49733737",
"0.49723494",
"0.49672562",
"0.496473",
"0.496473",
"0.49617097",
"0.496114",
"0.4957296",
"0.4957096",
"0.4957096",
"0.49547943",
"0.4950899",
"0.49383384",
"0.4935692",
"0.4935692",
"0.49286115",
"0.49280658",
"0.49233484",
"0.4922057",
"0.4916494",
"0.49128997",
"0.49128997",
"0.49128997",
"0.49123558",
"0.49084896",
"0.49062854",
"0.49062854",
"0.49062854",
"0.49062854",
"0.490533",
"0.490533",
"0.4902076",
"0.48971283",
"0.48914582",
"0.48914582",
"0.48914582",
"0.48914582",
"0.48914582",
"0.48914582",
"0.48914582",
"0.48883992",
"0.48876977",
"0.48823345",
"0.48813137",
"0.48789978",
"0.48771992",
"0.4875019",
"0.4875019"
] |
0.5739294
|
1
|
/ Thread.sleep may or may not help with the database is already in use exception. Thread.sleep(1000); set up the datasource
|
@BeforeEach
public void setUp() throws Exception {
helper = new DatabaseConfigurationTestHelper();
helper.setUp();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private DataSource() {\n Connection tmpConn = null;\n while(tmpConn == null) {\n try {\n tmpConn = DriverManager.getConnection(CONNECTION_STRING);\n } catch(SQLException e) {\n print(\"Couldn't connect to \" + DB_NAME + \" database: \" + e.getMessage());\n print(\"Trying again in three seconds...\");\n try {\n Thread.sleep(3000);\n } catch(InterruptedException ie) {}\n }\n }\n conn = tmpConn;\n }",
"public static boolean initDatasource() {\n // first we locate the driver\n String pgDriver = \"org.postgresql.Driver\";\n try {\n ls.debug(\"Looking for Class : \" + pgDriver);\n Class.forName(pgDriver);\n } catch (Exception e) {\n ls.fatal(\"Cannot find postgres driver (\" + pgDriver + \")in class path\", e);\n return false;\n }\n\n try{ \n String url = \"jdbc:postgresql://inuatestdb.cctm7tiltceo.us-west-2.rds.amazonaws.com:5432/inua?user=inua&password=jw8s0F4\";\n dsUnPooled =DataSources.unpooledDataSource(url);\n dsPooled = DataSources.pooledDataSource(dsUnPooled);\n \n poolInit = true;\n }\n catch (Exception e){ \n ls.fatal(\"SQL Exception\",e);\n System.out.println(\"initDataSource\" + e);\n return false;\n }\n \n return true;\n}",
"synchronized void initDataSource()\n throws SQLException\n {\n if (_isStarted)\n return;\n \n _isStarted = true;\n \n for (int i = 0; i < _driverList.size(); i++) {\n DriverConfig driver = _driverList.get(i);\n \n driver.initDataSource(_isTransactional, _isSpy);\n }\n \n try {\n if (_isTransactional && _tm == null) {\n Object obj = new InitialContext().lookup(\"java:comp/TransactionManager\");\n \n if (obj instanceof TransactionManager)\n _tm = (TransactionManager) obj;\n }\n } catch (NamingException e) {\n throw new SQLExceptionWrapper(e);\n }\n }",
"public void bootstrapDatabase() throws Exception {\n\n }",
"@BeforeEach\n void testDataSource() throws SQLException {\n jdbcds = new JdbcDataSource();\n jdbcds.setUrl(\"jdbc:h2:mem:dbmembers;DB_CLOSE_DELAY=-1\");\n Flyway.configure().dataSource(jdbcds).load().migrate();\n }",
"public void testNotReady() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n props.setProperty(SqlDbManager.PARAM_DATASOURCE_CLASSNAME, \"java.lang.String\");\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n assertEquals(false, sqlDbManager.isReady());\n\n Connection conn = null;\n try {\n conn = sqlDbManager.getConnection();\n } catch (SQLException sqle) {\n }\n assertNull(conn);\n\n }",
"public GosplPopulationInDatabase() {\n\t\ttry {\n\t\t\tthis.connection = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:hsqldb:mem:\"+mySqlDBname+\";shutdown=true\", \"SA\", \"\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"error while trying to initialize the HDSQL database engine in memory: \"+e.getMessage(), e);\n\t\t}\n\t}",
"public void initEDBConnection(String name) throws SQLException {\n String dbName = buildDBName(name);\n cache = new CacheManager<>(1024);\n File f = new File(dbName);\n\n if (!f.exists())\n createDB(dbName);\n else if(!f.isDirectory())\n createDB(dbName);\n else\n connectDB(dbName);\n\n refreshCurrentAccountId();\n refreshCurrentOperationId();\n }",
"@BeforeAll\n public static void setupDataSource() {\n dataSource = new SingleConnectionDataSource();\n dataSource.setUrl(\"jdbc:postgresql://localhost:5432/integral-project-test\");\n dataSource.setUsername(\"postgres\");\n dataSource.setPassword(\"postgres1\");\n dataSource.setAutoCommit(false);\n }",
"private DatabaseConnectionService() {\n ds = new HikariDataSource();\n ds.setMaximumPoolSize(20);\n ConfigProperties configProperties = ConfigurationLoader.load();\n if (configProperties == null) {\n throw new RuntimeException(\"Unable to read the config.properties.\");\n }\n ds.setDriverClassName(configProperties.getDatabaseDriverClassName());\n ds.setJdbcUrl(configProperties.getDatabaseConnectionUrl());\n ds.addDataSourceProperty(\"user\", configProperties.getDatabaseUsername());\n ds.addDataSourceProperty(\"password\", configProperties.getDatabasePassword());\n ds.setAutoCommit(false);\n }",
"private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.close();\n\t\t\treturn; //A database exists already\n\t\t}\n\t\tresultSet.close();\n\t\t//No database exists yet, create it.\n\t\t\n\t\tstatement.execute(\"CREATE DATABASE \" + dbName);\n\t\tstatement.execute(\"USE \" + dbName);\n\t\tstatement.execute(createTableStatement);\n\t\tstatement.close();\n\t\treturn;\n\t}",
"@Bean(destroyMethod = \"close\")\n\tpublic DataSource dataSource() {\n\t\tHikariConfig config = Utils.getDbConfig(dataSourceClassName, url, port, \"postgres\", user, password);\n\n try {\n\t\t\tlogger.info(\"Configuring datasource {} {} {}\", dataSourceClassName, url, user);\n config.setMinimumIdle(0);\n\t\t\tHikariDataSource ds = new HikariDataSource(config);\n\t\t\ttry {\n\t\t\t\tString dbExist = \"SELECT datname FROM pg_catalog.pg_database WHERE lower(datname) = lower('\"+databaseName+\"')\";\n\t\t\t\tPreparedStatement statementdbExist = ds.getConnection().prepareStatement(dbExist);\n\t\t\t\tif(statementdbExist.executeQuery().next()) {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tds.close();\n\t\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\t} else {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tString sql = \"CREATE DATABASE \" + databaseName;\n\t\t\t\t\tPreparedStatement statement = ds.getConnection().prepareStatement(sql);\n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tds.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlogger.error(\"ERROR Configuring datasource SqlException {} {} {}\", e);\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t} catch (Exception ee) {\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\tlogger.debug(\"ERROR Configuring datasource catch \", ee);\n\t\t\t}\n\t\t\tHikariConfig config2 = Utils.getDbConfig(dataSourceClassName, url, port, databaseName, user, password);\n\t\t\treturn new HikariDataSource(config2);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"ERROR in database configuration \", e);\n\t\t} finally {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}",
"private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}",
"private void initPool() throws SQLException {\n\t\tint POOL_SIZE = 90;\n\t\tthis.connectionPool = new LinkedBlockingQueue<>(POOL_SIZE);\n\t\tfor(int i = 0; i < POOL_SIZE; i++) {\n\t\t\tConnection con = DriverManager.getConnection(dburl, user, password);\n\t\t\tconnectionPool.offer(con);\n\t\t}\n\t}",
"private void connectToDB() throws Exception\n\t{\n\t\tcloseConnection();\n\t\t\n\t\tcon = Env.getConnectionBradawl();\n\t}",
"private void setupDatabase() throws SQLException {\n\t\tdb.open(\"localhost\", 3306, \"wow\", \"greeneconomyapple\");\n\t\tdb.use(\"auctionscan\");\n\t}",
"public static void InitializeDatabase() throws SQLException {\n dataSource = new SQLiteConnectionPoolDataSource();\n dataSource.setUrl(\"jdbc:sqlite:application.db\");\n\n // Optional Configuration Settings\n org.sqlite.SQLiteConfig config = new org.sqlite.SQLiteConfig();\n config.enforceForeignKeys(true);\n config.enableLoadExtension(true);\n dataSource.setConfig(config);\n\n connectionPool = dataSource.getPooledConnection();\n }",
"@Before\r\n\tpublic void setUp() throws SQLException {\n\t\tconn = DBManager.getInstance().getConnection();\r\n\t}",
"private void doDBProcessing() throws InterruptedException {\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t}",
"@Test(expected=SQLTimeoutException.class)\n\tpublic void testNoIdleConnectionsWhenGetConnection() throws SQLException {\n\t\tconfig.setConnectionTimeout(TimeUnit.SECONDS.toMillis(1));\n\t\tfor (int i= 0; i < pool.totalConnections(); i++) {\n\t\t\tpool.getConnection();\n\t\t}\n\t\tpool.getConnection();\n\t}",
"private void setupDatabase()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n }\n catch (ClassNotFoundException e)\n {\n simpleEconomy.getLogger().severe(\"Could not load database driver.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n\n try\n {\n connection = DriverManager\n .getConnection(String.format(\"jdbc:mysql://%s/%s?user=%s&password=%s\",\n simpleEconomy.getConfig().getString(\"db.host\"),\n simpleEconomy.getConfig().getString(\"db.database\"),\n simpleEconomy.getConfig().getString(\"db.username\"),\n simpleEconomy.getConfig().getString(\"db.password\")\n ));\n\n // Loads the ddl from the jar and commits it to the database.\n InputStream input = getClass().getResourceAsStream(\"/ddl.sql\");\n try\n {\n String s = IOUtils.toString(input);\n connection.createStatement().execute(s);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n input.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n catch (SQLException e)\n {\n simpleEconomy.getLogger().severe(\"Could not connect to database.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n }",
"@Override\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void start() {\n\t\tinitLogger();\n\n\t\tif (!databaseEnabled) {\n\t\t\tlog.info(\"DB not enabled.\");\n\t\t\treturn;\n\t\t}\n\n\t\tlog.info(\"DB start ----------\");\n\n\t\tfinal PetiteContainer petiteContainer = joyPetiteSupplier.get().getPetiteContainer();\n\n\t\t// connection pool\n\t\tconnectionProvider = createConnectionProviderIfNotSupplied();\n\n\t\tpetiteContainer.addBean(beanNamePrefix() + \"pool\", connectionProvider);\n\n\t\tif (connectionProvider instanceof CoreConnectionPool) {\n\t\t\tfinal CoreConnectionPool pool = (CoreConnectionPool) connectionProvider;\n\t\t\tif (pool.getDriver() == null) {\n\t\t\t\tdatabaseEnabled = false;\n\t\t\t\tlog.warn(\"DB configuration not set (\" + beanNamePrefix() + \"pool.*). DB will be disabled.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tconnectionProvider.init();\n\n\t\tcheckConnectionProvider();\n\n\t\t// transactions manager\n\t\tjtxManager = createJtxTransactionManager(connectionProvider);\n\t\tjtxManager.setValidateExistingTransaction(true);\n\n\t\tfinal AnnotationTxAdviceManager annTxAdviceManager = new AnnotationTxAdviceManager(new LeanJtxWorker(jtxManager), jtxScopePattern);\n\t\tAnnotationTxAdviceSupport.manager = annTxAdviceManager;\n\n\t\t// create proxy\n\t\tjoyProxettaSupplier.get().getProxetta().withAspect(createTxProxyAspects(annTxAdviceManager.getAnnotations()));\n\n\t\tfinal DbSessionProvider sessionProvider = new DbJtxSessionProvider(jtxManager);\n\n\t\t// querymap\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal QueryMap queryMap = new DbPropsQueryMap();\n\n\t\tlog.debug(\"Queries loaded in \" + (System.currentTimeMillis() - startTime) + \"ms.\");\n\t\tlog.debug(\"Total queries: \" + queryMap.size());\n\n\t\t// dboom\n\t\tdbOom = DbOom.create()\n\t\t\t.withConnectionProvider(connectionProvider)\n\t\t\t.withSessionProvider(sessionProvider)\n\t\t\t.withQueryMap(queryMap)\n\t\t\t.get();\n\n\t\tdbOom.connect();\n\n\t\tfinal DbEntityManager dbEntityManager = dbOom.entityManager();\n\t\tdbEntityManager.reset();\n\n\t\tpetiteContainer.addBean(beanNamePrefix() + \"query\", dbOom.queryConfig());\n\t\tpetiteContainer.addBean(beanNamePrefix() + \"oom\", dbOom.config());\n\n\t\t// automatic configuration\n\t\tif (autoConfiguration) {\n\t\t\tfinal AutomagicDbOomConfigurator automagicDbOomConfigurator =\n\t\t\t\tnew AutomagicDbOomConfigurator(dbEntityManager, true);\n\n\t\t\tautomagicDbOomConfigurator.configure();\n\t\t}\n\n\t\tdbEntityManagerConsumers.accept(dbEntityManager);\n\n\t\tlog.info(\"DB OK!\");\n\t}",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}",
"public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }",
"@AfterClass\n\tpublic static void closeDataSource() throws SQLException {\n\t\tdataSource.destroy();\n\t}",
"@AfterClass\n\tpublic static void closeDataSource() throws SQLException {\n\t\tdataSource.destroy();\n\t}",
"private void init() throws SQLException, MalformedURLException {\n\t\tconnection = connect();\n\t\tstmt = connection.createStatement();\n\t\tstmt.setQueryTimeout(30);\n\t}",
"@Test(timeout = 100)\n public void testAccessToDB() {\n System.out.println(\"Starting DB access test\");\n }",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}",
"private void setupDBs()\n {\n\t mSetupDBTask = new SetupDBTask(this);\n\t\tmSetupDBTask.execute((Void[])null);\n }",
"final void checkEnsure() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (this.conn == null || this.conn.isClosed()) {\r\n\t\t\t\tthis.conn = this.ci.createConnection();\r\n\t\t\t\tthis.databaseType = ConnectionHolder.DT_UNKNOWN;\r\n\t\t\t\tthis.loops = this.ci.connectionMaxLoops();\r\n\t\t\t\tthis.date = System.currentTimeMillis() + this.ci.connectionTimeToLive();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (--this.loops < 0 || this.date < System.currentTimeMillis()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tthis.conn = this.ci.createConnection();\r\n\t\t\t\tthis.databaseType = ConnectionHolder.DT_UNKNOWN;\r\n\t\t\t\tthis.loops = this.ci.connectionMaxLoops();\r\n\t\t\t\tthis.date = System.currentTimeMillis() + this.ci.connectionTimeToLive();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (this.databaseType == ConnectionHolder.DT_UNKNOWN) {\r\n\t\t\t\tthis.databaseType = this.conn.getMetaData().getDatabaseProductName().toUpperCase().indexOf(\"ORACLE\") == -1\r\n\t\t\t\t\t? ConnectionHolder.DT_NORMAL\r\n\t\t\t\t\t: ConnectionHolder.DT_ORACLE;\r\n\t\t\t}\r\n\t\t\ttry (final Statement st = this.conn.createStatement()) {\r\n\t\t\t\t/** Do not use it here, may be unsupported? */\r\n\t\t\t\ttry {\r\n\t\t\t\t\tst.setQueryTimeout(10);\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tst.execute(\r\n\t\t\t\t\t\tthis.databaseType == ConnectionHolder.DT_ORACLE\r\n\t\t\t\t\t\t\t? \"SELECT 5 FROM DUAL\"\r\n\t\t\t\t\t\t\t: \"SELECT 5\");\r\n\t\t\t}\r\n\t\t} catch (final SQLException e) {\r\n\t\t\tif (this.conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.conn = this.ci.createConnection();\r\n\t\t\tthis.databaseType = ConnectionHolder.DT_UNKNOWN;\r\n\t\t\tthis.loops = this.ci.connectionMaxLoops();\r\n\t\t\tthis.date = System.currentTimeMillis() + this.ci.connectionTimeToLive();\r\n\t\t}\r\n\t}",
"@Test\n\tvoid contextLoads() throws SQLException {\n\t\tSystem.out.println(dataSource.getClass());\n\n\t\t// 获得连接\n\t\t/*\n\t\t 异常:\n\t\t \tThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.\n\t\t */\n\t\tConnection connection = dataSource.getConnection();\n\n\t\tSystem.out.println(connection);\n\n\t\t// 关闭\n\t\tconnection.close();\n\t}",
"public DatabaseConnector() {\n HikariConfig config = new HikariConfig();\n config.setJdbcUrl(\"jdbc:postgresql://localhost:5547/go_it_homework\");\n config.setUsername(\"postgres\");\n config.setPassword(\"Sam@64hd!+4\");\n this.ds = new HikariDataSource(config);\n ds.setMaximumPoolSize(5);\n }",
"private void tryUpdateDbConnection() {\n try {\n updateDbConnection();\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@BeforeEach\n public void setUp() throws ManagedProcessException, SQLException {\n // See https://github.com/vorburger/MariaDB4j\n DBConfigurationBuilder configBuilder = DBConfigurationBuilder.newBuilder();\n configBuilder.setPort(0); // Setting port to 0 to let configBuilder choose a free open port.\n db = DB.newEmbeddedDB(configBuilder.build());\n db.start();\n db.source(\"database.sql\");\n connection = DriverManager.getConnection(db.getConfiguration().getURL(\"test\"));\n mysqlDatabase = new MysqlDatabase(connection);\n }",
"@Test\n public void testIdleReconnect() throws Exception {\n datasource.getPoolProperties().setTimeBetweenEvictionRunsMillis(20000);\n datasource.getPoolProperties().setMaxAge( 1000 );\n datasource.getPoolProperties().setTestWhileIdle(false);\n datasource.getPoolProperties().setMaxIdle(1);\n datasource.getPoolProperties().setInitialSize(0);\n datasource.getPoolProperties().setMinIdle(1);\n\n Assert.assertEquals(0,datasource.getPool().getReconnectedCount());\n datasource.getConnection().close();\n Assert.assertEquals(0,datasource.getPool().getReconnectedCount());\n Assert.assertEquals(\"Pool should have 1 idle.\", 1, datasource.getIdle());\n Thread.sleep(4000);\n Assert.assertEquals(\"Pool should have 1 idle.\", 1, datasource.getIdle());\n Assert.assertTrue(datasource.getPool().getReconnectedCount()>0);\n }",
"@Override\r\n protected void connect() {\r\n try {\r\n this.setDatabase();\r\n } catch (SQLException e) {\r\n Log.w(NoteTraitDataSource.class.getName(), \"Error setting database.\");\r\n }\r\n }",
"private void connectDatabase(){\n }",
"private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}",
"@Override\n public void run() {\n try (Connection db = DriverManager.getConnection(\n \"jdbc:mysql://127.0.0.1:3306/temperature\", \"root\", \"\")) {\n\n if (db != null) {\n System.out.println(\"Thread status: \" + threadName + \" connected to the Temperature database!\");\n } else {\n System.out.println(\"Thread status: \" + threadName + \" failed to make Temperature database connection!\");\n }\n\n PreparedStatement cmd = db.prepareStatement(\"SELECT COUNT(*) FROM temperature\");\n ResultSet rd = cmd.executeQuery();\n rd.next();\n int data = rd.getInt(1);\n System.out.println(\"Thread status: \" + threadName + \" Temperature database entries: \" + data);\n\n while(data < 11000) {\n\n long offset = Timestamp.valueOf(\"2010-01-01 00:00:00\").getTime();\n long end = Timestamp.valueOf(\"2020-01-01 00:00:00\").getTime();\n long diff = end - offset + 1;\n Timestamp randomTS = new Timestamp(offset + (long)(Math.random() * diff));\n\n double min = -10.0;\n double max = 35.0;\n double randomTemp = Math.round((min + Math.random() * (max - min)) * 10) / 10.0;\n\n data++;\n\n cmd = db.prepareStatement(\"INSERT INTO temperature (id, temperature, timestamp) VALUES (?, ?, ?)\");\n cmd.setInt(1, data);\n cmd.setDouble(2,randomTemp);\n cmd.setTimestamp(3,randomTS);\n\n cmd.executeUpdate();\n }\n\n rd.close();\n cmd.close();\n // db.close(); // is redundant\n\n } catch (SQLException e) {\n System.err.format(\"SQL State: %s\\n%s\", e.getSQLState(), e.getMessage());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public DatabaseConnector() {\n String dbname = \"jdbc/jobs\";\n\n try {\n ds = (DataSource) new InitialContext().lookup(\"java:comp/env/\" + dbname);\n } catch (NamingException e) {\n System.err.println(dbname + \" is missing: \" + e.toString());\n }\n }",
"@Override\n public DataSource getDataSource() {\n\n // PostgreSQL does not provide connection pool (as of version 42.1.3) so make one using Apache Commons DBCP \n ds = new BasicDataSource();\n\n // max number of active connections\n Integer maxTotal = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxTotal\");\n if (maxTotal == null) {\n maxTotal = 8;\n } else {\n log.info(\"Max number of active connections is \"\n + maxTotal);\n }\n ds.setMaxTotal(maxTotal);\n\n // wait time for new connection\n Integer maxWaitMillis = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxWaitMillis\");\n if (maxWaitMillis == null) {\n maxWaitMillis = 60 * 1000;\n } else {\n log.info(\"Connection creation wait is \"\n + maxWaitMillis\n + \" msec\");\n }\n ds.setMaxWaitMillis(maxWaitMillis);\n\n String logAbandoned = System.getProperty(\"dbcp.logAbandoned\");\n if (logAbandoned != null && (\"true\".equalsIgnoreCase(logAbandoned))\n || \"1\".equalsIgnoreCase(logAbandoned)) {\n String removeAbandonedTimeoutString = System.getProperty(\"dbcp.removeAbandonedTimeout\");\n int removeAbandonedTimeout = (int) ds.getMaxWaitMillis() / (2 * 1000);\n if (!StringUtils.isNullOrEmpty(removeAbandonedTimeoutString)) {\n removeAbandonedTimeout = Integer.parseInt(removeAbandonedTimeoutString);\n }\n log.info(\n \"Will log and remove abandoned connections if not cleaned in \"\n + removeAbandonedTimeout\n + \" sec\");\n // log not closed connections\n ds.setLogAbandoned(true); // issue stack trace of not closed connection\n ds.setAbandonedUsageTracking(true);\n ds.setLogExpiredConnections(true);\n ds.setRemoveAbandonedTimeout(removeAbandonedTimeout);\n ds.setRemoveAbandonedOnBorrow(true);\n ds.setRemoveAbandonedOnMaintenance(true);\n ds.setAbandonedLogWriter(new PrintWriter(System.err));\n }\n ds.setValidationQuery(\"SELECT 1\");\n ds.setDriverClassName(getDriverClass().getName());\n ds.setUsername(user);\n ds.setPassword(password);\n ds.setUrl(getURL());\n return ds;\n }",
"private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }",
"public void init(BeeDataSourceConfig config) throws SQLException {\r\n if (poolState.get() == POOL_UNINIT) {\r\n checkProxyClasses();\r\n if (config == null) throw new SQLException(\"Configuration can't be null\");\r\n poolConfig = config.check();//why need a copy here?\r\n\r\n poolName = !isBlank(config.getPoolName()) ? config.getPoolName() : \"FastPool-\" + poolNameIndex.getAndIncrement();\r\n commonLog.info(\"BeeCP({})starting....\", poolName);\r\n\r\n poolMaxSize = poolConfig.getMaxActive();\r\n connFactory = poolConfig.getConnectionFactory();\r\n connectionTestTimeout = poolConfig.getConnectionTestTimeout();\r\n connectionTester = new SQLQueryTester(poolConfig.isDefaultAutoCommit(), poolConfig.getConnectionTestSQL());\r\n defaultMaxWaitNanos = MILLISECONDS.toNanos(poolConfig.getMaxWait());\r\n delayTimeForNextClearNanos = MILLISECONDS.toNanos(poolConfig.getDelayTimeForNextClear());\r\n connectionTestInterval = poolConfig.getConnectionTestInterval();\r\n createInitConnections(poolConfig.getInitialSize());\r\n\r\n if (poolConfig.isFairMode()) {\r\n poolMode = \"fair\";\r\n transferPolicy = new FairTransferPolicy();\r\n conUnCatchStateCode = transferPolicy.getCheckStateCode();\r\n } else {\r\n poolMode = \"compete\";\r\n transferPolicy = new CompeteTransferPolicy();\r\n conUnCatchStateCode = transferPolicy.getCheckStateCode();\r\n }\r\n\r\n exitHook = new ConnectionPoolHook();\r\n Runtime.getRuntime().addShutdownHook(exitHook);\r\n borrowSemaphoreSize = poolConfig.getBorrowSemaphoreSize();\r\n borrowSemaphore = new Semaphore(borrowSemaphoreSize, poolConfig.isFairMode());\r\n idleSchExecutor.setKeepAliveTime(15, SECONDS);\r\n idleSchExecutor.allowCoreThreadTimeOut(true);\r\n idleCheckSchFuture = idleSchExecutor.scheduleAtFixedRate(new Runnable() {\r\n public void run() {// check idle connection\r\n closeIdleTimeoutConnection();\r\n }\r\n }, 1000, config.getIdleCheckTimeInterval(), TimeUnit.MILLISECONDS);\r\n\r\n registerJmx();\r\n commonLog.info(\"BeeCP({})has startup{mode:{},init size:{},max size:{},semaphore size:{},max wait:{}ms,driver:{}}\",\r\n poolName,\r\n poolMode,\r\n connArray.length,\r\n config.getMaxActive(),\r\n borrowSemaphoreSize,\r\n poolConfig.getMaxWait(),\r\n poolConfig.getDriverClassName());\r\n\r\n poolState.set(POOL_NORMAL);\r\n this.setDaemon(true);\r\n this.setName(\"PooledConnectionAdd\");\r\n this.start();\r\n } else {\r\n throw new SQLException(\"Pool has initialized\");\r\n }\r\n }",
"private void makeConnection() {\n try {\n InitialContext ic = new InitialContext();\n DataSource ds = (DataSource) ic.lookup(dbName);\n\n con = ds.getConnection();\n } catch (Exception ex) {\n throw new EJBException(\"Unable to connect to database. \" + ex.getMessage());\n }\n }",
"public void connectToDb(){\n\t log.info(\"Fetching the database name and other details ... \");\n\t dbConnect.setDbName(properties.getProperty(\"dbName\"));\n\t dbConnect.setUsrName(properties.getProperty(\"dbUsrname\"));\n\t dbConnect.setPassword(properties.getProperty(\"dbPassword\"));\n\t dbConnect.setSQLType(properties.getProperty(\"sqlServer\").toLowerCase());\n\t log.info(\"Trying to connect to the database \"+dbConnect.getDbName()+\" ...\\n with user name \"+dbConnect.getUsrname()+\" and password ****** \");\n\t dbConnect.connectToDataBase(dbConnect.getSQLType(), dbConnect.getDbName(), dbConnect.getUsrname(), dbConnect.getPswd());\n\t log.info(\"Successfully connected to the database \"+dbConnect.getDbName());\n }",
"public void testEmptyDbSetup() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(0));\n sqlDbManager.setTargetDatabaseVersion(0);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n }",
"public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneCPConfig();\n\n // Setup the configuration\n config.setJdbcUrl(\"jdbc:mysql://cs304.c0mk5mvcjljr.us-west-2.rds.amazonaws.com/cs304\"); // jdbc url specific to your database, eg jdbc:mysql://127.0.0.1/yourdb\n config.setUsername(\"cs304\");\n config.setPassword(\"ubccs304\");\n config.setConnectionTestStatement(\"SELECT 1\");\n config.setConnectionTimeout(10, TimeUnit.SECONDS);\n config.setMinConnectionsPerPartition(5);\n config.setMaxConnectionsPerPartition(10);\n config.setPartitionCount(1);\n\n // Setup the connection pool\n _pool = new BoneCP(config);\n\n // Log\n LogManager.getLogger(DatabasePoolManager.class).info(\"Database configuration initialized\");\n }\n catch (Exception ex)\n {\n // Log\n LogManager.getLogger(DatabasePoolManager.class).fatal(\"Could not initialize Database configuration\", ex);\n }\n\n }",
"public void promptDBCreds()\n\t{\n\t\ttse.startDatabase();\n\t\t\n\t}",
"private String retryDbConnection(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tString dbInstanceIdentifier = null;\n\t\tint counter = testStepRunner.getTestSuiteRunner().getDbConnCounter();\n\t\tif (counter == 0) {\n\t\t\tLOGGER.info(\"Open new DB connection.\");\n\t\t\tdbInstanceIdentifier = openDBConnection(testStepRunner,\n\t\t\t\t\ttestStepRunner.getTestSuiteRunner().getDbConnIdentifier(),\n\t\t\t\t\ttestStepRunner.getTestSuiteRunner().getDbParameterLst());\n\t\t\tcounter++;\n\t\t\ttestStepRunner.getTestSuiteRunner().setDbConnCounter(counter);\n\t\t} else {\n\t\t\tlogException(testStepRunner);\n\t\t}\n\n\t\treturn dbInstanceIdentifier;\n\t}",
"@Test\n public void test1() throws SQLException {\n EmbeddedDatabase db = new EmbeddedDatabaseBuilder()\n .generateUniqueName(true)\n .setType(EmbeddedDatabaseType.H2)\n .setScriptEncoding(\"UTF-8\")\n .ignoreFailedDrops(true)\n .addScript(\"schema.sql\")\n .addScripts(\"data.sql\")\n .build();\n\n JdbcTemplate jdbcTemplate = new JdbcTemplate(db);\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx1', 'zzz')\");\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx2', 'zzz')\");\n ResultSet resultSet = db.getConnection().createStatement().executeQuery(\"select * from user\");\n DBTablePrinter.printResultSet(resultSet);\n\n Connection connection = db.getConnection();\n DBTablePrinter.printTable(connection, \"user\");\n\n // perform actions against the db (EmbeddedDatabase extends javax.sql.DataSource)\n\n db.shutdown();\n }",
"public void testV1Setup() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(1));\n sqlDbManager.setTargetDatabaseVersion(1);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertTrue(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n }",
"@Before\n public void init() throws ConnectionException, IOException {\n\n final ConnectionPool pool = ConnectionPool.getInstance();\n//\n final Connection connection = pool.takeConnection();\n\n final ScriptRunner scriptRunner = new ScriptRunner(connection);\n\n Reader reader = new BufferedReader(new FileReader(UserDaoTest.class.getClassLoader().getResource(\"db_v2.sql\").getPath()));\n\n scriptRunner.runScript(reader);\n\n pool.closeConnection(connection);\n\n }",
"public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }",
"void smem_init_db() throws SoarException, SQLException, IOException\n {\n smem_init_db(false);\n }",
"@Before\n public void setUp() throws Exception {\n String connectionString = \"jdbc:h2:mem:testing;INIT=RUNSCRIPT from 'classpath:db/create.sql'\";\n Sql2o sql2o = new Sql2o(connectionString, \"\", \"\");\n departmentDao = new Sql2oDepartmentDao(sql2o); //ignore me for now\n conn = sql2o.open(); //keep connection open through entire test so it does not get erased\n }",
"private void ini_SelectDB()\r\n\t{\r\n\r\n\t}",
"public void initConnection() throws DatabaseConnectionException, SQLException {\n\t\t\tString connectionString = DBMS+\"://\" + SERVER + \":\" + PORT + \"/\" + DATABASE;\n\t\t\ttry{\n\t\t\t\tClass.forName(DRIVER_CLASS_NAME).newInstance();\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE TROVARE DRIVER\");\n\t\t\t\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tconn=DriverManager.getConnection(connectionString, USER_ID, PASSWORD);\n\t\t\t\t\n\t\t\t}catch(SQLException e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE STABILIRE CONNESSIONE DATABASE\");\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public void extConnection(){\n try {\n con.close(); // exit java_db connection \n } catch (SQLException ex) {\n Logger.getLogger(Hotel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void tearDownDataSource(final DataSource dataSource) throws Exception {\n Connection conn = dataSource.getConnection();\n Statement st = conn.createStatement();\n st.execute(\"SHUTDOWN\");\n conn.commit();\n st.close();\n }",
"private static void resetDatabase() throws DataStoreException{\n\n try{\n if ( ! Configuration.isConfigured() ){\n URL testFile = MySQLConnectorTest.class.getResource(\"test.conf\");\n Configuration.load(new File(testFile.toURI()));\n }\n loadDBConfiguration();\n } catch (NotConfiguredException | URISyntaxException | IOException e) {\n //If we get here we are unable to load the configuration file, so test setup is wrong.\n throw new RuntimeException(e);\n }\n\n try(\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://\" + host + \":\" +\n port + \"/\" + database + \"?user=\" +\n username + \"&password=\" + password +\n \"&default-character-set=utf8\") ){\n\n Statement resetStatement = conn.createStatement();\n for(String statement: sqlResetBatch){\n resetStatement.addBatch(statement);\n }\n for(String statement: sqlInsertBatch){\n resetStatement.addBatch(statement);\n }\n resetStatement.executeBatch();\n\n MySQLConnector.getInstance().invalidateCaches();\n } catch (SQLException | NotConfiguredException | ConnectionException e){\n //If we get here we are unable to load the configuration file, so test setup is wrong.\n throw new RuntimeException(e);\n }\n }",
"public DataSourcePool() throws NamingException, \r\n SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {\r\n InitialContext ctx = new InitialContext();\r\n //DataSource ds =(DataSource)ctx.lookup(\"java:jboss/jdbc/webapp\");\r\n DataSource ds =(DataSource)ctx.lookup(\"java:jboss/datasources/WebApp\");\r\n connection = ds.getConnection();\r\n }",
"@Override\n public void onDbStarted() {\n }",
"public void initConnection() throws SQLException{\n\t\tuserCon = new UserDBHandler(\"jdbc:mysql://127.0.0.1:3306/users\", \"admin\", \"admin\");\n\t\tproductCon = new ProductDBHandler(\"jdbc:mysql://127.0.0.1:3306/products\", \"admin\", \"admin\");\n\t}",
"private void open() {\n\t\tFile dbf = new File( dbName );\n\n\t\tif ( dbf.exists( ) == false ) {\n\t\t\tSystem.out.println(\n\t\t\t\t \"SQLite database file [\"\n\t\t\t\t+ dbName\n\t\t\t\t+ \"] does not exist\");\n\t\t\tSystem.exit( 0 );\n\t\t}\n\t\n\t\ttry {\n\t\t\tClass.forName( JDBC_DRIVER );\n\t\t\tgetConnection( );\n\t\t}\n\t\tcatch ( ClassNotFoundException cnfe ) {\n\t\t\tnotify( \"Db.Open\", cnfe );\n\t\t}\n\n\t\tif ( debug )\n\t\t\tSystem.out.println( \"Db.Open : leaving\" );\n\t}",
"public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}",
"@Test(timeout = 4000)\n public void test083() throws Throwable {\n jdbcConnection jdbcConnection0 = new jdbcConnection((Session) null);\n DBUtil.close((Connection) jdbcConnection0);\n assertFalse(jdbcConnection0.isClosed());\n }",
"private Connection connect_db() {\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setUser(db_user);\n dataSource.setPassword(db_pass);\n dataSource.setServerName(db_url);\n dataSource.setDatabaseName(db_database);\n\n Connection conn = null;\n try {\n conn = dataSource.getConnection();\n conn.setAutoCommit(false);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }",
"public void run() {\n startConnectionToMSSQL();\n }",
"@BeforeAll\n public void init() throws SQLException, IOException {\n dataSource = DBCPDataSource.getDataSource();\n\n DatabaseUtil databaseUtil = new DatabaseUtil(dataSource);\n databaseUtil.dropTables();\n\n String initUsersTable = \"create table users (id serial primary key, email varchar not null, password varchar not null, birthday date);\";\n String initPostsTable = \"create table posts (id serial primary key, image varchar not null, caption varchar, likes integer not null default 0, userId integer not null references users(id));\";\n\n try (Connection connection = dataSource.getConnection()) {\n Statement statement = connection.createStatement();\n\n statement.execute(initUsersTable);\n statement.execute(initPostsTable);\n\n addUser(\"nikita@gmail.com\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n addUser(\"paul200@mail.ru\", \"HASHED_PASSWORD\", new Date(2000, 01, 01));\n addUser(\"alexfilatov@mail.ru\", \"HASHED_PASSWORD\", new Date(2001, 02, 01));\n addUser(\"yaroslavobruch@gmail.com\", \"HASHED_PASSWORD\", new Date(2000, 05, 06));\n addUser(\"nikita@yandex.ru\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n }\n\n loggerUtil = new LoggerUtil();\n logFilePath = Paths.get(logDirectory, name + \".log\");\n logger = loggerUtil.initFileLogger(logFilePath.toAbsolutePath().toString(), name);\n\n Migrate migrate = new Migrate(dataSource);\n migrate.up(name);\n }",
"private void dbConn()\n {\n\ttry\t\t\n\t{\t\n\t\t\t// driver to use with named database\n\t\tString url = \"jdbc:ucanaccess://c:/AH/AthloneHospital.mdb\";\n \n\t\t\t// connection represents a session with a specific database\n\t\tcon = DriverManager.getConnection(url);\n\n\t\t\t// stmt used for executing sql statements and obtaining results\n\t\tstmt = con.createStatement();\n\n\t\trs = stmt.executeQuery(\"SELECT * FROM Login\");\n\n\t\twhile(rs.next())\t// count number of rows in table\n\t\t\tcount++;\n\t\trs.close();\n System.out.println(\"Success!!!!\");\n\t}\n\tcatch(Exception e) { System.out.println(\"Error in start up......\");}\n }",
"private void init() {\n DatabaseInitializer databaseInitializer = new DatabaseInitializer();\n try {\n for (int i = 0; i < DEFAULT_POOL_SIZE; i++) {\n ProxyConnection connection = new ProxyConnection(databaseInitializer.getConnection());\n connections.put(connection);\n }\n } catch (InterruptedException e) {\n logger.log(Level.ERROR, e);\n }\n }",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n try { \n DBUtil.connect(\"SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE\", (String) null, \"SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE\", (String) null, true);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Connecting SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE failed: \n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@BeforeClass\n\tpublic static void setup() throws SQLException {\n\t\tconfig = new ConnectionConfig();\n\t\tconfig.setDataSource(Mockito.mock(DataSource.class));\n\t\t//mock connection\n\t\tConnection connection = Mockito.mock(Connection.class);\n\t\tMockito.when(config.getDataSource().getConnection()).thenReturn(connection);\n\t\tMockito.when(connection.isValid((int) TimeUnit.MILLISECONDS.toSeconds(config.getValidationTimeout()))).thenReturn(true);\n\t\t//create the connection pool\n\t\tpool = new ConnectionPoolImpl(config);\n\t}",
"private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void makeSQLConn() {\n\t\ttry {\n\t\t\tmyDB = new MySQLAccess();\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}",
"private void loadDataSource(String name) throws DriverException {\r\n Service.DATASOURCES.put(name, new Pool(name));\r\n }",
"public void Initialize() throws DBException {\n // Divide jndi and url\n StringTokenizer st = new StringTokenizer(m_dbURL, \",\");\n m_jndiName \t= st.nextToken();\n m_dbURL \t= st.nextToken();\n \n if (m_jndiName != null) {\n try {\n Context ctx = new InitialContext();\n s_ds = (DataSource) ctx.lookup(m_jndiName); \n } catch (Exception e) {\n System.out.println(\"err\"+e);\n SystemLog.getInstance().getErrorLog().error(\"ERR,HSQLDBTomCTRL,getInit-JNDI,\" + e, e);\n }\n }\n\t \n\t\t//\t\tLoad class incase faliure\n\t\t try {\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\t\t\t\n\t\t} catch (ClassNotFoundException e1) {\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\t\n\t}",
"public void connect() throws NamingException, SQLException {\n if (con != null) disconnect();\n try {\n \tString url = \"jdbc:postgresql://localhost/stocksim\";\n \tProperties props = new Properties();\n props.setProperty(\"user\", \"ubuntu\");\n props.setProperty(\"password\", \"reverse\");\n con = DriverManager.getConnection(url, props);\n \n // Prepare statements:\n for (PreparedStatementID i: PreparedStatementID.values()) {\n PreparedStatement preparedStatement = con.prepareStatement(i.sql);\n _preparedStatements.put(i, preparedStatement);\n }\n } catch (SQLException e) {\n if (con != null) disconnect();\n throw e;\n }\n }",
"void init() throws ConnectionPoolException {\r\n\t\tfreeConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\tbusyConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tfor(int i = 0; i < poolsize; i++){\r\n\t\t\t\tConnection connection = DriverManager.getConnection(url, user, password);\r\n\t\t\t\tfreeConnection.add(connection);\r\n\t\t\t}\r\n\t\t\tflag = true;\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_DB_DRIVER + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_DB_DRIVER);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_SQL + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_SQL);\r\n\t\t}\r\n\t}",
"public void init() throws SQLException {\n EventBusInstance.getInstance().register(new BestEffortsDeliveryListener());\n if (TransactionLogDataSourceType.RDB == transactionConfig.getStorageType()) {\n Preconditions.checkNotNull(transactionConfig.getTransactionLogDataSource());\n createTable();\n }\n }",
"@Test\n\tpublic void testGetConnection() throws SQLException {\n\t\tint count = pool.idleConnectionsCount();\n\t\tConnection connection = pool.getConnection(config.getConnectionTimeout());\n\t\tAssert.assertEquals(((ConnectionItem) connection).state().get() , ConnectionItem.STATE_IN_USE);\n\t\tAssert.assertEquals(count - 1 , pool.idleConnectionsCount());\n\t}",
"private void setupDB(){\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n String username = \"sys as sysdba\"; //Provide username for your database\n String password = \"oracle\"; //provide password for your database\n\n con = DriverManager.getConnection(url, username, password);\n }\n catch(Exception e){\n System.out.println(e);\n }\n }",
"private void initConnection() throws DatabaseAccessException {\n\t\ttry {\n\t\t\tthis.connection = DriverManager.getConnection(this.driver + \":\" + this.path);\n\n\t\t} catch (SQLException e) {\n\t\t\t// unable to create the connection; access error\n\t\t\tthrow new DatabaseAccessException(Failure.CONNECTION);\n\t\t}\n\t}",
"public void DBConnect() {\n \tdatabase = new DatabaseAccess();\n \tif (database != null) {\n \t\ttry {\n \t\t\tString config = getServletContext().getInitParameter(\"dbConfig\");\n \t\t\tdatabase.GetConnectionProperties(config);\n \t\t\tdatabase.DatabaseConnect();\n \t\t}\n \t\tcatch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n }",
"protected void setUp() throws Exception {\r\n\t\tmodelDS = new ServiceModelDS(\"dbtest\",\"pizzeria_service\");\r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/dbtest\", \"root\", \"\");\r\n\t\tconnection.setAutoCommit(false);\r\n\t}",
"private void openDatabase() {\r\n if ( connect != null )\r\n return;\r\n\r\n try {\r\n // Setup the connection with the DB\r\n String host = System.getenv(\"DTF_TEST_DB_HOST\");\r\n String user = System.getenv(\"DTF_TEST_DB_USER\");\r\n String password = System.getenv(\"DTF_TEST_DB_PASSWORD\");\r\n read_only = true;\r\n if (user != null && password != null) {\r\n read_only = false;\r\n }\r\n if ( user == null || password == null ) {\r\n user = \"guest\";\r\n password = \"\";\r\n }\r\n Class.forName(\"com.mysql.jdbc.Driver\"); // required at run time only for .getConnection(): mysql-connector-java-5.1.35.jar\r\n connect = DriverManager.getConnection(\"jdbc:mysql://\"+host+\"/qa_portal?user=\"+user+\"&password=\"+password);\r\n } catch ( Exception e ) {\r\n System.err.println( \"ERROR: DescribedTemplateCore.openDatabase() could not open database connection, \" + e.getMessage() );\r\n }\r\n }",
"public void connectionSql()\r\n { \r\n try{\r\n //STEP 2: Register JDBC driver\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n //STEP 3: Open a connection\r\n System.out.println(\"Connecting to database...\");\r\n conn = DriverManager.getConnection(DB_URL, USER, PASS);\r\n\r\n //STEP 4: Execute a query\r\n System.out.println(\"Creating database...\");\r\n stmt = conn.createStatement();\r\n \r\n String sql = \"CREATE DATABASE IF NOT EXISTS demo\";\r\n stmt.executeUpdate(sql);\r\n System.out.println(\"Database created successfully...\");\r\n \r\n stmt = conn.createStatement();\r\n String sqlSelect = \"USE demo;\";\r\n stmt.executeUpdate(sqlSelect);\r\n System.out.println(\"DATABASE IS SELECTED\");\r\n \r\n }catch(SQLException se){\r\n //Handle errors for JDBC\r\n se.printStackTrace();\r\n }catch(Exception e){\r\n //Handle errors for Class.forName\r\n e.printStackTrace();\r\n }\r\n /*\r\n finally{\r\n //finally block used to close resources\r\n try{\r\n if(stmt!=null)\r\n stmt.close();\r\n }catch(SQLException se2){\r\n }// nothing we can do\r\n try{\r\n if(conn!=null)\r\n conn.close();\r\n }\r\n catch(SQLException se)\r\n {\r\n se.printStackTrace();\r\n }//end finally try\r\n }//end try\r\n System.out.println(\"Goodbye!\");\r\n */\r\n}",
"private void apriConnessione() throws SQLException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {\n\t\tString password, user;\n\t\tDatabaseProps dbConf = config.getDb();\n\n\t\tClass.forName(dbConf.getDriver()).getDeclaredConstructor().newInstance();\n\n\t\tuser = dbConf.getUsername();\n\t\tpassword = dbConf.getPassword();\n\n\t\tString uri = String.format(\"jdbc:%s://%s:%d/%s\", dbConf.getDbms(), dbConf.getHost(), dbConf.getPort(), dbConf.getName());\n\n\t\tconnessioneDB = DriverManager.getConnection(uri, user, password);\n\t}",
"public DatabaseManagement() throws SQLException {\n\t\n\t\ttry {\n\t\t\t//use driver\n\t\t\tClass.forName(MYSQL_DRIVER);\n\t\t System.out.println(\"Class Loaded....\");\n\t\t\t\n\t\t //get connection to database\n\t\t\tmyConn = DriverManager.getConnection(getDbUrl(), getUserName(), getPassword());\n\t\t\t//System.out.println(\"Connected to database...\");\n\t\t\t\n\t\t\t//create a statement\n\t\t\tmyStmt = myConn.createStatement();\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\tcatch (Exception exc){\n\t\t\texc.printStackTrace();\n\t\t}\t\t\n\t}",
"public static void initConnection() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException{\r\n\t\t//create database connection only once\r\n\t\tif(dbCon == null){\t\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tdbCon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/wip?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\",\"root\",\"\");\r\n\t\t}\r\n\t}",
"@Before\n public void setUp() throws Exception {\n dataSource1 = createDataSource(\"jdbc:hsqldb:mem:foodb\");\n createTableWithTestData(dataSource1);\n\n dataSource2 = createDataSource(\"jdbc:hsqldb:mem:bardb\");\n createTableWithTestData(dataSource2);\n }",
"public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }",
"int initConnection(){\n\t\tint status = -1; //the return value. -1 if connection failed, 0 if succeeded\r\n\t\ttry {\r\n\t\t\tconn = dbSource.getConnection();\r\n\t\t\tstatus = 0;\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"Error: Could not connect to the tool rental database.\");\r\n\t\t}\r\n\t\treturn status;\r\n\t\t\r\n\t}",
"private static void getConnectionTest() {\n\t\ttry {\r\n\t\t\tConnection conn=CartDao.getConnection();\r\n\t\t\tif(conn==null) System.out.println(\"disconnect\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void checkDBAvailable(Configuration conf)\n throws MasterNotRunningException {\n Configuration copyOfConf = ConfigurationFactory.create(conf);\n copyOfConf.setInt(\"bigdb.client.retries.number\", 1);\n new DBAdmin(copyOfConf);\n }",
"private static void initSystem() throws Exception{\n ConfigFileModel ConfigFileModel;\n ConfigFileModel = ConfigFileUtil.getSingleton().getConfigFileModel();\n\n final String instance = ConfigFileModel.getInstance();\n final String user = ConfigFileModel.getUser();\n final String password = ConfigFileModel.getPassword();\n final String db = ConfigFileModel.getDb();\n final String port = ConfigFileModel.getPort();\n\n //Save dbempresas params connection to hibernate config file\n final HibernateConfigModel HibernateConfigModel_ = new HibernateConfigModel();\n HibernateConfigModel_.setUser(user); \n HibernateConfigModel_.setPassword(password);\n HibernateConfigModel_.setPort(Integer.valueOf(port));\n HibernateConfigModel_.setInstance(instance);\n HibernateConfigModel_.setDatabase(db);\n HibernateUtil.getSingleton().setHibernateConfigModelDbEmpresas(HibernateConfigModel_);\n\n //Check if the main database exists\n boolean result = MysqlScriptsUtil.getInstance().existsDB(HibernateConfigModel_.getDatabase(), HibernateConfigModel_.getUser(), HibernateConfigModel_.getPassword(), HibernateConfigModel_.getInstance(), HibernateConfigModel_.getPort());\n \n if(!result) {//Else database not exists \n dbempresasNotExists();\n }\n else { //The dabatase already exists \n \n HibernateUtil.getSingleton().loadDbEmpresas();\n veryLicense();\n }\n }",
"public void setupConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tdatabaseConnection = DriverManager.getConnection(connectionString);\n\t\t}\n\t\tcatch (SQLException currentException)\n\t\t{\n\t\t\tdisplaySQLErrors(currentException);\n\t\t}\n\t}",
"public void init() {\n\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(\"jdbc/QuotingDB\");\n// dbCon = ds.getConnection();\n }\n catch (javax.naming.NamingException e) {\n System.out.println(\"A problem occurred while retrieving a DataSource object\");\n System.out.println(e.toString());\n }\n\n }",
"@Before\n public void prepare() throws Exception {\n Operation operation =\n sequenceOf(InitializeOperations.DELETE_ALL);\n DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), operation);\n dbSetup.launch();\n }",
"void init() throws ConnectionPoolDataSourceException;"
] |
[
"0.68518066",
"0.6836796",
"0.6655244",
"0.66416967",
"0.6613981",
"0.65164363",
"0.6360596",
"0.63273305",
"0.6309394",
"0.6307079",
"0.62921435",
"0.627108",
"0.6252215",
"0.6250412",
"0.6250339",
"0.6243237",
"0.6237215",
"0.62190163",
"0.62120926",
"0.6205961",
"0.6205161",
"0.6200864",
"0.61885226",
"0.6176024",
"0.6168029",
"0.6168029",
"0.615245",
"0.61432755",
"0.6142153",
"0.61383384",
"0.61219263",
"0.6114966",
"0.61061615",
"0.60989225",
"0.60695016",
"0.6055692",
"0.603723",
"0.6027123",
"0.6011704",
"0.601097",
"0.6000654",
"0.59995455",
"0.5979585",
"0.5971432",
"0.59547544",
"0.59449357",
"0.5941717",
"0.5930917",
"0.59292203",
"0.5916114",
"0.5910124",
"0.5899955",
"0.5895696",
"0.58950806",
"0.5891543",
"0.58866763",
"0.5870565",
"0.58687514",
"0.58666563",
"0.58605754",
"0.5848466",
"0.5845425",
"0.58420974",
"0.58246475",
"0.58198106",
"0.5816654",
"0.58124524",
"0.5807633",
"0.5805762",
"0.57965416",
"0.5791068",
"0.5790457",
"0.57875335",
"0.5784381",
"0.5775953",
"0.5775378",
"0.5771775",
"0.57685894",
"0.5764805",
"0.57539856",
"0.575269",
"0.5749477",
"0.5748351",
"0.57409406",
"0.5739457",
"0.5736137",
"0.573107",
"0.57249117",
"0.57167304",
"0.57124805",
"0.57022357",
"0.5693397",
"0.56928235",
"0.5686045",
"0.56854075",
"0.5679344",
"0.56793153",
"0.5674333",
"0.567405",
"0.56720686",
"0.56636065"
] |
0.0
|
-1
|
Creates a database configuration with default values.
|
private PotentialErrorDatabaseConfiguration setUpConfig() throws ConfigurationException {
return helper.setUpConfig(PotentialErrorDatabaseConfiguration.class);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}",
"public static JdbcOption getDefaultDatabase(ProjectConfig projectConfig) throws Exception {\n\t\treturn getDefaultDatabaseFromFile(projectConfig.getDatabasesPath() + Constants.FILE_SEPERATOR + Constants.DB_SETTINGS_XML_FILE);\n\t}",
"@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}",
"Database createDatabase();",
"public static void createDataBase() {\n final Configuration conf = new Configuration();\n\n addAnnotatedClass(conf);\n\n conf.configure();\n new SchemaExport(conf).create(true, true);\n }",
"public static JdbcOption getDefaultDatabase(String baseDir) throws Exception {\n\t\tProjectConfig projectConfig = getProjectConfig(getCommonConfigFile(baseDir));\n\t\treturn getDefaultDatabaseFromFile(projectConfig.getDatabasesPath() + Constants.FILE_SEPERATOR + Constants.DB_SETTINGS_XML_FILE);\n\t}",
"private void initConfig() throws DatabaseAccessException {\n\t\tStatement stmt = null;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// With synchronous OFF, SQLite continues without syncing\n\t\t\t// as soon as it has handed data off to the operating system.\n\t\t\tstmt.execute(\"PRAGMA synchronous = OFF;\");\n\n\t\t\t// The MEMORY journaling mode stores the rollback journal in volatile RAM.\n\t\t\t// This saves disk I/O but at the expense of database safety and integrity.\n\t\t\tstmt.execute(\"PRAGMA journal_mode = MEMORY;\");\n\n\t\t\t// The journal_size_limit pragma may be used to limit the size of rollback-journal.\n\t\t\t// -1 means no limit.\n\t\t\tstmt.execute(\"PRAGMA journal_size_limit = -1;\");\n\n\t\t\t// If the argument N is negative, then the number of cache pages\n\t\t\t// is adjusted to use approximately N*1024 bytes of memory.\n\t\t\tstmt.execute(\"PRAGMA cache_size = -50000;\");\n\n\t\t\t// Once an encoding has been set for a database, it cannot be changed.\n\t\t\tstmt.execute(\"PRAGMA encoding = \\\"UTF-8\\\";\");\n\n\t\t\t// When temp_store is MEMORY temporary tables and indices are kept\n\t\t\t// in as if they were pure in-memory databases memory.\n\t\t\tstmt.execute(\"PRAGMA temp_store = MEMORY;\");\n\n\t\t\tstmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseAccessException(Failure.CONFIG);\n\t\t}\n\t}",
"private void createDbConfig (String address) {\n\t\tProperties dbConfig = new Properties();\n\t\t\n\t\t/*\n\t\t * Load any previous version of the property file at the address.\n\t\t */\n\t\tFile dbConfigFile = new File(address);\n\t\ttry {\n\t\t\t/*\n\t\t\t * Creates file/directory if it could not be found\n\t\t\t */\n\t\t\tif(dbConfigFile.getParentFile().mkdirs()) System.err.println(\"[WARNING] Database properties directory location was missing and has been created.\");\n\t\t\tif(dbConfigFile.createNewFile()) System.err.println(\"[WARNING] Database properties file was missing and has been created.\");\n\t\t\t\n\t\t\tFileReader dbConfigReader = new FileReader(dbConfigFile);\n\t\t\tdbConfig.load(dbConfigReader);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR]: Could not initialize database properties file: \" + address);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\t\n\t\t/*\n\t\t * Check to see if any properties are missing.\n\t\t */\n\t\tif(!dbConfig.containsKey(\"useLocal\")) dbConfig.put(\"useLocal\", \"true\");\n\t\t\n\t\t//AWS DynamoDB settings\n\t\tif(!dbConfig.containsKey(\"dynamoDbAccessKey\")) dbConfig.put(\"dynamoDbAccessKey\", \"\");\n\t\tif(!dbConfig.containsKey(\"dynamoDbSecretKey\")) dbConfig.put(\"dynamoDbSecretKey\", \"\");\n\t\tif(!dbConfig.containsKey(\"dynamoDbEndpoint\")) dbConfig.put(\"dynamoDbEndpoint\", \"\");\n\t\tif(!dbConfig.containsKey(\"dynamoDbRegion\")) dbConfig.put(\"dynamoDbRegion\", \"\");\n\t\t\n\t\t//AWS KMS settings\n\t\tif(!dbConfig.containsKey(\"kmsAccessKey\")) dbConfig.put(\"kmsAccessKey\", \"\");\n\t\tif(!dbConfig.containsKey(\"kmsSecretKey\")) dbConfig.put(\"kmsSecretKey\", \"\");\n\t\tif(!dbConfig.containsKey(\"kmsEndpoint\")) dbConfig.put(\"kmsEndpoint\", \"\");\n\t\tif(!dbConfig.containsKey(\"kmsRegion\")) dbConfig.put(\"kmsRegion\", \"\");\n\t\t\n\t\t//Google Drive Settings\n\t\tif(!dbConfig.containsKey(\"driveClientId\")) dbConfig.put(\"driveClientId\", \"\");\n\t\tif(!dbConfig.containsKey(\"driveClientSecret\")) dbConfig.put(\"driveClientSecret\", \"\");\n\t\t\n\n\t\tthis.databaseConfig = dbConfig;\n\t\t\n\t\t/*\n\t\t * Save any changes\n\t\t */\n\t\tthis.saveDbConfig();\n\t}",
"public static JdbcOption getDefaultDatabaseFromFile(String configFile) throws Exception {\n\t\tJdbcOption jdbc = new JdbcOption();\n\n\t\tDocument document;\n\t\tFile file = new File(configFile);\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfactory.setNamespaceAware(true);\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tdocument = builder.parse(file);\n\n\t\tElement root = document.getDocumentElement();\n\n\t\tNodeList nodeList = root.getElementsByTagName(Constants.XML_TAG_DATASOURCE);\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tNode node = nodeList.item(i);\n\t\t\tNamedNodeMap attrs = node.getAttributes();\n\t\t\tString isDefault = getText(attrs, Constants.XML_TAG_DEFAULT);\n\n\t\t\tif (!\"\".equals(nullToString(isDefault)) && Boolean.valueOf(nullToString(isDefault))) {\n\t\t\t\t// isDefault 값이 null이 아니고 true인 경우 - default return\n\t\t\t\tString name = getText(attrs, Constants.XML_TAG_NAME);\n\t\t\t\tString type = getText(attrs, Constants.XML_TAG_TYPE);\n\t\t\t\tString driverJar = getText(attrs, Constants.XML_TAG_DRIVER_PATH);\n\t\t\t\tString driverClassName = getText(attrs, Constants.XML_TAG_DRIVER_CLASS_NAME);\n\t\t\t\tString url = getText(attrs, Constants.XML_TAG_URL);\n\t\t\t\tString username = getText(attrs, Constants.XML_TAG_USERNAME);\n\t\t\t\tString password = EncryptUtil.decrypt(getText(attrs, Constants.XML_TAG_PASSWORD));\n\t\t\t\tString schema = getText(attrs, Constants.XML_TAG_SCHEMA);\n\t\t\t\tString dialect = getText(attrs, Constants.XML_TAG_DIALECT);\n\t\t\t\tString driverGroupId = getText(attrs, Constants.XML_TAG_DRIVER_GROUPID);\n\t\t\t\tString driverArtifactId = getText(attrs, Constants.XML_TAG_DRIVER_ARTIFACTID);\n\t\t\t\tString driverVersion = getText(attrs, Constants.XML_TAG_DRIVER_VERSION);\n\t\t\t\tString useDbSpecific = getText(attrs, Constants.XML_TAG_USE_DB_SPECIFIC);\n\t\t\t\tString runExplainPlan = getText(attrs, Constants.XML_TAG_RUN_EXPLAIN_PLAN);\n\n\t\t\t\tjdbc.setDbName(name);\n\t\t\t\tjdbc.setDbType(type);\n\t\t\t\tjdbc.setDriverJar(driverJar);\n\t\t\t\tjdbc.setDriverClassName(driverClassName);\n\t\t\t\tjdbc.setUrl(url);\n\t\t\t\tjdbc.setUserName(username);\n\t\t\t\tjdbc.setPassword(password);\n\t\t\t\tjdbc.setSchema(schema);\n\t\t\t\tjdbc.setDialect(dialect);\n\t\t\t\tjdbc.setMvnGroupId(driverGroupId);\n\t\t\t\tjdbc.setMvnArtifactId(driverArtifactId);\n\t\t\t\tjdbc.setMvnVersion(driverVersion);\n\t\t\t\tjdbc.setUseDbSpecific(Boolean.valueOf(useDbSpecific));\n\t\t\t\tjdbc.setRunExplainPaln(Boolean.valueOf(runExplainPlan));\n\t\t\t\tjdbc.setDefault(Boolean.valueOf(isDefault));\n\t\t\t}\n\t\t}\n\t\treturn jdbc;\n\t}",
"public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}",
"public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Configuration createConfiguration();",
"public GameConfig createDefaultConfig() {\n\n return null;\n }",
"protected abstract DatabaseInitializer createInitializer();",
"private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}",
"private void configureDB() {\n\t\tmDb = mDbHelper.getWritableDatabase();\n\t}",
"protected void setupDB() {\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database started\");\n\t\tlog.info(\"ddl: db-config.xml\");\n\t\tlog.info(\"------------------------------------------\");\n\t\ttry {\n\t\t\tfinal List<String> lines = Files.readAllLines(Paths.get(this.getClass()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getClassLoader()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getResource(\"create-campina-schema.sql\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toURI()), Charset.forName(\"UTF-8\"));\n\n\t\t\tfinal List<String> statements = new ArrayList<>(lines.size());\n\t\t\tString statement = \"\";\n\t\t\tfor (String string : lines) {\n\t\t\t\tstatement += \" \" + string;\n\t\t\t\tif (string.endsWith(\";\")) {\n\t\t\t\t\tstatements.add(statement);\n\t\t\t\t\tstatement = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry (final Connection con = conManager.getConnection(Boolean.FALSE)) {\n\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(\"DROP SCHEMA IF EXISTS campina\")) {\n\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t}\n\t\t\t\tfor (String string : statements) {\n\t\t\t\t\tlog.info(\"Executing ddl: \" + string);\n\t\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(string)) {\n\t\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new IllegalStateException(\"Could not setup db\", e);\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tlog.error(\"Could not setup database\", e);\n\t\t\tthrow new IllegalStateException(\"ddl file load failed\", e);\n\t\t}\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database finished\");\n\t\tlog.info(\"------------------------------------------\");\n\t}",
"public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"public UnaryCallSettings<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"private static HashMap<String, String> settings() {\n HashMap<String, String> settings = new HashMap<String, String>();\n settings.put(\"db.default.url\", \"jdbc:mysql://api.template-java.com:3306/play_test\");\n settings.put(\"db.default.username\", \"root\");\n settings.put(\"db.default.password\", \"\");\n settings.put(\"db.default.jndiName\", \"DefaultDS\");\n settings.put(\"jpa.default\", \"mySqlPersistenceUnit\");\n return(settings);\n }",
"private void setDefaultDBValues() {\r\n this.rhostfield.setText(hostnameString_default);\r\n this.rportfield.setText((new Integer(portNr_default)).toString());\r\n this.rdatabasefield.setText(databaseString_default);\r\n this.ruserfield.setText(rusernameString_default);\r\n this.rpasswdfield.setText(\"\");\r\n this.rtablename1efield.setText(nodeList_DBtable_default);\r\n this.colnodeIdfield.setText(node_ids_DBcol_default);\r\n this.colnodeLabelfield.setText(node_labels_DBcol_default);\r\n this.rtablename2efield.setText(edgeList_DBtable_default);\r\n this.coledge1field.setText(edgeList_DBcol1_default);\r\n this.coledge2field.setText(edgeList_DBcol2_default);\r\n this.colweightfield.setText(edgeList_DBcolweight_default);\r\n this.otablenamefield.setText(result_DBtable_default);\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }",
"private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }",
"public DB() {\r\n\t\r\n\t}",
"private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}",
"private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}",
"@Nullable\n String getDefaultDatabase() throws CatalogException;",
"boolean initConfiguration(Connection con, String schema, boolean dropIfExist) throws Exception;",
"public FakeDatabase() {\n\t\t\n\t\t// Add initial data\n\t\t\n//\t\tSystem.out.println(authorList.size() + \" authors\");\n//\t\tSystem.out.println(bookList.size() + \" books\");\n\t}",
"public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\n execute(DBStrings.createDB[i]);\n } catch (Exception e) {\n Logger.write(\"FATAL\", \"DB\", \"Failed to create databse: \" + e);\n }\n }",
"@Override\n\tpublic Database createDatabase(Type type) throws FSException {\n\t\treturn new DummyDatabase();\n\t}",
"public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }",
"private Db() {\n super(Ke.getDatabase(), null);\n }",
"DataBase createDataBase();",
"@Override\n public Database getInitialized() {\n return Databases.createPostgresDatabaseWithRetry(\n username,\n password,\n connectionString,\n isDatabaseReady);\n }",
"public static org.jooq.Configuration setupJooq() {\n final String jdbcUrl = \"jdbc:h2:mem:test;MODE=MySQL;INIT=RUNSCRIPT from 'classpath:schema.sql'\";\n JdbcConnectionPool cp = JdbcConnectionPool.create(jdbcUrl, \"sa\", \"sa\");\n\n // This sets up jooq to talk to whatever database we are using.\n org.jooq.Configuration jooqConfig = new DefaultConfiguration();\n jooqConfig.set(SQLDialect.MYSQL); // Lets stick to using MySQL (H2 is OK with this!)\n jooqConfig.set(cp);\n return jooqConfig;\n }",
"public void saveDbConfig () {\n\t\ttry {\n\t\t\tthis.databaseConfig.store(new FileWriter(new File(this.databaseAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to database properties file: \" + databaseAddress);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}",
"void createDb(String dbName);",
"private static Connection getDefaultInitConnection(final Context c) throws SQLException {\n try {\n final DataSource initDs =\n (DataSource) c.lookup(GlobalConfigurationEngineBean.DEFAULT_DS_INIT);\n return initDs.getConnection();\n } catch (NamingException e) {\n if (LOG.isErrorEnabled()) {\n LOG.error(\"Default configuration schema not initialized, but could not find \" +\n GlobalConfigurationEngineBean.DEFAULT_DS_INIT);\n // continue, the caller will get a related exception when creating a connection anyway\n }\n return null;\n }\n }",
"@Override\n public Configuration createConfiguration(Connection connection, Configuration configuration) throws SQLException {\n PreparedStatement ps = null;\n try{\n String insertSQL = \"INSERT INTO Configuration (displayName, defaultType, defaultArg1, defaultArg2) VALUES (?, ?, ?, ?);\";\n ps = connection.prepareStatement(insertSQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, configuration.getDisplayName());\n ps.setString(2, configuration.getDefaultType());\n ps.setString(3, configuration.getDefaultArg1()); \n ps.setString(4, configuration.getDefaultArg2()); \n ps.executeUpdate();\n \n ResultSet fullConfiguration = ps.getGeneratedKeys();\n fullConfiguration.next();\n int genKey = fullConfiguration.getInt(1);\n configuration.setConfigurationID((long) genKey);\n \n return configuration;\n }\n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in ConfigurationDaoImpl.create(2 arg)\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n }\n return configuration;\n }",
"public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneCPConfig();\n\n // Setup the configuration\n config.setJdbcUrl(\"jdbc:mysql://cs304.c0mk5mvcjljr.us-west-2.rds.amazonaws.com/cs304\"); // jdbc url specific to your database, eg jdbc:mysql://127.0.0.1/yourdb\n config.setUsername(\"cs304\");\n config.setPassword(\"ubccs304\");\n config.setConnectionTestStatement(\"SELECT 1\");\n config.setConnectionTimeout(10, TimeUnit.SECONDS);\n config.setMinConnectionsPerPartition(5);\n config.setMaxConnectionsPerPartition(10);\n config.setPartitionCount(1);\n\n // Setup the connection pool\n _pool = new BoneCP(config);\n\n // Log\n LogManager.getLogger(DatabasePoolManager.class).info(\"Database configuration initialized\");\n }\n catch (Exception ex)\n {\n // Log\n LogManager.getLogger(DatabasePoolManager.class).fatal(\"Could not initialize Database configuration\", ex);\n }\n\n }",
"public static void configuration() {\n\t\tProperties prop = new Properties();\n\t\tOutputStream output = null;\n\t\tInputStream input = null;\n\t\tString url = \"\", username = \"\", password;\n\t\tboolean test = false;\n\n\t\ttry {\n\t\t\tFile config = new File(configDirectory);\n\t\t\tif (!config.exists()) {\n\t\t\t\twhile (!test) {\n\t\t\t\t\toutput = new FileOutputStream(configDirectory);\n\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.print(\"Configuration in progress, please answer the next set of questions to setup your database.\"\n\t\t\t\t\t\t\t\t\t+ \"\\n\"\n\t\t\t\t\t\t\t\t\t+ \"\\nDatabase URL: (Default localhost:3306/<database name>)\");\n\t\t\t\t\turl = UserInput.stringUserInput();\n\n\t\t\t\t\tSystem.out.print(\"Database Username: \");\n\t\t\t\t\tusername = UserInput.stringUserInput();\n\n\t\t\t\t\tSystem.out.print(\"Database password: \");\n\t\t\t\t\tpassword = UserInput.stringUserInput();\n\n\t\t\t\t\tDatabaseManager.setUrl(\"jdbc:mariadb://\" + url);\n\t\t\t\t\tDatabaseManager.setUser(username);\n\t\t\t\t\tDatabaseManager.setPass(password);\n\n\t\t\t\t\ttest = DatabaseManager.testDatabaseConnection();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDatabaseManager.createDB();\n\n\t\t\t\ttest = false;\n\n\t\t\t\tString adminPassword = \"\", adminPasswordVerify;\n\n\t\t\t\twhile (!test) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.print(\"Admin Account Password for Application: \");\n\t\t\t\t\tadminPassword = HashGeneratorUtils.generateHash(UserInput\n\t\t\t\t\t\t\t.stringUserInput());\n\n\t\t\t\t\tSystem.out.print(\"Verify Admin Password for Application: \");\n\t\t\t\t\tadminPasswordVerify = UserInput.stringUserInput();\n\n\t\t\t\t\ttest = HashGeneratorUtils.hashCompareTest(\n\t\t\t\t\t\t\tadminPasswordVerify, adminPassword);\n\t\t\t\t}\n\n\t\t\t\t// set the properties value\n\t\t\t\tprop.setProperty(\"database\", \"jdbc:mariadb://\" + url);\n\t\t\t\tprop.setProperty(\"adminpass\", adminPassword);\n\n\t\t\t\t// save properties to project folder\n\t\t\t\tprop.store(output, null);\n\t\t\t} else {\n\t\t\t\tinput = new FileInputStream(configDirectory);\n\n\t\t\t\t// load the property file\n\t\t\t\tprop.load(input);\n\n\t\t\t\t// get and set the property value\n\t\t\t\tDatabaseManager.setUrl(prop.getProperty(\"database\"));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public DatabaseParameter() {\n super(\"database\", \"Database\");\n }",
"public void initDefaultValues() {\n }",
"@Override\n public Database getAndInitialize() throws IOException {\n Database database = Databases.createPostgresDatabaseWithRetry(\n username,\n password,\n connectionString,\n isDatabaseConnected(databaseName));\n\n new ExceptionWrappingDatabase(database).transaction(ctx -> {\n boolean hasTables = tableNames.stream().allMatch(tableName -> hasTable(ctx, tableName));\n if (hasTables) {\n LOGGER.info(\"The {} database has been initialized\", databaseName);\n return null;\n }\n LOGGER.info(\"The {} database has not been initialized; initializing it with schema: {}\", databaseName, initialSchema);\n ctx.execute(initialSchema);\n return null;\n });\n\n return database;\n }",
"public DatabaseFixture() {\n\t\tconnUidPwdProp.clear();\n\t}",
"public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Before\n public void createDatabase() {\n dbService.getDdlInitializer()\n .initDB();\n kicCrud = new KicCrud();\n }",
"public void creatDataBase(String dbName);",
"private void setupDatabase() throws SQLException {\n\t\tdb.open(\"localhost\", 3306, \"wow\", \"greeneconomyapple\");\n\t\tdb.use(\"auctionscan\");\n\t}",
"public DatabaseConfig(String conf) throws InvalidConnectionDataException {\n if (conf == null) {\n throw new InvalidConnectionDataException();\n }\n\n HashMap<String, String> map = new HashMap<>();\n\n try (Stream<String> stream = Files.lines(Paths.get(conf))) {\n stream.forEach(line -> addToMap(line, map));\n } catch (IOException e) {\n throw new InvalidConnectionDataException();\n }\n assignFields(map);\n validateFields();\n }",
"public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}",
"private static List<Configuration> configure() {\n Map<String, Configuration> configurations = new HashMap<String, Configuration>();\n try {\n Enumeration<URL> resources = Thread.currentThread().getContextClassLoader().getResources(\"jorm.properties\");\n \n while (resources.hasMoreElements()) {\n URL url = resources.nextElement();\n \n Database.get().log.debug(\"Found jorm configuration @ \" + url.toString());\n \n Properties properties = new Properties();\n InputStream is = url.openStream();\n properties.load(is);\n is.close();\n \n String database = null;\n String destroyMethodName = null;\n String dataSourceClassName = null;\n Map<String, String> dataSourceProperties = new HashMap<String, String>();\n int priority = 0;\n \n for (Entry<String, String> property : new TreeMap<String, String>((Map) properties).entrySet()) {\n String[] parts = property.getKey().split(\"\\\\.\");\n if (parts.length < 3 || !parts[0].equals(\"database\")) {\n continue;\n }\n if (database != null && !parts[1].equals(database)) {\n try {\n Configuration conf = configurations.get(database);\n if (conf == null || conf.priority < priority) {\n conf = new Configuration(database, dataSourceClassName, dataSourceProperties, destroyMethodName, priority);\n configurations.put(database, conf);\n Database.get().log.debug(\"Configured \" + conf);\n }\n } catch (Exception ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage());\n }\n database = parts[1];\n destroyMethodName = null;\n dataSourceClassName = null;\n dataSourceProperties = new HashMap<String, String>();\n priority = 0;\n }\n\n if (parts.length == 3 && parts[2].equals(\"destroyMethod\")) {\n destroyMethodName = property.getValue();\n } else if (parts.length == 3 && parts[2].equals(\"priority\")) {\n try {\n priority = Integer.parseInt(property.getValue().trim());\n } catch (Exception ex) {\n \n }\n } else if (parts[2].equals(\"dataSource\")) {\n if (parts.length == 3) {\n dataSourceClassName = property.getValue();\n } else if (parts.length == 4) {\n dataSourceProperties.put(parts[3], property.getValue());\n } else {\n Database.get().log.warn(\"Invalid DataSource property '\" + property.getKey() + \"'\");\n }\n } else {\n Database.get().log.warn(\"Invalid property '\" + property.getKey() + \"'\");\n }\n }\n \n if (database != null) {\n try {\n Configuration conf = configurations.get(database);\n if (conf == null || conf.priority < priority) {\n conf = new Configuration(database, dataSourceClassName, dataSourceProperties, destroyMethodName, priority);\n configurations.put(database, conf);\n Database.get().log.debug(\"Configured \" + conf);\n }\n } catch (Exception ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage());\n }\n }\n }\n \n for (Entry<String, Configuration> entry : configurations.entrySet()) {\n entry.getValue().apply();\n Database.get().log.debug(\"Configured \" + configuration);\n }\n } catch (IOException ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage()); \n }\n \n return new ArrayList<Configuration>(configurations.values());\n }",
"private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.close();\n\t\t\treturn; //A database exists already\n\t\t}\n\t\tresultSet.close();\n\t\t//No database exists yet, create it.\n\t\t\n\t\tstatement.execute(\"CREATE DATABASE \" + dbName);\n\t\tstatement.execute(\"USE \" + dbName);\n\t\tstatement.execute(createTableStatement);\n\t\tstatement.close();\n\t\treturn;\n\t}",
"public DatabaseSeeder() {\n // initialSeed properties...\n super();\n\n // retrieve a database connection instance...\n this.connector = new DatabaseConnector();\n this.connection = this.connector.connect();\n }",
"private void checkDataBase() {\n final Config dbConfig = config.getConfig(\"db\");\n\n checkArgument(!isNullOrEmpty(dbConfig.getString(\"driver\")), \"db.driver is not set!\");\n checkArgument(!isNullOrEmpty(dbConfig.getString(\"url\")), \"db.url is not set!\");\n\n dbConfig.getString(\"user\");\n dbConfig.getString(\"password\");\n dbConfig.getObject(\"additional\");\n }",
"@Override\n\tpublic GameConfig createDefaultConfig() {\n\n\t\t// Define the allowed player types\n\t\tArrayList<GamePlayerType> playerTypes = new ArrayList<GamePlayerType>();\n\n\t\tplayerTypes.add(new GamePlayerType(\"human player\") {\n\t\t\tpublic GamePlayer createPlayer(String name) {\n\t\t\t\treturn new GRHumanPlayer(name);\n\t\t\t}});\n\t\tplayerTypes.add(new GamePlayerType(\"Computer Player (easy)\") {\n\t\t\tpublic GamePlayer createPlayer(String name) {\n\t\t\t\treturn new GRComputerPlayer(name);\n\t\t\t}\n\t\t});\n\t\tplayerTypes.add(new GamePlayerType(\"Computer Player (normal)\") {\n\t\t\tpublic GamePlayer createPlayer(String name) {\n\t\t\t\treturn new GRComputerPlayerSmart(name);\n\t\t\t}\n\t\t});\n\n\t\t// Create a game configuration class for SlapJack\n\t\tGameConfig defaultConfig = new GameConfig(playerTypes, 2, 2, \"Gin Rummy\", PORT_NUMBER);\n\n\t\t// Add the default players\n\t\tdefaultConfig.addPlayer(\"Human\", 0);\n\t\tdefaultConfig.addPlayer(\"Computer\", 1);\n\n\t\t// Set the initial information for the remote player\n\t\tdefaultConfig.setRemoteData(\"Guest\", \"\", 1);\n\n\t\t//done!\n\t\treturn defaultConfig;\n\t}",
"@Override\n protected void createConfigurationFile(Properties connectionProperties)\n {\n connectionPoolConfiguration.setDriverClassName(CPTADatabaseConstants.DB_POSTGRES_DRIVER_PROPERTY_VALUE);\n \n // Let super class do the rest\n super.createConfigurationFile(connectionProperties);\n }",
"public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }",
"public static void initialize()\n\t{\n\t\tProperties props = new Properties();\n\t\tFileInputStream in = new fileInputStream(\"database.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\tString drivers = props.getProperty(\"jdbc.drivers\");\n\t\tif (drivers != null)\n\t\t\tSystem.setProperty(\"jdbc.drivers\", drivers);\n\t\tString url = props.getProperty(\"jdbc.url\");\n\t\tString username = props.getProperty(\"jdbc.username\");\n\t\tString password = props.getProperty(\"jdbc.password\");\n\t\t\n\t\tSystem.out.println(\"url=\"+url+\" user=\"+username+\" password=\"+password);\n\n\t\tdbConnect = DriverManager.getConnection( url, username, password);\n\t\t\n\t\tinitializeDatabase();\n\t}",
"private void initialize() {\n if (databaseExists()) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n int dbVersion = prefs.getInt(SP_KEY_DB_VER, 1);\n if (DATABASE_VERSION != dbVersion) {\n File dbFile = mContext.getDatabasePath(DBNAME);\n if (!dbFile.delete()) {\n Log.w(TAG, \"Unable to update database\");\n }\n }\n }\n if (!databaseExists()) {\n createDatabase();\n }\n }",
"public static void init(@NonNull FlowConfig flowConfig) {\n FlowManager.config = flowConfig;\n\n try {\n //noinspection unchecked\n Class<? extends DatabaseHolder> defaultHolderClass = (Class<? extends DatabaseHolder>) Class.forName(DEFAULT_DATABASE_HOLDER_CLASSNAME);\n loadDatabaseHolder(defaultHolderClass);\n } catch (ModuleNotFoundException e) {\n // Ignore this exception since it means the application does not have its\n // own database. The initialization happens because the application is using\n // a module that has a database.\n FlowLog.log(FlowLog.Level.W, e.getMessage());\n } catch (ClassNotFoundException e) {\n // warning if a library uses DBFlow with module support but the app you're using doesn't support it.\n FlowLog.log(FlowLog.Level.W, \"Could not find the default GeneratedDatabaseHolder\");\n }\n\n if (flowConfig.databaseHolders() != null && !flowConfig.databaseHolders().isEmpty()) {\n for (Class<? extends DatabaseHolder> holder : flowConfig.databaseHolders()) {\n loadDatabaseHolder(holder);\n }\n }\n\n if (flowConfig.openDatabasesOnInit()) {\n List<DatabaseDefinition> databaseDefinitions = globalDatabaseHolder.getDatabaseDefinitions();\n for (DatabaseDefinition databaseDefinition : databaseDefinitions) {\n // triggers open, create, migrations.\n databaseDefinition.getWritableDatabase();\n }\n }\n }",
"private void setupDefaultAsPerProperties()\n {\n /// Do the minimum of what App.init() would do to allow to run.\n Gui.mainFrame = new MainFrame();\n App.p = new Properties();\n App.loadConfig();\n System.out.println(App.getConfigString());\n Gui.progressBar = Gui.mainFrame.getProgressBar(); //must be set or get Nullptr\n\n // configure the embedded DB in .jDiskMark\n System.setProperty(\"derby.system.home\", App.APP_CACHE_DIR);\n\n // code from startBenchmark\n //4. create data dir reference\n App.dataDir = new File(App.locationDir.getAbsolutePath()+File.separator+App.DATADIRNAME);\n\n //5. remove existing test data if exist\n if (App.dataDir.exists()) {\n if (App.dataDir.delete()) {\n App.msg(\"removed existing data dir\");\n } else {\n App.msg(\"unable to remove existing data dir\");\n }\n }\n else\n {\n App.dataDir.mkdirs(); // create data dir if not already present\n }\n }",
"private void autoPopulateDB() {\r\n User newUser = new User(\"din_djarin\", \"baby_yoda_ftw\");\r\n User secondNew = new User(\"csumb\", \"otters_woo\");\r\n User lastNew = new User(\"username\", \"password\");\r\n\r\n mUserDAO.insert(newUser);\r\n mUserDAO.insert(secondNew);\r\n mUserDAO.insert(lastNew);\r\n }",
"public static void createDatabase() throws ArcException {\n\t\tcreateDatabase(userWithRestrictedRights);\t\t\n\t}",
"public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}",
"private void setupDatabase()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n }\n catch (ClassNotFoundException e)\n {\n simpleEconomy.getLogger().severe(\"Could not load database driver.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n\n try\n {\n connection = DriverManager\n .getConnection(String.format(\"jdbc:mysql://%s/%s?user=%s&password=%s\",\n simpleEconomy.getConfig().getString(\"db.host\"),\n simpleEconomy.getConfig().getString(\"db.database\"),\n simpleEconomy.getConfig().getString(\"db.username\"),\n simpleEconomy.getConfig().getString(\"db.password\")\n ));\n\n // Loads the ddl from the jar and commits it to the database.\n InputStream input = getClass().getResourceAsStream(\"/ddl.sql\");\n try\n {\n String s = IOUtils.toString(input);\n connection.createStatement().execute(s);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n input.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n catch (SQLException e)\n {\n simpleEconomy.getLogger().severe(\"Could not connect to database.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n }",
"Database getDatabase(Properties properties, ApplicationContext applicationContext);",
"public DefaultDatabaseEngine(Dialect dialect) {\n this.dialect = dialect;\n }",
"private void beginSetup() {\n try {\n if (dbType.equals(\"mysql\")) {\n Class.forName(\"gwe.sql.gweMysqlDriver\");\n }\n else if (dbType.equals(\"postgresql\")) {\n Class.forName(\"org.postgresql.Driver\");\n }\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"setup constructor ClassNotFound: \"+cnfe);\n System.out.println(\"Could not load the mysql driver: please check your classpath\");\n System.exit(-1);\n }\n\n try {\n if (!tableExists(DEFAULT_DB_CONFIG_TABLE)) {\n createConfigTable(DEFAULT_DB_CONFIG_TABLE);\n }\n } catch (SQLException sqle) {\n System.out.println(\"setup beginSetup SQLException: \"+sqle);\n System.out.println(\"Trouble interacting with vizConfig database table\");\n System.exit(-2);\n }\n prepareFrame();\n }",
"private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}",
"protected abstract ODatabaseInternal<?> newDatabase();",
"public static boolean saveDatabase(String baseDir, JdbcOption jdbcOption) throws Exception {\n\t\tboolean result = true;\n\n\t\tProjectConfig projectConfig = getProjectConfig(getCommonConfigFile(baseDir));\n\t\tFile file = new File(projectConfig.getDatabasesPath() + Constants.FILE_SEPERATOR + Constants.DB_SETTINGS_XML_FILE);\n\t\tDocument document;\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfactory.setNamespaceAware(true);\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tdocument = builder.parse(file);\n\n\t\tElement root = document.getDocumentElement();\n\n\t\tNodeList nodeList = root.getElementsByTagName(Constants.XML_TAG_DATASOURCE);\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tElement node = (Element) nodeList.item(i);\n\t\t\tNamedNodeMap attrs = node.getAttributes();\n\t\t\tboolean isDefault = Boolean.valueOf(getText(attrs, Constants.XML_TAG_DEFAULT));\n\t\t\tif (isDefault) {\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_TYPE).setNodeValue(jdbcOption.getDbType());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_NAME).setNodeValue(jdbcOption.getDbName());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_DRIVER_PATH).setNodeValue(jdbcOption.getDriverJar());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_DRIVER_CLASS_NAME).setNodeValue(jdbcOption.getDriverClassName());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_URL).setNodeValue(jdbcOption.getUrl());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_USERNAME).setNodeValue(jdbcOption.getUserName());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_PASSWORD).setNodeValue(jdbcOption.getPassword());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_SCHEMA).setNodeValue(jdbcOption.getSchema());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_DIALECT).setNodeValue(jdbcOption.getDialect());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_DRIVER_GROUPID).setNodeValue(jdbcOption.getMvnGroupId());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_DRIVER_ARTIFACTID).setNodeValue(jdbcOption.getMvnArtifactId());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_DRIVER_VERSION).setNodeValue(jdbcOption.getMvnVersion());\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_USE_DB_SPECIFIC).setNodeValue(String.valueOf(jdbcOption.isUseDbSpecific()));\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_RUN_EXPLAIN_PLAN).setNodeValue(String.valueOf(jdbcOption.isRunExplainPaln()));\n\t\t\t\tattrs.getNamedItem(Constants.XML_TAG_DEFAULT).setNodeValue(String.valueOf(jdbcOption.getDefault()));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsave(document, file);\n\t\treturn result;\n\t}",
"public Database() {\n size = 0;\n tables = new HashMap();\n p = new Parse(this);\n }",
"public void init() {\r\n\t\tdbVersion = new DBVersion( getDefaultDatabase(), progress, upgradeFile.versionTableName, upgradeFile.logTableName );\r\n\t}",
"public DatabaseController()\n\t{\n\t\tconnectionString = \"jdbc:mysql://localhost/?user=root\";\n\t\tcheckDriver();\n\t\tsetupConnection();\n\t}",
"public Database(Context context) { \n\t\tsuper( context, database_MEF, null, 2); \n\t}",
"public TFreightConfigDao() {\n super(T_FREIGHT_CONFIG, TFreightConfig.class);\n }",
"@Override\n public Configuration createConfigurationFT(Connection connection, Configuration configuration) throws SQLException {\n PreparedStatement ps = null;\n try{\n String insertSQL = \"INSERT INTO Configuration (configurationID, displayName, defaultType, defaultArg1, defaultArg2) VALUES (?, ?, ?, ?, ?);\";\n ps = connection.prepareStatement(insertSQL);\n ps.setString(1, configuration.getConfigurationID().toString());\n ps.setString(2, configuration.getDisplayName());\n ps.setString(3, configuration.getDefaultType());\n ps.setString(4, configuration.getDefaultArg1()); \n ps.setString(5, configuration.getDefaultArg2()); \n ps.executeUpdate();\n \n return configuration;\n }\n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in ConfigurationDaoImpl.create(2 arg)\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n }\n return configuration;\n }",
"public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }",
"private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}",
"public Database() {\n\t\tconn = null;\n\t}",
"public static void InitializeDatabase() throws SQLException {\n dataSource = new SQLiteConnectionPoolDataSource();\n dataSource.setUrl(\"jdbc:sqlite:application.db\");\n\n // Optional Configuration Settings\n org.sqlite.SQLiteConfig config = new org.sqlite.SQLiteConfig();\n config.enforceForeignKeys(true);\n config.enableLoadExtension(true);\n dataSource.setConfig(config);\n\n connectionPool = dataSource.getPooledConnection();\n }",
"public sqlDatabase() {\n }",
"public void createDatabase(String dbName, String owner) throws Exception;",
"public Database(Context context) {\n super(context, DB_NAME, null, DB_VER);\n }",
"public interface DatabaseConfiguration {\n\n\t/**\n\t * TODO (paulo 21/01/2011 14:52:38): escrever javadoc\n\t *\n\t * @return\n\t */\n\tDatabaseTypes getDatabaseType();\n\t\n\t/**\n\t * TODO (paulo 21/01/2011 14:52:40): escrever javadoc\n\t *\n\t * @return\n\t * @throws DatabaseConfigurationException {@link RuntimeException} throw when not retrieve connection.\n\t */\n\tConnection getConnection();\n\t\n}",
"private void initializeWithDefaultValues() {\n setProjectFolder(\"projectFolder\");\n setContext(\"context\");\n setGroupId(\"com.company.project\");\n setArtifactId(\"project\");\n setModulePrefix(\"project-\");\n setVersion(\"0.0.1-SNAPSHOT\");\n setName(\"Project Name\");\n setDescription(\"Project Description\");\n setUrl(\"https://www.company-project.com\");\n setInceptionYear(String.valueOf(LocalDateTime.now().getYear()));\n setOrganizationName(\"Your Company Name\");\n setOrganizationUrl(\"https://www.company.com\");\n setLicenseName(\"apache_v2\");\n setLicenseUrl(\"https://www.license-url.com\");\n setScmConnection(\"\");\n setScmDeveloperConnection(\"\");\n setScmUrl(\"\");\n setDistributionProfile(\"\");\n setExtraModules(new LinkedHashSet<>());\n setContextDescriptions(new LinkedHashSet<>());\n setAppConfigLocationType(AppConfigLocationType.INSIDE);\n }",
"public Database initDB() {\n Database db = new Database(\"dataBase.db\");\n\n// db.insertData(\"1 Dragos Dinescu dragos@yahoo.com 0744522600 Digi 10-12-2020\");\n// db.insertData(\"2 Adelina Mirea ademirea@gmail.com 0733651320 Orange 14-10-2020\");\n// db.insertData(\"3 Radu Sorostinean radusoro@gmail.com 0733723321 Digi 1-10-2020\");\n// db.insertData(\"4 Andrei Brasoveanu andreibraso@gmail.com 0732341390 Vodafone 12-11-2020\");\n return db;\n\n //db.deleteFromDB();\n //db.updateDB(\"1 alex radu radu@gmail.com 022256926 orange 10/08/2010\");\n }",
"public Database (String pw) {\n password = pw;\n dbConnection = null;\n if (DBExists()) dbConnect(true); else dbCreate();\n }",
"public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}",
"@Test(expected = TermsOfUseDaoConfigurationException.class)\r\n public void testCtor_dbConnectionFactoryConfigInvalid2() throws Exception {\r\n configurationObject.getChild(\"dbConnectionFactoryConfig\").getChild(\r\n \"com.topcoder.db.connectionfactory.DBConnectionFactoryImpl\").getChild(\"connections\").setPropertyValue(\r\n \"default\", \"not_exist\");\r\n\r\n new ProjectTermsOfUseDaoImpl(configurationObject);\r\n }",
"private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }",
"long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);",
"public void generateDB() {\n\t\t// Database tables creation\n\t\tcreateTables();\n\n\t\t// Try catch estructure in case there is an exception during the data\n\t\t// insertion\n\t\ttry {\n\t\t\t// Create an admin user\n\t\t\tadminUser = new User(\"admin\", \"1234\", \"admin\", \"admin\", \"admin\", 1);\n\n\t\t\t// Create some default players\n\t\t\tString p1DateString = \"1988-05-12\";\n\t\t\tString p2DateString = \"1985-02-05\";\n\t\t\tString p3DateString = \"1987-06-24\";\n\t\t\tString p4DateString = \"1992-02-05\";\n\t\t\tDate p1Date = sdf.parse(p1DateString);\n\t\t\tDate p2Date = sdf.parse(p2DateString);\n\t\t\tDate p3Date = sdf.parse(p3DateString);\n\t\t\tDate p4Date = sdf.parse(p4DateString);\n\t\t\tp1 = new Player(\"Marcelo\", \"Vieira\", p1Date, 174);\n\t\t\tp2 = new Player(\"Cristiano\", \"Ronaldo\", p2Date, 185);\n\t\t\tp3 = new Player(\"Lionel\", \"Messi\", p3Date, 170);\n\t\t\tp4 = new Player(\"Neymar\", \"Silva\", p4Date, 175);\n\n\t\t\t// Create some default teams\n\t\t\tString t1DateString = \"1902-03-6\";\n\t\t\tString t2DateString = \"1985-02-05\";\n\t\t\tDate t1Date = sdf.parse(t1DateString);\n\t\t\tDate t2Date = sdf.parse(t2DateString);\n\t\t\tList<Player> t1Players = formatPlayers(getPlayersByTeamId(REAL_MADRID));\n\t\t\tList<Player> t2Players = formatPlayers(getPlayersByTeamId(BARCELONA));\n\t\t\tt1 = new Team(t1Players, \"Real Madrid C.F.\", \"Zinedine Zidane\", \"Madrid\", t1Date);\n\t\t\tt2 = new Team(t2Players, \"FC Barcelona\", \"Luis Enrique\", \"Barcelona\", t2Date);\n\n\t\t\t// Create some default stats\n\t\t\ts1 = new Stats(1, 1, 6, 15);\n\t\t\ts2 = new Stats(3, 1, 8, 18);\n\n\t\t\t// Create some default matches\n\t\t\tString m1DateString = \"2017-01-20\";\n\t\t\tString m2DateString = \"2017-03-06\";\n\t\t\tDate m1Date = sdf.parse(m1DateString);\n\t\t\tDate m2Date = sdf.parse(m2DateString);\n\t\t\tm1 = new Match(t2, t1, s1, m1Date, \"Alfonso Alvarez Izq\");\n\t\t\tm2 = new Match(t1, t2, s2, m2Date, \"Carlos Clos Gomez\");\n\n\t\t\t// Fill the database tables only if they are empty\n\t\t\tif (!usersFilled()) {\n\t\t\t\tinsertUser(adminUser);\n\t\t\t}\n\t\t\tif (!playersFilled()) {\n\t\t\t\tinsertPlayer(p1, REAL_MADRID);\n\t\t\t\tinsertPlayer(p2, REAL_MADRID);\n\t\t\t\tinsertPlayer(p3, BARCELONA);\n\t\t\t\tinsertPlayer(p4, BARCELONA);\n\t\t\t}\n\t\t\tif (!teamsFilled()) {\n\t\t\t\tinsertTeam(t1);\n\t\t\t\tinsertTeam(t2);\n\t\t\t}\n\t\t\tif (!matchesFilled() && !statsFilled()) {\n\t\t\t\tinsertStat(s1);\n\t\t\t\tinsertMatch(m1);\n\t\t\t\tinsertStat(s2);\n\t\t\t\tinsertMatch(m2);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }",
"@Beta(Beta.SinceVersion.V1_7_0)\n SqlDatabase.DefinitionStages.WithExistingDatabaseAfterElasticPool<WithCreate> defineDatabase(String databaseName);",
"public static DatabaseConnection create(String... args) {\n\t\treturn new DatabaseConnection(args);\n\t}",
"public void bootstrapDatabase() throws Exception {\n\n }",
"public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"DarthVader@deathStar.com\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }",
"private void initDatabase() {\n\n String sql = \"CREATE TABLE IF NOT EXISTS books (\\n\"\n + \"\tISBN integer PRIMARY KEY,\\n\"\n + \"\tBookName text NOT NULL,\\n\"\n + \" AuthorName text NOT NULL, \\n\"\n + \"\tPrice integer\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(urlPath);\n Statement stmt = conn.createStatement()) {\n System.out.println(\"Database connected\");\n stmt.execute(sql);\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"@BeforeAll\n public void init() throws SQLException, IOException {\n dataSource = DBCPDataSource.getDataSource();\n\n DatabaseUtil databaseUtil = new DatabaseUtil(dataSource);\n databaseUtil.dropTables();\n\n String initUsersTable = \"create table users (id serial primary key, email varchar not null, password varchar not null, birthday date);\";\n String initPostsTable = \"create table posts (id serial primary key, image varchar not null, caption varchar, likes integer not null default 0, userId integer not null references users(id));\";\n\n try (Connection connection = dataSource.getConnection()) {\n Statement statement = connection.createStatement();\n\n statement.execute(initUsersTable);\n statement.execute(initPostsTable);\n\n addUser(\"nikita@gmail.com\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n addUser(\"paul200@mail.ru\", \"HASHED_PASSWORD\", new Date(2000, 01, 01));\n addUser(\"alexfilatov@mail.ru\", \"HASHED_PASSWORD\", new Date(2001, 02, 01));\n addUser(\"yaroslavobruch@gmail.com\", \"HASHED_PASSWORD\", new Date(2000, 05, 06));\n addUser(\"nikita@yandex.ru\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n }\n\n loggerUtil = new LoggerUtil();\n logFilePath = Paths.get(logDirectory, name + \".log\");\n logger = loggerUtil.initFileLogger(logFilePath.toAbsolutePath().toString(), name);\n\n Migrate migrate = new Migrate(dataSource);\n migrate.up(name);\n }",
"public DbUtil() {}"
] |
[
"0.65780336",
"0.6577712",
"0.63979197",
"0.6383712",
"0.63746583",
"0.63383806",
"0.62800074",
"0.6276734",
"0.6207977",
"0.60766286",
"0.6052184",
"0.6049976",
"0.60479295",
"0.60222185",
"0.5965997",
"0.5960203",
"0.5922408",
"0.5895172",
"0.58936125",
"0.583146",
"0.5811288",
"0.5769905",
"0.576812",
"0.57576627",
"0.5724084",
"0.57169086",
"0.57078266",
"0.56797147",
"0.56702447",
"0.56698126",
"0.5664586",
"0.5647319",
"0.5638217",
"0.56119823",
"0.5596579",
"0.55843616",
"0.5575858",
"0.5570302",
"0.5547213",
"0.5539718",
"0.5527062",
"0.5497354",
"0.5490408",
"0.5483741",
"0.5470913",
"0.54697305",
"0.546726",
"0.54632425",
"0.5459064",
"0.5449797",
"0.54367423",
"0.543586",
"0.5434774",
"0.5428101",
"0.54258806",
"0.54256386",
"0.5411089",
"0.5394687",
"0.53921217",
"0.53919995",
"0.5388549",
"0.53858703",
"0.53858244",
"0.537867",
"0.53680915",
"0.5363811",
"0.5353816",
"0.5320637",
"0.53152066",
"0.52936023",
"0.5292242",
"0.5266688",
"0.52607626",
"0.5259921",
"0.5247786",
"0.5247124",
"0.5241699",
"0.52397496",
"0.52300876",
"0.5226124",
"0.5215792",
"0.5206089",
"0.5203291",
"0.5196713",
"0.5195046",
"0.5194096",
"0.51914346",
"0.5184621",
"0.5182789",
"0.5182761",
"0.51799065",
"0.51758647",
"0.5175696",
"0.5172799",
"0.51702404",
"0.51646787",
"0.5162106",
"0.5157944",
"0.5157496",
"0.5156734",
"0.515421"
] |
0.0
|
-1
|
Prepares a test for a database error. Sets up a config and registers an error listener.
|
private PotentialErrorDatabaseConfiguration setUpErrorConfig() throws ConfigurationException {
final PotentialErrorDatabaseConfiguration config = setUpConfig();
setUpErrorListener(config);
return config;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setUpErrorListener(final PotentialErrorDatabaseConfiguration config) {\n // remove log listener to avoid exception longs\n config.clearErrorListeners();\n listener = new ErrorListenerTestImpl(config);\n config.addEventListener(ConfigurationErrorEvent.ANY, listener);\n config.failOnConnect = true;\n }",
"public void setup() throws DatabaseTestException;",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tdbme = new DBManagerException(dbme.getMessage());\r\n\t}",
"public void prepareDatabase(String testName) throws Exception {\n prepareDatabaseFromPath('/' + testName + \"/\" + prepareFileName);\n }",
"@Before\n public void prepare() throws Exception {\n Operation operation =\n sequenceOf(InitializeOperations.DELETE_ALL);\n DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), operation);\n dbSetup.launch();\n }",
"@Before\n public void prepare() {\n MetaStore metadb = prepareTestDB();\n testObj = new SdbSchemeRewriter(metadb.getAllDBs().get(0));\n }",
"@Before\n\tpublic void onSetUp() {\n\t\tSystem.out.println(\"Attempting to drop old table\");\n\n\t\t// 1. drop function\n\t\ttry {\n\t\t\tqueryService.updateBySQL(\"DROP FUNCTION FUNC_RETURN_NUM\",\n\t\t\t\t\tnew String[] {}, new Object[] {});\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fail to DROP Function.\");\n\t\t}\n\n\t\t// 2. drop procedure\n\t\ttry {\n\t\t\tqueryService.updateBySQL(\"DROP PROCEDURE PROC_TOCHAR_SYSDATE\",\n\t\t\t\t\tnew String[] {}, new Object[] {});\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fail to DROP Procedure.\");\n\t\t}\n\n\t\t// 3. drop package\n\t\ttry {\n\t\t\tqueryService.updateBySQL(\"DROP PACKAGE PKG_REFCURSOR_TEST\",\n\t\t\t\t\tnew String[] {}, new Object[] {});\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fail to DROP Package.\");\n\t\t}\n\n\t\t// 4. create function for test\n\t\tqueryService\n\t\t\t\t.updateBySQL(\n\t\t\t\t\t\t\"create FUNCTION FUNC_RETURN_NUM (v_in1 IN number) RETURN number IS BEGIN return 1; END;\",\n\t\t\t\t\t\tnew String[] {}, new Object[] {});\n\n\t\t// 5. create procedure for test\n\t\tqueryService\n\t\t\t\t.updateBySQL(\n\t\t\t\t\t\t\"CREATE OR REPLACE PROCEDURE PROC_TOCHAR_SYSDATE ( \"\n\t\t\t\t\t\t\t\t+ \" OUT_RESULT OUT VARCHAR2, \"\n\t\t\t\t\t\t\t\t+ \" IN_CONDITION IN DATE \"\n\t\t\t\t\t\t\t\t+ \" ) \"\n\t\t\t\t\t\t\t\t+ \" AS \"\n\t\t\t\t\t\t\t\t+ \" BEGIN \"\n\t\t\t\t\t\t\t\t+ \" SELECT \"\n\t\t\t\t\t\t\t\t+ \" to_char(IN_CONDITION, 'YYYYMMDD') as today into OUT_RESULT \"\n\t\t\t\t\t\t\t\t+ \" FROM dual; \"\n\t\t\t\t\t\t\t\t+ \" EXCEPTION \"\n\t\t\t\t\t\t\t\t+ \" WHEN OTHERS THEN \"\n\t\t\t\t\t\t\t\t+ \" DBMS_OUTPUT.PUT_LINE( TO_CHAR(SQLCODE) || ' : ' || SQLERRM ); \"\n\t\t\t\t\t\t\t\t+ \" END;\", new String[] {}, new Object[] {});\n\n\t\t// 6. create package for test\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\"CREATE OR REPLACE PACKAGE PKG_REFCURSOR_TEST AS \");\n\t\tsql.append(\"TYPE dReport IS REF CURSOR; \");\n\t\tsql.append(\"PROCEDURE PROC_RECORD_SET( \");\n\t\tsql.append(\"I_NAME IN VARCHAR2, \");\n\t\tsql.append(\"p_RecordSet OUT dReport \");\n\t\tsql.append(\"); \");\n\t\tsql.append(\"END PKG_REFCURSOR_TEST;\");\n\t\tqueryService.updateBySQL(sql.toString(), new String[] {},\n\t\t\t\tnew Object[] {});\n\n\t\t// 7. create package body for test\n\t\tsql = new StringBuffer();\n\t\tsql.append(\"CREATE OR REPLACE PACKAGE BODY PKG_REFCURSOR_TEST AS \");\n\t\tsql.append(\"PROCEDURE PROC_RECORD_SET( \");\n\t\tsql.append(\"I_NAME IN VARCHAR2, \");\n\t\tsql.append(\"p_RecordSet OUT dReport \");\n\t\tsql.append(\") AS \");\n\t\tsql.append(\"BEGIN \");\n\t\tsql.append(\"IF TRIM(I_NAME) IS NULL THEN \");\n\t\tsql.append(\"OPEN p_RecordSet FOR \");\n\t\tsql.append(\"SELECT 'N/A' NAME, 'BLOCK' STATUS \");\n\t\tsql.append(\"FROM DUAL; \");\n\t\tsql.append(\"ELSE \");\n\t\tsql.append(\"OPEN p_RecordSet FOR \");\n\t\tsql.append(\"SELECT I_NAME NAME, 'ACTIVE' STATUS FROM DUAL \");\n\t\tsql.append(\"UNION ALL \");\n\t\tsql.append(\"SELECT I_NAME, 'READY' FROM DUAL \");\n\t\tsql.append(\"UNION ALL \");\n\t\tsql.append(\"SELECT I_NAME, 'BLOCK' FROM DUAL; \");\n\t\tsql.append(\"END IF; \");\n\t\tsql.append(\"END PROC_RECORD_SET; \");\n\t\tsql.append(\"END PKG_REFCURSOR_TEST; \");\n\t\tqueryService.updateBySQL(sql.toString(), new String[] {},\n\t\t\t\tnew Object[] {});\n\t}",
"private PotentialErrorDatabaseConfiguration setUpConfig() throws ConfigurationException {\n return helper.setUpConfig(PotentialErrorDatabaseConfiguration.class);\n }",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}",
"@Test\n public void testLogErrorListener() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpConfig();\n assertEquals(1, config.getEventListeners(ConfigurationErrorEvent.ANY).size());\n }",
"@BeforeEach\n public void setUp() throws ManagedProcessException, SQLException {\n // See https://github.com/vorburger/MariaDB4j\n DBConfigurationBuilder configBuilder = DBConfigurationBuilder.newBuilder();\n configBuilder.setPort(0); // Setting port to 0 to let configBuilder choose a free open port.\n db = DB.newEmbeddedDB(configBuilder.build());\n db.start();\n db.source(\"database.sql\");\n connection = DriverManager.getConnection(db.getConfiguration().getURL(\"test\"));\n mysqlDatabase = new MysqlDatabase(connection);\n }",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n UnitTestHelper.addConfig(CONFIG_FILE);\r\n\r\n defaultDBUserRetrieval = new MockDBUserRetrieval(NAMESPACE);\r\n defaultDBProjectRetrieval = new MockDBProjectRetrieval(NAMESPACE);\r\n\r\n // Retrieves DBConnectionFactory.\r\n defaultConnection = ((MockDBUserRetrieval) defaultDBUserRetrieval).getConnection();\r\n\r\n cleanupDatabase();\r\n\r\n // Inserts.\r\n UnitTestHelper.insertIntoComponentCataLog(defaultConnection);\r\n UnitTestHelper.insertIntoComponentVersions(defaultConnection);\r\n UnitTestHelper.insertIntoCompForumXref(defaultConnection);\r\n UnitTestHelper.insertIntoTechnologyTypes(defaultConnection);\r\n UnitTestHelper.associateComponentTechnologies(defaultConnection);\r\n\r\n UnitTestHelper.insertIntoEmail(defaultConnection);\r\n UnitTestHelper.insertIntoUser(defaultConnection);\r\n UnitTestHelper.insertIntoUserRating(defaultConnection);\r\n UnitTestHelper.insertIntoUserReliability(defaultConnection);\r\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tDatabaseProvider.setInstance(new DerbyDatabase());\n\t\tdb = DatabaseProvider.getInstance();\t\t\n\t\t\n\t}",
"private void logException(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tLOGGER.error(errorMessage);\n\n\t\tString onDbErrorValue = setOnDbErrorValue(testStepRunner);\n\n\t\tLOGGER.info(\"User has defined '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION\n\t\t\t\t+ \"' to [\"\n\t\t\t\t+ onDbErrorValue\n\t\t\t\t+ \"]. This test case execution will be stopped and test execution will continue as per '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION + \"' configuration.\");\n\t\tthrow new AFTException(errorMessage);\n\t}",
"@BeforeClass\n\tpublic static void setup() throws SQLException {\n\t\tconfig = new ConnectionConfig();\n\t\tconfig.setDataSource(Mockito.mock(DataSource.class));\n\t\t//mock connection\n\t\tConnection connection = Mockito.mock(Connection.class);\n\t\tMockito.when(config.getDataSource().getConnection()).thenReturn(connection);\n\t\tMockito.when(connection.isValid((int) TimeUnit.MILLISECONDS.toSeconds(config.getValidationTimeout()))).thenReturn(true);\n\t\t//create the connection pool\n\t\tpool = new ConnectionPoolImpl(config);\n\t}",
"@Before\r\n\tpublic void setUp() throws SQLException {\n\t\tconn = DBManager.getInstance().getConnection();\r\n\t}",
"@Before\n \tpublic void init() throws SimpleDBException {\n assertNotNull(applicationContext);\n handlerAdapter = applicationContext.getBean(\"handlerAdapter\", HandlerAdapter.class);\n this.testClient = this.createTestClient();\n \t\trefreshRequestAndResponse();\n \t}",
"public void test_prepare() throws Throwable {\r\n\t\tSET_LONG_NAME(\"system.cli.simple\");\r\n\t DECLARE(TEST_PING);\r\n\t DECLARE(TEST_PROCESSLIST);\r\n\t DECLARE(TEST_PROCESSLIST_LOG);\r\n\t}",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n target = new JPADigitalRunTrackStatusDAO();\r\n target.setUnitName(\"persistence_unit\");\r\n target.setSessionContext(context);\r\n }",
"@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}",
"@Before\r\n public void init() throws Exception {\r\n // Create a test listener that traces the test execution, and make sure it is used by the tests to\r\n // record their calls\r\n tracingTestListener = new TracingTestListener(originalTestListener);\r\n\r\n UnitilsJUnit3TestBase.setTracingTestListener(tracingTestListener);\r\n SpringUnitilsJUnit38TestBase.setTracingTestListener(tracingTestListener);\r\n\r\n UnitilsJUnit4TestBase.setTracingTestListener(tracingTestListener);\r\n SpringUnitilsJUnit4TestBase.setTracingTestListener(tracingTestListener);\r\n\r\n InjectionUtils.injectInto(tracingTestListener, Unitils.getInstance(), \"testListener\");\r\n }",
"@BeforeAll\n public void prepare() {\n }",
"public void prepare() throws Exception {\n\r\n\t}",
"protected void setUp() throws Exception {\n super.setUp();\n FailureTestHelper.loadConfig();\n FailureTestHelper.loadData();\n dao = new SQLServerGameDataDAO(\"com.orpheus.game.persistence.SQLServerGameDataDAO\");\n }",
"@BeforeAll\n public static void setupDataSource() {\n dataSource = new SingleConnectionDataSource();\n dataSource.setUrl(\"jdbc:postgresql://localhost:5432/integral-project-test\");\n dataSource.setUsername(\"postgres\");\n dataSource.setPassword(\"postgres1\");\n dataSource.setAutoCommit(false);\n }",
"private void initErrorState()\n\t{\n\t\tthis.initErrorPath();\n\t\tthis.initErrorLoopCount();\n\t}",
"protected void setUp() throws Exception {\n TestEnvironnement.forceFakeDriver();\n testEnv = TestEnvironnement.newEnvironment();\n Dependency.setConnectionManager(testEnv.getConnectionManager());\n }",
"void onPrepare() throws Exception {\n\t\t_person = getPersonService().findPerson(_personId);\n\n\t\tif (_person == null) {\n\t\t\tif (_personId < 4) {\n\t\t\t\tthrow new IllegalStateException(\"Database data has not been set up!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new Exception(\"Person \" + _personId + \" does not exist.\");\n\t\t\t}\n\t\t}\n\t}",
"@Before\n public void setUp() throws Exception {\n HashMap<String, String> prop = PropertyReader.getProperties(ORACLEPROP);\n if (prop.get(\"schema\") != null && !prop.get(\"schema\").isEmpty())\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"), prop.get(\"schema\"));\n else\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"));\n\n // initialize your dataset here\n IDataSet dataSet = getDataSet();\n\n databaseTester.setDataSet(dataSet);\n // will call default setUpOperation\n databaseTester.onSetup();\n }",
"@Before\n public void initTests() {\n\n // Always start from known state\n jdbcTemplate.execute(\"DELETE FROM assessment_rubric;\" +\n \"DELETE FROM user_group;\" +\n \"DELETE FROM learning_process;\" +\n \"DELETE FROM learning_supervisor;\" +\n \"DELETE FROM learning_process_status;\" +\n \"DELETE FROM rubric_type;\" +\n \"DELETE FROM learning_student;\");\n\n jdbcTemplate.execute(\n \"INSERT INTO learning_process_status(id,name,description) values (0,'CEPTE Process Created',' Initial status for a peer evaluation process');\\n\" +\n \"INSERT INTO learning_process_status(id,name,description) values (1,'CEPTE Process Available','The Learning process can be accessed by students');\\n\" +\n \"INSERT INTO learning_process_status(id,name,description) values (2,'CEPTE Process Finished','The Learning process is finished');\\n\" +\n \"INSERT INTO learning_process_status(id,name,description) values (3,'CEPTE Process results available','The Learning process is finished and results are published');\");\n\n jdbcTemplate.execute(\"INSERT INTO rubric_type(id,type) values (\"+sRubricTypeTestId+\",'Assessment of Contents');\\n\" +\n \"INSERT INTO rubric_type(id,type) values (2,'Assessment of Assessments');\\n\" +\n \"INSERT INTO rubric_type(id,type) values (3,'Group based Assessment');\\n\" +\n \"INSERT INTO rubric_type(id,type) values (4,'Group members Assessment');\");\n\n jdbcTemplate.execute(\"INSERT INTO learning_student(username, first_name, last_name) VALUES ('usernameStudent1', 'studentName1', 'studentName1');\\n\" +\n \"INSERT INTO learning_student(username, first_name, last_name) VALUES ('usernameStudent2', 'studentName2', 'studentName2')\");\n\n jdbcTemplate.execute(\"INSERT INTO learning_supervisor(username, first_name, last_name) VALUES ('user', 'supervisorName', 'supervisorLastName')\");\n\n jdbcTemplate.execute(\"INSERT INTO learning_process(id,description, end_date_time, is_cal1_available, is_cal2_available, is_cal3_available, is_calf_available, limit_cal1, limit_cal2, limit_rev1, limit_rev2, \" +\n \"name, starting_date_time, weight_param_a, weight_param_b, weight_param_c, weight_param_d, weight_param_e, status_id, supervisor_id)\\n\" +\n \" VALUES (\"+sLearningProcessTestId+\",'description', current_timestamp, false, false, false, false, 0, 0, 0, 0, 'test', current_timestamp, 20, 20, 20, 20, 20, 1, 'user');\");\n\n\n }",
"@BeforeEach\n public void setUp() throws Exception {\n\n helper = new DatabaseConfigurationTestHelper();\n helper.setUp();\n }",
"@Test(timeout = 4000)\n public void test093() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.connect(\"org.hsqldb.lib.HsqlByteArrayOutputStream\", false);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No environment definition 'org.hsqldb.lib.HsqlByteArrayOutputStream.env.properties' found\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"protected void setUp() throws Exception {\r\n AccuracyTestHelper.clearConfig();\r\n AccuracyTestHelper.loadXMLConfig(AccuracyTestHelper.CONFIG_FILE);\r\n AccuracyTestHelper.loadXMLConfig(AccuracyTestHelper.AUDIT_CONFIG_FILE);\r\n AccuracyTestHelper.setUpDataBase();\r\n AccuracyTestHelper.setUpEJBEnvironment(null, null, null);\r\n\r\n DBConnectionFactory dbFactory = new DBConnectionFactoryImpl(AccuracyTestHelper.DB_FACTORY_NAMESPACE);\r\n AuditManager auditManager = new AuditDelegate(AccuracyTestHelper.AUDIT_NAMESPACE);\r\n TaskTypeDAO taskTypeDao = new DbTaskTypeDAO(dbFactory, AccuracyTestHelper.CONNECTION_NAME,\r\n \"TaskTypeIdGenerator\", AccuracyTestHelper.SEARCH_NAMESPACE, auditManager);\r\n TimeStatusDAO timeStatusDao = new DbTimeStatusDAO(dbFactory, AccuracyTestHelper.CONNECTION_NAME,\r\n \"TimeStatusIdGenerator\", AccuracyTestHelper.SEARCH_NAMESPACE, auditManager);\r\n\r\n instance = new DbTimeEntryDAO(dbFactory, AccuracyTestHelper.CONNECTION_NAME, \"TimeEntryIdGenerator\",\r\n AccuracyTestHelper.SEARCH_NAMESPACE, auditManager, taskTypeDao, timeStatusDao);\r\n }",
"@Before\n public void init() throws ConnectionException, IOException {\n\n final ConnectionPool pool = ConnectionPool.getInstance();\n//\n final Connection connection = pool.takeConnection();\n\n final ScriptRunner scriptRunner = new ScriptRunner(connection);\n\n Reader reader = new BufferedReader(new FileReader(UserDaoTest.class.getClassLoader().getResource(\"db_v2.sql\").getPath()));\n\n scriptRunner.runScript(reader);\n\n pool.closeConnection(connection);\n\n }",
"@Before\r\n\tpublic void setup() throws Exception {\n\t\tinitializeInMemoryDatabase();\r\n\r\n\t\t// Created from org.openmrs.test.CreateInitialDataSet\r\n\t\t// without line for \"concept_synonym\" table (not exist)\r\n\t\t// using 1.4.4-createdb-from-scratch-with-demo-data.sql\r\n\t\t// Removed all empty short_name=\"\" from concepts\r\n\t\t// Added missing description to relationship_type\r\n\t\t// Removed all patients and related patient/person info (id 2-500)\r\n\t\t// Removed all concepts except those in sqldiff\r\n\t\texecuteDataSet(\"initial-openmrs-dataset.xml\");\r\n\r\n\t\t// Includes Motech data added in sqldiff\r\n\t\texecuteDataSet(\"motech-dataset.xml\");\r\n\t\t\r\n\t\t// Add example Location, Facility and Community\r\n\t\texecuteDataSet(\"facility-community-dataset.xml\");\r\n\r\n\t\tauthenticate();\r\n\r\n\t\tactivator.startup();\r\n\t}",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n if (!auditCleared) {\r\n this.executeUpdate(\"delete from audit_detail\");\r\n this.executeUpdate(\"delete from audit\");\r\n auditCleared = true;\r\n }\r\n dao = new InformixAddressDAO();\r\n }",
"@BeforeAll\n public void init() throws SQLException, IOException {\n dataSource = DBCPDataSource.getDataSource();\n\n DatabaseUtil databaseUtil = new DatabaseUtil(dataSource);\n databaseUtil.dropTables();\n\n String initUsersTable = \"create table users (id serial primary key, email varchar not null, password varchar not null, birthday date);\";\n String initPostsTable = \"create table posts (id serial primary key, image varchar not null, caption varchar, likes integer not null default 0, userId integer not null references users(id));\";\n\n try (Connection connection = dataSource.getConnection()) {\n Statement statement = connection.createStatement();\n\n statement.execute(initUsersTable);\n statement.execute(initPostsTable);\n\n addUser(\"nikita@gmail.com\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n addUser(\"paul200@mail.ru\", \"HASHED_PASSWORD\", new Date(2000, 01, 01));\n addUser(\"alexfilatov@mail.ru\", \"HASHED_PASSWORD\", new Date(2001, 02, 01));\n addUser(\"yaroslavobruch@gmail.com\", \"HASHED_PASSWORD\", new Date(2000, 05, 06));\n addUser(\"nikita@yandex.ru\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n }\n\n loggerUtil = new LoggerUtil();\n logFilePath = Paths.get(logDirectory, name + \".log\");\n logger = loggerUtil.initFileLogger(logFilePath.toAbsolutePath().toString(), name);\n\n Migrate migrate = new Migrate(dataSource);\n migrate.up(name);\n }",
"protected void setUp() throws Exception {\r\n\t\tmodelDS = new ServiceModelDS(\"dbtest\",\"pizzeria_service\");\r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/dbtest\", \"root\", \"\");\r\n\t\tconnection.setAutoCommit(false);\r\n\t}",
"public void setUp() throws Exception {\t\t\t\t\t\n\t\tDatabase.reset();\n\t}",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}",
"void init(RunnerConfig config) throws DaemonInitException {\r\n\t\tProperties properties = config.properties;\r\n\t\tif (properties != null) {\r\n\t\t\t// config from file\r\n\t\t\thost = properties.getProperty(ResourceNames.DbHostKey);\r\n host = StrH.trim(host);\r\n\t\t\tuser = properties.getProperty(ResourceNames.DbUserKey);\r\n\t\t\tuser = StrH.trim(user);\r\n\t\t\tpassword = properties.getProperty(ResourceNames.DbPassKey);\r\n\t\t\tpassword = StrH.trim(password);\r\n\t\t\tif(password == null)\r\n\t\t\t password = \"\";\r\n\t\t}\r\n\r\n\t\tif (host==null || host.isEmpty())\r\n\t\t\tthrow new DaemonInitException(\"incomplete runner db config\");\r\n\t\t\r\n\t\tif (user!=null && password!=null) {\r\n\t\t\tread_only = false;\r\n\t\t} else {\r\n\t\t\tlog.warn(simpleName + \"configured for guest database user with readonly access\");\r\n user = \"guest\";\r\n password = \"\";\r\n\t\t}\r\n\r\n\t\t// setup connection pool\r\n pool.setDriverClassName(\"java.sql.DriverManager\");\r\n String dbUrl = \"jdbc:mysql://\"+host+\"/qa_portal?user=\"+user+\"&password=\"+password;\r\n pool.setUrl(dbUrl);\r\n\t\tpool.setUsername(user);\r\n\t\tpool.setPassword(password);\r\n\t\tpool.setInitialSize(1);\r\n\t}",
"protected void setUp() throws Exception {\n\t\tString filePath = new File(\".\").getAbsolutePath() + \"./\";\n\t\tSystem.out.println(\"DB path: \" + filePath);\n\t\t\n\t\tDriverManagerDataSource dataSource = new DriverManagerDataSource();\n\t\tdataSource.setDriverClassName(\"org.hsqldb.jdbcDriver\");\n\t\tdataSource.setUrl(\"jdbc:hsqldb:file:\" + filePath + DATA_BASE_NAME + \";shutdown=true\");\n\t\tdataSource.setUsername(\"SA\");\n\t\tdataSource.setPassword(\"\");\n\t\t\n\t\tthis.hsqlDao = new HsqlCustomerManageDAO();\n\t\tthis.hsqlDao.setDataSource(dataSource);\n\t}",
"@BeforeClass(groups = {\"multi-master\"}, timeOut = SETUP_TIMEOUT)\n public void beforeClass() {\n\n client = this.clientBuilder().build();\n database = createDatabase(client, databaseId);\n }",
"@Before\n public void setUp() throws Exception {\n dataSource1 = createDataSource(\"jdbc:hsqldb:mem:foodb\");\n createTableWithTestData(dataSource1);\n\n dataSource2 = createDataSource(\"jdbc:hsqldb:mem:bardb\");\n createTableWithTestData(dataSource2);\n }",
"@BeforeTransaction\n void verifyInitialDatabaseState() throws Exception {\n this.baseDatabaseSetup.setup(this.entityManager);\n }",
"public void setUp()\r\n throws Exception\r\n {\r\n super.setUp();\r\n Schema.setup();\r\n }",
"@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao(Event.class);\n }",
"private void beginSetup() {\n try {\n if (dbType.equals(\"mysql\")) {\n Class.forName(\"gwe.sql.gweMysqlDriver\");\n }\n else if (dbType.equals(\"postgresql\")) {\n Class.forName(\"org.postgresql.Driver\");\n }\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"setup constructor ClassNotFound: \"+cnfe);\n System.out.println(\"Could not load the mysql driver: please check your classpath\");\n System.exit(-1);\n }\n\n try {\n if (!tableExists(DEFAULT_DB_CONFIG_TABLE)) {\n createConfigTable(DEFAULT_DB_CONFIG_TABLE);\n }\n } catch (SQLException sqle) {\n System.out.println(\"setup beginSetup SQLException: \"+sqle);\n System.out.println(\"Trouble interacting with vizConfig database table\");\n System.exit(-2);\n }\n prepareFrame();\n }",
"@Before\n public void setUp() throws Exception {\n String connectionString = \"jdbc:h2:mem:testing;INIT=RUNSCRIPT from 'classpath:db/create.sql'\";\n Sql2o sql2o = new Sql2o(connectionString, \"\", \"\");\n departmentDao = new Sql2oDepartmentDao(sql2o); //ignore me for now\n conn = sql2o.open(); //keep connection open through entire test so it does not get erased\n }",
"public void testSetUp() throws Throwable {\n\t\tlog.debug(\"Preparing Selenium...\");\r\n\t\tBrowserUtils.setWebBrowser(getEnvProperty(\"browser\"));\r\n\r\n\r\n\t\tString testName = new StringBuffer(getClass().getSimpleName()).toString();\r\n\t\t// set the log for the webdriver\r\n\t\tFile logFile = new File(\"logs/current/\" + testName + \"Driver.log\");\r\n\t\tif (BrowserUtils.isChrome()) {\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.logfile\", logFile.getAbsolutePath());\r\n\t\t} else if (BrowserUtils.isInternetExplorer()) {\r\n\t\t\tSystem.setProperty(\"webdriver.ie.driver.logfile\", logFile.getAbsolutePath());\r\n\t\t} else if (BrowserUtils.isFirefox()) {\r\n\t\t\tSystem.setProperty(\"webdriver.firefox.logfile\", logFile.getAbsolutePath());\r\n\t\t}\r\n\t\tif (!BrowserUtils.loadURL(getEnvProperty(\"deploy\"), getEnvProperty(\"username\"), getEnvProperty(\"password\"))) {\r\n\t\t\tfail(\"Failed to load initial URL due to WebDriver issue\");\r\n\t\t}\r\n\t\tlog.info(\"The current window size is: \"+BrowserUtils.getDriver().manage().window().getSize());\r\n\t\tBrowserUtils.moveMouseOffScreen();\r\n\t\t\r\n\t\tbTestCasePass = true;\r\n\t}",
"protected void setUp() throws Exception {\n super.setUp();\n\n TestHelper.loadConfigurations();\n TestHelper.executeDBScript(TestHelper.SCRIPT_FILL);\n\n generator = IDGeneratorFactory.getIDGenerator(\"phase_id_seq\");\n\n persistence =\n new InformixPhasePersistence(\n new DBConnectionFactoryImpl(TestHelper.CONNECTION_FACTORY_NAMESPACE), \"informix\", generator);\n persistence.setUserManualCommit(true);\n }",
"@Override\r\n\tpublic void prepare() throws Exception {\n\t\t\r\n\t}",
"@BeforeClass\n public static void beforeClass()\n {\n DatabaseDescriptor.daemonInitialization();\n }",
"public void init() throws SQLException {\n EventBusInstance.getInstance().register(new BestEffortsDeliveryListener());\n if (TransactionLogDataSourceType.RDB == transactionConfig.getStorageType()) {\n Preconditions.checkNotNull(transactionConfig.getTransactionLogDataSource());\n createTable();\n }\n }",
"public void bootstrapDatabase() throws Exception {\n\n }",
"public void prepare(TestCase testCase) {\n }",
"public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}",
"@BeforeClass\n\tpublic static void setUp() throws RemoteException {\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Setting up----------------------------------------\");\n\t\tSimpleDB.init(\"simpleDB\");\n\t\t// create a registry specific for the server on the default port\n\t\treg = LocateRegistry.createRegistry(DEFAULT_PORT);\n\t\t// and post the server entry in it\n\t\treg.rebind(BINDING_NAME, new RemoteDriverImpl());\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Set Up done----------------------------------------\");\n\t}",
"protected void setupDB() {\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database started\");\n\t\tlog.info(\"ddl: db-config.xml\");\n\t\tlog.info(\"------------------------------------------\");\n\t\ttry {\n\t\t\tfinal List<String> lines = Files.readAllLines(Paths.get(this.getClass()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getClassLoader()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getResource(\"create-campina-schema.sql\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toURI()), Charset.forName(\"UTF-8\"));\n\n\t\t\tfinal List<String> statements = new ArrayList<>(lines.size());\n\t\t\tString statement = \"\";\n\t\t\tfor (String string : lines) {\n\t\t\t\tstatement += \" \" + string;\n\t\t\t\tif (string.endsWith(\";\")) {\n\t\t\t\t\tstatements.add(statement);\n\t\t\t\t\tstatement = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry (final Connection con = conManager.getConnection(Boolean.FALSE)) {\n\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(\"DROP SCHEMA IF EXISTS campina\")) {\n\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t}\n\t\t\t\tfor (String string : statements) {\n\t\t\t\t\tlog.info(\"Executing ddl: \" + string);\n\t\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(string)) {\n\t\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new IllegalStateException(\"Could not setup db\", e);\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tlog.error(\"Could not setup database\", e);\n\t\t\tthrow new IllegalStateException(\"ddl file load failed\", e);\n\t\t}\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database finished\");\n\t\tlog.info(\"------------------------------------------\");\n\t}",
"@Override\r\n\t\tpublic void prepare() throws Exception\r\n\t\t\t{\n\r\n\t\t\t}",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tfeedbacks = new ReviewFeedback[TIMES];\n\t\tfor (int i = 0; i < feedbacks.length; ++i) {\n\t\t\tfeedbacks[i] = new ReviewFeedback();\n\t\t\tfeedbacks[i].setProjectId(1);\n\t\t\tList<ReviewFeedbackDetail> list = new ArrayList<ReviewFeedbackDetail>();\n\t\t\tfor (int j = 0; j < DETAIL_COUNT_PER_FEEDBACK; j++) {\n\t\t\t\tReviewFeedbackDetail detail = new ReviewFeedbackDetail();\n\t\t\t\tdetail.setReviewerUserId(j);\n\t\t\t\tdetail.setScore(rand.nextInt(HUNDRED));\n\t\t\t\tdetail.setFeedbackText(\"text \" + i + \" \" + j);\n\t\t\t\tlist.add(detail);\n\t\t\t}\n\t\t\tfeedbacks[i].setDetails(list);\n\t\t\tfeedbacks[i].setComment(\"comment \" + i);\n\t\t\tfeedbacks[i].setCreateDate(new Date());\n\t\t\tfeedbacks[i].setCreateUser(String.valueOf(rand.nextInt(HUNDRED)));\n\t\t}\n\t\tinstance = new JDBCReviewFeedbackManager(getConfig());\n\t\tconnection = getConnection();\n\t\texecuteSQL(connection, \"test_files/stress/clear.sql\");\n\t\texecuteSQL(connection, \"test_files/stress/data.sql\");\n\t}",
"protected void onSetUpInTransaction() throws Exception {\r\n\t\ttry {\r\n\r\n\t\t\tlevelOfCourtInstance.setName(\"delta\");\r\n\r\n\t\t\tTestDataFactory jurisdictionTestDataFactory = (TestDataFactory) BeanHelper\r\n\t\t\t\t\t.getBean(\"jurisdictionTestDataFactory\");\r\n\r\n\t\t\tlevelOfCourtInstance\r\n\t\t\t\t\t.setJurisdiction((com.cc.civlit.domain.courtdivisions.Jurisdiction) jurisdictionTestDataFactory\r\n\t\t\t\t\t\t\t.loadOneRecord());\r\n\r\n\t\t\tlevelOfCourtService.save(levelOfCourtInstance);\r\n\t\t} catch (PersistenceException pe) {\r\n\t\t\t//if this instance can't be created due to back references e.g an orderItem needs an Order - \r\n\t\t\t// - we will simply skip generated tests.\r\n\t\t\tif (pe.getCause() instanceof PropertyValueException\r\n\t\t\t\t\t&& pe.getMessage().contains(\"Backref\")) {\r\n\t\t\t\tbTest = false;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"@Before\n public void setUp() {\n LOG.info(\"===========================================================\");\n module1 = context.mock(Module.class, \"module1\");\n module2 = context.mock(Module.class, \"module2\");\n managerListener = context.mock(ModuleLifecycleManagerListener.class);\n listener = context.mock(ModuleLifecycleListener.class);\n peerGroup = context.mock(PeerGroup.class);\n id = IDFactory.newModuleClassID();\n pgx = new PeerGroupException(\"Hardcoded test exception\");\n\n manager = new ModuleLifecycleManager<Module>();\n manager.addModuleLifecycleManagerListener(managerListener);\n manager.addModuleLifecycleListener(listener);\n }",
"@Before\n public void setUp() throws Exception {\n userDao = DatabaseAccess.createOracleDatabase().createUserDaoOperator();\n }",
"@BeforeClass\n public static void initTestClass() throws Exception {\n Map props = MapUtil.mapIt(\"hibernate.connection.url\", \"jdbc:mysql://localhost:3306/event_test\");\n SnowTestSupportNG.initWebApplication(\"src/main/webapp\", props);\n\n inView = appInjector.getInstance(HibernateSessionInViewHandler.class);\n categoryDao = appInjector.getInstance(CategoryDao.class);\n }",
"protected void setUp() throws Exception {\n super.setUp();\n TestHelper.loadConfig();\n actionManager = new ActionManager();\n\n // Setup the undoActions\n actionManager.executeAction(undoableAction1);\n actionManager.executeAction(undoableAction2);\n actionManager.executeAction(undoableAction3);\n\n eventManager = new EventManager(actionManager);\n }",
"@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }",
"@Before\r\n public void initDb() throws Exception {\n mDatabase = Room.inMemoryDatabaseBuilder(ApplicationProvider.getApplicationContext(),\r\n MyDatabase.class)\r\n // allowing main thread queries, just for testing\r\n .allowMainThreadQueries()\r\n .build();\r\n\r\n mTemplateDao = mDatabase.templateDao();\r\n }",
"protected void setUp() throws Exception {\r\n TestHelper.loadConfig();\r\n manager = new AuctionManagerImpl();\r\n session.getServletContext().setAttribute(KeyConstants.AUCTION_MANAGER_KEY, manager);\r\n handler = new LeadingBidsHandler(\"aid\", \"key\");\r\n }",
"@BeforeClass\n public void setUp() throws Exception {\n HiveConf conf = new HiveConf();\n conf.set(\"hive.exec.post.hooks\", \"\");\n conf.set(\"hive.metastore.event.listeners\", \"\");\n\n SessionState ss = new SessionState(conf);\n ss = SessionState.start(ss);\n SessionState.setCurrentSessionState(ss);\n\n // Initialize 'driverWithNoHook' with HS2 hook disabled and HMS hook disabled.\n driverWithNoHook = new Driver(conf);\n\n super.setUp();\n }",
"private void checkErrorListener(final EventType<? extends ConfigurationErrorEvent> type, final EventType<?> opType, final String key, final Object value) {\n final Throwable exception = listener.checkEvent(type, opType, key, value);\n assertInstanceOf(SQLException.class, exception);\n listener = null; // mark as checked\n }",
"@BeforeAll\n public static void setUpClass() {\n emf = EMF_Creator.createEntityManagerFactoryForTest();\n\n //Set System property so the project executed by the Grizly-server wil use this same database\n EMF_Creator.startREST_TestWithDB();\n \n httpServer = startServer();\n\n //Setup RestAssured\n RestAssured.baseURI = SERVER_URL;\n RestAssured.port = SERVER_PORT;\n\n RestAssured.defaultParser = Parser.JSON;\n }",
"@BeforeClass\n\tpublic static void setupClass() throws JsonParseException, JsonMappingException, IOException, URISyntaxException {\n\t\tTEST_ENVIRONMENT.setupConfiguration();\n\t\tTEST_ENVIRONMENT.setupDbConnection();\n\t\tTEST_ENVIRONMENT.migrateDb();\n\t\tTEST_ENVIRONMENT.setupServer();\n\t}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tds = ConverterDAO.getDataSource();\r\n\t\tsubject = new FitnessGraphSubject(ds);\r\n\t\t\r\n\t\t/* Clear the tables.\r\n\t\t This will also populate the data tables, including the fitness tables\r\n\t\t See fitnessData.sql for the values in the table put in there\r\n\t\t by the test data generator */\r\n\t\tTestDataGenerator gen = new TestDataGenerator();\r\n\t\tgen.clearAllTables();\r\n\t\tgen.standardData();\r\n\t}",
"void onStartContainerError(ContainerId containerId, Throwable t);",
"@Override\n public void setUp() {\n try {\n testEngine = MockupSAMLEngine.getInstance();\n } catch (SAMLEngineException e) {\n e.log();\n fail(e.toString());\n }\n }",
"public void setUp() throws Exception {\n Config config = new Config();\n config.init(Usecase.DBPEDIA,\n Language.EN,\n new ArrayList<String>(Arrays.asList(\"qpP_P_I\")) //What is the height and weight of Michael Jordan?\n );\n qm = config.getPatternManager();\n\n }",
"@BeforeEach\n\tpublic void initDbManagerThreadInstance() throws Exception {\n\t\tDbManager.setThreadInstance(dbManager);\n\t}",
"@Test\n public void testAddPropertyError() throws ConfigurationException {\n setUpErrorConfig().addProperty(\"key1\", \"value\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.ADD_PROPERTY, \"key1\", \"value\");\n }",
"@BeforeClass\n public static void setUpBeforeClass() throws Exception {\n dbService = DatabaseServiceFactory.getInstance();\n }",
"@BeforeClass\n public static void setup() {\n getDatabase(\"mandarin\");\n }",
"protected void setUp() throws Exception {\n\t\tfinal StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception e) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t}\n\t}",
"@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }",
"private static void resetDatabase() throws DataStoreException{\n\n try{\n if ( ! Configuration.isConfigured() ){\n URL testFile = MySQLConnectorTest.class.getResource(\"test.conf\");\n Configuration.load(new File(testFile.toURI()));\n }\n loadDBConfiguration();\n } catch (NotConfiguredException | URISyntaxException | IOException e) {\n //If we get here we are unable to load the configuration file, so test setup is wrong.\n throw new RuntimeException(e);\n }\n\n try(\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://\" + host + \":\" +\n port + \"/\" + database + \"?user=\" +\n username + \"&password=\" + password +\n \"&default-character-set=utf8\") ){\n\n Statement resetStatement = conn.createStatement();\n for(String statement: sqlResetBatch){\n resetStatement.addBatch(statement);\n }\n for(String statement: sqlInsertBatch){\n resetStatement.addBatch(statement);\n }\n resetStatement.executeBatch();\n\n MySQLConnector.getInstance().invalidateCaches();\n } catch (SQLException | NotConfiguredException | ConnectionException e){\n //If we get here we are unable to load the configuration file, so test setup is wrong.\n throw new RuntimeException(e);\n }\n }",
"@Before\n\tpublic void initialize() {\n\t\tnullParserSQLGenerator = new SQLStringGenerator(null);\n\t\toneArgParserSQLGenerator = new SQLStringGenerator(new OneArgParser());\n\t}",
"@Test(expected = DBManagerException.class)\r\n\tpublic void testDBManagerException() throws DBManagerException {\r\n\t\ttry {\r\n\t\t\tString CONTROLADOR = \"MAL\";\r\n\t\t\tString URL = \"MAL\";\r\n\t\t\tString USUARIO = \"MAL\";\r\n\t\t\tString CONTRASENA = \"MAL\";\r\n\r\n\t\t\tClass.forName(CONTROLADOR);\r\n\t\t\tDriverManager.getConnection(URL, USUARIO, CONTRASENA);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new DBManagerException(\"Mensaje y causa\", e);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString CONTROLADOR = \"MAL\";\r\n\t\t\tString URL = \"MAL\";\r\n\t\t\tString USUARIO = \"MAL\";\r\n\t\t\tString CONTRASENA = \"MAL\";\r\n\r\n\t\t\tClass.forName(CONTROLADOR);\r\n\t\t\tDriverManager.getConnection(URL, USUARIO, CONTRASENA);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new DBManagerException(\"Solo mensaje\");\r\n\t\t}\r\n\t}",
"@BeforeClass\r\n public static void classSetUp() {\r\n sdebug(TEST_NAME, \"In setup\");\r\n initialEmf = lookupEntityManagerFactory(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMF - \" + initialEmf);\r\n emfb = lookupEntityManagerFactoryBuilder(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMFBuilder - \" + emfb);\r\n }",
"public void setUp() throws Exception {\n String[] argv =\n new String[] {\n \"-u\",\n \"tux\",\n \"-p\",\n \"v2.4\",\n \"-s\",\n \"dbServer\",\n \"-d\",\n \"mydb\",\n \"-h\" };\n this._getOpt = new GetOpt(argv, \"u:p:s:d:h\");\n }",
"@PostConstruct\n public void init() {\n try {\n this.host = config.getConnectionHost();\n this.port = config.getConnectionPort();\n this.uri = config.getConnectionUri();\n } catch (final Exception e) {\n throw new IllegalStateException(\"Test failure: \" + e.getMessage(), e);\n }\n }",
"@BeforeMethod\n\tpublic void startUp() throws TestException {\n\n\t\tlogger = Logger.getLogger(this.getClass());\n\t\tlogger.info(\"*** Running startUp ***\");\n\n\t\t// Retrieves command-line args and stored the configuration values. These values are then retrieved\n\t\t//\t\tfor setting up the WebDriver and for login.\n\t\ttestConfigurator = Configurator.get();\n\n\n\t\ttry {\n\n\t\t\tdriver = DriverManager.getDriver(testConfigurator);\n\t\t\tAssert.assertNotNull(driver, \"*** TEST FAILURE -- WEBDRIVER IS NULL!!! ***\");\n\n\t\t\t// Set implicit waits throughout the whole test.\n\t\t\tdriver.manage().timeouts().implicitlyWait(Configurator.DEFAULT_IMPLICIT_WAIT_TIME, TimeUnit.SECONDS);\n\n\t\t} catch (TestException testException) {\n\t\t\tlogger.error(\"TEST FAILURE -- WEBDRIVER SETUP FAILED, BROWSER NOT OPENED -- TestBase caught TestException -- Exception Message: \" + testException.getMessage());\n\t\t\tlogger.error(\"Exception Cause: \" + testException.getCause());\n\t\t\tlogger.error(\"Exception Class: \" + testException.getClass());\n\t\t} catch (WebDriverException webDriverException) {\n System.out.println(\"TEST FAILURE -- WEBDRIVER SETUP FAILED, BROWSER NOT OPENED -- TestBase caught an arbitrary Exception -- Exception Message \" + webDriverException.getMessage());\n\t\t\tlogger.error(\"TEST FAILURE -- WEBDRIVER SETUP FAILED, BROWSER NOT OPENED -- TestBase caught RuntimeException -- Exception Message \" + webDriverException.getMessage());\n\t\t\tlogger.error(\"Exception Cause: \" + webDriverException.getCause());\n\t\t\tlogger.error(\"Exception Class: \" + webDriverException.getClass());\n\t\t}\n\t\tcatch (Exception exception) {\n System.out.println(\"TEST FAILURE -- WEBDRIVER SETUP FAILED, BROWSER NOT OPENED -- TestBase caught an arbitrary Exception -- Exception Message \" + exception.getMessage());\n\t\t\tlogger.error(\"TEST FAILURE -- WEBDRIVER SETUP FAILED, BROWSER NOT OPENED -- TestBase caught an arbitrary Exception -- Exception Message \" + exception.getMessage());\n\t\t\tlogger.error(\"Exception Cause: \" + exception.getCause());\n\t\t\tlogger.error(\"Exception Class: \" + exception.getClass());\n\t\t}\n\n\t}",
"@Before\n public void setUp() throws Exception {\n this.base = new URL(\"http://localhost:\" + port + \"/api/rules\");\n deleteAllJunitDatabaseEntries();\n }",
"@Override\r\n\tprotected void startUpEmbeddedDatabase(AppConfig config) throws WrappedDatabaseException {\n\t}",
"@BeforeEach\n void setup() {\n // SETUP PHASE\n blackoutCustom = new BlackoutException(\"My custom message.\");\n blackoutDefault = new BlackoutException();\n }",
"@BeforeClass\n public static void initTestFixture() throws Exception {\n entityManagerFactory = Persistence.createEntityManagerFactory(\"test\");\n entityManager = entityManagerFactory.createEntityManager();\n }",
"public void testCreate() {\n\t\ttry {\n\t\t\tServerParameterTDG.create();\n\t\t\tassertTrue(DbRegistry.hasTable(ServerParameterTDG.TABLE));\n\t\t\tServerParameterTDG.drop();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\t\t\t\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tServerParameterTDG.drop();\n\t\t\t} catch (SQLException e) {\n\t\t\t}\n\t\t}\n\t}",
"@Before\n public void setup() {\n config.setProperty(Constants.PROPERTY_RETRY_DELAY, \"1\");\n config.setProperty(Constants.PROPERTY_RETRY_LIMIT, \"3\");\n rc = new RequestContext(null);\n rc.setTimeToLiveSeconds(2);\n }",
"@Before\n public void initTest() {\n AccountCapsule ownerAccountFirstCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_FIRST),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_FIRST)),\n AccountType.Normal,\n 10000_000_000L);\n AccountCapsule ownerAccountSecondCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_SECOND),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_SECOND)),\n AccountType.Normal,\n 20000_000_000L);\n\n dbManager.getAccountStore()\n .put(ownerAccountFirstCapsule.getAddress().toByteArray(), ownerAccountFirstCapsule);\n dbManager.getAccountStore()\n .put(ownerAccountSecondCapsule.getAddress().toByteArray(), ownerAccountSecondCapsule);\n\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderTimestamp(1000000);\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderNumber(10);\n dbManager.getDynamicPropertiesStore().saveNextMaintenanceTime(2000000);\n }",
"@Test\n public void attach_exception_listener_called() {\n try {\n final String channelName = \"attach_exception_listener_called_\" + testParams.name;\n\n /* init Ably */\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n AblyRealtime ably = new AblyRealtime(opts);\n\n /* wait until connected */\n (new ConnectionWaiter(ably.connection)).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", ably.connection.state, ConnectionState.connected);\n\n /* create a channel; put into failed state */\n ably.connection.connectionManager.requestState(new ConnectionManager.StateIndication(ConnectionState.failed, new ErrorInfo(\"Test error\", 400, 12345)));\n (new ConnectionWaiter(ably.connection)).waitFor(ConnectionState.failed);\n assertEquals(\"Verify failed state reached\", ably.connection.state, ConnectionState.failed);\n\n /* attempt to attach */\n Channel channel = ably.channels.get(channelName);\n final ErrorInfo[] listenerError = new ErrorInfo[1];\n synchronized(listenerError) {\n channel.attach(new CompletionListener() {\n @Override\n public void onSuccess() {\n synchronized (listenerError) {\n listenerError.notify();\n }\n fail(\"Unexpected attach success\");\n }\n\n @Override\n public void onError(ErrorInfo reason) {\n synchronized (listenerError) {\n listenerError[0] = reason;\n listenerError.notify();\n }\n }\n });\n\n /* wait until the listener is called */\n while(listenerError[0] == null) {\n try { listenerError.wait(); } catch(InterruptedException e) {}\n }\n }\n\n /* verify that the listener was called with an error */\n assertNotNull(\"Verify the error callback was called\", listenerError[0]);\n assertEquals(\"Verify the given error is indicated\", listenerError[0].code, 12345);\n\n /* tidy */\n ably.close();\n } catch(AblyException e) {\n fail(e.getMessage());\n }\n\n }",
"@Before\n public void setup() throws Exception {\n String path = new File(\".\").getCanonicalPath();\n if (!path.endsWith(\"client\")) {\n rootDirectory = \"client/\";\n }\n\n AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(\n SampleService.simpleServiceDefinition().getAnalysisEngineDescription()\n );\n cas = ae.newCAS();\n cas.setDocumentText(\"a b c\");\n CSI csi = new CSI(cas.getJCas());\n csi.setID(\"1\");\n csi.setBegin(0);\n csi.setEnd(5);\n csi.addToIndexes();\n ae.process(cas);\n Class.forName(dbConnectionInfo.getDriver()).newInstance();\n\n conn = DriverManager.getConnection(dbConnectionInfo.getUrl(), dbConnectionInfo.getUsername(), dbConnectionInfo.getPassword());\n conn.createStatement().execute(\"CREATE TABLE DUMMY_TABLE ( col1 varchar(100), col2 varchar(100), col3 varchar(100))\");\n }"
] |
[
"0.76572025",
"0.66679764",
"0.6633391",
"0.6133397",
"0.6080927",
"0.60703117",
"0.5988544",
"0.5977649",
"0.5766325",
"0.5750694",
"0.57430285",
"0.57252485",
"0.5721598",
"0.5697526",
"0.56962657",
"0.56918985",
"0.567911",
"0.56619436",
"0.56194395",
"0.5611753",
"0.5593274",
"0.559316",
"0.5510369",
"0.5499055",
"0.5495521",
"0.5493304",
"0.54628456",
"0.5430701",
"0.5419823",
"0.540162",
"0.5398893",
"0.5390373",
"0.5388349",
"0.5359681",
"0.53583103",
"0.5358208",
"0.535195",
"0.5336662",
"0.5334281",
"0.53322834",
"0.53168935",
"0.5315134",
"0.53144777",
"0.52888703",
"0.5284803",
"0.52806544",
"0.52777666",
"0.52719194",
"0.5253884",
"0.5244548",
"0.5239702",
"0.5239527",
"0.52387553",
"0.5230054",
"0.52156544",
"0.5184962",
"0.51813775",
"0.5181046",
"0.51721716",
"0.5160076",
"0.515829",
"0.5152417",
"0.5136313",
"0.5134904",
"0.5125749",
"0.51254815",
"0.5118621",
"0.51106614",
"0.5110361",
"0.5092436",
"0.50856715",
"0.50801504",
"0.5073167",
"0.5068243",
"0.5055616",
"0.50507724",
"0.5050483",
"0.5047323",
"0.50463337",
"0.50395733",
"0.5036215",
"0.50222254",
"0.5017821",
"0.5017739",
"0.500751",
"0.5006813",
"0.49985683",
"0.49974117",
"0.49925762",
"0.49867004",
"0.4983066",
"0.4975761",
"0.49752006",
"0.49703297",
"0.49687904",
"0.49617076",
"0.49582988",
"0.49489927",
"0.49489588",
"0.49458015"
] |
0.622179
|
3
|
Creates an error listener and adds it to the specified configuration.
|
private void setUpErrorListener(final PotentialErrorDatabaseConfiguration config) {
// remove log listener to avoid exception longs
config.clearErrorListeners();
listener = new ErrorListenerTestImpl(config);
config.addEventListener(ConfigurationErrorEvent.ANY, listener);
config.failOnConnect = true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testLogErrorListener() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpConfig();\n assertEquals(1, config.getEventListeners(ConfigurationErrorEvent.ANY).size());\n }",
"public interface ErrorListener {\r\n /**\r\n * Responds to the error event in any way that the listener chooses\r\n * @param source The object that raised the error event\r\n * @param msg An optional message created by the source object\r\n */\r\n public void respondToError(Object source, String msg);\r\n}",
"protected Response.ErrorListener getErrorListener() {\n\t\tLog.e(TAG, \"error\");\n\t\treturn new Response.ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tshowProgressBar(false);\n\t\t\t\thandleOnError(arg0);\n\t\t\t}\n\t\t};\n\t}",
"public void setOnErrorListener(IMediaPlayer.OnErrorListener l) {\n mOnErrorListener = l;\n }",
"public synchronized void setErrListener(LineListener errListener) {\n this.errListener = errListener;\n }",
"public static ErrorListener addGlobalErrorListener(ErrorListener errorListener) {\n return VolleyRequest.addGlobalErrorListener(errorListener);\n }",
"void addListener( ConfigurationListener listener );",
"public interface OnErrorListener {\n\n int ERROR_CODE_COMMON = 30001;\n\n void onError(int errorCode);\n}",
"public void setOnErrorListener(OnErrorListener onErrorListener) {\n synchronized (this) {\n this.mOnErrorListener = onErrorListener;\n if (onErrorListener != null) {\n this.createListeners();\n }\n return;\n }\n }",
"public void setOnExceptionListener(OnExceptionListener l) {\n this.exceptionListener = l;\n }",
"@Test\n public void testAddPropertyError() throws ConfigurationException {\n setUpErrorConfig().addProperty(\"key1\", \"value\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.ADD_PROPERTY, \"key1\", \"value\");\n }",
"private PotentialErrorDatabaseConfiguration setUpErrorConfig() throws ConfigurationException {\n final PotentialErrorDatabaseConfiguration config = setUpConfig();\n setUpErrorListener(config);\n return config;\n }",
"public interface OnGraphErrorListener {\n public void onError(String strErrorMessage);\n }",
"public AntlrErrorListener(StatusHandler statusHandler) {\n myStatusHandler = statusHandler;\n }",
"public interface ErrorListener {\n void unexpectedType(String description);\n\n interface DeletionTaskErrorListener {\n void deletingNonExistingTask();\n }\n\n interface DeletionActionErrorListener {\n void deletingUnavailableAction();\n }\n\n interface DeletionInputErrorListener {\n void deletingUnavailableInput();\n }\n\n interface AdditionErrorListener {\n void addingTaskWithUnavailableInput(String inputName);\n }\n}",
"private void checkErrorListener(final EventType<? extends ConfigurationErrorEvent> type, final EventType<?> opType, final String key, final Object value) {\n final Throwable exception = listener.checkEvent(type, opType, key, value);\n assertInstanceOf(SQLException.class, exception);\n listener = null; // mark as checked\n }",
"@Test\n public void testLogErrorListener()\n {\n assertEquals(\"No default error listener registered\", 1,\n new DefaultConfigurationBuilder().getErrorListeners().size());\n }",
"public synchronized void addExceptionListener(ActionListener l) {\n if (Trace.isTracing(Trace.MASK_APPLICATION))\n {\n Trace.record(Trace.MASK_APPLICATION, BEANNAME, \"addExceptionListener registered\");\n }\n exceptionListeners.addElement(l); //add listeners\n }",
"public void addError(Throwable t);",
"public void onReceivedError();",
"public void onError(Exception e);",
"public static interface DSLErrorEvent {\n public void recordError(AssetItem asset, String message);\n }",
"public void onError(String errorMessage);",
"public void setExceptionListener(IbisExceptionListener listener) {\n\t}",
"public void onError(String err, String nick);",
"public interface GlobalExceptionListener {\n\n boolean handleException(CatException e);\n\n}",
"@Test\n public void attach_exception_listener_called() {\n try {\n final String channelName = \"attach_exception_listener_called_\" + testParams.name;\n\n /* init Ably */\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n AblyRealtime ably = new AblyRealtime(opts);\n\n /* wait until connected */\n (new ConnectionWaiter(ably.connection)).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", ably.connection.state, ConnectionState.connected);\n\n /* create a channel; put into failed state */\n ably.connection.connectionManager.requestState(new ConnectionManager.StateIndication(ConnectionState.failed, new ErrorInfo(\"Test error\", 400, 12345)));\n (new ConnectionWaiter(ably.connection)).waitFor(ConnectionState.failed);\n assertEquals(\"Verify failed state reached\", ably.connection.state, ConnectionState.failed);\n\n /* attempt to attach */\n Channel channel = ably.channels.get(channelName);\n final ErrorInfo[] listenerError = new ErrorInfo[1];\n synchronized(listenerError) {\n channel.attach(new CompletionListener() {\n @Override\n public void onSuccess() {\n synchronized (listenerError) {\n listenerError.notify();\n }\n fail(\"Unexpected attach success\");\n }\n\n @Override\n public void onError(ErrorInfo reason) {\n synchronized (listenerError) {\n listenerError[0] = reason;\n listenerError.notify();\n }\n }\n });\n\n /* wait until the listener is called */\n while(listenerError[0] == null) {\n try { listenerError.wait(); } catch(InterruptedException e) {}\n }\n }\n\n /* verify that the listener was called with an error */\n assertNotNull(\"Verify the error callback was called\", listenerError[0]);\n assertEquals(\"Verify the given error is indicated\", listenerError[0].code, 12345);\n\n /* tidy */\n ably.close();\n } catch(AblyException e) {\n fail(e.getMessage());\n }\n\n }",
"public interface ErrorLogger {\n\n public void onError(JudoException e, RequestInterface request);\n\n}",
"public interface OnGlobalExceptionListener {\n boolean handleException(AppException e);\n}",
"void onError(Exception e);",
"void onError(String error);",
"@Override\n @NonNull\n public StorageTask<ResultT> addOnFailureListener(@NonNull OnFailureListener listener) {\n Preconditions.checkNotNull(listener);\n failureManager.addListener(null, null, listener);\n return this;\n }",
"public void add(ConnectionListener connectionListener) throws ServerException;",
"public Response.ErrorListener volleyErrorListener() {\n return new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"error: \", \"\" + error);\n dismissProgressDialog();\n // showToast(\"Error:\" + error);\n }\n };\n }",
"public void onErrorImpl(Throwable e) {\n }",
"public void addError(String message);",
"@Override\n @NonNull\n public StorageTask<ResultT> addOnFailureListener(\n @NonNull Executor executor, @NonNull OnFailureListener listener) {\n Preconditions.checkNotNull(listener);\n Preconditions.checkNotNull(executor);\n\n failureManager.addListener(null, executor, listener);\n return this;\n }",
"void onError(Throwable error);",
"void onError(Throwable error);",
"protected void bindListener() {\n locationManager= TencentLocationManager.getInstance(this);\n int error = locationManager\n .requestLocationUpdates(\n TencentLocationRequest\n .create().setInterval(3000)\n .setRequestLevel(\n TencentLocationRequest.REQUEST_LEVEL_ADMIN_AREA), this);\n\n switch (error) {\n case 0:\n Log.e(\"location\", \"成功注册监听器\");\n break;\n case 1:\n Log.e(\"location\", \"设备缺少使用腾讯定位服务需要的基本条件\");\n break;\n case 2:\n Log.e(\"location\", \"manifest 中配置的 key 不正确\");\n break;\n case 3:\n Log.e(\"location\", \"自动加载libtencentloc.so失败\");\n break;\n\n default:\n break;\n }\n }",
"@Override\n public void onError(Exception e) {\n\n }",
"public void addConnectionListener(ConnectionListener listener);",
"public interface InternalErrorListener {\n void signal(Object source, Throwable exception, String message);\n}",
"void setListener(Listener listener);",
"public void addInvalidEntryListener(InvalidKeyEntryListener listener)\n {\n listenerList.add(InvalidKeyEntryListener.class, listener);\n }",
"void notifyError(RecorderErrorEvent event);",
"public static void addError(Exception e) {\n errors.push(e);\n }",
"void removeListener( ConfigurationListener listener );",
"public interface RequestFailureListener {\n\n /**\n * Gets called when a Request fails.\n *\n * @param e\t\tthe event\n */\n public void requestFailed(RequestFailureEvent e);\n}",
"@Override\r\n public void onError(Exception e) {\n }",
"public Configuration(Config config){\n String error = fromConfig(config);\n if(errors){\n throw new RuntimeException(error);\n }\n }",
"protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }",
"@Override\n\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\tif (addListener != null) {\n\t\t\t\t\t\taddListener.onAddFail();\n\t\t\t\t\t}\n\t\t\t\t}",
"public interface FatalErrorListener extends EventListener {\r\n void receivedFatalError(FatalErrorEvent fatalErrorEvent);\r\n}",
"public void addAnalysisServerListener(AnalysisServerListener listener);",
"public static ExceptionReporter wrap(ProgressListener listener) {\n return new ExceptionReporter(listener);\n }",
"void onStartContainerError(ContainerId containerId, Throwable t);",
"@Override\n public void onError(Exception e) {\n }",
"@Override\n public void onConfigureFailed(@NonNull CameraCaptureSession cameraCaptureSession) {\n }",
"public LoggingSAXErrorHandler(Logger l)\n {\n setLogger(l);\n }",
"@Override\n public void onError(Throwable error) {\n }",
"public final void addError(final String nodeName, final Exception error) {\n\n\t\tthis.errors.put(nodeName, error);\n\t}",
"public abstract void mo27378a(OnConnectionFailedListener onConnectionFailedListener);",
"protected void handleListenerException(Throwable ex) {\n\t\tlogger.error(\"Listener execution failed\", ex);\n\t}",
"void onError(String code, String error);",
"public final void setErrorLoader(final ErrorLoader errorLoader) {\r\n\t\tthis.errorLoader = errorLoader;\r\n\t}",
"public interface BaseListener<T> extends Response.Listener<T>, Response.ErrorListener {\n\n public class ErrorCode {\n }\n}",
"@Override\n\tpublic void onDeviceSetConfigFailed(FunDevice funDevice, String configName,\n Integer errCode) {\n\n\t}",
"void onError(long ssl, Throwable cause);",
"public void errorOccured(String errorMessage, Exception e);",
"@Override\n\tpublic void addRenderingExceptionListener(RenderingExceptionListener listener) {\n\n\t}",
"public interface LoginOptionsListener {\r\n\r\n\t\tpublic void onErrorLoginOptions(final String url);\r\n\t}",
"public void registerConnectionListener(ConnectionConfig config, ConnectionListener listener) {\n connectionManagers.computeIfAbsent(config, connectionManagerFactoryFunction)\n .addListener(listener);\n }",
"public void registerError(final Throwable t) {\n synchronized (this) {\n this.threadError = t;\n }\n\n }",
"public ClassLoadErrorListener(RuntimeException cause, Bundle source) {\n\t\t\tthis.cause = cause;\n\t\t\tthis.source = source;\n\t\t}",
"public abstract void mo27384b(OnConnectionFailedListener onConnectionFailedListener);",
"@Override\n\tpublic void onError(ErrorResponse errorResponse) {\n\t\t\n\t}",
"protected void error(int line, int column, @Nonnull String msg)\r\n throws LexerException {\r\n if (listener != null)\r\n listener.handleError(source, line, column, msg);\r\n //else\r\n // throw new LexerException(\"Error at \" + line + \":\" + column + \": \" + msg);\r\n }",
"@Override\n public void onError(Throwable e) {\n }",
"void addChangeListener(Consumer<ConfigurationSourceChangeEvent> changeListener);",
"@Override\n\tpublic void onError(int error, String msg) {\n\t\t\n\t}",
"public interface IError {\n\n void onError(int code, String msg);\n\n}",
"public interface IError {\n void onError(int code, String msg);\n}",
"private void setupLogging(BuildListener listener) {\n this.listener = listener;\n }",
"@Override\n\t\t\tpublic void onError(WebSocket conn, Exception ex) {\n\t\t\t\tSystem.out.println(\"onError:\"+ex.getMessage());\n\t\t\t\tif(listener!=null) listener.onMessage(\"onError:\"+ex.getMessage());\n\t\t\t}",
"public interface OnError<T> {\n public void onErrorResponse(ErrorResponse response);\n}",
"abstract void onError(Exception e);",
"public void onError( Throwable ex );",
"public ConversionListener createListener(ConfigProperties cprop){\n\t\tjlog.info(\"Create Listener \"+cprop.getProperty(\"PROJ.id\"));\n\t\treturn new ConversionListener(cprop.getProperty(\"PROJ.id\"));\n\t}",
"public void onStreamError(Throwable throwable);",
"void onError(Throwable e);",
"public final Builder mo27394a(OnConnectionFailedListener onConnectionFailedListener) {\n Preconditions.m21858a(onConnectionFailedListener, (Object) \"Listener must not be null\");\n this.f19589s.add(onConnectionFailedListener);\n return this;\n }",
"@Test\n public void testGetPropertyError() throws ConfigurationException {\n setUpErrorConfig().getProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"@Override\n public void onError(Throwable e) {\n\n }",
"@Test\n public void testLoadOptionalErrorEvent() throws Exception\n {\n factory.clearErrorListeners();\n ConfigurationErrorListenerImpl listener = new ConfigurationErrorListenerImpl();\n factory.addErrorListener(listener);\n prepareOptionalTest(\"configuration\", false);\n listener.verify(DefaultConfigurationBuilder.EVENT_ERR_LOAD_OPTIONAL,\n OPTIONAL_NAME, null);\n }",
"public abstract void onError(Call call, Exception e);",
"@Override\n public void onError(Throwable e) {\n }",
"public void addJaakEnvironmentListener(JaakEnvironmentListener listener) {\n\t\tsynchronized (this.listeners) {\n\t\t\tthis.listeners.add(listener);\n\t\t}\n\t}",
"@Override\n public void onError(Throwable t) {\n\n }",
"@Override\n public void onError(Throwable t) {\n\n }"
] |
[
"0.61491823",
"0.6055734",
"0.60224247",
"0.6016629",
"0.59656",
"0.590993",
"0.5705817",
"0.5699095",
"0.56630117",
"0.56569976",
"0.5647039",
"0.5608524",
"0.54797363",
"0.5477013",
"0.5456493",
"0.5440804",
"0.5403321",
"0.5352156",
"0.5311382",
"0.5214448",
"0.51811177",
"0.5160273",
"0.5153535",
"0.5151267",
"0.51280165",
"0.5057457",
"0.49808544",
"0.4980758",
"0.49573377",
"0.4953543",
"0.49479333",
"0.49468082",
"0.49345553",
"0.49235585",
"0.48886317",
"0.48795182",
"0.48680413",
"0.48467207",
"0.48467207",
"0.4810626",
"0.4803323",
"0.48009235",
"0.4788751",
"0.47838497",
"0.47817296",
"0.47723234",
"0.4754125",
"0.47508308",
"0.47494006",
"0.47455424",
"0.47433156",
"0.47405645",
"0.47345307",
"0.47324908",
"0.47258124",
"0.47240016",
"0.47135103",
"0.4706758",
"0.470546",
"0.4705274",
"0.47007456",
"0.47004947",
"0.46991056",
"0.46836922",
"0.46818137",
"0.46791688",
"0.46791443",
"0.46723467",
"0.4664849",
"0.46569726",
"0.46563625",
"0.4651672",
"0.4648597",
"0.46413472",
"0.46363133",
"0.46348748",
"0.46346498",
"0.46312404",
"0.46302924",
"0.46299374",
"0.46285918",
"0.4628341",
"0.46241266",
"0.46189812",
"0.46138415",
"0.46077445",
"0.46054453",
"0.46018776",
"0.45890382",
"0.4585909",
"0.45837626",
"0.45828095",
"0.45825657",
"0.45770648",
"0.4575156",
"0.4573899",
"0.4570414",
"0.45655265",
"0.45651832",
"0.45651832"
] |
0.695975
|
0
|
if an error listener is defined, we check whether an error occurred
|
@AfterEach
public void tearDown() throws Exception {
if (listener != null) {
listener.done();
}
helper.tearDown();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\tprotected boolean onError(final Exception e) {\n\t\t\treturn false;\n\t\t}",
"private void checkErrorListener(final EventType<? extends ConfigurationErrorEvent> type, final EventType<?> opType, final String key, final Object value) {\n final Throwable exception = listener.checkEvent(type, opType, key, value);\n assertInstanceOf(SQLException.class, exception);\n listener = null; // mark as checked\n }",
"public void onReceivedError();",
"public boolean hasError();",
"public interface ErrorListener {\r\n /**\r\n * Responds to the error event in any way that the listener chooses\r\n * @param source The object that raised the error event\r\n * @param msg An optional message created by the source object\r\n */\r\n public void respondToError(Object source, String msg);\r\n}",
"boolean hasError();",
"boolean hasError();",
"boolean hasError();",
"private void notifyListenerError(VolleyError error) {\n for (OnDataChangedListener listener : dataChangedListeners) {\n listener.onDataError(error);\n }\n }",
"public interface OnErrorListener {\n\n int ERROR_CODE_COMMON = 30001;\n\n void onError(int errorCode);\n}",
"public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}",
"public boolean hasErrors();",
"boolean isError();",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n listener.onChangeDeliveredError();\n }",
"boolean hadErrors();",
"void onErrorOccurred() {\n mUserAwarenessListener.onErrorOccurred(Errors.UNDEFINED);\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }",
"public void OnConnectionError();",
"protected void userErrorOccurred()\n {\n traceOK = false;\n }",
"@Test\n public void testLogErrorListener()\n {\n assertEquals(\"No default error listener registered\", 1,\n new DefaultConfigurationBuilder().getErrorListeners().size());\n }",
"public interface OnGraphErrorListener {\n public void onError(String strErrorMessage);\n }",
"boolean hasErrors();",
"public interface ErrorListener {\n void unexpectedType(String description);\n\n interface DeletionTaskErrorListener {\n void deletingNonExistingTask();\n }\n\n interface DeletionActionErrorListener {\n void deletingUnavailableAction();\n }\n\n interface DeletionInputErrorListener {\n void deletingUnavailableInput();\n }\n\n interface AdditionErrorListener {\n void addingTaskWithUnavailableInput(String inputName);\n }\n}",
"public void setOnErrorListener(IMediaPlayer.OnErrorListener l) {\n mOnErrorListener = l;\n }",
"public void onError(Exception e);",
"@Override\n public void onError() {\n\n }",
"protected Response.ErrorListener getErrorListener() {\n\t\tLog.e(TAG, \"error\");\n\t\treturn new Response.ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tshowProgressBar(false);\n\t\t\t\thandleOnError(arg0);\n\t\t\t}\n\t\t};\n\t}",
"@Override\n\tpublic void onError(int error, String msg) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\tif (addListener != null) {\n\t\t\t\t\t\taddListener.onAddFail();\n\t\t\t\t\t}\n\t\t\t\t}",
"@Test\n public void testLogErrorListener() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpConfig();\n assertEquals(1, config.getEventListeners(ConfigurationErrorEvent.ANY).size());\n }",
"public boolean hasError()\n {\n return hasError;\n }",
"@Override\n public void onError(Exception e) {\n }",
"public boolean hasError() {\n\t\treturn hasERR;\n\t}",
"@Override\n\t\t\tpublic void onError(Object error) {\n\n\t\t\t}",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"public synchronized void setErrListener(LineListener errListener) {\n this.errListener = errListener;\n }",
"@Override\r\n\t\t\tpublic void onError(Object error) {\n\t\t\t\t\r\n\t\t\t}",
"public boolean isError() { return error; }",
"private void setUpErrorListener(final PotentialErrorDatabaseConfiguration config) {\n // remove log listener to avoid exception longs\n config.clearErrorListeners();\n listener = new ErrorListenerTestImpl(config);\n config.addEventListener(ConfigurationErrorEvent.ANY, listener);\n config.failOnConnect = true;\n }",
"void onError(Exception e);",
"void notifyError(RecorderErrorEvent event);",
"@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}",
"boolean hasErr();",
"@Override\r\n public void onError(Exception e) {\n }",
"boolean hasErrormessage();",
"private void fireOnTargetErrorEvent(Exception e) {\n \t\tif(!facade.getApplicationStateManager()\r\n \t\t\t\t.getApplicationState().equals(ApplicationState.LOADING)) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tIterator<TargetDataListener> it = this.targetDataListeners.iterator();\r\n \t\t\r\n \t\twhile(it.hasNext()) {\r\n \t\t\tit.next().onTargetError(e);\r\n \t\t}\r\n \t}",
"public boolean isInError()\r\n {\r\n return myCurrentState.equals(State.ERROR);\r\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n NetworkResponse networkResponse = error.networkResponse;\n Log.i(\"Checking\", new String(error.networkResponse.data));\n if(networkResponse != null && networkResponse.data != null)\n {\n switch (networkResponse.statusCode)\n {\n\n default:\n break;\n }\n }\n }",
"public interface OnValidateResponseListener {\n\t\tOnValidateResponseListener STUB = new OnValidateResponseListener() {\n\t\t\t@Override\n\t\t\tpublic boolean isResponseExecuted(HttpUtils.HttpResult httpResult) {\n\t\t\t\treturn httpResult != null && httpResult.getCode() == HttpUtils.HttpResult.OK;\n\t\t\t}\n\t\t};\n\n\t\tboolean isResponseExecuted(HttpUtils.HttpResult httpResult);\n\t}",
"@Override\n public void onError(Error error) {\n }",
"@Override\n\tpublic void onError(ErrorResponse errorResponse) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onError(String error) {\n\t\t\r\n\t}",
"public boolean isError(){\r\n\t\tif(error!=0)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"@Override\n public void onErrorResponse(VolleyError volleyError) { //when error listener is activated\n Log.i(\"volley\", volleyError.toString());\n }",
"@Override\n public void onErrorResponse(VolleyError volleyError) { //when error listener is activated\n Log.i(\"volley\", volleyError.toString());\n }",
"void onError(String error);",
"public boolean onErrorOccured(Throwable cause);",
"@Override\n public void onError(Throwable error) {\n }",
"@Override\r\n\tpublic void onError(String err) {\n\t\t\r\n\t}",
"protected void handleError(ErrorEvent event)\r\n\t{\r\n\t\t// no default behavior\r\n\t}",
"@Override\n public void onError(Exception e) {\n\n }",
"public boolean isError(){\n\t\treturn isError;\n\t}",
"public boolean isError() {\n return _type == Type.ERROR;\n }",
"@Override\r\n\t\t\tpublic void onError(int error) {\n\r\n\t\t\t}",
"public boolean hasError()\n {\n return errorBuffer.length() != 0;\n }",
"public boolean hasRecordErrors();",
"public static ErrorListener addGlobalErrorListener(ErrorListener errorListener) {\n return VolleyRequest.addGlobalErrorListener(errorListener);\n }",
"@Override\n\tpublic void onError(Exception ex) {\n\n\t}",
"private void fireOnIndicatorErrorEvent(Exception e) {\n \t\tif(!facade.getApplicationStateManager()\r\n \t\t\t\t.getApplicationState().equals(ApplicationState.LOADING_INDICATORS)) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tIterator<IndicatorDataListener> it = this.indicatorDataListeners.iterator();\r\n \t\t\r\n \t\twhile(it.hasNext()) {\r\n \t\t\tit.next().onIndicatorError(e);\r\n \t\t}\r\n \t}",
"public boolean hasError() {\n\t\treturn results.getErrors().contains( \"ERROR\") ;\n\t}",
"public void checkError() {\n if (this.threadError != null) {\n throw new EncogError(this.threadError);\n }\n }",
"abstract void onError(Exception e);",
"public boolean isErrorEnabled()\n/* */ {\n/* 258 */ return getLogger().isErrorEnabled();\n/* */ }",
"@Override\n public void onError(Throwable e) {\n }",
"public boolean hasError()\n {\n return data().containsKey(_ERROR);\n }",
"boolean error() {\n return error;\n }",
"@Override\n\tpublic boolean onJobError(ApiJob job) {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}",
"@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}",
"public abstract void OnError(int code);",
"public void onConnectionError()\n\t\t{\n\t\t}",
"boolean hasErrmsg();",
"@Override\n public void onError(String error) {\n }",
"public interface InvalidInputListener extends EventListener {\n /**\n * Fired when the status is updated.\n *\n * @param invalid if true we have some invalid input fields in the UI.\n */\n void statusUpdate(boolean invalid);\n}",
"public void onError(String errorMessage);",
"public boolean errorState();",
"public void onError(String err, String nick);",
"@Override\r\n\t\t\tpublic void onError(int error) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onError(Throwable e) {\n\n }",
"public abstract void mo27378a(OnConnectionFailedListener onConnectionFailedListener);",
"public abstract void onError(Call call, Exception e);",
"public interface OnAreasListener extends IErrorListener {\n void OnAreasSuccess(List<AreasBean> areasBeanList);\n\n @Override\n void OnNetError();\n\n @Override\n void OnRequestFail();\n}",
"protected void onConnectionError() {\n\t}",
"public interface FatalErrorListener extends EventListener {\r\n void receivedFatalError(FatalErrorEvent fatalErrorEvent);\r\n}",
"protected void handleListenerException(Throwable ex) {\n\t\tlogger.error(\"Listener execution failed\", ex);\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onError(DialogError error) {\n\n\t\t\t\t\t\t}",
"@Override\n public void onError(Throwable e) {\n }",
"public abstract void mo27384b(OnConnectionFailedListener onConnectionFailedListener);",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }"
] |
[
"0.68018204",
"0.6635719",
"0.66120684",
"0.654431",
"0.65213054",
"0.6356628",
"0.6356628",
"0.6356628",
"0.6293777",
"0.6265589",
"0.6220336",
"0.6196923",
"0.61889535",
"0.6174077",
"0.6152345",
"0.61091244",
"0.6105265",
"0.6089805",
"0.60826844",
"0.60808724",
"0.60794544",
"0.6049792",
"0.6035949",
"0.6022386",
"0.6021081",
"0.60086966",
"0.5980681",
"0.5977971",
"0.5973077",
"0.59548026",
"0.59528035",
"0.59491235",
"0.59438694",
"0.5942863",
"0.5931629",
"0.5930075",
"0.59300125",
"0.59267366",
"0.5916845",
"0.59135723",
"0.5908201",
"0.5906281",
"0.59036976",
"0.5892966",
"0.5875479",
"0.5865519",
"0.5864319",
"0.58455735",
"0.58431184",
"0.5841291",
"0.58353764",
"0.5835334",
"0.58341265",
"0.58341265",
"0.58309555",
"0.58269536",
"0.5820713",
"0.5817833",
"0.5816974",
"0.5814195",
"0.58129",
"0.5809898",
"0.5798764",
"0.57888764",
"0.57787555",
"0.5772212",
"0.5746253",
"0.57462466",
"0.5745788",
"0.57433516",
"0.5742081",
"0.57368445",
"0.5730466",
"0.5728552",
"0.5726501",
"0.57246625",
"0.5722642",
"0.5720651",
"0.57146984",
"0.57138175",
"0.5713682",
"0.5710514",
"0.5705514",
"0.57037044",
"0.57031614",
"0.5703043",
"0.56934875",
"0.568822",
"0.5686682",
"0.5686235",
"0.56855994",
"0.56850034",
"0.56733614",
"0.5665401",
"0.56652963",
"0.56636363",
"0.56584615",
"0.5654249",
"0.5654249",
"0.5654249",
"0.5654249"
] |
0.0
|
-1
|
Tests whether a commit is performed after a property was added.
|
@Test
public void testAddPropertyDirectCommit() throws ConfigurationException {
helper.setAutoCommit(false);
final DatabaseConfiguration config = helper.setUpConfig();
config.addPropertyDirect("key", "value");
assertTrue(config.containsKey("key"));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean shouldCommit();",
"private synchronized boolean shouldCommit(Message m) {\n\n\t\tboolean flag = false;\n\n\t\ttry {\n\t\t\t// get the commit flag set by the FailoverQSender\n\t\t\tflag = m.getBooleanProperty(FailoverQSender.COMMIT_PROPERTY_NAME);\n\n//\t\t\tif (flag) {\n//\t\t\t\t// check if message property contains expected message counter\n//\t\t\t\tvalidate(m);\n//\t\t\t}\n\n\t\t} catch (JMSException jmse) {\n\t\t\tlog(jmse);\n\t\t}\n\n\t\treturn flag;\n\t}",
"public boolean isCommitOnFailure () {\n return commitOnFailure;\n }",
"boolean isAutoCommit();",
"@Override\n\tpublic boolean requiresPostCommitHanding(EntityPersister arg0) {\n\t\treturn false;\n\t}",
"protected boolean attemptCommit() {\n \t\t\tpretendCommit();\n \t\t\tif (isValid()) {\n \t\t\t\tfDocumentUndoManager.commit();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}",
"@Override\n\tfinal public boolean hasDoneChanges() {\n\t\treturn false;\n\t}",
"public void commit() {\n\t\tcommitted = true;\n\t}",
"public boolean isCommited() {\n return votedCommit;\n }",
"@Test\r\n\tpublic void testCommit()\r\n\t\tthrows Exception\r\n\t{\r\n\t\ttry{\r\n\t\t\ttestAdminCon.begin();\r\n\t\t\ttestAdminCon.add(john, email, johnemail,dirgraph);\r\n\t\r\n\t\t\tassertTrue(\"Uncommitted update should be visible to own connection\",\r\n\t\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertFalse(\"Uncommitted update should only be visible to own connection\",\r\n\t\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertThat(testWriterCon.size(), is(equalTo(0L)));\r\n\t\r\n\t\t\ttestAdminCon.commit();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tlogger.debug(e.getMessage());\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(testAdminCon.isActive())\r\n\t\t\t\ttestAdminCon.rollback();\r\n\t\t}\r\n\t\tassertThat(testWriterCon.size(), is(equalTo(1L)));\r\n\t\tassertTrue(\"Repository should contain statement after commit\",\r\n\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\tassertTrue(\"Committed update will be visible to all connection\",\r\n\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t}",
"public boolean hasChanges();",
"protected void post_commit_hook() { }",
"@Test\n\tpublic void test_update_last_commit_time_change(){\n\t\ttest2.updateLastCommitTime(current);\n\t\tassertEquals(\"Last Commit Time shoud be updated\", current, test2.getLastCommitTime());\n\t}",
"public boolean isCommitted() {\n\t\treturn false;\n\t}",
"public void commit() {\n tryCommit(true);\n }",
"public boolean commit() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.commit();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }",
"@Override\n\tpublic boolean isCommitted() {\n\t\treturn false;\n\t}",
"protected void assertEvent(boolean fExpected)\n {\n Eventually.assertThat(invoking(this).wasInserted(), is(fExpected));\n }",
"public boolean fullCommitNeeded ()\n {\n return true;\n }",
"public boolean isSetAfter() {\n return this.after != null;\n }",
"@Test\n public void testClearPropertyCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final Configuration config = helper.setUpConfig();\n config.clearProperty(\"key1\");\n assertFalse(config.containsKey(\"key1\"));\n }",
"void commit( boolean onSave );",
"@Override\n\tpublic void commit(boolean onSave) {\n\t\tsuper.commit(onSave);\n\t}",
"public boolean syncCommitPhase() {\n return syncCommitPhase;\n }",
"protected abstract boolean onSave(CommitBuilder commit)\n throws IOException, ConfigInvalidException;",
"@Override\n\tpublic int commit() {\n\t\treturn 0;\n\t}",
"@Override\n public boolean callCheck() {\n return last == null;\n }",
"public void testHasPendingChanges() throws RepositoryException{\n boolean result = true;\n \n sessionControl.expectAndReturn(session.hasPendingChanges(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertEquals(jt.hasPendingChanges(), result);\n }",
"@Override\r\n\tpublic boolean hasPendingChanges() throws RepositoryException {\n\t\treturn false;\r\n\t}",
"@Test\n\tpublic void testAddRowCommit() {\n\t}",
"@Override\r\n\tpublic boolean insertLostProperty(ReportDto dto) {\n\t\treturn false;\r\n\t}",
"@Override\n @SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void afterPropertiesSet() throws Exception {\n Assert.hasText(this.projectIdKey, \"projectIdKey must not be empty\");\n }",
"boolean hasSetProperty();",
"@Test\n @Commit\n public void dynamicUpdateContent(){\n }",
"private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void commit() {\n }",
"public boolean commit(Connection conn) throws SQLException {\n boolean status = true;\n try {\n // Start of system transaction\n conn.setAutoCommit(false);\n BookingMapper bm = new BookingMapper();\n status = status && bm.addNewBooking(newBooking, conn);\n status = status && bm.updateBooking(modifiedBooking, conn);\n status = status && bm.deleteBooking(deleteBooking, conn);\n if (!status) {\n\n throw new Exception(\"Business Transaction aborted\");\n }\n // System transaction ends with success\n conn.commit();\n } catch (Exception e) {\n System.out.println(\"fail in UnitOfWork - commit()\");\n System.err.println(e);\n // System transaction fails, rollsback\n conn.rollback();\n status = false;\n }\n return status;\n }",
"public void testSetCleanupOnPutFailure() {\n System.out.println(\"setCleanupOnPutFailure\");\n \n boolean cleanup = true;\n \n instance.setCleanupOnPutFailure(cleanup);\n \n assertEquals(cleanup, instance.getCleanupOnPutFailure());\n }",
"@AfterTransaction\r\n public void verifyFinalDatabaseState()\r\n {\n PersonDAO person = personFactory.getFullPersonById(newId);\r\n\r\n assertThat(person.__revision(), is(0L));\r\n assertThat(person.getId(), is(newId));\r\n assertThat(person.__identity(), is(\"person[\"+newId+\"]\"));\r\n assertThat(person.getName(), is(\"New Person\"));\r\n\r\n //verify that the parent was indeed updated and the name was not changed (due to immutability):\r\n assertThat(person.getParent(), is(instanceOf(PersonDAO.class)));\r\n assertThat(person.getParent(), is(notNullValue()));\r\n assertThat(person.getParent().getId(), is(notNullValue()));\r\n assertThat(person.getParent().getId(), is(5)); //the parent id\r\n assertThat(person.getParent().getName(), is(notNullValue()));\r\n assertThat(person.getParent().getName(), is(\"Person Five\")); //the parent name\r\n\r\n }",
"public boolean isDirty();",
"@Test\n public void add() {\n\n collection.add(\"test\");\n assertEquals(collection.getLast(),\"test\");\n }",
"protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}",
"@Override\n public void commit() {\n }",
"@Override\n\tpublic void commit() {\n\n\t}",
"protected boolean keepCurrentPropertyKey() {\n return newPropertyKey == null;\n }",
"public void commit() {\n doCommit();\n }",
"public void commitChanges()\n {\n }",
"boolean hasLastAction();",
"void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item again if missing\n mItems.add(ADD_NEW_ENTRY);\n // need to manually call, since this item is not in Db and hence ignored by DiffUtil\n notifyItemInserted(mItems.size() - 1);\n }\n }",
"@Override\n public boolean isCommitted() {\n return false;\n }",
"public boolean commitCustomers(Connection conn) throws SQLException {\n boolean status = true;\n try {\n // Start of system transaction\n conn.setAutoCommit(false);\n BookingMapper bm = new BookingMapper();\n status = status && bm.addNewCustomer(newCustomers, conn);\n\n if (!status) {\n throw new Exception(\"Business Transaction aborted\");\n }\n // System transaction ends with success\n conn.commit();\n } catch (Exception e) {\n System.out.println(\"fail in UnitOfWork - commit()\");\n System.err.println(e);\n // System transaction fails, rollsback\n conn.rollback();\n status = false;\n }\n return status;\n }",
"public void setCommit(boolean commit) {\n\t\tthis.commit = commit;\n\t}",
"@Override\r\n\tpublic boolean commit() {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"commit\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.executeUpdate();\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean addProperty(Pp property) {\n if(properties.add(property)){\n //Se property existe, atribui este como seu parente\n if(property != null)\n property.setParent(this);\n\n notifyInserted(NCLElementSets.PROPERTIES, property);\n return true;\n }\n return false;\n }",
"private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}",
"public Boolean after(Event event) {\n int result = this.compareTo(event);\n return result > 0;\n }",
"@Override\r\n\tprotected boolean isAutoCommit() {\r\n\t\tif ((consistentRegionContext != null) || (transactionSize > 1)\r\n\t\t\t\t|| (commitInterval > 0) || (commitOnPunct)) {\r\n\t\t\t// Set automatic commit to false when transaction size is more than\r\n\t\t\t// 1 or it is a consistent region or commit on punct is enabled.\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\t\tpublic boolean getAutoCommit() throws SQLException {\n\t\t\treturn false;\r\n\t\t}",
"@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }",
"void commit() {\n }",
"public boolean updataVisualProperty(VisualProperty prop) \r\n throws RepositoryAccessException {\r\n boolean success = false;\r\n Connection conn = null;\r\n try {\r\n conn = openTransaction();\r\n VisualPropertyProxy proxy = new VisualPropertyProxy(conn);\r\n success = proxy.update(prop);\r\n conn.commit();\r\n } catch (Exception ex) {\r\n rollback(conn);\r\n String msg = \"Could not update visual property: \" + \r\n prop.getId() + \". \" + ex.getMessage();\r\n\r\n LogService.logWarn(msg, LOGGER);\r\n throw new RepositoryAccessException(msg, ex);\r\n } finally {\r\n close(conn);\r\n }\r\n \r\n return success;\r\n }",
"@Test(timeout = 4000)\n public void test037() throws Throwable {\n boolean boolean0 = SQLUtil.isDML(\"org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit\");\n assertFalse(boolean0);\n }",
"private boolean isDirty()\r\n {\r\n //\r\n return _modified;\r\n }",
"@Test\n\tpublic void test_increment_commits(){\n\t\tassertEquals(\"Initial commit number should be 1\", 1, test1.getCommitCount());\n\t\ttest1.incrementCommitCount();\n\t\tassertEquals(\"Number of Commit should be incremented\", 2, test1.getCommitCount());\n\t}",
"boolean hasUpdate();",
"boolean hasUpdate();",
"protected abstract boolean commit(String value);",
"public boolean containsChanges() {\n return genClient.containsChanges();\n }",
"public void setCommitOnFailure (boolean commitOnFailure) {\n this.commitOnFailure = commitOnFailure;\n }",
"public void commit(){\n \n }",
"public void errorWhenCommitting();",
"public void testNonUpdatableBlobDoesNotFail() {\n if (!skip) {\n TimestampedEntity pc = new TimestampedEntity();\n EntityManager em = emf.createEntityManager();\n em.getTransaction().begin();\n em.persist(pc);\n em.getTransaction().commit();\n em.clear();\n\n pc.setNonUpdatableNonNullableDate(null);\n assertCommitSucceeds(pc, !NEW);\n }\n // else no-op\n }",
"@Test\n public void shouldUpdateFinalField() {\n AutomappingTest.sqlSessionFactory.getConfiguration().setAutoMappingBehavior(PARTIAL);\n SqlSession sqlSession = AutomappingTest.sqlSessionFactory.openSession();\n try {\n Mapper mapper = sqlSession.getMapper(Mapper.class);\n Article article = mapper.getArticle();\n // Java Language Specification 17.5.3 Subsequent Modification of Final Fields\n // http://docs.oracle.com/javase/specs/jls/se5.0/html/memory.html#17.5.3\n // The final field should be updated in mapping\n Assert.assertTrue(\"should update version in mapping\", ((article.version) > 0));\n } finally {\n sqlSession.close();\n }\n }",
"public boolean getAutoCommit() throws SQLException {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t result = conn.getAutoCommit();\r\n\t} else {\r\n\t throw new SQLException(\"No connection to database\");\r\n\t}\r\n\r\n\treturn result;\r\n }",
"@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}",
"@Override\n public boolean isDirty() {\n return !conflicts.isEmpty() || super.isDirty();\n }",
"public boolean hasChangeSetComputed() {\n File changelogFile = new File(getRootDir(), \"changelog.xml\");\n return changelogFile.exists();\n }",
"protected void pretendCommit() {\n \t\t\tif (fStart > -1) {\n \t\t\t\tfText= fDocumentUndoManager.fTextBuffer.toString();\n \t\t\t\tfPreservedText= fDocumentUndoManager.fPreservedTextBuffer.toString();\n \t\t\t}\n \t\t}",
"@Override\n public boolean commitSMO() {\n return true;\n }",
"@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }",
"@Override\n\tpublic boolean hasChanged() {\n\t\treturn this.changed;\n\t}",
"public boolean setAutoCommit(boolean value) {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t boolean currentState;\r\n\t try {\r\n\t\tcurrentState = conn.getAutoCommit();\r\n\r\n\t\tif (currentState != value) { // state is actually changed\r\n\t\t conn.setAutoCommit(value);\r\n\t\t}\r\n\r\n\t\tresult = true; // even if state hasn't been changed, operation\r\n\t\t// succeeds\r\n\t } catch (SQLException e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\treturn result;\r\n }",
"@Override\n public boolean isAfterLast() {\n boolean result = true;\n if (mCalllogDatas != null) {\n result = (mIndex >= mCalllogDatas.size()) ? true : false;\n }\n\n MyLogger.logD(CLASS_TAG, \"isAfterLast():\" + result);\n return result;\n }",
"public boolean hasBeenExecuted() {\n\t\treturn executed;\n\t}",
"public boolean isSetLastCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(LASTCOL$12) != 0;\n }\n }",
"boolean hasChangeEvent();",
"public void commit();",
"@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }",
"public boolean isCommitted(long transId) {\n return commitList.isCommitted(transId);\n }",
"void commit() throws CommitException;",
"protected boolean afterMerge() throws DBSIOException{return true;}",
"public boolean lastOpSuccess()\r\n {\r\n \treturn this.stat == VirtualPointer.Serializer.STATUS_SUCCESS;\r\n }",
"public boolean isSetNewProperties() {\n return this.newProperties != null;\n }",
"boolean hasChangeStatus();",
"public boolean hasChanges() {\n return !(changed.isEmpty() && defunct.isEmpty());\n }",
"boolean supportsRollbackAfterDDL();",
"public void afterCompletion(boolean committed) throws EJBException,\n\t RemoteException;",
"public synchronized void setCommitted(CommitInfo info) {\n\t\t// We can't be committed twice.\n\t\tAssert.assertTrue(null == _commitInfo);\n\t\t// The commit offset must be a positive number.\n\t\tAssert.assertTrue(info.intentionOffset > 0L);\n\t\t\n\t\t_commitInfo = info;\n\t\tthis.notifyAll();\n\t}",
"public boolean isSaveDone() {\n return this.doneSave;\n }",
"public void checkpoint(boolean hasUncommittedData) throws SQLException;"
] |
[
"0.6891236",
"0.6311668",
"0.61877006",
"0.61604494",
"0.5944653",
"0.58962864",
"0.5890517",
"0.5875404",
"0.57732123",
"0.5709339",
"0.56656235",
"0.5659802",
"0.5608195",
"0.56066895",
"0.55799866",
"0.55306387",
"0.5493297",
"0.5481573",
"0.5441771",
"0.5435504",
"0.54161763",
"0.54142886",
"0.5401545",
"0.5395502",
"0.5391307",
"0.537596",
"0.5370634",
"0.53539324",
"0.5345838",
"0.5330351",
"0.53086734",
"0.5274779",
"0.5262021",
"0.525988",
"0.5255411",
"0.5241636",
"0.52323693",
"0.52259254",
"0.52145773",
"0.52107596",
"0.5196179",
"0.51903033",
"0.5182729",
"0.5174843",
"0.5171983",
"0.51678944",
"0.5145897",
"0.5120427",
"0.5107534",
"0.5103341",
"0.5092622",
"0.50886077",
"0.5088422",
"0.5084868",
"0.508141",
"0.50776106",
"0.5064717",
"0.50630987",
"0.50609255",
"0.5056018",
"0.5047793",
"0.5043485",
"0.50264823",
"0.50244546",
"0.5022376",
"0.5022376",
"0.5018909",
"0.5017465",
"0.50134766",
"0.50110626",
"0.50088835",
"0.50002456",
"0.49985343",
"0.4997897",
"0.4995941",
"0.4993383",
"0.49905157",
"0.49885342",
"0.49796057",
"0.49719626",
"0.49690828",
"0.49657148",
"0.49639282",
"0.4958119",
"0.4956989",
"0.49543726",
"0.49505615",
"0.49463966",
"0.49390438",
"0.49342102",
"0.49298102",
"0.49260494",
"0.49257928",
"0.49184665",
"0.49177507",
"0.4916987",
"0.49153554",
"0.4889037",
"0.48869032",
"0.48790258"
] |
0.5523886
|
16
|
Tests handling of errors in addPropertyDirect().
|
@Test
public void testAddPropertyError() throws ConfigurationException {
setUpErrorConfig().addProperty("key1", "value");
checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.ADD_PROPERTY, "key1", "value");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testGetPropertyError() throws ConfigurationException {\n setUpErrorConfig().getProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"@Test(expected = IllegalStateException.class)\n @org.junit.Ignore\n public void shouldNotBeAbleToCallPropertyIfThereAreMultipleProperties() {\n }",
"@Test\r\n\tpublic void setRelatedFieldError() {\r\n\t\ttry {\r\n\t\t\ttestObj.setRelatedField(0, 1);\r\n\t\t \tfail(\"Expected an IndexOutOfBoundsException to be thrown for setRelatedField\");\r\n\t\t} \r\n\t\tcatch (IndexOutOfBoundsException anIndexOutOfBoundsException) {\r\n\t\t \treturn;\r\n\t\t}\r\n\t}",
"public void testDuplicateProperty() throws Exception {\n loader.load(reader, ctx);\n assertTrue(ctx.getErrors().get(0) instanceof DuplicateComponentService);\n }",
"@Test\n @org.junit.Ignore\n public void shouldBeAbleToCallPropertyIfThereIsASingleProperty() {\n }",
"@Test(expected=AssertionError.class)\n\tpublic void testPassInvalidToSettersAddress() {\n\t\tbeanTester.testSetterForField(\"invalid\");\n\t}",
"public void testAssertPropertyReflectionEquals_notEqualsDifferentValues() {\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"xxxxxx\", testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }",
"public void testChangePropertyHandler_null() {\n try {\n new ChangePropertyHandler(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n\n }",
"public void verifyNoMatching(AcProperty e)\n {\n }",
"@Override\r\n public void publishPropertyViolation (Publisher publisher) {\n }",
"@Test(timeout = 4000)\n public void test27() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, errorPage0);\n Component component0 = label0.br();\n DynamicSelectModel dynamicSelectModel0 = component0.selectModel();\n dynamicSelectModel0.enumeration((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel0.getLabel((-9));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.PropertyAccessor\", e);\n }\n }",
"@Test\n\tpublic void testNewInvalidNoTargetType() {\n\t\ttry {\n\t\t\tthis.createCollectionProperty(\"<property name=\\\"locales\\\"/>\");\n\t\t\tAssert.fail(\"expected ModelValidationException\");\n\t\t} catch (ModelValidationException e) {\n\t\t\tAssert.assertTrue(e.getMessage().contains(\"no targettype specified\"));\n\t\t}\n\t}",
"@Test\n void testAssertPropertyReflectionEquals_notEqualsDifferentValues() {\n assertFailing(() ->\n assertPropertyReflectionEquals(\"stringProperty\", \"xxxxxx\", testObject)\n );\n }",
"@Test(expected = LackOfPropertyException.class)\n\tpublic void testLackOfPropertyException() throws Exception {\n\t\tnew MovieGraphFactory().parse(\"Vertex=<FrankDarabont,Director,<M>>\");\n\t}",
"@Test\n public void testPutHandlesConditionalCheckFailedExceptionCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(true);\n }",
"public void testassociate3() throws Exception {\r\n try {\r\n Address address = new Address();\r\n this.dao.associate(address, 1, true);\r\n fail(\"InvalidPropertyException expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"@Override\r\n @Test(expected = UnsupportedOperationException.class)\r\n public void testPutWithFailingEventPublisher() {\n super.testPutWithFailingEventPublisher();\r\n }",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.enumeration((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel0.translateValue(\"wheel.util.DynamicSelectModel\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.PropertyAccessor\", e);\n }\n }",
"@Test(expected=AssertionError.class)\n\tpublic void testPassInvalidFieldToGettersAddress() {\n\t\tbeanTester.testGetterForField(\"invalid\");\n\t}",
"public PrimitivePropertyTest(String testName)\n {\n super(testName);\n }",
"@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n Assert.assertEquals(\"1.2.3\", object.getVersion());\n }",
"public void testAssertPropertyReflectionEquals_leftNull() {\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }",
"@Test\n public void testLoadPropertiesWithDelegatorRegistrationException() {\n final String expectedErrorMessage = \"Unable to load delegator properties from file\";\n expectedException.expect(DelegatorRegistrationException.class);\n expectedException.expectMessage(expectedErrorMessage);\n DelegatorRegistryProperties mockedDelegatorRegistryProperties = mock(DelegatorRegistryProperties.class);\n doThrow(new DelegatorRegistrationException(expectedErrorMessage)).when(mockedDelegatorRegistryProperties).loadProperties();\n mockedDelegatorRegistryProperties.loadProperties();\n }",
"@Test\n public void testAddPropertyDirectCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final DatabaseConfiguration config = helper.setUpConfig();\n config.addPropertyDirect(\"key\", \"value\");\n assertTrue(config.containsKey(\"key\"));\n }",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.enumeration((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel0.getValue((-8));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.PropertyAccessor\", e);\n }\n }",
"@Test\n public void testClearPropertyError() throws ConfigurationException {\n setUpErrorConfig().clearProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR_PROPERTY, \"key1\", null);\n }",
"@Test\r\n\tpublic void testComplexProperty() throws Exception {\r\n\t\tAdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tXMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider.getInstance()\r\n\t\t\t\t.getMetaPropertiesSet(component.getClass()), component);\r\n\r\n\t\t// Retreiving value of the property.\r\n\t\tProperty subProperty = container.getProperty(\"complexProperty.stringProperty\");\r\n\t\tassertNotNull(subProperty);\r\n\r\n\t\t// Attaching monitor to the property.\r\n\t\tPropertyMonitorStub monitor = new PropertyMonitorStub();\r\n\t\tcontainer.addPropertyMonitor(\"complexProperty.stringProperty\", monitor);\r\n\t\tsubProperty.setValue(subProperty.getValue() + \" - new value\");\r\n\t\tassertEquals(1, monitor.getPropertyChangedInvokationCounter());\r\n\t\tcontainer.removePropertyMonitor(\"complexProperty.stringProperty\", monitor);\r\n\r\n\t\t// Attaching monitor only to \"complexProperty\"\r\n\t\tmonitor = new PropertyMonitorStub();\r\n\t\tcontainer.addPropertyMonitor(\"complexProperty\", monitor);\r\n\t\tsubProperty.setValue(\"\");\r\n\t\tassertEquals(1, monitor.getPropertyChangedInvokationCounter());\r\n\t\tcontainer.removePropertyMonitor(\"complexProperty\", monitor);\r\n\r\n\t\t// The monitor should not get the message now.\r\n\t\tsubProperty.setValue(\"newValue\");\r\n\t\tassertEquals(1, monitor.getPropertyChangedInvokationCounter());\r\n\t}",
"public void verify()\n\t{\n\t\ttry\n\t\t{\n\t\t\tClass<?> propertyType = descriptor.getPropertyType();\n\t\t\t// delegate first to the provided type factory to create a type\n\t\t\t// instance\n\t\t\tObject propertyInstance = typeFactory.create(propertyType);\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tpropertyInstance = createInstanceOfType(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\t// Use Mockito to mock the property\n\t\t\t\t// TODO Use the Reflection API's Proxy instead\n\t\t\t\tpropertyInstance = mock(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tfail(\"Failed to create a mock object of type\" + propertyType.getName());\n\t\t\t}\n\n\t\t\t// Setup\n\t\t\tObject system = typeFactory.create(type);\n\t\t\tif (system == null)\n\t\t\t{\n\t\t\t\tsystem = type.newInstance();\n\t\t\t}\n\n\t\t\t// Execute\n\t\t\tMethod writeMethod = descriptor.getWriteMethod();\n\t\t\tMethod readMethod = descriptor.getReadMethod();\n\t\t\twriteMethod.invoke(system, propertyInstance);\n\t\t\tObject actualObject = readMethod.invoke(system, (Object[]) null);\n\n\t\t\t// Verify\n\t\t\tassertEquals(String.format(\"Verification failed for property %s\", descriptor.getName()), propertyInstance,\n\t\t\t\t\tactualObject);\n\t\t}\n\t\tcatch (IllegalAccessException illegalEx)\n\t\t{\n\t\t\tlogger.error(null, illegalEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InstantiationException instanceEx)\n\t\t{\n\t\t\tlogger.error(null, instanceEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InvocationTargetException invokeEx)\n\t\t{\n\t\t\tlogger.error(null, invokeEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t}",
"@Test\n void testAssertPropertyReflectionEquals_rightNull() {\n testObject.setStringProperty(null);\n assertFailing(() ->\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject)\n );\n }",
"public PropertyNotDefinedException() {\n super();\n }",
"public void testAssertPropertyReflectionEquals_rightNull() {\r\n testObject.setStringProperty(null);\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }",
"@Test\n void testAssertPropertyLenientEquals_equalsMessage() {\n assertPropertyLenientEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\n }",
"public void testAddAddress2() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationUser(null);\r\n this.dao.addAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"public void testAfterPropertiesSetException() throws Exception {\n\t\ttry {\n\t\t\texchangeTarget.afterPropertiesSet();\n\t\t\tfail(\"afterPropertiesSet should fail when interface, service, and uri are null.\");\n\t\t} catch (MessagingException me) {\n\t\t\t// test succeeds\n\t\t}\n\t}",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"@Test\n public void testIOExceptionWhileEvaluatingQueries() {\n assertStackTraceOfIOExceptionWhileEvaluatingQueries(PROJOG_DEFAULT_PROPERTIES);\n }",
"@Override\r\n\tpublic boolean insertLostProperty(ReportDto dto) {\n\t\treturn false;\r\n\t}",
"@Test\n public void testPutHandlesOtherExceptionsCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(false);\n }",
"@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }",
"@Test\n\tpublic void testValidateOk() {\n\t\tRapidBean bean = createTestBean(\"Bl�mel\", \"Martin\", \"19641014\");\n\t\tPropertyCollection prop = this\n\t\t\t\t.createCollectionProperty(\"<property name=\\\"test\\\"\" + \" targettype=\\\"TestBean\\\"\" + \" />\");\n\t\tprop.validate(bean);\n\t}",
"@Test\n void testAssertPropertyReflectionEquals_leftNull() {\n assertFailing(() ->\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject)\n );\n }",
"@Test\n\tpublic void testValidateInvalidWrongType() {\n\t\tRapidBean bean = createTestBean(\"Bl�mel\", \"Martin\", \"19641014\");\n\t\tPropertyCollection prop = this.createCollectionProperty(\n\t\t\t\t\"<property name=\\\"test\\\"\" + \" targettype=\\\"org.rapidbeans.test.TestBean\\\"\" + \" />\");\n\t\ttry {\n\t\t\tprop.validate(bean);\n\t\t\tAssert.fail(\"expected ValidationException\");\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"@Override\n\tpublic void test00500Add_Validate_ExistingRecord() throws Exception\n\t{\n\t}",
"public void testGetProperty()\n {\n assertEquals(\"MSM Extension not present, or incorrect specification version -\", MSM_SPECIFICATION_VERSION,\n System.getProperty(MSM_PROPERTY_NAME));\n }",
"public void testAssertPropertyReflectionEquals_actualObjectNull() {\r\n try {\r\n assertPropertyReflectionEquals(\"aProperty\", \"aValue\", null);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }",
"void updatedProperty(TestResult tr, String name, String value);",
"protected boolean shouldAddProperty(String key) {\n return !key.equals(\"label\") && !key.equals(\"id\");\n }",
"@Test(timeout = 4000)\n public void test159() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"]1\");\n Text text0 = new Text(table0, \"]1\");\n // Undeclared exception!\n try { \n text0.dd((Object) errorPage0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Test\n public void test16PersistentProperty() throws Exception\n {\n // test find all meta\n List<PSPersistentPropertyMeta> listMeta = ms_cms.findAllPersistentMeta();\n assertTrue(listMeta.size() == 3);\n\n // test find persistent meta by name\n listMeta = ms_cms\n .findPersistentMetaByName(PSPersistentPropertyManager.SYS_USER);\n assertTrue(listMeta.size() == 3);\n\n // test find all properties\n List<PSPersistentProperty> origProps = ms_cms.findAllPersistentProperties();\n\n String myUser = \"myUser\" + System.currentTimeMillis();\n\n // test find by name\n List<PSPersistentProperty> props = ms_cms\n .findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n // test insert / save property\n PSPersistentProperty prop = new PSPersistentProperty(myUser, \"sys_lang\",\n \"sys_session\", \"private\", \"admin2 sys_lang private\");\n ms_cms.savePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 1);\n\n // test modify / update property\n String newValue = \"changed\";\n prop.setValue(newValue);\n ms_cms.updatePersistentProperty(prop);\n\n // test delete property\n ms_cms.deletePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n props = ms_cms.findAllPersistentProperties();\n assertTrue(origProps.size() == props.size());\n }",
"@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}",
"private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}",
"public void testSetProperty() {\n rootBlog.setProperty(Blog.NAME_KEY, \"New name\");\n assertEquals(\"New name\", rootBlog.getProperty(Blog.NAME_KEY));\n assertEquals(\"New name\", rootBlog.getName());\n\n // and a new property\n rootBlog.setProperty(\"aNewPropertyKey\", \"A new property value\");\n assertEquals(\"A new property value\", rootBlog.getProperty(\"aNewPropertyKey\"));\n }",
"@Test\n void testAssertPropertyLenientEquals_equals() {\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\n }",
"@Test(timeout = 4000)\n public void test17() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n DynamicSelectModel dynamicSelectModel1 = dynamicSelectModel0.enumeration((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel1.getOptionCount();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.PropertyAccessor\", e);\n }\n }",
"public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }",
"@Test\n\tpublic void testAddLinkOkMult1to1Second() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser umartin = new TestUser(\"martin\");\n\t\tAssert.assertNull(martin.getUser());\n\t\tAssert.assertNull(umartin.getPerson());\n\t\t((PropertyCollection) umartin.getProperty(\"person\")).addLink(jojo);\n\t\tAssert.assertSame(jojo, umartin.getPerson());\n\t\tAssert.assertSame(umartin, jojo.getUser());\n\n\t\t// test\n\t\ttry {\n\t\t\t((PropertyCollection) umartin.getProperty(\"person\")).addLink(martin);\n\t\t\tAssert.fail(\"expected a ValidationException\");\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"PropertyCallExp createPropertyCallExp();",
"@Test(enabled = false)\n public void addPropertyInCompositionScreenTest() throws Exception {\n ResourceReqDetails vfMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());\n ResourceUIUtils.createVF(vfMetaData, getUser());\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n CompositionPage.showPropertiesAndAttributesTab();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = CompositionPage.getProperties().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n AssertJUnit.assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> CompositionPage.getProperties()));\n }",
"public Result testGetDefaultPropertyIndex() {\n try {\n if (beanInfo.getDefaultPropertyIndex() != -1) {\n throw new LocationException(\"mistake DefaultPropertyIndex\");\n }\n Bean1BeanInfo.verifyException();\n return passed();\n } catch (Exception e) {\n e.printStackTrace();\n return failed(e.getMessage());\n }\n }",
"@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }",
"public void testAssertPropertyLenientEquals_equalsMessage() {\r\n assertPropertyLenientEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\r\n }",
"public void testAssertPropertyLenientEquals_equals() {\r\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\r\n }",
"@Test(timeout = 4000)\n public void test039() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"\", \"\");\n // Undeclared exception!\n try { \n checkbox0.var();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }",
"public static boolean canTransferToProperty( TestProperty source, TestProperty target )\r\n \t{\r\n \t\treturn false;\r\n \t}",
"@Test\n public void mainTests(){\n assertTrue(property1.getPropertyId() == id1);\n if(property1.getPropertyId() != id1) {\n property2.setPropertyId(id1);\n }\n else {\n assertTrue(property2.getPropertyId() == id2);\n }\n //Getter works Correct for ID\n }",
"@BeforeTest\n\t\tpublic void propCalling() throws IOException\n\t\t{\n\t\t\t\n\t\t\tIntializingProperties();\n\t\t}",
"public void testGetProperty() {\n assertEquals(rootBlog.getName(), rootBlog.getProperty(Blog.NAME_KEY));\n }",
"private void assertInvalid(Object obj, String expectedProperty, String expectedErrMsg, Object expectedValue){\n //run validator on car object and store the resulting violations in a collection\n Set<ConstraintViolation<Object>> constraintViolations = validator.validate( obj );\n\n //count how many violations - SHOULD ONLY BE 1\n assertEquals( 1, constraintViolations.size() );\n\n //get first violation from constraintViolations collection\n ConstraintViolation<Object> violation = constraintViolations.iterator().next();\n\n //ensure that expected property has the violation\n assertEquals( expectedProperty, violation.getPropertyPath().toString() );\n\n //ensure error message matches what is expected\n assertEquals( expectedErrMsg, violation.getMessage() );\n\n //ensure the invalid value is what was set\n assertEquals( expectedValue, violation.getInvalidValue() );\n }",
"@Test\n public void setError_ErrorIsSet_Passes() throws Exception {\n test2JsonResponse.setError(test2error);\n Assert.assertEquals(test2JsonResponse.getError(), test2error);\n }",
"@Test(timeout = 4000)\n public void test136() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"cannot bind to collection property: \", \".*,r%\");\n // Undeclared exception!\n try { \n checkbox0.h2();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test064() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.checkReadOnly((String) null, true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }",
"@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetSystemProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n if (object.getOperatingSystemName().isEmpty())\n {\n fail(\"System property: os.name should not be empty!\");\n }\n }",
"public void testBeforeSet() throws Exception {\r\n GroovyClassLoader gcl = new GroovyClassLoader();\r\n final Class<?> testClass = gcl.parseClass(\"class Test { def prop = 'hello' }\");\r\n GroovyObject go = (GroovyObject)testClass.newInstance();\r\n\r\n ProxyMetaClass pmc = ProxyMetaClass.getInstance(testClass);\r\n go.setMetaClass(pmc);\r\n\r\n pmc.setInterceptor( new PropertyAccessInterceptor(){\r\n\r\n public Object beforeGet(Object object, String property, InvocationCallback callback) {\r\n return null;\r\n }\r\n\r\n public void beforeSet(Object object, String property, Object newValue, InvocationCallback callback) {\r\n assertEquals(\"prop\", property);\r\n BeanWrapper bean = new BeanWrapperImpl(object);\r\n bean.setPropertyValue(\"prop\",\"success\");\r\n callback.markInvoked();\r\n }\r\n\r\n public Object beforeInvoke(Object object, String methodName, Object[] arguments, InvocationCallback callback) {\r\n return null;\r\n }\r\n\r\n public Object afterInvoke(Object object, String methodName, Object[] arguments, Object result) {\r\n return null;\r\n }\r\n });\r\n\r\n go.setProperty(\"prop\", \"newValue\");\r\n Object result = go.getProperty(\"prop\");\r\n assertNotNull(result);\r\n assertEquals(\"success\",result);\r\n }",
"private boolean validPropertyExceptions(Method paramMethod) {\n/* 492 */ Class[] arrayOfClass = paramMethod.getExceptionTypes();\n/* */ \n/* 494 */ for (byte b = 0; b < arrayOfClass.length; b++) {\n/* 495 */ Class clazz = arrayOfClass[b];\n/* */ \n/* 497 */ if (isCheckedException(clazz) && !isRemoteException(clazz)) {\n/* 498 */ return false;\n/* */ }\n/* */ } \n/* 501 */ return true;\n/* */ }",
"@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void test_AddDocument_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Document document = createDocumentForTest();\r\n beanUnderTest.addDocument(document);\r\n beanUnderTest.addDocument(document);\r\n fail(\"EntityAlreadyExistsException is expected.\");\r\n } catch (EntityAlreadyExistsException e) {\r\n // success\r\n }\r\n }",
"public void testFailureDueToDups() throws Exception\n {\n try {\n String json = MAPPER.writeValueAsString(new DupFieldBean());\n fail(\"Should not pass, got: \"+json);\n } catch (InvalidDefinitionException e) {\n verifyException(e, \"Multiple fields representing\");\n }\n }",
"@Test\n\tpublic void testNewOkDefaultNullAndGetValue() {\n\t\tthis.createTestBean();\n\t\tPropertyCollection prop = this\n\t\t\t\t.createCollectionProperty(\"<property name=\\\"test\\\"\" + \" targettype=\\\"TestBean\\\"\" + \" />\");\n\t\tAssert.assertNull(prop.getValue());\n\t}",
"public void testassociate4() throws Exception {\r\n try {\r\n Address address = new Address();\r\n address.setId(1);\r\n this.dao.associate(address, 1, true);\r\n fail(\"InvalidPropertyException expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"public void setErrorProperty(String errorProperty) {\r\n redirector.setErrorProperty(errorProperty);\r\n incompatibleWithSpawn = true;\r\n }",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"@Test(timeout = 4000)\n public void test030() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n try { \n jSONObject0.put((String) null, Double.NaN);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"@Test\n\tpublic void testPropertyIntegralType() {\n\t\tfinal Base base = context.mock(Base.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(base).isValid();\n\t\t\t\twill(returnValue(true));\n\t\t\t}\n\t\t});\n\n\t\tassertTrue(\"Initial value was not set\", base.isValid());\n\t\tbase.setValid(false);\n\t\tassertFalse(\"Value didn't change\", base.isValid());\n\t}",
"void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;",
"protected void validateProperty(String name, PolylineMapObject line) throws RuntimeException {\n if (line.getProperties().get(name) == null)\n throw new RuntimeException(\"Property '\" + name + \"' not found when loading platform\");\n\n String value = line.getProperties().get(name).toString();\n\n /*if (value == null)\n throw new RuntimeException(\"Property '\" + name + \"' must be != NULL\");*/\n\n if (value.trim().length() == 0)\n throw new RuntimeException(\"Property '\" + name + \"' cannot be empty\");\n }",
"public void testAddAddress3() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setModificationUser(null);\r\n this.dao.addAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n // Undeclared exception!\n try { \n dynamicSelectModel0.getObjects();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.util.DynamicSelectModel\", e);\n }\n }",
"@Test // New test annotation without a try/catch\r\n\tpublic void testAdd1() {\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tint calculatedValue = calc.add(-20, 30);\r\n\t\t\t\tint expectedValue = 10;\r\n\t\t\t\tassertEquals(expectedValue, calculatedValue);\r\n\t\t\t} catch (NegativeNumberException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Negative number\");\r\n\t\t\t}\r\n\t}",
"private ReadProperty()\r\n {\r\n\r\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousObjPropTargetShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setObjPropTargetShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"@Test\r\n public void testListValuedObjectPropertyInvalidation() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n InvalidationReport report = new InvalidationReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"@Test(timeout = 4000)\n public void test176() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.hr();\n // Undeclared exception!\n try { \n component0.address();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test032() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n try { \n jSONObject0.put((String) null, false);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousObjPropSourceShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setObjPropSourceShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void pointNullException() {\n\n\t\tset.addPoint(null);\n\t}",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }"
] |
[
"0.6434318",
"0.63648045",
"0.6293658",
"0.60517645",
"0.6050945",
"0.60493803",
"0.599817",
"0.5986075",
"0.5939933",
"0.5905086",
"0.578079",
"0.5748843",
"0.574292",
"0.5737658",
"0.5725126",
"0.5694992",
"0.5693808",
"0.569166",
"0.5687266",
"0.56809026",
"0.56549096",
"0.56506747",
"0.5649785",
"0.56473",
"0.5622233",
"0.5619538",
"0.56099856",
"0.5599437",
"0.55900383",
"0.55810463",
"0.55550694",
"0.5544243",
"0.55259234",
"0.5511617",
"0.5488654",
"0.54838365",
"0.54791594",
"0.5465417",
"0.5450599",
"0.54440695",
"0.5442194",
"0.5435833",
"0.54340786",
"0.5404705",
"0.5399507",
"0.5396201",
"0.5391843",
"0.53881264",
"0.5380082",
"0.53796524",
"0.53729886",
"0.5368936",
"0.53648275",
"0.5361857",
"0.5354496",
"0.5341126",
"0.5337987",
"0.533175",
"0.53268164",
"0.53194195",
"0.5317324",
"0.5313829",
"0.531185",
"0.5304341",
"0.5303106",
"0.53008676",
"0.5300054",
"0.5297003",
"0.5296568",
"0.5295477",
"0.5295371",
"0.529366",
"0.52922755",
"0.52808315",
"0.5278991",
"0.5278868",
"0.527193",
"0.5271704",
"0.5271704",
"0.52695954",
"0.52689207",
"0.5268146",
"0.5251744",
"0.5244863",
"0.5243221",
"0.52323896",
"0.5231332",
"0.52310276",
"0.5228516",
"0.5228384",
"0.5228096",
"0.5226693",
"0.5224521",
"0.5220834",
"0.5219219",
"0.52181447",
"0.5214259",
"0.52118766",
"0.5210026",
"0.52090186"
] |
0.7054968
|
0
|
Tests adding a property containing the list delimiter. When this property is queried multiple values should be returned.
|
@Test
public void testAddWithDelimiter() throws ConfigurationException {
final DatabaseConfiguration config = setUpConfig();
config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));
config.addProperty("keyList", "1;2;3");
final String[] values = config.getStringArray("keyList");
assertArrayEquals(new String[] {"1", "2", "3"}, values);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetListWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n final List<Object> values = config.getList(\"keyMulti\");\n assertEquals(Arrays.asList(\"a\", \"b\", \"c\"), values);\n }",
"private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }",
"Rule ListSeparator() {\n // No effect on value stack\n return Sequence(AnyOf(\",;\"), WhiteSpace());\n }",
"@Test\n public void testSetPropertyWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpMultiConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n config.setProperty(\"keyList\", \"1;2;3\");\n final String[] values = config.getStringArray(\"keyList\");\n assertArrayEquals(new String[] {\"1\", \"2\", \"3\"}, values);\n }",
"public static List getPropertyList(String pPropertyList,Logger pLogger)\n\t{\n\t\tArrayList propList=null;\n\t\tStringTokenizer tokenizer = new StringTokenizer(pPropertyList,Constants.DELIMITER);\n\t\tint tokens = tokenizer.countTokens();\n\t\tpLogger.log(Level.INFO,\"Value to parse:\"+pPropertyList);\n\t\tpLogger.log(Level.INFO,\"Num tokens:\"+tokens);\n\t\t\n\t\tif(pPropertyList!=null)\t\t\t\n\t\t{\n\t\t\tpropList = new ArrayList();\n\t\t\t\n\t\t\t\t\twhile(tokenizer.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\t\tString token = tokenizer.nextToken();\n\t\t\t\t\t\tpropList.add(token);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn propList;\n\t\t\n\t}",
"@Test\n public void testGetListWithDelimiterParsingDisabled() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n assertEquals(\"a;b;c\", config.getString(\"keyMulti\"));\n }",
"static public Vector getPropertyValues (Properties props, String propName)\n{\n String propertyDelimiterName = \"property.token.delimiter\";\n String delimiter = props.getProperty (propertyDelimiterName, \"::\");\n\n String listStartTokenName = \"list.startToken\";\n String listStartToken = props.getProperty (listStartTokenName, \"(\");\n\n String listEndTokenName = \"list.endToken\";\n String listEndToken = props.getProperty (listEndTokenName, \")\");\n\n Vector result = new Vector ();\n String propString = props.getProperty (propName);\n if (propString == null)\n return result;\n String propStringTrimmed = propString.trim ();\n String [] tokens = Misc.parseList (propStringTrimmed, listStartToken, listEndToken, delimiter);\n\n for (int i=0; i < tokens.length; i++)\n result.add (tokens [i]);\n\n return result;\n\n}",
"@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }",
"static public boolean isList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n Vector list = new Vector ();\n\n if (s.startsWith (startToken) && s.endsWith (endToken)) \n return true;\n else\n return false;\n\n\n}",
"private boolean isWrappedListOfValues(FieldAccessor fieldAccessor) {\n\t\treturn false;\n\t}",
"private static String asPropertyValue( List<?> values, boolean present ) {\n return values.isEmpty() ? String.valueOf( present ) : Joiner.on( \",\" ).join( values );\n }",
"java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> \n getPropsList();",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }",
"public void testEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n // set empty multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, new String[]{});\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n }",
"private static BiFunction<String, Value<?>, PropertyFilter> requireList(final BiFunction<String, ListValue, PropertyFilter> target) {\n\t\treturn (property, value) -> {\n\t\t\tif (value instanceof ListValue) {\n\t\t\t\treturn target.apply(property, (ListValue)value);\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Filter operation on '\" + property + \"' expected a list-type property\");\n\t\t\t\t// Alternatively, convert it?\n\t\t\t\t//return target.apply(property, ListValue.of(value));\n\t\t\t}\n\t\t};\n\t}",
"@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}",
"public void testNonEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n String[] propValues =\n new String[]{\"No sacrifice is too great in the service of freedom.\",\n \"Freedom is the right of all sentient beings.\"};\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n\n // set multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, propValues);\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n assertTrue(\"Property element should contain value data.\",\n find.contains(\"No sacrifice is too great in the service of freedom.\"));\n }",
"ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);",
"@Override\r\n\t\tpublic final boolean combinePropertyLists()\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}",
"@Test\n public void testGetPropertyValueSet(){\n List<User> list = toList(//\n new User(2L),\n new User(5L),\n new User(5L));\n\n Set<Integer> set = CollectionsUtil.getPropertyValueSet(list, \"id\", Integer.class);\n assertThat(set, contains(2, 5));\n }",
"@Nullable\n @Generated\n @Selector(\"propertyList\")\n @MappedReturn(ObjCObjectMapper.class)\n public native Object propertyList();",
"void setListProperty(Object name, List<Object> list) throws JMSException;",
"public static boolean ObjectPropertyList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ObjectPropertyList\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, OBJECT_PROPERTY_LIST, \"<object property list>\");\n r = ObjectProperty(b, l + 1);\n r = r && ObjectPropertyList_1(b, l + 1);\n r = r && ObjectPropertyList_2(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public Iterator<String> listPropertyValue(String instance, String property)\r\n\t{\r\n\t\tOntResource ontI = obtainOntResource(instance);\r\n\t\tProperty prop = obtainOntProperty(property);\r\n\t\treturn new ToStringIterator<String>(ontI.listPropertyValues(prop));\r\n\t}",
"public final ListS3 setDelimiter(final String delimiter) {\n properties.put(DELIMITER_PROPERTY, delimiter);\n return this;\n }",
"Rule ConstListItem() {\n return Sequence(\n ConstValue(),\n Optional(ListSeparator()));\n }",
"@Test\r\n public void testListPropertyBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bind(p1);\r\n assertSame(\"sanity, same list bidi-bound\", list, p2.get());\r\n ObservableList<String> other = createObservableList(true);\r\n ChangeReport report = new ChangeReport(p2);\r\n p1.set(other);\r\n assertEquals(\"RT-38770 - bind 2 ListProperties\", 1, report.getEventCount());\r\n }",
"private boolean isParameterList() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameter())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isParameterList())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"@Test\n public void testSplitOnPattern() {\n List<String> list = Splitter.on(\n Pattern.compile(\"\\\\|\")\n ).trimResults().omitEmptyStrings().splitToList(\"hello | world|||\");\n assertThat(list, notNullValue());\n assertThat(list.size(), equalTo(2));\n assertThat(list.get(0), equalTo(\"hello\"));\n assertThat(list.get(1), equalTo(\"world\"));\n }",
"public List selectAllByProperty(String property, String value) {\n\t\treturn (List) super.selectAllByProperty(className, property,\n\t\t\t\tvalue);\n\t}",
"@Test\n void getByPropertyLikeSuccess() {\n List<Order> orders = dao.getByPropertyLike(\"description\", \"SSD\");\n assertEquals(1, orders.size());\n }",
"private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }",
"public static PropertyDescriptionBuilder<List<String>> listOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<List<String>> clazz = (Class<List<String>>)(Class<?>)List.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseList(Parsers::parseString));\n }",
"PropertyArray(PropertyTokener x) throws PropertyException {\n this();\n if (x.nextClean() != '[') {\n throw x.syntaxError(\"A JSONArray text must start with '['\");\n }\n\n char nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar != ']') {\n x.back();\n for (; ; ) {\n if (x.nextClean() == ',') {\n x.back();\n this.myArrayList.add(PropertyObject.NULL);\n } else {\n x.back();\n this.myArrayList.add(x.nextValue());\n }\n switch (x.nextClean()) {\n case 0:\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n case ',':\n nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar == ']') {\n return;\n }\n x.back();\n break;\n case ']':\n return;\n default:\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n }\n }\n }",
"public void addListProperty(final ConfigListDTO property) {\n \t\tlistProperties.put(property.getPropertyName(), property);\n \t}",
"boolean isMultiple(String val) {\n\t\tif (val == null) return false;\n\t\treturn val.indexOf(VcfEntry.WITHIN_FIELD_SEP) >= 0;\n\t}",
"java.util.List<java.lang.String> getValuesList();",
"public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}",
"private boolean checkElementSeparator() {\n if (flavor == ConfigSyntax.JSON) {\n TokenWithComments t = nextTokenIgnoringNewline();\n if (t.token == Tokens.COMMA) {\n return true;\n } else {\n putBack(t);\n return false;\n }\n } else {\n boolean sawSeparatorOrNewline = false;\n TokenWithComments t = nextToken();\n while (true) {\n if (Tokens.isNewline(t.token)) {\n // newline number is the line just ended, so add one\n lineNumber = t.token.lineNumber() + 1;\n sawSeparatorOrNewline = true;\n\n // we want to continue to also eat\n // a comma if there is one.\n } else if (t.token == Tokens.COMMA) {\n return true;\n } else {\n // non-newline-or-comma\n putBack(t);\n return sawSeparatorOrNewline;\n }\n t = nextToken();\n }\n }\n }",
"private String[] splitListColumn(String column) {\n if (column.trim().equals(\"\")) {\n return EMPTY_STRING_ARRAY;\n } else {\n return column.split(INPUT_LIST_DELIM);\n }\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"public boolean isList();",
"public boolean isList();",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingSecondElement() throws ParseException {\n\t\tparser(\"<%=[a,]%>\").block();\n\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"public Iterator<String> listPropertyRange(String property)\r\n\t{\r\n\t\tOntProperty prop = obtainOntProperty(property);\r\n\t\treturn new ToStringIterator<String>(prop.listRange());\r\n\t}",
"static public String [] parseList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n if (s.startsWith (startToken) && s.endsWith (endToken)) {\n s = s.substring (1, s.length()-1); \n return s.split (delimiter);\n }\n else {\n String [] unparseableResult = new String [1];\n unparseableResult [0] = listString;\n return unparseableResult;\n }\n \n /*********************\n StringTokenizer strtok = new StringTokenizer (deparenthesizedString, delimiter);\n int count = strtok.countTokens ();\n for (int i=0; i < count; i++)\n list.add (strtok.nextToken ());\n }\n else\n list.add (listString);\n\n return (String []) list.toArray (new String [0]);\n **********************/\n\n\n}",
"public boolean isList() {\n return m_item.getSchemaComponent().type() == SchemaBase.LIST_TYPE;\n }",
"@Override\n\tpublic void addProperty(String key, String value) {\n\n\t\tif (key.equals(key_delimiter) && value.length() == 1) {\n\t\t\tvalue = \"#\" + String.valueOf((int) value.charAt(0));\n\t\t}\n\t\tsuper.addProperty(key, value);\n\t}",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"List<E> list(String field, String contains);",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\n if (property == TYPE_ARGUMENTS_PROPERTY) {\n return typeArguments();\n }\n // allow default implementation to flag the error\n return super.internalGetChildListProperty(property);\n }",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingFirstElement() throws ParseException {\n\t\tparser(\"<%=[,]%>\").block();\n\t}",
"private PropertyValues handleListType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\t\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getCollectionReturnType(method,level);\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof List<?>){\n\t\t\tList<?> dataList=(List<?>) data;\n\t\t\tfor(int i=0;i<dataList.size();i++){\n\t\t\t Object element=dataList.get(i);\n\t\t\t String subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+i+PropertyAccessor.PROPERTY_KEY_SUFFIX;\n\t\t\t values.addPropertyValues(resolve(subPath,element,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"@Test\n\tpublic void testListLiteral() throws ParseException {\n\t\tListLiteral listLiteral = langParser(\"[]\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 0);\n\t\tlistLiteral = langParser(\"[101,a,'b']\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 3);\n\t\tassertEquals(listLiteral.getElements().get(0).getClass(), LongLiteral.class);\n\t\tassertEquals(((LongLiteral) listLiteral.getElements().get(0)).longValue(), 101L);\n\t\tassertEquals(listLiteral.getElements().get(1).getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) listLiteral.getElements().get(1)).getName(), \"a\");\n\t\tassertEquals(listLiteral.getElements().get(2).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) listLiteral.getElements().get(2)).getValue(), \"b\");\n\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"private static Element createExtendedItemListProp(ReportDesigner reportDesigner){\r\n\t\tElement listPropertyNode = doc.createElement(\"list-property\");\r\n\t\tlistPropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"boundDataColumns\");\r\n\r\n\t\tList<ReportColumn> reportColumns = reportDesigner.getReportColumns();\r\n\r\n\t\tfor(ReportColumn col : reportColumns){\r\n\t\t\tElement structureNode = doc.createElement(ReportDesigner.NODE_NAME_STRUCTURE);\r\n\t\t\tlistPropertyNode.appendChild(structureNode);\r\n\r\n\t\t\tElement propertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,ReportDesigner.ATTRIBUTE_VALUE_NAME);\r\n\t\t\tpropertyNode.appendChild(doc.createTextNode(col.getName()));\r\n\t\t\tstructureNode.appendChild(propertyNode);\r\n\r\n\t\t\tElement expressionNode = doc.createElement(ReportDesigner.NODE_NAME_EXPRESSION);\r\n\t\t\texpressionNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,ReportDesigner.ATTRIBUTE_VALUE_EXPRESSION);\r\n\t\t\texpressionNode.appendChild(doc.createTextNode(\"dataSetRow[\\\"\"+col.getName()+\"\\\"]\"));\r\n\t\t\tstructureNode.appendChild(expressionNode);\r\n\r\n\t\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"dataType\");\r\n\t\t\tpropertyNode.appendChild(doc.createTextNode(ReportDesigner.fromXsd2ReportType(col.getDataType())));\r\n\t\t\tstructureNode.appendChild(propertyNode);\r\n\t\t}\r\n\r\n\t\treturn listPropertyNode;\r\n\t}",
"protected abstract List<String> writeData(T property);",
"@Test\r\n public void testListValuedObjectPropertyInvalidation() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n InvalidationReport report = new InvalidationReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"java.util.List<? extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> \n getPropsOrBuilderList();",
"private List<String> ListTransform(Object value) {\n\n if (value.toString().contains(lineDelimiter))\n return Arrays.asList(value.toString().split(lineDelimiter));\n\n List<String> lines = new ArrayList<>();\n if (!value.toString().equals(\"\"))\n lines.add(value.toString());\n\n return lines;\n }",
"boolean getIsList();",
"boolean getIsList();",
"public void setListItems(List<String> lit) { mItems = lit; }",
"public final String getDelimiter() {\n return properties.get(DELIMITER_PROPERTY);\n }",
"public void setListProperty(List<Integer> t) {\n\n\t\t}",
"@Test\r\n public void testAPIChange() {\r\n WithListValue<String> p = new WithListValue<>();\r\n Property<ObservableList<String>> property = p.itemsProperty();\r\n ChangeListener<? super ObservableList<String>> listener = new ChangeListener<ObservableList<String>>() {\r\n\r\n @Override\r\n public void changed(\r\n ObservableValue<? extends ObservableList<String>> observable,\r\n ObservableList<String> oldValue,\r\n ObservableList<String> newValue) {\r\n LOG.info(\"dummy dooo!\");\r\n \r\n }\r\n } ;\r\n \r\n property.addListener(listener);\r\n// ListProperty items = table.itemsProperty();\r\n }",
"@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> roles = genericDAO.getByPropertyLike(\"userName\", \"a\");\n for(UserRoles role : roles) {\n log.info(role.getUserName());\n }\n assertEquals(2, roles.size());\n }",
"public static final void setWhitelist(final CMProps props, final WhiteList listType, final String list) {\n if (listType == null)\n return;\n if ((list == null) || (list.trim().length() == 0))\n return;\n final List<String> parts = CMParms.parseCommas(list.trim(), true);\n final List<Pattern> partsCompiled = new ArrayList<Pattern>();\n for (final String part : parts) {\n if (part.trim().length() == 0)\n continue;\n partsCompiled.add(Pattern.compile(part.trim(), Pattern.CASE_INSENSITIVE | Pattern.DOTALL | Pattern.CANON_EQ));\n }\n props.whiteLists.put(listType, partsCompiled.toArray(new Pattern[0]));\n }",
"ListProperty<String> getCommandLine();",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }",
"public Properties getPropertyInfo(Properties list);",
"public static boolean avoidSpecialCharsInFieldNames() {\n\t\treturn PROP_SEP_LEN > 1;\n\t}",
"public final ListProperty<T> segmentsProperty() {\n return segments;\n }",
"public List<Integer> getListProperty() {\n\t\t\treturn null;\n\t\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }",
"public ConfigListDTO getListProperty(final String name) {\n \t\treturn listProperties.get(name);\n \t}",
"public abstract QueryElement addOrLike(String property, Object value);",
"@Test\r\n public void testListPropertyAdapterSetEqualListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n objectProperty.set(otherList);\r\n assertEquals(\"must fire change on setting list to objectProperty\", 1, report.getEventCount());\r\n }",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\r\n\t\tif (property == NEW_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn newArguments();\r\n\t\t}\r\n\t\tif (property == CONSTRUCTOR_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn constructorArguments();\r\n\t\t}\r\n\t\tif (property == BASE_CLASSES_PROPERTY) {\r\n\t\t\treturn baseClasses();\r\n\t\t}\r\n\t\tif (property == DECLARATIONS_PROPERTY) {\r\n\t\t\treturn declarations();\r\n\t\t}\r\n\t\t// allow default implementation to flag the error\r\n\t\treturn super.internalGetChildListProperty(property);\r\n\t}",
"@Test\n\tpublic void testListOperations() {\n\t\tassertFalse(streetAddresses.contains(s1PlusNine));\n\t\tassertTrue(streetAddresses.stream().anyMatch(s -> comparator.compare(s1PlusNine, s) == 0));\n\t}",
"@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> usersRoles = genericDao.getPropertyByName(\"roleName\", \"user\");\n assertEquals(2, usersRoles.size());\n }",
"@Override\n protected List<ElementSearch> fw_findElementsBy(String PropType, String PropValue)\n {\n List<ElementSearch> temp_lst = new ArrayList<>();\n if (PropValue.contains(\"|\"))\n {\n String[] valueList = PropValue.split(\"\\\\|\");\n for (String eachValue : valueList) {\n if ((eachValue != null) && (eachValue.length() > 0))\n {\n temp_lst.addAll(((WebElement)element).findElements(Utilities.getIdentifier(PropType, eachValue)).stream().map(ElementObject::new).collect(Collectors.toList()));\n }\n }\n }\n else\n {\n temp_lst.addAll(((WebElement)element).findElements(Utilities.getIdentifier(PropType, PropValue)).stream().map(ElementObject::new).collect(Collectors.toList()));\n }\n //END HERE\n return temp_lst;\n }",
"public void setNameValueProperty(List<NameValueProperty> nameValueProperty) {\n\t\tthis.nameValuePropertyList = nameValueProperty;\n\t}",
"public Properties getProperties(Properties getList);",
"abstract ChildListPropertyDescriptor internalThenDeclarationsProperty();",
"java.util.List<java.lang.String>\n getProbeFieldsList();",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToEmpty() {\r\n ListProperty listProperty = new SimpleListProperty(createObservableList(false));\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }",
"java.util.Optional<String> getItemSeparator();"
] |
[
"0.6894668",
"0.6797777",
"0.67127967",
"0.6576561",
"0.6475411",
"0.6319092",
"0.62304395",
"0.60949373",
"0.5827644",
"0.57510537",
"0.56749046",
"0.54444975",
"0.53612524",
"0.53486294",
"0.5347811",
"0.5327402",
"0.5324043",
"0.5301906",
"0.52937293",
"0.5267914",
"0.52663714",
"0.5249558",
"0.5240835",
"0.52305526",
"0.522649",
"0.52247596",
"0.5217751",
"0.5203529",
"0.518741",
"0.5185956",
"0.51776797",
"0.5167111",
"0.5163226",
"0.5157416",
"0.51322204",
"0.51207894",
"0.51162523",
"0.50872266",
"0.5074759",
"0.5054848",
"0.504774",
"0.50432134",
"0.50432134",
"0.5042938",
"0.5042938",
"0.50402087",
"0.5034037",
"0.5034037",
"0.5034037",
"0.5034037",
"0.5034037",
"0.5034037",
"0.50229925",
"0.5019915",
"0.5018013",
"0.50087696",
"0.5008352",
"0.5008352",
"0.5005163",
"0.4997989",
"0.49934798",
"0.4985479",
"0.49820644",
"0.49718684",
"0.49718684",
"0.49718684",
"0.4965626",
"0.49648112",
"0.49556813",
"0.4950787",
"0.49463096",
"0.49429843",
"0.49429843",
"0.49394614",
"0.4931394",
"0.4927659",
"0.49268255",
"0.49182498",
"0.49102902",
"0.4907051",
"0.48983634",
"0.4894321",
"0.48942733",
"0.48829988",
"0.4880786",
"0.4872381",
"0.4870098",
"0.48664936",
"0.48631382",
"0.48625308",
"0.48602945",
"0.48565438",
"0.48541206",
"0.48440844",
"0.48279047",
"0.4826267",
"0.48214817",
"0.4817572",
"0.48069954",
"0.47930056"
] |
0.6339437
|
5
|
Tests whether a commit is performed after a clear operation.
|
@Test
public void testClearCommit() throws ConfigurationException {
helper.setAutoCommit(false);
final Configuration config = helper.setUpConfig();
config.clear();
assertTrue(config.isEmpty());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean shouldCommit();",
"protected boolean attemptCommit() {\n \t\t\tpretendCommit();\n \t\t\tif (isValid()) {\n \t\t\t\tfDocumentUndoManager.commit();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}",
"@Test\r\n\tpublic void testCommit()\r\n\t\tthrows Exception\r\n\t{\r\n\t\ttry{\r\n\t\t\ttestAdminCon.begin();\r\n\t\t\ttestAdminCon.add(john, email, johnemail,dirgraph);\r\n\t\r\n\t\t\tassertTrue(\"Uncommitted update should be visible to own connection\",\r\n\t\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertFalse(\"Uncommitted update should only be visible to own connection\",\r\n\t\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertThat(testWriterCon.size(), is(equalTo(0L)));\r\n\t\r\n\t\t\ttestAdminCon.commit();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tlogger.debug(e.getMessage());\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(testAdminCon.isActive())\r\n\t\t\t\ttestAdminCon.rollback();\r\n\t\t}\r\n\t\tassertThat(testWriterCon.size(), is(equalTo(1L)));\r\n\t\tassertTrue(\"Repository should contain statement after commit\",\r\n\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\tassertTrue(\"Committed update will be visible to all connection\",\r\n\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t}",
"private synchronized boolean shouldCommit(Message m) {\n\n\t\tboolean flag = false;\n\n\t\ttry {\n\t\t\t// get the commit flag set by the FailoverQSender\n\t\t\tflag = m.getBooleanProperty(FailoverQSender.COMMIT_PROPERTY_NAME);\n\n//\t\t\tif (flag) {\n//\t\t\t\t// check if message property contains expected message counter\n//\t\t\t\tvalidate(m);\n//\t\t\t}\n\n\t\t} catch (JMSException jmse) {\n\t\t\tlog(jmse);\n\t\t}\n\n\t\treturn flag;\n\t}",
"boolean isAutoCommit();",
"@Override\n\tpublic int commit() {\n\t\treturn 0;\n\t}",
"public void commit() {\n tryCommit(true);\n }",
"public boolean isCommitOnFailure () {\n return commitOnFailure;\n }",
"public void commit() {\n\t\tcommitted = true;\n\t}",
"public boolean isCommitted() {\n\t\treturn false;\n\t}",
"public boolean commit() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.commit();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }",
"@Override\n\tfinal public boolean hasDoneChanges() {\n\t\treturn false;\n\t}",
"protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}",
"@Test\n public void testSelectingAllRowsWhenNotEmpty() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n List<CommitStructure> commits = mysqlDatabase.selectAllCommits();\n // Assert\n assertFalse(commits.isEmpty());\n assertEquals(commits.get(0).getCommitID() , commit.getCommitID());\n }",
"public boolean fullCommitNeeded ()\n {\n return true;\n }",
"@Test(timeout = 4000)\n public void test037() throws Throwable {\n boolean boolean0 = SQLUtil.isDML(\"org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit\");\n assertFalse(boolean0);\n }",
"public boolean isCommitted(long transId) {\n return commitList.isCommitted(transId);\n }",
"public void commit() {\n doCommit();\n }",
"@Override\n\tpublic boolean isCommitted() {\n\t\treturn false;\n\t}",
"@Test\n public void testClearPropertyCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final Configuration config = helper.setUpConfig();\n config.clearProperty(\"key1\");\n assertFalse(config.containsKey(\"key1\"));\n }",
"public void commit() {\n }",
"public boolean cleaningAck(Msg ack) {\n\t\tnotYetAck.offer(ack);\n\t\tString lastUser = ack.user;\n\t\tif(CommitDecision.size() == 1 && CommitDecision.containsKey(lastUser)) {\n\t\t\tSystem.out.println(\"last ack received\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean syncCommitPhase() {\n return syncCommitPhase;\n }",
"public boolean rollBack(){\n\t\tif (blocks.size() <= 1) return false;\n\t\tblocks.removeLast();\n\t\treturn true;\n\t}",
"boolean isFlush();",
"public static boolean testTableClear() {\r\n table.clear();\r\n if (table.size() != 0)\r\n return false;\r\n return true;\r\n }",
"public boolean isCommited() {\n return votedCommit;\n }",
"void commit() {\n }",
"@Test(timeout = 4000)\n public void test102() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"delete\");\n assertTrue(boolean0);\n assertNotNull(boolean0);\n }",
"@Override\n public void commit() {\n }",
"private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void commitChanges()\n {\n }",
"public boolean flushTransactions() {\n return true;\n }",
"@Override\n\tpublic void commit() {\n\n\t}",
"@Test\n public void testClearOnEmpty() {\n this.iPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.iPQ.isEmpty());\n this.sPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.sPQ.isEmpty());\n }",
"public boolean isUniversallyCommitted(long transId) {\n return commitList.isUniversallyCommitted(transId);\n }",
"public void commit(){\n \n }",
"public void commit();",
"@Override\n public boolean isCommitted() {\n return false;\n }",
"@Override\n public boolean callCheck() {\n return last == null;\n }",
"@Override\n\tpublic boolean requiresPostCommitHanding(EntityPersister arg0) {\n\t\treturn false;\n\t}",
"@Test\n public void testSelectingAllRowsWhenEmpty() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n // Act\n List<CommitStructure> commits = mysqlDatabase.selectAllCommits();\n // Assert\n assertTrue(commits.isEmpty());\n }",
"void commit();",
"void commit();",
"boolean hasClearkey();",
"@Override\r\n\tprotected boolean isAutoCommit() {\r\n\t\tif ((consistentRegionContext != null) || (transactionSize > 1)\r\n\t\t\t\t|| (commitInterval > 0) || (commitOnPunct)) {\r\n\t\t\t// Set automatic commit to false when transaction size is more than\r\n\t\t\t// 1 or it is a consistent region or commit on punct is enabled.\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean commit() {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"commit\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.executeUpdate();\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Test\n public void testCommitterWithDuplicatedCommit() throws Exception {\n describe(\"Call a task then job commit twice;\" +\n \"expect the second task commit to fail.\");\n JobData jobData = startJob(true);\n JobContext jContext = jobData.jContext;\n TaskAttemptContext tContext = jobData.tContext;\n ManifestCommitter committer = jobData.committer;\n\n // do commit\n describe(\"committing task\");\n committer.commitTask(tContext);\n\n // repeated commit while TA dir exists fine/idempotent\n committer.commitTask(tContext);\n\n describe(\"committing job\");\n committer.commitJob(jContext);\n describe(\"commit complete\\n\");\n\n describe(\"cleanup\");\n committer.cleanupJob(jContext);\n // validate output\n validateContent(outputDir, shouldExpectSuccessMarker(),\n committer.getJobUniqueId());\n\n // commit task to fail on retry as task attempt dir doesn't exist\n describe(\"Attempting commit of the same task after job commit -expecting failure\");\n expectFNFEonTaskCommit(committer, tContext);\n }",
"protected void pretendCommit() {\n \t\t\tif (fStart > -1) {\n \t\t\t\tfText= fDocumentUndoManager.fTextBuffer.toString();\n \t\t\t\tfPreservedText= fDocumentUndoManager.fPreservedTextBuffer.toString();\n \t\t\t}\n \t\t}",
"protected void post_commit_hook() { }",
"public boolean commit(Connection conn) throws SQLException {\n boolean status = true;\n try {\n // Start of system transaction\n conn.setAutoCommit(false);\n BookingMapper bm = new BookingMapper();\n status = status && bm.addNewBooking(newBooking, conn);\n status = status && bm.updateBooking(modifiedBooking, conn);\n status = status && bm.deleteBooking(deleteBooking, conn);\n if (!status) {\n\n throw new Exception(\"Business Transaction aborted\");\n }\n // System transaction ends with success\n conn.commit();\n } catch (Exception e) {\n System.out.println(\"fail in UnitOfWork - commit()\");\n System.err.println(e);\n // System transaction fails, rollsback\n conn.rollback();\n status = false;\n }\n return status;\n }",
"public void commit() {\n\t\tcommitted = true;\n\t\tbackUp();\n\t\t//back up the current board info at the meanwhile\n\t}",
"public void IsBeingCleaned() {\n\t\tSystem.out.println(\"Table already being cleaned.\");\n\t}",
"public boolean commit() {\n\t\tif (blocks.size() <= 1) return false;\n\n\t\tHashMap<String, Integer> pairMap = new HashMap<String, Integer>();\n\t\tHashMap<Integer, Integer> countMap = new HashMap<Integer, Integer>();\n\n\t\tListIterator<Transaction> iterator = blocks.listIterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tTransaction block = iterator.next();\n\t\t\tpairMap.putAll((Map<? extends String, ? extends Integer>) block.getNameValue());\n\t\t}\n\n\t\tfor (Entry<String, Integer> entry : pairMap.entrySet()) {\n\t\t\tInteger value = entry.getValue();\n\t\t\tif(countMap.get(value) == null){\n\t\t\t\tcountMap.put(value, new Integer(1));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcountMap.put(value, new Integer(countMap.get(value) + 1));\n\t\t\t}\n\t\t\tpairMap.put(entry.getKey(),entry.getValue());\n\t\t}\t\t\n\n\t\tblocks = new LinkedList<Transaction>();\n\t\tblocks.add(new Transaction(pairMap, countMap));\n\n\t\treturn true;\n\t}",
"void commit( boolean onSave );",
"public void testHasPendingChanges() throws RepositoryException{\n boolean result = true;\n \n sessionControl.expectAndReturn(session.hasPendingChanges(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertEquals(jt.hasPendingChanges(), result);\n }",
"public boolean hasChanges();",
"void commit() throws CommitException;",
"public void checkpoint(boolean hasUncommittedData) throws SQLException;",
"public void errorWhenCommitting();",
"@Override\n\tpublic void commit(boolean onSave) {\n\t\tsuper.commit(onSave);\n\t}",
"private void processCommit() throws HsqlException {\n tokenizer.isGetThis(Token.T_WORK);\n session.commit();\n }",
"public boolean hasDoneChanges(Class<?> actionType) {\n \t\tboolean ret = true;\n \t\tif (IDelete.class.equals(actionType)) {\n \t\t\tif (wrappedDeleteFeature != null) {\n \t\t\t\tret = wrappedDeleteFeature.hasDoneChanges();\n \t\t\t}\n \t\t} else if (IRemove.class.equals(actionType)) {\n \t\t\tif (wrappedRemoveFeature != null) {\n \t\t\t\tret = wrappedRemoveFeature.hasDoneChanges();\n \t\t\t}\n \t\t}\n \t\treturn ret;\n \t}",
"public boolean checkChangeSavedAction(){\n ((AccountDetailFragment) getFragment(AccountDetailFragment.class)).syncData();\n if(mLastSaveAccount != null){\n return mLastSaveAccount.equalAllFields(mCurrentAccount);\n }else{\n return true;\n }\n }",
"@java.lang.Override\n public boolean hasClearkey() {\n return clearkey_ != null;\n }",
"private <R> Boolean checkIfAlreadySucceeded(final CommitLoggedWork<R> work) {\n return work.hasRun() && transactNewReadOnly(() -> {\n CommitLogManifest manifest = work.getManifest();\n if (manifest == null) {\n // Work ran but no commit log was created. This might mean that the transaction did not\n // write anything to Datastore. We can safely retry because it only reads. (Although the\n // transaction might have written a task to a queue, we consider that safe to retry too\n // since we generally assume that tasks might be doubly executed.) Alternatively it\n // might mean that the transaction wrote to Datastore but turned off commit logs by\n // exclusively using save/deleteWithoutBackups() rather than save/delete(). Although we\n // have no hard proof that retrying is safe, we use these methods judiciously and it is\n // reasonable to assume that if the transaction really did succeed that the retry will\n // either be idempotent or will fail with a non-transient error.\n return false;\n }\n return Objects.equals(\n union(work.getMutations(), manifest),\n ImmutableSet.copyOf(load().ancestor(manifest)));\n });\n }",
"boolean hasDeleteBackUp();",
"public void onCommitLastReInitialization(ContainerId containerId) {}",
"public void testCommitOrRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n Logger logger = Logger.getLogger(\"testCommitOrRollback\");\n SqlDbManager.commitOrRollback(conn, logger);\n SqlDbManager.safeCloseConnection(conn);\n\n conn = null;\n try {\n SqlDbManager.commitOrRollback(conn, logger);\n } catch (NullPointerException sqle) {\n }\n }",
"private static boolean commitTransaction(int trans_id) {\n Transaction txn = null;\n if (transactions.containsKey(trans_id))\n txn = transactions.get(trans_id);\n else\n return false;\n\n if (txn != null)\n txn.commit();\n\n return true;\n }",
"@Test(timeout = 4000)\n public void test107() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"delete\");\n assertTrue(boolean0);\n assertNotNull(boolean0);\n }",
"public void flushWithOneoffCallback(AsyncCallback callback,\n\t\t\tboolean commitIfEmptyTransformQueue) {\n\t\tboolean doNotFlush = false;\n\t\tsynchronized (collectionsMonitor) {\n\t\t\tdoNotFlush = ((priorRequestsWithoutResponse.size() == 0\n\t\t\t\t\t|| !commitIfEmptyTransformQueue)\n\t\t\t\t\t&& transformQueue.size() == 0) || isPaused();\n\t\t}\n\t\tif (doNotFlush) {\n\t\t\tcallback.onSuccess(null);\n\t\t\treturn;\n\t\t}\n\t\ttopicStateChanged.add(new OneoffListenerWrapper(callback));\n\t\tflush();\n\t}",
"public void beforeCompletion()\n {\n \n boolean success = false;\n try\n {\n flush();\n // internalPreCommit() can lead to new updates performed by usercode \n // in the Synchronization.beforeCompletion() callback\n internalPreCommit();\n flush();\n success = true;\n }\n finally\n {\n if (!success) \n {\n // TODO Localise these messages\n NucleusLogger.TRANSACTION.error(\"Exception flushing work in JTA transaction. Mark for rollback\");\n try\n {\n jtaTx.setRollbackOnly();\n }\n catch (Exception e)\n {\n NucleusLogger.TRANSACTION.fatal(\n \"Cannot mark transaction for rollback after exception in beforeCompletion. PersistenceManager might be in inconsistent state\", e);\n }\n }\n }\n }",
"@Test(expected = RuntimeException.class)\r\n \tpublic void testCommit() throws ESException {\n \t\tlocalProject.commit();\r\n \t\tfail(\"Should not be able to commit an unshared Project!\");\r\n \t}",
"@Test\n public void testReset() {\n action.reset();\n assertFalse(action.isExecuted());\n }",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"private boolean transactionCanBeEnded(Transaction tx) {\n return tx != null && !(tx.getStatus() != null && tx.getStatus().isOneOf(TransactionStatus.COMMITTED, TransactionStatus.ROLLED_BACK));\n }",
"boolean hasLastAction();",
"public void reportNothingToUndoYet() {\r\n Assert.isTrue(isReceiving());\r\n setNothingToUndoReported(true);\r\n }",
"@Test(timeout = 4000)\n public void test47() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"delete\");\n assertNotNull(boolean0);\n assertTrue(boolean0);\n }",
"boolean hasTransactionChangesPending() {\n// System.out.println(transaction_mod_list);\n return transaction_mod_list.size() > 0;\n }",
"boolean commitEntryMemTableFlush() throws IOException;",
"boolean hasAck();",
"@Test\n public void testCommitLifecycle() throws Exception {\n describe(\"Full test of the expected lifecycle:\\n\" +\n \" start job, task, write, commit task, commit job.\\n\" +\n \"Verify:\\n\" +\n \"* no files are visible after task commit\\n\" +\n \"* the expected file is visible after job commit\\n\");\n JobData jobData = startJob(false);\n JobContext jContext = jobData.jContext;\n TaskAttemptContext tContext = jobData.tContext;\n ManifestCommitter committer = jobData.committer;\n assertCommitterFactoryIsManifestCommitter(tContext,\n tContext.getWorkingDirectory());\n validateTaskAttemptWorkingDirectory(committer, tContext);\n\n // write output\n describe(\"1. Writing output\");\n final Path textOutputPath = writeTextOutput(tContext);\n describe(\"Output written to %s\", textOutputPath);\n\n describe(\"2. Committing task\");\n Assertions.assertThat(committer.needsTaskCommit(tContext))\n .as(\"No files to commit were found by \" + committer)\n .isTrue();\n commitTask(committer, tContext);\n final TaskManifest taskManifest = requireNonNull(\n committer.getTaskAttemptCommittedManifest(), \"committerTaskManifest\");\n final String manifestJSON = taskManifest.toJson();\n LOG.info(\"Task manifest {}\", manifestJSON);\n int filesCreated = 1;\n Assertions.assertThat(taskManifest.getFilesToCommit())\n .describedAs(\"Files to commit in task manifest %s\", manifestJSON)\n .hasSize(filesCreated);\n Assertions.assertThat(taskManifest.getDestDirectories())\n .describedAs(\"Directories to create in task manifest %s\",\n manifestJSON)\n .isEmpty();\n\n // this is only task commit; there MUST be no part- files in the dest dir\n try {\n RemoteIterators.foreach(getFileSystem().listFiles(outputDir, false),\n (status) ->\n Assertions.assertThat(status.getPath().toString())\n .as(\"task committed file to dest :\" + status)\n .contains(\"part\"));\n } catch (FileNotFoundException ignored) {\n log().info(\"Outdir {} is not created by task commit phase \",\n outputDir);\n }\n\n describe(\"3. Committing job\");\n\n commitJob(committer, jContext);\n\n // validate output\n describe(\"4. Validating content\");\n String jobUniqueId = jobData.jobId();\n ManifestSuccessData successData = validateContent(outputDir,\n true,\n jobUniqueId);\n // look in the SUMMARY\n Assertions.assertThat(successData.getDiagnostics())\n .describedAs(\"Stage entry in SUCCESS\")\n .containsEntry(STAGE, OP_STAGE_JOB_COMMIT);\n IOStatisticsSnapshot jobStats = successData.getIOStatistics();\n // manifest\n verifyStatisticCounterValue(jobStats,\n OP_LOAD_MANIFEST, 1);\n FileStatus st = getFileSystem().getFileStatus(getPart0000(outputDir));\n verifyStatisticCounterValue(jobStats,\n COMMITTER_FILES_COMMITTED_COUNT, filesCreated);\n verifyStatisticCounterValue(jobStats,\n COMMITTER_BYTES_COMMITTED_COUNT, st.getLen());\n\n // now load and examine the job report.\n // this MUST contain all the stats of the summary, plus timings on\n // job commit itself\n\n ManifestSuccessData report = loadReport(jobUniqueId, true);\n Map<String, String> diag = report.getDiagnostics();\n Assertions.assertThat(diag)\n .describedAs(\"Stage entry in report\")\n .containsEntry(STAGE, OP_STAGE_JOB_COMMIT);\n IOStatisticsSnapshot reportStats = report.getIOStatistics();\n verifyStatisticCounterValue(reportStats,\n OP_LOAD_MANIFEST, 1);\n verifyStatisticCounterValue(reportStats,\n OP_STAGE_JOB_COMMIT, 1);\n verifyStatisticCounterValue(reportStats,\n COMMITTER_FILES_COMMITTED_COUNT, filesCreated);\n verifyStatisticCounterValue(reportStats,\n COMMITTER_BYTES_COMMITTED_COUNT, st.getLen());\n\n }",
"boolean undoLastCommand() throws Exception;",
"public abstract void commit();",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"@Test\n\tpublic void testAddRowCommit() {\n\t}",
"public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }",
"public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}",
"public void flush()\n{\n\t// no such operation required for mock persistence provider\n}",
"boolean isMarkedRollback() throws Exception;",
"public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }",
"boolean redoLastCommand() throws Exception;",
"public boolean isDirty();",
"public boolean isUndoPossible() {\n return (roundsHistory.size() > 1);\n }",
"public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }",
"public boolean finAcked() { return (flags & FIN_ACKED) != 0; }",
"public boolean commitCustomers(Connection conn) throws SQLException {\n boolean status = true;\n try {\n // Start of system transaction\n conn.setAutoCommit(false);\n BookingMapper bm = new BookingMapper();\n status = status && bm.addNewCustomer(newCustomers, conn);\n\n if (!status) {\n throw new Exception(\"Business Transaction aborted\");\n }\n // System transaction ends with success\n conn.commit();\n } catch (Exception e) {\n System.out.println(\"fail in UnitOfWork - commit()\");\n System.err.println(e);\n // System transaction fails, rollsback\n conn.rollback();\n status = false;\n }\n return status;\n }",
"@Test\n public void testAtMostOnceModeCommitsBeforeEmit() {\n KafkaSpoutConfig<String, String> spoutConfig = createKafkaSpoutConfigBuilder(mock(TopicFilter.class), mock(ManualPartitioner.class), -1)\n .setProcessingGuarantee(KafkaSpoutConfig.ProcessingGuarantee.AT_MOST_ONCE)\n .build();\n KafkaSpout<String, String> spout = SpoutWithMockedConsumerSetupHelper.setupSpout(spoutConfig, conf, contextMock, collectorMock, consumerMock, partition);\n\n when(consumerMock.poll(anyLong())).thenReturn(new ConsumerRecords<>(Collections.singletonMap(partition,\n SpoutWithMockedConsumerSetupHelper.createRecords(partition, 0, 1))));\n\n spout.nextTuple();\n\n //The spout should have emitted the tuple, and must have committed it before emit\n InOrder inOrder = inOrder(consumerMock, collectorMock);\n inOrder.verify(consumerMock).poll(anyLong());\n inOrder.verify(consumerMock).commitSync(commitCapture.capture());\n inOrder.verify(collectorMock).emit(eq(SingleTopicKafkaSpoutConfiguration.STREAM), anyList());\n\n CommitMetadataManager metadataManager = new CommitMetadataManager(contextMock, KafkaSpoutConfig.ProcessingGuarantee.AT_MOST_ONCE);\n Map<TopicPartition, OffsetAndMetadata> committedOffsets = commitCapture.getValue();\n assertThat(committedOffsets.get(partition).offset(), is(0L));\n assertThat(committedOffsets.get(partition).metadata(), is(metadataManager.getCommitMetadata()));\n }"
] |
[
"0.71724695",
"0.6401418",
"0.6300548",
"0.6212012",
"0.6118197",
"0.60951626",
"0.6082518",
"0.6077814",
"0.6034961",
"0.5991906",
"0.5931158",
"0.5925207",
"0.59242666",
"0.5918413",
"0.5915508",
"0.5888531",
"0.5845165",
"0.58186835",
"0.58174413",
"0.5782883",
"0.5776576",
"0.5761763",
"0.57188344",
"0.56775534",
"0.56623006",
"0.56546783",
"0.5650776",
"0.5640147",
"0.56093323",
"0.55857223",
"0.55686307",
"0.55616933",
"0.5560844",
"0.55607307",
"0.55514103",
"0.553074",
"0.5524696",
"0.5521289",
"0.5518978",
"0.55152845",
"0.5502547",
"0.54909474",
"0.548546",
"0.548546",
"0.546006",
"0.5458395",
"0.54503",
"0.54314226",
"0.54299515",
"0.54295033",
"0.54254866",
"0.54172254",
"0.54151",
"0.5403327",
"0.5402385",
"0.54014945",
"0.53981185",
"0.5386298",
"0.5383947",
"0.5361232",
"0.53600514",
"0.5359928",
"0.5359516",
"0.53590715",
"0.53584456",
"0.535607",
"0.53307915",
"0.5324742",
"0.53162324",
"0.5314051",
"0.5310531",
"0.530804",
"0.5305164",
"0.53018963",
"0.52960443",
"0.5291759",
"0.52907044",
"0.5289702",
"0.5288272",
"0.5265855",
"0.52648324",
"0.5245253",
"0.5243205",
"0.5236139",
"0.5232945",
"0.5222273",
"0.5216474",
"0.520764",
"0.5197928",
"0.51979136",
"0.5197212",
"0.51929057",
"0.518608",
"0.5184725",
"0.5181159",
"0.51738435",
"0.51718426",
"0.51709664",
"0.5160056",
"0.5159794"
] |
0.6170273
|
4
|
Tests handling of errors in clear().
|
@Test
public void testClearError() throws ConfigurationException {
setUpErrorConfig().clear();
checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR, null, null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void clearError() {\n\n }",
"public boolean clear() throws Exception;",
"@TestOnly\n void clear() throws IOException;",
"public void clear() throws Exception;",
"public void testClear() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.clear();\n assertEquals(this.stack.size(), 0, 0.01);\n Exception exception = null;\n try {\n this.empty.pop();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n }",
"@Test\n public void testClearTileNotOccupied()\n {\n try\n {\n Square s = new Square();\n s.clearTile();\n fail(\"Should not be able to remove a tile from a Square that is not occupied.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"Cannot clear a tile from a square that is not occupied.\", ex.getMessage());\n }\n }",
"public void clearErrors() {\n super.resetErrors();\n }",
"@Test\n public void testClearOnEmpty() {\n this.iPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.iPQ.isEmpty());\n this.sPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.sPQ.isEmpty());\n }",
"public void clear() {\n/* 41 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void clearExceptions();",
"public void clearErrorCount() {\n\t\terrorCount = 0;\n\t}",
"public void clearException ()\n {\n\n\tthis.exp = null;\n\tthis.badQuery = false;\n\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 }",
"@Test\r\n\tpublic void testClear() {\r\n\t\tlist.clear();\r\n\t\tAssert.assertNull(list.getFirst());\r\n\t\tAssert.assertEquals(0, list.size());\r\n\t}",
"@Test\n public void testClearingStats() {\n innerClear();\n innerClear();\n }",
"@Test\r\n public void clearEmpty() throws Exception {\r\n TreeSet<String> check = new TreeSet<>();\r\n check.clear();\r\n assertTrue(check.isEmpty());\r\n }",
"@Test\n public void testClearPropertyError() throws ConfigurationException {\n setUpErrorConfig().clearProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR_PROPERTY, \"key1\", null);\n }",
"public void testClear() {\r\n list.add(\"A\");\r\n list.clear();\r\n assertEquals(0, list.size());\r\n }",
"private void clear() {\n }",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertFalse(Setting.isNotUsed(\"test1\"));\n Setting s4 = Setting.getSetting(\"test1\");\n assertEquals(s3, s4);\n Setting.clear();\n assertTrue(Setting.isNotUsed(\"test1\"));\n\n }",
"@Test\r\n\tvoid testClear() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tlist.clear();\r\n\t\tif (list.getSize() != 0 || list.getHead() != null || list.getTail() != null) {\r\n\t\t\tfail(\"Clear failed\");\r\n\t\t}\r\n\t}",
"@Test\n public void testClear_EmptyMap() {\n configureAnswer();\n testObject.clear();\n\n verifyZeroInteractions(helper);\n }",
"public void clearErrors() {\n mErrors = new ArrayList();\n }",
"int clear();",
"void clear() throws PapooseException;",
"@Test\n public void clearForEmptyList() {\n myList.clear();\n\n //then\n assertTrue(myList.isEmpty());\n assertEquals(\"[]\", myList.toString());\n }",
"public void testReset() {\n\t}",
"@Test\n public void testClearTileOccupied()\n {\n try\n {\n Square s = new Square();\n s.setTile(Tile.A);\n s.clearTile();\n assertNull(s.getTile());\n assertFalse(s.isOccupied());\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when removing a tile from an occupeid square.\");\n }\n }",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n instance = new Stack();\n instance.push(30);\n instance.push(40);\n instance.push(50);\n instance.clear();\n assertTrue(instance.isEmpty());\n for (int i = 0; i < 10; i++) {\n instance.push(i);\n }\n instance.clear();\n assertTrue(instance.isEmpty());\n }",
"public void testRemoveFromEmpty() {\r\n list.add(\"dance\");\r\n list.add(0, \"safety\");\r\n list.clear();\r\n assertFalse(list.remove(\"safety\"));\r\n Exception exception;\r\n exception = null;\r\n try {\r\n list.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n\r\n DLList<String> emptyList = new DLList<String>();\r\n exception = null;\r\n try {\r\n emptyList.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n }",
"public void ensureEmptied() {\n }",
"private void clear() {\n\t\tSystem.out.println(\"Calling clear\");\n\t}",
"protected void tearDown() throws Exception {\r\n log = null;\r\n\r\n // close the print stream\r\n if (printStream != null) {\r\n printStream.close();\r\n }\r\n\r\n // clear file\r\n AccuracyTestsHelper.clearFile(FILE);\r\n }",
"@Test\n public void clearAll() {\n TestEvent[] currentEventList = te.getTypicalEvents();\n TestEvent[] filteredEventList = TestUtil.getFilteredTestEvents(currentEventList);\n TestTask[] currentTaskList = tt.getTypicalTasks();\n TestTask[] filteredTaskList = TestUtil.getFilteredTestTasks(currentTaskList);\n assertTrue(eventListPanel.isListMatching(filteredEventList));\n assertTrue(taskListPanel.isListMatching(filteredTaskList));\n assertClearAllCommandSuccess();\n\n //verify other commands can work after a clear command\n //verify add and delete event works after a clear command\n currentEventList = TestUtil.removeEventsFromList(currentEventList, currentEventList);\n TestEvent eventToAdd = te.workshop;\n currentEventList = TestUtil.addEventsToList(currentEventList, eventToAdd);\n filteredEventList = TestUtil.getFilteredTestEvents(currentEventList);\n commandBox.runCommand(eventToAdd.getAddCommand());\n assertTrue(eventListPanel.isListMatching(filteredEventList));\n commandBox.runCommand(\"delete ev 1\");\n assertEventListSize(0);\n\n //verify add and delete task works after a clear command\n currentTaskList = TestUtil.removeTasksFromList(currentTaskList, currentTaskList);\n TestTask taskToAdd = tt.homework;\n currentTaskList = TestUtil.addTasksToList(currentTaskList, taskToAdd);\n filteredTaskList = TestUtil.getFilteredTestTasks(currentTaskList);\n commandBox.runCommand(taskToAdd.getAddCommand());\n assertTrue(taskListPanel.isListMatching(filteredTaskList));\n commandBox.runCommand(\"delete ts 1\");\n assertTaskListSize(0);\n\n //invalid command\n commandBox.runCommand(\"clear all\");\n assertResultMessage(\"Invalid command format! \\n\" + ClearCommand.MESSAGE_USAGE);\n\n //verify clear command works when the list is empty\n assertClearAllCommandSuccess();\n }",
"void tryCleanup() throws Exception;",
"public void clearError() {\n _hasError = false;\n _highlight = HighlightMode.NORMAL;\n _error = NodeError.NONE;\n \n }",
"void clear() ;",
"public void clear() throws RemoteException, Error;",
"@Test(timeout = TIMEOUT)\n public void testIsEmptyAndClear() {\n assertTrue(list.isEmpty());\n\n // Should not be empty after adding elements\n list.addAtIndex(0, \"0a\"); // 0a\n list.addAtIndex(1, \"1a\"); // 0a, 1a\n list.addAtIndex(2, \"2a\"); // 0a, 1a, 2a\n list.addAtIndex(3, \"3a\"); // 0a, 1a, 2a, 3a\n list.addAtIndex(4, \"4a\"); // 0a, 1a, 2a, 3a, 4a\n assertFalse(list.isEmpty());\n\n // Clearing the list should empty the array and reset size\n list.clear();\n assertTrue(list.isEmpty());\n assertEquals(0, list.size());\n assertArrayEquals(new Object[ArrayList.INITIAL_CAPACITY],\n list.getBackingArray());\n }",
"public void reset() {\n this.errorNo = 0;\n this.errorStrings = \"\";\n }",
"public void reset() throws Exception;",
"void reset() {\n errors.clear();\n variables.clear();\n }",
"public abstract void clear();",
"public abstract void clear();",
"public abstract void clear();",
"public abstract void clear();",
"@Test\r\n public void clear() throws Exception {\r\n TreeSet<String> check = new TreeSet<>();\r\n check.addAll(sStr);\r\n check.clear();\r\n assertTrue(check.isEmpty());\r\n }",
"void\tclear();",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"boolean clear();",
"@Test\n public void testClear() {\n\tFileBackedBlockingQueue<String> queue = new FileBackedBlockingQueue.Builder<String>()\n\t\t.directory(TEST_DIR)\n\t\t.serializer(new StringSerializer())\n\t\t.segmentSize((TEST_STRING.length() + Segment.ENTRY_OVERHEAD_SIZE + 10) * 100)\n\t\t.build();\n\t// init\n\tfor (int i = 0; i < 2000; i++)\n\t queue.add(TEST_STRING + i);\n\n\tqueue.clear();\n\tAssert.assertEquals(queue.size(), 0);\n\tfor (int i = 0; i < 2000; i++)\n\t Assert.assertEquals(null, queue.poll());\n }",
"public void clear() {\n }",
"public void clear() {\n }",
"public void clearValidateExceptions();",
"protected void finalize() throws Throwable {\n clear();\n }",
"public void cleanErrorMessages() {\r\n\r\n }",
"private void clearErrorSource() {\n if ( _helper != null )\n _helper.clearErrorSource();\n }",
"public static void reset()\r\n {\r\n errorCount = 0;\r\n warningCount = 0;\r\n }",
"public void clear() {\n }",
"public static boolean testTableClear() {\r\n table.clear();\r\n if (table.size() != 0)\r\n return false;\r\n return true;\r\n }",
"public void clear() {\n doClear();\n }",
"@Test\r\n\tpublic void testIsEmpty() {\r\n\t\tAssert.assertFalse(list.isEmpty());\r\n\t\tlist.clear();\r\n\t\tAssert.assertTrue(list.isEmpty());\r\n\t}",
"@After\n public void tearDown() {\n try {\n this.c19.clear();\n }\n catch(NullPointerException e){\n log.info(\"NullPointerException caught\");\n }\n }",
"@Override\n public void clear()\n {\n }",
"protected abstract void cleanup() throws Throwable;",
"@Test\n public void testClear() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 1, 1, 1, 1, 1);\n instance.addAll(c);\n instance.clear();\n\n assertTrue(instance.isEmpty());\n\n }",
"@Override\n protected void clear() {\n\n }",
"@Test\n void reEmptyingContainerTest() {\n Container container = new Container();\n container.fillContainer(Resource.SHIELD);\n container.takeResource();\n container.fillContainer(Resource.COIN);\n container.takeResource();\n assertTrue(container.isEmpty());\n }",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();"
] |
[
"0.7289522",
"0.7236746",
"0.7221367",
"0.71937805",
"0.6769233",
"0.6563542",
"0.65144867",
"0.64977634",
"0.64687234",
"0.64682275",
"0.6465806",
"0.64513403",
"0.6450804",
"0.6435036",
"0.6428211",
"0.6332755",
"0.630566",
"0.6288966",
"0.6251211",
"0.623637",
"0.61652994",
"0.61527836",
"0.6133224",
"0.6117426",
"0.610187",
"0.60869133",
"0.6079702",
"0.60773116",
"0.6067492",
"0.60427344",
"0.60235614",
"0.5994787",
"0.59719276",
"0.5959635",
"0.592873",
"0.5920294",
"0.5916573",
"0.5912997",
"0.5912653",
"0.5912645",
"0.58911574",
"0.5884049",
"0.5870464",
"0.5870464",
"0.5870464",
"0.5870464",
"0.5864438",
"0.58593243",
"0.5836668",
"0.5828885",
"0.5824642",
"0.5824609",
"0.5824308",
"0.5824308",
"0.5823979",
"0.58196896",
"0.580652",
"0.5804146",
"0.58016914",
"0.57934487",
"0.5792471",
"0.5789253",
"0.5770407",
"0.57700837",
"0.5761765",
"0.5761063",
"0.5759295",
"0.5758551",
"0.57552946",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703",
"0.57514703"
] |
0.68910265
|
4
|
Tests whether a commit is performed after a property was cleared.
|
@Test
public void testClearPropertyCommit() throws ConfigurationException {
helper.setAutoCommit(false);
final Configuration config = helper.setUpConfig();
config.clearProperty("key1");
assertFalse(config.containsKey("key1"));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean shouldCommit();",
"@Override\n\tfinal public boolean hasDoneChanges() {\n\t\treturn false;\n\t}",
"private synchronized boolean shouldCommit(Message m) {\n\n\t\tboolean flag = false;\n\n\t\ttry {\n\t\t\t// get the commit flag set by the FailoverQSender\n\t\t\tflag = m.getBooleanProperty(FailoverQSender.COMMIT_PROPERTY_NAME);\n\n//\t\t\tif (flag) {\n//\t\t\t\t// check if message property contains expected message counter\n//\t\t\t\tvalidate(m);\n//\t\t\t}\n\n\t\t} catch (JMSException jmse) {\n\t\t\tlog(jmse);\n\t\t}\n\n\t\treturn flag;\n\t}",
"public boolean isCommitOnFailure () {\n return commitOnFailure;\n }",
"@Test\n public void testClearCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final Configuration config = helper.setUpConfig();\n config.clear();\n assertTrue(config.isEmpty());\n }",
"public boolean hasChanges();",
"public void commit() {\n\t\tcommitted = true;\n\t}",
"protected boolean attemptCommit() {\n \t\t\tpretendCommit();\n \t\t\tif (isValid()) {\n \t\t\t\tfDocumentUndoManager.commit();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}",
"@Override\n\tpublic boolean requiresPostCommitHanding(EntityPersister arg0) {\n\t\treturn false;\n\t}",
"@Override\r\n\tboolean hasUnsavedChanges();",
"public boolean isCommitted() {\n\t\treturn false;\n\t}",
"@Override\n public boolean callCheck() {\n return last == null;\n }",
"public boolean syncCommitPhase() {\n return syncCommitPhase;\n }",
"@Override\n\tpublic boolean isCommitted() {\n\t\treturn false;\n\t}",
"public boolean isDirty();",
"boolean isAutoCommit();",
"public boolean fullCommitNeeded ()\n {\n return true;\n }",
"public boolean isCommited() {\n return votedCommit;\n }",
"public void commit() {\n tryCommit(true);\n }",
"@java.lang.Override\n public boolean hasClearkey() {\n return clearkey_ != null;\n }",
"@Override\n\tpublic int commit() {\n\t\treturn 0;\n\t}",
"@Test\n public void testClearOnEmpty() {\n this.iPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.iPQ.isEmpty());\n this.sPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.sPQ.isEmpty());\n }",
"public boolean isSetLastCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(LASTCOL$12) != 0;\n }\n }",
"public void testSetCleanupOnPutFailure() {\n System.out.println(\"setCleanupOnPutFailure\");\n \n boolean cleanup = true;\n \n instance.setCleanupOnPutFailure(cleanup);\n \n assertEquals(cleanup, instance.getCleanupOnPutFailure());\n }",
"protected boolean keepCurrentPropertyKey() {\n return newPropertyKey == null;\n }",
"public boolean hasChanges() {\n return !(changed.isEmpty() && defunct.isEmpty());\n }",
"protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}",
"@Test\n public void testIsEmpty() throws Exception {\n DatabaseProperties prop = cveDb.getDatabaseProperties();\n assertNotNull(prop);\n //no exception means the call worked... whether or not it is empty depends on if the db is new\n //assertEquals(expResult, result);\n }",
"void clearIsChanged();",
"public void IsBeingCleaned() {\n\t\tSystem.out.println(\"Table already being cleaned.\");\n\t}",
"public boolean isSetAfter() {\n return this.after != null;\n }",
"boolean hasSetProperty();",
"public boolean isEmpty() {\n return unitChanges == null || unitChanges.isEmpty();\n }",
"public static boolean testTableClear() {\r\n table.clear();\r\n if (table.size() != 0)\r\n return false;\r\n return true;\r\n }",
"@Override\n public boolean isCommitted() {\n return false;\n }",
"public void testNonUpdatableBlobDoesNotFail() {\n if (!skip) {\n TimestampedEntity pc = new TimestampedEntity();\n EntityManager em = emf.createEntityManager();\n em.getTransaction().begin();\n em.persist(pc);\n em.getTransaction().commit();\n em.clear();\n\n pc.setNonUpdatableNonNullableDate(null);\n assertCommitSucceeds(pc, !NEW);\n }\n // else no-op\n }",
"public boolean isClear() {\n return this.isClear;\n }",
"@Test\n public void testClear() {\n DefaultPieDataset d = new DefaultPieDataset();\n d.addChangeListener(this);\n // no event is generated if the dataset is already empty\n d.clear();\n assertNull(this.lastEvent);\n d.setValue(\"A\", 1.0);\n assertEquals(1, d.getItemCount());\n this.lastEvent = null;\n d.clear();\n assertNotNull(this.lastEvent);\n assertEquals(0, d.getItemCount());\n }",
"private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}",
"@Override\n public boolean isDirty()\n {\n return false;\n }",
"@Override\n public boolean isDirty() {\n return !conflicts.isEmpty() || super.isDirty();\n }",
"@Override\n public boolean isDirty() {\n return false;\n }",
"@Override\r\n\tpublic boolean hasPendingChanges() throws RepositoryException {\n\t\treturn false;\r\n\t}",
"private boolean isDirty()\r\n {\r\n //\r\n return _modified;\r\n }",
"public boolean cleaningAck(Msg ack) {\n\t\tnotYetAck.offer(ack);\n\t\tString lastUser = ack.user;\n\t\tif(CommitDecision.size() == 1 && CommitDecision.containsKey(lastUser)) {\n\t\t\tSystem.out.println(\"last ack received\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isDirty() { return _dirty; }",
"@Test\n public void testClearPropertyError() throws ConfigurationException {\n setUpErrorConfig().clearProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR_PROPERTY, \"key1\", null);\n }",
"public boolean commit() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.commit();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }",
"public void testHasPendingChanges() throws RepositoryException{\n boolean result = true;\n \n sessionControl.expectAndReturn(session.hasPendingChanges(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertEquals(jt.hasPendingChanges(), result);\n }",
"protected synchronized void clearChanged() {\n changed = false;\n }",
"public void reportNothingToUndoYet() {\r\n Assert.isTrue(isReceiving());\r\n setNothingToUndoReported(true);\r\n }",
"public boolean checkChangeSavedAction(){\n ((AccountDetailFragment) getFragment(AccountDetailFragment.class)).syncData();\n if(mLastSaveAccount != null){\n return mLastSaveAccount.equalAllFields(mCurrentAccount);\n }else{\n return true;\n }\n }",
"public boolean isItDirty() {\n\t\treturn false;\n\t}",
"public void commitChanges()\n {\n }",
"public boolean isDirty() {\n return dirty;\n }",
"@Override\n\tpublic boolean hasChanged() {\n\t\treturn this.changed;\n\t}",
"@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }",
"boolean hasClearkey();",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToEmpty() {\r\n ListProperty listProperty = new SimpleListProperty(createObservableList(false));\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }",
"@Override\n\tpublic void clearChanged() {\n\t\tthis.changed = false;\n\t}",
"public void checkpoint(boolean hasUncommittedData) throws SQLException;",
"@Test\n public void isDirty_freshObject() {\n AlphaTransaction t = startTransaction();\n IntRef value = new IntRef(0);\n IntRefTranlocal tranlocal = (IntRefTranlocal) t.openForWrite(value);\n assertTrue(tranlocal.isDirty());\n }",
"@Test\r\n\tpublic void testCommit()\r\n\t\tthrows Exception\r\n\t{\r\n\t\ttry{\r\n\t\t\ttestAdminCon.begin();\r\n\t\t\ttestAdminCon.add(john, email, johnemail,dirgraph);\r\n\t\r\n\t\t\tassertTrue(\"Uncommitted update should be visible to own connection\",\r\n\t\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertFalse(\"Uncommitted update should only be visible to own connection\",\r\n\t\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertThat(testWriterCon.size(), is(equalTo(0L)));\r\n\t\r\n\t\t\ttestAdminCon.commit();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tlogger.debug(e.getMessage());\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(testAdminCon.isActive())\r\n\t\t\t\ttestAdminCon.rollback();\r\n\t\t}\r\n\t\tassertThat(testWriterCon.size(), is(equalTo(1L)));\r\n\t\tassertTrue(\"Repository should contain statement after commit\",\r\n\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\tassertTrue(\"Committed update will be visible to all connection\",\r\n\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t}",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"@Override\n\tpublic void commit(boolean onSave) {\n\t\tsuper.commit(onSave);\n\t}",
"@Override\n @SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void afterPropertiesSet() throws Exception {\n Assert.hasText(this.projectIdKey, \"projectIdKey must not be empty\");\n }",
"private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }",
"@Override\r\n\tprotected boolean isAutoCommit() {\r\n\t\tif ((consistentRegionContext != null) || (transactionSize > 1)\r\n\t\t\t\t|| (commitInterval > 0) || (commitOnPunct)) {\r\n\t\t\t// Set automatic commit to false when transaction size is more than\r\n\t\t\t// 1 or it is a consistent region or commit on punct is enabled.\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@AfterTransaction\r\n public void verifyFinalDatabaseState()\r\n {\n PersonDAO person = personFactory.getFullPersonById(newId);\r\n\r\n assertThat(person.__revision(), is(0L));\r\n assertThat(person.getId(), is(newId));\r\n assertThat(person.__identity(), is(\"person[\"+newId+\"]\"));\r\n assertThat(person.getName(), is(\"New Person\"));\r\n\r\n //verify that the parent was indeed updated and the name was not changed (due to immutability):\r\n assertThat(person.getParent(), is(instanceOf(PersonDAO.class)));\r\n assertThat(person.getParent(), is(notNullValue()));\r\n assertThat(person.getParent().getId(), is(notNullValue()));\r\n assertThat(person.getParent().getId(), is(5)); //the parent id\r\n assertThat(person.getParent().getName(), is(notNullValue()));\r\n assertThat(person.getParent().getName(), is(\"Person Five\")); //the parent name\r\n\r\n }",
"public void commit() {\n }",
"public boolean hasDoneChanges(Class<?> actionType) {\n \t\tboolean ret = true;\n \t\tif (IDelete.class.equals(actionType)) {\n \t\t\tif (wrappedDeleteFeature != null) {\n \t\t\t\tret = wrappedDeleteFeature.hasDoneChanges();\n \t\t\t}\n \t\t} else if (IRemove.class.equals(actionType)) {\n \t\t\tif (wrappedRemoveFeature != null) {\n \t\t\t\tret = wrappedRemoveFeature.hasDoneChanges();\n \t\t\t}\n \t\t}\n \t\treturn ret;\n \t}",
"@Transactional(onUnits = {})\n public void assertNoEntityHasBeenPersisted() {\n checkState(!storedEntities.isEmpty(), \"no entities to check\");\n for (TestEntity storedEntity : storedEntities) {\n assertNull(\"At least one entity which should NOT have been persisted was found in the DB. \" + tasks,\n emProvider.get()\n .find(TestEntity.class, storedEntity.getId()));\n }\n }",
"boolean isFlush();",
"public void commit() {\n doCommit();\n }",
"public boolean isSetClearingPartID() {\n return this.clearingPartID != null;\n }",
"public void flush()\n{\n\t// no such operation required for mock persistence provider\n}",
"protected void pretendCommit() {\n \t\t\tif (fStart > -1) {\n \t\t\t\tfText= fDocumentUndoManager.fTextBuffer.toString();\n \t\t\t\tfPreservedText= fDocumentUndoManager.fPreservedTextBuffer.toString();\n \t\t\t}\n \t\t}",
"@Test\n public void testReset() {\n action.reset();\n assertFalse(action.isExecuted());\n }",
"@Test\n public void testSelectingAllRowsWhenNotEmpty() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n List<CommitStructure> commits = mysqlDatabase.selectAllCommits();\n // Assert\n assertFalse(commits.isEmpty());\n assertEquals(commits.get(0).getCommitID() , commit.getCommitID());\n }",
"public void testClear() {\r\n list.add(\"A\");\r\n list.clear();\r\n assertEquals(0, list.size());\r\n }",
"public boolean hasProperty() {\n return !properties.isEmpty();\n }",
"public boolean clear() throws Exception;",
"public boolean hasChangeSetComputed() {\n File changelogFile = new File(getRootDir(), \"changelog.xml\");\n return changelogFile.exists();\n }",
"@Override\r\n\tpublic boolean insertLostProperty(ReportDto dto) {\n\t\treturn false;\r\n\t}",
"public boolean containsChanges() {\n return genClient.containsChanges();\n }",
"public boolean isSaveDone() {\n return this.doneSave;\n }",
"boolean getDirty() { return dirty; }",
"void commit( boolean onSave );",
"@Test\n @Transactional\n public void checkStateIsRequired() throws Exception {\n assertThat(transferEventRepository.findAll()).hasSize(0);\n // set the field null\n transferEvent.setState(null);\n\n // Create the TransferEvent, which fails.\n restTransferEventMockMvc.perform(post(\"/api/transferEvents\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(transferEvent)))\n .andExpect(status().isBadRequest());\n\n // Validate the database is still empty\n List<TransferEvent> transferEvents = transferEventRepository.findAll();\n assertThat(transferEvents).hasSize(0);\n }",
"public void clear()\n\t{\n\t\tif (m_changeSupport != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tm_changeSupport.fireVetoableChange(PROPERTYNAME, super.size(), 0);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println (\"CCache.clear - \" + e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//\tClear\n\t\tsuper.clear();\n\t\tif (m_expire != 0)\n\t\t{\n\t\t\tlong addMS = 60000L * m_expire;\n\t\t\tm_timeExp = System.currentTimeMillis() + addMS;\n\t\t}\n\t\tm_justReset = true;\n\t}",
"@Override\n public void commit() {\n }",
"@Test\n public void testIsMarkedForDeletion() {\n System.out.println(\"isMarkedForDeletion\");\n Comment instance = testComment;\n boolean expResult = false;\n boolean result = instance.isMarkedForDeletion();\n assertEquals(expResult, result);\n }",
"public boolean hasDeleteAfterCompletion()\r\n\t{\r\n\t\treturn isDeleteAfterCompletion();\r\n\t}",
"@Test\n public void testGetFinalCol() {\n setUp();\n assertEquals(1, move.getFinalCol());\n tearDown();\n }",
"public boolean isFlushed() {\n return flushed;\n }",
"@Test\n\tpublic void test_update_last_commit_time_change(){\n\t\ttest2.updateLastCommitTime(current);\n\t\tassertEquals(\"Last Commit Time shoud be updated\", current, test2.getLastCommitTime());\n\t}",
"public boolean isDefaultStringEmptyDirty(java.lang.CharSequence value) {\n\t throw new java.lang.UnsupportedOperationException(\"IsDirty is not supported on tombstones\");\n\t }",
"public boolean isUnsaved(Object obj) {\n return null;\r\n }",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }"
] |
[
"0.6361448",
"0.63105416",
"0.60800153",
"0.5937306",
"0.5816668",
"0.5710392",
"0.5706931",
"0.5698444",
"0.5670345",
"0.56665593",
"0.5664232",
"0.565753",
"0.5618603",
"0.56067514",
"0.5568932",
"0.5561371",
"0.55293274",
"0.5514403",
"0.54899997",
"0.5422007",
"0.54078543",
"0.53964645",
"0.5394686",
"0.53811246",
"0.536605",
"0.53568274",
"0.5344213",
"0.5337405",
"0.5326292",
"0.5308226",
"0.52929133",
"0.52870923",
"0.5275583",
"0.5269383",
"0.5261612",
"0.525321",
"0.5245291",
"0.52411795",
"0.5228273",
"0.5223963",
"0.5214417",
"0.5214297",
"0.5210729",
"0.5191508",
"0.5184493",
"0.51843727",
"0.51794505",
"0.51748335",
"0.51678044",
"0.5166676",
"0.51589084",
"0.51494676",
"0.5120494",
"0.51171744",
"0.511262",
"0.51084304",
"0.51043147",
"0.5102677",
"0.5100451",
"0.509442",
"0.50877124",
"0.50873595",
"0.50737864",
"0.50675046",
"0.5063365",
"0.5059181",
"0.50386244",
"0.5038183",
"0.5029311",
"0.5029072",
"0.5025126",
"0.5024749",
"0.5023586",
"0.5018175",
"0.5014202",
"0.5008531",
"0.50025225",
"0.5002471",
"0.4998824",
"0.4997907",
"0.4991813",
"0.49883273",
"0.49851704",
"0.49821135",
"0.49789026",
"0.49748704",
"0.49702817",
"0.49685147",
"0.49680635",
"0.49674687",
"0.49652216",
"0.49645156",
"0.49635887",
"0.4956831",
"0.49554044",
"0.4952599",
"0.49516356",
"0.49355525",
"0.493452",
"0.49340245"
] |
0.6675584
|
0
|
Tests handling of errors in clearProperty().
|
@Test
public void testClearPropertyError() throws ConfigurationException {
setUpErrorConfig().clearProperty("key1");
checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR_PROPERTY, "key1", null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void clearProperty(String key);",
"void clearProperty(String key);",
"@Test\n public void testClearError() throws ConfigurationException {\n setUpErrorConfig().clear();\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR, null, null);\n }",
"@Test\n public void testClearPropertyCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final Configuration config = helper.setUpConfig();\n config.clearProperty(\"key1\");\n assertFalse(config.containsKey(\"key1\"));\n }",
"Property clearAndAddValue(PropertyValue<?, ?> value);",
"@Test\n public void testClearTileNotOccupied()\n {\n try\n {\n Square s = new Square();\n s.clearTile();\n fail(\"Should not be able to remove a tile from a Square that is not occupied.\");\n }\n catch(Exception ex)\n {\n assertEquals(\"Cannot clear a tile from a square that is not occupied.\", ex.getMessage());\n }\n }",
"@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }",
"public void testAfterPropertiesSetException() throws Exception {\n\t\ttry {\n\t\t\texchangeTarget.afterPropertiesSet();\n\t\t\tfail(\"afterPropertiesSet should fail when interface, service, and uri are null.\");\n\t\t} catch (MessagingException me) {\n\t\t\t// test succeeds\n\t\t}\n\t}",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertFalse(Setting.isNotUsed(\"test1\"));\n Setting s4 = Setting.getSetting(\"test1\");\n assertEquals(s3, s4);\n Setting.clear();\n assertTrue(Setting.isNotUsed(\"test1\"));\n\n }",
"public boolean clear() throws Exception;",
"@Override\n public void clearError() {\n\n }",
"@Test\n public void clearPlatformSettings_noPlatformPropertiesDefined()\n throws Throwable {\n clearAllPlatformSettings();\n assertEquals(\"No platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n ldapSettingsMgmtSvc.clearPlatformSettings();\n return null;\n }\n });\n\n // platform settings must be left unchanged\n assertEquals(\"Still no platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n }",
"public void clear() throws Exception;",
"public void reset() {\r\n properties.clear();\r\n }",
"@Test\n public void testClearOnEmpty() {\n this.iPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.iPQ.isEmpty());\n this.sPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.sPQ.isEmpty());\n }",
"@Test\n public void testClearTileOccupied()\n {\n try\n {\n Square s = new Square();\n s.setTile(Tile.A);\n s.clearTile();\n assertNull(s.getTile());\n assertFalse(s.isOccupied());\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when removing a tile from an occupeid square.\");\n }\n }",
"@Test\n public void testIsEmpty() throws Exception {\n DatabaseProperties prop = cveDb.getDatabaseProperties();\n assertNotNull(prop);\n //no exception means the call worked... whether or not it is empty depends on if the db is new\n //assertEquals(expResult, result);\n }",
"@TestOnly\n void clear() throws IOException;",
"public void verifyNoMatching(AcProperty e)\n {\n }",
"@Test\r\n\tpublic void testClear() {\r\n\t\tlist.clear();\r\n\t\tAssert.assertNull(list.getFirst());\r\n\t\tAssert.assertEquals(0, list.size());\r\n\t}",
"void invalidateProperties() {\n super.invalidateProperties();\n token_ = null;\n }",
"private void endProperty()\n {\n\n }",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"@Test(expected = IllegalStateException.class)\n @org.junit.Ignore\n public void shouldNotBeAbleToCallPropertyIfThereAreMultipleProperties() {\n }",
"@Test\n public void testGetPropertyError() throws ConfigurationException {\n setUpErrorConfig().getProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"public void resetProperties ()\n\t{\n\t\tproperties.clear();\n\t}",
"public void testClear() {\r\n list.add(\"A\");\r\n list.clear();\r\n assertEquals(0, list.size());\r\n }",
"public void testChangePropertyHandler_null() {\n try {\n new ChangePropertyHandler(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n\n }",
"@Test\n public void testClearPropertyMultipleOtherConfig() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpMultiConfig();\n final DatabaseConfiguration config2 = helper.setUpMultiConfig(DatabaseConfiguration.class, CONFIG_NAME2);\n config2.addProperty(\"key1\", \"some test\");\n config.clearProperty(\"key1\");\n assertFalse(config.containsKey(\"key1\"));\n assertTrue(config2.containsKey(\"key1\"));\n }",
"public void ensureEmptied() {\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 }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }",
"private void internalRemoveProperty(DavPropertyName propertyName) throws DavException {\n if (!exists()) {\n throw new DavException(DavServletResponse.SC_NOT_FOUND);\n }\n if (JCR_MIXINNODETYPES.equals(propertyName)) {\n // remove all mixin nodetypes\n try {\n Node n = (Node)item;\n for (NodeType mixin : n.getMixinNodeTypes()) {\n n.removeMixin(mixin.getName());\n }\n } catch (RepositoryException e) {\n // NoSuchNodeTypeException, ConstraintViolationException should never occur...\n throw new JcrDavException(e);\n }\n } else {\n // all props except for mixin node types are read-only\n throw new DavException(DavServletResponse.SC_CONFLICT);\n }\n }",
"@Override\n @SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void afterPropertiesSet() throws Exception {\n Assert.hasText(this.projectIdKey, \"projectIdKey must not be empty\");\n }",
"@Override\n\tpublic void clear() throws ObjectStoreException {\n\t\t\n\t}",
"protected void tearDown() throws Exception {\n panel = null;\n propertiesPanel = null;\n\n TestHelper.clearConfigFile(TestHelper.NAMESPACE);\n }",
"public void verify()\n\t{\n\t\ttry\n\t\t{\n\t\t\tClass<?> propertyType = descriptor.getPropertyType();\n\t\t\t// delegate first to the provided type factory to create a type\n\t\t\t// instance\n\t\t\tObject propertyInstance = typeFactory.create(propertyType);\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tpropertyInstance = createInstanceOfType(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\t// Use Mockito to mock the property\n\t\t\t\t// TODO Use the Reflection API's Proxy instead\n\t\t\t\tpropertyInstance = mock(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tfail(\"Failed to create a mock object of type\" + propertyType.getName());\n\t\t\t}\n\n\t\t\t// Setup\n\t\t\tObject system = typeFactory.create(type);\n\t\t\tif (system == null)\n\t\t\t{\n\t\t\t\tsystem = type.newInstance();\n\t\t\t}\n\n\t\t\t// Execute\n\t\t\tMethod writeMethod = descriptor.getWriteMethod();\n\t\t\tMethod readMethod = descriptor.getReadMethod();\n\t\t\twriteMethod.invoke(system, propertyInstance);\n\t\t\tObject actualObject = readMethod.invoke(system, (Object[]) null);\n\n\t\t\t// Verify\n\t\t\tassertEquals(String.format(\"Verification failed for property %s\", descriptor.getName()), propertyInstance,\n\t\t\t\t\tactualObject);\n\t\t}\n\t\tcatch (IllegalAccessException illegalEx)\n\t\t{\n\t\t\tlogger.error(null, illegalEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InstantiationException instanceEx)\n\t\t{\n\t\t\tlogger.error(null, instanceEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InvocationTargetException invokeEx)\n\t\t{\n\t\t\tlogger.error(null, invokeEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t}",
"public void clear() {\n/* 41 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"void clear() throws PapooseException;",
"public void clearProperty( String name )\n {\n if ( config != null )\n {\n config.clearProperty( name );\n }\n else\n {\n LOG.warn( \"clearProperty invalid config, prop name [{}]\", name );\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }",
"public void testSetCleanupOnPutFailure() {\n System.out.println(\"setCleanupOnPutFailure\");\n \n boolean cleanup = true;\n \n instance.setCleanupOnPutFailure(cleanup);\n \n assertEquals(cleanup, instance.getCleanupOnPutFailure());\n }",
"@Test\n public void testClear_EmptyMap() {\n configureAnswer();\n testObject.clear();\n\n verifyZeroInteractions(helper);\n }",
"public void testdeassociate3() throws Exception {\r\n try {\r\n Address address = new Address();\r\n this.dao.deassociate(address, 1, true);\r\n fail(\"InvalidPropertyException expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"@Test\n public void resetOrganizationSettings_orgPropertiesDefined_noPlatformPropertiesDefined()\n throws Throwable {\n clearAllPlatformSettings();\n assertEquals(\"No platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n ldapSettingsMgmtSvc.resetOrganizationSettings(customerOrgId);\n return null;\n }\n });\n\n assertEquals(\"No organization-specific properties must be defined\", 0,\n getOrganizationSettings(customerOrg, null).size());\n // platform settings must be left unchanged\n assertEquals(\"Still no platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n }",
"public void clearException ()\n {\n\n\tthis.exp = null;\n\tthis.badQuery = false;\n\n }",
"public void clearErrors() {\n super.resetErrors();\n }",
"public void test_clearTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n\n instance.clearTypedValues();\n assertFalse(\"The TypedValue is not removed properly.\", instance.containsTypedValue(typedValue));\n }",
"protected void tearDown() throws Exception {\r\n validator = null;\r\n bundle = null;\r\n TestHelper.clearConfiguration();\r\n }",
"public Builder clearProperty() {\n\n property_ = getDefaultInstance().getProperty();\n onChanged();\n return this;\n }",
"@Test\n public void testClearingStats() {\n innerClear();\n innerClear();\n }",
"public final void clearPropertyCache()\n {\n this.cache.clear();\n }",
"@Test\r\n public void clearEmpty() throws Exception {\r\n TreeSet<String> check = new TreeSet<>();\r\n check.clear();\r\n assertTrue(check.isEmpty());\r\n }",
"@Test\n public void testResetField() {\n System.out.println(\"resetField\"); \n instance.resetField();\n \n }",
"@Test\n public void clearForEmptyList() {\n myList.clear();\n\n //then\n assertTrue(myList.isEmpty());\n assertEquals(\"[]\", myList.toString());\n }",
"@Test\r\n\tvoid testClear() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tlist.clear();\r\n\t\tif (list.getSize() != 0 || list.getHead() != null || list.getTail() != null) {\r\n\t\t\tfail(\"Clear failed\");\r\n\t\t}\r\n\t}",
"public void testReset() {\n\t}",
"public void testClear() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.clear();\n assertEquals(this.stack.size(), 0, 0.01);\n Exception exception = null;\n try {\n this.empty.pop();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n }",
"@Test\n public void testInvokeResetMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n CSJmxStats.invokeResetMethod();\n //invoke countValue operation and validate the value to be 0\n Object result = CSJmxStats.invokeCountValueMethod();\n assertEquals(0L, result);\n //repopulate\n populateData();\n }",
"@Override\n public void afterPropertiesSet() {\n validateProperties();\n }",
"private void clearValidationError() {\n\n\t\tdataValid = false;\n\n\t\tvalidationErrorPending = false;\n\t\tvalidationErrorParent = null;\n\t\tvalidationErrorTitle = null;\n\t\tvalidationErrorMessage = null;\n\t\tvalidationErrorType = 0;\n\t}",
"@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}",
"@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 }",
"public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }",
"@Test(timeout = 4000)\n public void test033() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void clearValidateExceptions();",
"private void assertRemoved()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttestController.getContentTypeDefinitionVOWithId(testDefinition.getId());\n\t\t\tfail(\"The ContentTypeDefinition was not deleted\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{ /* expected */ }\n\t}",
"@Test(expected = NullReferenceException.class)\n public void setProductIsNull() throws NullReferenceException {\n cartItem.setProduct(null);\n }",
"public Builder clear() {\n/* 1706 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n public void testAddPropertyError() throws ConfigurationException {\n setUpErrorConfig().addProperty(\"key1\", \"value\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.ADD_PROPERTY, \"key1\", \"value\");\n }",
"@Test(timeout = 4000)\n public void test158() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.del();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"protected void finalize() throws Throwable {\n clear();\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setAllLevelsVisible(true);\n homeEnvironment0.getSkyColor();\n homeEnvironment0.getSubpartSizeUnderLight();\n HomeEnvironment homeEnvironment1 = homeEnvironment0.clone();\n homeEnvironment0.setAllLevelsVisible(true);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n homeEnvironment1.setVideoCameraPath((List<Camera>) null);\n AspectRatio aspectRatio0 = AspectRatio.RATIO_4_3;\n homeEnvironment0.setVideoAspectRatio(aspectRatio0);\n homeEnvironment1.setSkyColor(13427964);\n HomeEnvironment.Property.values();\n homeEnvironment0.setAllLevelsVisible(true);\n homeEnvironment0.setAllLevelsVisible(true);\n // Undeclared exception!\n try { \n HomeEnvironment.Property.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"@Test\n public void testDelete() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n Assert.assertTrue(map.delete(\"key-1\", 0));\n \n Assert.assertNull(map.get(\"key-1\"));\n \n Assert.assertFalse(map.delete(\"no-set-key\", 0));\n }",
"Ack deleteProperty(ProjectEntity entity, String propertyTypeName);",
"public void noPropertyies() {\n\t\tproperties.clear();\r\n\t\tfor(int i = 0; i<groups.length; i++){\r\n\t\t\tgroups[i].clear();\r\n\t\t}\r\n\t}",
"@Test\n void emptyingTest(){\n Container container = new Container();\n container.fillContainer(Resource.SHIELD);\n container.takeResource();\n assertTrue(container.isEmpty());\n }",
"@Test\n public void shouldReturnBadRequestIfPutMethodIsMadeAndNeitherNewValueNorExpectedValueAreSetInSetValue() {\n SetValue emptyValue = new SetValue();\n assertThatResourceMethodReturnsStatus(\n client().resource(REQUEST_URI).type(MediaType.APPLICATION_JSON_TYPE).entity(emptyValue),\n \"PUT\",\n ClientResponse.Status.BAD_REQUEST);\n }",
"@Test\n public void shouldDeleteIncompleteRestores()\n throws Exception\n {\n givenStoreHasFileOfSize(PNFSID, 17);\n\n // and given the replica meta data indicates the file was\n // being restored from tape and has is supposed to have a\n // different file size,\n StorageInfo info = createStorageInfo(20);\n givenMetaDataStoreHas(PNFSID, FROM_STORE, info);\n\n // when reading the meta data record\n MetaDataRecord record = _consistentStore.get(PNFSID);\n\n // then nothing is returned\n assertThat(record, is(nullValue()));\n\n // and the replica is deleted\n assertThat(_metaDataStore.get(PNFSID), is(nullValue()));\n assertThat(_fileStore.get(PNFSID).exists(), is(false));\n\n // and the location is cleared\n verify(_pnfs).clearCacheLocation(PNFSID);\n\n // and the name space entry is not touched\n verify(_pnfs, never())\n .setFileAttributes(eq(PNFSID), Mockito.any(FileAttributes.class));\n }",
"private void doClear() throws Exception{\n q0 = 1.0f; q1 = 0.0f; q2 = 0.0f; q3 = 0.0f;\n //tvStep.setText(String.format(\"%s\", stepNo));\n }",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.enumeration((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel0.translateValue(\"wheel.util.DynamicSelectModel\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.PropertyAccessor\", e);\n }\n }",
"@Test\n public void testIsEmpty() {\n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n \n instance.empty();\n \n assertTrue(instance.isEmpty());\n \n instance.addItem(p1);\n instance.addItem(p2);\n \n try {\n instance.removeItem(p1);\n instance.removeItem(p2);\n } catch (ProductNotFoundException ex) {\n Logger.getLogger(ShoppingCartTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n assertTrue(instance.isEmpty());\n \n \n }",
"@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }",
"@Test\n void reEmptyingContainerTest() {\n Container container = new Container();\n container.fillContainer(Resource.SHIELD);\n container.takeResource();\n container.fillContainer(Resource.COIN);\n container.takeResource();\n assertTrue(container.isEmpty());\n }",
"public void testRemoveFromEmpty() {\r\n list.add(\"dance\");\r\n list.add(0, \"safety\");\r\n list.clear();\r\n assertFalse(list.remove(\"safety\"));\r\n Exception exception;\r\n exception = null;\r\n try {\r\n list.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n\r\n DLList<String> emptyList = new DLList<String>();\r\n exception = null;\r\n try {\r\n emptyList.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n }",
"@Test\n public void shouldDeleteBrokenReplicasWithNoNameSpaceEntry()\n throws Exception\n {\n givenStoreHasFileOfSize(PNFSID, 17);\n\n // and given the name space entry does not exist\n given(_pnfs.getFileAttributes(eq(PNFSID), Mockito.anySet()))\n .willThrow(new FileNotFoundCacheException(\"No such file\"));\n\n // when reading the meta data record\n MetaDataRecord record = _consistentStore.get(PNFSID);\n\n // then recovery is attempted\n verify(_pnfs).getFileAttributes(eq(PNFSID), Mockito.anySet());\n\n // but nothing is returned\n assertThat(record, is(nullValue()));\n\n // and the replica is deleted\n assertThat(_metaDataStore.get(PNFSID), is(nullValue()));\n assertThat(_fileStore.get(PNFSID).exists(), is(false));\n\n // and the location is cleared\n verify(_pnfs).clearCacheLocation(PNFSID);\n\n // and the name space entry is not touched\n verify(_pnfs, never())\n .setFileAttributes(eq(PNFSID), Mockito.any(FileAttributes.class));\n }",
"@Override\r\n\tpublic void resetPropertyValue(Object id) {\n\r\n\t}",
"@Test\n public void testClean() {\n setReferenceDate_openPopup_check();\n assertCalendarInputEqualsTo(\"Jan 1, 2012 12:00\");\n\n // invoke clean key\n keyboard.sendKeys(CLEAN_KEY);\n // apply\n Graphene.guardAjax(keyboard).sendKeys(Keys.ENTER);\n // the input should be empty\n assertCalendarInputEqualsTo(\"\");\n }",
"public void testInverseClearIsEmpty()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkClearMap(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }",
"PropertiesTask removeProperty( String key );",
"@Test\n public void testGetProperties() throws DatabaseException {\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n Properties result = instance.getProperties();\n assertTrue(result.size() > 0);\n cveDb.close();\n }",
"@Test\n public void testClearWay() {\n quest.clearWay();\n }",
"@Test(timeout = 4000)\n public void test252() throws Throwable {\n Form form0 = new Form(\"Ta[^\\\"\");\n // Undeclared exception!\n try { \n form0.reset(\"]1\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n instance = new Stack();\n instance.push(30);\n instance.push(40);\n instance.push(50);\n instance.clear();\n assertTrue(instance.isEmpty());\n for (int i = 0; i < 10; i++) {\n instance.push(i);\n }\n instance.clear();\n assertTrue(instance.isEmpty());\n }",
"@Test(expected = LackOfPropertyException.class)\n\tpublic void testLackOfPropertyException() throws Exception {\n\t\tnew MovieGraphFactory().parse(\"Vertex=<FrankDarabont,Director,<M>>\");\n\t}",
"public void clearExceptions();",
"@Test\n public void resetOrganizationSettings_noOrgPropertiesDefined_noPlatformPropertiesDefined()\n throws Throwable {\n clearAllPlatformSettings();\n assertEquals(\"No platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n\n assertEquals(\"No organization-specific properties must be defined\", 0,\n getOrganizationSettings(customerOrg2, null).size());\n\n container.login(customerOrgAdmin2.getKey(),\n UserRoleType.ORGANIZATION_ADMIN.toString());\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n ldapSettingsMgmtSvc.resetOrganizationSettings(customerOrgId2);\n return null;\n }\n });\n\n assertEquals(\n \"Still no organization-specific properties must be defined\", 0,\n getOrganizationSettings(customerOrg2, null).size());\n // platform settings must be left unchanged\n assertEquals(\"Still no platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n }",
"@Test(timeout = 4000)\n public void test17() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n DynamicSelectModel dynamicSelectModel1 = dynamicSelectModel0.enumeration((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel1.getOptionCount();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.PropertyAccessor\", e);\n }\n }",
"@Test\n @org.junit.Ignore\n public void shouldBeAbleToCallPropertyIfThereIsASingleProperty() {\n }",
"@Test\r\n\tvoid emptyString() {\r\n\t\tassertEquals(\"\",removingAObj.removingA(\"\"));\r\n\t}"
] |
[
"0.6339408",
"0.6339408",
"0.62982666",
"0.62373495",
"0.6114926",
"0.60443044",
"0.6008131",
"0.5990557",
"0.5973028",
"0.5945777",
"0.59419936",
"0.58416915",
"0.5834552",
"0.58245313",
"0.58066803",
"0.5792414",
"0.5779445",
"0.5769871",
"0.5734327",
"0.57329285",
"0.57311934",
"0.56995004",
"0.5675577",
"0.5664913",
"0.56328154",
"0.5618517",
"0.56088966",
"0.56046754",
"0.55991304",
"0.5597436",
"0.556625",
"0.5559392",
"0.5556003",
"0.5545856",
"0.55271345",
"0.55249685",
"0.5524957",
"0.5520564",
"0.55113125",
"0.5494864",
"0.5490745",
"0.5482427",
"0.5473849",
"0.5470281",
"0.54624516",
"0.54479325",
"0.5411488",
"0.540646",
"0.54060966",
"0.5395668",
"0.5389838",
"0.5385453",
"0.53852236",
"0.53580433",
"0.53479636",
"0.53372705",
"0.53367186",
"0.5336109",
"0.5333958",
"0.53174657",
"0.53104365",
"0.5307723",
"0.5292251",
"0.5285013",
"0.52646315",
"0.52642363",
"0.5258809",
"0.5258225",
"0.52553195",
"0.5253468",
"0.5252576",
"0.524985",
"0.5240679",
"0.5237359",
"0.52208066",
"0.5216888",
"0.5214492",
"0.5211525",
"0.5203742",
"0.5202476",
"0.5200474",
"0.5197626",
"0.51945645",
"0.5193777",
"0.51913977",
"0.5190263",
"0.5189503",
"0.5180465",
"0.51775",
"0.5176693",
"0.51755685",
"0.51726544",
"0.5171025",
"0.5169574",
"0.5167219",
"0.5158999",
"0.51560193",
"0.51480633",
"0.51466507",
"0.5146142"
] |
0.7800742
|
0
|
Tests that another configuration is not affected when clearing properties.
|
@Test
public void testClearPropertyMultipleOtherConfig() throws ConfigurationException {
final DatabaseConfiguration config = helper.setUpMultiConfig();
final DatabaseConfiguration config2 = helper.setUpMultiConfig(DatabaseConfiguration.class, CONFIG_NAME2);
config2.addProperty("key1", "some test");
config.clearProperty("key1");
assertFalse(config.containsKey("key1"));
assertTrue(config2.containsKey("key1"));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testClearPropertyCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final Configuration config = helper.setUpConfig();\n config.clearProperty(\"key1\");\n assertFalse(config.containsKey(\"key1\"));\n }",
"@Test\n public void testClearPropertyError() throws ConfigurationException {\n setUpErrorConfig().clearProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR_PROPERTY, \"key1\", null);\n }",
"@Test\n public void testClearCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final Configuration config = helper.setUpConfig();\n config.clear();\n assertTrue(config.isEmpty());\n }",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertFalse(Setting.isNotUsed(\"test1\"));\n Setting s4 = Setting.getSetting(\"test1\");\n assertEquals(s3, s4);\n Setting.clear();\n assertTrue(Setting.isNotUsed(\"test1\"));\n\n }",
"@Test\n public void testClearError() throws ConfigurationException {\n setUpErrorConfig().clear();\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR, null, null);\n }",
"@Test\n public void configurationChanged_ClearsCurrentAdapters() {\n mDiffRequestManagerHolder.configurationChanged();\n\n // Then\n then(mDiffRequestManager).should().swapAdapter(null);\n }",
"@Test\n public void resetOrganizationSettings_noOrgPropertiesDefined_noPlatformPropertiesDefined()\n throws Throwable {\n clearAllPlatformSettings();\n assertEquals(\"No platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n\n assertEquals(\"No organization-specific properties must be defined\", 0,\n getOrganizationSettings(customerOrg2, null).size());\n\n container.login(customerOrgAdmin2.getKey(),\n UserRoleType.ORGANIZATION_ADMIN.toString());\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n ldapSettingsMgmtSvc.resetOrganizationSettings(customerOrgId2);\n return null;\n }\n });\n\n assertEquals(\n \"Still no organization-specific properties must be defined\", 0,\n getOrganizationSettings(customerOrg2, null).size());\n // platform settings must be left unchanged\n assertEquals(\"Still no platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n }",
"@Test\n public void clearPlatformSettings_noPlatformPropertiesDefined()\n throws Throwable {\n clearAllPlatformSettings();\n assertEquals(\"No platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n ldapSettingsMgmtSvc.clearPlatformSettings();\n return null;\n }\n });\n\n // platform settings must be left unchanged\n assertEquals(\"Still no platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n }",
"public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }",
"@Test\n public void resetOrganizationSettings_orgPropertiesDefined_noPlatformPropertiesDefined()\n throws Throwable {\n clearAllPlatformSettings();\n assertEquals(\"No platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n ldapSettingsMgmtSvc.resetOrganizationSettings(customerOrgId);\n return null;\n }\n });\n\n assertEquals(\"No organization-specific properties must be defined\", 0,\n getOrganizationSettings(customerOrg, null).size());\n // platform settings must be left unchanged\n assertEquals(\"Still no platform properties must be defined\", 0,\n getPlatformSettings(null).size());\n }",
"public static void resetConfiguration() {\n\t\t// Ignore\n\t}",
"@Test\n public void testRemoveSetting() {\n System.out.println(\"removeSetting\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n Setting[] settings = {s, s1, s2, s3};\n for (Setting ss : settings) {\n assertFalse(Setting.isNotUsed(ss.getName()));\n }\n Setting.removeSetting(s3);\n for (int i = 0; i < 3; i++) {\n assertFalse(Setting.isNotUsed(settings[i].getName()));\n }\n assertTrue(Setting.isNotUsed(s3.getName()));\n for (Setting ss : settings) {\n Setting.removeSetting(ss);\n }\n for (Setting ss : settings) {\n assertTrue(Setting.isNotUsed(ss.getName()));\n }\n }",
"public Configuration clearPropertiesEntries() {\n this.properties = null;\n return this;\n }",
"@Test\n public void testCombinedConfigurationNoAdditional()\n throws ConfigurationException\n {\n factory.setFile(TEST_FILE);\n CombinedConfiguration cc = factory.getConfiguration(true);\n assertNull(\"Additional configuration was found\", cc\n .getConfiguration(DefaultConfigurationBuilder.ADDITIONAL_NAME));\n }",
"protected void tearDown() {\n config = null;\n }",
"public void testConfigFileOverriding() throws Exception {\n\t\tConfig config = Config.load(new ConfigRef(\"com/tabulaw/config/config.properties\"), new ConfigRef(\"com/tabulaw/config/config2.properties\"));\n\t\tString pv = config.getString(\"props.simple.propB\");\n\t\tassert \"val2-overridden\".equals(pv);\n\t}",
"public void clearForTesting() {\n mPreferences.edit().clear().apply();\n }",
"@Test\n public void testTargetChangedNoModification() throws Exception {\n when(mockDifferentiator.isNew(Mockito.any(ByteBuffer.class))).thenReturn(false);\n final ConfigurationChangeNotifier testNotifier = mock(ConfigurationChangeNotifier.class);\n\n // In this case the WatchKey is null because there were no events found\n establishMockEnvironmentForChangeTests(null);\n\n verify(testNotifier, Mockito.never()).notifyListeners(Mockito.any(ByteBuffer.class));\n }",
"protected void checkConfiguration() {\n \tsuper.checkConfiguration();\n \t\n if (this.customizations == null) {\n this.customizations = new ArrayList<String>();\n }\n if (this.options == null) {\n this.options = new HashMap<String, String>();\n }\n if (this.sourceDirectories == null) {\n \tthis.sourceDirectories = new ArrayList<String>();\n \tthis.sourceDirectories.add(DEFAULT_SOURCE_DIRECTORY);\n }\n }",
"public void testSettingValues() throws Exception {\n this.l2Manager.dsoL2Config().garbageCollection().setInterval(142);\n ((Client) this.l1Manager.commonL1Config().getBean()).setLogs(\"whatever\");\n ((Server) this.l2Manager.commonl2Config().getBean()).setData(\"marph\");\n\n // A sub-config object\n this.l1Manager.dsoL1Config().instrumentationLoggingOptions().setLogDistributedMethods(true);\n\n this.factory.activateConfigurationChange();\n\n System.err.println(this.l2Manager.systemConfig());\n System.err.println(this.l1Manager.dsoL1Config());\n\n assertEquals(142, this.l2Manager.dsoL2Config().garbageCollection().getInterval());\n assertEquals(new File(\"whatever\"), this.l1Manager.commonL1Config().logsPath());\n assertEquals(new File(\"marph\"), this.l2Manager.commonl2Config().dataPath());\n assertTrue(this.l1Manager.dsoL1Config().instrumentationLoggingOptions().logDistributedMethods());\n }",
"@Test\n public void clearSettingsBeforeMerge() throws Exception {\n Settings settings1 = new Settings();\n settings1.set(Settings.HEADER_TABLE_SIZE, 10000);\n settings1.set(Settings.INITIAL_WINDOW_SIZE, 20000);\n settings1.set(Settings.MAX_FRAME_SIZE, 30000);\n peer.sendFrame().settings(settings1);\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n // fake a settings frame with clear flag set.\n Settings settings2 = new Settings();\n settings2.set(Settings.MAX_CONCURRENT_STREAMS, 60000);\n connection.readerRunnable.settings(true, settings2);\n synchronized(connection) {\n Assert.assertEquals((-1), connection.peerSettings.getHeaderTableSize());\n Assert.assertEquals(Settings.DEFAULT_INITIAL_WINDOW_SIZE, connection.peerSettings.getInitialWindowSize());\n Assert.assertEquals((-1), connection.peerSettings.getMaxFrameSize((-1)));\n Assert.assertEquals(60000, connection.peerSettings.getMaxConcurrentStreams((-1)));\n }\n }",
"@Test\n public void deprovision_empty_confighost() {\n tester = new DynamicProvisioningTester();\n tester.addCfghost(1, true);\n tester.addCfghost(2, true);\n Node cfghost3 = tester.addCfghost(3, false);\n\n // cfghost3 is active before maintain, and active after:\n assertCfghost3IsActive(tester);\n tester.maintain();\n assertCfghost3IsActive(tester);\n\n // But when cfghost3 is moved to parked w/wantToDeprovision, maintain() should deprovision\n Node parkedWithWantToDeprovision = cfghost3.withWantToRetire(true, // wantToRetire\n true, // wantToDeprovision\n Agent.operator,\n Instant.now());\n tester.nodeRepository.database().writeTo(Node.State.parked, parkedWithWantToDeprovision, Agent.operator, Optional.empty());\n tester.maintain();\n assertCfghost3IsDeprovisioned(tester);\n }",
"private void tryClearConfiguration(InheritedComponentInstanceSelDTO dto) {\n\t\tmask(pmsMessages.mskClearOverrideConfiguration());\n\t\tAsyncCallback<InheritedComponentInstanceSelDTO> callback = new AsyncCallback<InheritedComponentInstanceSelDTO>() {\n\n\t\t\tpublic void onSuccess(InheritedComponentInstanceSelDTO result) {\n\t\t\t\tunmask();\n\t\t\t\tutil.info(pmsMessages.msgSuccessClearConfiguration());\n\t\t\t}\n\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tunmask();\n\t\t\t\tutil.error(pmsMessages.msgErrorClearConfiguration());\n\t\t\t}\n\t\t};\n\t\tcomponentsService.clearConfiguration(portalNameDto.getId(), dto.getComponent().getId(), callback);\n\t}",
"PropertiesTask removeAllProperties();",
"public void verifyConfig() {\r\n if (getSpecialHandlingManager() == null)\r\n throw new ConfigurationException(\"The required property 'specialHandlingManager' is missing.\");\r\n }",
"public void resetProperties ()\n\t{\n\t\tproperties.clear();\n\t}",
"@Test(expected = ReliabilityCalculatorConfigurationException.class)\r\n public void testConfigureWithEmptyLoggerName() throws Exception {\r\n config.setPropertyValue(\"loggerName\", \" \\t \\n \");\r\n\r\n instance.configure(config);\r\n }",
"public void reset() {\r\n properties.clear();\r\n }",
"@Test\n public void testSetExclusiveProperties() {\n final DefaultScopeDescription metadata = new DefaultScopeDescription();\n metadata.setDataset(\"A dataset\");\n assertEquals(\"dataset\", \"A dataset\", metadata.getDataset());\n loggings.assertNoUnexpectedLog();\n\n metadata.setOther(\"Other value\");\n assertEquals(\"other\", \"Other value\", metadata.getOther());\n assertNull(\"dataset\", metadata.getDataset());\n loggings.assertNextLogContains(\"dataset\", \"other\");\n loggings.assertNoUnexpectedLog();\n\n metadata.setDataset(null); // Expected to be a no-op.\n assertEquals(\"other\", \"Other value\", metadata.getOther());\n assertNull(\"dataset\", metadata.getDataset());\n\n metadata.setOther(null);\n assertNull(\"other\", metadata.getOther());\n assertNull(\"dataset\", metadata.getDataset());\n }",
"@Test\n public void testWithConfig() {\n Topic.Builder builder = new Topic.Builder(\"my_topic\", 1);\n builder.withConfig(singletonMap(\"foo\", \"bar\"));\n Topic topic = builder.build();\n assertEquals(new TopicName(\"my_topic\"), topic.getTopicName());\n assertEquals(1, topic.getNumPartitions());\n assertEquals(-1, topic.getNumReplicas());\n assertEquals(singletonMap(\"foo\", \"bar\"), topic.getConfig());\n\n // Check we take a copy of the config\n Map<String, String> config = new HashMap<>();\n config.put(\"foo\", \"bar\");\n builder = new Topic.Builder(\"my_topic\", 1);\n builder.withConfig(config);\n config.clear();\n topic = builder.build();\n assertEquals(new TopicName(\"my_topic\"), topic.getTopicName());\n assertEquals(1, topic.getNumPartitions());\n assertEquals(-1, topic.getNumReplicas());;\n assertEquals(singletonMap(\"foo\", \"bar\"), topic.getConfig());\n }",
"public void clearProxyConfig();",
"public void verifyConfig() {\r\n if (getAnchorColumnName() == null)\r\n throw new ConfigurationException(\"The required property 'anchorColumnName' is missing.\");\r\n }",
"public void clearProperty( String name )\n {\n if ( config != null )\n {\n config.clearProperty( name );\n }\n else\n {\n LOG.warn( \"clearProperty invalid config, prop name [{}]\", name );\n }\n }",
"public void noPropertyies() {\n\t\tproperties.clear();\r\n\t\tfor(int i = 0; i<groups.length; i++){\r\n\t\t\tgroups[i].clear();\r\n\t\t}\r\n\t}",
"@Test\n public void resolveSslProperties() throws Exception {\n properties.setProperty(ConfigurationProperties.SSL_KEYSTORE, \"keystore\");\n properties = connectCommand.resolveSslProperties(gfsh, false, null, null);\n assertThat(properties).hasSize(9);\n properties.clear();\n properties.setProperty(ConfigurationProperties.SSL_KEYSTORE, \"keystore\");\n properties = connectCommand.resolveSslProperties(gfsh, false, null, null, \"keystore2\", \"password\");\n assertThat(properties).hasSize(9);\n assertThat(properties.getProperty(ConfigurationProperties.SSL_KEYSTORE)).isEqualTo(\"keystore2\");\n assertThat(properties.getProperty(ConfigurationProperties.SSL_KEYSTORE_PASSWORD)).isEqualTo(\"password\");\n }",
"@Test\n public void testCombinedConfigurationAttributes() throws ConfigurationException\n {\n factory.setFile(INIT_FILE);\n CombinedConfiguration cc = (CombinedConfiguration) factory\n .getConfiguration();\n checkCombinedConfigAttrs(cc);\n CombinedConfiguration cc2 = (CombinedConfiguration) cc\n .getConfiguration(DefaultConfigurationBuilder.ADDITIONAL_NAME);\n checkCombinedConfigAttrs(cc2);\n }",
"public void verifyConfig() {\r\n if (getProcessErpManager() == null)\r\n throw new ConfigurationException(\"The required property 'processErpManager' is missing.\");\r\n if (getAnchorColumnName() == null)\r\n throw new ConfigurationException(\"The required property 'anchorColumnName' is missing.\");\r\n }",
"private boolean isConfPropEqual(String prop, Configuration conf1,\n Configuration conf2) {\n if( (conf1 == null || conf2 == null) && (conf1 != conf2) ){\n return false;\n }\n String str1 = conf1.get(prop);\n String str2 = conf2.get(prop);\n if( (str1 == null || str2 == null) && (str1 != str2) ){\n return false;\n }\n return str1.equals(str2);\n }",
"protected Properties configure0() {\n return EMPTY_PROPERTIES;\n }",
"@Test\n\tpublic void testLoadExistingConfig() throws IOException\n\t{\n\t\tFileWriter out = new FileWriter(outfile, true);\n\t\tout.write(\"\\nTestEntry=TestData\");\n\t\tout.close();\n\t\t\n\t\t// Creating it again forces it to read the modified config\n\t\tproperties = new Configuration(outfile);\n\t\t\n\t\tassertEquals(\"TestData\", properties.get(\"TestEntry\"));\n\t}",
"@Test\n public void testClearOnEmpty() {\n this.iPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.iPQ.isEmpty());\n this.sPQ.clear();\n assertTrue(\"Clear on empty is empty: \",\n this.sPQ.isEmpty());\n }",
"@Test\n\tpublic void test_invalid_config_10() throws Exception {\n\t\t\n\t\tConfig.configFile = \"test_files/config_files/invalid10.json\";\n\t\tString missingData = \"expected to be an object\";\n\t\tConfig.clearConfig();\n\t\t\n\t\t\n\t\tconstructObjectsExpectFailure(missingData);\n\t}",
"@Before\n public void setUp() {\n baseConfig.setString(\"cache\", \"changes\", \"memoryLimit\", \"0\");\n baseConfig.setString(\"cache\", \"projects\", \"memoryLimit\", \"0\");\n }",
"@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }",
"void systemPropertiesCleared(String consumer);",
"protected void setUp() {\n //Clear all namespace in the ConfigManager\n TestHelper.resetConfig();\n }",
"private boolean compareProperties (Properties props1 , Properties props2){\n boolean propertiesAreEqual = true;\n Properties props2Clone = (Properties)props2.clone();\n Iterator<Object> itProps1Name = props1.keySet().iterator();\n while (propertiesAreEqual && itProps1Name.hasNext()){\n String propertyName = (String)itProps1Name.next();\n if (props2Clone.containsKey(propertyName)){\n propertiesAreEqual = props1.getProperty(propertyName).trim()\n .equals(props2Clone.getProperty(propertyName).trim());\n // Remove checked property from props2Clone properties\n props2Clone.remove(propertyName);\n }\n else{\n propertiesAreEqual = false;\n }\n }\n // If there are left properties in CSS file then files are not equal\n if (props2Clone.size() > 0){\n propertiesAreEqual = false;\n }\n \n return propertiesAreEqual;\n \n }",
"@Test public void testGetPropertiesDefaultBehavior() {\r\n Properties baseProperties = new Properties();\r\n Properties developmentModeProperties = new Properties();\r\n\r\n GaeAwarePropertySource source = new GaeAwarePropertySource();\r\n source.setProductionModeProperties(baseProperties);\r\n source.setDevelopmentModeProperties(developmentModeProperties);\r\n\r\n // local testing will always be non-production).\r\n assertSame(developmentModeProperties, source.getProperties());\r\n }",
"protected void tearDown() throws Exception {\n TestHelper.clearConfig();\n super.tearDown();\n }",
"public void testConfigRoundtrip() throws Exception {\n DownstreamProjectGridBuilder gridBuilder = new DownstreamProjectGridBuilder(\"something\");\n BuildPipelineView v = new BuildPipelineView(\"foo\",\"Title\", gridBuilder, \"5\", true, null);\n jenkins.addView(v);\n configRoundtrip(v);\n BuildPipelineView av = (BuildPipelineView)jenkins.getView(v.getViewName());\n assertSame(v,av);\n// assertNotSame(gridBuilder,(DownstreamProjectGridBuilder)av.getGridBuilder()); //FIXME: this is making the test fail, and it's not obvious why this should be true\n }",
"void overwriteConfiguration(Map<String, Object> config);",
"public Builder clearConfig() {\n if (configBuilder_ == null) {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n onChanged();\n }\n } else {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n }\n configBuilder_.clear();\n }\n return this;\n }",
"public void resetConfiguration() {\n\t\tthis.hierarchy.resetConfiguration();\n\t}",
"void unsetComplianceCheckResult();",
"@Test\n public void testNoConfig() throws Exception {\n String command = getCommandAllEnvVariables();\n FreeStyleBuild build = runBatchCommand(command);\n \n // Assert that the console log contains the output we expect\n checkBinUnset(build);\n checkMetricsUnset(build);\n }",
"private void checkProperties(Configuration compositeConfiguration)\n {\n assertTrue(\"Make sure we have loaded our key\", compositeConfiguration\n .getBoolean(\"test.boolean\"));\n assertEquals(\"I'm complex!\", compositeConfiguration\n .getProperty(\"element2.subelement.subsubelement\"));\n assertEquals(\"property in the XMLPropertiesConfiguration\", \"value1\",\n compositeConfiguration.getProperty(\"key1\"));\n }",
"@Test\n public void testComplexInitialization() throws ConfigurationException\n {\n factory.setFile(INIT_FILE);\n CombinedConfiguration cc = (CombinedConfiguration) factory\n .getConfiguration();\n\n assertEquals(\"System property not found\", \"test.xml\",\n cc.getString(\"test_file_xml\"));\n PropertiesConfiguration c1 = (PropertiesConfiguration) cc\n .getConfiguration(1);\n assertTrue(\n \"Reloading strategy was not set\",\n c1.getReloadingStrategy() instanceof FileChangedReloadingStrategy);\n assertEquals(\"Refresh delay was not set\", 10000,\n ((FileChangedReloadingStrategy) c1.getReloadingStrategy())\n .getRefreshDelay());\n\n Configuration xmlConf = cc.getConfiguration(\"xml\");\n assertEquals(\"Property not found\", \"I'm complex!\", xmlConf\n .getString(\"element2/subelement/subsubelement\"));\n assertEquals(\"List index not found\", \"two\", xmlConf\n .getString(\"list[0]/item[1]\"));\n assertEquals(\"Property in combiner file not found\", \"yellow\", cc\n .getString(\"/gui/selcolor\"));\n\n assertTrue(\"Delimiter flag was not set\", cc\n .isDelimiterParsingDisabled());\n assertTrue(\"Expression engine was not set\",\n cc.getExpressionEngine() instanceof XPathExpressionEngine);\n }",
"@Test(expectedExceptions = IllegalArgumentException.class)\n public void testPutConfigNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.putConfig(null).execute();\n }",
"@Test(expected = IllegalArgumentException.class)\r\n public void testConfigureWithNullConfig() throws Exception {\r\n instance.configure(null);\r\n }",
"@Test\n public void testLoadDifferentSources() throws ConfigurationException\n {\n factory.setFile(MULTI_FILE);\n Configuration config = factory.getConfiguration();\n assertFalse(config.isEmpty());\n assertTrue(config instanceof CombinedConfiguration);\n CombinedConfiguration cc = (CombinedConfiguration) config;\n assertEquals(\"Wrong number of configurations\", 1, cc\n .getNumberOfConfigurations());\n\n assertNotNull(config\n .getProperty(\"tables.table(0).fields.field(2).name\"));\n assertNotNull(config.getProperty(\"element2.subelement.subsubelement\"));\n assertEquals(\"value\", config.getProperty(\"element3\"));\n assertEquals(\"foo\", config.getProperty(\"element3[@name]\"));\n assertNotNull(config.getProperty(\"mail.account.user\"));\n\n // test JNDIConfiguration\n assertNotNull(config.getProperty(\"test.onlyinjndi\"));\n assertTrue(config.getBoolean(\"test.onlyinjndi\"));\n\n Configuration subset = config.subset(\"test\");\n assertNotNull(subset.getProperty(\"onlyinjndi\"));\n assertTrue(subset.getBoolean(\"onlyinjndi\"));\n\n // test SystemConfiguration\n assertNotNull(config.getProperty(\"java.version\"));\n assertEquals(System.getProperty(\"java.version\"), config\n .getString(\"java.version\"));\n\n // test INIConfiguration\n assertEquals(\"Property from ini file not found\", \"yes\",\n config.getString(\"testini.loaded\"));\n\n // test environment configuration\n EnvironmentConfiguration envConf = new EnvironmentConfiguration();\n for (Iterator<String> it = envConf.getKeys(); it.hasNext();)\n {\n String key = it.next();\n String combinedKey = \"env.\" + key;\n assertEquals(\"Wrong value for env property \" + key,\n envConf.getString(key), config.getString(combinedKey));\n }\n }",
"public void testNotApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), false);\n\t\tthis.replayMockObjects();\n\t\tassertFalse(\"Should not be able to apply if one change can not be applied\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}",
"void acknowledgeConfiguration() {\n // First ensure that both players have their correct color\n Player player0 = game.getPlayers().get(0);\n Player player1 = game.getPlayers().get(1);\n player1.setStone(player0.getStone() == Stone.BLACK ? 2 : 1);\n\n leader.acknowledgeConfig();\n opponent.acknowledgeConfig();\n }",
"@Test\n public void testIsNotUsed() {\n System.out.println(\"isNotUsed\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertTrue(Setting.isNotUsed(\"junk\"));\n assertFalse(Setting.isNotUsed(s.getName()));\n\n }",
"public void fixConfigValues() {\n String cooldown = getConfig().getString(\"Config.Default-Cooldown\");\n if (cooldown.equalsIgnoreCase(\"-1\")) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Cooldown\", \"0\");\n }\n double price = getConfig().getDouble(\"Config.Default-Price\");\n if (price == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Price\", 0);\n }\n int limit = getConfig().getInt(\"Config.Default-Kit-Limit\");\n if (limit == -1) {\n logger.warning(String.format(\"[%s] Patching Config Value\", new Object[]{getDescription().getName()}));\n getConfig().set(\"Config.Default-Kit-Limit\", 0);\n }\n }",
"@Test\n public void testIsEmptyError() throws ConfigurationException {\n assertTrue(setUpErrorConfig().isEmpty());\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, null, null);\n }",
"@Test\n public void mainTests(){\n assertTrue(property1.getPropertyId() == id1);\n if(property1.getPropertyId() != id1) {\n property2.setPropertyId(id1);\n }\n else {\n assertTrue(property2.getPropertyId() == id2);\n }\n //Getter works Correct for ID\n }",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"@Override\n\tpublic boolean hasConfigChanged() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void checkPropertyConfiguration() throws IOException, CustomizedException {\n\t\tString conf=PropertyReader.getProperty(\"configuration\");\n\t\tString\tfileName=\"\";\n\t\tconfiguration=conf;\n\t\tif(conf == null || conf.isEmpty())\n\t\t{\n\t\t\tthrow new CustomizedException(\"Configuration property is not set,it must be set to 1 or 2 \");\n\n\t\t}\n\t\tif(conf.equals(\"1\"))\n\t\t{\n\t\t\titeration=1;\n\t\t\tfileName=PropertyReader.getProperty(\"anagram_file\");\n\t\t\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be set to sample against the key anagramFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(conf.equals(\"2\"))\n\t\t{\n\t\t\titeration=Integer.parseInt(PropertyReader.getProperty(\"load_testing_iteration\"));\n\t\t\tfileName=PropertyReader.getProperty(\"large_file\");\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be bigFile against the key largeFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tthis.fileName=fileName;\n\t\t\n\t}",
"void invalidateProperties() {\n super.invalidateProperties();\n token_ = null;\n }",
"@Test\n public void testLoadOptionalNonFileBased() throws ConfigurationException\n {\n CombinedConfiguration config = prepareOptionalTest(\"configuration\", false);\n assertTrue(\"Configuration not empty\", config.isEmpty());\n assertEquals(\"Wrong number of configurations\", 0, config\n .getNumberOfConfigurations());\n }",
"public void clearProperties(){\n\t\tcbDataType.setSelectedIndex(DT_INDEX_NONE);\n\t\tchkVisible.setValue(false);\n\t\tchkEnabled.setValue(false);\n\t\tchkLocked.setValue(false);\n\t\tchkRequired.setValue(false);\n\t\ttxtDefaultValue.setText(null);\n\t\ttxtHelpText.setText(null);\n\t\ttxtText.setText(null);\n\t\ttxtBinding.setText(null);\n\t\ttxtDescTemplate.setText(null);\n\t\ttxtCalculation.setText(null);\n\t\ttxtFormKey.setText(null);\n\t}",
"@Test\n\tpublic void test_invalid_config_2() throws Exception {\n\t\tConfig.configFile = \"test_files/config_files/invalid2.json\";\n\t\tString missingData = \"STUDENT_KEYWORD_COLUMNS\";\n\t\t\n\t\tconstructObjectsExpectFailure(missingData);\n\t}",
"@Override\n\tpublic void setConfigChanged(boolean changed) {\n\t\t//do nothing\n\t}",
"void clearProperty(String key);",
"void clearProperty(String key);",
"protected void tearDown() throws Exception {\r\n super.tearDown();\r\n clearFiles();\r\n StressTestHelper.clearConfig();\r\n }",
"@Test\n public void testURL() throws IOException {\n final File file = new File(\"target/unclosed.properties\");\n try (final FileWriter writer = new FileWriter(file)) {\n writer.write(\"log4j.rootLogger=debug\");\n }\n final URL url = file.toURI().toURL();\n PropertyConfigurator.configure(url);\n assertTrue(file.delete());\n assertFalse(file.exists());\n }",
"boolean hasOldConfig();",
"@Test\n @org.junit.Ignore\n public void shouldBeAbleToCallPropertyIfThereIsASingleProperty() {\n }",
"@Test\n\tvoid thirdPartyConfigurationPropertiesRegisteredWithImportAsConfigurationPropertiesAndNoPrefix() {\n\t\tthis.contextRunner.withUserConfiguration(ImportThirdParty1PropertiesConfiguration.class)\n\t\t\t\t.withPropertyValues(\"name=test\").run((context) -> {\n\t\t\t\t\tThirdParty1Properties properties = context.getBean(ThirdParty1Properties.class);\n\t\t\t\t\tassertThat(properties.getName()).isEqualTo(\"test\");\n\t\t\t\t\tassertThat(properties.getCounter()).isEqualTo(42);\n\t\t\t\t});\n\t}",
"@Test\n public void testConfigurationBuilderProviderOverrideProperties()\n throws Exception\n {\n factory.addProperty(\"override.configuration[@fileName]\",\n TEST_FILE.getAbsolutePath());\n factory.addProperty(\"override.configuration[@basePath]\", \"base\");\n factory.addProperty(\"override.configuration[@throwExceptionOnMissing]\",\n \"false\");\n factory.setBasePath(\"conf\");\n factory.setThrowExceptionOnMissing(true);\n DefaultConfigurationBuilder.ConfigurationDeclaration decl =\n new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory,\n factory.configurationAt(\"override.configuration\"));\n DefaultConfigurationBuilder.ConfigurationBuilderProvider provider =\n new DefaultConfigurationBuilder.ConfigurationBuilderProvider();\n DefaultConfigurationBuilder child =\n (DefaultConfigurationBuilder) provider.createBean(\n provider.fetchConfigurationClass(), decl, null);\n assertEquals(\"Wrong base path\", \"base\", child.getBasePath());\n assertFalse(\"Wrong exception flag\", child.isThrowExceptionOnMissing());\n }",
"@Test\n public void test11RelationshipConfigIdName() throws Exception\n {\n Collection<PSConfig> configs = ms_cms.findAllConfigs();\n assertTrue(configs.size() == 2);\n \n List<PSRelationshipConfigName> aaList = \n ms_cms.findRelationshipConfigNames(\"%Assembly%\");\n for (PSRelationshipConfigName cfg : aaList)\n {\n assertTrue(cfg.getName().contains(\"Assembly\"));\n }\n \n PSConfig cfg = ms_cms.findConfig(\n PSConfigurationFactory.RELATIONSHIPS_CFG);\n assertNotNull(cfg);\n \n PSRelationshipConfigSet relConfigSet = loadRelationshipConfigSet();\n\n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n // Negative testing various operations on SYSTEM relationship configs\n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n \n // modify an id of a system relationship config\n PSRelationshipConfig sysConfig = relConfigSet\n .getConfig(PSRelationshipConfig.TYPE_FOLDER_CONTENT);\n try\n {\n sysConfig.setId(100);\n // above line should fail, cannot set id to an object which already\n // has an assigned id.\n assertTrue(false); \n }\n catch (Exception e) {}\n sysConfig.resetId();\n sysConfig.setId(100); \n try\n {\n saveRelationshipConfigSet(relConfigSet, cfg);\n // above line should fail, id of a system config cannot be modified.\n assertTrue(false); \n }\n catch (Exception e) {}\n\n try\n {\n relConfigSet.deleteConfig(sysConfig.getName());\n // above line should fail, cannot delete a system config.\n assertTrue(false); \n }\n catch (Exception e) {}\n \n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n // Negative testing various operations on USER relationship configs\n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n \n relConfigSet = loadRelationshipConfigSet();\n PSRelationshipConfig userConfig = (PSRelationshipConfig) relConfigSet\n .getConfig(PSRelationshipConfig.TYPE_FOLDER_CONTENT).clone();\n userConfig.setType(PSRelationshipConfig.RS_TYPE_USER);\n userConfig.resetId();\n relConfigSet.add(userConfig);\n try\n {\n saveRelationshipConfigSet(relConfigSet, cfg);\n // above line should fail, cannot save with a user config with DUP-NAME.\n assertTrue(false); \n }\n catch (Exception e) {}\n\n userConfig.setName(\"myFolderContent\");\n userConfig.resetId();\n userConfig.setId(\n PSRelationshipConfig.SysConfigEnum.FOLDER_CONTENT.getId());\n try\n {\n saveRelationshipConfigSet(relConfigSet, cfg);\n // above line should fail, cannot save with a user config with DUP-ID.\n assertTrue(false); \n }\n catch (Exception e) {}\n \n }",
"Property clearAndAddValue(PropertyValue<?, ?> value);",
"@Test\n public void getPlatformSettings_noPropertiesDefined() throws Throwable {\n clearAllPlatformSettings();\n\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n Properties platformSettings = ldapSettingsMgmtSvc\n .getPlatformSettings();\n assertTrue(\"Empty properties (not null) expected\",\n platformSettings.keySet().isEmpty());\n return null;\n }\n });\n }",
"@Test\n public void testExecuteValidSettingsExistingSettings() throws Exception {\n final EntityService entityService = mock(EntityService.class);\n final GlobalSettingsInfo existingSettings = new GlobalSettingsInfo()\n .setViews(new GlobalViewsSettings()\n .setDefaultView(UrnUtils.getUrn(\"urn:li:dataHubView:custom\")));\n configureEntityServiceMock(entityService, existingSettings);\n\n final IngestDefaultGlobalSettingsStep step = new IngestDefaultGlobalSettingsStep(\n entityService,\n \"./boot/test_global_settings_valid.json\");\n\n step.execute();\n\n // Verify that the merge preserves the user settings.\n GlobalSettingsInfo expectedResult = new GlobalSettingsInfo();\n expectedResult.setViews(new GlobalViewsSettings().setDefaultView(UrnUtils.getUrn(\"urn:li:dataHubView:custom\")));\n\n Mockito.verify(entityService, times(1)).ingestProposal(\n Mockito.eq(buildUpdateSettingsProposal(expectedResult)),\n Mockito.any(AuditStamp.class),\n Mockito.eq(false)\n );\n }",
"private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the properties of newConfig_ into config_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n }",
"public void verifyNoMatching(AcProperty e)\n {\n }",
"@Test(expected = IllegalStateException.class)\n @org.junit.Ignore\n public void shouldNotBeAbleToCallPropertyIfThereAreMultipleProperties() {\n }",
"public void ensureEmptied() {\n }",
"private static void clearConfiguration(ConfigurationSection section) {\n for (String key : section.getKeys(false))\n section.set(key, null);\n }",
"void overwrite(IConfiguration configuration);",
"@Test\n public void equalsOtherTest() {\n Device device2 = new Device(deviceID, \"other\");\n assertNotEquals(device, device2);\n }",
"@Test\n public void testRemoveConfigurationProvider()\n {\n assertNull(\"Removing unknown provider\", factory\n .removeConfigurationProvider(\"test\"));\n assertNull(\"Removing provider for null tag\", factory\n .removeConfigurationProvider(null));\n DefaultConfigurationBuilder.ConfigurationProvider provider = new DefaultConfigurationBuilder.ConfigurationProvider();\n factory.addConfigurationProvider(\"test\", provider);\n assertSame(\"Failed to remove provider\", provider, factory\n .removeConfigurationProvider(\"test\"));\n assertNull(\"Provider still registered\", factory.providerForTag(\"test\"));\n }",
"public static void clear() {\r\n for (ConfigurationOption<?> opt : OPTIONS.values()) {\r\n opt.clear();\r\n }\r\n }",
"@Override\n public void checkConfiguration() {\n }",
"public void clearProperties(Address startAddr, Address endAddr, TaskMonitor monitor)\n\t\t\tthrows CancelledException;",
"public Builder clearConfig() {\n if (configBuilder_ == null) {\n config_ = null;\n onChanged();\n } else {\n config_ = null;\n configBuilder_ = null;\n }\n\n return this;\n }",
"@Test\n public void testAddPropertyDirectCommit() throws ConfigurationException {\n helper.setAutoCommit(false);\n final DatabaseConfiguration config = helper.setUpConfig();\n config.addPropertyDirect(\"key\", \"value\");\n assertTrue(config.containsKey(\"key\"));\n }",
"@Test\n public void testClear_EmptyMap() {\n configureAnswer();\n testObject.clear();\n\n verifyZeroInteractions(helper);\n }"
] |
[
"0.73040694",
"0.70260376",
"0.66023755",
"0.65106964",
"0.64549536",
"0.61855274",
"0.59893346",
"0.5953011",
"0.594345",
"0.59093475",
"0.58594537",
"0.583775",
"0.5828974",
"0.5778871",
"0.5773145",
"0.5765329",
"0.5739187",
"0.5732905",
"0.57295114",
"0.5712338",
"0.57117796",
"0.57034457",
"0.57032216",
"0.56890285",
"0.5656114",
"0.56551635",
"0.5650142",
"0.5636674",
"0.5627974",
"0.56148005",
"0.55417365",
"0.55371475",
"0.5536719",
"0.55315924",
"0.55250424",
"0.54775816",
"0.5463339",
"0.5451",
"0.54420596",
"0.54311585",
"0.5428229",
"0.54274726",
"0.5426742",
"0.5421391",
"0.5419993",
"0.5401505",
"0.5398416",
"0.53936744",
"0.53897727",
"0.5376962",
"0.537489",
"0.5368303",
"0.5359797",
"0.5355174",
"0.5332197",
"0.5327962",
"0.5324181",
"0.53173107",
"0.5314804",
"0.5308175",
"0.53026426",
"0.52830297",
"0.52825415",
"0.52745485",
"0.5267156",
"0.5257604",
"0.52434653",
"0.5240928",
"0.52337945",
"0.52323747",
"0.52314395",
"0.5229576",
"0.52088726",
"0.5208403",
"0.52032435",
"0.52032435",
"0.51951724",
"0.5188883",
"0.518787",
"0.51852864",
"0.518372",
"0.51810473",
"0.5177181",
"0.516863",
"0.5164194",
"0.51625276",
"0.5161714",
"0.5156718",
"0.51557624",
"0.51501316",
"0.5149585",
"0.5148771",
"0.51466095",
"0.51453835",
"0.5144444",
"0.5141597",
"0.51389223",
"0.5126598",
"0.51246405",
"0.5124611"
] |
0.8129844
|
0
|
Tests handling of errors in containsKey().
|
@Test
public void testContainsKeyError() throws ConfigurationException {
assertFalse(setUpErrorConfig().containsKey("key1"));
checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, "key1", null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testCoh3710_keySetContains()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().contains(Integer.valueOf(1)));\n validateIndex(cache);\n }\n });\n }",
"@Test\n public void testGetKey() {\n DefaultPieDataset d = new DefaultPieDataset();\n d.setValue(\"A\", 1.0);\n d.setValue(\"B\", 2.0);\n assertEquals(\"A\", d.getKey(0));\n assertEquals(\"B\", d.getKey(1));\n\n boolean pass = false;\n try {\n d.getKey(-1);\n }\n catch (IndexOutOfBoundsException e) {\n pass = true;\n }\n assertTrue(pass);\n\n pass = false;\n try {\n d.getKey(2);\n }\n catch (IndexOutOfBoundsException e) {\n pass = true;\n }\n assertTrue(pass);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetIllegalKey() {\n String dummy = ev.get(\"_illegal_key\");\n fail(\"Should not get here after getting bs key.\");\n }",
"abstract protected boolean validateKey(String key);",
"@Test\n public void testContainsKey() {\n System.out.println(\"containsKey\");\n \n // GIVEN\n SimpleStyleableMap instance = new SimpleStyleableMap();\n \n // WHEN getOrDefault and no value has been put\n Object key = \"dummyKey\";\n boolean result = instance.containsKey(key);\n \n // THEN must return false\n assertEquals(false, result);\n \n // WHEN getOrDefault and a value has been put\n Object putValue=\"putValue\";\n instance.put(key, putValue );\n result = instance.containsKey(key);\n \n // THEN must returnt rue\n assertEquals(true, result);\n \n // WHEN key is removed\n instance.remove(key);\n result = instance.containsKey(key);\n // THEN must return default value\n assertEquals(false, result);\n }",
"public boolean containsKey(Key key) ;",
"public boolean isValidKey(String key) throws Exception;",
"boolean containsKey(Object key) throws NullPointerException;",
"@Request(id = 6, retryable = true, response = ResponseMessageConst.BOOLEAN)\n Object containsKey(String name, Data key);",
"@Test(expected = IllegalArgumentException.class)\n public void testMultiLookupEmptySpecFails() {\n ctx.bucket().lookupIn(key);\n }",
"@org.junit.Test\n public void contains() throws Exception {\n assertEquals(true, hashTable.contains(\"Blue\"));\n assertEquals(false, hashTable.contains(\"blue\"));\n }",
"@Test\n public void testGetKey()\n { \n assertThat(m_SUT.getKey(), is(\"test key\"));\n }",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"boolean hasKey();",
"public abstract boolean containsKey(K key);",
"@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}",
"public void testGetObjectSpecificationWithNotFoundKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key2\", \"identifier\");\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }",
"@Test\n public void testGetKeysError() throws ConfigurationException {\n final Iterator<String> it = setUpErrorConfig().getKeys();\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, null, null);\n assertFalse(it.hasNext());\n }",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}",
"private void ensureValidKeyNames() {\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\.\\\\.\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\[\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\]\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\(\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\)\")), is(false));\n }",
"@Test\n public void test005_test_duplicate_key() {\n try {\n HashTableADT test = new HashTable<Integer, String>();\n test.insert(1, \"2\");\n test.insert(2, \"3\");\n test.insert(1, \"4\");\n } catch (DuplicateKeyException q) {\n //Expected Exception\n } catch (Exception e) {\n fail(\"Correct Exception wasn't thrown\");\n }\n }",
"@Test(expected = Exception.class)\n public void test() throws Exception {\n\n new HashMap<>();\n MyHashTable2 mp = new MyHashTable2();\n mp.put(\"prem\",7);\n mp.put(\"radha\",72);\n mp.put(\"geeta\",74);\n mp.put(\"sunita\",76);\n mp.put(\"atul\",87);\n mp.put(\"rakesh\",37);\n mp.put(\"aklesh\",72);\n\n // try to add duplicate keys and test exception\n mp.put(\"aklesh\",72);\n\n\n assert 7 == mp.get(\"prem\");\n assert 72 == mp.get(\"aklesh\");\n assert 87 == mp.get(\"atul\");\n assert null == mp.get(\"noting\");\n\n System.out.println(mp.getKeySet());\n\n mp.prettyPrint();\n }",
"protected void checkKey(Object key) {\n\tif (!canContainKey(key)) {\n throw new IllegalArgumentException(\n \"key is not valid for this LeaseMap\");\n }\n }",
"boolean containsKey(int key) throws ContentStoreException;",
"public boolean existsKey(String inKey);",
"private void failKey()\n\t\tthrows IOException\n\t{\n\t\tif(nextKey)\n\t\t{\n\t\t\tthrow new IOException(\"Trying to write a key that is not a string\");\n\t\t}\n\n\t\t// If we are reading an object make sure there is a key\n\t\tnextKey = ! lists[level];\n\t}",
"@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}",
"public void testGetKeysForPlayer_NoPlayer() throws Exception {\n try {\n dao.getKeysForPlayer(1, new long[0]);\n fail(\"EntryNotFoundException expected.\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }",
"String lookupKey(String key) throws CommunicationFailureException, TimeoutReachedException, NoSuccessorsExceptions;",
"public void testGet() throws Exception {\n\t\tLOGGER.info(\"TestDictionay.testGet()\");\n\t\tDictionaryLZW dict = new DictionaryLZW();\n\t\tdict.addEntry(\"AT\");\n\t\tdict.addEntry(\"AA\");\n\t\tfor (int i = 1; i < dict.size(); i++) {\n\t\t\tString val = dict.getStringAt(i);\n\t\t\tAssert.assertEquals(i, dict.findEntry(val));\n\t\t}\n\t\t// Now some bad attempts. Boundary errors will throw, so catch them here\n\t\t// and assert if there was not a throw.\n\t\t// This test might need maintenance as the dictionary data structure changes.\n\t\t// IndexOutOfBoundsException is fairly general, so it may work still.\n\t\tboolean caught = false;\n\t\ttry {\n\t\t\tdict.getStringAt(-1);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\tcaught = true;\n\t\t}\n\t\tAssert.assertTrue(caught);\n\t\tcaught = false;\n\t\ttry {\n\t\t\tdict.getStringAt(29);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\tcaught = true;\n\t\t}\n\t\tAssert.assertTrue(caught);\n\n\t}",
"@Test\n public void testCoh3710_keySetContainsAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().containsAll(\n Collections.singleton(Integer.valueOf(1))));\n validateIndex(cache);\n }\n });\n }",
"@Test\n public void testGet() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n map.set(\"key-1\", \"value-2\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-2\");\n \n map.set(\"key-2\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-2\"), \"value-1\");\n }",
"@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}",
"@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }",
"@Test\n void testContainsReturnsFalse() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n\n assertEquals(false, l.contains(\"not key\"));\n }",
"public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"@Test\n public void testPutHandlesConditionalCheckFailedExceptionCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(true);\n }",
"String lookupKeyBasic(String key) throws CommunicationFailureException, TimeoutReachedException, NoSuccessorsExceptions;",
"@Test\n public void test001_IllegalNullKey() {\n try {\n HashTableADT htIntegerKey = new HashTable<Integer, String>();\n htIntegerKey.insert(null, null);\n fail(\"should not be able to insert null key\");\n } catch (IllegalNullKeyException e) {\n /* expected */ } catch (Exception e) {\n fail(\"insert null key should not throw exception \" + e.getClass().getName());\n }\n }",
"@Test public void keyDefinition() {\n fail( \"Not yet implemented\" );\n }",
"@Test\n public void testGetByKey() throws Exception {\n when(repository.findByKey(this.product.getKey())).thenReturn(Optional.of(this.product));\n\n assertEquals(this.product, service.getByKey(this.product.getKey()));\n }",
"public boolean contains(Key key);",
"private void checkIfDuplicateKey(String recordKey) {\n if (this.records.containsKey(recordKey)) {\n System.out.println(duplicateKey);\n throw new IllegalArgumentException();\n }\n }",
"public abstract boolean lookup(Key key);",
"@Override\n\t\t\tpublic boolean contains(String key) {\n\t\t\t\treturn false;\n\t\t\t}",
"boolean hasKey(String key);",
"public boolean containsKey(Object key)\r\n/* 386: */ {\r\n/* 387:556 */ return this.headers.containsKey(key);\r\n/* 388: */ }",
"public boolean containsKey(String key);",
"private String check_Key(String key) throws JsonException {\r\n\t\tif (key == null || key.isEmpty()) {\r\n\t\t\tthrow new JsonException(\"The key must not null, or empty\");\r\n\t\t}\r\n\r\n\t\treturn key;\r\n\t}",
"public void testSearch(RBTMap<K, V> M, K key, V value, boolean success) {\n \n if (key != null) {\n \n try {\n \n System.out.print(\"Searching for \\\"\");\n System.out.println(key.toString() + \"\\\".\");\n V foundValue = M.get(key);\n if (success) {\n if (value != null) {\n if (foundValue != null) {\n if (value.equals(foundValue)) {\n System.out.print(\"Search was successful, returning \\\"\");\n System.out.println(value.toString() + \"\\\", as expected.\");\n } else {\n System.out.print(\"Expected value was \\\"\" + value.toString());\n System.out.print(\"\\\", but \\\"\" + foundValue.toString());\n System.out.println(\"\\\" was returned, instead.\");\n }\n } else {\n System.out.print(\"Expected value was \\\"\" + value.toString());\n System.out.println(\"\\\", but null was returned, instead.\");\n }\n } else {\n if (foundValue != null) {\n System.out.print(\"Expected value was null, but \\\"\");\n System.out.println(foundValue.toString() + \"\\\" was returned, instead.\");\n }\n };\n } else {\n System.out.print(\"Search incorrectly failed to throw a \");\n System.out.println(\"NoSuchElementException.\");\n };\n \n } catch (NoSuchElementException ex) {\n \n if (success) {\n System.out.println(\"Search incorrectly threw a NoSuchElementException.\");\n } else {\n System.out.println(\"Search threw a NoSuchElementException, as expected.\");\n };\n \n };\n \n RBT<K, V> T = M.thisTree();\n RBTUtilities<K, V> utilities = new RBTUtilities<K, V>();\n \n if (!utilities.isRBT(T, false)) {\n System.out.println(\"Resulting tree is not a valid red-black tree.\");\n utilities.isRBT(T, true);\n };\n System.out.println(\"\");\n \n } else {\n \n System.out.println(\"Attempting search for null key.\");\n \n try {\n \n M.get(null);\n System.out.println(\"A NullPointerException was expected, but not thrown.\");\n \n } catch (NullPointerException ex1) {\n \n System.out.println(\"A NullPointerException was thrown, as expected\");\n \n }\n \n }\n\n }",
"public boolean checkInsert(int key){\n\n // Returns false if the key is present.\n for (int curr : getAllKeys()) if(curr == key) return false;\n // Returns true if the key is not found.\n return true;\n\n }",
"boolean containsKey(CoreLabel key);",
"public boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}",
"private void validateIndexForKeys(CompactRangeIndex ri) {\n assertEquals(6, ri.getIndexStorage().size());\n CloseableIterator<IndexStoreEntry> itr = null;\n try {\n itr = ri.getIndexStorage().iterator(null);\n while (itr.hasNext()) {\n IndexStoreEntry reEntry = itr.next();\n Object obj = reEntry.getDeserializedRegionKey();\n assertTrue(obj instanceof String);\n assertTrue(idSet.contains(obj));\n }\n } finally {\n if (itr != null) {\n itr.close();\n }\n }\n }",
"@Test(timeout = 4000)\n public void test032() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n try { \n jSONObject0.put((String) null, false);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"boolean containsKey(long key);",
"boolean containsKey(String keyLabel);",
"@Test\n void validateUserGroupExist(){\n\n Boolean testing_result = true;\n int issue_id = 0;\n String issue_group = \"\";\n\n ArrayList<String> groups = new ArrayList<>();\n groups.add(\"admin\");\n groups.add(\"concordia\");\n groups.add(\"encs\");\n groups.add(\"comp\");\n groups.add(\"soen\");\n\n UserController uc = new UserController();\n\n LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();\n\n for(int key : db_groups.keySet()){\n if(!groups.contains(db_groups.get(key))){\n issue_id = key;\n issue_group = db_groups.get(key);\n testing_result = false;\n }\n }\n\n Assertions.assertTrue(testing_result, \" There is an issue with user(id: \" + issue_id + \") having group as: \" + issue_group);\n\n }",
"private boolean isKeyAtIndex(String key, int index) {\n return index >= 0 && index < size() && mDataSnapshots.get(index).getKey().equals(key);\n }",
"@Override\r\n\tpublic boolean containsKey(Object key) {\r\n\t\tif (key == null) throw new NullPointerException();\r\n\t\treturn get(key) != null;\r\n\t}",
"@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }",
"@Override\n public boolean containsKey(Object key) {\n return entries.containsKey(key);\n }",
"@Test\n public void keySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.keySet());\n }",
"@Test\n public void testFailureScannerWithKeys() throws IOException {\n Reader reader = new Reader(fs.open(path), fs.getFileStatus(path).getLen(), conf);\n Assert.assertFalse(reader.isSorted());\n Assert.assertEquals(((int) (reader.getEntryCount())), 4);\n try {\n Scanner scanner = reader.createScannerByKey(\"aaa\".getBytes(), \"zzz\".getBytes());\n Assert.fail(\"Failed to catch creating scanner with keys on unsorted file.\");\n } catch (RuntimeException e) {\n } finally {\n reader.close();\n }\n }",
"private void throwIfNullKey(final K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"null keys are not supported\");\n }\n }",
"boolean containsKey(K key);",
"boolean containsKey(K key);",
"@Test\n public void testSearchNastyCases() {\n RpkiObjectCoder coder = new RpkiObjectCoder();\n AtomicInteger brokenCounter = new AtomicInteger(0);\n lmdb.readTx0(tx -> {\n lmdbRpkiObject.forEach(tx, (k, bb) -> {\n byte[] bytes = Bytes.toBytes(bb);\n try {\n RpkiObject rpkiObject = coder.fromBytes(bytes);\n assertEquals(rpkiObject.key(), k);\n assertArrayEquals(Sha256.hash(rpkiObject.getEncoded()), rpkiObject.getSha256());\n } catch (Exception e) {\n brokenCounter.incrementAndGet();\n e.printStackTrace();\n }\n });\n });\n assertEquals(0, brokenCounter.get());\n }",
"@Test\n public void testGetByKeyEmpty() throws Exception {\n thrown.expect(ProductNotFoundException.class);\n thrown.expectMessage(\"Product with key \" + this.product.getKey() + \" not found!\");\n\n when(repository.findByKey(this.product.getKey())).thenReturn(Optional.empty());\n service.getByKey(this.product.getKey());\n }",
"public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }",
"@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }",
"boolean hasKey(String collection, String hkey);",
"private void checkStringKey(Key key) {\n m_logger.debug(\"checkByteArrKey start key:\" + key.toString());\n if(m_cache != null){\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n }\n if (m_checked){\n m_logger.debug(\"checkByteArrKey end.\");\n \treturn;\n }\n if (key instanceof String) {\n if (!(m_cache instanceof StringMap)) {\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n throw new RuntimeException(\"Wrong map/set for String key\");\n }\n }\n m_checked = true;\n m_logger.debug(\"checkByteArrKey end.\");\n }",
"private static void checkForNullKey(String key) {\n if ( key == null ) {\n throw new NullPointerException();\n }\n }",
"@Test\n public void duplicateMapKeysError_classKeyIsNotCompressed() {\n CreationException exception =\n assertThrows(\n CreationException.class, () -> Guice.createInjector(new ClassKeyMapBinderModule()));\n assertGuiceErrorEqualsIgnoreLineNumber(\n exception.getMessage(), \"duplicate_map_keys_error_class_key_is_not_compressed.txt\");\n }",
"private void doAPITest(Map<Object,Object> table) {\n\t\tint size = table.size();\n\t\tObject key, value;\n\t\t\n\t\tMap<Object,Object> clone = cloneMap(table);\n\t\t\n\t\t// retrieve values using values()\n\t\tCollection<Object> values = table.values();\n\t\t\n\t\t// retrieve keys using keySet()\n\t\tSet<Object> keySet = table.keySet();\t\t\n\t\tObject[] keySetArray = keySet.toArray();\n\t\t\n\t\tint step = 1 + random.nextInt(5);\n\t\t\n\t\tfor (int i=0; i<keySetArray.length; i=i+step)\n\t\t{\n\t\t\tkey = keySetArray[i];\n\t\t\t// retrieve value\n\t\t\tvalue = table.get(key);\n\t\t\t\n\t\t\t// assert value is in the table\n\t\t\tassertTrue(table.containsValue(value));\n\t\t\t/*\n\t\t\t * assertTrue(table.contains(value)); // Removed as not supported by the Map interface, and identical to containsValue\n\t\t\t * if value is a wrapped key then check it's equal \n\t\t\t * to the key \n\t\t\t */\n\t\t\tif (value instanceof CustomValue)\n\t\t\t{\n\t\t\t\tassertEquals(key, ((CustomValue)value).key);\n\t\t\t}\n\t\t\t\n\t\t\t// count how many occurrences of this value there are\n\t\t\tint occurrences = numberOccurrences(values, value);\n\t\t\t\n\t\t\t// find the Map.Entry\n\t\t\tSet<Map.Entry<Object, Object>> entrySet = table.entrySet();\n\t\t\tIterator<Map.Entry<Object, Object>> entrySetIterator = entrySet.iterator();\n\t\t\tMap.Entry<Object,Object> entry = null;\n\t\t\tdo\n\t\t\t{\n\t\t\t\tentry = entrySetIterator.next();\n\t\t\t} while (!entry.getKey().equals(key));\n\t\t\t\n\t\t\t// remove from table in different ways\n\t\t\tswitch (i % 3)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\ttable.remove(key);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tkeySet.remove(key);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t\n\t\t\t\tentrySet.remove(entry);\n\t\t\t}\n\t\t\t\n\t\t\t// assert key is no longer in the table\n\t\t\tassertFalse(table.containsKey(key));\n\t\t\t// assert key is no longer in the keyset\n\t\t\tassertFalse(keySet.contains(key));\n\t\t\t// assert key is no longer in the entrySet\n\t\t\tassertFalse(entrySet.contains(entry));\n\t\t\t\n\t\t\t// assert that there's one fewer of this value in the hashtable\n\t\t\tassertEquals(occurrences, numberOccurrences(values, value) + 1);\n\t\t\t\n\t\t\t// re-insert key\n\t\t\ttable.put(key, value);\n\t\t\t\n\t\t\t// assert key is in the table\n\t\t\tassertTrue(table.containsKey(key));\n\t\t\t// assert key is in the keyset\n\t\t\tassertTrue(keySet.contains(key));\n\t\t\t// assert EntrySet is same size\n\t\t\tassertEquals(size, entrySet.size());\n\t\t}\n\t\t\n\t\t// test hashtable is the same size\n\t\tassertEquals(size, table.size());\n\t\t\n\t\t// test keySet is expected size\n\t\tassertEquals(size, keySet.size());\n\t\t\n\t\t// retrieve keys using keys()\n\t\tIterator<?> keys = table.keySet().iterator();\n\t\t\n\t\t// remove a subset of elements from the table. store in a map\n\t\tint counter = table.size() / 4;\n\t\tMap<Object,Object> map = new HashMap<Object, Object>();\n\t\twhile (keys.hasNext() && counter-- >= 0)\n\t\t{\n\t\t\tkey = keys.next();\n\t\t\tvalue = table.get(key);\n\t\t\tmap.put(key, value);\n\t\t\tkeys.remove(); // removes the most recent retrieved element\n\t\t}\n\t\t// re-add the elements using putAll\n\t\ttable.putAll(map);\n\t\t\n\t\t// test equal to copy\n\t\tassertEquals(clone, table);\n\t\t\n\t\t// clear the copy\n\t\tclone.clear();\n\t\t\n\t\t// assert size of clone is zero\n\t\tassertEquals(0, clone.size());\n\t\t\n\t\t// assert size of original is the same\n\t\tassertEquals(size, table.size());\n\t}",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\tString uKey = key.toString().toUpperCase();\n\t\treturn super.containsKey(uKey);\n\t}",
"static boolean testSearch() {\n BinaryTree tree = new BinaryTree();\n int[] profile = new int[1];\n\n // Implment insert method\n tree.insert(\"a\", 1);\n tree.insert(\"b\", 2);\n tree.insert(\"c\", 3);\n tree.insert(\"d\", 4);\n tree.insert(\"e\", 5);\n\n // Validates that search works correctly for every key in tree\n if(tree.search(\"a\", profile) != 1)\n return false;\n if(tree.search(\"b\", profile) != 2)\n return false;\n if(tree.search(\"c\", profile) != 3)\n return false;\n if(tree.search(\"d\", profile) != 4)\n return false;\n if(tree.search(\"e\", profile) != 5)\n return false;\n\n // Validates that search works if a key has been overwritten\n tree.insert(\"a\", 3);\n if(tree.search(\"a\", profile) != 3)\n return false;\n\n // Validates that search returns -1 if value is not found\n if(tree.search(\"f\", profile) != -1)\n return false;\n\n // Validates that profile is as expected\n if(profile[0] <= 0)\n return false;\n\n return true;\n }",
"final boolean hasKey(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return true;\r\n }\r\n return false;\r\n }",
"@Test\n public void test004_test_numKeys() {\n try {\n HashTableADT test = new HashTable<Integer, String>();\n if (test.numKeys() != 0) {\n fail(\"numKeys not correct\");\n }\n test.insert(1, \"2\");\n if (test.numKeys() != 1) {\n fail(\"numKeys not correct\");\n }\n test.insert(2, \"3\");\n if (test.numKeys() != 2) {\n fail(\"numKeys not correct\");\n }\n test.insert(3, \"4\");\n if (test.numKeys() != 3) {\n fail(\"numKeys not correct\");\n }\n test.remove(2);\n if(test.numKeys() != 2) {\n fail(\"numKeys not correct\");\n }\n } catch (Exception e) {\n fail(\"Exception shouldn't be thrown\");\n }\n }",
"public static Boolean isContains(String key){\r\n return scenarioContext.containsKey(key.toString());\r\n }",
"@Test\n public void testDelete() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n Assert.assertTrue(map.delete(\"key-1\", 0));\n \n Assert.assertNull(map.get(\"key-1\"));\n \n Assert.assertFalse(map.delete(\"no-set-key\", 0));\n }",
"boolean nameExists(Key name);",
"@Override\n public boolean containsKey(K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to containsKey() is null\");\n }\n return get(key) != null;\n }",
"@Test\n public void test002_Insert_And_Get() {\n try {\n HashTableADT test = new HashTable<Integer, String>();\n test.insert(1, \"2\");\n test.insert(2, \"3\");\n test.insert(3, \"4\");\n if (test.get(1) != \"2\") { //checks if get returns the correct values\n fail(\"insert or get didn't work\");\n }\n if (test.get(2) != \"3\") {\n fail(\"insert or get didn't work\");\n }\n if (test.get(3) != \"4\") {\n fail(\"insert or get didn't work\");\n }\n } catch (Exception e) {\n fail(\"Exception shouldn't be thrown\");\n }\n }",
"public boolean contains(String key)\r\n { return get(key) != null; }",
"void assertTotalCntEquals(T key, int expected);",
"private void checkByteArrKey(Key key) {\n m_logger.debug(\"checkByteArrKey start key:\" + Hex.toHexString((byte[])key));\n if(m_cache != null){\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n }\n if (m_checked){\n m_logger.debug(\"checkByteArrKey end.\");\n \treturn;\n }\n if (key instanceof byte[]) {\n if (!(m_cache instanceof ByteArrayMap)) {\n throw new RuntimeException(\"Wrong map/set for byte[] key\");\n }\n }\n m_checked = true;\n m_logger.debug(\"checkByteArrKey end.\");\n }",
"@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to contains() is null\");\n }\n return get(root, key, 0) != null;\n }",
"@Test\n\tpublic void testGetAccessReodersElement() {\n\t\tmap.get(\"key1\");\n\n\t\tSet<String> keySet = map.keySet();\n\t\tassertEquals(\"Calling get on an element did not move it to the bottom\", \"key1\",\n\t\t\tkeySet.iterator().next());\n\n\t\t// move 2 to the top/front\n\t\tmap.get(\"key2\");\n\t\tassertEquals(\"Calling get on an element did not move it to the bottom\", \"key2\",\n\t\t\tkeySet.iterator().next());\n\t}",
"@Test(timeout = 4000)\n public void test118() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.pkSpec((DBPrimaryKeyConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test (timeout=180000)\n public void testCoveredStartKey() throws Exception {\n TableName table =\n TableName.valueOf(\"tableCoveredStartKey\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating an overlap in the metadata\n HRegionInfo hriOverlap =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A2\"), Bytes.toBytes(\"B2\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriOverlap);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriOverlap);\n ServerName server = regionStates.getRegionServerOfRegion(hriOverlap);\n TEST_UTIL.assertRegionOnServer(hriOverlap, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.OVERLAP_IN_REGION_CHAIN,\n ERROR_CODE.OVERLAP_IN_REGION_CHAIN });\n assertEquals(3, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the problem.\n doFsck(conf, true);\n\n // verify that overlaps are fixed\n HBaseFsck hbck2 = doFsck(conf, false);\n assertErrors(hbck2, new ERROR_CODE[0]);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }",
"@Test\n public void shouldReturnConflictIfCompareAndSetFailsBecauseAKeyAlreadyExistsExceptionIsThrown() {\n final SetValue newKeyValue = new SetValue();\n newKeyValue.setExpectedValue(null);\n newKeyValue.setNewValue(NEW_VALUE);\n\n when(distributedStore.compareAndSet(KEY, newKeyValue)).thenReturn(Futures.<KeyValue>immediateFailedFuture(new KeyAlreadyExistsException(KEY)));\n\n assertThatResourceMethodReturnsStatus(\n client().resource(REQUEST_URI).type(MediaType.APPLICATION_JSON_TYPE).entity(newKeyValue),\n \"PUT\",\n ClientResponse.Status.CONFLICT\n );\n }",
"public boolean containsKey(String key) throws Exception {\n //return properties.containsKey(key);\n if (config != null) {\n Configuration[] props = config.getChildren(\"property\");\n for (int i = 0; i < props.length; i++) {\n if (props[i].getAttribute(\"name\") != null && props[i].getAttribute(\"name\").equals(key)) return true;\n }\n }\n return false;\n }",
"@Override\n\t\tpublic boolean validateObject(Object key, Object obj) {\n\t\t\tTConnection tc = (TConnection) obj;\n\t\t\tboolean result = false;\n\t\t\ttry {\n\t\t\t\tbyte[] k = \"foo\".getBytes();\n\t\t\t\tint partition = keyPartitioner.getPartition(k);\n\t\t\t\tKey keyK = new Key(ByteBuffer.wrap(k));\n\t\t\t\tkeyK.setPartition(partition);\n\t\t\t\tGetRequest request = new GetRequest(keyK);\n\t\t\t\tboolean b = tc.kv.exists(request);\n\t\t\t\tresult = true;\n\t\t\t} catch(Exception e) {\n\t\t\t}\n\t\t\treturn result;\n\t\t}",
"@Test(timeout = 4000)\n public void test030() throws Throwable {\n NameSpec nameSpec0 = NameSpec.NEVER;\n // Undeclared exception!\n try { \n SQLUtil.pkSpec((DBPrimaryKeyConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private void check(List<K> key) {\n if (key == null || key.isEmpty()) {\n throw new IllegalArgumentException(\"key must be a list of size >= 1\");\n }\n }"
] |
[
"0.6696878",
"0.6610152",
"0.6494556",
"0.6452126",
"0.6391127",
"0.633006",
"0.63068646",
"0.6300849",
"0.62750226",
"0.6268286",
"0.6268068",
"0.6251321",
"0.6202829",
"0.6202829",
"0.6202829",
"0.6202829",
"0.6202829",
"0.6201996",
"0.6190266",
"0.61897284",
"0.6184402",
"0.61677945",
"0.61527956",
"0.6145184",
"0.60916626",
"0.608649",
"0.6073456",
"0.607286",
"0.6069614",
"0.6037637",
"0.6004587",
"0.60009325",
"0.5990598",
"0.598971",
"0.5980197",
"0.5979221",
"0.59682906",
"0.59677863",
"0.5965576",
"0.5926",
"0.59087956",
"0.5905826",
"0.59009576",
"0.59008706",
"0.5897016",
"0.58930653",
"0.5888874",
"0.58811617",
"0.58575594",
"0.585089",
"0.5846131",
"0.5830054",
"0.5827869",
"0.58135706",
"0.58084637",
"0.5804749",
"0.58011687",
"0.5782151",
"0.5744889",
"0.57444733",
"0.5733278",
"0.57330376",
"0.5732946",
"0.57313305",
"0.5730357",
"0.572882",
"0.5727305",
"0.57236296",
"0.5721602",
"0.5721602",
"0.5714388",
"0.5695018",
"0.5693397",
"0.5692204",
"0.56645334",
"0.5663224",
"0.56617284",
"0.5660811",
"0.5621681",
"0.561516",
"0.5600199",
"0.5593333",
"0.55751",
"0.5562314",
"0.5559239",
"0.55571467",
"0.55569154",
"0.55564106",
"0.5550592",
"0.55468565",
"0.5545457",
"0.5541975",
"0.55416626",
"0.55397433",
"0.55354905",
"0.5531469",
"0.5531355",
"0.5527266",
"0.5519203",
"0.5518302"
] |
0.69445145
|
0
|
Tests whether a CLOB as a property value is handled correctly.
|
@Test
public void testExtractPropertyValueCLOB() throws ConfigurationException, SQLException {
final ResultSet rs = mock(ResultSet.class);
final Clob clob = mock(Clob.class);
final String content = "This is the content of the test CLOB!";
when(rs.getObject(DatabaseConfigurationTestHelper.COL_VALUE)).thenReturn(clob);
when(clob.length()).thenReturn(Long.valueOf(content.length()));
when(clob.getSubString(1, content.length())).thenReturn(content);
final DatabaseConfiguration config = helper.setUpConfig();
assertEquals(content, config.extractPropertyValue(rs));
verify(rs).getObject(DatabaseConfigurationTestHelper.COL_VALUE);
verify(clob).length();
verify(clob).getSubString(1, content.length());
verifyNoMoreInteractions(rs, clob);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic boolean handlesNullVsEmptyLOBs() {\n\t\treturn false;\n\t}",
"@Test\n public void testExtractPropertyValueCLOBEmpty() throws ConfigurationException, SQLException {\n final ResultSet rs = mock(ResultSet.class);\n final Clob clob = mock(Clob.class);\n\n when(rs.getObject(DatabaseConfigurationTestHelper.COL_VALUE)).thenReturn(clob);\n when(clob.length()).thenReturn(0L);\n\n final DatabaseConfiguration config = helper.setUpConfig();\n assertEquals(\"\", config.extractPropertyValue(rs));\n\n verify(rs).getObject(DatabaseConfigurationTestHelper.COL_VALUE);\n verify(clob).length();\n verifyNoMoreInteractions(rs, clob);\n }",
"@Test\r\n\tpublic void readCLOBData() throws Exception {\n\t\tString data = \"this is a CLOB String\";\r\n\r\n\t\ttry (Statement stmt = _conn.createStatement()) {\r\n\t\t\tstmt.execute(strCleanTable);\r\n\t\t\tstmt.executeUpdate(\r\n\t\t\t\t\t\"INSERT INTO \" + Utils.schema + \".\" + tableName + \" values (1, stringtolob('\" + data + \"'))\");\r\n\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM \" + Utils.schema + \".\" + tableName);\r\n\t\t\tint rowNum = 0;\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\trowNum++;\r\n\t\t\t\tClob clob = rs.getClob(2);\r\n\t\t\t\tassertEquals(\"clob data \", data, clob.getSubString(1, (int) clob.length()));\r\n\t\t\t}\r\n\t\t\tassertEquals(\"Row count read from server\", 1, rowNum);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(\"CLOB\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"CLOB\", defaultDBTable0, dBDataType0, integer0);\n defaultDBColumn0.setNullable(false);\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"CLOB CLOB NOT NULL\", string0);\n }",
"private boolean isNonTrivialDataLob(int index) {\n long length = 0L;\n\n if (isNull_[index] ||\n (jdbcTypes_[index] != ClientTypes.BLOB &&\n jdbcTypes_[index] != ClientTypes.CLOB)) {\n return false;\n }\n\n int position = columnDataPosition_[index];\n\n // if the high-order bit is set, length is unknown -> set value to x'FF..FF'\n //if (((dataBuffer_[position]) & 0x80) == 0x80) {\n if ((dataBuffer_.getByte(dataBuffer_.readerIndex()) & 0x80) == 0x80) {\n length = -1;\n } else {\n\n byte[] lengthBytes = new byte[columnDataComputedLength_[index]];\n byte[] longBytes = new byte[8];\n\n// System.arraycopy(dataBuffer_, position, lengthBytes, 0, columnDataComputedLength_[index]);\n dataBuffer_.getBytes(position, lengthBytes, 0, columnDataComputedLength_[index]);\n\n // right-justify for BIG ENDIAN\n int j = 0;\n for (int i = 8 - columnDataComputedLength_[index]; i < 8; i++) {\n longBytes[i] = lengthBytes[j];\n j++;\n }\n length = getLong(longBytes, 0);\n }\n return (length != 0L) ? true : false;\n }",
"public boolean isLOB(int displayType) {\n\t\treturn false;\n\t}",
"String getClobField();",
"@Test\n\tpublic void testOtherConstructors() throws SQLException {\n\n\t\tSqlLobValue lob = new SqlLobValue(\"bla\");\n\t\tlob.setTypeValue(preparedStatement, 1, Types.CLOB, \"test\");\n\n\t\ttry {\n\t\t\tlob = new SqlLobValue(\"bla\".getBytes());\n\t\t\tlob.setTypeValue(preparedStatement, 1, Types.CLOB, \"test\");\n\t\t\tfail(\"IllegalArgumentException should have been thrown\");\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\t// expected\n\t\t}\n\n\t\tlob = new SqlLobValue(new ByteArrayInputStream(\"bla\".getBytes()), 3);\n\t\tlob.setTypeValue(preparedStatement, 1, Types.CLOB, \"test\");\n\n\t\tlob = new SqlLobValue(new InputStreamReader(new ByteArrayInputStream(\n\t\t\t\t\"bla\".getBytes())), 3);\n\t\tlob.setTypeValue(preparedStatement, 1, Types.CLOB, \"test\");\n\n\t\t// same for BLOB\n\t\tlob = new SqlLobValue(\"bla\");\n\t\tlob.setTypeValue(preparedStatement, 1, Types.BLOB, \"test\");\n\n\t\tlob = new SqlLobValue(\"bla\".getBytes());\n\t\tlob.setTypeValue(preparedStatement, 1, Types.BLOB, \"test\");\n\n\t\tlob = new SqlLobValue(new ByteArrayInputStream(\"bla\".getBytes()), 3);\n\t\tlob.setTypeValue(preparedStatement, 1, Types.BLOB, \"test\");\n\n\t\tlob = new SqlLobValue(new InputStreamReader(new ByteArrayInputStream(\n\t\t\t\t\"bla\".getBytes())), 3);\n\n\t\ttry {\n\t\t\tlob.setTypeValue(preparedStatement, 1, Types.BLOB, \"test\");\n\t\t\tfail(\"IllegalArgumentException should have been thrown\");\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\t// expected\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test072() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(\"CLOB\");\n Integer integer0 = RawTransaction.LOCK_ESCALATE;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"CLOB\", defaultDBTable0, dBDataType0, integer0);\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"CLOB\", stringBuilder0.toString());\n }",
"@Override\r\n\t\tpublic Clob createClob() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Override\n\tpublic void setClob(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}",
"public void test_CLOB_largeSize() {\r\n // ## Arrange ##\r\n MemberWithdrawal withdrawal = new MemberWithdrawal();\r\n withdrawal.setMemberId(3);\r\n withdrawal.setWithdrawalDatetime(currentLocalDateTime());\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < 10000; i++) {\r\n sb.append(\"1234567890\");\r\n }\r\n withdrawal.setWithdrawalReasonInputText(sb.toString());\r\n memberWithdrawalBhv.insertOrUpdateNonstrict(withdrawal);\r\n\r\n MemberWithdrawalCB cb = new MemberWithdrawalCB();\r\n cb.specify().columnWithdrawalReasonInputText();\r\n cb.query().setMemberId_Equal(3);\r\n\r\n // ## Act ##\r\n MemberWithdrawal actualWithdrawal = memberWithdrawalBhv.selectEntity(cb).get();\r\n\r\n // ## Assert ##\r\n assertNotNull(actualWithdrawal);\r\n String actualText = actualWithdrawal.getWithdrawalReasonInputText();\r\n assertNotNull(actualText);\r\n assertEquals(sb.toString().length(), actualText.length());\r\n }",
"public static boolean isAsciiStreamAssignable(int jdbcType) {\r\n return jdbcType == Types.CLOB || isCharacterType(jdbcType);\r\n }",
"void setClob(PreparedStatement pstmt, Object value, int pos)\r\n throws Exception;",
"@Override\n\tpublic void setClob(int parameterIndex, Reader reader) throws SQLException {\n\t\t\n\t}",
"@Test(timeout = 4000)\n public void test64() throws Throwable {\n Integer integer0 = RawTransaction.LOCK_ESCALATE;\n TableContainer tableContainer0 = new TableContainer(\"XD`iuWl-P)z~qUO|]P\");\n tableContainer0.getTable(\"XD`iuWl-P)z~qUO|]P\");\n DBDataType dBDataType0 = DBDataType.getInstance(\"CLOB\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"CLOB\", (DBTable) null, dBDataType0, integer0, integer0);\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"CLOB CLOB NULL\", string0);\n }",
"protected String stringFromClob (java.sql.Clob aClob) {\n\ttry {\n\t\treturn aClob.getSubString(1, (int)aClob.length());\n\t}\n\tcatch (java.sql.SQLException exc) {\n\t\tRuntimeException rtExc = new RuntimeException(exc.getMessage());\n\t\trtExc.fillInStackTrace();\n\t\tthrow rtExc;\n\t}\n}",
"@OfMethod({\"getClob(java.lang.String)\", \"getClob(int)\"})\n public void testGetClob() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.getClob(getParameterName());\n fail(\"Allowed get clob by parameter name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.getClob(getParameterIndex());\n fail(\"Allowed get clob by parameter index after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"public void testSetClob() throws Exception {\n String parameterName = getParameterName();\n int parameterIndex = getParameterIndex();\n CallableStatement instance = newClosedCall();\n Clob clob = newConnection().createClob();\n Reader reader = new StringReader(\"1\");\n clob.setString(1, \"1\");\n long longLength = 1L;\n\n try {\n instance.setClob(parameterName, clob);\n fail(\"Allowed set clob by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setClob(parameterName, reader);\n fail(\"Allowed set clob using reader by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setClob(parameterIndex, clob);\n fail(\"Allowed set clob by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setClob(parameterIndex, reader);\n fail(\"Allowed set clob using reader by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setClob(parameterName, reader, longLength);\n fail(\"Allowed set clob using reader and long length by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterIndex, reader, longLength);\n fail(\"Allowed set nclob using reader and long length by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"@Override\n\tpublic IClob getClob(String arg0) throws OdaException {\n\t\treturn null;\n\t}",
"private static void writeCLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testclob(name, resume) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.txt\");\n\t\t\tReader reader = new InputStreamReader(new FileInputStream(file), \"utf-8\");\n\t\t\tstmt.setCharacterStream(2, reader, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}",
"@Override\n public boolean isCellEditable( Object node, int column )\n {\n if ( column == 0 )\n {\n return true;\n }\n\n if ( node instanceof Property )\n {\n Property p = ( Property )node;\n if ( p.isReadOnly() )\n {\n return false;\n }\n\n if ( p instanceof SimpleProperty )\n {\n return true;\n }\n\n // @pending At the moment if one property from the list of composite editor is read only all property is read only. Is there better idea?\n Object cepl = p.getDescriptor().getValue( BeanInfoConstants.COMPOSITE_EDITOR_PROPERTY_LIST );\n if ( cepl != null )\n {\n boolean bReadOnly = false;\n StringTokenizer st = new StringTokenizer( (String)cepl, \";, \" );\n while ( st.hasMoreTokens() )\n {\n Property prop = p.findProperty( st.nextToken() );\n if ( prop == null )\n {\n continue;\n }\n if ( ( bReadOnly = prop.isReadOnly() ) )\n {\n break;\n }\n }\n\n return !bReadOnly;\n }\n\n return ( ( PropertyDescriptor )p.getDescriptor() ).getPropertyEditorClass() != null;\n }\n\n return false;\n }",
"Object getClob(ResultSet rs, int pos)\r\n throws Exception;",
"public Clob getClob(int columnIndex) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.CLOB);\n debugCodeAssign(\"Clob\", TraceObject.CLOB, id, \"getClob(\" + columnIndex + \")\");\n Value v = get(columnIndex);\n return v == ValueNull.INSTANCE ? null : new JdbcClob(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private String readClobDataAsString(java.sql.Clob clob) throws SQLException, IOException {\n\t\t String data = null;\n\t\t int length = 0;\n\t\t StringBuffer sb;\n\t\t char[] buffer;\n\t\t int count = 0;\n\n\t\t if (clob != null) {\n\t\t Reader is = clob.getCharacterStream();\n\n\t\t // Initialize local variables.\n\t\t sb = new StringBuffer();\n\t\t length = (int) clob.length();\n\n\t\t // Check CLOB is not empty.\n\t\t if (length > 0) {\n\t\t // Initialize control structures to read stream.\n\t\t buffer = new char[length];\n\t\t count = 0;\n\n\t\t // Read stream and append to StringBuffer.\n\t\t try {\n\t\t\t\twhile ((count = is.read(buffer)) != -1)\n\t\t\t\t sb.append(buffer);\n\t\n\t\t\t\t // Assign StringBuffer to String.\n\t\t\t\t data = new String(sb); }\n\t\t\t catch (Exception e) { System.out.println(e);} \n\t\t \t finally {\n\t\t \t\t // Close stream to prevent memory leaks.\n\t\t \t\t is.close();\n\t\t \t }\n\t\t }\n\t\t }\n\t\t \n\t\t return data; \n\n\t }",
"private boolean checkNullAllowed(Node parentNode, TableColumnBean columnBean, String newValue) {\n boolean isOkNullCheck = false;\n //displayColumnProps(columnBean);\n //System.out.println(\"value: \" + newValue);\n if(columnBean.isNullAllowed()) {\n isOkNullCheck = true;\n } else {\n if(newValue.equals(\"\") || newValue == null ||\n newValue.equalsIgnoreCase(\"null\")) {\n isOkNullCheck = false;\n } else {\n isOkNullCheck = true;\n }\n }\n return isOkNullCheck;\n }",
"public abstract boolean isAllowCustomProperties();",
"boolean allowsValue (final String str, final ValidationContext vc)\n {\n try\n {\n getValue (str, vc);\n return true;\n }\n catch (final DatatypeException e)\n {\n return false;\n }\n }",
"public boolean supportsLobInsertsAsStrings() {\n return supportsLobs();\n }",
"void setClob(int index, Clob value) throws SQLException;",
"public void testGetNClob() throws Exception {\n String parameterName = getParameterName();\n int parameterIndex = getParameterIndex();\n\n long length = 0L;\n CallableStatement instance = newClosedCall();\n NClob x = newConnection().createNClob(); // this will never get used\n\n try {\n instance.setNClob(parameterName, x);\n fail(\"Allowed set nclob by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterName, new StringReader(\"1\"));\n fail(\"Allowed set nclob with reader by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterIndex, x);\n fail(\"Allowed set nclob by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterName, new StringReader(\"1\"), length);\n fail(\"Allowed set nclob with reader and length by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterIndex, new StringReader(\"1\"), length);\n fail(\"Allowed set nclob with reader and length by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"protected boolean checkLobPresence(NbaLob workLob, ArrayList lobList) {\n\t\tint size = lobList.size();\n\t\tString lobName = null;\n\t\tString lobValue = null;\n\t\tNbaOinkDataAccess aNbaOinkDataAccess = new NbaOinkDataAccess(workLob);\n\t\tNbaOinkRequest aNbaOinkRequest = new NbaOinkRequest();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tlobName = (String) lobList.get(i);\n\t\t\tif (lobName.startsWith(\"A_\")) {\n\t\t\t\taNbaOinkRequest.setVariable(lobName.substring(2));\n\t\t\t} else {\n\t\t\t\taNbaOinkRequest.setVariable(lobName);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tlobValue = aNbaOinkDataAccess.getStringValueFor(aNbaOinkRequest);\n\t\t\t\tif (lobValue == null\n\t\t\t\t\t|| lobValue.trim().length() == 0\n\t\t\t\t\t|| NbaAutomatedProcess.LOB_NOT_AVAILABLE.equals(lobValue)\n\t\t\t\t\t|| \"0\".equals(lobValue)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (NbaBaseException e) {\n\t\t\t\tgetLogger().logInfo(\"Could not resolve:\" + lobName);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\n\t}",
"private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }",
"private boolean isfieldPasteable(OwField prop_p, OwObject clipboardObject_p) throws Exception\r\n {\r\n try\r\n {\r\n OwField clipboardfield = clipboardObject_p.getProperty(prop_p.getFieldDefinition().getClassName());\r\n\r\n return (clipboardfield.getFieldDefinition().getJavaClassName().equals(prop_p.getFieldDefinition().getJavaClassName()) && (clipboardfield.getValue() != null));\r\n }\r\n catch (OwObjectNotFoundException e)\r\n {\r\n return false;\r\n }\r\n }",
"public NClob getNClob(int columnIndex) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.CLOB);\n debugCodeAssign(\"NClob\", TraceObject.CLOB, id, \"getNClob(\" + columnIndex + \")\");\n Value v = get(columnIndex);\n return v == ValueNull.INSTANCE ? null : new JdbcClob(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public Clob getClob(String columnName) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.CLOB);\n debugCodeAssign(\"Clob\", TraceObject.CLOB, id, \"getClob(\" + quote(columnName) + \")\");\n Value v = get(columnName);\n return v == ValueNull.INSTANCE ? null : new JdbcClob(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Test\n public void testClaimLobCd() {\n new ClaimFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissClaim.Builder::setLobCdEnum,\n claim -> String.valueOf(claim.getLobCd()),\n FissBillFacilityType.BILL_FACILITY_TYPE_HOME_HEALTH,\n \"3\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissClaim.Builder::setLobCdUnrecognized,\n claim -> String.valueOf(claim.getLobCd()),\n RdaFissClaim.Fields.lobCd,\n 1);\n }",
"public static boolean plainText(Comparable value) {\r\n return value != null && value.toString().matches(REGEX_PLAINTEXT);\r\n }",
"private boolean hasEncodedProperties(Properties props) {\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tEnumeration keys = props.keys();\n\t\twhile(keys.hasMoreElements()){\n\t\t\tString key = (String) keys.nextElement();\n\t\t\tString propValue = props.getProperty(key);\n\t\t\tif(propValue.startsWith(ENC_PREFIX)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean isLenientProperties() {\n return true;\n }",
"private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }",
"private static boolean checkValue(String rawValue) {\n\t\trawValue = rawValue.trim();\n\t\tif (!rawValue.startsWith(\"\\\"\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!rawValue.endsWith(\"\\\"\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t}",
"@Test\n\tpublic void testValidateOk() {\n\t\tRapidBean bean = createTestBean(\"Bl�mel\", \"Martin\", \"19641014\");\n\t\tPropertyCollection prop = this\n\t\t\t\t.createCollectionProperty(\"<property name=\\\"test\\\"\" + \" targettype=\\\"TestBean\\\"\" + \" />\");\n\t\tprop.validate(bean);\n\t}",
"private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }",
"public NClob getNClob(String columnName) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.CLOB);\n debugCodeAssign(\"NClob\", TraceObject.CLOB, id, \"getNClob(\" + columnName + \")\");\n Value v = get(columnName);\n return v == ValueNull.INSTANCE ? null : new JdbcClob(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@OfMethod({\"setNClob(java.lang.String,java.io.Reader)\",\n \"setNClob(int,java.io.Reader)\",\n \"setNClob(java.lang.String,java.io.Reader,int)\",\n \"setNClob(java.lang.String,java.io.Reader,long)\",\n \"setNClob(int,java.io.Reader,int)\",\n \"setNClob(int,java.io.Reader,long)\"})\n public void testSetNClob() throws Exception {\n String parameterName = getParameterName();\n int parameterIndex = getParameterIndex();\n CallableStatement instance = newClosedCall();\n NClob nclob = newConnection().createNClob();\n Reader reader = new StringReader(\"1\");\n nclob.setString(1, \"1\");\n long longLength = 1L;\n\n try {\n instance.setNClob(parameterName, nclob);\n fail(\"Allowed set nclob by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterName, reader);\n fail(\"Allowed set nclob using reader by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterIndex, nclob);\n fail(\"Allowed set nclob by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterIndex, reader);\n fail(\"Allowed set nclob using reader by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterName, reader, longLength);\n fail(\"Allowed set nclob using reader and long length by parameter name after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNClob(parameterIndex, reader, longLength);\n fail(\"Allowed set nclob using reader and long length by parameter index after close\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"@Override\n\tpublic boolean canSetLiteral() {\n\t\treturn heldObj.canSetLiteral();\n\t}",
"@Override\n\tpublic void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}",
"public final boolean hasLiteralValue ()\r\n {\r\n return _value.isLiteral();\r\n }",
"public static String clobStringConversion(Clob clb) throws Exception {\n\t\tif (clb == null) return \"\";\n\t\tStringBuffer str = new StringBuffer();\n\t\tString strng;\n\t\tBufferedReader bufferRead = new BufferedReader(clb.getCharacterStream());\n\t\twhile ((strng = bufferRead.readLine()) != null)\n\t\t\tstr.append(strng);\n\t\tbufferRead.close();\n\t\treturn str.toString();\n\t}",
"private static boolean isLengthValue(String pageSizeChunk) {\n return CssUtils.isMetricValue(pageSizeChunk) || CssUtils.isRelativeValue(pageSizeChunk);\n }",
"boolean hasStringValue();",
"public boolean isCValueEditable();",
"boolean shouldReadValue();",
"protected boolean evaluateCompleteMatch(SerializationState state, Object containingObject, PropertySerializabilityMetadata metadata, String childPropertyName, Object childPropertyValue) {\r\n if (metadata.getPropertySerializability().equals(PropertySerializability.SERIALIZE_OBJECT_AND_ALL_PRIMITIVES)) {\r\n if (isPrimitiveObject(childPropertyValue)) {\r\n return true;\r\n }\r\n }\r\n return metadata.getSerializableChildProperty(childPropertyName) != null;\r\n }",
"boolean isSetString();",
"protected boolean acceptInternal(Object propertyValue) {\r\n if (propertyValue == null && value == null) {\r\n return true;\r\n }\r\n if (propertyValue != null\r\n && value != null\r\n && ((String) propertyValue).endsWith(value)) {\r\n return true;\r\n }\r\n return false;\r\n }",
"@Test\n public void test_column_type_detection_strings_03() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\", XSDDatatype.XSDstring), true, Types.NVARCHAR, String.class.getCanonicalName());\n }",
"private static boolean validateString(Map.Entry<String, CheckState> entry) {\n String prop = System.getProperty(entry.getKey());\n if (entry.getValue().isOptional && prop == null) {\n return true;\n }\n return prop != null && !\"\".equals(prop);\n }",
"@Override\r\n\t\tpublic NClob createNClob() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"protected boolean handleSpecialSetter(String bean, String value) throws OxyException {\r\n if (bean == \"name\") {\r\n setName(value);\r\n return true;\r\n } else if (bean == \"focused\") {\r\n if (\"true\".equals(value))\r\n grabFocus();\r\n else if (\"false\".equals(value))\r\n releaseFocus();\r\n else\r\n throw new OxyException(\"cannot parse focus with value \"+value);\r\n return true;\r\n } else if (bean == \"top\") {\r\n setTop(toFloat(bean, value));\r\n return true;\r\n } else if (bean==\"left\") {\r\n setLeft(toFloat(bean, value));\r\n return true;\r\n } else if (bean==\"bottom\") {\r\n setBottom(toFloat(bean, value));\r\n return true;\r\n } else if (bean==\"right\") {\r\n setRight(toFloat(bean, value));\r\n return true;\r\n } else if (bean == \"background\") {\r\n setBackground(Doc.parseColor(value));\r\n return true;\r\n } else if (bean == \"foreground\") {\r\n setForeground(Doc.parseColor(value));\r\n return true;\r\n } else if (bean == \"toolTipText\") {\r\n setToolTipText(value);\r\n return true;\r\n } else if (bean == \"theme\") {\r\n return true;\r\n } else if (bean == \"disabledForeground\") {\r\n setDisabledForeground(Doc.parseColor(value));\r\n return true;\r\n } else if (bean == \"next_up\") {\r\n upstr = value;\r\n return true;\r\n } else if (bean == \"next_left\") {\r\n leftstr = value;\r\n return true;\r\n } else if (bean == \"next_down\") {\r\n downstr = value;\r\n return true;\r\n } else if (bean == \"next_right\") {\r\n rightstr = value;\r\n return true;\r\n } else if (bean == \"class\" || bean == \"factory\") {\r\n return true;\r\n } else\r\n return false;\r\n }",
"public Clob getClob(String colName) throws SQLException\n {\n return m_rs.getClob(colName);\n }",
"@Test(timeout = 4000)\n public void test126() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(\"CLOB\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"CLOB\", defaultDBTable0, dBDataType0, integer0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"#B0tMDNkWiXCI3n\");\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }",
"private static boolean isCharacterType(int jdbcType) {\r\n\r\n switch (jdbcType) {\r\n case Types.CHAR:\r\n case Types.VARCHAR:\r\n case Types.LONGVARCHAR:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n }",
"@Test\n public void test_column_type_detection_strings_04() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\", TypeMapper.getInstance().getSafeTypeByName(\"http://datatypes/custom\")), true, Types.NVARCHAR, String.class.getCanonicalName());\n }",
"@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}",
"public boolean isProperty(String classPath, String fieldName)\n throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError\n {\n final JDOField field = getJDOField(classPath, fieldName);\n return (field != null && field.isProperty());\n }",
"private static void bindClobVarInFile(PreparedStatement ps, \n int index, \n ResultSet rs,\n int type)\n throws IOException, SQLException \n {\n InputStream is = rs.getAsciiStream(index);\n if (rs.wasNull()) {\n ps.setNull(index, type);\n return;\n }\n \n // Open file output stream\n long millis = System.currentTimeMillis();\n File f = File.createTempFile(\"clob\", \"\"+millis);\n f.deleteOnExit();\n FileOutputStream fos = new FileOutputStream(f);\n if (log.isDebugEnabled()) {\n //i18n[DBUtil.info.bindclobfile=bindClobVarInFile: Opening temp file '{0}']\n String msg = s_stringMgr.getString(\"DBUtil.info.bindclobfile\",\n f.getAbsolutePath());\n log.debug(msg);\n }\n \n // read rs input stream write to file output stream\n byte[] buf = new byte[_prefs.getFileCacheBufferSize()];\n int length = 0;\n int total = 0;\n while ((length = is.read(buf)) >= 0) {\n if (log.isDebugEnabled()) {\n //i18n[DBUtil.info.bindcloblength=bindClobVarInFile: writing '{0}' bytes.]\n String msg =\n s_stringMgr.getString(\"DBUtil.info.bindcloblength\",\n Integer.valueOf(length));\n log.debug(msg);\n }\n fos.write(buf, 0, length);\n total += length;\n }\n fos.close();\n \n // set the ps to read from the file we just created.\n FileInputStream fis = new FileInputStream(f);\n BufferedInputStream bis = new BufferedInputStream(fis);\n ps.setAsciiStream(index, bis, total);\n }",
"boolean isSetValueString();",
"@Test\n public void test_column_type_detection_strings_02() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\", \"en\", false), true, Types.NVARCHAR, String.class.getCanonicalName());\n }",
"@Override\n\tpublic boolean supports(Object value) {\n\t\treturn value != null && (value instanceof String);\n\t}",
"private boolean m16125a(Object obj) {\n return obj == null || obj.toString().equals(\"\") || obj.toString().trim().equals(\"null\");\n }",
"public static boolean isBinaryType(TableColumnInfo columnInfo) {\n boolean result = false;\n int type = columnInfo.getDataType();\n if (type == Types.BINARY\n || type == Types.BLOB\n || type == Types.LONGVARBINARY\n || type == Types.VARBINARY)\n {\n result = true;\n }\n return result;\n }",
"public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {\n currentPreparedStatement.setClob(parameterIndex, reader, length);\n\n }",
"public static boolean avoidSpecialCharsInFieldNames() {\n\t\treturn PROP_SEP_LEN > 1;\n\t}",
"protected void validateProperty(String name, PolylineMapObject line) throws RuntimeException {\n if (line.getProperties().get(name) == null)\n throw new RuntimeException(\"Property '\" + name + \"' not found when loading platform\");\n\n String value = line.getProperties().get(name).toString();\n\n /*if (value == null)\n throw new RuntimeException(\"Property '\" + name + \"' must be != NULL\");*/\n\n if (value.trim().length() == 0)\n throw new RuntimeException(\"Property '\" + name + \"' cannot be empty\");\n }",
"@Test\n public void test_column_type_detection_strings_01() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\"), true, Types.NVARCHAR, String.class.getCanonicalName());\n }",
"public static boolean isCharacterStreamAssignable(int jdbcType) {\r\n // currently, we support the same types for ASCII streams and\r\n // character streams\r\n return isAsciiStreamAssignable(jdbcType);\r\n }",
"@Override\n\tpublic void setNClob(int parameterIndex, Reader reader) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic IClob getClob(int arg0) throws OdaException {\n\t\treturn null;\n\t}",
"public static boolean AposAttrValueContent(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposAttrValueContent\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, APOS_ATTR_VALUE_CONTENT, \"<apos attr value content>\");\n r = AposAttrContentChar(b, l + 1);\n if (!r) r = CommonContent(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public boolean supportsRowValueConstructorSyntax() {\n \t\t// return false here, as most databases do not properly support this construct...\n \t\treturn false;\n \t}",
"protected boolean evaluatePartialMatch(SerializationState state, int lastMatchedStateIndex, Object containingObject, PropertySerializabilityMetadata metadata, String childPropertyName, Object childPropertyValue) {\r\n\r\n if (metadata.getPropertySerializability().equals(PropertySerializability.SERIALIZE_OBJECT_AND_ALL_PRIMITIVES)) {\r\n return isPrimitiveObject(childPropertyValue);\r\n }\r\n return false;\r\n }",
"public static boolean isCycLObject(Object obj) {\n return (obj instanceof CycObject ||\n obj instanceof InferenceParameters ||\n obj instanceof Boolean ||\n obj instanceof String ||\n obj instanceof Integer ||\n obj instanceof Long ||\n obj instanceof BigInteger ||\n obj instanceof Guid || //@hack this is wrong GUIDs are not CycL objects --APB\n obj instanceof Float ||\n obj instanceof Double);\n }",
"public boolean propertyConformsTo(PBmmSchema schema, PBmmProperty<?> aChildProperty, PBmmProperty<?> aParentProperty) {\n if(aParentProperty instanceof PBmmSingleProperty && ((PBmmSingleProperty) aParentProperty).getTypeRef().getType().equalsIgnoreCase(BmmDefinitions.ANY_TYPE)) {\n return true;\n }\n else if (aChildProperty.getName().equalsIgnoreCase(aParentProperty.getName())) {\n //Properties names are the same\n if (aChildProperty instanceof PBmmSingleProperty && aParentProperty instanceof PBmmSingleProperty) {\n PBmmSingleProperty aChildSingleProperty = (PBmmSingleProperty)aChildProperty;\n PBmmSingleProperty aParentSingleProperty = (PBmmSingleProperty)aParentProperty;\n return typeStrictlyConformsTo(schema, aChildSingleProperty.getTypeRef().getType(), aParentSingleProperty.getTypeRef().getType());\n }\n else if (aParentProperty instanceof PBmmSingleProperty) {\n if (aChildProperty instanceof PBmmSinglePropertyOpen) {\n //If both properties have the same name and are both open properties, then they do not conform.\n return false;\n }\n else if(aChildProperty instanceof PBmmSingleProperty) {\n return true;\n //TODO FIXME: proper type conformance to constraining generic type needs to be checked here\n }\n }\n else if (aChildProperty instanceof PBmmContainerProperty && aParentProperty instanceof PBmmContainerProperty) {\n PBmmContainerProperty aChildContainerProperty = (PBmmContainerProperty)aChildProperty;\n PBmmContainerProperty aParentContainerProperty = (PBmmContainerProperty)aParentProperty;\n return typeStrictlyConformsTo(schema, aChildContainerProperty.getTypeRef().asTypeString(), aParentContainerProperty.getTypeRef().asTypeString());\n }\n else if (aChildProperty instanceof PBmmGenericProperty && aParentProperty instanceof PBmmGenericProperty) {\n PBmmGenericProperty aChildGenericProperty = (PBmmGenericProperty)aChildProperty;\n PBmmGenericProperty aParentGenericProperty = (PBmmGenericProperty)aParentProperty;\n return typeStrictlyConformsTo(schema, aChildGenericProperty.getTypeRef().asTypeString(), aParentGenericProperty.getTypeRef().asTypeString());\n }\n }\n return false;\n }",
"private boolean isPropertyRelevant(String property) {\n return relevantProperties == null || relevantProperties.contains(property);\n }",
"protected final void verifyWriteCData()\n throws XMLStreamException\n {\n // Not legal outside main element tree:\n if (mCheckStructure) {\n if (inPrologOrEpilog()) {\n reportNwfStructure(ErrorConsts.WERR_PROLOG_CDATA);\n }\n }\n // 08-Dec-2005, TSa: validator-based validation?\n if (mVldContent <= XMLValidator.CONTENT_ALLOW_WS) {\n // there's no ignorable white space CDATA...\n reportInvalidContent(CDATA);\n }\n }",
"protected boolean isObjectDataBinding(String text)\n\t{\n\t\tif (text!= null && RegexpPatterns.REGEXP_CRUX_OBJECT_DATA_BINDING.matcher(text).matches())\n\t\t{\n\t\t\tString[] parts = ViewFactoryCreator.getDataObjectParts(text);\n\t\t\treturn (DataObjects.getDataObject(parts[0]) != null);\n\t\t}\n\t\treturn false;\n\t}",
"public T caseDefinitionExpPropertyCS(DefinitionExpPropertyCS object) {\r\n return null;\r\n }",
"@Override\n\tpublic boolean hasLiteral() {\n\t\treturn heldObj.hasLiteral();\n\t}",
"public String verifyCssProperty(String object, String data) {\n\t\ttry {\n\t\t\n\t\t\twaitForPageLoad(driver);\n\t\t\t\n\t\t\tString property[] = data.split(\":\",2);\n\t\t\tString exp_prop = property[0];\n\t\t\tString exp_value = property[1];\n\t\t\tboolean flag = false;\n\t\t\tString prop = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getCssValue(exp_prop);\n\t\t\tlogger.debug(prop);\n\t\t\tlogger.debug(exp_value);\n\t\t\tif (prop.trim().equals(exp_value.trim())) \n\t\t\t{\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\tif (flag)\n\t\t\t\t\treturn Constants.KEYWORD_PASS + \"--actvalue-\" + prop + \"--expectes-\" + exp_value;\n\t\t\telse\n\t\t\t\t\treturn Constants.KEYWORD_FAIL;\n\t\t} \t\ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" \" + e.getMessage();\n\t\t}\n\t}",
"@Test\n public void testGetProperty_String_String() throws Exception {\n String key = \"doesn't exist\";\n String defaultValue = \"default\";\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n String expResult = \"default\";\n String result = instance.getProperty(key, defaultValue);\n assertEquals(expResult, result);\n }",
"public Boolean getBooleanProperty(\n String caseFolderPath,\n String TOS,\n String symbolicPropertyName) throws Exception {\n\n UserContext old = UserContext.get();\n CaseMgmtContext oldCmc = null;\n Subject sub = Subject.getSubject(AccessController.getContext());\n String ceURI = null;\n Boolean retValue = null;\n\n try {\n ceURI = filenet.vw.server.Configuration.GetCEURI(null, null);\n Connection connection = Factory.Connection.getConnection(ceURI);\n\n // setting up user context\n UserContext uc = new UserContext();\n uc.pushSubject(sub);\n UserContext.set(uc);\n\n EntireNetwork entireNetwork = Factory.EntireNetwork.fetchInstance(connection, null);\n\n if (entireNetwork == null) {\n Exception e = new Exception(\"Cannot log in to \" + ceURI);\n logException(e);\n }\n\n // retrieve target object store\n Domain domain = entireNetwork.get_LocalDomain();\n ObjectStore targetOS = (ObjectStore) domain.fetchObject(\n ClassNames.OBJECT_STORE,\n TOS,\n null);\n\n // setting up CaseMmgtContext for Case API\n SimpleVWSessionCache vwSessCache = new SimpleVWSessionCache();\n CaseMgmtContext cmc = new CaseMgmtContext(vwSessCache, new SimpleP8ConnectionCache());\n oldCmc = CaseMgmtContext.set(cmc);\n\n ObjectStoreReference targetOsRef = new ObjectStoreReference(targetOS);\n\n // retrieve case folder\n Folder folder = Factory.Folder.fetchInstance(targetOsRef.getFetchlessCEObject(),\n caseFolderPath,\n null);\n\n Id caseId = folder.get_Id();\n\n // retrieve case\n Case cs = Case.getFetchlessInstance(targetOsRef, caseId);\n\n // set property value\n retValue = (Boolean) cs.getProperties().getObjectValue(symbolicPropertyName);\n cs.save(RefreshMode.REFRESH, null, ModificationIntent.MODIFY);\n } catch (Exception e) {\n logException(e);\n } finally {\n if (oldCmc != null) {\n CaseMgmtContext.set(oldCmc);\n }\n\n if (old != null) {\n UserContext.set(old);\n }\n }\n\n return retValue;\n }",
"@Override\n public final boolean loadProperties() {\n if (props == null) {\n return false;\n }\n\n if (!loadFile()) {\n return false;\n }\n\n if (!loadFields()) {\n return false;\n }\n\n if (!loadFieldWidths()) {\n return false;\n }\n\n if (!loadTableName()) {\n return false;\n }\n\n if (!loadPkey()) {\n return false;\n }\n\n loadFieldOffsets();\n\n loadBatchSize();\n\n loadColumnTypes();\n\n loadRowValidator();\n // load column names. where they follow a given pattern.\n // load table name.\n\n return true;\n }",
"@Test\n public void test_column_type_detection_strings_05() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createURI(\"http://example.org\"), true, Types.NVARCHAR, String.class.getCanonicalName());\n }",
"public boolean isProperty();",
"protected boolean isSupportedProperty(String propertyName, Namespace namespace) {\n if (!WebdavConstants.DAV_NAMESPACE.equals(namespace)) {\n return true;\n }\n \n return DAV_PROPERTIES.contains(propertyName);\n }",
"public boolean isBinaryEncoding()\r\n\t{\r\n\t\treturn binary != null;\r\n\t}",
"public boolean isCValueValid();",
"public void cargaClob() throws Exception {\n\t\t// Suponiendo que tenemos una conexion de tipo java.sql.Connection que\n\t\t// apunta a un H2 o a un Oracle.\n\t\tConnection conn = Conexion.establecerConexion();\n\t\tString texto = \"<h4 align=\\\"center\\\">Licencia de productos satelitales LANDSAT - Created Commons V 3.0<br>\\nLa persona que firma esta licencia, acepta haber leIdo el acuerdo de licenciamiento que a continuaci�n se detalla y entiende que el incumplimiento de este acuerdo con el cual se protegen los derechos de autor, puede acarrear sanciones disciplinarias, legales y penales vigentes en la Republica de Colombia<//h4>\\n<ol>\\n<li><p>Acuerdo de Licenciamiento\\nEste Acuerdo publica los procedimientos aplicables a los datos de sensores remotos tomados por NASA (Administraci�n Nacional de Aeron�utica y del Espacio del Gobierno) Agencia del Gobierno de Los Estados Unidos de America - USA, quienes distribuyen a traves del EROS DATA CENTER de forma gratuita los datos de IMAGENES MODIS y para los cuales los usuarios debe conocer que estos datos se distribuyen bajo el acuerdo de licenciamiento de Created Commons V 3.0, es decir La obra (como se define a continuacion) segun las condiciones de esta licencia publica creative commons (\\\"CCPL\\\" o \\\"licencia\\\"). La obra esta protegida por derechos de autor y//u otras leyes aplicables, cualquier uso de la obra diferente a lo autorizado abajo esta prohibido.\\n\\nAl ejercer cualquier derecho a la obra, usted acepta y se compromete a respetar los terminos de esta licencia, en la medida en esta licencia puede ser considerado un contrato, el licenciante le concede los derechos contenidos en consideracion de su aceptaci�n de los terminos y condiciones\\n.<//li><//p>\\n<li><p>Parte 1: DEFINICIONES\\n\\\"Adaptacion\\\" significa una obra basada en el trabajo, o sobre la Obra y otras obras preexistentes tales como una traducci�n, adaptaci�n, trabajo derivado, el arreglo de la musica u otras alteraciones de una obra literaria o artistica, o de un fonograma o de rendimiento y incluye adaptaciones cinematograficas o cualquier otra forma en la cual la Obra puede ser reformulada, transformada o adaptada incluyendo cualquier forma reconocible derivada del original, excepto que una obra que constituye una Coleccion no sera considerada una Obra Derivada a los efectos de esta Licencia. Para evitar dudas, cuando la Obra es una obra musical o fonograma, la sincronizacion de la Obra en una relaci�n temporal con una imagen en movimiento (\\\"sincronizacion\\\") sera considerado como una adaptacion a los efectos de esta Licencia.\\n \\\"Coleccion\\\" significa un conjunto de obras literarias o art�sticas, tales como enciclopedias y antologias, o interpretaciones o ejecuciones, fonogramas o emisiones, u otras obras o prestaciones distintas de las obras que figuran en la Seccion 1 (f) a continuaci�n y que, por razon de la seleccion y la disposicion de las materias, constituyan creaciones de caracter intelectual, en los que se incluye el trabajo en su totalidad, sin modificaci�n, junto con uno o mas de otras contribuciones que constituyen obras, cada una separadas e independientes en si mismas, que en conjunto estan reunidos en un todo colectivo. Una obra que constituye una Coleccion no sera considerada una Obra Derivada (como se define mas arriba) a los efectos de esta Licencia.\\n \\\"Distribuir\\\" significa poner a disposicion del publico en general. Original y las copias de la obra o adaptacion, en su caso, a traves de la venta u otra transferencia de propiedad.\\n \\\"Licenciante\\\" es la persona, personas, entidad o entidades que la oferta(n) la Obra bajo los terminos de esta Licencia.\\n \\\"Autor Original\\\", en el caso de una obra literaria o artistica, el individuo, las personas, entidad o entidades que crearon el trabajo o si ninguna persona o entidad puede ser identificado, el editor, y adem�s (i) en el caso de una interpretacion de los actores, cantantes, misicos, bailarines y otras personas que representen, canten, reciten, declamen, interpreten o ejecuten en cualquier forma obras literarias o artisticas o expresiones del folclore, (ii) en el caso de un fonograma, el productor es la persona o entidad juridica que fija por primera vez los sonidos de una ejecucion u otros sonidos, y, (iii) en el caso de las emisiones, la organizaci�n que transmite la emision.\\n \\\"Obra\\\" significa la obra literaria y // o artisticas ofrece bajo los terminos de esta licencia incluyendo, sin limitacion, cualquier produccion en el campo literario, cientifico y artistico, cualquiera que sea el modo o forma de expresi�n, incluido el formato digital, como por ejemplo un libro , un folleto y otras por escrito, una conferencia de trabajo, direccion, sermon u otra de la misma naturaleza, una obra dramatica o dramatico-musicales, una obra coreografica o de entretenimiento en un espectaculo mudo, una composici�n musical con letra o sin ella, la obra cinematografica a la que se asimilan las obras expresadas por procedimiento analogo a la cinematografia, una obra de dibujo, pintura, arquitectura, escultura, grabado o litografia; una obra fotografica a la que se asimilan las obras expresadas por procedimiento analogo a la fotografia, una obra de arte aplicado; una ilustraci�n, mapa, plano, croquis o en tres dimensiones de trabajo relativas a la geografia, topografia, arquitectura o las ciencias; una actuacion, una emision, un fonograma, una recopilacion de los datos en la medida en que esta protegida como una obra de derechos de autor, o un trabajo realizado por una variedad o un artista de circo en la medida en que no sea considerado una obra literaria o artistica.\\n \\\"Usted\\\" significa un individuo o entidad ejerciendo los derechos bajo esta Licencia quien previamente no ha violado los t�rminos de esta Licencia con respecto a la Obra, o que ha recibido el permiso expreso del Licenciante para ejercer derechos bajo esta Licencia pese a una violacion anterior.\\n \\\"Comunicar publicamente\\\" significa realizar el rezo publico de la obra y comunicar al publico los relatos publicos, por cualquier medio o procedimiento, incluso por medios al�mbricos o inalambricos o la ejecucion digital p�blica, poner a disposicion de las obras publicas, de tal manera que los miembros del publico puedan acceder a estas obras desde el lugar y en un lugar que ellos elijan, para llevar a cabo la obra al publico por cualquier medio o procedimiento y la comunicaci�n al publico de las actuaciones de la Obra, incluyendo la publica digital rendimiento, para transmitir y retransmitir la obra por cualquier medio, incluyendo signos, sonidos o imagenes.\\n \\\"Reproducir\\\" significa hacer copias de la obra por cualquier medio, incluyendo sin limitaci�n, mediante grabaciones sonoras o visuales, y el derecho de la fijaci�n y reproducci�n de las fijaciones de la Obra, incluido el almacenamiento de una interpretacion o ejecucion protegida o de un fonograma en forma digital o cualquier otro medio electronico.\\n. <//li><//p>\\n<li><p>Parte 2: Feria de los Derechos Autor. Nada en esta licencia tiene por objeto reducir, limitar, o restringir los usos libres de derechos de autor o los derechos derivados de limitaciones o excepciones que se preven en relacion con la proteccion de los derechos de autor bajo la ley de derechos de autor u otras leyes aplicables.<//li><//p>\\n<li><p>Parte 3: Concesion de licencia. Sujeto a los terminos y condiciones de esta Licencia, el Licenciante otorga a Usted una licencia mundial, libre de regalias, licencia no exclusiva, perpetua (por la duracion de los derechos de autor) para ejercer los derechos en el trabajo como se indica a continuacion:\\n - para reproducir la Obra, para incorporar la Obra en una o mas colecciones, ya reproducir la Obra incorporada en las colecciones;\\n - para crear y reproducir adaptaciones a condicion de que cualquier adaptacion tales, incluida cualquier traduccion en cualquier medio, toma medidas razonables para etiquetar claramente, delimitar o identificar que los cambios se hicieron para la obra original. Por ejemplo, una traduccion debe marcarse como \\\"La obra original fue traducida del Ingles al Espa�ol\\\", o una modificacion podria indicar \\\"La obra original ha sido modificado.\\\";\\n - para distribuir y comunicar publicamente la obra, incluyendo las incorporadas en las colecciones, y,\\n - para distribuir y ejecutar publicamente adaptaciones.\\n - Para evitar dudas:\\n\tIrrenunciable Esquemas licencia obligatoria. En aquellas jurisdicciones en las que el derecho a cobrar regalias a traves de cualquier sistema de licencias legales u obligatorio no se puede renunciar, el licenciador se reserva el derecho exclusivo de recaudar las regalias para cualquier ejercicio de su de los derechos garantizados por esta Licencia;\\n \tRenunciable Esquemas licencia obligatoria. En aquellas jurisdicciones en las que se puede el derecho a cobrar regalias a traves de cualquier sistema de licencias legales u obligatorias renunciado, el Licenciante renuncia al derecho exclusivo de recaudar las regalias de cualquier ejercicio de su de los derechos concedidos bajo esta licencia, y,\\n \tPlanes voluntarios de licencia. El Licenciante renuncia al derecho a cobrar regalias, ya sea individualmente o, en caso de que el Licenciante sea miembro de una sociedad de gestion colectiva que administra los regimenes voluntarios de concesion de licencias, a traves de esa sociedad, de cualquier ejercicio, por su parte de los derechos concedidos bajo esta Licencia.\\nLos derechos mencionados anteriormente pueden ser ejercidos en todos los medios y formatos, actualmente conocidos o por conocer. Los derechos antes mencionados incluyen el derecho a efectuar las modificaciones que sean tecnicamente necesarias para ejercer los derechos en otros medios y formatos. Sujeto a la Seccion 8 (f), todos los derechos no concedidos expresamente por el licenciador quedan reservados.\\n.<//li><//p>\\n<li><p>Parte 4: Restricciones. La licencia otorgada en la anterior Seccion 3 esta expresamente sujeta y limitada por las siguientes restricciones:\\na. Usted puede distribuir o comunicar publicamente la Obra solo bajo los terminos de esta Licencia. Usted debe incluir una copia de, o el Uniform Resource Identifier (URI), esta Licencia con cada copia de la Obra que Usted distribuya o ejecute publicamente. Usted no podra ofrecer o imponer ninguna condicion sobre la Obra que pueda restringir los terminos de esta licencia o la capacidad del beneficiario de la Obra para ejercer los derechos otorgados al receptor bajo los terminos de la licencia.Usted no puede sublicenciar la Obra. Usted debe mantener intactos todos los anuncios que se refieran a esta Licencia ya la limitacion de las garantias con cada copia de la Obra que Usted distribuya o ejecute publicamente. Cuando Usted distribuya o ejecute publicamente la Obra, Usted no puede imponer cualquier medida tecnologica efectiva sobre el trabajo que restringen la capacidad de un receptor de la Obra por el ejercicio de los derechos otorgados al receptor bajo los terminos de la licencia. Esta seccion 4 (a) se aplica a la Obra cuando es incorporada en una coleccion, pero esto no requiere que la coleccion, aparte de la obra misma quede sujeta a los terminos de esta Licencia. Si Usted crea una coleccion, previo aviso de cualquier Licenciante debe, en la medida de lo posible, quitar de la coleccion de cualquier credito requerido en la Seccion 4 (b), conforme a lo solicitado. Si Usted crea una Obra Derivada, previo aviso de cualquier Licenciante Usted debe, en la medida de lo posible, eliminar de la adaptacion de cualquier credito requerido en la Seccion 4 (b), conforme a lo solicitado.\\nb. Si usted distribuye o ejecuta publicamente la Obra o las adaptaciones o colecciones, para que, a menos que una solicitud ha sido hecha de conformidad con la Seccion 4 (a), mantenga intactos todos los avisos de derechos de autor para la Obra y proporcionar, razonable segun el medio o medios Usted este utilizando: (i) el nombre del autor original (o seudonimo, en su caso) si fue suministrado, y // o si el autor original y // o el Licenciante designa otra parte o partes (por ejemplo, un instituto patrocinador, editorial, una revista) para la atribucion (\\\"Partes del Reconocimiento\\\") en la nota de derechos de autor del Licenciante, terminos de servicio o por cualquier otro medio, el nombre de dicha parte o partes, (ii) el titulo de la obra si fue suministrado, (iii) en la medida en que sea posible, de la URI, en su caso, que el Licenciante especifica para ser asociado con la Obra, a menos que tal URI no se refiere a la nota de copyright o de la informacion de licencia para el trabajo, y (iv), de conformidad con la Seccion 3 (b), en el caso de una obra derivada, un aviso que identifique el uso de la Obra en la adaptacion (por ejemplo, \\\"Traduccion Francesa de la Obra del Autor Original,\\\" o \\\"guion basado en obra original de Autor Original\\\"). El credito requerido por esta Seccion 4 (b) puede ser implementado de cualquier forma razonable, siempre que, sin embargo, que en el caso de una adaptacion o una coleccion, a un minimo tal credito aparecera, si un credito para todos los autores que contribuyeron a la adaptacion o Coleccion aparece, a continuacion, como parte de estos creditos y de una manera al menos tan destacada como los creditos para los demas autores que contribuyeron. Para evitar dudas, usted solo podra utilizar el credito requerido por esta Seccion con el proposito de reconocimiento en la forma prevista anteriormente y, al ejercer sus derechos bajo esta Licencia, no podra implicita o explicitamente afirmar o implicar la conexion con, patrocinio o respaldo por parte del Autor Licenciante y // o partes de atribucion, en su caso, de usted o su uso de la obra, sin el permiso independiente, expreso, previo y por escrito de, el autor original Licenciante y // o partes de atribucion.\\nc. Salvo acuerdo en contrario por escrito por el Concedente o como puede ser permitido por la ley aplicable, en caso de que se reproduzca, distribuya o ejecute publicamente la Obra, ya sea por si mismo o como parte de las adaptaciones o colecciones, no deben modificarse, mutilarse, modificar o tomar cualquier otra accion despectiva en relacion con el trabajo que seria perjudicial para el honor del autor original o la reputacion. Licenciante de acuerdo en que en esas jurisdicciones (por ejemplo, Japon), en el que cualquier ejercicio del derecho otorgado en la Seccion 3 (b) de esta licencia (el derecho a hacer adaptaciones) se considera una deformacion, mutilacion, modificacion o accion que atente otra perjudicial para el honor del autor original y la reputacion, el Licenciante renuncia o afirmar que no, segun proceda, la presente seccion, en la maxima medida permitida por la legislacion nacional aplicable, para que pueda ejercer razonablemente su derecho en virtud de la Seccion 3 (b) de esteLicencia (derecho a hacer adaptaciones) pero por lo demas no.\\n<//li><//p>\\n<li><p>Parte 5: Representaciones, Garantias y Limitacion de Responsabilidad. A MENOS QUE SE ACUERDE MUTUAMENTE POR ESCRITO ENTRE LAS PARTES, EL LICENCIANTE OFRECE LA OBRA TAL COMO ESTA Y NO HACE NINGUNA REPRESENTACION O GARANTIA DE NINGUN TIPO RESPECTO DE LA OBRA, EXPRESA, IMPLICITA, LEGAL O DE OTRO TIPO, INCLUYENDO, SIN LIMITACION, GARANTIAS DE TITULO, COMERCIALIZACION, IDONEIDAD PARA UN PROPOSITO PARTICULAR, NO INFRACCION, O LA AUSENCIA DE DEFECTOS LATENTES O DE OTRO TIPO, EXACTITUD, O LA PRESENCIA O AUSENCIA DE ERRORES, SEAN O NO SER DESCUBIERTOS. ALGUNAS JURISDICCIONES NO PERMITEN LA EXCLUSION DE GARANTIAS IMPLICITAS, LA EXCLUSION PUEDE NO APLICARSE EN SU CASO.<//li><//p>\\n<li><p>Parte 6:. Limitacion de la responsabilidad. A MENOS QUE LO REQUERIDO POR LAS LEYES APLICABLES, EN NINGUN CASO EL LICENCIANTE SERA RESPONSABLE ANTE USTED POR CUALQUIER OTRA TEORIA LEGAL POR CUALQUIER DA�O ESPECIAL, INCIDENTAL, CONSECUENTE, punitivos o ejemplares, PROVENIENTE DE ESTA LICENCIA O DEL USO DE LA OBRA, AUN CUANDO EL LICENCIANTE HAYA SIDO ADVERTIDO DE LA POSIBILIDAD DE TALES DA�OS.<//li><//p>\\n<li><p>Parte 7: Terminacion. Esta Licencia y los derechos de las concedidas en virtud de ella terminaran automaticamente si Usted incumple cualquiera de los terminos de esta Licencia. Las personas o entidades que hayan recibido obras o colecciones de usted bajo esta Licencia, sin embargo, no veran sus licencias finalizadas, siempre que estos individuos o entidades sigan cumpliendo integramente las condiciones de estas licencias. Las secciones 1, 2, 5, 6, 7, y 8 subsistiran a cualquier terminacion de esta Licencia.\\n Sujeto a los terminos y condiciones anteriores, la licencia otorgada aqui es perpetua (por la duracion de los derechos de autor de la obra). No obstante lo anterior, el Licenciante se reserva el derecho de difundir la Obra bajo diferentes terminos de Licencia o de detener la distribucion de la Obra en cualquier momento, siempre que, sin embargo, que ninguna de tales elecciones servira para revocar esta Licencia (o cualquier otra licencia que haya sido, o se requiere para ser concedida bajo los terminos de esta licencia), y esta licencia continuara en pleno vigor y efecto a menos que termine como se indico anteriormente.\\n<//li><//p>\\n<li><p>Parte 8: Miscelaneo. Cada vez que Usted distribuya o ejecute publicamente la Obra o una Coleccion, el Licenciante ofrecera al destinatario una licencia para la Obra en los mismos terminos y condiciones que la licencia concedida a Usted bajo esta Licencia.\\n Cada vez que Usted distribuya o ejecute publicamente una Obra Derivada, el Licenciante ofrecera al destinatario una licencia para la Obra originaria en los mismos terminos y condiciones que la licencia concedida a Usted bajo esta Licencia.\\n Si alguna disposicion de esta Licencia es invalida o no exigible bajo la ley aplicable, no afectara la validez o exigibilidad del resto de los terminos de esta Licencia, y sin mas accion de las partes de este acuerdo, tal disposicion sera reformada en la lo minimo necesario para que sea valida y exigible.\\n Ningun termino o disposicion de esta Licencia se estimara renunciada y ninguna violacion consentida a menos que tal renuncia o consentimiento figure por escrito y firmado por las partes que seran afectadas por tal renuncia o consentimiento.\\n Esta Licencia constituye el acuerdo completo entre las partes con respecto a la Obra licenciada aqui.No hay entendimientos, acuerdos o representaciones con respecto a la Obra que no esten especificados aqui. El Licenciante no sera obligado por ninguna disposicion adicional que pueda aparecer en cualquier comunicacion proveniente de Usted. Esta Licencia no puede ser modificada sin el mutuo acuerdo por escrito entre el Licenciante y Usted.\\n Los derechos concedidos en virtud de, y hace referencia a la materia, en la presente Licencia se elaboraron utilizando la terminologia de la Convencion de Berna para la Proteccion de las Obras Literarias y Artisticas (en su forma enmendada el 28 de septiembre de 1979), el Convenio de Roma de 1961, el Derecho de Autor de la OMPI Tratado de 1996, la OMPI sobre Interpretacion o Ejecucion y Fonogramas de 1996 y la Convencion Universal sobre Derecho (en su version revisada el 24 de julio de 1971). Estos derechos y prestaciones surtira efecto en la jurisdiccion correspondiente en el que los terminos de licencia se pide que se ejecuten de acuerdo a las disposiciones correspondientes de la aplicacion de las disposiciones de los tratados en la legislacion nacional aplicable. Si el paquete estandar de los derechos concedidos en virtud de la ley derechos de autor incluyen los derechos adicionales no concedidos en virtud de esta licencia, esos derechos adicionales se consideraran incluidos en la licencia, esta licencia no se pretende restringir la licencia de los derechos bajo la ley aplicable.\\n<//li><//p>\\n<//ol>\";\n\n\t\tStringReader lector = new StringReader(texto); // aquí se abre un\n\t\t// InputStream con\n\t\t// la cadena que esta en memoria\n\t\ttry {\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"update red_licencias set LCNC_DESCRIPCION= ? where LCNC_CONSECUTIVO=9\");\n\t\t\tps.setCharacterStream(1, lector, texto.length());\n\t\t\tps.execute();\n\t\t\tconn.close();\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}"
] |
[
"0.6469143",
"0.631128",
"0.63003665",
"0.6013425",
"0.5933275",
"0.5812365",
"0.579753",
"0.55438983",
"0.55304027",
"0.53797126",
"0.5370832",
"0.5323477",
"0.53127795",
"0.528796",
"0.5233543",
"0.5232842",
"0.51975",
"0.51779884",
"0.51312053",
"0.50681114",
"0.5055121",
"0.50000083",
"0.49490103",
"0.49453473",
"0.49101248",
"0.48818523",
"0.48555225",
"0.48422298",
"0.48316762",
"0.48259857",
"0.4807469",
"0.48026508",
"0.47770256",
"0.47669384",
"0.47653082",
"0.47594747",
"0.47348717",
"0.47345057",
"0.47320318",
"0.4722334",
"0.4697253",
"0.46722275",
"0.4671824",
"0.4652224",
"0.46400684",
"0.4629819",
"0.46266985",
"0.46246067",
"0.46017426",
"0.45929408",
"0.45905083",
"0.4589058",
"0.45696217",
"0.45667574",
"0.45620656",
"0.45567244",
"0.4533395",
"0.45297214",
"0.4518",
"0.45096797",
"0.44875666",
"0.4485764",
"0.44797063",
"0.44739276",
"0.44738817",
"0.44716215",
"0.4466991",
"0.44655544",
"0.44648844",
"0.44611123",
"0.4460218",
"0.44588348",
"0.4449854",
"0.44301218",
"0.4425928",
"0.44223866",
"0.44118947",
"0.44091547",
"0.44072294",
"0.440642",
"0.4406072",
"0.43696648",
"0.43692625",
"0.43662876",
"0.4363547",
"0.43625778",
"0.43492094",
"0.4347273",
"0.43386534",
"0.43363672",
"0.43320388",
"0.43270397",
"0.43267357",
"0.43179646",
"0.4315866",
"0.4313895",
"0.431022",
"0.43088666",
"0.43072993",
"0.4298463"
] |
0.68008304
|
0
|
Tests whether an empty CLOB is correctly handled by extractPropertyValue().
|
@Test
public void testExtractPropertyValueCLOBEmpty() throws ConfigurationException, SQLException {
final ResultSet rs = mock(ResultSet.class);
final Clob clob = mock(Clob.class);
when(rs.getObject(DatabaseConfigurationTestHelper.COL_VALUE)).thenReturn(clob);
when(clob.length()).thenReturn(0L);
final DatabaseConfiguration config = helper.setUpConfig();
assertEquals("", config.extractPropertyValue(rs));
verify(rs).getObject(DatabaseConfigurationTestHelper.COL_VALUE);
verify(clob).length();
verifyNoMoreInteractions(rs, clob);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic boolean handlesNullVsEmptyLOBs() {\n\t\treturn false;\n\t}",
"@Test\n public void testExtractPropertyValueCLOB() throws ConfigurationException, SQLException {\n final ResultSet rs = mock(ResultSet.class);\n final Clob clob = mock(Clob.class);\n final String content = \"This is the content of the test CLOB!\";\n\n when(rs.getObject(DatabaseConfigurationTestHelper.COL_VALUE)).thenReturn(clob);\n when(clob.length()).thenReturn(Long.valueOf(content.length()));\n when(clob.getSubString(1, content.length())).thenReturn(content);\n\n final DatabaseConfiguration config = helper.setUpConfig();\n assertEquals(content, config.extractPropertyValue(rs));\n\n verify(rs).getObject(DatabaseConfigurationTestHelper.COL_VALUE);\n verify(clob).length();\n verify(clob).getSubString(1, content.length());\n verifyNoMoreInteractions(rs, clob);\n }",
"private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private final boolean emptyVal(String val) {\n return ((val == null) || (val.length() == 0));\n }",
"public boolean isEmpty() {\n\t\tString v = getValue();\n\t\treturn v == null || v.isEmpty();\n\t}",
"private boolean isNonTrivialDataLob(int index) {\n long length = 0L;\n\n if (isNull_[index] ||\n (jdbcTypes_[index] != ClientTypes.BLOB &&\n jdbcTypes_[index] != ClientTypes.CLOB)) {\n return false;\n }\n\n int position = columnDataPosition_[index];\n\n // if the high-order bit is set, length is unknown -> set value to x'FF..FF'\n //if (((dataBuffer_[position]) & 0x80) == 0x80) {\n if ((dataBuffer_.getByte(dataBuffer_.readerIndex()) & 0x80) == 0x80) {\n length = -1;\n } else {\n\n byte[] lengthBytes = new byte[columnDataComputedLength_[index]];\n byte[] longBytes = new byte[8];\n\n// System.arraycopy(dataBuffer_, position, lengthBytes, 0, columnDataComputedLength_[index]);\n dataBuffer_.getBytes(position, lengthBytes, 0, columnDataComputedLength_[index]);\n\n // right-justify for BIG ENDIAN\n int j = 0;\n for (int i = 8 - columnDataComputedLength_[index]; i < 8; i++) {\n longBytes[i] = lengthBytes[j];\n j++;\n }\n length = getLong(longBytes, 0);\n }\n return (length != 0L) ? true : false;\n }",
"public boolean isEmptyComplexValue() {\r\n if(complexValue==null){\r\n return true;\r\n }\r\n return complexValue.isEmpty();\r\n }",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(\"CLOB\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"CLOB\", defaultDBTable0, dBDataType0, integer0);\n defaultDBColumn0.setNullable(false);\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"CLOB CLOB NOT NULL\", string0);\n }",
"@Test\r\n\tpublic void readCLOBData() throws Exception {\n\t\tString data = \"this is a CLOB String\";\r\n\r\n\t\ttry (Statement stmt = _conn.createStatement()) {\r\n\t\t\tstmt.execute(strCleanTable);\r\n\t\t\tstmt.executeUpdate(\r\n\t\t\t\t\t\"INSERT INTO \" + Utils.schema + \".\" + tableName + \" values (1, stringtolob('\" + data + \"'))\");\r\n\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM \" + Utils.schema + \".\" + tableName);\r\n\t\t\tint rowNum = 0;\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\trowNum++;\r\n\t\t\t\tClob clob = rs.getClob(2);\r\n\t\t\t\tassertEquals(\"clob data \", data, clob.getSubString(1, (int) clob.length()));\r\n\t\t\t}\r\n\t\t\tassertEquals(\"Row count read from server\", 1, rowNum);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private boolean isComboBoxEmpty(String entry){\n return entry == null || entry.isBlank();\n }",
"@Test\n public void testIsEmpty() throws Exception {\n DatabaseProperties prop = cveDb.getDatabaseProperties();\n assertNotNull(prop);\n //no exception means the call worked... whether or not it is empty depends on if the db is new\n //assertEquals(expResult, result);\n }",
"@Override\n\tpublic IClob getClob(String arg0) throws OdaException {\n\t\treturn null;\n\t}",
"public boolean isEmpty()\n {return data == null;}",
"public final boolean empty() {\n return data == null;\n }",
"public boolean isEmpty() {\n return (this.text == null);\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}",
"private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }",
"@Override\r\n\t\tpublic Clob createClob() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public boolean isEmpty() {\n\t\t\treturn properties.isEmpty();\n\t\t}",
"public static boolean isEmpty(Object bean) throws IntrospectionException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\r\n\t\tif (bean == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tBeanInfo info = Introspector.getBeanInfo(bean.getClass(), Object.class);\r\n\t\tPropertyDescriptor[] props = info.getPropertyDescriptors();\r\n\t\tfor (PropertyDescriptor pd : props) {\r\n\t\t\tMethod getter = pd.getReadMethod();\r\n\t\t\tClass<?> type = pd.getPropertyType();\r\n\t\t\tObject value = getter.invoke(bean);\r\n\r\n\t\t\tif (CharSequence.class.isAssignableFrom(type)) {\r\n\t\t\t\tif (isNotEmpty((String) value)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else if (value != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean hasValue (String s) { return s != null && s.length() != 0; }",
"protected boolean isEmpty(Object obj) {\r\n return (obj == null || obj instanceof String\r\n && ((String) obj).trim().length() == 0);\r\n }",
"boolean isEmpty() {\n return contents.size() == 0;\n }",
"boolean isEmpty() {\n return contents.size() == 0;\n }",
"boolean canMatchEmptyString() {\n return false;\n }",
"@Override\n public boolean isEmpty() {\n return getSnapshot() == null;\n }",
"public boolean canProcessNull() {\n return false;\n }",
"public boolean is_empty() {\n\t\treturn false;\n\t}",
"public static boolean isNullOrEmpty(String content){\n return (content !=null && !content.trim().isEmpty() ? false :true);\n }",
"Boolean isBlankOrNull(String key)\n {\n return StringUtils.isBlank(properties.getProperty(key));\n }",
"public static boolean isBlank(Object bean, boolean deep) throws IntrospectionException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\r\n\t\tif (bean == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tClass<? extends Object> clazz = bean.getClass();\r\n\t\tBeanInfo info = Introspector.getBeanInfo(clazz, Object.class);\r\n\t\tPropertyDescriptor[] props = info.getPropertyDescriptors();\r\n\t\tfor (PropertyDescriptor pd : props) {\r\n\t\t\tMethod getter = pd.getReadMethod();\r\n\t\t\tClass<?> type = pd.getPropertyType();\r\n\t\t\tObject value = getter.invoke(bean);\r\n\t\t\t\r\n\t\t\tif (CharSequence.class.isAssignableFrom(type)) {\r\n\t\t\t\tif (isNotBlank((String) value)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else if (Collection.class.isAssignableFrom(type)) {\r\n\t\t\t\tif (value != null && !((Collection<?>) value).isEmpty()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else if (Map.class.isAssignableFrom(type)) {\r\n\t\t\t\tif (value != null && !((Map<?, ?>) value).isEmpty()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else if (deep && !isWrapperType(clazz)) {\r\n\t\t\t\tif (!isBlank(value, deep)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else if (value != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (props.length == 0) {\r\n\t\t\treturn bean == null;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithEmptyString() {\n\t\tprocessor.execute(\"\", ANONYMOUS_CSVCONTEXT);\n\t}",
"public boolean isEmpty() {\n\n \tif (numLines == 0) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\t\n }",
"public boolean isEmpty() { return this.filterExpression.length()==0; }",
"public boolean isEmpty() {\n if (getData() == null) {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}",
"public boolean is_T_EMPTY() {\n return (this.t.get_T().length() == 0) ? true : false;\n }",
"public final boolean isNull()\n\t{\n\t\treturn (dataValue == null) && (stream == null) && (_blobValue == null);\n\t}",
"@Override\npublic Boolean isEmpty() {\n\treturn null;\n}",
"private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }",
"public boolean isEmpty() {\n return cursor==-1 && lines.isEmpty();\n }",
"default boolean isEmpty() {\n return get() == null;\n }",
"public abstract boolean isBlank() throws Exception;",
"@Override\n public boolean isEmpty() { return true; }",
"@Test(timeout = 4000)\n public void test64() throws Throwable {\n Integer integer0 = RawTransaction.LOCK_ESCALATE;\n TableContainer tableContainer0 = new TableContainer(\"XD`iuWl-P)z~qUO|]P\");\n tableContainer0.getTable(\"XD`iuWl-P)z~qUO|]P\");\n DBDataType dBDataType0 = DBDataType.getInstance(\"CLOB\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"CLOB\", (DBTable) null, dBDataType0, integer0, integer0);\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"CLOB CLOB NULL\", string0);\n }",
"public boolean isEmptyValue() {\r\n if(value == null){\r\n return true;\r\n }\r\n if(value.isEmpty()){\r\n return true;\r\n }\r\n if(value.size() == 1){\r\n if(value.get(0)!=null){\r\n return value.get(0).length() == 0;\r\n }else{\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}",
"public void testEmptyContent() throws IOException {\n\t\tfinal CachedParserDocument pdoc = new CachedParserDocument(this.tempFilemanager,0);\n\t\tassertTrue(pdoc.inMemory());\n\t\tassertEquals(0, pdoc.length());\n\t\tassertFalse(this.outputFile.exists());\n\t\t\n\t\t// if no content is available the reader should be null\n\t\tfinal Reader reader = pdoc.getTextAsReader();\n\t\tassertNull(reader);\n\t\t\n\t\t// if no content is available the file should be null\n\t\tfinal File file = pdoc.getTextFile();\n\t\tassertNull(file);\n\t}",
"@Override\r\n\t\tpublic NClob createNClob() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"private final static boolean isEmpty(String field) {\n return field == null || field.trim().length() == 0;\n }",
"public boolean isEmpty ( ) {\n\t\treturn extract ( handle -> handle.isEmpty ( ) );\n\t}",
"public boolean isLOB(int displayType) {\n\t\treturn false;\n\t}",
"public boolean isEmpty() {\n return contents == 0;\n }",
"public boolean isValueEmpty(int row, int col) {\n return columns[col].isValueEmpty(row);\n }",
"@Test\n public void emptyElementsInPropertyFile() throws Exception {\n String output = \"\";\n\n StmtIterator msIter = propertyOutput.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n if (msStmt.getSubject().toString().equals(\"\") ||\n msStmt.getPredicate().toString().equals(\"\") ||\n msStmt.getObject().toString().equals(\"\") ||\n msStmt.getSubject().toString().equals(\"urn:\") ||\n msStmt.getPredicate().toString().equals(\"urn:\") ||\n msStmt.getObject().toString().equals(\"urn:\")\n ) {\n output += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n // Output assertion with message of results\n if (!output.equals(\"\"))\n assertTrue(\"\\nThe following triples in \" + propertyOutputFileName + \" have an empty element:\\n\" + output\n , false);\n else\n assertTrue(true);\n }",
"private boolean isEmpty(String str) {\n return (str == null) || (str.equals(\"\"));\n }",
"public boolean isEmpty() {\n return contents == 0 ? true : false;\n }",
"public boolean isBlank() {\n return (tags.length() == 0);\n }",
"@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}",
"protected boolean checkEmpty(String line) {\n return line == null || line.isBlank();\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn bst.isEmpty();\n\t}",
"public boolean isZeroLength() {\r\n return value.length() == 0;\r\n }",
"private boolean isBlank() {\n\t\tchar currentChar = data[index];\n\t\tif (currentChar == '\\r' || currentChar == '\\n' || currentChar == '\\t' || currentChar == ' ') {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isEmpty() {\n this.ensureAtLeastPartResolved();\n return isNull;\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"abstract boolean canMatchEmptyString();",
"public boolean isEmpty() {\n return data.isEmpty();\n }",
"public boolean isAlwaysNonEmpty() {\n final RexWindowBound lower;\n final RexWindowBound upper;\n if (lowerBound == null) {\n if (upperBound == null) {\n lower = RexWindowBounds.UNBOUNDED_PRECEDING;\n } else {\n lower = RexWindowBounds.CURRENT_ROW;\n }\n } else if (lowerBound instanceof SqlLiteral) {\n lower = RexWindowBounds.create(lowerBound, null);\n } else {\n return false;\n }\n if (upperBound == null) {\n upper = RexWindowBounds.CURRENT_ROW;\n } else if (upperBound instanceof SqlLiteral) {\n upper = RexWindowBounds.create(upperBound, null);\n } else {\n return false;\n }\n return isAlwaysNonEmpty(lower, upper);\n }",
"private boolean m16125a(Object obj) {\n return obj == null || obj.toString().equals(\"\") || obj.toString().trim().equals(\"null\");\n }",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn data.size() == 0;\r\n\t}",
"private boolean isEmpty(ListItem<PropertyWrapper> attribute) {\n return false;\n }",
"public boolean isEmpty()\n {\n return ( name == null ) && ( data == null ) && ( notes == null );\n }",
"public static boolean isEmptyOrNull(String content){\n if(content == null){\n return true;\n }else return content.trim().equals(\"\");\n }",
"public boolean isEmpty() { return true; }",
"private boolean isEntityBufferEmpty()\n\t{\n\t\treturn this.newEntityBuffer.isEmpty();\n\t}",
"public boolean isEmpty() {\n return this.ini == null;\n }",
"public boolean empty() {\n return data.size() == 0;\n }",
"public boolean isEmpty() {\n\t\t\t\t\n\t\treturn length() == 0;\n\t}",
"private boolean checkNullAllowed(Node parentNode, TableColumnBean columnBean, String newValue) {\n boolean isOkNullCheck = false;\n //displayColumnProps(columnBean);\n //System.out.println(\"value: \" + newValue);\n if(columnBean.isNullAllowed()) {\n isOkNullCheck = true;\n } else {\n if(newValue.equals(\"\") || newValue == null ||\n newValue.equalsIgnoreCase(\"null\")) {\n isOkNullCheck = false;\n } else {\n isOkNullCheck = true;\n }\n }\n return isOkNullCheck;\n }",
"@Override\n\tpublic boolean isEmpty() throws RemoteException {\n\t\treturn bnetMap.size() == 0;\n\t}",
"@Override\n\tpublic IClob getClob(int arg0) throws OdaException {\n\t\treturn null;\n\t}",
"protected boolean isEmptyValue(final String parameter) {\n // String value = parameters.get(parameter);\n // return isEmptyString(value);\n return false;\n }",
"public boolean isEmpty(){ return Objects.isNull(this.begin ); }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}",
"public static boolean isEmpty(Object field) {\r\n\t\treturn (field == null) || field.toString().trim().isEmpty();\r\n\t}",
"public boolean isEmpty()\r\n{\r\n return header == null;\r\n}",
"public boolean isEmpty() {\r\n\t\treturn this.records.isEmpty();\r\n\t}",
"@Override\n public boolean isEmpty() {\n return false;\n }",
"public boolean isEmpty() {\n return unitChanges == null || unitChanges.isEmpty();\n }",
"@Override\n public boolean isEmpty()\n {\n return false;\n }",
"private boolean isBuildingNumberNull() {\n return (buildingNumber == null || buildingNumber.isEmpty());\n }",
"boolean isNilValue();"
] |
[
"0.765353",
"0.6125166",
"0.6042326",
"0.6026483",
"0.58973587",
"0.5880812",
"0.58725524",
"0.5741343",
"0.5702554",
"0.567939",
"0.5652121",
"0.56218684",
"0.55854964",
"0.5574315",
"0.55610996",
"0.55558604",
"0.554009",
"0.5537524",
"0.5527542",
"0.55235445",
"0.5507536",
"0.5495618",
"0.54880846",
"0.54880846",
"0.5486227",
"0.54712695",
"0.5462052",
"0.54499525",
"0.54129875",
"0.54117906",
"0.5391787",
"0.53909236",
"0.538947",
"0.53744483",
"0.5346181",
"0.5343375",
"0.534315",
"0.5339512",
"0.5334431",
"0.532847",
"0.5321458",
"0.53167486",
"0.5316437",
"0.53134155",
"0.5304897",
"0.52999204",
"0.5294235",
"0.5294235",
"0.5293457",
"0.5292362",
"0.52918345",
"0.52885526",
"0.5281451",
"0.5269771",
"0.52614176",
"0.52575713",
"0.5252019",
"0.5245569",
"0.52376395",
"0.5235849",
"0.52353096",
"0.5232306",
"0.5231965",
"0.5224669",
"0.5218152",
"0.5217761",
"0.521218",
"0.521218",
"0.521218",
"0.521218",
"0.521218",
"0.521218",
"0.521218",
"0.5207283",
"0.5202619",
"0.52010214",
"0.5192429",
"0.5183852",
"0.5183331",
"0.5176301",
"0.51700413",
"0.516856",
"0.5167794",
"0.5161992",
"0.5161255",
"0.51579136",
"0.5154882",
"0.5153142",
"0.51497287",
"0.5145486",
"0.5136315",
"0.51357937",
"0.5134245",
"0.51327574",
"0.51297987",
"0.5128807",
"0.51263034",
"0.51248723",
"0.51152265",
"0.51148397"
] |
0.7675687
|
0
|
Tests handling of errors in getKeys().
|
@Test
public void testGetKeysError() throws ConfigurationException {
final Iterator<String> it = setUpErrorConfig().getKeys();
checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, null, null);
assertFalse(it.hasNext());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test(expected = IllegalArgumentException.class)\n public void testGetIllegalKey() {\n String dummy = ev.get(\"_illegal_key\");\n fail(\"Should not get here after getting bs key.\");\n }",
"@Test\n public void testGetKey() {\n DefaultPieDataset d = new DefaultPieDataset();\n d.setValue(\"A\", 1.0);\n d.setValue(\"B\", 2.0);\n assertEquals(\"A\", d.getKey(0));\n assertEquals(\"B\", d.getKey(1));\n\n boolean pass = false;\n try {\n d.getKey(-1);\n }\n catch (IndexOutOfBoundsException e) {\n pass = true;\n }\n assertTrue(pass);\n\n pass = false;\n try {\n d.getKey(2);\n }\n catch (IndexOutOfBoundsException e) {\n pass = true;\n }\n assertTrue(pass);\n }",
"public void testGetKeysForPlayer_NoPlayer() throws Exception {\n try {\n dao.getKeysForPlayer(1, new long[0]);\n fail(\"EntryNotFoundException expected.\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }",
"private void ensureValidKeyNames() {\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\.\\\\.\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\[\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\]\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\(\")), is(false));\n assertThat(Iterables.any(graphiteMockServer.content, containsPattern(\"\\\\)\")), is(false));\n }",
"@Test\n public void testContainsKeyError() throws ConfigurationException {\n assertFalse(setUpErrorConfig().containsKey(\"key1\"));\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"@Test\n public void testFailureScannerWithKeys() throws IOException {\n Reader reader = new Reader(fs.open(path), fs.getFileStatus(path).getLen(), conf);\n Assert.assertFalse(reader.isSorted());\n Assert.assertEquals(((int) (reader.getEntryCount())), 4);\n try {\n Scanner scanner = reader.createScannerByKey(\"aaa\".getBytes(), \"zzz\".getBytes());\n Assert.fail(\"Failed to catch creating scanner with keys on unsorted file.\");\n } catch (RuntimeException e) {\n } finally {\n reader.close();\n }\n }",
"@Test public void keyDefinition() {\n fail( \"Not yet implemented\" );\n }",
"private void failKey()\n\t\tthrows IOException\n\t{\n\t\tif(nextKey)\n\t\t{\n\t\t\tthrow new IOException(\"Trying to write a key that is not a string\");\n\t\t}\n\n\t\t// If we are reading an object make sure there is a key\n\t\tnextKey = ! lists[level];\n\t}",
"public void testGet() throws Exception {\n\t\tLOGGER.info(\"TestDictionay.testGet()\");\n\t\tDictionaryLZW dict = new DictionaryLZW();\n\t\tdict.addEntry(\"AT\");\n\t\tdict.addEntry(\"AA\");\n\t\tfor (int i = 1; i < dict.size(); i++) {\n\t\t\tString val = dict.getStringAt(i);\n\t\t\tAssert.assertEquals(i, dict.findEntry(val));\n\t\t}\n\t\t// Now some bad attempts. Boundary errors will throw, so catch them here\n\t\t// and assert if there was not a throw.\n\t\t// This test might need maintenance as the dictionary data structure changes.\n\t\t// IndexOutOfBoundsException is fairly general, so it may work still.\n\t\tboolean caught = false;\n\t\ttry {\n\t\t\tdict.getStringAt(-1);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\tcaught = true;\n\t\t}\n\t\tAssert.assertTrue(caught);\n\t\tcaught = false;\n\t\ttry {\n\t\t\tdict.getStringAt(29);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\tcaught = true;\n\t\t}\n\t\tAssert.assertTrue(caught);\n\n\t}",
"@Test\n public void testInvalidS3Keys() throws GenieException {\n final String[] invalidKeys = new String[]{ \"\", \" \", \"k[ey\" };\n for (final String invalidKey : invalidKeys) {\n final String path = \"s3://bucket/\" + invalidKey;\n Assert.assertFalse((\"Passed validation: \" + path), this.s3FileTransfer.isValid(path));\n boolean genieException = false;\n try {\n this.s3FileTransfer.getS3Uri(path);\n } catch (GenieBadRequestException e) {\n genieException = true;\n } finally {\n Assert.assertTrue((\"Parsed without error: \" + path), genieException);\n }\n }\n }",
"protected Enumeration<String> handleGetKeys()\n/* */ {\n/* 1467 */ return Collections.enumeration(handleKeySet());\n/* */ }",
"public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"public void testGetKeysForPlayer_NullIds() throws Exception {\n try {\n dao.getKeysForPlayer(1, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException e) {\n // should land here\n }\n }",
"@Test\n public void test004_test_numKeys() {\n try {\n HashTableADT test = new HashTable<Integer, String>();\n if (test.numKeys() != 0) {\n fail(\"numKeys not correct\");\n }\n test.insert(1, \"2\");\n if (test.numKeys() != 1) {\n fail(\"numKeys not correct\");\n }\n test.insert(2, \"3\");\n if (test.numKeys() != 2) {\n fail(\"numKeys not correct\");\n }\n test.insert(3, \"4\");\n if (test.numKeys() != 3) {\n fail(\"numKeys not correct\");\n }\n test.remove(2);\n if(test.numKeys() != 2) {\n fail(\"numKeys not correct\");\n }\n } catch (Exception e) {\n fail(\"Exception shouldn't be thrown\");\n }\n }",
"@Test\n public void testGet() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n map.set(\"key-1\", \"value-2\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-2\");\n \n map.set(\"key-2\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-2\"), \"value-1\");\n }",
"@Test\n public void testGetKey()\n { \n assertThat(m_SUT.getKey(), is(\"test key\"));\n }",
"@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }",
"void keySequenceHardFailure();",
"@Test(expected = Exception.class)\n public void test() throws Exception {\n\n new HashMap<>();\n MyHashTable2 mp = new MyHashTable2();\n mp.put(\"prem\",7);\n mp.put(\"radha\",72);\n mp.put(\"geeta\",74);\n mp.put(\"sunita\",76);\n mp.put(\"atul\",87);\n mp.put(\"rakesh\",37);\n mp.put(\"aklesh\",72);\n\n // try to add duplicate keys and test exception\n mp.put(\"aklesh\",72);\n\n\n assert 7 == mp.get(\"prem\");\n assert 72 == mp.get(\"aklesh\");\n assert 87 == mp.get(\"atul\");\n assert null == mp.get(\"noting\");\n\n System.out.println(mp.getKeySet());\n\n mp.prettyPrint();\n }",
"@Test\n public void testGetReservedKeys() {\n assertEquals(\"Timestamp must match\",TIMESTAMP.toString(), ev.get(\"_timestamp\"));\n assertEquals(\"Sources must match\",source,ev.get(\"_source\"));\n }",
"@Test\n\tpublic void testGetAccessReodersElement() {\n\t\tmap.get(\"key1\");\n\n\t\tSet<String> keySet = map.keySet();\n\t\tassertEquals(\"Calling get on an element did not move it to the bottom\", \"key1\",\n\t\t\tkeySet.iterator().next());\n\n\t\t// move 2 to the top/front\n\t\tmap.get(\"key2\");\n\t\tassertEquals(\"Calling get on an element did not move it to the bottom\", \"key2\",\n\t\t\tkeySet.iterator().next());\n\t}",
"@VisibleForTesting\n List<Object> getKeysForTest() {\n return keys;\n }",
"@Test(groups = \"testAuth\", dependsOnGroups = \"authEnable\", priority = 1)\n public void testKVWithoutAuth() throws InterruptedException {\n assertThatThrownBy(() -> this.authDisabledKVClient.put(rootRoleKey, rootRoleValue).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n assertThatThrownBy(() -> this.authDisabledKVClient.put(userRoleKey, rootRoleValue).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n assertThatThrownBy(() -> this.authDisabledKVClient.get(rootRoleKey).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n assertThatThrownBy(() -> this.authDisabledKVClient.get(userRoleKey).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n }",
"String lookupKeyBasic(String key) throws CommunicationFailureException, TimeoutReachedException, NoSuccessorsExceptions;",
"@Test\n public void doesNotThrowWhenRoutingKeyInvalid() {\n String key = \"hi.-.live.oddschange.6.sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testMultiLookupEmptySpecFails() {\n ctx.bucket().lookupIn(key);\n }",
"@Test \n\tpublic void testGetAllKeysFromKeyTable() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tArrayList<Integer> results = DatabaseGateway.getAllKeysFromKeyTable();\n\t\tassertTrue(results.contains(1));\n\t\n\t}",
"String lookupKey(String key) throws CommunicationFailureException, TimeoutReachedException, NoSuccessorsExceptions;",
"@Test\n public void test001_IllegalNullKey() {\n try {\n HashTableADT htIntegerKey = new HashTable<Integer, String>();\n htIntegerKey.insert(null, null);\n fail(\"should not be able to insert null key\");\n } catch (IllegalNullKeyException e) {\n /* expected */ } catch (Exception e) {\n fail(\"insert null key should not throw exception \" + e.getClass().getName());\n }\n }",
"@Test\n public void configReturnsCorrectValuesForValidKeys() throws Exception\n {\n assertEquals(\"simple_value\", config.getValue(\"simple.key\"));\n assertEquals(\"spaces value\", config.getValue(\"spaces.key\"));\n }",
"@Test\n public void doesNotThrowWhenRoutingKeyInvalid3() {\n String key = \"hi.-.live.odds_change.6b.sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }",
"@Test\n public void doesNotThrowWhenRoutingKeyInvalid2() {\n String key = \"hi.-.live.odds_change.6sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }",
"abstract protected boolean validateKey(String key);",
"@Test\n\tpublic void getMyKeyNames() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tks.createNewMyKeyPair(\"never\");\n\t\tks.createNewMyKeyPair(\"gonna\");\n\t\tks.createNewMyKeyPair(\"give\");\n\t\tks.createNewMyKeyPair(\"you\");\n\t\tks.createNewMyKeyPair(\"up\");\n\t\tSet<String> names = ks.getMyKeyNames();\n\t\tassertTrue(\"incorrect number of names\", names.size() == 5);\n\t\tassertTrue(\"should contain name\", names.contains(\"never\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"gonna\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"give\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"you\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"up\"));\n\t}",
"public static void main(String[] args) throws Exception {\n System.out.println(\"Checking \" + Arrays.toString(args));\n KeyTab ktab = KeyTab.getInstance(args[0]);\n Set<String> expected = new HashSet<>();\n for (int i=1; i<args.length; i += 2) {\n expected.add(args[i]+\":\"+args[i+1]);\n }\n for (KeyTabEntry e: ktab.getEntries()) {\n // KVNO and etype\n String vne = e.getKey().getKeyVersionNumber() + \":\" +\n e.getKey().getEType();\n if (!expected.contains(vne)) {\n throw new Exception(\"No \" + vne + \" in expected\");\n }\n expected.remove(vne);\n }\n if (!expected.isEmpty()) {\n throw new Exception(\"Extra elements in expected\");\n }\n }",
"private void doAPITest(Map<Object,Object> table) {\n\t\tint size = table.size();\n\t\tObject key, value;\n\t\t\n\t\tMap<Object,Object> clone = cloneMap(table);\n\t\t\n\t\t// retrieve values using values()\n\t\tCollection<Object> values = table.values();\n\t\t\n\t\t// retrieve keys using keySet()\n\t\tSet<Object> keySet = table.keySet();\t\t\n\t\tObject[] keySetArray = keySet.toArray();\n\t\t\n\t\tint step = 1 + random.nextInt(5);\n\t\t\n\t\tfor (int i=0; i<keySetArray.length; i=i+step)\n\t\t{\n\t\t\tkey = keySetArray[i];\n\t\t\t// retrieve value\n\t\t\tvalue = table.get(key);\n\t\t\t\n\t\t\t// assert value is in the table\n\t\t\tassertTrue(table.containsValue(value));\n\t\t\t/*\n\t\t\t * assertTrue(table.contains(value)); // Removed as not supported by the Map interface, and identical to containsValue\n\t\t\t * if value is a wrapped key then check it's equal \n\t\t\t * to the key \n\t\t\t */\n\t\t\tif (value instanceof CustomValue)\n\t\t\t{\n\t\t\t\tassertEquals(key, ((CustomValue)value).key);\n\t\t\t}\n\t\t\t\n\t\t\t// count how many occurrences of this value there are\n\t\t\tint occurrences = numberOccurrences(values, value);\n\t\t\t\n\t\t\t// find the Map.Entry\n\t\t\tSet<Map.Entry<Object, Object>> entrySet = table.entrySet();\n\t\t\tIterator<Map.Entry<Object, Object>> entrySetIterator = entrySet.iterator();\n\t\t\tMap.Entry<Object,Object> entry = null;\n\t\t\tdo\n\t\t\t{\n\t\t\t\tentry = entrySetIterator.next();\n\t\t\t} while (!entry.getKey().equals(key));\n\t\t\t\n\t\t\t// remove from table in different ways\n\t\t\tswitch (i % 3)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\ttable.remove(key);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tkeySet.remove(key);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t\n\t\t\t\tentrySet.remove(entry);\n\t\t\t}\n\t\t\t\n\t\t\t// assert key is no longer in the table\n\t\t\tassertFalse(table.containsKey(key));\n\t\t\t// assert key is no longer in the keyset\n\t\t\tassertFalse(keySet.contains(key));\n\t\t\t// assert key is no longer in the entrySet\n\t\t\tassertFalse(entrySet.contains(entry));\n\t\t\t\n\t\t\t// assert that there's one fewer of this value in the hashtable\n\t\t\tassertEquals(occurrences, numberOccurrences(values, value) + 1);\n\t\t\t\n\t\t\t// re-insert key\n\t\t\ttable.put(key, value);\n\t\t\t\n\t\t\t// assert key is in the table\n\t\t\tassertTrue(table.containsKey(key));\n\t\t\t// assert key is in the keyset\n\t\t\tassertTrue(keySet.contains(key));\n\t\t\t// assert EntrySet is same size\n\t\t\tassertEquals(size, entrySet.size());\n\t\t}\n\t\t\n\t\t// test hashtable is the same size\n\t\tassertEquals(size, table.size());\n\t\t\n\t\t// test keySet is expected size\n\t\tassertEquals(size, keySet.size());\n\t\t\n\t\t// retrieve keys using keys()\n\t\tIterator<?> keys = table.keySet().iterator();\n\t\t\n\t\t// remove a subset of elements from the table. store in a map\n\t\tint counter = table.size() / 4;\n\t\tMap<Object,Object> map = new HashMap<Object, Object>();\n\t\twhile (keys.hasNext() && counter-- >= 0)\n\t\t{\n\t\t\tkey = keys.next();\n\t\t\tvalue = table.get(key);\n\t\t\tmap.put(key, value);\n\t\t\tkeys.remove(); // removes the most recent retrieved element\n\t\t}\n\t\t// re-add the elements using putAll\n\t\ttable.putAll(map);\n\t\t\n\t\t// test equal to copy\n\t\tassertEquals(clone, table);\n\t\t\n\t\t// clear the copy\n\t\tclone.clear();\n\t\t\n\t\t// assert size of clone is zero\n\t\tassertEquals(0, clone.size());\n\t\t\n\t\t// assert size of original is the same\n\t\tassertEquals(size, table.size());\n\t}",
"@Test(expected = TileDBError.class)\n public void testLoadingEncryptedArrayWrongKeyErrors() throws Exception {\n Array.create(arrayURI, schemaCreate());\n String keyString = \"0123456789abcdeF0123456789abcdeZ\";\n Config config = new Config();\n config.set(\"sm.encryption_type\", \"AES_256_GCM\");\n config.set(\"sm.encryption_key\", keyString);\n Context ctx = new Context(config);\n new ArraySchema(ctx, arrayURI).close();\n }",
"@Test\n public void Test_Entry() throws Exception {\n String[] expected_value = {\"/ProcSet\", \"/Font\"};\n\n PdfResource resrc = new PdfResource();\n //execute test\n HashMap<String, String> entry = resrc.getEntry();\n //confirm\n assertThat(entry.keySet(), hasItems(expected_value)); \n }",
"@Test\n public void test002_Insert_And_Get() {\n try {\n HashTableADT test = new HashTable<Integer, String>();\n test.insert(1, \"2\");\n test.insert(2, \"3\");\n test.insert(3, \"4\");\n if (test.get(1) != \"2\") { //checks if get returns the correct values\n fail(\"insert or get didn't work\");\n }\n if (test.get(2) != \"3\") {\n fail(\"insert or get didn't work\");\n }\n if (test.get(3) != \"4\") {\n fail(\"insert or get didn't work\");\n }\n } catch (Exception e) {\n fail(\"Exception shouldn't be thrown\");\n }\n }",
"public void testGetObjectSpecificationWithNotFoundKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key2\", \"identifier\");\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }",
"@Test\n\tpublic void pkcs12_exceptions() {\n\t\t// No algorithm\n\t\ttry {\n\t\t\tassertPkcs12LoadException(new Pkcs12LoadException(new NoSuchAlgorithmException()),\n\t\t\t\t\tPkcs12LoadException.Reason.ALGORITHM_NOT_FOUND);\n\t\t} catch (Pkcs12LoadException e) {\n\t\t\t// ignore\n\t\t}\n\n\t\t// cert error\n\t\ttry {\n\t\t\tassertPkcs12LoadException(new Pkcs12LoadException(new CertificateException()),\n\t\t\t\t\tPkcs12LoadException.Reason.CERTIFICATE_ERROR);\n\t\t} catch (Pkcs12LoadException e) {\n\t\t\t// ignore\n\t\t}\n\t}",
"@Test\n public void testGetKafkaCredentialsFromVaultInvalidUrl() {\n Map<String, Map<String, String>> credentials =\n getKafkaCredentialsFromVault(\"some-url\", \"some-token\");\n Assert.assertEquals(new HashMap<>(), credentials);\n }",
"@Test\n public void test005_test_duplicate_key() {\n try {\n HashTableADT test = new HashTable<Integer, String>();\n test.insert(1, \"2\");\n test.insert(2, \"3\");\n test.insert(1, \"4\");\n } catch (DuplicateKeyException q) {\n //Expected Exception\n } catch (Exception e) {\n fail(\"Correct Exception wasn't thrown\");\n }\n }",
"@Test\n public void test6() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n try {\n assertEquals(map1, cashRegister.withdraw(50, 100));\n } catch (InsufficientCashException e) {\n fail();\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"Invalid arguments\");\n }\n assertEquals(\"\", cashRegister.getAuditLog());\n }",
"@Test\n public void keySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.keySet());\n }",
"@Test\n public void duplicateMapKeysError_classKeyIsNotCompressed() {\n CreationException exception =\n assertThrows(\n CreationException.class, () -> Guice.createInjector(new ClassKeyMapBinderModule()));\n assertGuiceErrorEqualsIgnoreLineNumber(\n exception.getMessage(), \"duplicate_map_keys_error_class_key_is_not_compressed.txt\");\n }",
"@Test\n\tpublic void getOtherKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tKeyPair kp = RsaHelper.generateKeyPair();\n\t\tks.addOtherKey(\"first other one\", kp.getPublic());\n\t\tKeyPair kpp = RsaHelper.generateKeyPair();\n\t\tks.addOtherKey(\"second other one\", kpp.getPublic());\n\t\tPublicKey pk = ks.getOtherKey(\"first other one\");\n\t\tassertTrue(\"should be same key\", kp.getPublic().equals(pk));\n\t\tPublicKey ppk = ks.getOtherKey(\"second other one\");\n\t\tassertTrue(\"should be same key\", kpp.getPublic().equals(ppk));\n\t}",
"@Test(expected = TileDBError.class)\n public void testLoadingEncryptedArrayNoKeyErrors() throws Exception {\n Array.create(arrayURI, schemaCreate());\n new ArraySchema(new Context(), arrayURI).close();\n }",
"void keySequenceSoftFailure();",
"@Test\n public void testGetTranslationKeys() throws Exception {\n final File messagesFile = getTestFile(\"messages.properties\");\n\n final String messageKey = UUID.randomUUID().toString();\n final Properties sourceProperties = new Properties();\n sourceProperties.put(messageKey, UUID.randomUUID().toString());\n try (final OutputStream outputStream = new FileOutputStream(messagesFile)) {\n sourceProperties.store(outputStream, null);\n }\n assertThat(parser.getTranslationKeys(messagesFile)).hasSize(1).contains(messageKey);\n }",
"@Test\n public void shouldReturnEmptyTriggerEntriesWhenResultMapIsNotContainsTriggerKeyWithIndex()\n throws Exception {\n\n shouldReturnEmptyTriggerEntries(new UnitTestGiven() {\n @Override\n public void given() throws P4JavaException {\n when(resultMap.get(anyString())).thenReturn(EMPTY);\n when(resultMap2.get(anyString())).thenReturn(EMPTY);\n }\n });\n }",
"@Test\n\tpublic void removeMyKeyNotThere() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tks.createNewMyKeyPair(\"one\");\n\t\tks.createNewMyKeyPair(\"two\");\n\t\tks.removeMyKey(\"three\");\n\t\tSet<String> names = ks.getMyKeyNames();\n\t\tassertTrue(\"wrong number of keys\", names.size() == 2);\n\t\tassertTrue(\"should contain key\", names.contains(\"one\"));\n\t\tassertTrue(\"should contain key\", names.contains(\"two\"));\n\t\tassertFalse(\"should not contain key\", names.contains(\"three\"));\n\t}",
"private void validateIndexForKeys(CompactRangeIndex ri) {\n assertEquals(6, ri.getIndexStorage().size());\n CloseableIterator<IndexStoreEntry> itr = null;\n try {\n itr = ri.getIndexStorage().iterator(null);\n while (itr.hasNext()) {\n IndexStoreEntry reEntry = itr.next();\n Object obj = reEntry.getDeserializedRegionKey();\n assertTrue(obj instanceof String);\n assertTrue(idSet.contains(obj));\n }\n } finally {\n if (itr != null) {\n itr.close();\n }\n }\n }",
"@Test\n public void testGetByKeyEmpty() throws Exception {\n thrown.expect(ProductNotFoundException.class);\n thrown.expectMessage(\"Product with key \" + this.product.getKey() + \" not found!\");\n\n when(repository.findByKey(this.product.getKey())).thenReturn(Optional.empty());\n service.getByKey(this.product.getKey());\n }",
"@Test\n public void testCoh3710_keySetContainsAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().containsAll(\n Collections.singleton(Integer.valueOf(1))));\n validateIndex(cache);\n }\n });\n }",
"@Test\n\tvoid testPickupKey1() {\n\t\tdungeon.setPlayer(player);\n\t\tdungeon.setGoal(goal);\n\t\t\n\t\tKey key = new Key(1,1);\n\t\tdungeon.addEntity(key);\n\t\tdungeon.clock(\"Down\");\n\t\tdungeon.clock(\"Right\");\n\t\t\n\t\tKey pickupKey = player.getKey();\n\t\tassertEquals(pickupKey, key, \"Player cannot pick up a key : \" + pickupKey + \"\\n\");\n\t}",
"public boolean isValidKey(String key) throws Exception;",
"@Test\n\tpublic void getMyKeyPairs() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tks.createNewMyKeyPair(\"ichi\");\n\t\tks.createNewMyKeyPair(\"ni\");\n\t\tKeyPair kp = ks.getMyKeyPair(\"ichi\");\n\t\tassertNotNull(\"should have returned keypair\", kp);\n\t\tKeyPair kpp = ks.getMyKeyPair(\"ni\");\n\t\tassertNotNull(\"should have returned keypair\", kpp);\n\t}",
"@Test\n public void testGetPropertyError() throws ConfigurationException {\n setUpErrorConfig().getProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"String process_key () throws BaseException;",
"@Test\n public void testCoh3710_keySetContains()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().contains(Integer.valueOf(1)));\n validateIndex(cache);\n }\n });\n }",
"@Test\n public void testSystemHealthErrorInterpretation() {\n for (RouterErrorCode errorCode : RouterErrorCode.values()) {\n switch (errorCode) {\n case InvalidBlobId :\n case InvalidPutArgument :\n case BlobTooLarge :\n case BadInputChannel :\n case BlobDeleted :\n case BlobDoesNotExist :\n case BlobAuthorizationFailure :\n case BlobExpired :\n case RangeNotSatisfiable :\n case ChannelClosed :\n case BlobUpdateNotAllowed :\n Assert.assertFalse(RouterUtils.isSystemHealthError(new RouterException(\"\", errorCode)));\n break;\n default :\n Assert.assertTrue(RouterUtils.isSystemHealthError(new RouterException(\"\", errorCode)));\n break;\n }\n }\n Assert.assertTrue(RouterUtils.isSystemHealthError(new Exception()));\n Assert.assertFalse(RouterUtils.isSystemHealthError(Utils.convertToClientTerminationException(new Exception())));\n }",
"public void testInverseKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }",
"public void testRead() throws Exception {\n DAS das = DAS.FACTORY.createDAS(getConnection());\n Command select = das.createCommand(\"Select * from COMPANY\");\n select.executeQuery();\n\n try {\n select.getGeneratedKey();\n fail(\"Should throw exception\");\n } catch (RuntimeException e) {\n assertEquals(\"This method is only valid for insert commands\", e.getMessage());\n }\n }",
"private void handleSelectedKeys() throws Exception\n {\n\n final Set<SelectionKey> selectedKeys = selector.selectedKeys();\n if (selectedKeys.isEmpty())\n {\n return;\n }\n\n final Iterator<SelectionKey> iter = selectedKeys.iterator();\n while (iter.hasNext())\n {\n final SelectionKey key = iter.next();\n if (key.isReadable())\n {\n handleReadable(key);\n iter.remove();\n }\n }\n }",
"@Test\n public void testGetByKey() throws Exception {\n when(repository.findByKey(this.product.getKey())).thenReturn(Optional.of(this.product));\n\n assertEquals(this.product, service.getByKey(this.product.getKey()));\n }",
"public void testInit() throws Exception {\n\t\tLOGGER.info(\"TestDictionay.testInit(). Expect two console ERRORs\");\n\t\tDictionaryLZW dict = new DictionaryLZW();\n\t\t// We should find \"A\" at 0 and \"Z\" at 25.\n\t\tAssert.assertEquals(1, dict.findEntry(\"A\"));\n\t\tAssert.assertEquals(26, dict.findEntry(\"Z\"));\n\t\t// check some that should not be found\n\t\tAssert.assertEquals(-1, dict.findEntry(\"\"));\n\t\tAssert.assertEquals(-1, dict.findEntry(\"ZZ\"));\n\t\t// and a null for robustness\n\t\tAssert.assertEquals(-1, dict.findEntry(null));\n\t}",
"@Test\n\tpublic void testPutAccessReodersElement() {\n\t\tmap.put(\"key1\", \"value1\");\n\n\t\tSet<String> keySet = map.keySet();\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key1\",\n\t\t\tkeySet.iterator().next());\n\n\t\t// move 2 to the top/front\n\t\tmap.put(\"key2\", \"value2\");\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key2\",\n\t\t\tkeySet.iterator().next());\n\t}",
"private void throwIfNullKey(final K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"null keys are not supported\");\n }\n }",
"@Test\n public void producerEncryptionKeyNameTest() {\n // TODO: test producerEncryptionKeyName\n }",
"@Test\n void testValidateFindBySymbol() {\n Exception exception1 = assertThrows(ValidationException.class, () -> service.findBySymbol(null));\n assertTrue(exception1.getMessage().contains(\"Symbol is required\"));\n\n Exception exception2 = assertThrows(NotFoundException.class, () -> service.findBySymbol(CURRENCY_SYMBOL_NON_EXISTENT));\n assertTrue(exception2.getMessage().contains(\"Currency not found\"));\n }",
"@Test\n public void testKeyGeneration() {\n final int NUM_KEYS = 10;\n Set<byte[]> generatedKeys = new HashSet<>(NUM_KEYS);\n\n for (int i = 0; i < NUM_KEYS; ++i) {\n byte[] newKey = KeyGenerator.instance().generateKey();\n\n assertFalse(\"Duplicate key generated #\" + i, generatedKeys.contains(newKey));\n generatedKeys.add(newKey);\n }\n }",
"public void testGetGame() throws Exception {\n try {\n dao.getGame(1);\n fail(\"EntryNotFoundException expected\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }",
"@Test\n public void testGetCmekKey() {\n String project = UUID.randomUUID().toString();\n MockFailureCollector collector = new MockFailureCollector();\n String configKey = String.format(\"projects/%s/locations/key-location/keyRings/ring/cryptoKeys/test_key\", project);\n String key = String.format(\"projects/%s/locations/us/key-location/my_ring/cryptoKeys/test_key\", project);\n\n MockArguments arguments = new MockArguments();\n arguments.set(\"gcp.cmek.key.name\", key);\n\n CryptoKeyName keyReturned = CmekUtils.getCmekKey(configKey, arguments.asMap(), collector);\n Assert.assertEquals(configKey, keyReturned.toString());\n }",
"@Override\n public void onFailure(Throwable e) {\n handleFailure(key, value, e);\n }",
"@Override\n public void onFailure(Throwable e) {\n handleFailure(key, value, e);\n }",
"private void checkKeysAndRoleForConnection() {\n if (!Strings.isNullOrEmpty(iamRole) || this.containsMacro(\"iamRole\")) {\n if (!((Strings.isNullOrEmpty(accessKey) && !this.containsMacro(\"accessKey\")) &&\n (Strings.isNullOrEmpty(secretAccessKey) && !this.containsMacro(\"secretAccessKey\")))) {\n throw new IllegalArgumentException(\"Both configurations 'Keys(Access and Secret Access keys)' and 'IAM \" +\n \"Role' can not be provided at the same time. Either provide the 'Keys\" +\n \"(Access and Secret Access keys)' or 'IAM Role' for connecting to S3 \" +\n \"bucket.\");\n }\n }\n\n if (Strings.isNullOrEmpty(iamRole)) {\n if (!((!Strings.isNullOrEmpty(accessKey) || this.containsMacro(\"accessKey\")) &&\n (!Strings.isNullOrEmpty(secretAccessKey) || this.containsMacro(\"secretAccessKey\")))) {\n throw new IllegalArgumentException(\"Both configurations 'Keys(Access and Secret Access keys)' and 'IAM \" +\n \"Role' can not be empty at the same time. Either provide the 'Keys\" +\n \"(Access and Secret Access keys)' or 'IAM Role' for connecting to S3 \" +\n \"bucket.\");\n }\n }\n }",
"@Test(timeout = 4000)\n public void test032() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n try { \n jSONObject0.put((String) null, false);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"private void verifyCustomMethodsAndTransMaps()\n {\n for (String key : fieldMap.keySet())\n {\n String fieldMapVal[] = fieldMap.get(key);\n String indexType = fieldMapVal[1];\n String indexParm = fieldMapVal[2];\n String mapName = fieldMapVal[3];\n\n if (indexType.startsWith(\"custom\"))\n verifyCustomMethodExists(indexType, indexParm);\n\n // check that translation maps are present in transMapMap\n if (mapName != null && findTranslationMap(mapName) == null)\n {\n// System.err.println(\"Error: Specified translation map (\" + mapName + \") not found in properties file\");\n logger.error(\"Specified translation map (\" + mapName + \") not found in properties file\");\n throw new IllegalArgumentException(\"Specified translation map (\" + mapName + \") not found in properties file\");\n }\n }\n }",
"@Test\n public void shouldReturnNonEmptyTriggerEntries() throws Exception {\n //given\n when(resultMap.get(TRIGGERS_KEY + 0)).thenReturn(\"my entry value 0\");\n when(resultMap.get(TRIGGERS_KEY + 1)).thenReturn(\"my entry value 1\");\n givenNoHandleErrorMap(resultMap);\n when(resultMap2.get(TRIGGERS_KEY + 0)).thenReturn(\"my entry2 value 0\");\n when(resultMap2.get(TRIGGERS_KEY + 1)).thenReturn(\"my entry2 value 1\");\n when(resultMap2.get(TRIGGERS_KEY + 2)).thenReturn(\"my entry2 value 2\");\n givenNoHandleErrorMap(resultMap2);\n //when\n List<ITriggerEntry> triggerEntries = triggersDelegator.getTriggerEntries();\n //then\n assertThat(triggerEntries.size(), is(5));\n assertThat(triggerEntries.get(1).getOrder(), is(1));\n assertThat(triggerEntries.get(4).getOrder(), is(2));\n }",
"private void testGet() {\n System.out.println(\"------ TESTING: get(int index) ------\");\n System.out.println(\"Expected: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 \");\n System.out.print(\"Returned: \");\n try{\n for(int i = 0; i < iSize; i++) {\n if (iTestList.get(i) != i)\n throw new RuntimeException(\"FAILED -> get value is not working correctly\");\n else\n System.out.print(iTestList.get(i) + \" \");\n }\n // test to see if we can get values out of bounds\n iTestList.get(-9);\n iTestList.get(iSize+10);\n }catch (RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }",
"@Test\n public void testDelete() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n Assert.assertTrue(map.delete(\"key-1\", 0));\n \n Assert.assertNull(map.get(\"key-1\"));\n \n Assert.assertFalse(map.delete(\"no-set-key\", 0));\n }",
"public void testGetRowKey() {\n TaskSeriesCollection c = createCollection1();\n }",
"@Test\n public void chefServerKeyTest() {\n // TODO: test chefServerKey\n }",
"@org.junit.Test\n public void get() throws Exception {\n assertEquals(null, hashTable.get(\"savon\"));\n assertEquals(\"camp\", hashTable.get(\"math\"));\n hashTable.put(\"math\", \"club\");\n assertEquals(\"club\", hashTable.get(\"math\"));\n }",
"@Test\n public void protectionKeyTest() {\n // TODO: test protectionKey\n }",
"@Test\n public void testSearchNastyCases() {\n RpkiObjectCoder coder = new RpkiObjectCoder();\n AtomicInteger brokenCounter = new AtomicInteger(0);\n lmdb.readTx0(tx -> {\n lmdbRpkiObject.forEach(tx, (k, bb) -> {\n byte[] bytes = Bytes.toBytes(bb);\n try {\n RpkiObject rpkiObject = coder.fromBytes(bytes);\n assertEquals(rpkiObject.key(), k);\n assertArrayEquals(Sha256.hash(rpkiObject.getEncoded()), rpkiObject.getSha256());\n } catch (Exception e) {\n brokenCounter.incrementAndGet();\n e.printStackTrace();\n }\n });\n });\n assertEquals(0, brokenCounter.get());\n }",
"private String check_Key(String key) throws JsonException {\r\n\t\tif (key == null || key.isEmpty()) {\r\n\t\t\tthrow new JsonException(\"The key must not null, or empty\");\r\n\t\t}\r\n\r\n\t\treturn key;\r\n\t}",
"@Test\n public void testWithRightPathWrongKey() throws Exception {\n final Http2Client client = Http2Client.getInstance();\n final CountDownLatch latch = new CountDownLatch(1);\n final ClientConnection connection;\n try {\n connection = client.connect(new URI(\"http://localhost:17352\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.EMPTY).get();\n } catch (Exception e) {\n throw new ClientException(e);\n }\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n try {\n ClientRequest request = new ClientRequest().setPath(\"/test1\").setMethod(Methods.GET);\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(new HttpString(\"x-gateway-apikey\"), \"wrong-key\");\n connection.sendRequest(request, client.createClientCallback(reference, latch));\n latch.await();\n } catch (Exception e) {\n logger.error(\"Exception: \", e);\n throw new ClientException(e);\n } finally {\n IoUtils.safeClose(connection);\n }\n int statusCode = reference.get().getResponseCode();\n String responseBody = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n Assert.assertEquals(401, statusCode);\n if(statusCode == 401) {\n Status status = Config.getInstance().getMapper().readValue(responseBody, Status.class);\n Assert.assertNotNull(status);\n Assert.assertEquals(\"ERR10075\", status.getCode());\n }\n }",
"@Test\n public void testInvalidS3Buckets() throws GenieException {\n final String[] invalidBuckets = // \"buc..ket\", // Invalid, but current logic does not catch this\n new String[]{ \"\", \" \", \"buc ket\", \"buc[ket\", \"/\" }// \"buc..ket\", // Invalid, but current logic does not catch this\n ;\n for (final String invalidBucket : invalidBuckets) {\n final String path = (\"s3://\" + invalidBucket) + \"/key\";\n Assert.assertFalse((\"Passed validation: \" + path), this.s3FileTransfer.isValid(path));\n boolean genieException = false;\n try {\n this.s3FileTransfer.getS3Uri(path);\n } catch (final GenieBadRequestException e) {\n genieException = true;\n } finally {\n Assert.assertTrue((\"Parsed without error: \" + path), genieException);\n }\n }\n }",
"@Test(timeout = 4000)\n public void test20() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.enumeration(\"|d47Gj]%$2|3j>C_K\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getObjects();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"@Test\n\tvoid testPickupKey2() {\n\t\tdungeon.setPlayer(player);\n\t\tdungeon.setGoal(goal);\n\t\t\n\t\tKey key = new Key(1,1);\n\t\tdungeon.addEntity(key);\n\t\tdungeon.clock(\"Down\");\n\t\tdungeon.clock(\"Right\");\n\t\t\n\t\tKey pickupKey = player.getKey();\n\t\tassertEquals(pickupKey, key, \"Player cannot pick up a key : \" + pickupKey + \"\\n\");\n\t\t\n\t\tKey nullKey = null;\n\t\tfor(Entity e : dungeon.getEntity(1, 1)) {\n\t\t\tif (e instanceof Key) {\n\t\t\t\tnullKey = (Key)e;\n\t\t\t}\n\t\t}\n\t\tassertEquals(nullKey,null, \"PickupKey is still in a dungeon : \" + nullKey + \"\\n\");\n\t}",
"public String checkKey() {\n for (int i = 0; i < keys.length; i++) {\n if (!this.keys[i].isValid()) {\n return \"Invalid Key found in Grid. Key Position is \" + i\n + \" Key is: \" + keys[i].getOrigStr();\n }\n }\n return null;\n }",
"private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}",
"@Test\n public void testPutHandlesOtherExceptionsCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(false);\n }",
"private void checkStringKey(Key key) {\n m_logger.debug(\"checkByteArrKey start key:\" + key.toString());\n if(m_cache != null){\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n }\n if (m_checked){\n m_logger.debug(\"checkByteArrKey end.\");\n \treturn;\n }\n if (key instanceof String) {\n if (!(m_cache instanceof StringMap)) {\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n throw new RuntimeException(\"Wrong map/set for String key\");\n }\n }\n m_checked = true;\n m_logger.debug(\"checkByteArrKey end.\");\n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the last character\n return StringUtilsHelper.toResourceMessageKey((dotIndex < (type.length() - 1)) ? type.substring(dotIndex + 1) : type);\n\n }",
"public void testGetExceptions() {\n boolean buildEx = false;\n\n // Set up a SOSGet task\n sosGet.setProject(project);\n // No options set - SosServerPath should fail\n try {\n commandline = sosGet.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"sosserverpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"GetException SosServerPath\", buildEx);\n buildEx = false;\n\n // Set SosServerPath - Username should fail\n sosGet.setSosServerPath(SOS_SERVER_PATH);\n try {\n commandline = sosGet.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"username attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"GetException Username\", buildEx);\n buildEx = false;\n\n // Set Username - VssServerPath should fail\n sosGet.setUsername(SOS_USERNAME);\n try {\n commandline = sosGet.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"vssserverpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"GetException VssServerPath\", buildEx);\n buildEx = false;\n\n // Set VssServerPath - ProjectPath should fail\n sosGet.setVssServerPath(VSS_SERVER_PATH);\n try {\n commandline = sosGet.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"projectpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"GetException ProjectPath\", buildEx);\n\n // Set ProjectPath - All required options set\n sosGet.setProjectPath(VSS_PROJECT_PATH);\n try {\n commandline = sosGet.buildCmdLine();\n buildEx = true;\n } catch (BuildException be) {\n buildEx = false;\n }\n assertTrue(\"GetException All required options set\", buildEx);\n }"
] |
[
"0.7240947",
"0.6687144",
"0.66722625",
"0.64726484",
"0.6464092",
"0.64624035",
"0.6445331",
"0.64435095",
"0.6417295",
"0.63613254",
"0.6323713",
"0.6317273",
"0.625044",
"0.6248302",
"0.6222516",
"0.61658674",
"0.6152556",
"0.61066747",
"0.60352206",
"0.6034306",
"0.5965618",
"0.59650815",
"0.5908962",
"0.58753294",
"0.58749306",
"0.58662945",
"0.5858988",
"0.5852327",
"0.58481103",
"0.5846834",
"0.58392394",
"0.5827754",
"0.580731",
"0.5771411",
"0.5748909",
"0.5694369",
"0.56725025",
"0.56564933",
"0.5646157",
"0.5644599",
"0.5634071",
"0.56219035",
"0.561189",
"0.56108636",
"0.56030846",
"0.55975056",
"0.55973655",
"0.55913955",
"0.5575176",
"0.5562831",
"0.55625117",
"0.5555596",
"0.5540943",
"0.5523416",
"0.5516361",
"0.55106735",
"0.54980826",
"0.54861116",
"0.5476766",
"0.5476561",
"0.54740095",
"0.5471867",
"0.54698724",
"0.54634273",
"0.5462424",
"0.5458641",
"0.5453558",
"0.54458165",
"0.54359406",
"0.54331565",
"0.5394962",
"0.5393125",
"0.5389592",
"0.5388827",
"0.5383167",
"0.5377821",
"0.5377821",
"0.5359477",
"0.5357737",
"0.535563",
"0.53474927",
"0.5343793",
"0.5336144",
"0.53274864",
"0.53185064",
"0.5317685",
"0.53158027",
"0.5307817",
"0.5306312",
"0.5301515",
"0.530081",
"0.52945745",
"0.529313",
"0.52854544",
"0.5284244",
"0.5283453",
"0.52818257",
"0.52777135",
"0.5274352",
"0.52671075"
] |
0.75198823
|
0
|
Tests obtaining a property as list whose value contains the list delimiter. Multiple values should be returned.
|
@Test
public void testGetListWithDelimiter() throws ConfigurationException {
final DatabaseConfiguration config = setUpConfig();
config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));
final List<Object> values = config.getList("keyMulti");
assertEquals(Arrays.asList("a", "b", "c"), values);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }",
"static public Vector getPropertyValues (Properties props, String propName)\n{\n String propertyDelimiterName = \"property.token.delimiter\";\n String delimiter = props.getProperty (propertyDelimiterName, \"::\");\n\n String listStartTokenName = \"list.startToken\";\n String listStartToken = props.getProperty (listStartTokenName, \"(\");\n\n String listEndTokenName = \"list.endToken\";\n String listEndToken = props.getProperty (listEndTokenName, \")\");\n\n Vector result = new Vector ();\n String propString = props.getProperty (propName);\n if (propString == null)\n return result;\n String propStringTrimmed = propString.trim ();\n String [] tokens = Misc.parseList (propStringTrimmed, listStartToken, listEndToken, delimiter);\n\n for (int i=0; i < tokens.length; i++)\n result.add (tokens [i]);\n\n return result;\n\n}",
"public static List getPropertyList(String pPropertyList,Logger pLogger)\n\t{\n\t\tArrayList propList=null;\n\t\tStringTokenizer tokenizer = new StringTokenizer(pPropertyList,Constants.DELIMITER);\n\t\tint tokens = tokenizer.countTokens();\n\t\tpLogger.log(Level.INFO,\"Value to parse:\"+pPropertyList);\n\t\tpLogger.log(Level.INFO,\"Num tokens:\"+tokens);\n\t\t\n\t\tif(pPropertyList!=null)\t\t\t\n\t\t{\n\t\t\tpropList = new ArrayList();\n\t\t\t\n\t\t\t\t\twhile(tokenizer.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\t\tString token = tokenizer.nextToken();\n\t\t\t\t\t\tpropList.add(token);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn propList;\n\t\t\n\t}",
"@Test\n public void testSetPropertyWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpMultiConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n config.setProperty(\"keyList\", \"1;2;3\");\n final String[] values = config.getStringArray(\"keyList\");\n assertArrayEquals(new String[] {\"1\", \"2\", \"3\"}, values);\n }",
"private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }",
"Rule ListSeparator() {\n // No effect on value stack\n return Sequence(AnyOf(\",;\"), WhiteSpace());\n }",
"@Test\n public void testGetListWithDelimiterParsingDisabled() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n assertEquals(\"a;b;c\", config.getString(\"keyMulti\"));\n }",
"java.util.List<java.lang.String> getValuesList();",
"@Test\n public void testAddWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n config.addProperty(\"keyList\", \"1;2;3\");\n final String[] values = config.getStringArray(\"keyList\");\n assertArrayEquals(new String[] {\"1\", \"2\", \"3\"}, values);\n }",
"java.util.List<java.lang.String>\n getStrValuesList();",
"private boolean isWrappedListOfValues(FieldAccessor fieldAccessor) {\n\t\treturn false;\n\t}",
"static public boolean isList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n Vector list = new Vector ();\n\n if (s.startsWith (startToken) && s.endsWith (endToken)) \n return true;\n else\n return false;\n\n\n}",
"private static BiFunction<String, Value<?>, PropertyFilter> requireList(final BiFunction<String, ListValue, PropertyFilter> target) {\n\t\treturn (property, value) -> {\n\t\t\tif (value instanceof ListValue) {\n\t\t\t\treturn target.apply(property, (ListValue)value);\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Filter operation on '\" + property + \"' expected a list-type property\");\n\t\t\t\t// Alternatively, convert it?\n\t\t\t\t//return target.apply(property, ListValue.of(value));\n\t\t\t}\n\t\t};\n\t}",
"private List<String> ListTransform(Object value) {\n\n if (value.toString().contains(lineDelimiter))\n return Arrays.asList(value.toString().split(lineDelimiter));\n\n List<String> lines = new ArrayList<>();\n if (!value.toString().equals(\"\"))\n lines.add(value.toString());\n\n return lines;\n }",
"static public String [] parseList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n if (s.startsWith (startToken) && s.endsWith (endToken)) {\n s = s.substring (1, s.length()-1); \n return s.split (delimiter);\n }\n else {\n String [] unparseableResult = new String [1];\n unparseableResult [0] = listString;\n return unparseableResult;\n }\n \n /*********************\n StringTokenizer strtok = new StringTokenizer (deparenthesizedString, delimiter);\n int count = strtok.countTokens ();\n for (int i=0; i < count; i++)\n list.add (strtok.nextToken ());\n }\n else\n list.add (listString);\n\n return (String []) list.toArray (new String [0]);\n **********************/\n\n\n}",
"@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }",
"private static String asPropertyValue( List<?> values, boolean present ) {\n return values.isEmpty() ? String.valueOf( present ) : Joiner.on( \",\" ).join( values );\n }",
"@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}",
"@Test\n public void testSplitOnPattern() {\n List<String> list = Splitter.on(\n Pattern.compile(\"\\\\|\")\n ).trimResults().omitEmptyStrings().splitToList(\"hello | world|||\");\n assertThat(list, notNullValue());\n assertThat(list.size(), equalTo(2));\n assertThat(list.get(0), equalTo(\"hello\"));\n assertThat(list.get(1), equalTo(\"world\"));\n }",
"protected final List getValuesAsList(String values)\r\n {\r\n List list = new LinkedList();\r\n StringTokenizer tok = new StringTokenizer(values, DELIMITER);\r\n\r\n while(tok.hasMoreTokens())\r\n {\r\n // extract each value, trimming whitespace\r\n list.add(tok.nextToken().trim());\r\n }\r\n\r\n // return the list\r\n return list;\r\n }",
"public static PropertyDescriptionBuilder<List<String>> listOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<List<String>> clazz = (Class<List<String>>)(Class<?>)List.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseList(Parsers::parseString));\n }",
"protected List<String> getStrings(String key) {\n Object result = properties.get(key);\n if (result == null) {\n return new ArrayList<>();\n } else if (result instanceof String) {\n return Collections.singletonList((String) result);\n } else if (result instanceof List) {\n return (List<String>) result;\n } else if (result instanceof String[]) {\n return Arrays.asList((String[]) result);\n } else if (result instanceof Object[]) {\n return Arrays.stream((Object[]) result)\n .map(o -> (String) o)\n .collect(Collectors.toList());\n } else {\n throw new UnexpectedException(this);\n }\n }",
"public static List<String> deserialize( String value, String delimiter )\n {\n return Arrays.asList( value.split( delimiter ) );\n }",
"@Test\n\tpublic void testListLiteral() throws ParseException {\n\t\tListLiteral listLiteral = langParser(\"[]\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 0);\n\t\tlistLiteral = langParser(\"[101,a,'b']\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 3);\n\t\tassertEquals(listLiteral.getElements().get(0).getClass(), LongLiteral.class);\n\t\tassertEquals(((LongLiteral) listLiteral.getElements().get(0)).longValue(), 101L);\n\t\tassertEquals(listLiteral.getElements().get(1).getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) listLiteral.getElements().get(1)).getName(), \"a\");\n\t\tassertEquals(listLiteral.getElements().get(2).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) listLiteral.getElements().get(2)).getValue(), \"b\");\n\t}",
"private SimpleConfigList parseArray() {\n ConfigOrigin arrayOrigin = lineOrigin();\n List<AbstractConfigValue> values = new ArrayList<AbstractConfigValue>();\n\n consolidateValueTokens();\n\n TokenWithComments t = nextTokenIgnoringNewline();\n\n // special-case the first element\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin,\n Collections.<AbstractConfigValue> emptyList());\n } else if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else {\n throw parseError(addKeyName(\"List should have ] or a first element after the open [, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n\n // now remaining elements\n while (true) {\n // just after a value\n if (checkElementSeparator()) {\n // comma (or newline equivalent) consumed\n } else {\n t = nextTokenIgnoringNewline();\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin, values);\n } else {\n throw parseError(addKeyName(\"List should have ended with ] or had a comma, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n\n // now just after a comma\n consolidateValueTokens();\n\n t = nextTokenIgnoringNewline();\n if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else if (flavor != ConfigSyntax.JSON && t.token == Tokens.CLOSE_SQUARE) {\n // we allow one trailing comma\n putBack(t);\n } else {\n throw parseError(addKeyName(\"List should have had new element after a comma, instead had token: \"\n + t\n + \" (if you want the comma or \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n }",
"private PropertyValues handleListType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\t\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getCollectionReturnType(method,level);\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof List<?>){\n\t\t\tList<?> dataList=(List<?>) data;\n\t\t\tfor(int i=0;i<dataList.size();i++){\n\t\t\t Object element=dataList.get(i);\n\t\t\t String subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+i+PropertyAccessor.PROPERTY_KEY_SUFFIX;\n\t\t\t values.addPropertyValues(resolve(subPath,element,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"@Test\n public void testGetPropertyValueSet(){\n List<User> list = toList(//\n new User(2L),\n new User(5L),\n new User(5L));\n\n Set<Integer> set = CollectionsUtil.getPropertyValueSet(list, \"id\", Integer.class);\n assertThat(set, contains(2, 5));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }",
"@Nullable\n @Generated\n @Selector(\"propertyList\")\n @MappedReturn(ObjCObjectMapper.class)\n public native Object propertyList();",
"Rule ConstListItem() {\n return Sequence(\n ConstValue(),\n Optional(ListSeparator()));\n }",
"PropertyArray(PropertyTokener x) throws PropertyException {\n this();\n if (x.nextClean() != '[') {\n throw x.syntaxError(\"A JSONArray text must start with '['\");\n }\n\n char nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar != ']') {\n x.back();\n for (; ; ) {\n if (x.nextClean() == ',') {\n x.back();\n this.myArrayList.add(PropertyObject.NULL);\n } else {\n x.back();\n this.myArrayList.add(x.nextValue());\n }\n switch (x.nextClean()) {\n case 0:\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n case ',':\n nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar == ']') {\n return;\n }\n x.back();\n break;\n case ']':\n return;\n default:\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n }\n }\n }",
"String getStringList();",
"private String[] splitListColumn(String column) {\n if (column.trim().equals(\"\")) {\n return EMPTY_STRING_ARRAY;\n } else {\n return column.split(INPUT_LIST_DELIM);\n }\n }",
"public abstract List toNameValueList();",
"public Iterator<String> listPropertyValue(String instance, String property)\r\n\t{\r\n\t\tOntResource ontI = obtainOntResource(instance);\r\n\t\tProperty prop = obtainOntProperty(property);\r\n\t\treturn new ToStringIterator<String>(ontI.listPropertyValues(prop));\r\n\t}",
"public List<String> splitCommaSepareatedValues(String commaSepareatedValues) {\n\t\treturn Arrays.asList(commaSepareatedValues.split(\",\"));\n\t}",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\n if (property == TYPE_ARGUMENTS_PROPERTY) {\n return typeArguments();\n }\n // allow default implementation to flag the error\n return super.internalGetChildListProperty(property);\n }",
"public List<String> getAsStringList(String itemName, List<String> defaultValue);",
"java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> \n getPropsList();",
"public boolean isList();",
"public boolean isList();",
"public String[] getStringList();",
"public Properties getProperties(Properties getList);",
"public static List<String> listFromCommaSeparatedStringList(List<String> listOfCommaSeparatedValues) {\n if (listOfCommaSeparatedValues == null) {\n return null;\n }\n List<String> outList = new ArrayList<String>();\n for (String commaSeparatedValues : listOfCommaSeparatedValues) {\n if (commaSeparatedValues != null) {\n List<String> values = Arrays.asList(\n commaSeparatedValues.split(\"\\\\s*,\\\\s*\")\n );\n outList.addAll(values);\n }\n }\n if (outList.size() == 0) {\n return null;\n }\n return outList;\n }",
"public List<String> getV();",
"void setListProperty(Object name, List<Object> list) throws JMSException;",
"public Properties getPropertyInfo(Properties list);",
"public List selectAllByProperty(String property, String value) {\n\t\treturn (List) super.selectAllByProperty(className, property,\n\t\t\t\tvalue);\n\t}",
"@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}",
"boolean isMultiple(String val) {\n\t\tif (val == null) return false;\n\t\treturn val.indexOf(VcfEntry.WITHIN_FIELD_SEP) >= 0;\n\t}",
"public void setV(List<String> v);",
"public List<String> getStringList(String key) {\n Object value = get(key);\n return ((value instanceof List) && !((List)value).isEmpty() &&\n (((List)value).get(0) instanceof String) ? (List<String>)value : emptyStringList);\n }",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingSecondElement() throws ParseException {\n\t\tparser(\"<%=[a,]%>\").block();\n\t}",
"@Test\n\tpublic void testFetchMappedValuesForInValidData() {\n\t\tString input = \"231\";\n\t\tList<String> expectedOutput = Arrays.asList(\"A,B,C\", \"D,E,F\", \"1\");\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(expectedOutput.toArray(), actualOutput.toArray());\n\t}",
"PropertyValue<?, ?>[] values();",
"@Test\r\n public void testListValuedObjectPropertyInvalidation() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n InvalidationReport report = new InvalidationReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"public static boolean isList(Object value) {\n\t\treturn (value != null && value.getClass().isArray());\n\t}",
"public static List<String> deserialize( String value )\n {\n return deserialize( value, DEFAULT_DELIMITER );\n }",
"@Test\r\n public void testListPropertyBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bind(p1);\r\n assertSame(\"sanity, same list bidi-bound\", list, p2.get());\r\n ObservableList<String> other = createObservableList(true);\r\n ChangeReport report = new ChangeReport(p2);\r\n p1.set(other);\r\n assertEquals(\"RT-38770 - bind 2 ListProperties\", 1, report.getEventCount());\r\n }",
"public static boolean notListvalue(String value, String list)\r\n\t{\r\n\t\treturn !isListvalue(value, list);\r\n\t}",
"@Test public void getListTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n \n Assert.assertArrayEquals(pArray, pList.getList());\n }",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\r\n\t\tif (property == NEW_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn newArguments();\r\n\t\t}\r\n\t\tif (property == CONSTRUCTOR_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn constructorArguments();\r\n\t\t}\r\n\t\tif (property == BASE_CLASSES_PROPERTY) {\r\n\t\t\treturn baseClasses();\r\n\t\t}\r\n\t\tif (property == DECLARATIONS_PROPERTY) {\r\n\t\t\treturn declarations();\r\n\t\t}\r\n\t\t// allow default implementation to flag the error\r\n\t\treturn super.internalGetChildListProperty(property);\r\n\t}",
"@Override\n protected List<ElementSearch> fw_findElementsBy(String PropType, String PropValue)\n {\n List<ElementSearch> temp_lst = new ArrayList<>();\n if (PropValue.contains(\"|\"))\n {\n String[] valueList = PropValue.split(\"\\\\|\");\n for (String eachValue : valueList) {\n if ((eachValue != null) && (eachValue.length() > 0))\n {\n temp_lst.addAll(((WebElement)element).findElements(Utilities.getIdentifier(PropType, eachValue)).stream().map(ElementObject::new).collect(Collectors.toList()));\n }\n }\n }\n else\n {\n temp_lst.addAll(((WebElement)element).findElements(Utilities.getIdentifier(PropType, PropValue)).stream().map(ElementObject::new).collect(Collectors.toList()));\n }\n //END HERE\n return temp_lst;\n }",
"public List<TLProperty> getElements();",
"@Given(\"^a list that is \\\"([^\\\"]*)\\\"$\")\n\tpublic void a_list_that_is(String list) throws Throwable {\n\t\tlistAsString = new String(list); \n\t \n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }",
"com.google.protobuf.ProtocolStringList\n getListList();",
"public void processList(List<String> inList);",
"public List<String> getValue() {\r\n return value;\r\n }",
"@Override\n\t\tpublic abstract List<T> parse(Object valueToParse, Type elementType);",
"public static ArrayList<String> getRangeValuesInList(String rangeSeparatedValue)\n\t{\n\t\tArrayList<String> rangeValuesList = new ArrayList<String>();\n\n\t\tif(StringUtil.isInvalidString(rangeSeparatedValue))\n\t\t{\n\t\t\treturn rangeValuesList;\n\t\t}\n\n\t\tint indexOfSeparator = rangeSeparatedValue.indexOf(\n\t\t\t\t\t\t\tGlobalUtil.VALUE_RANGE_SEPARATOR);\n\n\t\t/* if there is no separator, the value is not properly configured */\n\t\tif(indexOfSeparator==-1)\n\t\t{\n\t\t\treturn rangeValuesList;\n\t\t}\n\n\t\tString minVal = rangeSeparatedValue.substring(0, indexOfSeparator);\n\t\tString maxVal = rangeSeparatedValue.substring(indexOfSeparator+1);\n\n\t\trangeValuesList.add(minVal);\n\t\trangeValuesList.add(maxVal);\n\n\t\treturn rangeValuesList;\n\t}",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingFirstElement() throws ParseException {\n\t\tparser(\"<%=[,]%>\").block();\n\t}",
"List<E> list(String field, String contains);",
"protected List<String> convertToList(final String data) {\n\t\tif (data == null || data.length() == 0) {\n\t\t\treturn new ArrayList<String>();\n\t\t}\n\t\tString[] result = data.split(\",\");\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (String val : result) {\n\t\t\tlist.add(val.trim());\n\t\t}\n\t\treturn list;\n\t}",
"public void testNonEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n String[] propValues =\n new String[]{\"No sacrifice is too great in the service of freedom.\",\n \"Freedom is the right of all sentient beings.\"};\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n\n // set multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, propValues);\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n assertTrue(\"Property element should contain value data.\",\n find.contains(\"No sacrifice is too great in the service of freedom.\"));\n }",
"ListProperty<String> getCommandLine();",
"@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"public java.util.List<java.lang.String>\n getStrValuesList() {\n return strValues_;\n }",
"@Override\n\tpublic void visit(ValueListExpression arg0) {\n\t\t\n\t}",
"public ArrayList<Property> getPropertyList()\r\n {\r\n return m_values;\r\n }",
"protected List<String> readStringList(XmlPullParser parser)\n throws IOException, XmlPullParserException {\n\n int length = Integer.parseInt(parser.getAttributeValue(null, ATTRIBUTE_LENGTH));\n List<String> arrayEntries = new ArrayList<String>(length);\n String value = null;\n\n if (length == 0) {\n return arrayEntries;\n }\n\n int outerDepth = parser.getDepth();\n while (XmlUtils.nextElementWithin(parser, outerDepth)) {\n if (parser.getName().equals(TAG_VALUE)) {\n parser.next();\n value = parser.getText();\n arrayEntries.add(value);\n }\n }\n\n return arrayEntries;\n }",
"List<Object> getListProperty(Object name) throws JMSException;",
"private static List<String> convertCommaDelimitedStringToList(String delimitedString) {\n\n\t\tList<String> result = new ArrayList<String>();\n\n\t\tif (!StringUtils.isEmpty(delimitedString)) {\n\t\t\tresult = Arrays.asList(StringUtils.delimitedListToStringArray(delimitedString, \",\"));\n\t\t}\n\t\treturn result;\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n public List getList(String name)\n {\n Object v = getProperty(name);\n return (v == null) ? null : (List) v;\n }",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"public void testEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n // set empty multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, new String[]{});\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n }",
"public static List<String> formPossibleValues(String enumeraion){\n\t\tList<String> ret = new ArrayList<String>();\n\t\tfor (String value : enumeraion.split(\";\"))\n\t\t\tret.add(value);\n\t\t\n\t\treturn ret;\n\t}",
"List getValues();",
"@Test\r\n public void testListValuedObjectPropertyBoundTo() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ListProperty listProperty = new SimpleListProperty();\r\n listProperty.bind(property);\r\n \r\n ChangeReport report = new ChangeReport(listProperty);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: listProperty bound to listValued property fires change event\", \r\n 1, report.getEventCount());\r\n ListChangeReport lr = new ListChangeReport(listProperty);\r\n property.get().remove(0);\r\n assertEquals(1, lr.getEventCount());\r\n }",
"private boolean isParameterList() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameter())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isParameterList())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);",
"@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void testGetValueImmutability() throws java.text.ParseException {\n\n\t\tPropertyCollection prop = this.createCollectionProperty(\n\t\t\t\t\"<property name=\\\"test\\\"\" + \" targettype=\\\"org.rapidbeans.test.TestBean\\\"\" + \" />\", \",\", \"\\\\\");\n\n\t\t// originally prop's value is null (undefined)\n\t\tAssert.assertNull(prop.getValue());\n\n\t\tTestBean bean1 = new TestBean(\"\\\"Bluemel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tTestBean bean2 = new TestBean(\"\\\"Bluemel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tCollection<Link> col = new ArrayList<Link>();\n\t\tcol.add(bean1);\n\t\tcol.add(bean2);\n\t\tprop.setValue(col);\n\n\t\t// then I try to remove an object of the collection via the iterator\n\t\t// returned by the getter\n\t\tCollection<Link> col1 = (Collection<Link>) prop.getValue();\n\t\ttry {\n\t\t\tcol1.clear();\n\t\t} catch (ImmutableCollectionException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\n\t\t// of course our prop stays the same\n\t\tAssert.assertEquals(2, ((Collection<Link>) prop.getValue()).size());\n\t}",
"public abstract List<PropertyType> getBuiltInProperties();",
"boolean getIsList();",
"boolean getIsList();"
] |
[
"0.76240623",
"0.6984267",
"0.68435603",
"0.6659397",
"0.6606165",
"0.6504991",
"0.63145983",
"0.6181859",
"0.6165593",
"0.5994434",
"0.5989114",
"0.5988964",
"0.59080565",
"0.58912504",
"0.58210325",
"0.5802846",
"0.5800103",
"0.5786583",
"0.57802314",
"0.577594",
"0.56850934",
"0.56816256",
"0.5665595",
"0.5594921",
"0.5593179",
"0.5543435",
"0.55403584",
"0.5524662",
"0.55019367",
"0.5493569",
"0.54904395",
"0.5484004",
"0.54796696",
"0.5449549",
"0.54474485",
"0.54102415",
"0.5350163",
"0.53346515",
"0.5308885",
"0.530216",
"0.530216",
"0.52984184",
"0.5295473",
"0.5281157",
"0.52708864",
"0.5269589",
"0.52685666",
"0.52614695",
"0.5257348",
"0.52438414",
"0.5242049",
"0.52417344",
"0.5241188",
"0.5227984",
"0.52273387",
"0.5226893",
"0.5210923",
"0.5209406",
"0.5205203",
"0.52010685",
"0.51843625",
"0.51624906",
"0.5162301",
"0.5160715",
"0.51493126",
"0.5134804",
"0.5133972",
"0.51302814",
"0.5127732",
"0.5124669",
"0.5123116",
"0.5123029",
"0.5119233",
"0.5108441",
"0.51061493",
"0.50752324",
"0.5061458",
"0.5055221",
"0.50524926",
"0.50426555",
"0.50410867",
"0.50402325",
"0.50363445",
"0.5031709",
"0.50306076",
"0.50306076",
"0.50306076",
"0.50306076",
"0.50306076",
"0.50306076",
"0.5029843",
"0.50294584",
"0.50196004",
"0.5011996",
"0.5011133",
"0.5010031",
"0.500794",
"0.5006647",
"0.5000169",
"0.5000169"
] |
0.6909395
|
2
|
Tests obtaining a property whose value contains the list delimiter when delimiter parsing is disabled.
|
@Test
public void testGetListWithDelimiterParsingDisabled() throws ConfigurationException {
final DatabaseConfiguration config = setUpConfig();
assertEquals("a;b;c", config.getString("keyMulti"));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testGetListWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n final List<Object> values = config.getList(\"keyMulti\");\n assertEquals(Arrays.asList(\"a\", \"b\", \"c\"), values);\n }",
"@Test\n public void testSetPropertyWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = helper.setUpMultiConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n config.setProperty(\"keyList\", \"1;2;3\");\n final String[] values = config.getStringArray(\"keyList\");\n assertArrayEquals(new String[] {\"1\", \"2\", \"3\"}, values);\n }",
"Rule ListSeparator() {\n // No effect on value stack\n return Sequence(AnyOf(\",;\"), WhiteSpace());\n }",
"@Test\n public void testAddWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n config.addProperty(\"keyList\", \"1;2;3\");\n final String[] values = config.getStringArray(\"keyList\");\n assertArrayEquals(new String[] {\"1\", \"2\", \"3\"}, values);\n }",
"@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }",
"private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }",
"public static List getPropertyList(String pPropertyList,Logger pLogger)\n\t{\n\t\tArrayList propList=null;\n\t\tStringTokenizer tokenizer = new StringTokenizer(pPropertyList,Constants.DELIMITER);\n\t\tint tokens = tokenizer.countTokens();\n\t\tpLogger.log(Level.INFO,\"Value to parse:\"+pPropertyList);\n\t\tpLogger.log(Level.INFO,\"Num tokens:\"+tokens);\n\t\t\n\t\tif(pPropertyList!=null)\t\t\t\n\t\t{\n\t\t\tpropList = new ArrayList();\n\t\t\t\n\t\t\t\t\twhile(tokenizer.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\t\tString token = tokenizer.nextToken();\n\t\t\t\t\t\tpropList.add(token);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn propList;\n\t\t\n\t}",
"static public boolean isList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n Vector list = new Vector ();\n\n if (s.startsWith (startToken) && s.endsWith (endToken)) \n return true;\n else\n return false;\n\n\n}",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingSecondElement() throws ParseException {\n\t\tparser(\"<%=[a,]%>\").block();\n\t}",
"@Test\n public void testSplitOnPattern() {\n List<String> list = Splitter.on(\n Pattern.compile(\"\\\\|\")\n ).trimResults().omitEmptyStrings().splitToList(\"hello | world|||\");\n assertThat(list, notNullValue());\n assertThat(list.size(), equalTo(2));\n assertThat(list.get(0), equalTo(\"hello\"));\n assertThat(list.get(1), equalTo(\"world\"));\n }",
"static public Vector getPropertyValues (Properties props, String propName)\n{\n String propertyDelimiterName = \"property.token.delimiter\";\n String delimiter = props.getProperty (propertyDelimiterName, \"::\");\n\n String listStartTokenName = \"list.startToken\";\n String listStartToken = props.getProperty (listStartTokenName, \"(\");\n\n String listEndTokenName = \"list.endToken\";\n String listEndToken = props.getProperty (listEndTokenName, \")\");\n\n Vector result = new Vector ();\n String propString = props.getProperty (propName);\n if (propString == null)\n return result;\n String propStringTrimmed = propString.trim ();\n String [] tokens = Misc.parseList (propStringTrimmed, listStartToken, listEndToken, delimiter);\n\n for (int i=0; i < tokens.length; i++)\n result.add (tokens [i]);\n\n return result;\n\n}",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingFirstElement() throws ParseException {\n\t\tparser(\"<%=[,]%>\").block();\n\t}",
"@Test\n\tpublic void testListLiteral() throws ParseException {\n\t\tListLiteral listLiteral = langParser(\"[]\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 0);\n\t\tlistLiteral = langParser(\"[101,a,'b']\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 3);\n\t\tassertEquals(listLiteral.getElements().get(0).getClass(), LongLiteral.class);\n\t\tassertEquals(((LongLiteral) listLiteral.getElements().get(0)).longValue(), 101L);\n\t\tassertEquals(listLiteral.getElements().get(1).getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) listLiteral.getElements().get(1)).getName(), \"a\");\n\t\tassertEquals(listLiteral.getElements().get(2).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) listLiteral.getElements().get(2)).getValue(), \"b\");\n\t}",
"@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}",
"public static List<String> deserialize( String value, String delimiter )\n {\n return Arrays.asList( value.split( delimiter ) );\n }",
"static public String [] parseList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n if (s.startsWith (startToken) && s.endsWith (endToken)) {\n s = s.substring (1, s.length()-1); \n return s.split (delimiter);\n }\n else {\n String [] unparseableResult = new String [1];\n unparseableResult [0] = listString;\n return unparseableResult;\n }\n \n /*********************\n StringTokenizer strtok = new StringTokenizer (deparenthesizedString, delimiter);\n int count = strtok.countTokens ();\n for (int i=0; i < count; i++)\n list.add (strtok.nextToken ());\n }\n else\n list.add (listString);\n\n return (String []) list.toArray (new String [0]);\n **********************/\n\n\n}",
"private boolean isWrappedListOfValues(FieldAccessor fieldAccessor) {\n\t\treturn false;\n\t}",
"String[] getLegalLineDelimiters();",
"public final String getDelimiter() {\n return properties.get(DELIMITER_PROPERTY);\n }",
"private boolean isParameterList() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameter())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isParameterList())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public void checkDelimiters() {\r\n UnicodeSet unicodeSet = this.m_delimiters_;\r\n int i = 0;\r\n if (unicodeSet == null || unicodeSet.size() == 0) {\r\n this.delims = new boolean[0];\r\n return;\r\n }\r\n UnicodeSet unicodeSet2 = this.m_delimiters_;\r\n int rangeEnd = unicodeSet2.getRangeEnd(unicodeSet2.getRangeCount() - 1);\r\n if (rangeEnd < 127) {\r\n this.delims = new boolean[(rangeEnd + 1)];\r\n while (true) {\r\n int charAt = this.m_delimiters_.charAt(i);\r\n if (-1 != charAt) {\r\n this.delims[charAt] = true;\r\n i++;\r\n } else {\r\n return;\r\n }\r\n }\r\n } else {\r\n this.delims = null;\r\n }\r\n }",
"private boolean checkElementSeparator() {\n if (flavor == ConfigSyntax.JSON) {\n TokenWithComments t = nextTokenIgnoringNewline();\n if (t.token == Tokens.COMMA) {\n return true;\n } else {\n putBack(t);\n return false;\n }\n } else {\n boolean sawSeparatorOrNewline = false;\n TokenWithComments t = nextToken();\n while (true) {\n if (Tokens.isNewline(t.token)) {\n // newline number is the line just ended, so add one\n lineNumber = t.token.lineNumber() + 1;\n sawSeparatorOrNewline = true;\n\n // we want to continue to also eat\n // a comma if there is one.\n } else if (t.token == Tokens.COMMA) {\n return true;\n } else {\n // non-newline-or-comma\n putBack(t);\n return sawSeparatorOrNewline;\n }\n t = nextToken();\n }\n }\n }",
"public final ListS3 setDelimiter(final String delimiter) {\n properties.put(DELIMITER_PROPERTY, delimiter);\n return this;\n }",
"public static boolean avoidSpecialCharsInFieldNames() {\n\t\treturn PROP_SEP_LEN > 1;\n\t}",
"public void setDelims(String delims)\n {\n _delims = delims;\n }",
"public static boolean notListvalue(String value, String list)\r\n\t{\r\n\t\treturn !isListvalue(value, list);\r\n\t}",
"@Test\n public void canParseSeparator(){\n int[] i = null;\n try {\n i = SUT.getColumnWidthsFromString(\"1,2,3\");\n } catch (ImportException e) {\n Assert.fail(e.getMessage());\n }\n\n Assert.assertNotNull(i);\n Assert.assertEquals(i[0], 1);\n Assert.assertEquals(i[1], 2);\n Assert.assertEquals(i[2], 3);\n }",
"boolean isDelimited(String s) {\r\n\t\tif (s.length() < 2) return false;\r\n\t\t\r\n\t\tOptional<String> startChar = Optional.of(s.substring(0, 1));\r\n\t\tOptional<String> endChar = Optional.of(s.substring(s.length() - 1));\r\n\t\t\r\n\t\tfor (Delimiter delim: this) {\r\n\t\t\tif (startChar.equals(delim.start()) && endChar.equals(delim.end())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private SimpleConfigList parseArray() {\n ConfigOrigin arrayOrigin = lineOrigin();\n List<AbstractConfigValue> values = new ArrayList<AbstractConfigValue>();\n\n consolidateValueTokens();\n\n TokenWithComments t = nextTokenIgnoringNewline();\n\n // special-case the first element\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin,\n Collections.<AbstractConfigValue> emptyList());\n } else if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else {\n throw parseError(addKeyName(\"List should have ] or a first element after the open [, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n\n // now remaining elements\n while (true) {\n // just after a value\n if (checkElementSeparator()) {\n // comma (or newline equivalent) consumed\n } else {\n t = nextTokenIgnoringNewline();\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin, values);\n } else {\n throw parseError(addKeyName(\"List should have ended with ] or had a comma, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n\n // now just after a comma\n consolidateValueTokens();\n\n t = nextTokenIgnoringNewline();\n if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else if (flavor != ConfigSyntax.JSON && t.token == Tokens.CLOSE_SQUARE) {\n // we allow one trailing comma\n putBack(t);\n } else {\n throw parseError(addKeyName(\"List should have had new element after a comma, instead had token: \"\n + t\n + \" (if you want the comma or \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n }",
"public abstract char getCustomDelimiter();",
"public static List<String> deserialize( String value )\n {\n return deserialize( value, DEFAULT_DELIMITER );\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }",
"private static BiFunction<String, Value<?>, PropertyFilter> requireList(final BiFunction<String, ListValue, PropertyFilter> target) {\n\t\treturn (property, value) -> {\n\t\t\tif (value instanceof ListValue) {\n\t\t\t\treturn target.apply(property, (ListValue)value);\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Filter operation on '\" + property + \"' expected a list-type property\");\n\t\t\t\t// Alternatively, convert it?\n\t\t\t\t//return target.apply(property, ListValue.of(value));\n\t\t\t}\n\t\t};\n\t}",
"boolean isMultiple(String val) {\n\t\tif (val == null) return false;\n\t\treturn val.indexOf(VcfEntry.WITHIN_FIELD_SEP) >= 0;\n\t}",
"@NotNull\n protected ListToken<SyntaxToken<?>> delimited(@NotNull final char[] del,\n @NotNull final Supplier<SyntaxToken<?>> parser,\n final boolean skipLast) {\n return super.delimited(del, parser, skipLast, true);\n }",
"boolean hasSplit();",
"public boolean isSeparator(String token) {\r\n for (String each : separators) {\r\n if (equals(token, each)) return true;\r\n }\r\n return false;\r\n }",
"PropertyArray(PropertyTokener x) throws PropertyException {\n this();\n if (x.nextClean() != '[') {\n throw x.syntaxError(\"A JSONArray text must start with '['\");\n }\n\n char nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar != ']') {\n x.back();\n for (; ; ) {\n if (x.nextClean() == ',') {\n x.back();\n this.myArrayList.add(PropertyObject.NULL);\n } else {\n x.back();\n this.myArrayList.add(x.nextValue());\n }\n switch (x.nextClean()) {\n case 0:\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n case ',':\n nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar == ']') {\n return;\n }\n x.back();\n break;\n case ']':\n return;\n default:\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n }\n }\n }",
"private boolean isDelim(String s){\r\n \r\n switch (s) {\r\n case \"(\":\r\n return true;\r\n case \")\":\r\n return true; \r\n case \",\":\r\n return true; \r\n //case \"'\":\r\n //return true;\r\n case \"=\":\r\n return true; \r\n } \r\n \r\n\treturn false;\r\n \r\n }",
"@Test\n public void testIncludeHeaderDelimited() throws Throwable {\n testIncludeHeaderDelimited(false);\n }",
"@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }",
"@Test(timeout=100)\r\n\tpublic void testSetDelimiter() {\r\n\t\tString [] r1 = {\"NAME\", \"ADDRESS\",\"EMAIL\"};\r\n\t\t// should not remove space inside of quotes\r\n\t\tString [] r2 = {\"Santa Claus\",\"North Pole\",\"santa@snowy.no\"};\r\n\t\tString [] r3 = {\"Obama\",\"1 Pennsylvania Ave\",\"pres@whitehouse.gov\"};\r\n\t\t// default delimiter\r\n\t\twriteArrayToLine(r1);\r\n\t\t// change delimiter\r\n\t\tdelim = ':';\r\n\t\twriteArrayToLine(r2);\r\n\t\twriteArrayToLine(r3);\r\n\t\tout.close();\r\n\t\t\r\n\t\tCSVReader csv = new CSVReader(getInstream());\r\n\t\tassertArrayEquals( r1, csv.next() );\r\n\t\tcsv.setDelimiter(delim);\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\t\tassertArrayEquals( r3, csv.next() );\r\n\t}",
"private List<String> ListTransform(Object value) {\n\n if (value.toString().contains(lineDelimiter))\n return Arrays.asList(value.toString().split(lineDelimiter));\n\n List<String> lines = new ArrayList<>();\n if (!value.toString().equals(\"\"))\n lines.add(value.toString());\n\n return lines;\n }",
"public static boolean isDelimited(String name) {\n if (StringUtil.isEmpty(name)) {\n return false;\n }\n return normalizer.isDelimited(defaultRule, name);\n }",
"Rule ConstListItem() {\n return Sequence(\n ConstValue(),\n Optional(ListSeparator()));\n }",
"String getDelimiter();",
"public void setDelimiter(String delimiter) {\n this.delimiter = delimiter;\n }",
"private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }",
"public static final void setWhitelist(final CMProps props, final WhiteList listType, final String list) {\n if (listType == null)\n return;\n if ((list == null) || (list.trim().length() == 0))\n return;\n final List<String> parts = CMParms.parseCommas(list.trim(), true);\n final List<Pattern> partsCompiled = new ArrayList<Pattern>();\n for (final String part : parts) {\n if (part.trim().length() == 0)\n continue;\n partsCompiled.add(Pattern.compile(part.trim(), Pattern.CASE_INSENSITIVE | Pattern.DOTALL | Pattern.CANON_EQ));\n }\n props.whiteLists.put(listType, partsCompiled.toArray(new Pattern[0]));\n }",
"public void setDelimiters(String delimiters) {\n\t\tthis.delimiters = delimiters;\n\t}",
"java.util.Optional<String> getItemSeparator();",
"@Test\n @Ignore(\"Need to implement\")\n public void testOutputDynamicDelimitedMode() throws Throwable {\n testOutputDynamic(false);\n }",
"static boolean DFPropertyName(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"DFPropertyName\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, K_DECIMAL_SEPARATOR);\n if (!r) r = consumeToken(b, K_GROUPING_SEPARATOR);\n if (!r) r = consumeToken(b, K_INFINITY);\n if (!r) r = consumeToken(b, K_MINUS_SIGN);\n if (!r) r = consumeToken(b, K_NAN);\n if (!r) r = consumeToken(b, K_PERCENT);\n if (!r) r = consumeToken(b, K_PER_MILLE);\n if (!r) r = consumeToken(b, K_ZERO_DIGIT);\n if (!r) r = consumeToken(b, K_DIGIT);\n if (!r) r = consumeToken(b, K_PATTERN_SEPARATOR);\n if (!r) r = consumeToken(b, K_EXPONENT_SEPARATOR);\n exit_section_(b, m, null, r);\n return r;\n }",
"private static String extractCustomMultipleDelimiters(String delimiter) {\n\t\tdelimiter = delimiter.substring(1, delimiter.length() - 1);\n\t\tdelimiter = delimiter.replace(\"][\", \"|\");\n\t\treturn delimiter;\n\t}",
"@Test\n public void delims() {\n }",
"public static PropertyDescriptionBuilder<List<String>> listOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<List<String>> clazz = (Class<List<String>>)(Class<?>)List.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseList(Parsers::parseString));\n }",
"public static boolean canSplit(String name, String delim) {\n return normalizer.canSplit(defaultRule, name, delim);\n }",
"public final ListS3 removeDelimiter() {\n properties.remove(DELIMITER_PROPERTY);\n return this;\n }",
"private static String asPropertyValue( List<?> values, boolean present ) {\n return values.isEmpty() ? String.valueOf( present ) : Joiner.on( \",\" ).join( values );\n }",
"private String[] splitListColumn(String column) {\n if (column.trim().equals(\"\")) {\n return EMPTY_STRING_ARRAY;\n } else {\n return column.split(INPUT_LIST_DELIM);\n }\n }",
"protected void readFieldDelim(java.lang.String s) throws java.io.IOException {\n readExpected(s);\n }",
"public boolean isList();",
"public boolean isList();",
"private boolean isOnIgnoreList(final String part) {\n return IGNORE_LIST.contains(part);\n }",
"private ELOperandToken readSeparatorToken() {\r\n \t\tfState = STATE_SEPARATOR;\r\n \t\tint ch = readCharBackward();\r\n \t\t\r\n \t\treturn (ch == '.' ? new ELOperandToken(index, 1, getCharSequence(index, 1), ELOperandToken.EL_SEPARATOR_TOKEN) :\r\n \t\t\tELOperandToken.EOF);\r\n \t}",
"@Test\n public void testOutputDelimited() throws Throwable {\n testOutputDelimited(false);\n }",
"public void testTokenTypeStringConstructor(){\r\n assertTrue(Token.COMMA.getTokenType() == TokenType.COMMA);\r\n assertTrue(Token.COMMA.getValue().equals(\",\"));\r\n assertTrue(Token.COMMA.getLineNumber() == -1);\r\n }",
"@Test(expected = ConfigurationException.class)\n public void testInvalidSyntax1() throws Exception {\n ConfigurationParser parser = new ConfigurationParser();\n\n parser.parse(CharSource.wrap(\"{ a: \\\"1\\\". b: \\\"2\\\" }\"), FlatObject.class);\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@Test(expected = ConfigurationException.class)\n public void testInvalidSyntax4() throws Exception {\n ConfigurationParser parser = new ConfigurationParser();\n\n parser.parse(CharSource.wrap(\"{ 7: 1 }\"), FlatObject.class);\n }",
"private boolean isSplitChar(char inChar) {\r\n\t\tif (inChar == ' ' || inChar == ',' || inChar == '.') {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}",
"public char getDelimiter()\n {\n return delimiter;\n }",
"boolean getIsList();",
"boolean getIsList();",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }",
"protected final List getValuesAsList(String values)\r\n {\r\n List list = new LinkedList();\r\n StringTokenizer tok = new StringTokenizer(values, DELIMITER);\r\n\r\n while(tok.hasMoreTokens())\r\n {\r\n // extract each value, trimming whitespace\r\n list.add(tok.nextToken().trim());\r\n }\r\n\r\n // return the list\r\n return list;\r\n }",
"public void setFieldDelimiter(String fieldDelimiter) {\n this.fieldDelimiter = fieldDelimiter;\n }",
"public abstract String getInCellDelimiter();",
"public String delimiterRegex() {\n return DELIMITER_REGEX;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@Test\n public final void whenSemicolonDelimiterIsSpecifiedThenItIsUsedToSeparateNumbers() {\n assertEquals(3+6+15, StringCalculator.add(\"//;\\n3;6;15\"));\n }",
"public String nextPropertyValue()\n {\n if (empty())\n return null;\n int start = position;\n int lastValidPos = position;\n\n int ch = input.charAt(position);\n while (ch != -1 && ch != ';' && ch != '}' && ch != '!' && !isEOL(ch)) {\n if (!isWhitespace(ch)) // don't include an spaces at the end\n lastValidPos = position + 1;\n ch = advanceChar();\n }\n if (position > start)\n return input.substring(start, lastValidPos);\n position = start;\n return null;\n }",
"@Test\n public void testStringToList() {\n // test whether empty string converts to empty list\n logger.trace(\"Empty string handled?\");\n String string = \"\";\n List<String> list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single space converts to empty list\n logger.trace(\"Single space handled?\");\n string = \" \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single item surrounded by spaces converts to list of size 1\n logger.trace(\"Item surrounded by spaces handled?\");\n string = \" foo \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 1);\n\n // test whether two item string converts to list of size 2\n logger.trace(\"Two item string handled?\");\n string = \" foo bar \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 2);\n }",
"public void testDumpList() {\n \n String result = tester.dumpList(box); \n \n assertTrue(\"Wrong start\", result.startsWith(\"[item 0, item 1, item 2, item 3, item 4, item 5, \"));\n assertTrue(\"Wrong end\", result.endsWith(\", item 96, item 97, item 98, item 99]\"));\n }",
"public void testEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n // set empty multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, new String[]{});\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n }",
"private static int getNestedPropertySeparatorIndex(String propertyPath, boolean last) {\n\t\tboolean inKey = false;\n\t\tfinal int length = propertyPath.length();\n\t\tint i = (last ? length - 1 : 0);\n\t\twhile (last ? i >= 0 : i < length) {\n\t\t\tswitch (propertyPath.charAt(i)) {\n\t\t\t\tcase PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR:\n\t\t\t\tcase PropertyAccessor.PROPERTY_KEY_SUFFIX_CHAR:\n\t\t\t\t\tinKey = !inKey;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PropertyAccessor.NESTED_PROPERTY_SEPARATOR_CHAR:\n\t\t\t\t\tif (!inKey) {\n\t\t\t\t\t\treturn i;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (last)\n\t\t\t\ti--;\n\t\t\telse\n\t\t\t\ti++;\n\t\t}\n\t\treturn -1;\n\t}",
"@Test\n public void testSplitOnWhitespaceAndCommas() {\n assertEquals(0, Strings.splitOnWhitespaceAndCommas(null).size());\n assertEquals(0, Strings.splitOnWhitespaceAndCommas(\"\").size());\n assertEquals(0, Strings.splitOnWhitespaceAndCommas(\" ,, \\n,\\t, ,, ,\").size());\n \n List<String> split = Strings.splitOnWhitespaceAndCommas(\" ,, hello, \\nthere\\t,,\");\n assertEquals(2, split.size());\n assertEquals(\"hello\", split.get(0));\n assertEquals(\"there\", split.get(1));\n }",
"@Test(expected = ConfigurationException.class)\n public void testInvalidSyntax2() throws Exception {\n ConfigurationParser parser = new ConfigurationParser();\n\n parser.parse(CharSource.wrap(\"{ a: 1\"), FlatObject.class);\n }",
"private static List<String> convertCommaDelimitedStringToList(String delimitedString) {\n\n\t\tList<String> result = new ArrayList<String>();\n\n\t\tif (!StringUtils.isEmpty(delimitedString)) {\n\t\t\tresult = Arrays.asList(StringUtils.delimitedListToStringArray(delimitedString, \",\"));\n\t\t}\n\t\treturn result;\n\n\t}",
"protected List<Evaluable> parseExpressionList(String closingDelimiter) throws ParsingException {\n List<Evaluable> l = new LinkedList<Evaluable>();\n\n if (_token != null &&\n (_token.type != TokenType.Delimiter || !_token.text.equals(closingDelimiter))) {\n\n while (_token != null) {\n Evaluable eval = parseExpression();\n\n l.add(eval);\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\",\")) {\n next(true); // swallow comma, loop back for more\n } else {\n break;\n }\n }\n }\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(closingDelimiter)) {\n next(false); // swallow closing delimiter\n } else {\n throw makeException(\"Missing \" + closingDelimiter);\n }\n\n return l;\n }",
"public static boolean ObjectPropertyList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ObjectPropertyList\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, OBJECT_PROPERTY_LIST, \"<object property list>\");\n r = ObjectProperty(b, l + 1);\n r = r && ObjectPropertyList_1(b, l + 1);\n r = r && ObjectPropertyList_2(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public static boolean isList(Object value) {\n\t\treturn (value != null && value.getClass().isArray());\n\t}",
"public Boolean getExplode() {\n\t\treturn explode;\n\t}",
"public boolean delimiterChecker(String filePath) {\r\n FileReaderWriter fileReaderWriter = new FileReaderWriter();\r\n boolean flag = fileReaderWriter.checkDelimiter(filePath);\r\n return flag;\r\n }",
"@Override\n\tpublic void addProperty(String key, String value) {\n\n\t\tif (key.equals(key_delimiter) && value.length() == 1) {\n\t\t\tvalue = \"#\" + String.valueOf((int) value.charAt(0));\n\t\t}\n\t\tsuper.addProperty(key, value);\n\t}",
"@Test\r\n public void testListPropertyBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bind(p1);\r\n assertSame(\"sanity, same list bidi-bound\", list, p2.get());\r\n ObservableList<String> other = createObservableList(true);\r\n ChangeReport report = new ChangeReport(p2);\r\n p1.set(other);\r\n assertEquals(\"RT-38770 - bind 2 ListProperties\", 1, report.getEventCount());\r\n }",
"public interface SeparatorConfiguration {\n\n String get();\n\n}"
] |
[
"0.7033895",
"0.69783145",
"0.6708216",
"0.667264",
"0.6422022",
"0.6347569",
"0.61617535",
"0.6133456",
"0.5961856",
"0.5907989",
"0.58561957",
"0.5807149",
"0.5715494",
"0.56009847",
"0.5562513",
"0.55435896",
"0.54961026",
"0.54615146",
"0.5443541",
"0.543612",
"0.541058",
"0.53952026",
"0.5325624",
"0.5321832",
"0.52388626",
"0.5236286",
"0.5233894",
"0.5189319",
"0.5183975",
"0.5156627",
"0.51524305",
"0.5127766",
"0.5106396",
"0.5086702",
"0.50810575",
"0.50668025",
"0.50531",
"0.5049156",
"0.50438035",
"0.50364983",
"0.50237197",
"0.50181615",
"0.49987808",
"0.49781483",
"0.49678218",
"0.49661928",
"0.49657464",
"0.4955823",
"0.49387574",
"0.49264237",
"0.4920435",
"0.4909622",
"0.49017566",
"0.4890614",
"0.4867229",
"0.48568928",
"0.4848844",
"0.48469874",
"0.48334548",
"0.48263922",
"0.48099086",
"0.48059613",
"0.48059613",
"0.47883365",
"0.47717825",
"0.47708693",
"0.4768171",
"0.47611743",
"0.4760318",
"0.4760318",
"0.47598955",
"0.47534928",
"0.4744287",
"0.47298524",
"0.47244242",
"0.47244242",
"0.46896583",
"0.4681071",
"0.46785355",
"0.4673245",
"0.46610448",
"0.46594083",
"0.46594083",
"0.46421373",
"0.46403182",
"0.46304896",
"0.46282747",
"0.46237466",
"0.46233672",
"0.46225983",
"0.46203816",
"0.46154484",
"0.46081758",
"0.460639",
"0.46042562",
"0.45993194",
"0.45955983",
"0.45874882",
"0.45825332",
"0.45657024"
] |
0.7440613
|
0
|
Tests handling of errors in getProperty().
|
@Test
public void testGetPropertyError() throws ConfigurationException {
setUpErrorConfig().getProperty("key1");
checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, "key1", null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void testGetProperty()\n {\n assertEquals(\"MSM Extension not present, or incorrect specification version -\", MSM_SPECIFICATION_VERSION,\n System.getProperty(MSM_PROPERTY_NAME));\n }",
"private String getRequiredStringProperty(String property) throws MissingRequiredTestPropertyException{\n\t\tString value = testProperties.getProperty(property);\n\t\tif (value == null)\n\t\t\tthrow new MissingRequiredTestPropertyException(\"test.properties is missing required property \" + property);\n\t\treturn value;\n\t}",
"java.lang.String getProperty();",
"@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n Assert.assertEquals(\"1.2.3\", object.getVersion());\n }",
"public void testGetProperty() {\n assertEquals(rootBlog.getName(), rootBlog.getProperty(Blog.NAME_KEY));\n }",
"String getPropertyExists();",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"@Test\n public void testGetProperty_String_String() throws Exception {\n String key = \"doesn't exist\";\n String defaultValue = \"default\";\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n String expResult = \"default\";\n String result = instance.getProperty(key, defaultValue);\n assertEquals(expResult, result);\n }",
"public String getProperty(String propertyName) throws CoreException;",
"@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetSystemProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n if (object.getOperatingSystemName().isEmpty())\n {\n fail(\"System property: os.name should not be empty!\");\n }\n }",
"@Test\n public void testGetProperties() throws Exception {\n logger.info(\"testGetProperties: test the basic properties file interface\");\n\n // copy system properties\n logger.info(\"Copy system properties to a file\");\n Properties prop1 = System.getProperties();\n File file1 = createFile(\"createAndReadPropertyFile-1\", prop1);\n\n // read in properties, and compare\n logger.info(\"Read in properties from new file\");\n Properties prop2 = PropertyUtil.getProperties(file1);\n\n // they should match\n assertEquals(prop1, prop2);\n\n Properties prop3 = PropertyUtil.getProperties(INTERPOLATION_PROPERTIES);\n\n assertEquals(\"no\", prop3.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), prop3.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, prop3.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), prop3.getProperty(INTERPOLATION_SYS));\n\n Properties prop4 = new Properties();\n prop4.put(INTERPOLATION_NO, \"no\");\n prop4.put(INTERPOLATION_ENV, \"${env:HOME}\");\n prop4.put(INTERPOLATION_CONST, \"${const:org.onap.policy.drools.utils.logging.LoggerUtil.ROOT_LOGGER}\");\n prop4.put(INTERPOLATION_SYS, \"${sys:user.home}\");\n\n PropertyUtil.setSystemProperties(prop4);\n\n assertEquals(\"no\", System.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), System.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, System.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), System.getProperty(INTERPOLATION_SYS));\n }",
"Object getPropertyexists();",
"String getProperty(String property);",
"public void testGetProperties() {\n Properties props = rootBlog.getProperties();\n assertNotNull(props);\n assertEquals(rootBlog.getName(), props.getProperty(Blog.NAME_KEY));\n }",
"private static String getProperty(String paramString) {\n/* 394 */ String str = null;\n/* */ try {\n/* 396 */ str = System.getProperty(paramString);\n/* 397 */ } catch (SecurityException securityException) {\n/* 398 */ securityException.printStackTrace();\n/* 399 */ return str;\n/* 400 */ } catch (NullPointerException nullPointerException) {\n/* 401 */ nullPointerException.printStackTrace();\n/* 402 */ return str;\n/* 403 */ } catch (IllegalArgumentException illegalArgumentException) {\n/* 404 */ illegalArgumentException.printStackTrace();\n/* 405 */ return str;\n/* */ } \n/* 407 */ return str;\n/* */ }",
"@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }",
"Property getProperty();",
"Property getProperty();",
"protected void validateProperty(String name, PolylineMapObject line) throws RuntimeException {\n if (line.getProperties().get(name) == null)\n throw new RuntimeException(\"Property '\" + name + \"' not found when loading platform\");\n\n String value = line.getProperties().get(name).toString();\n\n /*if (value == null)\n throw new RuntimeException(\"Property '\" + name + \"' must be != NULL\");*/\n\n if (value.trim().length() == 0)\n throw new RuntimeException(\"Property '\" + name + \"' cannot be empty\");\n }",
"@Test\n public void testAddPropertyError() throws ConfigurationException {\n setUpErrorConfig().addProperty(\"key1\", \"value\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.ADD_PROPERTY, \"key1\", \"value\");\n }",
"public String getProperty();",
"Object getPropertytrue();",
"public void _getPropertyByName() {\n requiredMethod(\"getProperties()\");\n boolean result;\n try {\n Property prop = oObj.getPropertyByName(IsThere.Name);\n result = (prop != null);\n } catch (com.sun.star.beans.UnknownPropertyException e) {\n log.println(\"Exception occurred while testing\" +\n \" getPropertyByName with existing property\");\n e.printStackTrace(log);\n result = false;\n }\n\n try {\n oObj.getPropertyByName(\"Jupp\");\n log.println(\"No Exception thrown while testing\"+\n \" getPropertyByName with non existing property\");\n result = false;\n }\n catch (UnknownPropertyException e) {\n result = true;\n }\n tRes.tested(\"getPropertyByName()\", result);\n return;\n }",
"@Test(expected = IllegalStateException.class)\n @org.junit.Ignore\n public void shouldNotBeAbleToCallPropertyIfThereAreMultipleProperties() {\n }",
"@Test\n public void testIOExceptionWhileEvaluatingQueries() {\n assertStackTraceOfIOExceptionWhileEvaluatingQueries(PROJOG_DEFAULT_PROPERTIES);\n }",
"@Test(expected = LackOfPropertyException.class)\n\tpublic void testLackOfPropertyException() throws Exception {\n\t\tnew MovieGraphFactory().parse(\"Vertex=<FrankDarabont,Director,<M>>\");\n\t}",
"private File createTestSpecificPropFile(String errorLibName) throws Exception {\n\t\tFile testProp = testingdir.getFile(ERRORLIBPROPS);\n\t\tAssert.assertTrue(\"Creating empty file: \" + testProp, testProp.createNewFile());\n\t\t\n\t\treturn testProp;\n\t}",
"public void verify()\n\t{\n\t\ttry\n\t\t{\n\t\t\tClass<?> propertyType = descriptor.getPropertyType();\n\t\t\t// delegate first to the provided type factory to create a type\n\t\t\t// instance\n\t\t\tObject propertyInstance = typeFactory.create(propertyType);\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tpropertyInstance = createInstanceOfType(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\t// Use Mockito to mock the property\n\t\t\t\t// TODO Use the Reflection API's Proxy instead\n\t\t\t\tpropertyInstance = mock(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tfail(\"Failed to create a mock object of type\" + propertyType.getName());\n\t\t\t}\n\n\t\t\t// Setup\n\t\t\tObject system = typeFactory.create(type);\n\t\t\tif (system == null)\n\t\t\t{\n\t\t\t\tsystem = type.newInstance();\n\t\t\t}\n\n\t\t\t// Execute\n\t\t\tMethod writeMethod = descriptor.getWriteMethod();\n\t\t\tMethod readMethod = descriptor.getReadMethod();\n\t\t\twriteMethod.invoke(system, propertyInstance);\n\t\t\tObject actualObject = readMethod.invoke(system, (Object[]) null);\n\n\t\t\t// Verify\n\t\t\tassertEquals(String.format(\"Verification failed for property %s\", descriptor.getName()), propertyInstance,\n\t\t\t\t\tactualObject);\n\t\t}\n\t\tcatch (IllegalAccessException illegalEx)\n\t\t{\n\t\t\tlogger.error(null, illegalEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InstantiationException instanceEx)\n\t\t{\n\t\t\tlogger.error(null, instanceEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InvocationTargetException invokeEx)\n\t\t{\n\t\t\tlogger.error(null, invokeEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t}",
"int getProperty0();",
"@Test\n public void testGetProperty_String() throws DatabaseException {\n String key = \"version\";\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n String result = instance.getProperty(key);\n \n int major = Integer.parseInt(result.substring(0, result.indexOf('.')));\n \n assertTrue(major >= 5);\n }",
"public Object expectProperty(String name) {\n return getProperty(name).orElseThrow(() -> new IllegalArgumentException(String.format(\n \"Property `%s` is not part of %s, `%s`\", name, getClass().getSimpleName(), this)));\n }",
"String getProperty(String name);",
"public void testInterpolation() throws Exception {\n\t\tConfig config = Config.load(new ConfigRef(\"com/tabulaw/config/config.properties\"));\n\n\t\tIterator<?> itr = config.getKeys();\n\t\twhile(itr.hasNext()) {\n\t\t\tObject obj = itr.next();\n\t\t\tassert obj != null;\n\t\t\tString key = obj.toString();\n\t\t\tassert key.length() > 1;\n\t\t\tString val = config.getString(key);\n\t\t\tassert val != null && val.indexOf(\"${\") < 0 : \"Encountered non-interpolated property value: \" + val;\n\t\t}\n\t}",
"public void testGetSystemProperties() {\n Map<String, String> props = mb.getSystemProperties();\n assertNotNull(props);\n assertTrue(props.size() > 0);\n assertTrue(props.size() == System.getProperties().size());\n for (Map.Entry<String, String> entry : props.entrySet()) {\n assertNotNull(entry.getKey());\n assertNotNull(entry.getValue());\n }\n }",
"public abstract boolean getProperty(String propertyName);",
"public LpException missingConfigurationProperty(String propertyIri);",
"private static String getProperty(String key)\r\n/* 70: */ throws IOException\r\n/* 71: */ {\r\n/* 72: 71 */ log.finest(\"OSHandler.getProperty\");\r\n/* 73: 72 */ File propsFile = getPropertiesFile();\r\n/* 74: 73 */ FileInputStream fis = new FileInputStream(propsFile);\r\n/* 75: 74 */ Properties props = new Properties();\r\n/* 76: 75 */ props.load(fis);\r\n/* 77: 76 */ String value = props.getProperty(key);\r\n/* 78: 77 */ fis.close();\r\n/* 79: 78 */ log.finest(\"Key=\" + key + \" Value=\" + value);\r\n/* 80: 79 */ return value;\r\n/* 81: */ }",
"private static String getPropertyValue(Properties properties, String propertyName) {\n \n String value = properties.getProperty(propertyName);\n \n if (\"\".equals(value)) {\n return null;\n }\n \n return value;\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"private static void checkSystemProperties() \n\tthrows ArgumentMissingException {\n\n\t\tif (System.getProperty(\"properties\") == null) {\n\t\t\tthrow new ArgumentMissingException(\n\t\t\t\t\t\"Please specify the path to the properties file, \" +\n\t\t\t\"e.g. using -Dproperties=/path/to/file.\");\t\t\t\n\t\t}\n\n\t\tif (System.getProperty(\"gold\") == null) {\n\t\t\tthrow new ArgumentMissingException(\n\t\t\t\t\t\"Please specify the path to the Gold trees, \" +\n\t\t\t\"e.g. using -Dgold=/path/to/file.\");\n\t\t}\n\n\t\tif (System.getProperty(\"test\") == null) {\n\t\t\tthrow new ArgumentMissingException(\n\t\t\t\t\t\"Please specify the path to the Test trees, \" +\n\t\t\t\"e.g. using -Dtest=/path/to/file.\");\n\t\t}\t\t\n\n\t}",
"private String getRequiredStringProperty(String[] propertyNameList) throws MissingRequiredTestPropertyException{\n\t\tif (propertyNameList.length == 0)\n\t\t\tthrow new IllegalArgumentException(\"empty property name list\");\n\t\tString value = getOptionalStringProperty(propertyNameList);\n\t\tif (value == null)\n\t\t\tthrow new MissingRequiredTestPropertyException(\"test.properties is missing required property \" + propertyNameList[0]);\n\t\treturn value;\n\t}",
"@Test\n public void test() throws Exception {\n System.out.println(\"teting PropertiesUtils\");\n Properties result = PropertiesUtils.load();\n assertNotNull(result);\n ResourceBundle result_ = PropertiesUtils.loadLanguage(result);\n assertNotNull(result_);\n }",
"int getProperty2();",
"@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}",
"private static String getPropertyValue(Project project, String propertyName)\r\n throws LateDeliverablesProcessingException {\r\n try {\r\n String result = (String) project.getProperty(propertyName);\r\n\r\n if (result == null) {\r\n throw new LateDeliverablesProcessingException(\"The property value of [\" + propertyName\r\n + \"] should not be null.\");\r\n }\r\n\r\n return result;\r\n } catch (ClassCastException e) {\r\n throw new LateDeliverablesProcessingException(\"The property value of [\" + propertyName\r\n + \"] is not of String type.\", e);\r\n }\r\n }",
"@BeforeTest\n\t\tpublic void propCalling() throws IOException\n\t\t{\n\t\t\t\n\t\t\tIntializingProperties();\n\t\t}",
"@Override\n public String getProperty(String s) {\n return null;\n }",
"@Override\n\tpublic void checkPropertyConfiguration() throws IOException, CustomizedException {\n\t\tString conf=PropertyReader.getProperty(\"configuration\");\n\t\tString\tfileName=\"\";\n\t\tconfiguration=conf;\n\t\tif(conf == null || conf.isEmpty())\n\t\t{\n\t\t\tthrow new CustomizedException(\"Configuration property is not set,it must be set to 1 or 2 \");\n\n\t\t}\n\t\tif(conf.equals(\"1\"))\n\t\t{\n\t\t\titeration=1;\n\t\t\tfileName=PropertyReader.getProperty(\"anagram_file\");\n\t\t\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be set to sample against the key anagramFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(conf.equals(\"2\"))\n\t\t{\n\t\t\titeration=Integer.parseInt(PropertyReader.getProperty(\"load_testing_iteration\"));\n\t\t\tfileName=PropertyReader.getProperty(\"large_file\");\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be bigFile against the key largeFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tthis.fileName=fileName;\n\t\t\n\t}",
"@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryException {\n return null;\n }",
"private String getProperty(String property) {\n String ret = sdkProperties.getProperty(property);\n if (null == ret) {\n logger.warn(String.format(\"No configuration value found for '%s'\", property));\n }\n return ret;\n }",
"public static <T> PropertyParseResult<T> failPropertyNotFound(String name) {\n return new PropertyParseResult<T>(null, name, null, Reason.PROPERTY_NOT_FOUND,\n Localization.PROPERTY_NOTFOUND.get(name));\n }",
"public static void main(String... args) {\n // lookup a file sspecified in the properties file\n String propertyName = \"PPI_INTACT_FILE\";\n String filePath = FrameworkPropertyService.INSTANCE.getStringProperty(propertyName);\n edu.jhu.fcriscu1.als.graphdb.util.AsyncLoggingService.logInfo(\"Property: \" +propertyName +\" value: \"+filePath);\n // look up a resource file\n propertyName = \"TEST_PROACT_ADVERSE_EVENT_FILE\";\n FrameworkPropertyService.INSTANCE.getOptionalResourcePath(propertyName)\n .ifPresent(path -> System.out.println(\"Resource path = \" +path.toString()));\n // look up bad property - should get error message\n propertyName = \"XXXXXXXXXX\";\n String badValue = FrameworkPropertyService.INSTANCE.getStringProperty(propertyName);\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"public static void main(String[] args){\n PropertiesDemo.check();\n }",
"@Test\n public void testCreateFromProperties_String() throws Exception {\n System.out.println(\"createFromProperties\");\n \n EngineConfiguration result = EngineConfiguration.createFromProperties(propertiesName);\n assertProperties(result);\n }",
"Object getProperty(String name);",
"@Test\n @org.junit.Ignore\n public void shouldBeAbleToCallPropertyIfThereIsASingleProperty() {\n }",
"Object getProperty(String key);",
"private String getRequiredProperty(Properties props, String key) {\r\n\t\tString value = props.getProperty(key);\r\n\t\tif ((value == null) || (value.trim().length() == 0)) {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Property file must provide a value for '\" + key + \"'\");\r\n\t\t}\r\n\t\treturn value;\r\n\t}",
"boolean hasGetProperty();",
"public <T> T expectProperty(String name, Class<T> type) {\n return getProperty(name, type).orElseThrow(() -> new IllegalArgumentException(String.format(\n \"Property `%s` is not part of %s, `%s`\", name, getClass().getSimpleName(), this)));\n }",
"private void checkProperties(Configuration compositeConfiguration)\n {\n assertTrue(\"Make sure we have loaded our key\", compositeConfiguration\n .getBoolean(\"test.boolean\"));\n assertEquals(\"I'm complex!\", compositeConfiguration\n .getProperty(\"element2.subelement.subsubelement\"));\n assertEquals(\"property in the XMLPropertiesConfiguration\", \"value1\",\n compositeConfiguration.getProperty(\"key1\"));\n }",
"@Test (dataProvider = \"testData\")\n public void readingPropertiesFileTest (final String testUrl, final String userName, final int port) {\n assertWithMessage (\"testurl\").that (testUrl)\n .isNotEmpty ();\n assertWithMessage (\"username\").that (userName)\n .isNotEmpty ();\n assertWithMessage (\"port\").that (port)\n .isNotNull ();\n }",
"static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"@Override\n\tpublic String getProperty(String property)\n\t{\n\t\tString value = super.getProperty(property.trim());\n\t\tif (value == null)\n\t\t\treturn null;\n\t\t\n\t\taddRequestedProperty(property, value);\n\t\t\t\t\n\t\tint i1 = value.indexOf(\"<property:\");\n\t\twhile (i1 >= 0)\n\t\t{\n\t\t\tint i2 = value.substring(i1).indexOf(\">\")+i1;\n\t\t\tif (i2 < 0)\n\t\t\t\ti2 = value.length();\n\t\t\t\n\t\t\tif (i2 > i1+10)\n\t\t\t{\n\t\t\t\tString p = value.substring(i1+10, i2);\n\t\t\t\tif (super.containsKey(p))\n\t\t\t\t{\n\t\t\t\t\tString v = super.getProperty(p);\n\t\t\t\t\tvalue = value.substring(0,i1)+v+value.substring(i2+1);\n\t\t\t\t} \n\t\t\t\telse\n\t\t\t\t\treturn \"ERROR: Property \"+p+\" is not specified in the properties file\";\n\t\t\t}\n\t\t\ti1 = value.indexOf(\"<property:\");\n\t\t}\n\n\t\ti1 = value.indexOf(\"<env:\");\n\t\twhile (i1 >= 0)\n\t\t{\n\t\t\tint i2 = value.indexOf(\">\");\n\t\t\tif (i2 > i1+5)\n\t\t\t{\n\t\t\t\tString p = value.substring(i1+5, i2);\n\t\t\t\tString v = System.getenv(p);\n\t\t\t\tif (v != null)\n\t\t\t\t\tvalue = value.substring(0,i1)+v+value.substring(i2+1);\n\t\t\t\telse\n\t\t\t\t\treturn \"ERROR: Property \"+p+\" is not specified in the user's environment\";\n\t\t\t}\n\t\t\ti1 = value.indexOf(\"<env:\");\n\t\t}\n\n\t\treturn value.trim();\n\t}",
"public static String getProperty(String propertyName){\r\n String val = userProps.getProperty(propertyName);\r\n\r\n if (val == null)\r\n return jinProps.getProperty(propertyName);\r\n else\r\n return val;\r\n }",
"public abstract Object getProperty(String property) throws SOAPException;",
"public String getProperty(String name);",
"int getProperty1();",
"@Test\n public void testClearPropertyError() throws ConfigurationException {\n setUpErrorConfig().clearProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR_PROPERTY, \"key1\", null);\n }",
"public static <T> PropertyParseResult<T> failError(IProperty<T> property, String name, String input) {\n return new PropertyParseResult<T>(property, name, null, Reason.ERROR,\n Localization.PROPERTY_ERROR.get(name, input));\n }",
"@Test\n public void testGetProperties() throws DatabaseException {\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n Properties result = instance.getProperties();\n assertTrue(result.size() > 0);\n cveDb.close();\n }",
"private String getErrorMessage(Control control, PropertyDescriptor property) {\n \n \t\tClass<? extends Control> controlClass = control.getClass();\n \t\tStringBuilder sb = new StringBuilder(\"Cannot update property \"); //$NON-NLS-1$\n \t\tsb.append(\"\\\"\" + property.getName() + \"\\\"\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tsb.append(\" of the class \"); //$NON-NLS-1$\n \t\tsb.append(\"\\\"\" + controlClass.getName() + \"\\\"\"); //$NON-NLS-1$ //$NON-NLS-2$\n \n \t\treturn sb.toString();\n \n \t}",
"@Ignore //Refactor this test to Integration Test project\n @Test\n public void testWritePropertyFile() throws Exception\n {\n System.out.println(\"writePropertyFile\");\n String sPropertyFile = \"testprops\";\n Properties oProps = new Properties();\n oProps.setProperty(\"CacheRefreshDuration\", \"0\");\n oProps.setProperty(\"Prop1\", \"Value1\");\n oProps.setProperty(\"Prop2\", \"Value2\");\n PropertyFileManager.writePropertyFile(sPropertyFile, oProps);\n \n String sValue = PropertyAccessor.getProperty(sPropertyFile, \"CacheRefreshDuration\");\n assertEquals(\"0\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop1\");\n assertEquals(\"Value1\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop2\");\n assertEquals(\"Value2\", sValue);\n \n oProps.setProperty(\"Prop3\", \"Value3\");\n PropertyFileManager.writePropertyFile(sPropertyFile, oProps);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"CacheRefreshDuration\");\n assertEquals(\"0\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop1\");\n assertEquals(\"Value1\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop2\");\n assertEquals(\"Value2\", sValue);\n\n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop3\");\n assertEquals(\"Value3\", sValue);\n \n PropertyFileManager.deletePropertyFile(sPropertyFile);\n \n }",
"public String getOptionalStringProperty(String property) {\n\t\treturn testProperties.getProperty(property);\n\t}",
"public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }",
"public void testAssertPropertyReflectionEquals_notEqualsDifferentValues() {\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"xxxxxx\", testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }",
"static void checkKey(String firstProperty, String secondProperty) {\n firstProperty = firstProperty.toUpperCase();\n secondProperty = secondProperty.toUpperCase();\n if (!properties.contains(firstProperty) && !properties.contains(secondProperty)\n && !negativeProperties.contains(firstProperty) && !negativeProperties.contains(secondProperty)) {\n System.out.printf(\"The properties [%s, %s] are wrong.\\n\" +\n \"Available properties: %s%n\\n\", firstProperty, secondProperty, properties);\n Start.start();\n }\n }",
"@Test\n public void testLoadProperties() throws Exception {\n //initialize it on order to be able to run test\n testHelper.getSecurityManager().initiateSecurityContext(\"test\", \"test\");\n\n DavUserPrincipal p = testHelper.getPrincipal(testHelper.getUser());\n\n\n // section 4\n\n DisplayName displayName = (DisplayName)\n p.getProperty(DavPropertyName.DISPLAYNAME);\n assertNotNull(displayName, \"No displayname property\");\n assertTrue(! StringUtils.isBlank(displayName.getDisplayName()), \"Empty displayname \");\n\n ResourceType resourceType = (ResourceType)\n p.getProperty(DavPropertyName.RESOURCETYPE);\n assertNotNull(resourceType, \"No resourcetype property\");\n boolean foundPrincipalQname = false;\n for (QName qname : resourceType.getQnames()) {\n if (qname.equals(RESOURCE_TYPE_PRINCIPAL)) {\n foundPrincipalQname = true;\n break;\n }\n }\n assertTrue(foundPrincipalQname, \"Principal qname not found\");\n\n // 4.1\n AlternateUriSet alternateUriSet = (AlternateUriSet)\n p.getProperty(ALTERNATEURISET);\n assertNotNull(alternateUriSet, \"No alternate-uri-set property\");\n assertTrue(alternateUriSet.getHrefs().isEmpty(), \"Found hrefs for alternate-uri-set\");\n\n // 4.2\n PrincipalUrl principalUrl = (PrincipalUrl)\n p.getProperty(PRINCIPALURL);\n assertNotNull(principalUrl, \"No principal-URL property\");\n assertEquals(p.getResourceLocator().getHref(false),\n principalUrl.getHref(),\n \"principal-URL value not the same as locator href\");\n\n // 4.4\n GroupMembership groupMembership = (GroupMembership)\n p.getProperty(GROUPMEMBERSHIP);\n assertNotNull(groupMembership, \"No group-membership property\");\n assertTrue(groupMembership.getHrefs().isEmpty(), \"Found hrefs for group-membership\");\n }",
"@java.lang.Override\n public java.lang.String getPropertiesOrThrow(\n java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, java.lang.String> map =\n internalGetProperties().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }",
"@java.lang.Override\n public java.lang.String getPropertiesOrThrow(\n java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, java.lang.String> map =\n internalGetProperties().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }",
"@Test\n public void getSlidesDocumentPropertyInvalidPropertyNameTest() throws ApiException {\n Boolean needAssertResponse = false;\n try {\n GetSlidesDocumentPropertyRequest request = createGetSlidesDocumentPropertyRequest();\n request.setPropertyName((String)invalidizeTestValue(request.getPropertyName(), \"propertyName\", \"String\"));\n initialize(\"getSlidesDocumentProperty\", \"propertyName\", request.getPropertyName());\n DocumentPropertyResponse response = api.getSlidesDocumentProperty(request);\n needAssertResponse = true;\n } catch (ApiException ex) {\n assertException(ex, \"propertyName\", \"getSlidesDocumentProperty\");\n }\n if (needAssertResponse) {\n assertResponse(\"propertyName\", \"getSlidesDocumentProperty\");\n }\n }",
"public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }",
"public static String verifyAndFetchMandatoryProperty(String key,\r\n\t\t\tProperties prop) throws PropertyNotConfiguredException {\r\n\t\tString property;\r\n\t\t// Mandatory property should not be null.\r\n\t\tproperty = Objects.requireNonNull(fetchProperty(key, prop),\r\n\t\t\t\t\"ERROR: Must set configuration value for \" + key);\r\n\r\n\t\t// Mandatory property should not be blank.\r\n\r\n\t\tif (property.isEmpty()) {\r\n\t\t\tthrow new PropertyNotConfiguredException(\r\n\t\t\t\t\t\"ERROR: Must set configuration value for \" + key);\r\n\t\t}\r\n\t\treturn property;\r\n\t}",
"public void testPersistentPropertyInRunnable() {\n \t\tfinal IWorkspaceRoot root = getWorkspace().getRoot();\n \t\tfinal String value = \"this is a test property value\";\n \t\tfinal QualifiedName name = new QualifiedName(\"test\", \"testProperty\");\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\troot.setPersistentProperty(name, value);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t}\n \n \t\ttry {\n \t\t\tfinal String[] storedValue = new String[1];\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\tstoredValue[0] = root.getPersistentProperty(name);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t\tassertEquals(\"2.0\", value, storedValue[0]);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.1\", e);\n \t\t}\n \n \t\ttry {\n \t\t\tfinal QualifiedName name2 = new QualifiedName(\"test\", \"testNonProperty\");\n \t\t\tfinal String[] storedValue = new String[1];\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\tstoredValue[0] = root.getPersistentProperty(name2);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t\tassertEquals(\"3.0\", null, storedValue[0]);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"3.1\", e);\n \t\t}\n \t}",
"protected void validate() throws Exception{\t\n\t\tsuper.validate();\n\t\tvalidateProperty(PROPERTY_KEY_USERNAME);\n\t}",
"public void testDuplicateProperty() throws Exception {\n loader.load(reader, ctx);\n assertTrue(ctx.getErrors().get(0) instanceof DuplicateComponentService);\n }",
"public Result testGetDefaultPropertyIndex() {\n try {\n if (beanInfo.getDefaultPropertyIndex() != -1) {\n throw new LocationException(\"mistake DefaultPropertyIndex\");\n }\n Bean1BeanInfo.verifyException();\n return passed();\n } catch (Exception e) {\n e.printStackTrace();\n return failed(e.getMessage());\n }\n }",
"Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }",
"@Test\n public void testGetPropertyAsDouble_shouldReturnDoubleValue() {\n final Config wholeNum = new Config().setId(\"wholeNum\").setValue(\"12345\");\n when(configDao.findById(\"wholeNum\")).thenReturn(Optional.of(wholeNum));\n assertThat(service.getProperty(\"wholeNum\").asDouble()).hasValue(12345d);\n\n // Test with decimals\n final Config decimal = new Config().setId(\"decimal\").setValue(\"983.23315\");\n when(configDao.findById(\"decimal\")).thenReturn(Optional.of(decimal));\n assertThat(service.getProperty(\"decimal\").asDouble()).hasValue(983.23315);\n\n // Test with empty\n assertThat(service.getProperty(\"unknown\").asDouble()).isEmpty();\n\n // Test with blank\n Assertions.assertThatThrownBy(() -> service.getProperty(\"blank\").asDouble())\n .isInstanceOf(NumberFormatException.class);\n\n // Test with invalid characters\n Assertions.assertThatThrownBy(() -> service.getProperty(\"email\").asDouble())\n .isInstanceOf(NumberFormatException.class);\n }",
"@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }",
"private int getRequiredProperty(String propName, Properties prop)\n {\n if ((propName == null) || (propName.trim().length() < 1))\n throw new IllegalArgumentException(\"propName may not be null or empty\");\n if (prop == null)\n throw new IllegalArgumentException(\"prop may not be null\");\n\n String strValue = prop.getProperty(propName);\n if ((strValue == null) || (strValue.trim().length() < 1))\n {\n PSLogger.logInfo(\n \"Value of property : \" + propName + \" is null or empty.\");\n return -1;\n }\n\n int value = -1;\n try\n {\n value = Integer.parseInt(strValue);\n }\n catch (Throwable t)\n {\n PSLogger.logInfo(\n \"Value of property : \" + propName + \" is invalid.\");\n PSLogger.logInfo(t.getLocalizedMessage());\n return -1;\n }\n return value;\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }",
"@Test\n public void testResolveWithSysPropResolver() {\n Resolver sysPropResolver = VariableExpansion.SYS_PROP_RESOLVER;\n\n assertNull(\"System property value unexpectedly set already\", System.getProperty(testPropName));\n assertNull(\"Expected resolve to return null as property not set\", sysPropResolver.resolve(testPropName));\n\n setTestSystemProperty(testPropName, testPropValue);\n\n assertEquals(\"System property value not as expected\", testPropValue, System.getProperty(testPropName));\n assertEquals(\"Resolved variable not as expected\", testPropValue, sysPropResolver.resolve(testPropName));\n }",
"@Test\n public void testActualPropertiesValues() { // wipe everything other\n testEnv = null;\n resolver = null;\n // use the default ctor to grab discoveryenvironment.properties\n // resolver = new DefaultServiceCallResolver();\n resolver = new ServiceCallResolver();\n resolver.setAppProperties(createFromExpected());\n // ensure it was set\n assertNotNull(resolver);\n verifyExpectedValues(EXPECTED);\n\n }",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }"
] |
[
"0.7056362",
"0.6770466",
"0.6660468",
"0.65582424",
"0.6544634",
"0.6543709",
"0.65344685",
"0.65344685",
"0.65344685",
"0.65329164",
"0.6477684",
"0.646352",
"0.6337354",
"0.62997174",
"0.62659055",
"0.62406296",
"0.62205327",
"0.62033135",
"0.62000716",
"0.62000716",
"0.61846507",
"0.6158631",
"0.6128225",
"0.6114908",
"0.60968703",
"0.60846263",
"0.606153",
"0.6056588",
"0.60564667",
"0.60560507",
"0.6035349",
"0.60343325",
"0.6020911",
"0.60066557",
"0.6001813",
"0.5970657",
"0.5957222",
"0.5947861",
"0.5945384",
"0.59453315",
"0.5935421",
"0.5935421",
"0.5935421",
"0.5932396",
"0.5926017",
"0.5925972",
"0.5921178",
"0.59184724",
"0.5907921",
"0.5896158",
"0.5884435",
"0.5883852",
"0.5880796",
"0.5871584",
"0.5871342",
"0.58553934",
"0.5832384",
"0.5825664",
"0.58133215",
"0.58018196",
"0.5788364",
"0.5787578",
"0.577998",
"0.57694376",
"0.575817",
"0.5750484",
"0.57496995",
"0.57479554",
"0.57335943",
"0.5728346",
"0.57221377",
"0.5720415",
"0.570716",
"0.5698022",
"0.5669316",
"0.5665683",
"0.56525046",
"0.5650348",
"0.5650191",
"0.5645796",
"0.5644033",
"0.5643614",
"0.56336904",
"0.5630105",
"0.5627909",
"0.5616181",
"0.5615288",
"0.56135917",
"0.5609986",
"0.5604154",
"0.5585959",
"0.5585757",
"0.55832356",
"0.55734766",
"0.55698436",
"0.5568163",
"0.5563178",
"0.5552958",
"0.5550894",
"0.55491054"
] |
0.73273045
|
0
|
Tests handling of errors in isEmpty().
|
@Test
public void testIsEmptyError() throws ConfigurationException {
assertTrue(setUpErrorConfig().isEmpty());
checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, null, null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void testIsEmpty() {\n init();\n assertTrue(\"empty\", FListInteger.isEmpty(l0));\n assertFalse(\"nonempty\", FListInteger.isEmpty(l1));\n }",
"public void testIsEmpty() {\n assertTrue(this.empty.isEmpty());\n assertFalse(this.stack.isEmpty());\n }",
"private void checkEmpty() throws NoSuchElementException\n\t{\n\t\tif (isEmpty())\n\t\t{\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t}",
"public abstract boolean isEmpty();",
"public abstract boolean isEmpty();",
"private boolean isEmpty() { return getSize() == 0; }",
"public void testIsEmpty() {\r\n assertTrue( list.isEmpty());\r\n list.add(\"A\");\r\n assertFalse(list.isEmpty());\r\n }",
"private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"boolean isEmpty();",
"Boolean isEmpty();",
"Boolean isEmpty();",
"private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();",
"public boolean isEmpty();"
] |
[
"0.71636313",
"0.70736825",
"0.70670724",
"0.68332803",
"0.68332803",
"0.67574316",
"0.6747321",
"0.6718766",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6713354",
"0.6699926",
"0.6699926",
"0.6689765",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736",
"0.66729736"
] |
0.0
|
-1
|
Tests whether the configuration has already an error listener registered that is used for logging.
|
@Test
public void testLogErrorListener() throws ConfigurationException {
final DatabaseConfiguration config = helper.setUpConfig();
assertEquals(1, config.getEventListeners(ConfigurationErrorEvent.ANY).size());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testLogErrorListener()\n {\n assertEquals(\"No default error listener registered\", 1,\n new DefaultConfigurationBuilder().getErrorListeners().size());\n }",
"public static boolean isErrorEnabled() {\n\n return errorLogger.isErrorEnabled();\n }",
"private void setUpErrorListener(final PotentialErrorDatabaseConfiguration config) {\n // remove log listener to avoid exception longs\n config.clearErrorListeners();\n listener = new ErrorListenerTestImpl(config);\n config.addEventListener(ConfigurationErrorEvent.ANY, listener);\n config.failOnConnect = true;\n }",
"public boolean isErrorEnabled()\n/* */ {\n/* 258 */ return getLogger().isErrorEnabled();\n/* */ }",
"@Test\n public void testContainsKeyError() throws ConfigurationException {\n assertFalse(setUpErrorConfig().containsKey(\"key1\"));\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"public boolean logErrors()\r\n {\r\n return errorLevelHandler.getBoolean();\r\n }",
"@Test\n public void testIsEmptyError() throws ConfigurationException {\n assertTrue(setUpErrorConfig().isEmpty());\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, null, null);\n }",
"protected boolean hasListeners()\n {\n // m_listenerSupport defaults to null, and it is reset to null when\n // the last listener unregisters\n return m_listenerSupport != null;\n }",
"protected boolean hasListeners()\n {\n // m_listenerSupport defaults to null, and it is reset to null when\n // the last listener unregisters\n return m_listenerSupport != null;\n }",
"public boolean hasError();",
"public boolean hasErrorLog() {\n return result.hasErrorLog();\n }",
"public boolean hasError()\n {\n return hasError;\n }",
"@Test\n public void testGetPropertyError() throws ConfigurationException {\n setUpErrorConfig().getProperty(\"key1\");\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, \"key1\", null);\n }",
"public boolean hasListeners() {\n return !listeners.isEmpty();\n }",
"public boolean hasListeners() {\n return !listeners.isEmpty();\n }",
"@Test\n public void testAddPropertyError() throws ConfigurationException {\n setUpErrorConfig().addProperty(\"key1\", \"value\");\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.ADD_PROPERTY, \"key1\", \"value\");\n }",
"public boolean hasError() {\n\t\treturn hasERR;\n\t}",
"private void checkErrorListener(final EventType<? extends ConfigurationErrorEvent> type, final EventType<?> opType, final String key, final Object value) {\n final Throwable exception = listener.checkEvent(type, opType, key, value);\n assertInstanceOf(SQLException.class, exception);\n listener = null; // mark as checked\n }",
"public boolean isInError()\r\n {\r\n return myCurrentState.equals(State.ERROR);\r\n }",
"public void verifyConfig() {\r\n if (getSpecialHandlingManager() == null)\r\n throw new ConfigurationException(\"The required property 'specialHandlingManager' is missing.\");\r\n }",
"private static boolean hasErrFound() {\r\n\t\tsynchronized (workerLock) {\r\n\t\t\treturn (errFoundByThread != -1);\r\n\t\t}\r\n\t}",
"boolean hasError();",
"boolean hasError();",
"boolean hasError();",
"public boolean isListenerAvailable() {\n return mListener != null;\n }",
"public boolean isListenerAvailable() {\n return mListener != null;\n }",
"public boolean hasError()\n {\n return errorBuffer.length() != 0;\n }",
"public boolean hasError(String name) {\n\t\treturn errors.containsKey(name);\n\t}",
"public boolean hasError() {\n\t\treturn results.getErrors().contains( \"ERROR\") ;\n\t}",
"@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}",
"@Test\n public void testLoadOptionalErrorEvent() throws Exception\n {\n factory.clearErrorListeners();\n ConfigurationErrorListenerImpl listener = new ConfigurationErrorListenerImpl();\n factory.addErrorListener(listener);\n prepareOptionalTest(\"configuration\", false);\n listener.verify(DefaultConfigurationBuilder.EVENT_ERR_LOAD_OPTIONAL,\n OPTIONAL_NAME, null);\n }",
"public boolean hasError()\n {\n return data().containsKey(_ERROR);\n }",
"public boolean hasTraceListeners()\r\n {\r\n return (null != m_traceListeners);\r\n }",
"public boolean wasSolrErrorEncountered() {\n\n if (this.solrErrorEncountered) {\n return true;\n }\n if (!this.hasValidFilterQueries()) {\n setSolrErrorEncountered(true);\n return true;\n }\n return solrErrorEncountered;\n }",
"public boolean hasErrors();",
"public boolean hasListener(int type) {\n assert type > 0 : \"Invalid event type: \" + type;\n\n Listeners listeners = lsnrs.get(type);\n\n return (listeners != null) && (!F.isEmpty(listeners.highPriorityLsnrs) || !F.isEmpty(listeners.lsnrs));\n }",
"public boolean isError() {\n return _type == Type.ERROR;\n }",
"@Override\n\t\tprotected boolean onError(final Exception e) {\n\t\t\treturn false;\n\t\t}",
"public boolean errorsFound() {\n return errorList.size() > 0;\n }",
"private static boolean checkDupplicate(UUID sessionId) throws DuplicateUsernameException {\n return ioListeners.containsKey(sessionId);\n }",
"private static void checkConfiguration() {\n try {\n ClientManager.rebuildSocket();\n ClientManager.closeSocket();\n } catch (IOException e) {\n new NetworkNotAvailableErrorStarter(NetworkNotAvailableError.class, null);\n }\n }",
"@Override\n public boolean hasConfig() {\n return config_ != null;\n }",
"@java.lang.Override\n public boolean hasConfig() {\n return config_ != null;\n }",
"public boolean isError(){\n\t\treturn isError;\n\t}",
"public boolean isSetLoggers() {\n return this.loggers != null;\n }",
"public boolean errorsFound() {\n return _errors.size() > 0;\n }",
"boolean isError();",
"public boolean hasError() {\r\n return \"\".equals(recentErrorCode) ? false : true;\r\n }",
"public boolean hasErrors(){\n\t\treturn ! errorList.isEmpty();\n\t}",
"public boolean hasExceptions();",
"public boolean urlHasAnError() {\n\t\tString url = driver.getCurrentUrl();\n\t\tboolean error = false;\n\t\t\n\t\tif (url.contains(\"ERROR\"))\n\t\t\terror = true;\n\t\treturn error;\n\t}",
"public boolean isError() {\n\t\treturn error;\n\t}",
"public boolean onErrorOccured(Throwable cause);",
"@Override\r\n\tpublic boolean hasErrors() {\n\t\treturn hasErrors;\r\n\t}",
"@Override\n\tpublic boolean isErrorEnabled() {\n\t\treturn false;\n\t}",
"boolean hasErrors();",
"public static ErrorListener addGlobalErrorListener(ErrorListener errorListener) {\n return VolleyRequest.addGlobalErrorListener(errorListener);\n }",
"public boolean hasListener(TransferListener listener) {\n return listeners.contains(listener);\n }",
"public boolean isSetErrorMap() {\n return this.errorMap != null;\n }",
"@Override\n public boolean isConfigured() {\n return delegate.isConfigured();\n }",
"public boolean isSetErrorcount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(ERRORCOUNT$4) != null;\r\n }\r\n }",
"static void registerIfAbsent(final LogContext logContext) {\n final Logger logger = logContext.getLogger(NAME);\n StatusListener listener = logger.getAttachment(STATUS_LISTENER_KEY);\n if (listener == null) {\n listener = new JBossStatusListener(logger);\n if (attachIfAbsent(logger, listener) == null) {\n StatusLogger.getLogger().registerListener(listener);\n }\n }\n }",
"@Test\n public void testClearError() throws ConfigurationException {\n setUpErrorConfig().clear();\n checkErrorListener(ConfigurationErrorEvent.WRITE, ConfigurationEvent.CLEAR, null, null);\n }",
"public boolean hasRecordErrors();",
"public boolean hasFailed ()\r\n {\r\n return exception_ != null;\r\n }",
"public boolean isError() {\n return error;\n }",
"public void verifyConfig() {\r\n if (getIbnrRiskManager() == null)\r\n throw new ConfigurationException(\"The required property 'ibnrRiskManager' is missing.\");\r\n }",
"public void verifyConfig() {\r\n if (getAnchorColumnName() == null)\r\n throw new ConfigurationException(\"The required property 'anchorColumnName' is missing.\");\r\n }",
"boolean isFailOnError() {\n return failOnError;\n }",
"public boolean hasErrors() {\n return hasErrors;\n }",
"public void verifyConfig() {\r\n if (getProcessErpManager() == null)\r\n throw new ConfigurationException(\"The required property 'processErpManager' is missing.\");\r\n if (getAnchorColumnName() == null)\r\n throw new ConfigurationException(\"The required property 'anchorColumnName' is missing.\");\r\n }",
"public boolean isError() { return error; }",
"public boolean containsErrors() {\n\t\treturn !errors.isEmpty();\n\t}",
"public boolean isLogging();",
"boolean hasErr();",
"@Test\n public void testGetKeysError() throws ConfigurationException {\n final Iterator<String> it = setUpErrorConfig().getKeys();\n checkErrorListener(ConfigurationErrorEvent.READ, ConfigurationErrorEvent.READ, null, null);\n assertFalse(it.hasNext());\n }",
"public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}",
"@java.lang.Override\n public boolean hasConfiguration() {\n return configuration_ != null;\n }",
"public boolean hasConfig() {\n return configBuilder_ != null || config_ != null;\n }",
"public boolean hasConfigSource() {\n return configSource_ != null;\n }",
"boolean hasConfigConnectorConfig();",
"boolean hasConfiguration();",
"public boolean isListenerRunning(){\n\t\tsynchronized (httpServerMutex) {\n\t\t\tif( webServer == null )\n\t\t\t\treturn false;\n\t\t\telse{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}",
"public interface ErrorListener {\r\n /**\r\n * Responds to the error event in any way that the listener chooses\r\n * @param source The object that raised the error event\r\n * @param msg An optional message created by the source object\r\n */\r\n public void respondToError(Object source, String msg);\r\n}",
"public boolean hasErrors() {\n return !errors.isEmpty();\n }",
"public boolean isFatalEnabled()\n/* */ {\n/* 266 */ return getLogger().isFatalErrorEnabled();\n/* */ }",
"@Override\n public void checkConfiguration() {\n }",
"public synchronized void setErrListener(LineListener errListener) {\n this.errListener = errListener;\n }",
"public boolean hasRequestListeners(TransportAddress localAddr) {\n if (!messageListeners.isEmpty()) {\n // there is a generic listener\n return true;\n }\n if (!children.isEmpty()) {\n EventDispatcher child = children.get(localAddr);\n if (child != null) {\n return !child.messageListeners.isEmpty();\n }\n }\n return false;\n }",
"public boolean isConfigLoggable() {\n return logger.isLoggable(Level.CONFIG);\n }",
"private PotentialErrorDatabaseConfiguration setUpErrorConfig() throws ConfigurationException {\n final PotentialErrorDatabaseConfiguration config = setUpConfig();\n setUpErrorListener(config);\n return config;\n }",
"public boolean isError() {\n\t\treturn this == RF_ERROR;\n\t}",
"public Boolean hasErrors() {\n if ((this.hasErrors == null)) {\n this.hasErrors = Boolean.valueOf(this.hasIssuesOfSeverity(Severity.ERROR));\n }\n return this.hasErrors;\n }",
"public boolean isError(){\r\n\t\tif(error!=0)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"public void setOnErrorListener(IMediaPlayer.OnErrorListener l) {\n mOnErrorListener = l;\n }",
"public boolean hasConfigSource() {\n return configSourceBuilder_ != null || configSource_ != null;\n }",
"protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}",
"protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}",
"protected void VerifyUrlDoesntHaveAnError() {\n\t\tif (urlHasAnError())\n\t\t\tReports.logAMessage(LogStatus.ERROR, \"BasePage: URL has an error\");\n\t}",
"public boolean isError() {\r\n return textErrorIndex >= 0;\r\n }"
] |
[
"0.64525104",
"0.62469316",
"0.6042414",
"0.597918",
"0.593461",
"0.58137596",
"0.57490796",
"0.57482994",
"0.57482994",
"0.5728502",
"0.56860554",
"0.55866593",
"0.5560454",
"0.5551591",
"0.5551591",
"0.55245304",
"0.5511941",
"0.54940575",
"0.54856914",
"0.54685605",
"0.54648536",
"0.5451269",
"0.5451269",
"0.5451269",
"0.5431299",
"0.5431299",
"0.54275286",
"0.53945017",
"0.53941005",
"0.5392075",
"0.5380838",
"0.5355807",
"0.5317024",
"0.5304109",
"0.5299323",
"0.529409",
"0.52897346",
"0.5278331",
"0.526278",
"0.5234668",
"0.5234111",
"0.5229458",
"0.52289796",
"0.52176017",
"0.5209873",
"0.5204127",
"0.52034694",
"0.5200809",
"0.51923233",
"0.5188046",
"0.5184045",
"0.5169324",
"0.51567477",
"0.51490074",
"0.51479626",
"0.51148945",
"0.5110244",
"0.5098791",
"0.5096595",
"0.5095193",
"0.5088377",
"0.50883526",
"0.5087295",
"0.5070819",
"0.5058227",
"0.5056152",
"0.5052472",
"0.5049586",
"0.5046243",
"0.5041871",
"0.50360715",
"0.5030705",
"0.5014294",
"0.50117284",
"0.50045335",
"0.500128",
"0.4995341",
"0.4993135",
"0.4984509",
"0.49729118",
"0.4968144",
"0.49622518",
"0.4957359",
"0.49551395",
"0.4951355",
"0.49489984",
"0.4945658",
"0.49447843",
"0.4937594",
"0.49135095",
"0.49075395",
"0.49065402",
"0.48958483",
"0.48907027",
"0.48899975",
"0.48874307",
"0.4886844",
"0.4886844",
"0.4884395",
"0.488071"
] |
0.6880587
|
0
|
Tests setProperty() if the property value contains the list delimiter.
|
@Test
public void testSetPropertyWithDelimiter() throws ConfigurationException {
final DatabaseConfiguration config = helper.setUpMultiConfig();
config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));
config.setProperty("keyList", "1;2;3");
final String[] values = config.getStringArray("keyList");
assertArrayEquals(new String[] {"1", "2", "3"}, values);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }",
"@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }",
"Rule ListSeparator() {\n // No effect on value stack\n return Sequence(AnyOf(\",;\"), WhiteSpace());\n }",
"@Test\n public void testGetListWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n final List<Object> values = config.getList(\"keyMulti\");\n assertEquals(Arrays.asList(\"a\", \"b\", \"c\"), values);\n }",
"public static List getPropertyList(String pPropertyList,Logger pLogger)\n\t{\n\t\tArrayList propList=null;\n\t\tStringTokenizer tokenizer = new StringTokenizer(pPropertyList,Constants.DELIMITER);\n\t\tint tokens = tokenizer.countTokens();\n\t\tpLogger.log(Level.INFO,\"Value to parse:\"+pPropertyList);\n\t\tpLogger.log(Level.INFO,\"Num tokens:\"+tokens);\n\t\t\n\t\tif(pPropertyList!=null)\t\t\t\n\t\t{\n\t\t\tpropList = new ArrayList();\n\t\t\t\n\t\t\t\t\twhile(tokenizer.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\t\tString token = tokenizer.nextToken();\n\t\t\t\t\t\tpropList.add(token);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn propList;\n\t\t\n\t}",
"@Test\n public void testGetListWithDelimiterParsingDisabled() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n assertEquals(\"a;b;c\", config.getString(\"keyMulti\"));\n }",
"@Test\n public void testAddWithDelimiter() throws ConfigurationException {\n final DatabaseConfiguration config = setUpConfig();\n config.setListDelimiterHandler(new DefaultListDelimiterHandler(';'));\n config.addProperty(\"keyList\", \"1;2;3\");\n final String[] values = config.getStringArray(\"keyList\");\n assertArrayEquals(new String[] {\"1\", \"2\", \"3\"}, values);\n }",
"static public boolean isList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n Vector list = new Vector ();\n\n if (s.startsWith (startToken) && s.endsWith (endToken)) \n return true;\n else\n return false;\n\n\n}",
"static public Vector getPropertyValues (Properties props, String propName)\n{\n String propertyDelimiterName = \"property.token.delimiter\";\n String delimiter = props.getProperty (propertyDelimiterName, \"::\");\n\n String listStartTokenName = \"list.startToken\";\n String listStartToken = props.getProperty (listStartTokenName, \"(\");\n\n String listEndTokenName = \"list.endToken\";\n String listEndToken = props.getProperty (listEndTokenName, \")\");\n\n Vector result = new Vector ();\n String propString = props.getProperty (propName);\n if (propString == null)\n return result;\n String propStringTrimmed = propString.trim ();\n String [] tokens = Misc.parseList (propStringTrimmed, listStartToken, listEndToken, delimiter);\n\n for (int i=0; i < tokens.length; i++)\n result.add (tokens [i]);\n\n return result;\n\n}",
"@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }",
"public static boolean notListvalue(String value, String list)\r\n\t{\r\n\t\treturn !isListvalue(value, list);\r\n\t}",
"public static final void setWhitelist(final CMProps props, final WhiteList listType, final String list) {\n if (listType == null)\n return;\n if ((list == null) || (list.trim().length() == 0))\n return;\n final List<String> parts = CMParms.parseCommas(list.trim(), true);\n final List<Pattern> partsCompiled = new ArrayList<Pattern>();\n for (final String part : parts) {\n if (part.trim().length() == 0)\n continue;\n partsCompiled.add(Pattern.compile(part.trim(), Pattern.CASE_INSENSITIVE | Pattern.DOTALL | Pattern.CANON_EQ));\n }\n props.whiteLists.put(listType, partsCompiled.toArray(new Pattern[0]));\n }",
"void setListProperty(Object name, List<Object> list) throws JMSException;",
"private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }",
"private boolean isParameterList() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameter())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isParameterList())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public void setNameValueProperty(List<NameValueProperty> nameValueProperty) {\n\t\tthis.nameValuePropertyList = nameValueProperty;\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }",
"private static BiFunction<String, Value<?>, PropertyFilter> requireList(final BiFunction<String, ListValue, PropertyFilter> target) {\n\t\treturn (property, value) -> {\n\t\t\tif (value instanceof ListValue) {\n\t\t\t\treturn target.apply(property, (ListValue)value);\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Filter operation on '\" + property + \"' expected a list-type property\");\n\t\t\t\t// Alternatively, convert it?\n\t\t\t\t//return target.apply(property, ListValue.of(value));\n\t\t\t}\n\t\t};\n\t}",
"boolean isMultiple(String val) {\n\t\tif (val == null) return false;\n\t\treturn val.indexOf(VcfEntry.WITHIN_FIELD_SEP) >= 0;\n\t}",
"public static boolean ObjectPropertyList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ObjectPropertyList\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, OBJECT_PROPERTY_LIST, \"<object property list>\");\n r = ObjectProperty(b, l + 1);\n r = r && ObjectPropertyList_1(b, l + 1);\n r = r && ObjectPropertyList_2(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"PropertyArray(PropertyTokener x) throws PropertyException {\n this();\n if (x.nextClean() != '[') {\n throw x.syntaxError(\"A JSONArray text must start with '['\");\n }\n\n char nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar != ']') {\n x.back();\n for (; ; ) {\n if (x.nextClean() == ',') {\n x.back();\n this.myArrayList.add(PropertyObject.NULL);\n } else {\n x.back();\n this.myArrayList.add(x.nextValue());\n }\n switch (x.nextClean()) {\n case 0:\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n case ',':\n nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar == ']') {\n return;\n }\n x.back();\n break;\n case ']':\n return;\n default:\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n }\n }\n }",
"private boolean isWrappedListOfValues(FieldAccessor fieldAccessor) {\n\t\treturn false;\n\t}",
"public boolean setVariables(String _valueList, String _sep, String _arraySep) {\r\n\t\tboolean result = true;\r\n\t\tString name = \"\", value = \"\";\r\n\t\tStringTokenizer line = new StringTokenizer(_valueList, _sep);\r\n\t\twhile (line.hasMoreTokens()) {\r\n\t\t\tString token = line.nextToken();\r\n\t\t\tint index = token.indexOf('=');\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tresult = false;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tname = token.substring(0, index).trim();\r\n\t\t\tvalue = token.substring(index + 1).trim();\r\n\t\t\tboolean partial = setVariable(name, value, _arraySep);\r\n\t\t\tif (partial == false)\r\n\t\t\t\tresult = false;\r\n\t\t}\r\n\t\tupdate(); // Should this be called by the user explicitly?\r\n\t\treturn result;\r\n\t}",
"public final ListS3 setDelimiter(final String delimiter) {\n properties.put(DELIMITER_PROPERTY, delimiter);\n return this;\n }",
"private boolean checkElementSeparator() {\n if (flavor == ConfigSyntax.JSON) {\n TokenWithComments t = nextTokenIgnoringNewline();\n if (t.token == Tokens.COMMA) {\n return true;\n } else {\n putBack(t);\n return false;\n }\n } else {\n boolean sawSeparatorOrNewline = false;\n TokenWithComments t = nextToken();\n while (true) {\n if (Tokens.isNewline(t.token)) {\n // newline number is the line just ended, so add one\n lineNumber = t.token.lineNumber() + 1;\n sawSeparatorOrNewline = true;\n\n // we want to continue to also eat\n // a comma if there is one.\n } else if (t.token == Tokens.COMMA) {\n return true;\n } else {\n // non-newline-or-comma\n putBack(t);\n return sawSeparatorOrNewline;\n }\n t = nextToken();\n }\n }\n }",
"private void checkList() {\n val list = config.getString(\"list\");\n val mode = config.getString(\"mode\");\n\n if (isNullOrEmpty(list)) {\n MovieHandler.Type type = MovieHandler.Type.valueOf(mode);\n\n if (type.equals(MovieHandler.Type.COMBINED) || type.equals(MovieHandler.Type.ADD_TO_WATCHLIST)) {\n throw new IllegalArgumentException(\"list is not set, but required for current mode!\");\n }\n } else {\n checkArgument(list.startsWith(\"ls\") || list.equals(\"watchlist\"), \"list doesn't start with ls prefix!\");\n checkArgument(list.length() >= 3, \"list string length less than 3!\");\n }\n }",
"public void setV(List<String> v);",
"public void setProperties(List<PropertySchema> value) {\n _properties = value;\n }",
"public static boolean isList(Object value) {\n\t\treturn (value != null && value.getClass().isArray());\n\t}",
"@Test\r\n public void testListValuedObjectPropertyInvalidation() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n InvalidationReport report = new InvalidationReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"private boolean isOnIgnoreList(final String part) {\n return IGNORE_LIST.contains(part);\n }",
"@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"@Override\n\tpublic void addProperty(String key, String value) {\n\n\t\tif (key.equals(key_delimiter) && value.length() == 1) {\n\t\t\tvalue = \"#\" + String.valueOf((int) value.charAt(0));\n\t\t}\n\t\tsuper.addProperty(key, value);\n\t}",
"private static String asPropertyValue( List<?> values, boolean present ) {\n return values.isEmpty() ? String.valueOf( present ) : Joiner.on( \",\" ).join( values );\n }",
"public void setListProperty(List<Integer> t) {\n\n\t\t}",
"protected boolean acceptInternal(Object propertyValue) {\r\n if (propertyValue == null && value == null) {\r\n return true;\r\n }\r\n if (propertyValue != null\r\n && value != null\r\n && ((String) propertyValue).endsWith(value)) {\r\n return true;\r\n }\r\n return false;\r\n }",
"PropertyArray(String source) throws PropertyException {\n this(new PropertyTokener(source));\n }",
"public void addListProperty(final ConfigListDTO property) {\n \t\tlistProperties.put(property.getPropertyName(), property);\n \t}",
"@Test\r\n public void testListPropertyBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bind(p1);\r\n assertSame(\"sanity, same list bidi-bound\", list, p2.get());\r\n ObservableList<String> other = createObservableList(true);\r\n ChangeReport report = new ChangeReport(p2);\r\n p1.set(other);\r\n assertEquals(\"RT-38770 - bind 2 ListProperties\", 1, report.getEventCount());\r\n }",
"ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);",
"@Test\r\n public void testListValuedObjectPropertyBoundTo() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ListProperty listProperty = new SimpleListProperty();\r\n listProperty.bind(property);\r\n \r\n ChangeReport report = new ChangeReport(listProperty);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: listProperty bound to listValued property fires change event\", \r\n 1, report.getEventCount());\r\n ListChangeReport lr = new ListChangeReport(listProperty);\r\n property.get().remove(0);\r\n assertEquals(1, lr.getEventCount());\r\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }",
"@Test\r\n public void testListPropertyAdapterSetListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n otherList.remove(0);\r\n ChangeReport objectReport = new ChangeReport(objectProperty);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n objectProperty.set(otherList);\r\n assertEquals(\"sanity: change event from objectProperty\", 1, objectReport.getEventCount());\r\n assertEquals(\"must fire change on setting list to objectProperty\", 1, report.getEventCount());\r\n }",
"public boolean isSeparator(String token) {\r\n for (String each : separators) {\r\n if (equals(token, each)) return true;\r\n }\r\n return false;\r\n }",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}",
"@Test\r\n public void testListPropertyAdapterSetEqualListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n objectProperty.set(otherList);\r\n assertEquals(\"must fire change on setting list to objectProperty\", 1, report.getEventCount());\r\n }",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToEmpty() {\r\n ListProperty listProperty = new SimpleListProperty(createObservableList(false));\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }",
"public static PropertyDescriptionBuilder<List<String>> listOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<List<String>> clazz = (Class<List<String>>)(Class<?>)List.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseList(Parsers::parseString));\n }",
"public boolean setVariables(String _valueList) {\r\n\t\treturn setVariables(_valueList, \";\", \",\");\r\n\t}",
"public void setPropertyValidValues(List<PropertyValidValue> propertyValidValues)\r\n\t{\r\n\t\tthis.propertyValidValues = propertyValidValues;\r\n\t}",
"public static boolean ParamList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ParamList\")) return false;\n if (!nextTokenIs(b, L_PAR)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, PARAM_LIST, null);\n r = consumeToken(b, L_PAR);\n p = r; // pin = 1\n r = r && report_error_(b, ParamList_1(b, l + 1));\n r = p && consumeToken(b, R_PAR) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public boolean isList(String key)\n {\n return getList(key, null) != null;\n }",
"@Test\n public void testGetPropertyValueSet(){\n List<User> list = toList(//\n new User(2L),\n new User(5L),\n new User(5L));\n\n Set<Integer> set = CollectionsUtil.getPropertyValueSet(list, \"id\", Integer.class);\n assertThat(set, contains(2, 5));\n }",
"@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }",
"public void testEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n // set empty multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, new String[]{});\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n }",
"private PropertyValues handleListType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\t\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getCollectionReturnType(method,level);\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof List<?>){\n\t\t\tList<?> dataList=(List<?>) data;\n\t\t\tfor(int i=0;i<dataList.size();i++){\n\t\t\t Object element=dataList.get(i);\n\t\t\t String subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+i+PropertyAccessor.PROPERTY_KEY_SUFFIX;\n\t\t\t values.addPropertyValues(resolve(subPath,element,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"public void setListItems(List<String> lit) { mItems = lit; }",
"@Given(\"^a list that is \\\"([^\\\"]*)\\\"$\")\n\tpublic void a_list_that_is(String list) throws Throwable {\n\t\tlistAsString = new String(list); \n\t \n\t}",
"public void checkDelimiters() {\r\n UnicodeSet unicodeSet = this.m_delimiters_;\r\n int i = 0;\r\n if (unicodeSet == null || unicodeSet.size() == 0) {\r\n this.delims = new boolean[0];\r\n return;\r\n }\r\n UnicodeSet unicodeSet2 = this.m_delimiters_;\r\n int rangeEnd = unicodeSet2.getRangeEnd(unicodeSet2.getRangeCount() - 1);\r\n if (rangeEnd < 127) {\r\n this.delims = new boolean[(rangeEnd + 1)];\r\n while (true) {\r\n int charAt = this.m_delimiters_.charAt(i);\r\n if (-1 != charAt) {\r\n this.delims[charAt] = true;\r\n i++;\r\n } else {\r\n return;\r\n }\r\n }\r\n } else {\r\n this.delims = null;\r\n }\r\n }",
"@Test\n\tpublic void testListLiteral() throws ParseException {\n\t\tListLiteral listLiteral = langParser(\"[]\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 0);\n\t\tlistLiteral = langParser(\"[101,a,'b']\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 3);\n\t\tassertEquals(listLiteral.getElements().get(0).getClass(), LongLiteral.class);\n\t\tassertEquals(((LongLiteral) listLiteral.getElements().get(0)).longValue(), 101L);\n\t\tassertEquals(listLiteral.getElements().get(1).getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) listLiteral.getElements().get(1)).getName(), \"a\");\n\t\tassertEquals(listLiteral.getElements().get(2).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) listLiteral.getElements().get(2)).getValue(), \"b\");\n\t}",
"public static List<String> deserialize( String value, String delimiter )\n {\n return Arrays.asList( value.split( delimiter ) );\n }",
"public boolean isList();",
"public boolean isList();",
"boolean containsProperty(String name);",
"public void setOtherMembers(String value) {\r\n \r\n \t\t_otherMembersList = new ArrayList<String>();\r\n \r\n \t\tif (value.matches(\"\"))\r\n \t\t\treturn;\r\n \r\n \t\tLog.d(\"DEBUG\", value);\r\n \r\n \t\tString[] others = value.split(\"(\\\\s+)?,(\\\\s+)?\");\r\n \r\n \t\tfor (String member : others) {\r\n \t\t\t_otherMembersList.add(member);\r\n \t\t}\r\n \r\n \t\tCollections.sort(_otherMembersList);\r\n \t}",
"public final String getDelimiter() {\n return properties.get(DELIMITER_PROPERTY);\n }",
"public boolean isList() {\n return m_item.getSchemaComponent().type() == SchemaBase.LIST_TYPE;\n }",
"@Test\n public void testSplitOnPattern() {\n List<String> list = Splitter.on(\n Pattern.compile(\"\\\\|\")\n ).trimResults().omitEmptyStrings().splitToList(\"hello | world|||\");\n assertThat(list, notNullValue());\n assertThat(list.size(), equalTo(2));\n assertThat(list.get(0), equalTo(\"hello\"));\n assertThat(list.get(1), equalTo(\"world\"));\n }",
"public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"public void setDelims(String delims)\n {\n _delims = delims;\n }",
"String getPropertyExists();",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 3;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 3;\r\n\t\t\t}",
"public static boolean avoidSpecialCharsInFieldNames() {\n\t\treturn PROP_SEP_LEN > 1;\n\t}",
"public void testNonEmptyMultiPropFind() throws Exception\n {\n String content = TestUtils.getFileContent();\n String file = TestUtils.getFileName();\n String[] propValues =\n new String[]{\"No sacrifice is too great in the service of freedom.\",\n \"Freedom is the right of all sentient beings.\"};\n\n Node node =\n TestUtils.addContent(session, file, new ByteArrayInputStream(content.getBytes()), WEBDAV_NT_FILE,\n WEBDAV_NT_RESOURCE, CONTENT_TYPE);\n\n // set multi-valued property\n node.getNode(\"jcr:content\").setProperty(WEBDAV_TEST_PROPERTY, propValues);\n session.save();\n\n MultivaluedMap<String, String> headers = new MultivaluedMapImpl();\n headers.add(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);\n\n ContainerResponse responseFind =\n service(WebDAVMethods.PROPFIND, getPathWS() + file, \"\", headers, multiPropFindXML.getBytes());\n assertEquals(HTTPStatus.MULTISTATUS, responseFind.getStatus());\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n PropFindResponseEntity entity = (PropFindResponseEntity)responseFind.getEntity();\n entity.write(outputStream);\n String find = outputStream.toString();\n assertTrue(\"Response should contain requested property element.\", find.contains(WEBDAV_TEST_PROPERTY));\n assertTrue(\"Property element should contain value data.\",\n find.contains(\"No sacrifice is too great in the service of freedom.\"));\n }",
"private boolean isDelim(String s){\r\n \r\n switch (s) {\r\n case \"(\":\r\n return true;\r\n case \")\":\r\n return true; \r\n case \",\":\r\n return true; \r\n //case \"'\":\r\n //return true;\r\n case \"=\":\r\n return true; \r\n } \r\n \r\n\treturn false;\r\n \r\n }",
"static public String [] parseList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n if (s.startsWith (startToken) && s.endsWith (endToken)) {\n s = s.substring (1, s.length()-1); \n return s.split (delimiter);\n }\n else {\n String [] unparseableResult = new String [1];\n unparseableResult [0] = listString;\n return unparseableResult;\n }\n \n /*********************\n StringTokenizer strtok = new StringTokenizer (deparenthesizedString, delimiter);\n int count = strtok.countTokens ();\n for (int i=0; i < count; i++)\n list.add (strtok.nextToken ());\n }\n else\n list.add (listString);\n\n return (String []) list.toArray (new String [0]);\n **********************/\n\n\n}",
"private List<String> ListTransform(Object value) {\n\n if (value.toString().contains(lineDelimiter))\n return Arrays.asList(value.toString().split(lineDelimiter));\n\n List<String> lines = new ArrayList<>();\n if (!value.toString().equals(\"\"))\n lines.add(value.toString());\n\n return lines;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"private String[] splitListColumn(String column) {\n if (column.trim().equals(\"\")) {\n return EMPTY_STRING_ARRAY;\n } else {\n return column.split(INPUT_LIST_DELIM);\n }\n }",
"public static final boolean isOnWhiteList(final CMProps props, final WhiteList listType, final String chk) {\n if (listType == null)\n return false;\n if ((chk == null) || (chk.trim().length() == 0))\n return false;\n final Pattern[] patts = props.whiteLists.get(listType);\n if (patts == null)\n return false;\n final String chkTrim = chk.trim();\n final CharSequence seq = chkTrim.subSequence(0, chkTrim.length());\n for (final Pattern p : patts) {\n if (p.matcher(seq).matches())\n return true;\n }\n return false;\n }",
"@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListPropertySetEqualListListChangeEventAfter() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = new SimpleListProperty<>();\r\n listProperty.bindBidirectional(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n objectProperty.set(otherList);\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n otherList.remove(0);\r\n assertEquals(\"Culprit is bidi-bound ObjectProperty \\n listProperty must fire list change after modification on new list\", \r\n 1, report.getEventCount());\r\n }",
"protected abstract List<String> writeData(T property);",
"@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}",
"public StringSetFieldBuilder value(final java.util.List<String> value) {\n this.value = value;\n return this;\n }",
"public static boolean listPattern(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"listPattern\")) return false;\n if (!nextTokenIs(b, \"<list pattern>\", LBRACKET, LT)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, LIST_PATTERN, \"<list pattern>\");\n r = listPattern_0(b, l + 1);\n r = r && consumeToken(b, LBRACKET);\n r = r && listPattern_2(b, l + 1);\n r = r && consumeToken(b, RBRACKET);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"@Test(expectedExceptions = ParseException.class)\n\tpublic void testListLiteralMissingFirstElement() throws ParseException {\n\t\tparser(\"<%=[,]%>\").block();\n\t}",
"private SimpleConfigList parseArray() {\n ConfigOrigin arrayOrigin = lineOrigin();\n List<AbstractConfigValue> values = new ArrayList<AbstractConfigValue>();\n\n consolidateValueTokens();\n\n TokenWithComments t = nextTokenIgnoringNewline();\n\n // special-case the first element\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin,\n Collections.<AbstractConfigValue> emptyList());\n } else if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else {\n throw parseError(addKeyName(\"List should have ] or a first element after the open [, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n\n // now remaining elements\n while (true) {\n // just after a value\n if (checkElementSeparator()) {\n // comma (or newline equivalent) consumed\n } else {\n t = nextTokenIgnoringNewline();\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin, values);\n } else {\n throw parseError(addKeyName(\"List should have ended with ] or had a comma, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n\n // now just after a comma\n consolidateValueTokens();\n\n t = nextTokenIgnoringNewline();\n if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else if (flavor != ConfigSyntax.JSON && t.token == Tokens.CLOSE_SQUARE) {\n // we allow one trailing comma\n putBack(t);\n } else {\n throw parseError(addKeyName(\"List should have had new element after a comma, instead had token: \"\n + t\n + \" (if you want the comma or \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n }"
] |
[
"0.70661837",
"0.6687238",
"0.64254594",
"0.6283442",
"0.62780803",
"0.6019349",
"0.60162294",
"0.59895086",
"0.5771056",
"0.56862515",
"0.5679255",
"0.5644152",
"0.56054616",
"0.55385154",
"0.5477012",
"0.54065263",
"0.5394578",
"0.53915495",
"0.5356741",
"0.53504735",
"0.5306471",
"0.5242601",
"0.5215929",
"0.5188973",
"0.51671344",
"0.5160894",
"0.515639",
"0.5130237",
"0.51090074",
"0.5090127",
"0.50616384",
"0.50474083",
"0.5044035",
"0.50415236",
"0.5039029",
"0.503349",
"0.50077903",
"0.49996823",
"0.4997825",
"0.4993855",
"0.49905008",
"0.49805304",
"0.49796084",
"0.4970848",
"0.49581042",
"0.49581042",
"0.49581042",
"0.49555725",
"0.49528697",
"0.4946906",
"0.4946906",
"0.4946906",
"0.4946906",
"0.4946906",
"0.4946906",
"0.49326053",
"0.48894748",
"0.48867074",
"0.4885567",
"0.4869508",
"0.48685944",
"0.48610577",
"0.48576945",
"0.48020408",
"0.47965086",
"0.47939122",
"0.47749087",
"0.47606796",
"0.4758864",
"0.4753864",
"0.47470993",
"0.47470993",
"0.4742771",
"0.473166",
"0.4717812",
"0.4713773",
"0.47033405",
"0.46854758",
"0.46791765",
"0.46791765",
"0.46768606",
"0.4673777",
"0.46684438",
"0.46684438",
"0.46661195",
"0.46606764",
"0.46528327",
"0.46505976",
"0.46450752",
"0.46440658",
"0.46440658",
"0.46416238",
"0.4633543",
"0.46320096",
"0.46285418",
"0.4624577",
"0.46231195",
"0.46210763",
"0.46099883",
"0.46075764"
] |
0.69253427
|
1
|
Created by hero on 2017/11/23.
|
public interface HttpConstants {
String BASE_URL = "http://apis.tudou.com/";
String REQUEST_HTTP_URL = "classification/v1/startPage";
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() {\n\n \n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n protected void initialize() \n {\n \n }",
"public void mo4359a() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void init() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void initialize() { \n }",
"public void mo6081a() {\n }",
"@Override\r\n\tpublic void init() {}",
"private TMCourse() {\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"private UsineJoueur() {}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void create () {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n public void initialize() {\n \n }",
"private void init() {\n\n\n\n }",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"public void mo55254a() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t}"
] |
[
"0.6153202",
"0.60432446",
"0.593701",
"0.58265406",
"0.5820046",
"0.57923913",
"0.57923913",
"0.5711609",
"0.5705594",
"0.5658881",
"0.5633018",
"0.56318945",
"0.5612796",
"0.5603013",
"0.5599181",
"0.55987763",
"0.5575448",
"0.55717194",
"0.55602884",
"0.5542588",
"0.55352634",
"0.5531323",
"0.5531323",
"0.55303025",
"0.552037",
"0.5517425",
"0.55164033",
"0.55164033",
"0.55164033",
"0.55164033",
"0.55164033",
"0.55164033",
"0.55121005",
"0.55073214",
"0.5504656",
"0.54959893",
"0.5491588",
"0.5476891",
"0.5456467",
"0.54533595",
"0.5446031",
"0.54414666",
"0.54414666",
"0.54414666",
"0.54414666",
"0.54414666",
"0.5439308",
"0.54310036",
"0.54235375",
"0.5407328",
"0.54058707",
"0.53973633",
"0.53973633",
"0.53929365",
"0.5391749",
"0.5391749",
"0.5391749",
"0.5391749",
"0.5391749",
"0.5391749",
"0.5391749",
"0.5390751",
"0.5390707",
"0.5378993",
"0.5378993",
"0.53787476",
"0.5376212",
"0.5341448",
"0.5341448",
"0.5341448",
"0.53413445",
"0.53413445",
"0.53413445",
"0.533993",
"0.5339297",
"0.5336959",
"0.53325546",
"0.53264743",
"0.53264743",
"0.53264743",
"0.5324405",
"0.53193116",
"0.531893",
"0.5315353",
"0.531499",
"0.5312322",
"0.5310983",
"0.5305283",
"0.53016657",
"0.52966607",
"0.52894044",
"0.52866226",
"0.52753055",
"0.5273827",
"0.5267738",
"0.52638716",
"0.52638716",
"0.52638716",
"0.52606523",
"0.5260393",
"0.52570754"
] |
0.0
|
-1
|
return elem.getElemFunc().integrate(ElemFuncType.F, ElemFuncType.d2Fdx, l, m)elem.getElemFunc().integrate(ElemFuncType.F, ElemFuncType.F, l, m); Weak form
|
protected double Klm(Element elem, Integer l, Integer m){
return elem.getElemFunc().integrate(ElemFuncType.dFdx, ElemFuncType.dFdx, l, m)+elem.getElemFunc().integrate(ElemFuncType.F, ElemFuncType.F, l, m);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }",
"public abstract Function derivative();",
"public abstract double integral(double a, double b, int n);",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"private Double fitness(Term $f) {\n\t\t// Using a lambda to transform a formula to a function.\n\t\tFx g = x -> {this.x=x; return (Double)$abs.apply($sub.apply($f,$target)).evaluate();};\n\t\treturn integral(LOWER_BOUND, UPPER_BOUND, Fx.$f.bind(g));\n\t}",
"public interface IntegralFunction{\n \tdouble function(double x);\n}",
"protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }",
"public double getF();",
"public final com.iqoption.fragment.c.a.a.j apply(kotlin.Pair<java.lang.Double, java.lang.Integer> r15) {\n /*\n r14 = this;\n r0 = \"<name for destructuring parameter 0>\";\n kotlin.jvm.internal.i.f(r15, r0);\n r0 = r15.bnj();\n r0 = (java.lang.Number) r0;\n r7 = r0.doubleValue();\n r15 = r15.bnk();\n r15 = (java.lang.Integer) r15;\n r0 = r14.dhw;\n r0 = r0.getInstrumentType();\n r0 = com.iqoption.util.j.ae(r0);\n r1 = com.iqoption.app.managers.tab.TabHelper.IM();\n r2 = \"TabHelper.instance()\";\n kotlin.jvm.internal.i.e(r1, r2);\n r1 = r1.Jd();\n r2 = r14.dhw;\n r2 = r2.getInstrumentType();\n r3 = com.iqoption.core.data.model.InstrumentType.FX_INSTRUMENT;\n r9 = 0;\n if (r2 != r3) goto L_0x0051;\n L_0x0037:\n r2 = com.iqoption.app.managers.feature.a.Il();\n r1 = r1.expInterval;\n r1 = r2.get(r1);\n r1 = (java.lang.Double) r1;\n if (r1 == 0) goto L_0x0051;\n L_0x0045:\n r1 = (java.lang.Number) r1;\n r1 = r1.doubleValue();\n r1 = com.iqoption.util.j.P(r1);\n r0[r9] = r1;\n L_0x0051:\n r1 = r0[r9];\n r0 = java.lang.Double.valueOf(r1);\n r0 = com.iqoption.util.j.r(r0);\n r10 = com.iqoption.app.helpers.a.Gs();\n r1 = r14.dhw;\n r1 = r1.getActiveId();\n r2 = r14.dhw;\n r2 = r2.getInstrumentType();\n r1 = r10.a(r1, r2);\n r2 = com.iqoption.core.microservices.f.a.a.a.bzg;\n r2 = r2.g(r1);\n r3 = com.iqoption.core.microservices.f.a.a.a.bzg;\n r1 = r3.d(r1);\n r11 = 0;\n if (r1 == 0) goto L_0x00ad;\n L_0x007e:\n if (r2 != 0) goto L_0x0081;\n L_0x0080:\n goto L_0x00ad;\n L_0x0081:\n if (r15 != 0) goto L_0x0084;\n L_0x0083:\n goto L_0x008f;\n L_0x0084:\n r3 = r15.intValue();\n if (r3 != 0) goto L_0x008f;\n L_0x008a:\n r1 = com.iqoption.util.ab.e(r2, r1);\n goto L_0x00ab;\n L_0x008f:\n r3 = com.iqoption.asset.c.a.axy;\n r4 = r14.dhw;\n r4 = r4.getPrecision();\n r5 = r1.doubleValue();\n r12 = r2.doubleValue();\n r1 = r3;\n r2 = r4;\n r3 = r5;\n r5 = r12;\n r1 = r1.a(r2, r3, r5, r7);\n r1 = java.lang.Double.valueOf(r1);\n L_0x00ab:\n r3 = r1;\n goto L_0x00ae;\n L_0x00ad:\n r3 = r11;\n L_0x00ae:\n r1 = r14.dhu;\n r2 = r14.dhw;\n r5 = r1.P(r2);\n r1 = r14.dhw;\n r1 = r1.getInstrumentType();\n r1 = r1.isOption();\n r2 = \"minInvest\";\n if (r1 == 0) goto L_0x00e8;\n L_0x00c4:\n r15 = r14.dhw;\n r15 = r15.ahR();\n if (r15 != 0) goto L_0x00cd;\n L_0x00cc:\n goto L_0x00dd;\n L_0x00cd:\n r15 = r14.dhw;\n r15 = r15.ahR();\n r15 = 100 - r15;\n r15 = java.lang.Integer.valueOf(r15);\n r11 = com.iqoption.core.util.af.i(r15);\n L_0x00dd:\n r15 = new com.iqoption.fragment.c.a.a.b;\n kotlin.jvm.internal.i.e(r0, r2);\n r15.<init>(r0, r3, r11, r5);\n r15 = (com.iqoption.fragment.c.a.a.j) r15;\n goto L_0x012e;\n L_0x00e8:\n r1 = r14.dhw;\n r1 = r1.getInstrumentType();\n r4 = r14.dhw;\n r4 = r4.getActiveId();\n r4 = java.lang.Integer.valueOf(r4);\n r1 = r10.a(r1, r4);\n if (r1 == 0) goto L_0x010b;\n L_0x00fe:\n r4 = r14.dhu;\n r1 = r1.air();\n r1 = r4.a(r1);\n if (r1 == 0) goto L_0x010b;\n L_0x010a:\n goto L_0x0112;\n L_0x010b:\n r1 = 2131886971; // 0x7f12037b float:1.9408536E38 double:1.053292113E-314;\n r1 = com.iqoption.core.d.getString(r1);\n L_0x0112:\n r6 = r1;\n kotlin.jvm.internal.i.e(r0, r2);\n if (r15 != 0) goto L_0x0119;\n L_0x0118:\n goto L_0x011f;\n L_0x0119:\n r1 = r15.intValue();\n if (r1 == 0) goto L_0x0120;\n L_0x011f:\n r9 = 1;\n L_0x0120:\n if (r9 == 0) goto L_0x0124;\n L_0x0122:\n r4 = r15;\n goto L_0x0125;\n L_0x0124:\n r4 = r11;\n L_0x0125:\n r15 = new com.iqoption.fragment.c.a.a.a;\n r1 = r15;\n r2 = r0;\n r1.<init>(r2, r3, r4, r5, r6);\n r15 = (com.iqoption.fragment.c.a.a.j) r15;\n L_0x012e:\n return r15;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.fragment.c.b.a$h.apply(kotlin.Pair):com.iqoption.fragment.c.a.a.j\");\n }",
"private static double fx(int x, int y, int w, int h) {\n return 2 * Math.sqrt(Math.pow(Math.abs(x - (w/2)), 2) + Math.pow(Math.abs(y - (h/2)),2));\n }",
"private double getRecEnergy(){\n\t\tdebugMatrix = new double[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\tconvolutedMatrix = new Complex[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\t//initiliaze the whole convolutedMatrix array to zero\n\t\tfor(int x = 0; x < CELL_SIDE_COUNT; x++)\n\t\t{\n\t\t\tfor(int y = 0; y < CELL_SIDE_COUNT; y++)\n\t\t\t{\n\t\t\t\tconvolutedMatrix[x][y] = Complex.zero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Pg. 180 Lee[05]\n\t\tint indexTop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\t//Eq 19 Lee[05]\n\t\t//Also Eq 3.9 Essman[95]\n\t\tdouble sum = 0;\n\t\tint indtop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\tint midPoint = CELL_SIDE_COUNT / 2;\n\t\tif (midPoint << 1 < CELL_SIDE_COUNT) {\n\t\t\t++midPoint;\n\t\t}\n\t\t\n\t\tfor (int ind = 1; ind <= (indtop - 1); ++ind) {\n\t\t\t\n\t\t\tint y = ind / CELL_SIDE_COUNT + 1;\n\t\t\tint x = ind - (y - 1) * CELL_SIDE_COUNT + 1;\n\t\t\tint mXPrime = x - 1;\n\t\t\tif (x > midPoint) {\n\t\t\t\tmXPrime = x - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tint mYPrime = y - 1;\n\t\t\tif (y > midPoint) {\n\t\t\t\tmYPrime = y - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tdouble m = mXPrime * 1.0 + mYPrime * 1.0; //Was inverseMeshWidth - theory is reciprocal lattice vectors are for the entire cell U rather than one cell\n\t\t\tdouble mSquared = squared(mXPrime * 1.0) + squared(mYPrime * 1.0);\n\t\t\t\n\t\t\tdouble V = 1; //working in the unit mesh\n\t\t\tdouble bterm = M.bspmod[x]*M.bspmod[y];\n\t\t\tdouble eterm = Math.exp(-squared(Math.PI/ewaldCoefficient)*mSquared) / (bterm * Math.PI * V * mSquared);\n\t\t\t//Section 3.2.8 Lee[05]\n\t\t\tdouble inverseQPart = (squared(inverseFTQComplex[x-1][y-1].re())+squared(inverseFTQComplex[x-1][y-1].im())); //Lee[05]\n\t\t\tdouble thisContribution = eterm * inverseQPart;\n\t\t\tconvolutedMatrix[x-1][y-1] = inverseFTQComplex[x-1][y-1].scale(eterm); //Save this for the force calculation\n\t\t\tsum += thisContribution; //from the argument that F(Q(M))*F(Q(-M))=F-1(Q)^2\n\t\t}\n\t\treturn 0.5*sum;\n\t}",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"void mo9704b(float f, float f2, int i);",
"double passer();",
"public float e()\r\n/* 20: */ {\r\n/* 21:167 */ return this.c;\r\n/* 22: */ }",
"public interface UnivariateIntegrator {\n\n /**\n * Get the relative accuracy.\n *\n * @return the accuracy\n */\n double getRelativeAccuracy();\n\n /**\n * Get the absolute accuracy.\n *\n * @return the accuracy\n */\n double getAbsoluteAccuracy();\n\n /**\n * Get the min limit for the number of iterations.\n *\n * @return the actual min limit\n */\n int getMinimalIterationCount();\n\n /**\n * Get the upper limit for the number of iterations.\n *\n * @return the actual upper limit\n */\n int getMaximalIterationCount();\n\n /**\n * Integrate the function in the given interval.\n *\n * @param maxEval Maximum number of evaluations.\n * @param f the integrand function\n * @param min the lower bound for the interval\n * @param max the upper bound for the interval\n * @return the value of integral\n * @throws org.apache.commons.math4.legacy.exception.TooManyEvaluationsException if the maximum number of function\n * evaluations is exceeded\n * @throws org.apache.commons.math4.legacy.exception.MaxCountExceededException if the maximum iteration count is exceeded\n * or the integrator detects convergence problems otherwise\n * @throws org.apache.commons.math4.legacy.exception.MathIllegalArgumentException if {@code min > max} or the endpoints do not\n * satisfy the requirements specified by the integrator\n * @throws org.apache.commons.math4.legacy.exception.NullArgumentException if {@code f} is {@code null}.\n */\n double integrate(int maxEval, UnivariateFunction f, double min, double max);\n\n /**\n * Get the number of function evaluations of the last run of the integrator.\n *\n * @return number of function evaluations\n */\n int getEvaluations();\n\n /**\n * Get the number of iterations of the last run of the integrator.\n *\n * @return number of iterations\n */\n int getIterations();\n}",
"void mo21075f();",
"public abstract float mo9744i();",
"private static void sgdElement(int i , int j, float xij, double stepSize, int globalWorkerId,\n ClientTable tableL, ClientTable tableR, ClientTable tableLoss) {\n DenseRow li = (DenseRow)tableL.threadGet(i);\n DenseRow rj = (DenseRow)tableR.threadGet(j);\n //compute L(i, : ) * R(:, j)\n float liRj = 0;\n for(int k = 0; k < K; k++) {\n liRj += li.get(k) * rj.get(k);\n\n }\n // Update the loss function (does not include L2 regularizer term)\n tableLoss.inc(0, globalWorkerId, Math.pow(xij - liRj, 2));\n // Now update L(i,:) and R(:,j) based on the loss function at X(i,j).\n // The non-regularized loss function at X(i,j) is ( X(i,j) - L(i,:)*R(:,j) )^2.\n //\n // The non-regularized gradient w.r.t. L(i,k) is -2*X(i,j)R(k,j) + 2*L(i,:)*R(:,j)*R(k,j).\n // The non-regularized gradient w.r.t. R(k,j) is -2*X(i,j)L(i,k) + 2*L(i,:)*R(:,j)*L(i,k).\n Map<Integer, Double> liUpdate = new HashMap<Integer, Double>();\n Map<Integer, Double> rjUpdate = new HashMap<Integer, Double>();\n for(int k = 0; k < K; k++) {\n double gradient = 0;\n //compute update for L(i,k)\n gradient = -2 * (xij - liRj) * rj.get(k) + lambda * 2 * li.get(k);\n liUpdate.put(k, -gradient * stepSize);\n //compute update for R(k, j)\n gradient = -2 * (xij - liRj) * li.get(k) + lambda * 2 * rj.get(k);\n rjUpdate.put(k, -gradient * stepSize);\n }\n //commit updates to Petuum PS\n tableL.batchInc(i, liUpdate);\n tableR.batchInc(j, rjUpdate);\n }",
"public interface FunctionGradient {\n\n /**\n * Gradient vector at the given point.\n *\n * @param point where the gradient is evaluated\n * @return the calculated gradient\n */\n Gradient gradientAt(Point point);\n}",
"void mo3193f();",
"private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }",
"void mo34547J(float f, float f2);",
"public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}",
"public abstract double fct(double x);",
"dkk mo4508f();",
"void mo7443f(int i, int i2);",
"float getD();",
"@Override\n\tpublic Function integrand() {\n\t\tintegralConstants[constants.length] = 0;\n\t\tfor (int i = 0; i < constants.length; i++) {\n\t\t\tintegralConstants[i] = constants[i] * (1 / (double) (constants.length - i));\n\t\t}\n\t\treturn new Polynomial(integralConstants);\n\t}",
"public abstract int mo64140f();",
"public abstract double evaluer(SolutionPartielle s);",
"public RealValuedFunctTwoOps deriv21() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv21At(x, y);\n\t }\n\t};\n }",
"private final com.iqoption.deposit.light.perform.a f(java.lang.Double r21) {\n /*\n r20 = this;\n r0 = r20;\n r1 = r0.cFE;\n r2 = 0;\n if (r1 == 0) goto L_0x01d2;\n L_0x0007:\n r3 = r0.ayL;\n if (r3 == 0) goto L_0x01d0;\n L_0x000b:\n r3 = r3.Km();\n if (r3 == 0) goto L_0x01d0;\n L_0x0011:\n r4 = r2;\n r4 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d.b) r4;\n r5 = r0.cxs;\n r6 = r5 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r6 == 0) goto L_0x002e;\n L_0x001a:\n r5 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r5;\n r4 = r5.aaI();\n if (r4 == 0) goto L_0x002d;\n L_0x0022:\n r5 = r1.getName();\n r4 = r4.get(r5);\n r4 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d.b) r4;\n goto L_0x002e;\n L_0x002d:\n r4 = r2;\n L_0x002e:\n if (r4 == 0) goto L_0x003b;\n L_0x0030:\n r7 = r4.OL();\n if (r7 == 0) goto L_0x003b;\n L_0x0036:\n r7 = r7.doubleValue();\n goto L_0x003d;\n L_0x003b:\n r7 = 0;\n L_0x003d:\n if (r4 == 0) goto L_0x004a;\n L_0x003f:\n r4 = r4.OM();\n if (r4 == 0) goto L_0x004a;\n L_0x0045:\n r9 = r4.doubleValue();\n goto L_0x004c;\n L_0x004a:\n r9 = 0;\n L_0x004c:\n r11 = r3.aas();\n r4 = 0;\n r13 = (double) r4;\n r15 = (r11 > r13 ? 1 : (r11 == r13 ? 0 : -1));\n if (r15 >= 0) goto L_0x005a;\n L_0x0056:\n r11 = -4616189618054758400; // 0xbff0000000000000 float:0.0 double:-1.0;\n goto L_0x00ec;\n L_0x005a:\n r11 = r3.aan();\n if (r11 == 0) goto L_0x0066;\n L_0x0060:\n r11 = r3.aas();\n goto L_0x00ec;\n L_0x0066:\n r11 = r0.ayL;\n if (r11 == 0) goto L_0x00a7;\n L_0x006a:\n r11 = r11.Kn();\n if (r11 == 0) goto L_0x00a7;\n L_0x0070:\n r11 = (java.lang.Iterable) r11;\n r11 = r11.iterator();\n L_0x0076:\n r12 = r11.hasNext();\n if (r12 == 0) goto L_0x009d;\n L_0x007c:\n r12 = r11.next();\n r17 = r12;\n r17 = (com.iqoption.core.microservices.configuration.a.d) r17;\n r15 = r17.getName();\n r16 = r3.aaq();\n if (r16 == 0) goto L_0x0094;\n L_0x008e:\n r16 = r16.getName();\n r2 = r16;\n L_0x0094:\n r2 = kotlin.jvm.internal.i.y(r15, r2);\n if (r2 == 0) goto L_0x009b;\n L_0x009a:\n goto L_0x009e;\n L_0x009b:\n r2 = 0;\n goto L_0x0076;\n L_0x009d:\n r12 = 0;\n L_0x009e:\n r12 = (com.iqoption.core.microservices.configuration.a.d) r12;\n if (r12 == 0) goto L_0x00a7;\n L_0x00a2:\n r11 = r12.getRate();\n goto L_0x00a9;\n L_0x00a7:\n r11 = 4607182418800017408; // 0x3ff0000000000000 float:0.0 double:1.0;\n L_0x00a9:\n r2 = r0.ayL;\n if (r2 == 0) goto L_0x00e2;\n L_0x00ad:\n r2 = r2.Kn();\n if (r2 == 0) goto L_0x00e2;\n L_0x00b3:\n r2 = (java.lang.Iterable) r2;\n r2 = r2.iterator();\n L_0x00b9:\n r15 = r2.hasNext();\n if (r15 == 0) goto L_0x00d6;\n L_0x00bf:\n r15 = r2.next();\n r17 = r15;\n r17 = (com.iqoption.core.microservices.configuration.a.d) r17;\n r5 = r17.getName();\n r6 = r1.getName();\n r5 = kotlin.jvm.internal.i.y(r5, r6);\n if (r5 == 0) goto L_0x00b9;\n L_0x00d5:\n goto L_0x00d7;\n L_0x00d6:\n r15 = 0;\n L_0x00d7:\n r15 = (com.iqoption.core.microservices.configuration.a.d) r15;\n if (r15 == 0) goto L_0x00e2;\n L_0x00db:\n r5 = r15.getRate();\n r18 = r5;\n goto L_0x00e4;\n L_0x00e2:\n r18 = 4607182418800017408; // 0x3ff0000000000000 float:0.0 double:1.0;\n L_0x00e4:\n r5 = r3.aas();\n r5 = r5 * r11;\n r11 = r5 / r18;\n L_0x00ec:\n if (r21 != 0) goto L_0x0100;\n L_0x00ee:\n r2 = new com.iqoption.deposit.light.perform.a;\n r1 = com.iqoption.deposit.o.g.incorrect_value;\n r1 = r0.getString(r1);\n r3 = \"getString(R.string.incorrect_value)\";\n kotlin.jvm.internal.i.e(r1, r3);\n r2.<init>(r1, r4);\n goto L_0x01cf;\n L_0x0100:\n r2 = -1;\n r5 = (double) r2;\n r2 = 1;\n r15 = (r11 > r5 ? 1 : (r11 == r5 ? 0 : -1));\n if (r15 <= 0) goto L_0x0140;\n L_0x0107:\n r5 = r3.aat();\n r17 = r21.doubleValue();\n r5 = r5 + r17;\n r15 = (r5 > r11 ? 1 : (r5 == r11 ? 0 : -1));\n if (r15 < 0) goto L_0x0140;\n L_0x0115:\n r5 = r3.aat();\n r11 = r11 - r5;\n r3 = new java.math.BigDecimal;\n r5 = 0;\n r5 = java.lang.Math.max(r5, r11);\n r3.<init>(r5);\n r5 = com.iqoption.deposit.o.g.remaining_deposit_amount_n1;\n r6 = new java.lang.Object[r2];\n r1 = com.iqoption.core.util.e.a(r3, r1, r2);\n r6[r4] = r1;\n r1 = r0.getString(r5, r6);\n r3 = \"getString(R.string.remai…atAmount(currency, true))\";\n kotlin.jvm.internal.i.e(r1, r3);\n r3 = new com.iqoption.deposit.light.perform.a;\n r3.<init>(r1, r2);\n r2 = r3;\n goto L_0x01cf;\n L_0x0140:\n r3 = (r7 > r13 ? 1 : (r7 == r13 ? 0 : -1));\n if (r3 <= 0) goto L_0x014c;\n L_0x0144:\n r5 = r21.doubleValue();\n r3 = (r5 > r7 ? 1 : (r5 == r7 ? 0 : -1));\n if (r3 < 0) goto L_0x0158;\n L_0x014c:\n r5 = r21.doubleValue();\n r11 = r1.aau();\n r3 = (r5 > r11 ? 1 : (r5 == r11 ? 0 : -1));\n if (r3 >= 0) goto L_0x0187;\n L_0x0158:\n r3 = (r7 > r13 ? 1 : (r7 == r13 ? 0 : -1));\n if (r3 <= 0) goto L_0x0165;\n L_0x015c:\n r5 = r1.aau();\n r5 = java.lang.Math.max(r7, r5);\n goto L_0x0169;\n L_0x0165:\n r5 = r1.aau();\n L_0x0169:\n r3 = new java.math.BigDecimal;\n r3.<init>(r5);\n r5 = com.iqoption.deposit.o.g.deposit_limit_n1;\n r6 = new java.lang.Object[r2];\n r1 = com.iqoption.core.util.e.a(r3, r1, r2);\n r6[r4] = r1;\n r1 = r0.getString(r5, r6);\n r2 = \"getString(R.string.depos…atAmount(currency, true))\";\n kotlin.jvm.internal.i.e(r1, r2);\n r2 = new com.iqoption.deposit.light.perform.a;\n r2.<init>(r1, r4);\n goto L_0x01cf;\n L_0x0187:\n r3 = (r9 > r13 ? 1 : (r9 == r13 ? 0 : -1));\n if (r3 <= 0) goto L_0x0193;\n L_0x018b:\n r5 = r21.doubleValue();\n r3 = (r5 > r9 ? 1 : (r5 == r9 ? 0 : -1));\n if (r3 > 0) goto L_0x019f;\n L_0x0193:\n r5 = r21.doubleValue();\n r7 = r1.aav();\n r3 = (r5 > r7 ? 1 : (r5 == r7 ? 0 : -1));\n if (r3 <= 0) goto L_0x01ce;\n L_0x019f:\n r3 = (r9 > r13 ? 1 : (r9 == r13 ? 0 : -1));\n if (r3 <= 0) goto L_0x01ac;\n L_0x01a3:\n r5 = r1.aav();\n r5 = java.lang.Math.min(r9, r5);\n goto L_0x01b0;\n L_0x01ac:\n r5 = r1.aav();\n L_0x01b0:\n r3 = new java.math.BigDecimal;\n r3.<init>(r5);\n r5 = com.iqoption.deposit.o.g.up_to_n1;\n r6 = new java.lang.Object[r2];\n r1 = com.iqoption.core.util.e.a(r3, r1, r2);\n r6[r4] = r1;\n r1 = r0.getString(r5, r6);\n r2 = \"getString(R.string.up_to…atAmount(currency, true))\";\n kotlin.jvm.internal.i.e(r1, r2);\n r2 = new com.iqoption.deposit.light.perform.a;\n r2.<init>(r1, r4);\n goto L_0x01cf;\n L_0x01ce:\n r2 = 0;\n L_0x01cf:\n return r2;\n L_0x01d0:\n r1 = r2;\n return r1;\n L_0x01d2:\n r1 = r2;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.f(java.lang.Double):com.iqoption.deposit.light.perform.a\");\n }",
"public abstract double calcular();",
"@Override\n\tpublic double evalEnergy(Object... arguments)\n \t{\t\t\n\t\treturn _factorFunction.evalEnergy(expandInputList(arguments));\n \t}",
"@Override\n public float apply$mcFD$sp (double arg0)\n {\n return 0;\n }",
"double defendre();",
"@Override\n public Vector2d gradient(Vector2d p) {\n\n return null;\n }",
"public abstract double gradient(double betaForDimension, int dimension);",
"public void a() {\n try {\n long a2 = this.f8466h.a(this.f8459a.a(this.p));\n if (a2 != -1) {\n a2 += this.p;\n }\n d dVar = new d(this.f8466h, this.p, a2);\n c i2 = i();\n i2.a(0);\n q a3 = i2.a(0, this.n);\n a3.a(this.o);\n for (int i3 = 0; i3 != -1; i3 = a3.a(dVar, Integer.MAX_VALUE, true)) {\n this.p += (long) i3;\n }\n a3.a(this.f8464f, 1, (int) this.p, 0, null);\n I.a((j) this.f8466h);\n this.q = true;\n } catch (Throwable th) {\n I.a((j) this.f8466h);\n throw th;\n }\n }",
"public double secondPartialDerivative(FittingFunction f, int i, int j,\r\n double[] p, double delt) {\r\n double[] arg = new double[p.length];\r\n System.arraycopy(p, 0, arg, 0, p.length);\r\n\r\n arg[i] += delt;\r\n arg[j] += delt;\r\n double ff1 = f.evaluate(arg);\r\n\r\n arg[j] -= 2 * delt;\r\n double ff2 = f.evaluate(arg);\r\n\r\n arg[i] -= 2 * delt;\r\n arg[j] += 2 * delt;\r\n double ff3 = f.evaluate(arg);\r\n\r\n arg[j] -= 2 * delt;\r\n double ff4 = f.evaluate(arg);\r\n\r\n double fsSum = ff1 - ff2 - ff3 + ff4;\r\n\r\n double partial = fsSum / (4.0 * delt * delt);\r\n\r\n// if (Double.isNaN(partial) || partial < -0.5) {\r\n// double eraseme = 1.0;\r\n// }\r\n\r\n return partial;\r\n }",
"public abstract int mo123247f();",
"private void polyInt() {\n this.polySolve();\n this.ia = this.a * (1.0 / 4.0);\n this.ib = this.b * (1.0 / 3.0);\n this.ic = this.c * (1.0 / 2.0);\n this.id = this.d;\n String int1 = null, int2 = \"\", int3 = \"\", int4 = \"\";\n int inta = 0, intb = 0, intc = 0, intd = 0;\n if (this.degree == 3) {\n int1 = \"Sf(x) = \" + this.ia + \"x^4 \";\n if (this.b == 0) {\n intb = 1;\n } else {\n if (this.b > 0) {\n int2 = \"+ \" + this.ib + \"x^3 \";\n\n } else {\n int2 = \"- \" + -this.ib + \"x^3 \";\n }\n }\n if (this.c == 0) {\n intc = 1;\n } else {\n if (this.c > 0) {\n int3 = \"+ \" + this.ic + \"x^2 \";\n } else {\n int3 = \"- \" + -this.ic + \"x^2 \";\n }\n }\n if (this.d == 0) {\n intd = 1;\n } else {\n if (this.d > 0) {\n int4 = \"+ \" + this.id + \"x \";\n } else {\n int4 = \"- \" + -this.id + \"x \";\n }\n }\n if (intb == 0 && intc == 0 && intd == 0) {\n this.integral = int1 + int2 + int3 + int4 + \"+ C\";\n }\n if (intb == 0 && intc == 0 && intd == 1) {\n this.integral = int1 + int2 + int3 + \"+ C\";\n }\n if (intb == 0 && intc == 1 && intd == 1) {\n this.integral = int1 + int2 + \"+ C\";\n }\n if (intb == 1 && intc == 1 && intd == 1) {\n this.integral = int1 + \"+ C\";\n }\n if (intb == 1 && intc == 0 && intd == 0) {\n this.integral = int1 + int3 + int4 + \"+ C\";\n }\n if (intb == 1 && intc == 0 && intd == 1) {\n this.integral = int1 + int3 + \"+ C\";\n }\n if (intb == 1 && intc == 1 && intd == 0) {\n this.integral = int1 + int4 + \"+ C\";\n }\n\n }\n if (this.degree == 2) {\n int1 = \"Sf(x) = \" + this.ib + \"x^3 \";\n if (this.c == 0) {\n intc = 1;\n } else {\n if (this.c > 0) {\n int2 = \"+ \" + this.ic + \"x^2 \";\n } else {\n int2 = \"- \" + -this.ic + \"x^2 \";\n }\n }\n\n if (this.d == 0) {\n intd = 1;\n } else {\n if (this.d > 0) {\n int3 = \"+ \" + this.id + \"x \";\n } else {\n int3 = \"- \" + -this.id + \"x \";\n }\n }\n if (intc == 0 && intd == 0) {\n this.integral = int1 + int2 + int3 + \"+ C\";\n }\n if (intc == 0 && intd == 1) {\n this.integral = int1 + int2 + \"+ C\";\n }\n if (intc == 1 && intd == 0) {\n this.integral = int1 + int3 + \"+ C\";\n }\n if (intc == 1 && intd == 1) {\n this.integral = int1 + \"+ C\";\n }\n }\n if (this.degree == 1) {\n int1 = \"Sf(x) = \" + this.ic + \"x^2 \";\n if (this.id == 0) {\n intd = 1;\n\n } else {\n if (this.id > 0) {\n int2 = \"+ \" + this.id + \"x \";\n } else {\n int2 = \"- \" + -this.id + \"x \";\n }\n }\n if (intd == 0) {\n this.integral = int1 + int2 + \"+ C\";\n } else {\n this.integral = int1 + int2 + \"+ C\";\n }\n\n }\n if (this.degree == 0) {\n this.integral = \"Sf(x) = \" + this.id + \"x + C\";\n }\n\n }",
"public float d() {\n if (B1() || A1()) {\n return this.A + this.o + this.B;\n }\n return 0.0f;\n }",
"public static StateVector integrate( StateVector state, double dt) {\r\n StateVector dummy = new StateVector();\r\n StateVector derivative_a, derivative_b, derivative_c, derivative_d;\r\n\r\n\r\n derivative_a = evaluate(state, 0.0, dummy, 0 ); // derivative a returns initial velocity and acceleration\r\n derivative_b = evaluate(state, dt*0.5, derivative_a, 1 );\r\n derivative_c = evaluate(state, dt*0.5, derivative_b, 1 );\r\n derivative_d = evaluate(state, dt, derivative_c, 2 );\r\n\r\n double dxdt = 1.0/6.0 * (derivative_a.vx + 2.0f*(derivative_b.vx + derivative_c.vx) + derivative_d.vx);\r\n double dydt = 1.0/6.0 * (derivative_a.vy + 2.0f*(derivative_b.vy + derivative_c.vy) + derivative_d.vy);\r\n double dzdt = 1.0/6.0 * (derivative_a.vz + 2.0f*(derivative_b.vz + derivative_c.vz) + derivative_d.vz);\r\n double dvxdt = 1.0/6.0 * (derivative_a.ax + 2.0f*(derivative_b.ax + derivative_c.ax) + derivative_d.ax);\r\n double dvydt = 1.0/6.0 * (derivative_a.ay + 2.0f*(derivative_b.ay + derivative_c.ay) + derivative_d.ay);\r\n double dvzdt = 1.0/6.0 * (derivative_a.az + 2.0f*(derivative_b.az + derivative_c.az) + derivative_d.az);\r\n\r\n state.x = state.x + dxdt * dt;\r\n state.y = state.y + dydt * dt;\r\n state.z = state.z + dzdt * dt;\r\n state.vx = state.vx + dvxdt * dt;\r\n state.vy = state.vy + dvydt * dt;\r\n state.vz = state.vz + dvzdt * dt;\r\n\r\n return( state );\r\n }",
"void mo9694a(float f, float f2);",
"public double getActivationFunctionDerivative() {\n\t\treturn nodeActivationFunction.getDerivative();\n\t}",
"public static native double OpenMM_AmoebaMultipoleForce_getAEwald(PointerByReference target);",
"public void func_70305_f() {}",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"Exp\ngetExp2();",
"double foil_lift () {\n return wing.lift + stab.lift + fuse.lift;\n }",
"public void recalculateDistanceFunction()\r\n {\n findBoundaryGivenPhi();\r\n \r\n active.removeAllElements();\r\n\tfor(int i=0; i<pixelsWide; i++)\r\n\t\tfor(int j=0; j<pixelsHigh; j++)\r\n\t\t\t{\r\n if(!boundary.contains(new Int2d(i,j))) phi[i][j] = phiStart;\r\n //else System.out.println(\"Boundary point at i,j = \" + i + \", \" + j + \" with phi = \" + phi[i][j]);\r\n\t\t\t}\r\n \r\n //System.out.println(\"Building Initial Band\");\r\n\tbuildInitialBand(); \r\n \r\n //System.out.println(active.size());\r\n \r\n //System.out.println(\"Running Algorithm\");\r\n\twhile(active.size()>0)\r\n\t\t{\r\n\t\trunAlgorithmStep();\r\n\t\t}\r\n\t\r\n //System.out.println(\"Distance function calculated\");\r\n\t//maxPhi = findMaxPhi();\r\n }",
"public void cal_FineFuelMoisture(){\r\n\tdouble DIF=dry-wet;\r\n\tfor (int i=1;i<=3; i++){\r\n\tif ((DIF-C[i])<=0){ \r\n\t\t\r\n\t\tFFM=B[i]*Math.exp(A[i]*DIF);\r\n\t}\r\n\t}\r\n}",
"public RealValuedFunctTwoOps deriv2() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv2At(x, y);\n\t }\n\t};\n }",
"private double[] quadstepY(DoubleToDouble f, double x0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] y = {(a + c) / 2, (c + b) / 2};\n double[] v = f.evalDouble(x0, y, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = v[0];\n double fe = v[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepY(f, x0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepY(f, x0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"@Override\n public Float compute() {\n\treturn calc();\n }",
"Double getFreeFloat();",
"public abstract double get( int i, int j ) throws JWaveException;",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"@Override\n\tpublic double applyFunction(double in) {\n\t\treturn 0;\n\t}",
"public void integrate() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->integrate() unimplemented!\\n\");\n }",
"abstract void mo4372a(zzwt zzwt, cu cuVar);",
"void mo9696a(float f, float f2, int i);",
"public double getX2AddSolution() {\n this.polyAddSolve();\n return this.x2add;\n }",
"private float computeDeceleration(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.computeDeceleration(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.computeDeceleration(float):float\");\n }",
"public abstract double calculate(Complex c,Complex current);",
"double apply(final double a);",
"public double berechneFlaeche()\n {\n return (2 * p1.getX()) * (2 * p1.getX());\n }",
"double d();",
"private float diffusitivity(float d) {\r\n return (1.0f / (1.0f + (d * d) / (lambda * lambda)));\r\n }",
"int computeGradient(\n int gx, int gy);",
"public abstract C7982k4<E> m39518y();",
"abstract double apply(double x, double y);",
"private static double fInterp(double k) {\n return (1.0 - Math.cos(k * Math.PI)) / 2.0;\n }",
"public static native double OpenMM_AmoebaGeneralizedKirkwoodForce_getSolventDielectric(PointerByReference target);",
"float[] calculate(float[] acc, float[] oldAcc, float[] gyr , float[] oldGyr,float[] oldGra, float[] oldAccVelDisGra)\n {\n// System.out.println(\"inside method acc:\"+acc[0]+\", \"+acc[1]+\", \"+acc[2]+\", oldAcc:\"+oldAcc[0]+\", \"+oldAcc[1]+\", \"+oldAcc[2]);\n// System.out.println(\"inside method gravity:\"+oldGra[0]+\", \"+oldGra[1]+\", \"+oldGra[2]);\n if (oldAccVelDisGra==null)\n {\n oldAccVelDisGra= new float[9];\n for (int i = 0; i <9; i++) {\n oldAccVelDisGra[i]=0.0f;\n }\n }\n float[] oldDynamicAcc = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldVelocity = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldDistance = new float[]{0.0f, 0.0f, 0.0f};\n float[] newGra = gravityFromRotation(oldGra, gyr);\n\n for (int i = 0; i < 3; i++) {\n oldDynamicAcc[i] = oldAccVelDisGra[i];\n oldVelocity[i] = oldAccVelDisGra[i+3];\n oldDistance[i] = oldAccVelDisGra[i+6];\n }\n float[] accVelDisGra = new float[]{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};\n float[] dynAccDiff = dynamicAccDiff(acc,gyr,oldGra,oldAcc,oldGyr);\n float[] dynamicAcc = dynamicAcc(oldDynamicAcc, dynAccDiff);\n float[] velocity = velocity(oldVelocity,dynamicAcc);\n float[] distance = distance(oldDistance, velocity);\n for (int i = 0; i < 3; i++) {\n accVelDisGra[i]=dynamicAcc[i];\n accVelDisGra[i+3]= velocity[i];\n accVelDisGra[i+6]=distance[i];\n accVelDisGra[i+9]=newGra[i];\n }\n return accVelDisGra;\n }",
"public float work(float ds, float v);",
"public RealValuedFunctTwoOps deriv1() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv1At(x, y);\n\t }\n\t};\n }",
"public RealValuedFunctTwoOps deriv22() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv22At(x, y);\n\t }\n\t};\n }",
"private double functionF(int x, int y) {\n if (type == SIMPLE_SIN2D_IN_X) { return Math.sin(2 * Math.PI * s * x / M); }\n if (type == SIMPLE_SIN2D_IN_Y) { return Math.sin(2 * Math.PI * s * y / M); }\n if (type == SIMPLE_PLUS2D) { return Math.sin(2 * Math.PI * s * x / M) + Math.sin(2 * Math.PI * s2 * y / M); }\n if (type == SIMPLE_MULT2D) { return Math.sin(2 * Math.PI * s * x / M) * Math.sin(2 * Math.PI * s2 * y / M); }\n if (type == FROM_IMG) { return in.getSample(x, y, 0); }\n else { return 0; }\n }",
"public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}",
"abstract Double getWeight(int i, int j);",
"@Test\n public void test25() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.11113807559013367, 0.5, (-26.9977173));\n HarmonicOscillator harmonicOscillator0 = new HarmonicOscillator((-1967.765905), (-1967.765905), 0.5);\n double double0 = regulaFalsiSolver0.solve(127, (UnivariateRealFunction) harmonicOscillator0, (-1967.765905), 336.055956295, (-1076.4923));\n }",
"public void calcInc(int np)\n\t{\n \n findSpecEq();\n int nofc=numberOfComponents;\n fvec.timesEquals(0.0);\n fvec.set(nofc+1,0,1.0);\n Matrix dxds=Jac.solve(fvec);\n if (np<5)\n {\n double dp=0.01;\n ds=dp/dxds.get(nofc+1,0);\n Xgij.setMatrix(0,nofc+1,np-1,np-1,u);\n dxds.timesEquals(ds);\n // dxds.print(0,10);\n u.plusEquals(dxds);\n // Xgij.print(0,10);\n// u.print(0,10);\n }\n else\n {\n //System.out.println(\"iter \" +iter + \" np \" + np);\n if (iter>6)\n { \n ds *= 0.5;\n System.out.println(\"ds > 6\");\n }\n \n else\n {\n if (iter<3) {\n ds *= 1.5;\n }\n if (iter==3) {\n ds *= 1.1;\n }\n if (iter==4) {\n ds *= 1.0;\n }\n if (iter>4) {\n ds *= 0.5;\n }\n \n// Now we check wheater this ds is greater than dTmax and dPmax.\n if(Math.abs(system.getTemperature()*dxds.get(nofc,0)*ds)>dTmax){\n // System.out.println(\"true T\");\n ds=sign(dTmax/system.getTemperature()/Math.abs(dxds.get(nofc,0)),ds);\n }\n \n if(Math.abs(system.getPressure()*dxds.get(nofc+1,0)*ds)>dPmax)\n {\n ds=sign(dPmax/system.getPressure()/Math.abs(dxds.get(nofc+1,0)),ds);\n // System.out.println(\"true P\");\n }\n if (etterCP2) {\n etterCP2=false;\n ds = 0.5*ds;\n }\n \n Xgij.setMatrix(0,nofc+1,0,2,Xgij.getMatrix(0,nofc+1,1,3)); \n Xgij.setMatrix(0,nofc+1,3,3,u);\n s.setMatrix(0,0,0,3,Xgij.getMatrix(speceq,speceq,0,3));\n // s.print(0,10);\n // System.out.println(\"ds1 : \" + ds);\n calcInc2(np);\n // System.out.println(\"ds2 : \" + ds);\n \n// Here we find the next point from the polynomial.\n \n }\n }\n }",
"void mo9705c(float f, float f2);",
"public Function differentiate() {\n return new Product(this,\n new Sum(new Quotient(new Product(f2,\n f1.differentiate()),\n f1),\n new Product(new Log(new Complex(Math.E, 0.0), f1),\n f2.differentiate())));\n }",
"private void functionalInterfacesForDoubleIntLong() {\n double d = 1.0;\n DoubleToIntFunction f1 = x -> 1;\n f1.applyAsInt(d);\n\n }",
"@Override\n\tdouble f(double x) {\n\t\treturn x;\n\t}",
"int mo23521Ly();",
"public double[] propagate( double t0, double[] xin, double tf);",
"void chargeTf(double amount);",
"@Override\n public double apply$mcDI$sp (int arg0)\n {\n return 0;\n }",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"@Override\n public void apply$mcVD$sp (double arg0)\n {\n\n }",
"public double getX2AddReal() {\n this.polyAddSolve();\n return this.x2readd;\n }",
"public abstract double mo9740e();",
"public void i(double paramDouble1, double paramDouble2, double paramDouble3)\r\n/* 104: */ {\r\n/* 105:116 */ this.v = paramDouble1;\r\n/* 106:117 */ this.w = paramDouble2;\r\n/* 107:118 */ this.x = paramDouble3;\r\n/* 108:119 */ if ((this.B == 0.0F) && (this.A == 0.0F))\r\n/* 109: */ {\r\n/* 110:120 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 111:121 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 112:122 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f1) * 180.0D / 3.141592741012573D));\r\n/* 113: */ }\r\n/* 114: */ }",
"@Override\n\tpublic Object solvePart2(List<Technique> input) {\n\t\tvar m = BigInteger.valueOf(119315717514047L);\n\n\t\tvar a = BigInteger.ONE;\n\t\tvar b = BigInteger.ZERO;\n\t\tfor (var technique : input) {\n\t\t\tvar techniqueA = BigInteger.valueOf(technique.getA());\n\t\t\tvar techniqueB = BigInteger.valueOf(technique.getB());\n\n\t\t\ta = techniqueA.multiply(a).mod(m);\n\t\t\tb = techniqueA.multiply(b).add(techniqueB).mod(m);\n\t\t}\n\n\t\t// We re-arrange our combined f(x) to get x in terms of f(x), so we can\n\t\t// run the function in reverse:\n\t\t//\n\t\t// x = (f(x) - b) * a^(-1) (mod m)\n\t\t// x = f(x) * a^(-1) - b * a^(-1) (mod m)\n\t\t//\n\t\t// Call this new function g(x). Note that g(x) is the same as f(x), but\n\t\t// with:\n\t\t//\n\t\t// a' = a^(-1) (mod m)\n\t\t// b' = -b * a^(-1) (mod m)\n\t\t//\n\t\t// We adjust our a/b below for use with g(x).\n\t\ta = a.modInverse(m);\n\t\tb = b.negate().multiply(a).mod(m);\n\n\t\t// We need to run g(x) several times.\n\t\t//\n\t\t// g^1(x) = a * x + b\n\t\t//\n\t\t// g^2(x) = a * g^1(x) + b\n\t\t// = a * (a * x + b) + b\n\t\t// = a^2 * x + a * b + b\n\t\t//\n\t\t// g^3(x) = a^3 * x + a^2 * b + a * b + b\n\t\t// ...\n\t\t// g^n(x) = a^n * x + a^(n-1) * b + a^(n-2) * b + ... + b\n\t\t//\n\t\t// (mod m omitted for brevity.)\n\t\t//\n\t\t// The latter terms are a geometric series with first term b and common\n\t\t// ratio a.\n\t\t//\n\t\t// We can therefore simplify it to:\n\t\t//\n\t\t// g^n(x) = a^n * x + (1 - a^n) * (1 - a)^-1 * b (mod m)\n\t\tvar n = BigInteger.valueOf(101741582076661L);\n\t\tvar x = BigInteger.valueOf(2020L);\n\n\t\t// Java really needs operator overloading...\n\t\tvar aToN = a.modPow(n, m);\n\t\tvar aToNTimesX = aToN.multiply(x);\n\n\t\tvar geometricSum = BigInteger.ONE.subtract(aToN)\n\t\t\t.multiply(BigInteger.ONE.subtract(a).modInverse(m))\n\t\t\t.multiply(b);\n\n\t\treturn aToNTimesX.add(geometricSum).mod(m).longValue();\n\t}",
"public TensorFunction<Reference> function() { return function; }"
] |
[
"0.55695844",
"0.5546839",
"0.5482797",
"0.54602563",
"0.5408279",
"0.53867304",
"0.53782225",
"0.5298997",
"0.528639",
"0.5235823",
"0.5228969",
"0.52100736",
"0.5197411",
"0.519511",
"0.5177904",
"0.51687616",
"0.5157996",
"0.5134593",
"0.5121852",
"0.50972676",
"0.5097127",
"0.50879973",
"0.50774926",
"0.5065763",
"0.5026296",
"0.50248176",
"0.5022419",
"0.50152755",
"0.500679",
"0.50047207",
"0.50035703",
"0.50016755",
"0.5000372",
"0.49959746",
"0.49904504",
"0.49712422",
"0.49644202",
"0.49583292",
"0.49452272",
"0.49391097",
"0.4929456",
"0.49292162",
"0.4925193",
"0.49212107",
"0.49201098",
"0.49193946",
"0.49099752",
"0.49074787",
"0.49047312",
"0.49013513",
"0.4897957",
"0.48976207",
"0.48968297",
"0.48935387",
"0.48824412",
"0.48793596",
"0.48756263",
"0.48672277",
"0.4863944",
"0.48631507",
"0.48553252",
"0.48551804",
"0.485486",
"0.48493096",
"0.4847367",
"0.48470062",
"0.48444042",
"0.48436034",
"0.48434275",
"0.4841169",
"0.48365",
"0.48334277",
"0.48327625",
"0.4831503",
"0.48304725",
"0.4829452",
"0.48287275",
"0.48264253",
"0.48246473",
"0.48241872",
"0.4821983",
"0.4816326",
"0.48162535",
"0.48157614",
"0.48143175",
"0.4812916",
"0.47978812",
"0.47953367",
"0.47928327",
"0.47906318",
"0.47893572",
"0.47879243",
"0.47852147",
"0.47802585",
"0.47798795",
"0.47797966",
"0.47795397",
"0.47757617",
"0.47756574",
"0.4775456"
] |
0.5852591
|
0
|
TODO Autogenerated method stub
|
@Override
public void execute(JobExecutionContext arg0) throws JobExecutionException {
CommonJdbcDao commonDao = (CommonJdbcDao)arg0.getJobDetail().getJobDataMap().get("CommonJdbcDao");
ScriptManager.getScriptManager().loadInnerServers(commonDao);
ScriptManager.getScriptManager().loadAccount(commonDao);
System.out.println("CronTriggerJob = " + System.currentTimeMillis());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void setColor(String color) {
this.color=color;
System.out.println("我用"+color+"颜色进行填充。");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO: Confirmation of details
|
@Override
public void actionPerformed(ActionEvent e) {
JOptionPane.showConfirmDialog(OverCounterForm.this, "Check this");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void autoDetails() {\n\t\t\r\n\t}",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"public abstract String showDetails();",
"java.lang.String getDetails();",
"abstract String getDetails();",
"@Override\n\tpublic Object getDetails() {\n\t\treturn details;\n\t}",
"@Override\n public Object getDetails() {\n return null;\n }",
"public String wantDetail();",
"public void carDetails() {\n\t\t\r\n\t}",
"public void setDetails(String details) {\n this.details = details;\n }",
"public void getBookDetails() {\n\t}",
"public String detailsUpdate() throws Exception {\n\t\treturn null;\n\t}",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"public String getDetails() {\n return this.details;\n }",
"public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }",
"public abstract void addDetails();",
"public String getDetails() {\n return details;\n }",
"public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }",
"@Override\r\n\tpublic void printTransdetails() {\n\t\t\r\n\t}",
"public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public String getDetails() {\n\t\treturn details;\n\t}",
"public String getDetails() {\n\t\treturn details;\n\t}",
"public void setDetails(String details) {\n\t\tthis.details = details;\n\t}",
"public Object getDetails() {\n return null;\n }",
"private void checkManualPlaceDetails() {\n // now in DetailActivity, check the name and address are correct\n onView(withId(R.id.et_name)).check(matches(withText(PLACE_NAME)));\n onView(withId(R.id.et_address)).check(matches(withText(PLACE_ADDRESS)));\n\n checkManualVisit();\n\n // scroll to notes EditText\n onView(withId(R.id.et_notes))\n .perform(scrollTo());\n onView(withId(R.id.et_notes)).check(matches(isDisplayed()));\n // check notes displays correct text\n onView(withId(R.id.et_notes)).check(matches(withText(NOTES)));\n\n // go back\n Espresso.pressBack();\n }",
"@Override\n public String toString() {\n return detail;\n }",
"@Override\n\tpublic void grandDetails() {\n\t\tsuper.grandDetails();\n\t}",
"public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }",
"void displayDetails(String title, String description);",
"private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }",
"public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"), \"Order Details Button\");\t\n\t}",
"public String showDetails() {\n\t\treturn \"Person Name is : \" + name + \"\\n\" + \"Person Address is : \" + address;\n\t}",
"public void testDetails() {\n\t\tassertEquals(\"Incorrect target\", TARGET, this.aggregate.getTarget());\n\t\tassertEquals(\"Incorrect change description\", CHANGE_DESCRIPTION, this.aggregate.getChangeDescription());\n\t}",
"public String getDetails() {\n return toString();\n }",
"@Override\n public boolean isGivingInformation() {\n return true;\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }",
"@Override\n\tpublic void addDetails(String details) {\n\t\tthis.details = details;\n\t}",
"public String getDetail()\n {\n return detail;\n }",
"public void displayDetails() {\r\n\t\tSystem.out.println(\"*******************Profile Details*********************\");\r\n\t\tSystem.out.println(\"\\tUsername :\\t\" + uName);\r\n\t\tSystem.out.println(\"\\tFull Name :\\t\" + fullName);\r\n\t\tSystem.out.println(\"\\tPhone :\\t\" + phone);\r\n\t\tSystem.out.println(\"\\tE-Mail :\\t\" + email);\r\n\t}",
"public void showDetails (EventTable details) {\n\t\tdetailDisplay.show(\"details\");\n\t\tthis.details.showDetails(details);\n\t}",
"public String getDetails() {\n if(details == null)\n return \"\";\n else return details;\n }",
"public void populateDetails() {\n\n txtpn_NameHeading.setText(selStudent.getfName() + \" \" + selStudent.getlName());\n\n txtpn_RacesComplete.setText(String.valueOf(dataCur.countNumberRaces(selStudent.getId())));\n txtpn_DaysAbsent.setText(String.valueOf(selStudent.getAttend()));\n txtpn_AgeGroup.setText(String.valueOf(selStudent.getAge()));\n\n }",
"public void candidateDetails(Author authorObject);",
"@When(\"user clicks on find details\")\r\n\t\tpublic void user_clicks_on_find_details() {\n\t\t}",
"public void getEventDetails() {\r\n\t\t// Query DB to get specific event information based on EventID.\r\n\t}",
"private void setUserDetailsToView() {\n\t\tdetailDisplay.getFirstName().setValue(currentDetails.getFirstName());\n\t\tdetailDisplay.getLastName().setValue(currentDetails.getLastName());\n\t\tdetailDisplay.getMiddleInitial().setValue(currentDetails.getMiddleInitial());\n\t\tdetailDisplay.getLoginId().setText(currentDetails.getLoginId());\n\t\tdetailDisplay.getTitle().setValue(currentDetails.getTitle());\n\t\tdetailDisplay.getEmailAddress().setValue(currentDetails.getEmailAddress());\n\t\tdetailDisplay.getPhoneNumber().setValue(currentDetails.getPhoneNumber());\n\t\tdetailDisplay.getOrganizationListBox().setValue(currentDetails.getOrganizationId());\n\t\tdetailDisplay.getIsActive().setValue(currentDetails.isActive());\n\t\tif (!currentDetails.isActive()) {\n\t\t\tdetailDisplay.getIsRevoked().setValue(true);\n\t\t} else { // added else to fix default Revoked radio check in Mozilla (User Story 755)\n\t\t\tdetailDisplay.getIsRevoked().setValue(false);\n\t\t}\n\t\t\n\t\tdetailDisplay.setUserLocked(currentDetails.isLocked());\n\t\tif (currentDetails.isExistingUser()) {\n\t\t\tdetailDisplay.setShowRevokedStatus(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t\t// detailDisplay.setUserIsDeletable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t} else {\n\t\t\tdetailDisplay.setShowRevokedStatus(false);\n\t\t\t//detailDisplay.setUserIsDeletable(false);\n\t\t}\n\t\tdetailDisplay.setUserIsActiveEditable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\tdetailDisplay.setShowUnlockOption(currentDetails.isCurrentUserCanUnlock() && currentDetails.isActive());\n\t\tdetailDisplay.getRole().setValue(currentDetails.getRole());\n\t\tdetailDisplay.getOid().setValue(currentDetails.getOid());\n\t\tdetailDisplay.getOid().setTitle(currentDetails.getOid());\n\t\t//detailDisplay.getRootOid().setValue(currentDetails.getRootOid());\n\t}",
"private void showOrderDetails(Order order) {\n\t\tString status, shownOption;\n\n\t\tif (order.getStatus()) {\n\t\t\tstatus = new String();\n\t\t\tstatus = \"Processed\";\n\n\t\t\tshownOption = new String();\n\t\t\tshownOption = \"Return\";\n\t\t}\n\t\telse {\n\t\t\tstatus = new String();\n\t\t\tshownOption = new String();\n\n\t\t\tstatus = \"Pending\";\n\t\t\tshownOption = \"Set Processed\";\n\t\t}\n\n\t\tString orderDetailsMessage = \"ORDER DATE : \" + order.getDate();\n\t\torderDetailsMessage += \"\\nSTATUS: \" + status;\n\t\torderDetailsMessage += \"\\nITEMS: \";\n\t\tfor (StockItem stockItem : order.getOrderEntryList()) {\n\t\t\torderDetailsMessage += \"\\n \" + stockItem.getQuantity() + \" \\t x \\t \"\n\t\t\t\t\t+ stockItem.getProduct().getProductName() + \" \\t\\t\\t Subtotal: \\t\\u20ac\"\n\t\t\t\t\t+ (stockItem.getProduct().getRetailPrice() * stockItem.getQuantity());\n\t\t}\n\n\t\torderDetailsMessage += \"\\n\\nCUSTOMER ID: \" + order.getPerson().getId()\n\t\t\t\t+ \"\\nPersonal Details: \";\n\t\torderDetailsMessage += \"\\n Name: \\t\" + order.getPerson().getName();\n\t\torderDetailsMessage += \"\\n Phone: \\t\" + order.getPerson().getContactNumber();\n\t\torderDetailsMessage += \"\\n Address: \\t\" + order.getPerson().getAddress();\n\t\torderDetailsMessage += \"\\n\\nThe total order value is \\t\\u20ac\"\n\t\t\t\t+ order.getGrandTotalOfOrder() + \"\\n\";\n\n\t\tObject[] options = { \"OK\", shownOption };\n\t\tint n = JOptionPane.showOptionDialog(null, orderDetailsMessage, \"ORDER ID: \"\n\t\t\t\t+ (order.getId()) + \" STAFF ID: \" + order.getCurrentlyLoggedInStaff().getId()\n\t\t\t\t+ \" STATUS : \" + status /* order.isStatus() */, JOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\tif (n == 1) {\n\t\t\torder.setStatus(true);\n\t\t}\n\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyStdSpecificacctsPrepopulatedUserdetails() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the confirmation page of Add new user is getting displayed with prepopulated user details\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\n\t\t.VerifySpecificAccountsViewNames(userProfile);\t \t \t\t \t \t\t \t \t \t \t\t \t \t\t \t \t\t \t \t\t\n\t}",
"public void setDetails(String details) {\n\t\tif(details != null)\n\t\t\tthis.details = details;\n\t}",
"private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}",
"public void viewDetails(){\n for(int i = 0; i < roads.size(); i++){\n System.out.println(roads.get(i).getName());\n System.out.println(roads.get(i).getNorthStatus() + \" - \" + roads.get(i).getNorthAdvisory());\n System.out.println(roads.get(i).getSouthStatus() + \" - \" + roads.get(i).getSouthAdvisory() + \"\\n\");\n }\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public void Large_Req_detail()\n {\n\t boolean largereqpresent =lareqdetails.size()>0;\n\t if(largereqpresent)\n\t {\n\t\t// System.out.println(\"Large Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Large Request details report is not present\");\n\t }\n }",
"public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}",
"public void empdetails() {\r\n\t\tSystem.out.println(\"name : \"+ name);\r\n\t}",
"public void printCustomerDetails()\r\n {\r\n System.out.println(title + \" \" + firstName + \" \" \r\n + lastName + \"\\n\" +getAddress() \r\n + \"\\nCard Number: \" + cardNumber \r\n + \"\\nPoints available: \" + points);\r\n }",
"public void setDetails(String details) {\n this.mDetails = details;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public String getAnotherDetail();",
"@Override\r\n\tpublic String detailDeal() {\n\t\treturn null;\r\n\t}",
"public String[] getDetails() {\n\t\treturn details;\n\t}",
"public String getDetails() {\n return mDetails;\n }",
"public String getDetails() {\n return mDetails;\n }",
"public void displayModelDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeightInFeetAndInches());\n System.out.println(\"Weight: \" + getWeight() + \" pounds\");\n String travelMessage = canTravel ? \"yep\" : \"nope\";\n System.out.println(\"Travels: \" + travelMessage);\n String smokeMessage = smokes ? \"yep\" : \"nope\";\n System.out.println(\"Smokes\" + smokeMessage);\n System.out.println(\"Hourly rate: $\" + calculatePayDollarsPerHour());\n }",
"public String getDetails() {\r\n\t\treturn \"Loan Id: \" + loanId + \"\\n\\rStock Id: \" + stockId + \" \\n\\rDate of loan: \" + loanDate + \"\\n\\r Has the loan been returned?: \" + isReturned + \" \\n\\rFine owed: \" + loanFine.getFine();\r\n\t}",
"void vehicleDetails();",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String printDetails(){\n System.out.println(\"This is the Title of the book:\");\n return title;\n System.out.println(\"This is the Author of the book:\");\n return author;\n System.out.println(\"This is how many pages there are:\");\n return pages;\n System.out.println(\"This is the Ref Number:\");\n return refNumber;\n \n }",
"public String doDetail(){\n if(idsecteur==null){\n this.addActionError(getText(\"error.topo.missing.id.\"));\n }else secteur = managerFactory.getSecteurManager().getbynid(idsecteur);\n {\n // this.addActionError(\"il n'y a pas de projet pour ce numéro \"+idtopo );\n\n\n }\nreturn (this.hasErrors())? ActionSupport.ERROR : ActionSupport.SUCCESS;\n\n }",
"private void showAuthorDetails()\n {\n String message = \"Author: Kyle Russell\\nUniversity: Auckland University of Technology\\nContact: specialk.jn@gmail.com\";\n JOptionPane.showMessageDialog(null, message, \"Author information\", JOptionPane.INFORMATION_MESSAGE);\n }",
"@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"Body type: \" + bodyType + \" Number of doors: \" + noOfDoors + \" Number of seats: \" + noOfSeats);\n System.out.println();\n }",
"public void setDetail(String detail) {\r\n this.detail = detail;\r\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"public String detailsLoad() throws Exception {\n\t\treturn null;\n\t}",
"public void printDetails()\r\n\t{\r\n\t\tSystem.out.println(flightNumber);\r\n\t\tSystem.out.println(departurePoint);\r\n\t\tSystem.out.println(destination);\r\n\t\tSystem.out.println(departureTime);\r\n\t\tSystem.out.println(arrivalTime);\r\n\t\tSystem.out.println(checkedInPassengers);\r\n\t\tif(status == 'S')\r\n\t\t\tSystem.out.println(\"Scheduled\");\r\n\t\t\t\r\n\t\tif(status == 'B')\r\n\t\t\tSystem.out.println(\"Boarding\");\r\n\t\tif(status == 'D')\r\n\t\t\tSystem.out.println(\"Departed\");\r\n\t\tif(status == 'C')\r\n\t\t\tSystem.out.println(\"Canceled\");\r\n\t\t\r\n\t\t\t\t\r\n\t}",
"public void saveDetails() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.update(event, timelineUpdater);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking details \" + getRoom() + \" have been saved\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}",
"private static void printDetail() {\n System.out.println(\"Welcome to LockedMe.com\");\n System.out.println(\"Version: 1.0\");\n System.out.println(\"Developer: Sherman Xu\");\n System.out.println(\"sherman.xu@lockers.com\");\n }",
"private void dumpServiceDetails(ServiceDetailsExt details)\n {\n log(\"*\");\n log(\"* ServiceDetails Information\");\n assertNotNull(\"ServiceDetails' Long name cannot be null\", details.getLongName());\n log(\"* SD Long Name: \" + details.getLongName());\n int prog = details.getProgramNumber();\n assertTrue(\"ServiceDetails' Program number must be -1 or greater than zero, instead found \" + prog, prog == -1\n || prog > 0);\n log(\"* SD Program Number: \" + details.getProgramNumber());\n assertTrue(\"SourceID should be greater than zero\", details.getSourceID() > 0);\n log(\"* SD SourceID: \" + details.getSourceID());\n assertNotNull(\"ServiceDetails' CA IDs cannot be null\", details.getCASystemIDs());\n int[] caIDs = details.getCASystemIDs();\n if (caIDs.length == 0)\n log(\"* SD CASystemIDs: NONE\");\n else\n {\n log(\"* SD CASystemIDs: \");\n for (int k = 0; k < caIDs.length; k++)\n {\n log(\"* \" + caIDs[k]);\n }\n }\n assertNotNull(\"ServiceDetails' DeliverySystemType cannot be null\", details.getDeliverySystemType());\n log(\"* SD DeliverySystemType: \" + details.getDeliverySystemType());\n assertNotNull(\"ServiceDetails' ServiceType cannot be null\", details.getServiceType());\n log(\"* SD ServiceType: \" + details.getServiceType());\n assertNotNull(\"ServiceDetails' ServiceInformationType cannot be null\", details.getServiceInformationType());\n log(\"* SD ServiceInformationType: \" + details.getServiceInformationType());\n assertNotNull(\"ServiceDetails' Update time cannot be null\", details.getUpdateTime());\n long now = new Date().getTime();\n long oneYearAgo = now - (1000 * 60 * 60 * 24 * 365);\n long oneYearAhead = now + (1000 * 60 * 60 * 24 * 365);\n assertTrue(\"ServiceDetails' Update time should not be more than a year off\",\n (oneYearAgo < details.getUpdateTime().getTime()) && (oneYearAhead > details.getUpdateTime().getTime()));\n log(\"* SD UpdateTime: \" + details.getUpdateTime());\n assertNotNull(\"ServiceDetails' Locator cannot be null\", details.getLocator());\n log(\"* SD Locator: \" + details.getLocator());\n assertNotNull(\"ServiceDetails' handle cannot be null\", details.getServiceDetailsHandle());\n log(\"* SD Handle: \" + details.getServiceDetailsHandle());\n assertNotNull(\"ServiceDetails' Service cannot be null\", details.getService());\n assertNotNull(\"ServiceDetails' TransportStream cannot be null\", details.getTransportStream());\n }",
"public void showInformation() {\n\t\tSystem.out.println(\"Title: \" + getTitle());\n\t\tSystem.out.println(\"Time: \" + getTime());\n\t\tSystem.out.println(\"Number: \" + getNumber());\n\t}",
"private void loadDetails() {\n TextView tvName = (TextView) findViewById(R.id.tvPropertyName);\n TextView tvAddress = (TextView) findViewById(R.id.tvFullAddress);\n TextView tvCategory = (TextView) findViewById(R.id.tvPropCategory);\n TextView tvSize = (TextView) findViewById(R.id.tvRoomSize);\n TextView tvPrice = (TextView) findViewById(R.id.tvPropPrice);\n\n tvName.setText(name);\n tvAddress.setText(address);\n tvCategory.setText(category);\n tvSize.setText(size + \"m2\");\n tvPrice.setText(\"R\" + price + \".00 pm\");\n getImage();\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}",
"public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }",
"private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }",
"public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}",
"private void freundDetailsAnzeigen() throws Exception {\n Freund foundFriend = eingabeZumSuchen();\n\n System.out.println(\"Name: \" + foundFriend.getName());\n System.out.println(\"Handy: \" + foundFriend.getHandy());\n System.out.println(\"Telefon: \" + foundFriend.getTelefon());\n System.out.println(\"Adresse: \" + foundFriend.getAdresse());\n System.out.println(\"Geburtstag: \" + foundFriend.getGeburtstag());\n System.out.println(\"Schluessel: \" + foundFriend.getSchluessel());\n\n auswahlAnzeigen();\n }",
"public void testAddExistingInfo() {\r\n TAG = \"testAddExistingInfo\";\r\n setUpOpTest();\r\n solo.clickOnActionBarItem(R.id.create_operation);\r\n solo.waitForActivity(OperationEditor.class);\r\n solo.enterText(3, OP_TP);\r\n for (int i = 0; i < OP_AMOUNT.length(); ++i) {\r\n solo.enterText(4, String.valueOf(OP_AMOUNT.charAt(i)));\r\n }\r\n solo.clickOnImageButton(tools.findIndexOfImageButton(R.id.edit_op_third_parties_list));\r\n solo.clickOnButton(solo.getString(R.string.create));\r\n solo.enterText(0, \"Atest\");\r\n solo.clickOnButton(solo.getString(R.string.ok));\r\n solo.waitForView(ListView.class);\r\n assertEquals(1, solo.getCurrentViews(ListView.class).get(0).getCount());\r\n solo.clickOnButton(solo.getString(R.string.create));\r\n solo.enterText(0, \"ATest\");\r\n solo.clickOnButton(solo.getString(R.string.ok));\r\n assertNotNull(solo\r\n .getText(solo.getString(fr.geobert.radis.R.string.item_exists)));\r\n }",
"public void printDetails() {\n PrintFormatter pf = new PrintFormatter();\n\n String first = \"############# Armor Details #############\";\n System.out.println(first);\n pf.formatText(first.length(), \"# Items stats for: \" + name);\n pf.formatText(first.length(), \"# Armor Type: \" + itemsType);\n pf.formatText(first.length(), \"# Slot: \" + slot);\n pf.formatText(first.length(), \"# Armor level: \" + level);\n\n if (baseStats.getHealth() > 0)\n pf.formatText(first.length(), \"# Bonus HP: \" + baseStats.getHealth());\n\n if (baseStats.getStrength() > 0)\n pf.formatText(first.length(), \"# Bonus Str: \" + baseStats.getStrength());\n\n if (baseStats.getDexterity() > 0)\n pf.formatText(first.length(), \"# Bonus Dex: \" + baseStats.getDexterity());\n\n if (baseStats.getIntelligence() > 0)\n pf.formatText(first.length(), \"# Bonus Int: \" + baseStats.getIntelligence());\n\n System.out.println(\"########################################\");\n\n }",
"private void callFormDetailFunctions() {\n ArrayList<Item> items = new ArrayList<>();\n items.addAll(computers);\n items.addAll(printers);\n getBuildingNames(items);\n getBrandNames(items);\n getOSNames(computers);\n setAdapters();\n }",
"public String displayDetails()\n\t{\n\t\tString displayDetail = \"\";\n\t\t \n\t\tdisplayDetail = (\"Make of your System\\t\\t=>\\t\" + make + \n\t\t\t\t\t\t\"\\nModel of your System\\t\\t=>\\t\" + model + \n\t\t\t\t\t\t\"\\nSpeed of your System\\t\\t=>\\t\" + speed + \n\t\t\t\t\t\t\"\\nMemory of your System\\t\\t=>\\t\" + memorySize + \" MB \" +\n\t\t\t\t\t\t\"\\nHard Disk of your System\\t=>\\t\" + hardDiskSize + \" GB \" +\n\t\t\t\t\t\t\"\\nPurchase Cost of your System\\t=>\\t\" + purchaseCost);\n\t\t\n\t\treturn displayDetail;\n\t}",
"@When(\"Hotels Details page has finished loading\")\n public void detailspage_i_am_on_details_page() {\n detailsPage = new HotelsDetailsPage(driver);\n detailsPage.check_page_title();\n }"
] |
[
"0.7599898",
"0.68883145",
"0.6725919",
"0.6667308",
"0.66649634",
"0.6553317",
"0.6536992",
"0.65195316",
"0.65169394",
"0.6485547",
"0.64547074",
"0.6435128",
"0.63850343",
"0.63668",
"0.6361417",
"0.63368106",
"0.63243073",
"0.63117",
"0.63048226",
"0.62958723",
"0.6289926",
"0.6289926",
"0.62880003",
"0.62801766",
"0.6280138",
"0.62742615",
"0.6266823",
"0.62502533",
"0.6223078",
"0.6202537",
"0.6147749",
"0.6121499",
"0.6100649",
"0.60807544",
"0.6080295",
"0.6065952",
"0.60580003",
"0.60580003",
"0.6055991",
"0.60518485",
"0.6043943",
"0.60420954",
"0.60323083",
"0.6027526",
"0.6019305",
"0.60190743",
"0.6009565",
"0.6006582",
"0.5994575",
"0.5993466",
"0.59885275",
"0.5986601",
"0.5980211",
"0.5968262",
"0.5967994",
"0.5967994",
"0.5967994",
"0.5967994",
"0.59492886",
"0.5914711",
"0.5910331",
"0.59070134",
"0.5892795",
"0.5890568",
"0.5883319",
"0.5881526",
"0.58698046",
"0.58686244",
"0.58686244",
"0.5867069",
"0.5863121",
"0.5860137",
"0.5853692",
"0.58337486",
"0.58325267",
"0.5830333",
"0.58287454",
"0.5827265",
"0.58225685",
"0.58168215",
"0.58168215",
"0.5815789",
"0.5814945",
"0.58112603",
"0.58108234",
"0.5795298",
"0.57891506",
"0.5788607",
"0.5782739",
"0.5782739",
"0.5782739",
"0.5780269",
"0.57784724",
"0.5773592",
"0.57654196",
"0.5761618",
"0.57508194",
"0.57502586",
"0.5749202",
"0.5747796",
"0.5747689"
] |
0.0
|
-1
|
TODO: Confirmation of details
|
@Override
public void actionPerformed(ActionEvent e) {
JOptionPane.showConfirmDialog(OverCounterForm.this, "Check this out");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void autoDetails() {\n\t\t\r\n\t}",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"public abstract String showDetails();",
"java.lang.String getDetails();",
"abstract String getDetails();",
"@Override\n\tpublic Object getDetails() {\n\t\treturn details;\n\t}",
"@Override\n public Object getDetails() {\n return null;\n }",
"public String wantDetail();",
"public void carDetails() {\n\t\t\r\n\t}",
"public void setDetails(String details) {\n this.details = details;\n }",
"public void getBookDetails() {\n\t}",
"public String detailsUpdate() throws Exception {\n\t\treturn null;\n\t}",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"public String getDetails() {\n return this.details;\n }",
"public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }",
"public abstract void addDetails();",
"public String getDetails() {\n return details;\n }",
"public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }",
"@Override\r\n\tpublic void printTransdetails() {\n\t\t\r\n\t}",
"public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public String getDetails() {\n\t\treturn details;\n\t}",
"public String getDetails() {\n\t\treturn details;\n\t}",
"public void setDetails(String details) {\n\t\tthis.details = details;\n\t}",
"public Object getDetails() {\n return null;\n }",
"private void checkManualPlaceDetails() {\n // now in DetailActivity, check the name and address are correct\n onView(withId(R.id.et_name)).check(matches(withText(PLACE_NAME)));\n onView(withId(R.id.et_address)).check(matches(withText(PLACE_ADDRESS)));\n\n checkManualVisit();\n\n // scroll to notes EditText\n onView(withId(R.id.et_notes))\n .perform(scrollTo());\n onView(withId(R.id.et_notes)).check(matches(isDisplayed()));\n // check notes displays correct text\n onView(withId(R.id.et_notes)).check(matches(withText(NOTES)));\n\n // go back\n Espresso.pressBack();\n }",
"@Override\n public String toString() {\n return detail;\n }",
"@Override\n\tpublic void grandDetails() {\n\t\tsuper.grandDetails();\n\t}",
"public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }",
"void displayDetails(String title, String description);",
"private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }",
"public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"), \"Order Details Button\");\t\n\t}",
"public String showDetails() {\n\t\treturn \"Person Name is : \" + name + \"\\n\" + \"Person Address is : \" + address;\n\t}",
"public void testDetails() {\n\t\tassertEquals(\"Incorrect target\", TARGET, this.aggregate.getTarget());\n\t\tassertEquals(\"Incorrect change description\", CHANGE_DESCRIPTION, this.aggregate.getChangeDescription());\n\t}",
"public String getDetails() {\n return toString();\n }",
"@Override\n public boolean isGivingInformation() {\n return true;\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }",
"@Override\n\tpublic void addDetails(String details) {\n\t\tthis.details = details;\n\t}",
"public String getDetail()\n {\n return detail;\n }",
"public void displayDetails() {\r\n\t\tSystem.out.println(\"*******************Profile Details*********************\");\r\n\t\tSystem.out.println(\"\\tUsername :\\t\" + uName);\r\n\t\tSystem.out.println(\"\\tFull Name :\\t\" + fullName);\r\n\t\tSystem.out.println(\"\\tPhone :\\t\" + phone);\r\n\t\tSystem.out.println(\"\\tE-Mail :\\t\" + email);\r\n\t}",
"public void showDetails (EventTable details) {\n\t\tdetailDisplay.show(\"details\");\n\t\tthis.details.showDetails(details);\n\t}",
"public String getDetails() {\n if(details == null)\n return \"\";\n else return details;\n }",
"public void populateDetails() {\n\n txtpn_NameHeading.setText(selStudent.getfName() + \" \" + selStudent.getlName());\n\n txtpn_RacesComplete.setText(String.valueOf(dataCur.countNumberRaces(selStudent.getId())));\n txtpn_DaysAbsent.setText(String.valueOf(selStudent.getAttend()));\n txtpn_AgeGroup.setText(String.valueOf(selStudent.getAge()));\n\n }",
"public void candidateDetails(Author authorObject);",
"@When(\"user clicks on find details\")\r\n\t\tpublic void user_clicks_on_find_details() {\n\t\t}",
"public void getEventDetails() {\r\n\t\t// Query DB to get specific event information based on EventID.\r\n\t}",
"private void setUserDetailsToView() {\n\t\tdetailDisplay.getFirstName().setValue(currentDetails.getFirstName());\n\t\tdetailDisplay.getLastName().setValue(currentDetails.getLastName());\n\t\tdetailDisplay.getMiddleInitial().setValue(currentDetails.getMiddleInitial());\n\t\tdetailDisplay.getLoginId().setText(currentDetails.getLoginId());\n\t\tdetailDisplay.getTitle().setValue(currentDetails.getTitle());\n\t\tdetailDisplay.getEmailAddress().setValue(currentDetails.getEmailAddress());\n\t\tdetailDisplay.getPhoneNumber().setValue(currentDetails.getPhoneNumber());\n\t\tdetailDisplay.getOrganizationListBox().setValue(currentDetails.getOrganizationId());\n\t\tdetailDisplay.getIsActive().setValue(currentDetails.isActive());\n\t\tif (!currentDetails.isActive()) {\n\t\t\tdetailDisplay.getIsRevoked().setValue(true);\n\t\t} else { // added else to fix default Revoked radio check in Mozilla (User Story 755)\n\t\t\tdetailDisplay.getIsRevoked().setValue(false);\n\t\t}\n\t\t\n\t\tdetailDisplay.setUserLocked(currentDetails.isLocked());\n\t\tif (currentDetails.isExistingUser()) {\n\t\t\tdetailDisplay.setShowRevokedStatus(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t\t// detailDisplay.setUserIsDeletable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t} else {\n\t\t\tdetailDisplay.setShowRevokedStatus(false);\n\t\t\t//detailDisplay.setUserIsDeletable(false);\n\t\t}\n\t\tdetailDisplay.setUserIsActiveEditable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\tdetailDisplay.setShowUnlockOption(currentDetails.isCurrentUserCanUnlock() && currentDetails.isActive());\n\t\tdetailDisplay.getRole().setValue(currentDetails.getRole());\n\t\tdetailDisplay.getOid().setValue(currentDetails.getOid());\n\t\tdetailDisplay.getOid().setTitle(currentDetails.getOid());\n\t\t//detailDisplay.getRootOid().setValue(currentDetails.getRootOid());\n\t}",
"private void showOrderDetails(Order order) {\n\t\tString status, shownOption;\n\n\t\tif (order.getStatus()) {\n\t\t\tstatus = new String();\n\t\t\tstatus = \"Processed\";\n\n\t\t\tshownOption = new String();\n\t\t\tshownOption = \"Return\";\n\t\t}\n\t\telse {\n\t\t\tstatus = new String();\n\t\t\tshownOption = new String();\n\n\t\t\tstatus = \"Pending\";\n\t\t\tshownOption = \"Set Processed\";\n\t\t}\n\n\t\tString orderDetailsMessage = \"ORDER DATE : \" + order.getDate();\n\t\torderDetailsMessage += \"\\nSTATUS: \" + status;\n\t\torderDetailsMessage += \"\\nITEMS: \";\n\t\tfor (StockItem stockItem : order.getOrderEntryList()) {\n\t\t\torderDetailsMessage += \"\\n \" + stockItem.getQuantity() + \" \\t x \\t \"\n\t\t\t\t\t+ stockItem.getProduct().getProductName() + \" \\t\\t\\t Subtotal: \\t\\u20ac\"\n\t\t\t\t\t+ (stockItem.getProduct().getRetailPrice() * stockItem.getQuantity());\n\t\t}\n\n\t\torderDetailsMessage += \"\\n\\nCUSTOMER ID: \" + order.getPerson().getId()\n\t\t\t\t+ \"\\nPersonal Details: \";\n\t\torderDetailsMessage += \"\\n Name: \\t\" + order.getPerson().getName();\n\t\torderDetailsMessage += \"\\n Phone: \\t\" + order.getPerson().getContactNumber();\n\t\torderDetailsMessage += \"\\n Address: \\t\" + order.getPerson().getAddress();\n\t\torderDetailsMessage += \"\\n\\nThe total order value is \\t\\u20ac\"\n\t\t\t\t+ order.getGrandTotalOfOrder() + \"\\n\";\n\n\t\tObject[] options = { \"OK\", shownOption };\n\t\tint n = JOptionPane.showOptionDialog(null, orderDetailsMessage, \"ORDER ID: \"\n\t\t\t\t+ (order.getId()) + \" STAFF ID: \" + order.getCurrentlyLoggedInStaff().getId()\n\t\t\t\t+ \" STATUS : \" + status /* order.isStatus() */, JOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\tif (n == 1) {\n\t\t\torder.setStatus(true);\n\t\t}\n\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyStdSpecificacctsPrepopulatedUserdetails() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the confirmation page of Add new user is getting displayed with prepopulated user details\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\n\t\t.VerifySpecificAccountsViewNames(userProfile);\t \t \t\t \t \t\t \t \t \t \t\t \t \t\t \t \t\t \t \t\t\n\t}",
"public void setDetails(String details) {\n\t\tif(details != null)\n\t\t\tthis.details = details;\n\t}",
"private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}",
"public void viewDetails(){\n for(int i = 0; i < roads.size(); i++){\n System.out.println(roads.get(i).getName());\n System.out.println(roads.get(i).getNorthStatus() + \" - \" + roads.get(i).getNorthAdvisory());\n System.out.println(roads.get(i).getSouthStatus() + \" - \" + roads.get(i).getSouthAdvisory() + \"\\n\");\n }\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public void Large_Req_detail()\n {\n\t boolean largereqpresent =lareqdetails.size()>0;\n\t if(largereqpresent)\n\t {\n\t\t// System.out.println(\"Large Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Large Request details report is not present\");\n\t }\n }",
"public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}",
"public void empdetails() {\r\n\t\tSystem.out.println(\"name : \"+ name);\r\n\t}",
"public void printCustomerDetails()\r\n {\r\n System.out.println(title + \" \" + firstName + \" \" \r\n + lastName + \"\\n\" +getAddress() \r\n + \"\\nCard Number: \" + cardNumber \r\n + \"\\nPoints available: \" + points);\r\n }",
"public void setDetails(String details) {\n this.mDetails = details;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public String getAnotherDetail();",
"@Override\r\n\tpublic String detailDeal() {\n\t\treturn null;\r\n\t}",
"public String[] getDetails() {\n\t\treturn details;\n\t}",
"public String getDetails() {\n return mDetails;\n }",
"public String getDetails() {\n return mDetails;\n }",
"public void displayModelDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeightInFeetAndInches());\n System.out.println(\"Weight: \" + getWeight() + \" pounds\");\n String travelMessage = canTravel ? \"yep\" : \"nope\";\n System.out.println(\"Travels: \" + travelMessage);\n String smokeMessage = smokes ? \"yep\" : \"nope\";\n System.out.println(\"Smokes\" + smokeMessage);\n System.out.println(\"Hourly rate: $\" + calculatePayDollarsPerHour());\n }",
"public String getDetails() {\r\n\t\treturn \"Loan Id: \" + loanId + \"\\n\\rStock Id: \" + stockId + \" \\n\\rDate of loan: \" + loanDate + \"\\n\\r Has the loan been returned?: \" + isReturned + \" \\n\\rFine owed: \" + loanFine.getFine();\r\n\t}",
"void vehicleDetails();",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String printDetails(){\n System.out.println(\"This is the Title of the book:\");\n return title;\n System.out.println(\"This is the Author of the book:\");\n return author;\n System.out.println(\"This is how many pages there are:\");\n return pages;\n System.out.println(\"This is the Ref Number:\");\n return refNumber;\n \n }",
"public String doDetail(){\n if(idsecteur==null){\n this.addActionError(getText(\"error.topo.missing.id.\"));\n }else secteur = managerFactory.getSecteurManager().getbynid(idsecteur);\n {\n // this.addActionError(\"il n'y a pas de projet pour ce numéro \"+idtopo );\n\n\n }\nreturn (this.hasErrors())? ActionSupport.ERROR : ActionSupport.SUCCESS;\n\n }",
"private void showAuthorDetails()\n {\n String message = \"Author: Kyle Russell\\nUniversity: Auckland University of Technology\\nContact: specialk.jn@gmail.com\";\n JOptionPane.showMessageDialog(null, message, \"Author information\", JOptionPane.INFORMATION_MESSAGE);\n }",
"@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"Body type: \" + bodyType + \" Number of doors: \" + noOfDoors + \" Number of seats: \" + noOfSeats);\n System.out.println();\n }",
"public void setDetail(String detail) {\r\n this.detail = detail;\r\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"public String detailsLoad() throws Exception {\n\t\treturn null;\n\t}",
"public void printDetails()\r\n\t{\r\n\t\tSystem.out.println(flightNumber);\r\n\t\tSystem.out.println(departurePoint);\r\n\t\tSystem.out.println(destination);\r\n\t\tSystem.out.println(departureTime);\r\n\t\tSystem.out.println(arrivalTime);\r\n\t\tSystem.out.println(checkedInPassengers);\r\n\t\tif(status == 'S')\r\n\t\t\tSystem.out.println(\"Scheduled\");\r\n\t\t\t\r\n\t\tif(status == 'B')\r\n\t\t\tSystem.out.println(\"Boarding\");\r\n\t\tif(status == 'D')\r\n\t\t\tSystem.out.println(\"Departed\");\r\n\t\tif(status == 'C')\r\n\t\t\tSystem.out.println(\"Canceled\");\r\n\t\t\r\n\t\t\t\t\r\n\t}",
"public void saveDetails() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.update(event, timelineUpdater);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking details \" + getRoom() + \" have been saved\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}",
"private static void printDetail() {\n System.out.println(\"Welcome to LockedMe.com\");\n System.out.println(\"Version: 1.0\");\n System.out.println(\"Developer: Sherman Xu\");\n System.out.println(\"sherman.xu@lockers.com\");\n }",
"private void dumpServiceDetails(ServiceDetailsExt details)\n {\n log(\"*\");\n log(\"* ServiceDetails Information\");\n assertNotNull(\"ServiceDetails' Long name cannot be null\", details.getLongName());\n log(\"* SD Long Name: \" + details.getLongName());\n int prog = details.getProgramNumber();\n assertTrue(\"ServiceDetails' Program number must be -1 or greater than zero, instead found \" + prog, prog == -1\n || prog > 0);\n log(\"* SD Program Number: \" + details.getProgramNumber());\n assertTrue(\"SourceID should be greater than zero\", details.getSourceID() > 0);\n log(\"* SD SourceID: \" + details.getSourceID());\n assertNotNull(\"ServiceDetails' CA IDs cannot be null\", details.getCASystemIDs());\n int[] caIDs = details.getCASystemIDs();\n if (caIDs.length == 0)\n log(\"* SD CASystemIDs: NONE\");\n else\n {\n log(\"* SD CASystemIDs: \");\n for (int k = 0; k < caIDs.length; k++)\n {\n log(\"* \" + caIDs[k]);\n }\n }\n assertNotNull(\"ServiceDetails' DeliverySystemType cannot be null\", details.getDeliverySystemType());\n log(\"* SD DeliverySystemType: \" + details.getDeliverySystemType());\n assertNotNull(\"ServiceDetails' ServiceType cannot be null\", details.getServiceType());\n log(\"* SD ServiceType: \" + details.getServiceType());\n assertNotNull(\"ServiceDetails' ServiceInformationType cannot be null\", details.getServiceInformationType());\n log(\"* SD ServiceInformationType: \" + details.getServiceInformationType());\n assertNotNull(\"ServiceDetails' Update time cannot be null\", details.getUpdateTime());\n long now = new Date().getTime();\n long oneYearAgo = now - (1000 * 60 * 60 * 24 * 365);\n long oneYearAhead = now + (1000 * 60 * 60 * 24 * 365);\n assertTrue(\"ServiceDetails' Update time should not be more than a year off\",\n (oneYearAgo < details.getUpdateTime().getTime()) && (oneYearAhead > details.getUpdateTime().getTime()));\n log(\"* SD UpdateTime: \" + details.getUpdateTime());\n assertNotNull(\"ServiceDetails' Locator cannot be null\", details.getLocator());\n log(\"* SD Locator: \" + details.getLocator());\n assertNotNull(\"ServiceDetails' handle cannot be null\", details.getServiceDetailsHandle());\n log(\"* SD Handle: \" + details.getServiceDetailsHandle());\n assertNotNull(\"ServiceDetails' Service cannot be null\", details.getService());\n assertNotNull(\"ServiceDetails' TransportStream cannot be null\", details.getTransportStream());\n }",
"public void showInformation() {\n\t\tSystem.out.println(\"Title: \" + getTitle());\n\t\tSystem.out.println(\"Time: \" + getTime());\n\t\tSystem.out.println(\"Number: \" + getNumber());\n\t}",
"private void loadDetails() {\n TextView tvName = (TextView) findViewById(R.id.tvPropertyName);\n TextView tvAddress = (TextView) findViewById(R.id.tvFullAddress);\n TextView tvCategory = (TextView) findViewById(R.id.tvPropCategory);\n TextView tvSize = (TextView) findViewById(R.id.tvRoomSize);\n TextView tvPrice = (TextView) findViewById(R.id.tvPropPrice);\n\n tvName.setText(name);\n tvAddress.setText(address);\n tvCategory.setText(category);\n tvSize.setText(size + \"m2\");\n tvPrice.setText(\"R\" + price + \".00 pm\");\n getImage();\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}",
"public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }",
"private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }",
"public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}",
"private void freundDetailsAnzeigen() throws Exception {\n Freund foundFriend = eingabeZumSuchen();\n\n System.out.println(\"Name: \" + foundFriend.getName());\n System.out.println(\"Handy: \" + foundFriend.getHandy());\n System.out.println(\"Telefon: \" + foundFriend.getTelefon());\n System.out.println(\"Adresse: \" + foundFriend.getAdresse());\n System.out.println(\"Geburtstag: \" + foundFriend.getGeburtstag());\n System.out.println(\"Schluessel: \" + foundFriend.getSchluessel());\n\n auswahlAnzeigen();\n }",
"public void testAddExistingInfo() {\r\n TAG = \"testAddExistingInfo\";\r\n setUpOpTest();\r\n solo.clickOnActionBarItem(R.id.create_operation);\r\n solo.waitForActivity(OperationEditor.class);\r\n solo.enterText(3, OP_TP);\r\n for (int i = 0; i < OP_AMOUNT.length(); ++i) {\r\n solo.enterText(4, String.valueOf(OP_AMOUNT.charAt(i)));\r\n }\r\n solo.clickOnImageButton(tools.findIndexOfImageButton(R.id.edit_op_third_parties_list));\r\n solo.clickOnButton(solo.getString(R.string.create));\r\n solo.enterText(0, \"Atest\");\r\n solo.clickOnButton(solo.getString(R.string.ok));\r\n solo.waitForView(ListView.class);\r\n assertEquals(1, solo.getCurrentViews(ListView.class).get(0).getCount());\r\n solo.clickOnButton(solo.getString(R.string.create));\r\n solo.enterText(0, \"ATest\");\r\n solo.clickOnButton(solo.getString(R.string.ok));\r\n assertNotNull(solo\r\n .getText(solo.getString(fr.geobert.radis.R.string.item_exists)));\r\n }",
"public void printDetails() {\n PrintFormatter pf = new PrintFormatter();\n\n String first = \"############# Armor Details #############\";\n System.out.println(first);\n pf.formatText(first.length(), \"# Items stats for: \" + name);\n pf.formatText(first.length(), \"# Armor Type: \" + itemsType);\n pf.formatText(first.length(), \"# Slot: \" + slot);\n pf.formatText(first.length(), \"# Armor level: \" + level);\n\n if (baseStats.getHealth() > 0)\n pf.formatText(first.length(), \"# Bonus HP: \" + baseStats.getHealth());\n\n if (baseStats.getStrength() > 0)\n pf.formatText(first.length(), \"# Bonus Str: \" + baseStats.getStrength());\n\n if (baseStats.getDexterity() > 0)\n pf.formatText(first.length(), \"# Bonus Dex: \" + baseStats.getDexterity());\n\n if (baseStats.getIntelligence() > 0)\n pf.formatText(first.length(), \"# Bonus Int: \" + baseStats.getIntelligence());\n\n System.out.println(\"########################################\");\n\n }",
"private void callFormDetailFunctions() {\n ArrayList<Item> items = new ArrayList<>();\n items.addAll(computers);\n items.addAll(printers);\n getBuildingNames(items);\n getBrandNames(items);\n getOSNames(computers);\n setAdapters();\n }",
"public String displayDetails()\n\t{\n\t\tString displayDetail = \"\";\n\t\t \n\t\tdisplayDetail = (\"Make of your System\\t\\t=>\\t\" + make + \n\t\t\t\t\t\t\"\\nModel of your System\\t\\t=>\\t\" + model + \n\t\t\t\t\t\t\"\\nSpeed of your System\\t\\t=>\\t\" + speed + \n\t\t\t\t\t\t\"\\nMemory of your System\\t\\t=>\\t\" + memorySize + \" MB \" +\n\t\t\t\t\t\t\"\\nHard Disk of your System\\t=>\\t\" + hardDiskSize + \" GB \" +\n\t\t\t\t\t\t\"\\nPurchase Cost of your System\\t=>\\t\" + purchaseCost);\n\t\t\n\t\treturn displayDetail;\n\t}",
"@When(\"Hotels Details page has finished loading\")\n public void detailspage_i_am_on_details_page() {\n detailsPage = new HotelsDetailsPage(driver);\n detailsPage.check_page_title();\n }"
] |
[
"0.7599898",
"0.68883145",
"0.6725919",
"0.6667308",
"0.66649634",
"0.6553317",
"0.6536992",
"0.65195316",
"0.65169394",
"0.6485547",
"0.64547074",
"0.6435128",
"0.63850343",
"0.63668",
"0.6361417",
"0.63368106",
"0.63243073",
"0.63117",
"0.63048226",
"0.62958723",
"0.6289926",
"0.6289926",
"0.62880003",
"0.62801766",
"0.6280138",
"0.62742615",
"0.6266823",
"0.62502533",
"0.6223078",
"0.6202537",
"0.6147749",
"0.6121499",
"0.6100649",
"0.60807544",
"0.6080295",
"0.6065952",
"0.60580003",
"0.60580003",
"0.6055991",
"0.60518485",
"0.6043943",
"0.60420954",
"0.60323083",
"0.6027526",
"0.6019305",
"0.60190743",
"0.6009565",
"0.6006582",
"0.5994575",
"0.5993466",
"0.59885275",
"0.5986601",
"0.5980211",
"0.5968262",
"0.5967994",
"0.5967994",
"0.5967994",
"0.5967994",
"0.59492886",
"0.5914711",
"0.5910331",
"0.59070134",
"0.5892795",
"0.5890568",
"0.5883319",
"0.5881526",
"0.58698046",
"0.58686244",
"0.58686244",
"0.5867069",
"0.5863121",
"0.5860137",
"0.5853692",
"0.58337486",
"0.58325267",
"0.5830333",
"0.58287454",
"0.5827265",
"0.58225685",
"0.58168215",
"0.58168215",
"0.5815789",
"0.5814945",
"0.58112603",
"0.58108234",
"0.5795298",
"0.57891506",
"0.5788607",
"0.5782739",
"0.5782739",
"0.5782739",
"0.5780269",
"0.57784724",
"0.5773592",
"0.57654196",
"0.5761618",
"0.57508194",
"0.57502586",
"0.5749202",
"0.5747796",
"0.5747689"
] |
0.0
|
-1
|
Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
private void $$$setupUI$$$() {
createUIComponents();
overCounterForm = new JPanel();
overCounterForm.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(16, 2, new Insets(30, 30, 30, 30), -1, -1));
overCounterForm.setMinimumSize(new Dimension(450, 650));
overCounterForm.setPreferredSize(new Dimension(450, 650));
final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();
overCounterForm.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
medicineicon.setHorizontalAlignment(10);
medicineicon.setText("");
overCounterForm.add(medicineicon, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();
overCounterForm.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();
overCounterForm.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(12, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
final JLabel label1 = new JLabel();
label1.setHorizontalAlignment(10);
label1.setText("Check Over-The-Counter Medication");
overCounterForm.add(label1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();
overCounterForm.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(14, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
prescriptionNameTextField = new JTextField();
prescriptionNameTextField.setHorizontalAlignment(0);
prescriptionNameTextField.setMargin(new Insets(5, 5, 5, 5));
prescriptionNameTextField.setText("Prescription Name");
overCounterForm.add(prescriptionNameTextField, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
enterMedicationDetailsManuallyButton = new JButton();
enterMedicationDetailsManuallyButton.setMargin(new Insets(5, 14, 5, 14));
enterMedicationDetailsManuallyButton.setText("Enter Medication Details Manually");
enterMedicationDetailsManuallyButton.setToolTipText("Brings up a form where you can fill up the details for the over-the-counter medication manually.");
overCounterForm.add(enterMedicationDetailsManuallyButton, new com.intellij.uiDesigner.core.GridConstraints(13, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();
overCounterForm.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();
overCounterForm.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
final JLabel label2 = new JLabel();
label2.setEnabled(false);
label2.setHorizontalAlignment(0);
label2.setHorizontalTextPosition(0);
label2.setText("Please provide the following information:");
overCounterForm.add(label2, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JLabel label3 = new JLabel();
label3.setText("Name of prescription");
overCounterForm.add(label3, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JLabel label4 = new JLabel();
label4.setText("Barcode value");
overCounterForm.add(label4, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
a13DigitsFormattedTextField = new JFormattedTextField();
a13DigitsFormattedTextField.setHorizontalAlignment(0);
a13DigitsFormattedTextField.setMargin(new Insets(5, 5, 5, 5));
a13DigitsFormattedTextField.setText("13 digits");
overCounterForm.add(a13DigitsFormattedTextField, new com.intellij.uiDesigner.core.GridConstraints(8, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
manufacturerNameFormattedTextField = new JFormattedTextField();
manufacturerNameFormattedTextField.setHorizontalAlignment(0);
manufacturerNameFormattedTextField.setMargin(new Insets(5, 5, 5, 5));
manufacturerNameFormattedTextField.setText("Manufacturer Name");
overCounterForm.add(manufacturerNameFormattedTextField, new com.intellij.uiDesigner.core.GridConstraints(9, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
formattedTextField3 = new JFormattedTextField();
formattedTextField3.setMargin(new Insets(5, 5, 5, 5));
overCounterForm.add(formattedTextField3, new com.intellij.uiDesigner.core.GridConstraints(10, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
numberOfTabletsInFormattedTextField = new JFormattedTextField();
numberOfTabletsInFormattedTextField.setHorizontalAlignment(0);
numberOfTabletsInFormattedTextField.setMargin(new Insets(5, 5, 5, 5));
numberOfTabletsInFormattedTextField.setText("Number of tablets in packet");
overCounterForm.add(numberOfTabletsInFormattedTextField, new com.intellij.uiDesigner.core.GridConstraints(11, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
final JLabel label5 = new JLabel();
label5.setText("Name of manufacturer");
overCounterForm.add(label5, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JLabel label6 = new JLabel();
label6.setText("Prescription strength");
overCounterForm.add(label6, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JLabel label7 = new JLabel();
label7.setText("Tablets in packet");
overCounterForm.add(label7, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
cancelButton = new JButton();
cancelButton.setMargin(new Insets(5, 14, 5, 14));
cancelButton.setText("Cancel");
overCounterForm.add(cancelButton, new com.intellij.uiDesigner.core.GridConstraints(15, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"@Override\n public void initGUI() {\n\n }",
"private void $$$setupUI$$$() {\n ST = new JPanel();\n ST.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 7, new Insets(0, 0, 0, 0), -1, -1));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 6, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n ST.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 7, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(4, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n okButton = new JButton();\n okButton.setText(\"Ok\");\n ST.add(okButton, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n SP = new JScrollPane();\n ST.add(SP, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 2, 5, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n list1 = new JList();\n SP.setViewportView(list1);\n TriaDiff = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Tria una dificultat...\");\n defaultComboBoxModel1.addElement(\"Fàcil\");\n defaultComboBoxModel1.addElement(\"Mitjà\");\n defaultComboBoxModel1.addElement(\"Dificil\");\n TriaDiff.setModel(defaultComboBoxModel1);\n ST.add(TriaDiff, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@Override\n public void initGui()\n {\n super.initGui();\n }",
"@Override\r\n\tprotected void initUI() {\n\r\n\t}",
"private void $$$setupUI$$$() {\n RG = new JPanel();\n RG.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 6, new Insets(0, 0, 0, 0), -1, -1));\n RG.setOpaque(true);\n RG.setPreferredSize(new Dimension(348, 136));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n RG.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Nombre d'usuaris registrats:\");\n RG.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Nombre de partides jugades totals:\");\n RG.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Jocs = new JLabel();\n Jocs.setText(\"Label\");\n RG.add(Jocs, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Eljoc = new JLabel();\n Eljoc.setText(\"Label\");\n RG.add(Eljoc, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Partides = new JLabel();\n Partides.setText(\"Label\");\n RG.add(Partides, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Usuaris = new JLabel();\n Usuaris.setText(\"Label\");\n RG.add(Usuaris, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Joc més popular:\");\n RG.add(label3, new com.intellij.uiDesigner.core.GridConstraints(3, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Nombre de jocs totals:\");\n RG.add(label4, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(2, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer7 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer7, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer8 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer8, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer9 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer9, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer10 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer10, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer11 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer11, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer12 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer12, new com.intellij.uiDesigner.core.GridConstraints(2, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer13 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer13, new com.intellij.uiDesigner.core.GridConstraints(1, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer14 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer14, new com.intellij.uiDesigner.core.GridConstraints(0, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer15 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer15, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer16 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer16, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer17 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer17, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer18 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer18, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer19 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer19, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 6, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n linea = new JPanel();\n linea.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n addLineaButton = new JButton();\n addLineaButton.setText(\"addLinea\");\n linea.add(addLineaButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numLinea = new JTextField();\n linea.add(numLinea, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"@Override\r\n public void updateUI() {\r\n }",
"public void designerInputModified(DesignerEvent e);",
"protected void setupUI() {\n\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(14, 6, new Insets(0, 0, 0, 0), -1, -1));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(20, -1), null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"EUID\");\n mainPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n EUIDText = new JLabel();\n EUIDText.setText(\"Label\");\n mainPanel.add(EUIDText, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"x-coordinate\");\n mainPanel.add(label2, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n xPosSpinner = new JSpinner();\n mainPanel.add(xPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n longitudeLabel = new JLabel();\n longitudeLabel.setText(\"Label\");\n mainPanel.add(longitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"y-coordinate\");\n mainPanel.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n yPosSpinner = new JSpinner();\n mainPanel.add(yPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(4, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n latitudeLabel = new JLabel();\n latitudeLabel.setText(\"Label\");\n mainPanel.add(latitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n powerSpinner = new JSpinner();\n mainPanel.add(powerSpinner, new com.intellij.uiDesigner.core.GridConstraints(5, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Powersetting\");\n mainPanel.add(label4, new com.intellij.uiDesigner.core.GridConstraints(5, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Spreading factor\");\n mainPanel.add(label5, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n SFSpinner = new JSpinner();\n mainPanel.add(SFSpinner, new com.intellij.uiDesigner.core.GridConstraints(6, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n TPThresholdText = new JLabel();\n TPThresholdText.setText(\"Label\");\n mainPanel.add(TPThresholdText, new com.intellij.uiDesigner.core.GridConstraints(7, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Transmission power threshold\");\n mainPanel.add(label6, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n mainPanel.add(saveButton, new com.intellij.uiDesigner.core.GridConstraints(12, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(13, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(-1, 20), null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Mote \");\n mainPanel.add(label7, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n moteNumberLabel = new JLabel();\n moteNumberLabel.setText(\"Label\");\n mainPanel.add(moteNumberLabel, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label8 = new JLabel();\n label8.setText(\"Sensors:\");\n mainPanel.add(label8, new com.intellij.uiDesigner.core.GridConstraints(10, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n addButton = new JButton();\n addButton.setText(\"Add\");\n mainPanel.add(addButton, new com.intellij.uiDesigner.core.GridConstraints(10, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sensorSpinner = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n sensorSpinner.setModel(defaultComboBoxModel1);\n mainPanel.add(sensorSpinner, new com.intellij.uiDesigner.core.GridConstraints(10, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label9 = new JLabel();\n label9.setText(\"Sampling rate\");\n mainPanel.add(label9, new com.intellij.uiDesigner.core.GridConstraints(8, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label10 = new JLabel();\n label10.setText(\"Movement speed\");\n mainPanel.add(label10, new com.intellij.uiDesigner.core.GridConstraints(9, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n samplingSpinner = new JSpinner();\n mainPanel.add(samplingSpinner, new com.intellij.uiDesigner.core.GridConstraints(8, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n movementSpinner = new JSpinner();\n mainPanel.add(movementSpinner, new com.intellij.uiDesigner.core.GridConstraints(9, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label11 = new JLabel();\n label11.setText(\"m/s\");\n mainPanel.add(label11, new com.intellij.uiDesigner.core.GridConstraints(9, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label12 = new JLabel();\n label12.setText(\"m\");\n mainPanel.add(label12, new com.intellij.uiDesigner.core.GridConstraints(8, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n scrollPane1.setHorizontalScrollBarPolicy(31);\n mainPanel.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(11, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, new Dimension(-1, 90), 0, false));\n sensorList = new JList();\n scrollPane1.setViewportView(sensorList);\n }",
"public static void designTextEditor() {\n\t\t\n\t}",
"private void $$$setupUI$$$() {\n zakupioneBiletyFrame = new JPanel();\n zakupioneBiletyFrame.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n zakupioneLabel = new JLabel();\n zakupioneLabel.setText(\"Zakupione Bilety\");\n zakupioneBiletyFrame.add(zakupioneLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n zakupioneBiletyTable = new JTable();\n zakupioneBiletyTable.setAutoCreateRowSorter(false);\n zakupioneBiletyTable.setAutoResizeMode(4);\n zakupioneBiletyFrame.add(zakupioneBiletyTable, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n scroll1 = new JScrollPane();\n zakupioneBiletyFrame.add(scroll1, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(13, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Connection re-express probability when crossed.\");\n contentPane.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n contentPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(12, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n contentPane.add(connectionReexpressSlider, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Mutation probability when crossed.\");\n contentPane.add(label2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPane.add(mutationWhenCrossedSlider, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Diff excess gene count factor.\");\n contentPane.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(195, 22), null, 0, false));\n diffExcessFactorField = new FloatTextField();\n contentPane.add(diffExcessFactorField, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Diff disjoint gene count factor.\");\n contentPane.add(label4, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffDisjointFactorField = new FloatTextField();\n contentPane.add(diffDisjointFactorField, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Diff weight factor.\");\n contentPane.add(label5, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffWeightFactorField = new FloatTextField();\n contentPane.add(diffWeightFactorField, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Diff normalize gene count threshold.\");\n contentPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffNormalizeThresholdField = new IntTextField();\n contentPane.add(diffNormalizeThresholdField, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1184275));\n panel1.setForeground(new Color(-4473925));\n mainPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setBackground(new Color(-12828863));\n Font label1Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-12828863));\n label1.setText(\"Scheduler\");\n panel1.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Select the Type of Scheduler \");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dropDown = new JComboBox();\n Font dropDownFont = this.$$$getFont$$$(\"Georgia\", -1, 14, dropDown.getFont());\n if (dropDownFont != null) dropDown.setFont(dropDownFont);\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Shortest Remaining Process Time\");\n defaultComboBoxModel1.addElement(\"Earliest Deadline First\");\n defaultComboBoxModel1.addElement(\"Deadline Monotonic\");\n dropDown.setModel(defaultComboBoxModel1);\n panel1.add(dropDown, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Current Task\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentField = new JTextField();\n currentField.setBackground(new Color(-3873281));\n currentField.setEditable(false);\n Font currentFieldFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, currentField.getFont());\n if (currentFieldFont != null) currentField.setFont(currentFieldFont);\n panel1.add(currentField, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Current Task Progress \");\n panel2.add(label4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n progressBar1 = new JProgressBar();\n panel2.add(progressBar1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskList = new JList();\n taskList.setBackground(new Color(-5186305));\n Font taskListFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskList.getFont());\n if (taskListFont != null) taskList.setFont(taskListFont);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n taskList.setModel(defaultListModel1);\n taskList.setSelectionBackground(new Color(-13220097));\n taskList.setSelectionForeground(new Color(-1));\n taskList.setSelectionMode(0);\n panel2.add(taskList, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n tickButton = new JButton();\n Font tickButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, tickButton.getFont());\n if (tickButtonFont != null) tickButton.setFont(tickButtonFont);\n tickButton.setText(\"Tick\");\n panel2.add(tickButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n switchButton = new JButton();\n Font switchButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, switchButton.getFont());\n if (switchButtonFont != null) switchButton.setFont(switchButtonFont);\n switchButton.setText(\"Switch\");\n panel2.add(switchButton, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n delButton = new JButton();\n Font delButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, delButton.getFont());\n if (delButtonFont != null) delButton.setFont(delButtonFont);\n delButton.setText(\"Delete\");\n panel2.add(delButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(8, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setText(\"Add New Tasks\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Task\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskName = new JTextField();\n Font taskNameFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskName.getFont());\n if (taskNameFont != null) taskName.setFont(taskNameFont);\n panel3.add(taskName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n Font label7Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label7.getFont());\n if (label7Font != null) label7.setFont(label7Font);\n label7.setText(\"Estimated Completion Time (hours) \");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n RemTime = new JTextField();\n Font RemTimeFont = this.$$$getFont$$$(\"Georgia\", -1, 14, RemTime.getFont());\n if (RemTimeFont != null) RemTime.setFont(RemTimeFont);\n panel3.add(RemTime, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n Font label8Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label8.getFont());\n if (label8Font != null) label8.setFont(label8Font);\n label8.setText(\"Time Till Task is Due (hours)\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n relDeadline = new JTextField();\n Font relDeadlineFont = this.$$$getFont$$$(\"Georgia\", -1, 14, relDeadline.getFont());\n if (relDeadlineFont != null) relDeadline.setFont(relDeadlineFont);\n panel3.add(relDeadline, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n saveNewButton = new JButton();\n Font saveNewButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveNewButton.getFont());\n if (saveNewButtonFont != null) saveNewButton.setFont(saveNewButtonFont);\n saveNewButton.setText(\"Save New\");\n panel3.add(saveNewButton, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveExistingButton = new JButton();\n Font saveExistingButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveExistingButton.getFont());\n if (saveExistingButtonFont != null) saveExistingButton.setFont(saveExistingButtonFont);\n saveExistingButton.setText(\"Save Existing\");\n panel3.add(saveExistingButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n Font clearButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, clearButton.getFont());\n if (clearButtonFont != null) clearButton.setFont(clearButtonFont);\n clearButton.setText(\"Clear Form\");\n panel3.add(clearButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n panel1.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n contentPane.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), 5, 5));\n scrollPane1.setViewportView(panel3);\n final JLabel label1 = new JLabel();\n label1.setFont(new Font(label1.getFont().getName(), Font.BOLD, label1.getFont().getSize()));\n label1.setText(\"mlocarna:\");\n panel3.add(label1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setBackground(new Color(-65485));\n label2.setFont(new Font(label2.getFont().getName(), Font.BOLD, label2.getFont().getSize()));\n label2.setOpaque(false);\n label2.setText(\"RNAsubopt:\");\n panel3.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n random_sample = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"5\");\n defaultComboBoxModel1.addElement(\"10\");\n defaultComboBoxModel1.addElement(\"15\");\n defaultComboBoxModel1.addElement(\"20\");\n random_sample.setModel(defaultComboBoxModel1);\n panel3.add(random_sample, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n useMlocarna = new JCheckBox();\n useMlocarna.setSelected(true);\n useMlocarna.setText(\"\");\n panel3.add(useMlocarna, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"suboptimal structures computed\");\n panel3.add(label3, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"use to compute the folding landscape \");\n panel3.add(label4, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"@Override\n protected void windowInit ()\n {\n }",
"private void initUI() {\r\n\t\tthis.form = new XdevGridLayout();\r\n\t\tthis.comboBoxState = new XdevComboBox<>();\r\n\t\tthis.lblSbxValidFrom = new XdevLabel();\r\n\t\tthis.dateSbxValidFrom = new XdevPopupDateField();\r\n\t\tthis.lblSbxAgeStartYear = new XdevLabel();\r\n\t\tthis.txtSbxAgeStartYear = new XdevTextField();\r\n\t\tthis.lblSbxCompany = new XdevLabel();\r\n\t\tthis.txtSbxCompany = new XdevTextField();\r\n\t\tthis.lblSbxWorker = new XdevLabel();\r\n\t\tthis.txtSbxWorker = new XdevTextField();\r\n\t\tthis.lblSbxState = new XdevLabel();\r\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\r\n\t\tthis.cmdSave = new XdevButton();\r\n\t\tthis.cmdClose = new XdevButton();\r\n\t\tthis.fieldGroup = new XdevFieldGroup<>(SalaryBvgBaseLine.class);\r\n\t\r\n\t\tthis.lblSbxValidFrom.setValue(\"Gültig ab\");\r\n\t\tthis.dateSbxValidFrom.setTabIndex(2);\r\n\t\tthis.lblSbxAgeStartYear.setValue(\"Alter ab\");\r\n\t\tthis.txtSbxAgeStartYear.setTabIndex(3);\r\n\t\tthis.lblSbxCompany.setValue(\"Arbeitgeber %\");\r\n\t\tthis.txtSbxCompany.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxCompany.setTabIndex(4);\r\n\t\tthis.lblSbxWorker.setValue(\"Arbeitnehmer %\");\r\n\t\tthis.txtSbxWorker.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxWorker.setTabIndex(5);\r\n\t\tthis.lblSbxState.setValue(\"Status\");\r\n\t\tthis.horizontalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.cmdSave.setIcon(FontAwesome.SAVE);\r\n\t\tthis.cmdSave.setCaption(\"Speichern\");\r\n\t\tthis.cmdSave.setTabIndex(8);\r\n\t\tthis.cmdSave.setClickShortcut(ShortcutAction.KeyCode.ENTER);\r\n\t\tthis.cmdClose.setIcon(FontAwesome.CLOSE);\r\n\t\tthis.cmdClose.setCaption(\"Schliessen\");\r\n\t\tthis.cmdClose.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);\r\n\t\tthis.fieldGroup.bind(this.dateSbxValidFrom, SalaryBvgBaseLine_.sbxValidFrom.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxAgeStartYear, SalaryBvgBaseLine_.sbxAgeStartYear.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxCompany, SalaryBvgBaseLine_.sbxCompany.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxWorker, SalaryBvgBaseLine_.sbxWorker.getName());\r\n\t\tthis.fieldGroup.bind(this.comboBoxState, SalaryBvgBaseLine_.sbxState.getName());\r\n\t\r\n\t\tthis.cmdSave.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdSave);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdSave, Alignment.MIDDLE_LEFT);\r\n\t\tthis.cmdClose.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdClose);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdClose, Alignment.MIDDLE_LEFT);\r\n\t\tthis.form.setColumns(2);\r\n\t\tthis.form.setRows(7);\r\n\t\tthis.comboBoxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.comboBoxState, 1, 4);\r\n\t\tthis.lblSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxValidFrom, 0, 0);\r\n\t\tthis.dateSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.dateSbxValidFrom, 1, 0);\r\n\t\tthis.lblSbxAgeStartYear.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxAgeStartYear, 0, 1);\r\n\t\tthis.txtSbxAgeStartYear.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxAgeStartYear.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxAgeStartYear, 1, 1);\r\n\t\tthis.lblSbxCompany.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxCompany, 0, 2);\r\n\t\tthis.txtSbxCompany.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxCompany.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxCompany, 1, 2);\r\n\t\tthis.lblSbxWorker.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxWorker, 0, 3);\r\n\t\tthis.txtSbxWorker.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxWorker.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxWorker, 1, 3);\r\n\t\tthis.lblSbxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxState, 0, 4);\r\n\t\tthis.horizontalLayout.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.horizontalLayout, 0, 5, 1, 5);\r\n\t\tthis.form.setComponentAlignment(this.horizontalLayout, Alignment.TOP_CENTER);\r\n\t\tthis.form.setColumnExpandRatio(1, 100.0F);\r\n\t\tfinal CustomComponent form_vSpacer = new CustomComponent();\r\n\t\tform_vSpacer.setSizeFull();\r\n\t\tthis.form.addComponent(form_vSpacer, 0, 6, 1, 6);\r\n\t\tthis.form.setRowExpandRatio(6, 1.0F);\r\n\t\tthis.form.setSizeFull();\r\n\t\tthis.setContent(this.form);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.cmdSave.addClickListener(event -> this.cmdSave_buttonClick(event));\r\n\t\tthis.cmdClose.addClickListener(event -> this.cmdClose_buttonClick(event));\r\n\t}",
"private void designBtnActionPerformed(ActionEvent evt) {\n }",
"public guiProntuarioVirtual() {\n initComponents();\n \n }",
"public void buildGui() {\n\t}",
"public void designerAdded(DesignerEvent e);",
"private void $$$setupUI$$$() {\n createUIComponents();\n wrapperPanel = new JPanel();\n wrapperPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n wrapperPanel.setMinimumSize(new Dimension(640, 480));\n wrapperPanel.setPreferredSize(new Dimension(800, 600));\n boringPanel = new JPanel();\n boringPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n boringPanel.setInheritsPopupMenu(false);\n boringPanel.setMaximumSize(new Dimension(200, 2147483647));\n boringPanel.setMinimumSize(new Dimension(100, 174));\n boringPanel.setOpaque(false);\n boringPanel.setPreferredSize(new Dimension(150, 228));\n boringPanel.setRequestFocusEnabled(true);\n wrapperPanel.add(boringPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(100, -1), new Dimension(150, -1), new Dimension(200, -1), 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n boringPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n captionLabel = new JLabel();\n captionLabel.setText(\"Label\");\n boringPanel.add(captionLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numberOfLayersCaptionLabel = new JLabel();\n numberOfLayersCaptionLabel.setText(\"Label\");\n boringPanel.add(numberOfLayersCaptionLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(82, 14), null, 0, false));\n numberOfLayersLabel = new JLabel();\n numberOfLayersLabel.setText(\"\");\n boringPanel.add(numberOfLayersLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n matrixTextArea = new JTextArea();\n boringPanel.add(matrixTextArea, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(82, 50), null, 0, false));\n commitButton = new JButton();\n commitButton.setText(\"Button\");\n boringPanel.add(commitButton, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n graphPanel.setBackground(new Color(-1));\n graphPanel.setMinimumSize(new Dimension(530, 24));\n graphPanel.setOpaque(true);\n wrapperPanel.add(graphPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JToolBar toolBar1 = new JToolBar();\n toolBar1.setFloatable(false);\n wrapperPanel.add(toolBar1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));\n loadButton = new JButton();\n loadButton.setText(\"Button\");\n toolBar1.add(loadButton);\n }",
"private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}",
"private InstructGui() {\n }",
"public hesapekrani() {\n initComponents();\n getedits();\n \n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }",
"private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(11, 3, new Insets(0, 0, 0, 0), -1, -1));\n bKillSession = new JButton();\n bKillSession.setText(\"Убить сессии\");\n rootPanel.add(bKillSession, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bGetAll = new JButton();\n bGetAll.setText(\"Получить график\");\n rootPanel.add(bGetAll, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStartBS = new JButton();\n bStartBS.setText(\"Старт БС\");\n rootPanel.add(bStartBS, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bSetFreq = new JButton();\n bSetFreq.setText(\"Установить частоту\");\n rootPanel.add(bSetFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n tfFreq = new JTextField();\n rootPanel.add(tfFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n cbDefaultBS = new JCheckBox();\n cbDefaultBS.setSelected(true);\n cbDefaultBS.setText(\"Использовать БС из конфига\");\n rootPanel.add(cbDefaultBS, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(7, 2, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n cbListMethods = new JComboBox();\n rootPanel.add(cbListMethods, new com.intellij.uiDesigner.core.GridConstraints(5, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Запускаемый метод:\");\n rootPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n lblParams = new JLabel();\n lblParams.setText(\"Label\");\n rootPanel.add(lblParams, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n bPause = new JButton();\n bPause.setText(\"Пауза\");\n panel1.add(bPause, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStart = new JButton();\n bStart.setText(\"Старт\");\n panel1.add(bStart, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n rootPanel.add(separator1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"public GUI_Edit_Tour(){\n init();\n }",
"private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));\n btnPanel = new JPanel();\n btnPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(btnPanel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n btnPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n btnPanel2 = new JPanel();\n btnPanel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n btnPanel.add(btnPanel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n btnPanel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(contentPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n content = new JTextArea();\n content.setBackground(new Color(-1118482));\n content.setEditable(false);\n contentPanel.add(content, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n title = new JLabel();\n Font titleFont = this.$$$getFont$$$(null, -1, 20, title.getFont());\n if (titleFont != null) title.setFont(titleFont);\n title.setText(\"Invalid Number of Players\");\n contentPane.add(title, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private static void initAndShowGUI() {\n }",
"private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }",
"@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}",
"public DatabaseGUI() {\n initComponents();\n refreshDatabaseTables();\n\n }",
"public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }",
"private void initUI() {\n }",
"public VisualizarLlamada() {\n initComponents();\n }",
"public CuacaGUI() throws ClassNotFoundException, SQLException {\n initComponents();\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"public void designerStateModified(DesignerEvent e);",
"@Override\n\tpublic void serializeUI() {\n\t\t\n\t}",
"public EditorBarajasGUI() {\n\t\t//dibujamos el cursor\n\t\tImageIcon cursor = new ImageIcon(\"../imagenes/cursores/puntero.gif\");\n\t\tImage image = cursor.getImage();\n\t\tCursor puntero = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), \"img\");\n\t\tthis.setCursor(puntero);\n\n\t\ttry {\n\t\t\tjbInit();\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n table1.setAutoscrolls(true);\n table1.setColumnSelectionAllowed(false);\n scrollPane1.setViewportView(table1);\n }",
"private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"public quotaGUI() {\n initComponents();\n }",
"public FinishedGoodMaster_old () {\n initComponents ();\n \n jTextField1.setNextFocusableComponent ( jTextField3 );\n jTextField3.setNextFocusableComponent ( jTextField2 );\n jTextField2.setNextFocusableComponent ( jComboBox1 );\n jComboBox1.setNextFocusableComponent ( jTextField4 );\n }",
"@Override\n public void setupPanel()\n {\n\n }",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 2, new Insets(10, 10, 10, 10), -1, -1));\n contentPane.setBackground(new Color(-16316665));\n contentPane.setMinimumSize(new Dimension(450, 500));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), 0, 0));\n panel1.setAlignmentY(0.0f);\n panel1.setAutoscrolls(true);\n panel1.setBackground(new Color(-16316665));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 4, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_NORTH, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n stopButton = new JButton();\n stopButton.setBackground(new Color(-16316665));\n stopButton.setForeground(new Color(-1041));\n stopButton.setText(\"Stop\");\n panel1.add(stopButton, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n pauseButton = new JButton();\n pauseButton.setBackground(new Color(-16316665));\n pauseButton.setForeground(new Color(-1041));\n pauseButton.setText(\"Pause\");\n panel1.add(pauseButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n startButton = new JButton();\n startButton.setBackground(new Color(-16316665));\n startButton.setForeground(new Color(-1041));\n startButton.setText(\"Start\");\n panel1.add(startButton, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textArea1 = new JTextArea();\n textArea1.setBackground(new Color(-16316665));\n textArea1.setDisabledTextColor(new Color(-1041));\n textArea1.setEditable(false);\n textArea1.setForeground(new Color(-1041));\n panel1.add(textArea1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n board = new JPanel();\n board.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n board.setBackground(new Color(-16316665));\n contentPane.add(board, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n board.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-1041)), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, new Color(-16777216)));\n textArea2 = new JTextArea();\n textArea2.setBackground(new Color(-16316665));\n textArea2.setFont(new Font(textArea2.getFont().getName(), textArea2.getFont().getStyle(), 22));\n board.add(textArea2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n }",
"public ModifyProductFrame() {\n initComponents();\n setIcon();\n }",
"private void editLibraries() {\n\t\tJOptionPane.showMessageDialog(this, \"No implemented yet!\");\n\t}",
"public PropsGUI() {\n initComponents();\n }",
"public Visualize() {\n initComponents();\n \n }",
"public JFrame_05_Mayor_De_10() {\n initComponents();\n \n }",
"public orgGui() {\n initComponents();\n }",
"private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public Modify() {\n initComponents();\n }",
"private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"private void actionComboboxChangedSample ()\r\n\t{\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\thelperDisplaySampleLocation();\r\n\t\t\thelperDisplayResults();\r\n\t\t}\r\n\t}",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setOpaque(true);\n panel1.setPreferredSize(new Dimension(980, 660));\n LeftPane = new JPanel();\n LeftPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(LeftPane, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n LeftPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-4473925)), null));\n Stats = new JPanel();\n Stats.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n LeftPane.add(Stats, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setText(\"Player:\");\n Stats.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Highscore:\");\n Stats.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n highScore = new JTextField();\n highScore.setEditable(false);\n highScore.setHorizontalAlignment(0);\n Stats.add(highScore, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n playerName = new JTextField();\n playerName.setEditable(false);\n playerName.setHorizontalAlignment(0);\n playerName.setText(\"\");\n Stats.add(playerName, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Level:\");\n Stats.add(label3, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n levelId = new JTextField();\n levelId.setEditable(false);\n levelId.setHorizontalAlignment(0);\n Stats.add(levelId, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Time:\");\n Stats.add(label4, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n timeLeft = new JTextField();\n timeLeft.setEditable(false);\n timeLeft.setEnabled(true);\n timeLeft.setFocusable(true);\n timeLeft.setHorizontalAlignment(0);\n timeLeft.setOpaque(true);\n Stats.add(timeLeft, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setHorizontalAlignment(10);\n label5.setText(\"Score:\");\n Stats.add(label5, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n scoreField = new JTextField();\n scoreField.setEditable(false);\n scoreField.setHorizontalAlignment(0);\n Stats.add(scoreField, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Stencil\", -1, 18, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Molecule:\");\n LeftPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n moleculeName = new JTextField();\n moleculeName.setEditable(false);\n moleculeName.setFocusable(true);\n Font moleculeNameFont = this.$$$getFont$$$(\"Stencil\", -1, 18, moleculeName.getFont());\n if (moleculeNameFont != null) moleculeName.setFont(moleculeNameFont);\n moleculeName.setHorizontalAlignment(0);\n moleculeName.setOpaque(true);\n moleculeName.setRequestFocusEnabled(true);\n moleculeName.setText(\"\");\n moleculeName.setVisible(true);\n moleculeName.putClientProperty(\"caretWidth\", new Integer(0));\n LeftPane.add(moleculeName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n molPane = new JPanel();\n molPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n LeftPane.add(molPane, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n molPane.add(moleculePanel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(160, 96), null, null, 0, false));\n RightPane = new JPanel();\n RightPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(RightPane, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RightPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RightPane.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n gamePane = new JPanel();\n gamePane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n RightPane.add(gamePane, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(640, 600), null, new Dimension(800, 640), 0, false));\n gamePane.add(gamePanel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(640, 609), null, new Dimension(980, 680), 0, false));\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }",
"@Override\n public void componentShown(ComponentEvent e) {\n\n }",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void JTextField(String string) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }",
"public soal2GUI() {\n initComponents();\n }",
"public abstract String getManipulatorButtonLabel();",
"private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }",
"private void setupGUI()\n\t{\n\t\t//initializes labelNumberOfASCII and adds to frame \n\t\tlabelNumberOfASCII = new JLabel();\n\t\tlabelNumberOfASCII.setLocation(12, 8);\n\t\tlabelNumberOfASCII.setSize(191,26);\n\t\tlabelNumberOfASCII.setText(\"Number of ASCII characters used\");\n\t\tgetContentPane().add(labelNumberOfASCII);\n\t\t\n\t\t//initialized comboCharSet and adds to frame\n\t\tString comboCharSet_tmp[]={\"Small\", \"Medium\", \"Large\"};\n\t\tcomboCharSet = new JComboBox<String>(comboCharSet_tmp);\n\t\tcomboCharSet.setLocation(294, 12);\n\t\tcomboCharSet.setSize(96, 25);\n\t\tcomboCharSet.setEditable(true);\n\t\tcomboCharSet.addActionListener(this);\n\t\tgetContentPane().add(comboCharSet);\n\n\t\t//initializes labelNumberofPixels and adds to frame\n\t\tlabelNumberOfPixels = new JLabel();\n\t\tlabelNumberOfPixels.setLocation(12,28);\n\t\tlabelNumberOfPixels.setSize(240,51);\n\t\tlabelNumberOfPixels.setText(\"Number of pixels per ASCII character: \");\n\t\tgetContentPane().add(labelNumberOfPixels);\n\t\t\n\t\t//initializes comboNumberOfPixels and adds to frame\n\t\tString comboNumberOfPixels_tmp[]={\"1\",\"3\",\"5\",\"7\",\"10\"};\n\t\tcomboNumberOfPixels = new JComboBox<String>(comboNumberOfPixels_tmp);\n\t\tcomboNumberOfPixels.setLocation(294,40);\n\t\tcomboNumberOfPixels.setSize(96,25);\n\t\tcomboNumberOfPixels.setEditable(true);\n\t\tcomboNumberOfPixels.addActionListener(this);\n\t\tgetContentPane().add(comboNumberOfPixels);\n\n\t\t//initializes outputPathLabel and adds to frame\n\t\toutputPathLabel = new JLabel();\n\t\toutputPathLabel.setLocation(12, 55);\n\t\toutputPathLabel.setText(\"Output folder:\");\n\t\toutputPathLabel.setSize(218, 51);\n\t\toutputPathLabel.setVisible(true);\n\t\tgetContentPane().add(outputPathLabel);\n\n\t\t//initializes outputPathTextField and adds to frame\n\t\toutputPathTextField = new JTextField();\n\t\tString initPath;\n\t\t//sets default output to default directory, created in Main.java. looks according to operating system.\n\t\tif (OSUtils.isUnixOrLinux())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"/.picture-to-ascii/output\";\n\t\telse if (OSUtils.isWindows())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"\\\\My Documents\\\\picture-to-ascii\\\\output\";\n\t\telse\n\t\t\tinitPath = \"(output path)\";\n\t\t//if the directory failed to create for reasons other than incompatible OS, we want (output path).\n\t\tif (!new File(initPath).isDirectory())\n\t\t\tinitPath = \"(output path)\";\n\n\t\toutputPathTextField.setLocation(150, 70);\n\t\toutputPathTextField.setSize(240,25);\n\t\toutputPathTextField.setText(initPath);\n\t\tgetContentPane().add(outputPathTextField);\n\n\t\tfontSizeTextField = new JTextField();\n\t\tfontSizeTextField.setLocation(150, 100);\n\t\tfontSizeTextField.setSize(240,25);\n\t\tfontSizeTextField.setText(\"5\");\n\t\tgetContentPane().add(fontSizeTextField);\n\n\t\tfontSizeLabel = new JLabel();\n\t\tfontSizeLabel.setText(\"Font size:\");\n\t\tfontSizeLabel.setSize(125, 51);\n\t\tfontSizeLabel.setLocation(12, 85);\n\t\tfontSizeLabel.setVisible(true);\n\t\tgetContentPane().add(fontSizeLabel);\n\t}",
"public Designer() {\n initComponents();\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n }",
"public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }",
"public static void OptionsComponents() {\n\t\tInterface.controls.setPreferredSize(Interface.dim);\n\t\tInterface.controls.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setForeground(Color.white);\n\t\t\n\t\tInterface.controls2.setPreferredSize(Interface.dim);\n\t\tInterface.controls2.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls2.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.sound.setPreferredSize(Interface.dim);\n\t\tInterface.sound.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.sound.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOn.setPreferredSize(Interface.dim);\n\t\tInterface.soundOn.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOn.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOff.setPreferredSize(Interface.dim);\n\t\tInterface.soundOff.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOff.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomain.setPreferredSize(Interface.dim);\n\t\tInterface.backtomain.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomain.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.save.setPreferredSize(Interface.dim);\n\t\tInterface.save.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.save.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.save.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.save.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtooptions.setPreferredSize(Interface.dim);\n\t\tInterface.backtooptions.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtooptions.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.player1.setForeground(Color.white);\n\t\tInterface.player2.setForeground(Color.white);\n\t\tInterface.up1.setForeground(Color.white);\n\t\tInterface.up2.setForeground(Color.white);\n\t\tInterface.down1.setForeground(Color.white);\n\t\tInterface.down2.setForeground(Color.white);\n\t\tInterface.right1.setForeground(Color.white);\n\t\tInterface.right2.setForeground(Color.white);\n\t\tInterface.left1.setForeground(Color.white);\n\t\tInterface.left2.setForeground(Color.white);\n\t\tInterface.bomb1.setForeground(Color.white);\n\t\tInterface.bomb2.setForeground(Color.white);\n\t\tInterface.boxNumber.setForeground(Color.white);\n\t\tInterface.getUp1.setEditable(false);\n\t\tInterface.getUp2.setEditable(false);\n\t\tInterface.getDown1.setEditable(false);\n\t\tInterface.getDown2.setEditable(false);\n\t\tInterface.getRight1.setEditable(false);\n\t\tInterface.getRight2.setEditable(false);\n\t\tInterface.getLeft1.setEditable(false);\n\t\tInterface.getLeft2.setEditable(false);\n\t\tInterface.getBomb1.setEditable(false);\n\t\tInterface.getBomb2.setEditable(false);\n\t}",
"public void iniciaGUISesion() {\n\t\ttabbed.removeTabAt(1);\n\t\ttabbed.removeTabAt(1);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, getPanelControl(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, getPanelEventos(), \"Control de los eventos\", 2);\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}"
] |
[
"0.6945452",
"0.6945452",
"0.6776231",
"0.6601092",
"0.65425783",
"0.6493928",
"0.64546704",
"0.6454461",
"0.6437399",
"0.6408297",
"0.63614184",
"0.63257545",
"0.62919855",
"0.628411",
"0.62810224",
"0.62511367",
"0.62081164",
"0.6168259",
"0.6136767",
"0.6136767",
"0.6136767",
"0.6133155",
"0.6130871",
"0.60819894",
"0.60717314",
"0.6064755",
"0.6061085",
"0.60569197",
"0.6056362",
"0.60414225",
"0.6026472",
"0.60183954",
"0.6004734",
"0.59973997",
"0.59820944",
"0.59816635",
"0.59814215",
"0.5972185",
"0.59700507",
"0.5964057",
"0.5962648",
"0.5958284",
"0.5957682",
"0.5952093",
"0.5932513",
"0.5912351",
"0.59022206",
"0.58977646",
"0.58956194",
"0.58921534",
"0.58921534",
"0.58921534",
"0.58884746",
"0.58880144",
"0.58878773",
"0.5884515",
"0.5883757",
"0.58741146",
"0.5873442",
"0.5861636",
"0.5855791",
"0.5851974",
"0.58508176",
"0.58494085",
"0.58486843",
"0.5838848",
"0.5819938",
"0.5819272",
"0.58182234",
"0.5816917",
"0.58166504",
"0.5815382",
"0.58112395",
"0.58043486",
"0.5801125",
"0.5800549",
"0.5794118",
"0.57865405",
"0.5786321",
"0.5786321",
"0.5785942",
"0.57831514",
"0.5781601",
"0.57797897",
"0.5778648",
"0.5777931",
"0.5777865",
"0.57778376",
"0.57671094",
"0.5764306",
"0.5764306",
"0.5764306",
"0.5764306",
"0.57619977",
"0.5761544",
"0.57574666",
"0.5756795",
"0.5755303",
"0.5755303",
"0.5751967"
] |
0.61444783
|
18
|
TODO Autogenerated method stub
|
public static void main(String[] args) {
int[] a={9,7,6,4,5,6,2,4,1,5,6,9,7,8};
System.out.println("排序前的数组如下:"+Arrays.toString(a));
int temp;
for(int i=1;i<a.length;i++){
temp=a[i];
int j=i-1;
while(j>=0&&a[j]>temp){
a[j+1]=a[j];
--j;
}
a[j+1]=temp;
}
System.out.println("排序后的数组如下"+Arrays.toString(a));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
Creates new form ZobrazUdalost
|
public ZobrazUdalost() {
initComponents();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}",
"@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }",
"public frm_tutor_subida_prueba() {\n }",
"public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public ViewUsluga() {\n initComponents();\n obrada = new ObradaUsluga();\n postInitComponents(); \n }",
"FORM createFORM();",
"@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}",
"Compuesta createCompuesta();",
"public FormInserir() {\n initComponents();\n }",
"public Form_soal() {\n initComponents();\n tampil_soal();\n }",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public AsignarNuevoUso() throws NamingException {\r\n\t\t\r\n\t\tJFrame frmNuevoPropietario = new JFrame();\r\n\t\tfrmNuevoPropietario.setFont(new Font(\"Dialog\", Font.BOLD, 16));\r\n\t\tfrmNuevoPropietario.setTitle(\"Asignar Zona\");\r\n\r\n\t\tfrmNuevoPropietario.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmNuevoPropietario.setBounds(100, 100, 650, 400);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tfrmNuevoPropietario.setContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tJComboBox<Zona> comboBox = new JComboBox<Zona>();\r\n\t\t\r\n\t\tcomboBox.setSelectedItem(null);\r\n\t\tcomboBox.setBounds(310, 61, 167, 22);\r\n\t\tcontentPane.add(comboBox);\r\n\t\tfrmNuevoPropietario.setSize(549, 473);\r\n\t\tfrmNuevoPropietario.setVisible(true);\r\n\t\tZonasBeanRemote ZonasBean = (ZonasBeanRemote) InitialContext\r\n\t\t\t\t.doLookup(\"PROYECTO/ZonasBean!com.servicios.ZonasBeanRemote\");\r\n\t\t\r\n\t\tList<Zona> listaZonas = ZonasBean.obtenerTodos();\r\n\r\n\t\tfor (Zona zona : listaZonas) {\r\n\t\t\tcomboBox.addItem((Zona) zona);\r\n\t\t}\r\n\t\t\r\n\r\n\t\tJLabel LblPropietario = new JLabel(\"Seleccionar Zona\");\r\n\t\tLblPropietario.setBounds(136, 65, 137, 14);\r\n\t\tcontentPane.add(LblPropietario);\r\n\r\n\t\tJButton btnAceptar = new JButton(\"Asignar\");\r\n\t\tbtnAceptar.setBounds(136, 390, 89, 23);\r\n\t\tcontentPane.add(btnAceptar);\r\n\r\n\t\tJButton btnCancelar = new JButton(\"Cancelar\");\r\n\t\tbtnCancelar.setBounds(378, 390, 89, 23);\r\n\t\tcontentPane.add(btnCancelar);\r\n\t\tcomboBox.setSelectedItem(null);\r\n\t\t\r\n\t\tJComboBox<TipoUso> comboBoxTipo_Uso = new JComboBox<TipoUso>();\r\n\t\tcomboBoxTipo_Uso.setBounds(310, 169, 167, 22);\r\n\t\tcontentPane.add(comboBoxTipo_Uso);\r\n\t\tTipo_UsosBeanRemote tipo_UsosBean = (Tipo_UsosBeanRemote)\r\n\t\t\t\tInitialContext.doLookup(\"PROYECTO/Tipo_UsosBean!com.servicios.Tipo_UsosBeanRemote\");\r\n\t\t\r\n\t\t\r\n\t\tList<TipoUso> listaTipo_Uso = tipo_UsosBean.obtenerTipo_Uso();\r\n\r\n\t\tfor (TipoUso tipo_Uso : listaTipo_Uso) {\r\n\t\t\tcomboBoxTipo_Uso.addItem((TipoUso) tipo_Uso);\r\n\t\t}\r\n\t\t\r\n\t\tJLabel lblSeleccionarPotrero = new JLabel(\"Seleccionar Uso\");\r\n\t\tlblSeleccionarPotrero.setBounds(136, 172, 139, 16);\r\n\t\tcontentPane.add(lblSeleccionarPotrero);\r\n\t\t\r\n\t\tJLabel lblArea = new JLabel(\"Area:\");\r\n\t\tlblArea.setBounds(218, 92, 56, 16);\r\n\t\tcontentPane.add(lblArea);\r\n\t\t\r\n\t\tJLabel lblPotrero = new JLabel(\"Potrero:\");\r\n\t\tlblPotrero.setBounds(217, 114, 56, 16);\r\n\t\tcontentPane.add(lblPotrero);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Propietario:\");\r\n\t\tlblNewLabel.setBounds(218, 140, 89, 16);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel area = new JLabel(\"\");\r\n\t\tarea.setBounds(310, 92, 56, 16);\r\n\t\tcontentPane.add(area);\r\n\t\t\r\n\t\tJLabel potrero = new JLabel(\"\");\r\n\t\tpotrero.setBounds(310, 114, 56, 16);\r\n\t\tcontentPane.add(potrero);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.setBounds(310, 140, 56, 16);\r\n\t\tcontentPane.add(label);\r\n\t\t\r\n\t\tJLabel propietario = new JLabel(\"\");\r\n\t\tpropietario.setBounds(310, 143, 56, 16);\r\n\t\tcontentPane.add(propietario);\r\n\t\t\r\n\t\tcomboBox.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\r\n\t\t\t\tZona zona = (Zona) arg0.getItem();\r\n\t\t\t\tarea.setText(zona.getAreaZona().toString());\r\n\t\t\t\tpotrero.setText(zona.getPotrero().getNomPotrero());\r\n\t\t\t\tpropietario.setText(zona.getPotrero().getPredio().getPropietario().getNomPropietario());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnCancelar.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tfrmNuevoPropietario.dispose();\r\n\t\t\t\tnew PantallaInicio();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnAceptar.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\ttry {Zona_UsosBeanRemote Zona_UsosBean = (Zona_UsosBeanRemote) InitialContext\r\n\t\t\t\t\t\t.doLookup(\"PROYECTO/Zona_UsosBean!com.servicios.Zona_UsosBeanRemote\");\r\n\r\n\t\t\t\t\tZona zona = (Zona) comboBox.getSelectedItem();\r\n\t\t\t\t\tTipoUso tipo_Uso = (TipoUso) comboBoxTipo_Uso.getSelectedItem();\r\n\t\t\t\t\tZona_UsosBean.altaZona_Uso(zona, tipo_Uso, fechaLocal);\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Se ha asignado la zona Correctamente\", \"Notificacion\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No se pudo asignar Zona Correctamente\", \"Notificacion\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\r\n\t}",
"public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }",
"@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}",
"public ServerskaForma() {\n initComponents();\n \n \n \n }",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public CrearPedidos() {\n initComponents();\n }",
"public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }",
"@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }",
"public CrearQuedadaVista() {\n }",
"public FormUtama() {\n initComponents();\n }",
"public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }",
"public FGlavna() {\n initComponents();\n pripremiFormu();\n }",
"public FIzaberiPutnika() {\n initComponents();\n \n setLocationRelativeTo(null);\n popuniTabelu();\n prepareTableForSort();\n pripremiFormu(FormMode.PRETRAZI);\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"public TorneoForm() {\n initComponents();\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }",
"public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }",
"public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }",
"@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }",
"@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }",
"@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"private void razia(){\n /* Mereset semua Error dan fokus menjadi default */\n mViewUser.setError(null);\n mViewPassword.setError(null);\n View fokus = null;\n boolean cancel = false;\n\n /* Mengambil text dari form User dan form Password dengan variable baru bertipe String*/\n String user = mViewUser.getText().toString();\n String password = mViewPassword.getText().toString();\n\n /* Jika form user kosong atau TIDAK memenuhi kriteria di Method cekUser() maka, Set error\n * di Form User dengan menset variable fokus dan error di Viewnya juga cancel menjadi true*/\n if (TextUtils.isEmpty(user)){\n mViewUser.setError(\"This field is required\");\n fokus = mViewUser;\n cancel = true;\n }else if(!cekUser(user)){\n mViewUser.setError(\"This Username is not found\");\n fokus = mViewUser;\n cancel = true;\n }\n\n /* Sama syarat percabangannya dengan User seperti di atas. Bedanya ini untuk Form Password*/\n if (TextUtils.isEmpty(password)){\n mViewPassword.setError(\"This field is required\");\n fokus = mViewPassword;\n cancel = true;\n }else if (!cekPassword(password)){\n mViewPassword.setError(\"This password is incorrect\");\n fokus = mViewPassword;\n cancel = true;\n }\n\n /* Jika cancel true, variable fokus mendapatkan fokus */\n if (cancel) fokus.requestFocus();\n else masuk();\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }",
"public void crearAbonar(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n \n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }",
"public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}",
"@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"public NapraviPorudzbinu(Zaposleni zaposleni) {\n kontrolerNP = new KontrolerNapraviPorudzbinu();\n this.zaposleni = zaposleni;\n initComponents();\n kontrolerNP.popuniTabelu(jTable1, zaposleni);\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n textBroj.setEditable(false);\n buttonIzmeni.setVisible(false);\n kontrolerNP.vratiID(textBroj, zaposleni);\n }",
"@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}",
"private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"@RequestMapping(value=\"/nuevo\", method = RequestMethod.POST)\n public String registrarNuevo(@ModelAttribute Zapato zapato, ModelMap model){\n model.put(\"tallas\", tallaService.getActivos());\n model.put(\"colores\", colorService.getActivos());\n model.put(\"zapato\", new Zapato());\n model.put(\"c\", \"zapatos/nuevo\");\n return \"edicionZapatos\";\n }",
"public FormBukuTamu() {\n initComponents();\n this.controllers= new ControllersOfBukuTamu();\n this.controllers.inijectTable((DefaultTableModel)tabelBukuTamu.getModel());\n refreshTable();\n setTableRowSorter(tabelBukuTamu, txtDate);\n }",
"public TebakNusantara()\n {\n }",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"public Formulario() {\n initComponents();\n }",
"public UserForm(){ }",
"private void srediFormu() {\n List<PoslovniPartner> lpp = new ArrayList<>();\n try {\n lpp = Kontroler.vratiInstancu().vratiPoslovnePartnere();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<NačinPlaćanja> lnp = new ArrayList<>();\n try {\n lnp = Kontroler.vratiInstancu().vratiNačinePlaćanja();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<Proizvod> lp = new ArrayList<>();\n try {\n lp = Kontroler.vratiInstancu().vratiProizvode();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n jcbPartner.setModel(new DefaultComboBoxModel(lpp.toArray()));\n jcbNačinPlaćanja.setModel(new DefaultComboBoxModel(lnp.toArray()));\n\n Faktura izabranaFaktura = (Faktura) Util.vratiInstancu().vrati(\"izabrana_faktura\");\n if (izabranaFaktura != null) {\n jcbPartner.setSelectedItem(izabranaFaktura.getPoslovniPartner());\n jcbNačinPlaćanja.setSelectedItem(izabranaFaktura.getNačinPlaćanja());\n jtxtNapomena.setText(izabranaFaktura.getNapomena());\n if (izabranaFaktura.getDatumFakturisanja() != null) {\n jtxtDatumFakturisanja.setText(df.format(izabranaFaktura.getDatumFakturisanja()));\n }\n if (izabranaFaktura.getRok() != null) {\n jtxtRok.setText(df.format(izabranaFaktura.getRok()));\n }\n jlbKompletirana.setText(izabranaFaktura.getKompletirana() ? \"(KOMPLETIRANA)\" : \"(DRAFT)\");\n jlblBrojFakture1.setText(izabranaFaktura.getBrojFakture());\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel((izabranaFaktura)));\n Double netoIznos = 0d;\n for (StavkaFakture stavkaFakture : izabranaFaktura.getStavke()) {\n netoIznos += stavkaFakture.getJediničnaCena() * stavkaFakture.getKoličina();\n }\n jtxtNetoVrednost.setText(String.valueOf(Math.round(netoIznos * 1000.0) / 1000.0));\n jbtnKreirajNovuFakturu.setVisible(false);\n jbtnSačuvajFakturu.setText(\"Izmeni fakturu\");\n if (izabranaFaktura.getKompletirana()) {\n enableAllComponents(false);\n jtxtUkupnaVrednost.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanIznos() * 1000) / 1000));\n jtxtPDV.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanPorez() * 1000) / 1000));\n jtxtFakturisao.setText(slavko.baze2.procesnabavke.gui.util.Util.vratiInstancu().vrati(\"prijavljeni_korisnik\").toString());\n }\n Util.vratiInstancu().obriši(\"izabrana_faktura\");\n\n } else {\n jlblBrojFakture1.setText(\"\");\n jlbKompletirana.setVisible(false);\n jcbPartner.setSelectedItem(null);\n jcbNačinPlaćanja.setSelectedItem(null);\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel(new Faktura()));\n jtxtNetoVrednost.setText(\"0.0\");\n enableAllComponents(false);\n }\n\n }",
"Klassenstufe createKlassenstufe();",
"public Postoj() {}",
"public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }",
"public Ventaform() {\n initComponents();\n }",
"@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }",
"public void postularse() {\n\t\t\n\t\ttry {\t\t\t\n\n\t\t\tPostulante postulante= new Postulante();\n\t\t\tpostulante.setLegajo(Integer.valueOf(this.txtLegajo.getText()));\n\t\t\tpostulante.setFamiliaresACargo(Integer.valueOf(this.txtFamiliaresACargo.getText()));\n\t\t\tpostulante.setNombre(txtNombre.getText());\n\t\t\tpostulante.setApellido(txtApellido.getText());\n\t\t\t//postulante.setFechaDeNacimiento(this.txtFechaDeNaciminto.getText());\n\t\t\tpostulante.setCarrera(this.cmbCarrera.getSelectedItem().toString());\n\t\t\tpostulante.setNacionalidad(this.txtNacionalidad.getText());\n\t\t\tpostulante.setLocalidad(this.txtLocalidad.getText());\n\t\t\tpostulante.setProvincia(this.txtProvincia.getText());\n\t\t\t//postulante.setSituacionSocial(this.txtSituacionSocial.getText());\n\t\t\tpostulante.setDomicilio(this.txtDomicilio.getText());\n\t\t\tpostulante.setCodigoPostal(this.txtCodigoPostal.getText());\n\t\t\tpostulante.setEmail(this.txtEmail.getText());\n\t\t\tpostulante.setTelefono(Long.valueOf(this.txtTelefono.getText()));\n\t\t\t\n\t\t\t\n\t\t\tint ingresos=0, miembrosEconomicamenteActivos = 0;\n\t\t\tfor(Familiar familiar: familiares) {\n\t\t\t\tingresos+=familiar.getIngresos();\n\t\t\t\tif(ingresos > 0) {\n\t\t\t\t\tmiembrosEconomicamenteActivos++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpostulante.setCantidadDeFamiliares(familiares.size());\n\t\t\tdouble promedio = Math.random() * (61) + 30 ; \n\t\t\tpostulante.setPromedio((int) promedio);\n\t\t\t\n\t\t\t\n\t\t\tint pIngresos, pActLaboral = 0, pVivienda = 0, pSalud = 0, pDependencia, pPromedio, pRendimiento, pDesarrollo;\n\t\t\t\n\t\t\t//Puntaje Ingresos\n\t\t\tint canastaBasicaPostulante = familiares.size() * canastaBasicaPromedio; \n\t\t\tif(ingresos <= canastaBasicaPostulante) {\n\t\t\t\tpIngresos = 30;\n\t\t\t}\n\t\t\telse if(ingresos >= (2*canastaBasicaPostulante)) {\n\t\t\t\tpIngresos = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpIngresos = (int) (30 - 0.15 * (familiares.size() - ingresos));\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Condicion Actividad Laboral\n\t\t\t\n\t\t\t\n\t\t\tint puntajeMiembros = 0;\n\t\t\t\n\t\t\tfor (Familiar familiar: familiares) {\n\t\t\t\t\tif(familiar.getIngresos() == 0) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 5;\n\t\t\t\t\t}\n\t\t\t\t\telse if(familiar.getIngresos() < salarioMinimo) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 3;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(miembrosEconomicamenteActivos>0) {\n\t\t\tpActLaboral = puntajeMiembros/miembrosEconomicamenteActivos;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Vivienda - Extrae de cmbVivienda: 0 sin deudas - 1 con deudas - 2 sin propiedad\n\t\t\tint condicionVivienda = this.cmbVivienda.getSelectedIndex();\n\t\t\tswitch (condicionVivienda) {\n\t\t\tcase 0:\n\t\t\t\tpVivienda = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpVivienda = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpVivienda = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Salud - Extrae de cmbSalud: 0 tiene obra - 1 cobertura parcial - 2 no tiene\n\t\t\tint condicionSalud = this.cmbSalud.getSelectedIndex();\n\t\t\tswitch (condicionSalud) {\n\t\t\tcase 0:\n\t\t\t\tpSalud = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpSalud = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpSalud = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Dependencia\n\t\t\tif (familiares.size() - miembrosEconomicamenteActivos == 0) {\n\t\t\t\tpDependencia = 0;\n\t\t\t}\n\t\t\telse if(familiares.size() - miembrosEconomicamenteActivos > 2) {\n\t\t\t\tpDependencia = 5;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpDependencia = 3;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Rendimiento académico\n\t\t\tint materiasAprobadas = (int) (Math.random() * (11));\n\t\t\tif(materiasAprobadas == 0) {\n\t\t\t\tpRendimiento = 4;\n\t\t\t\tpPromedio = 14;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint materiasRegularizadas = (int) (Math.random() * (41 - materiasAprobadas));\n\t\t\t\tpRendimiento = materiasAprobadas/materiasRegularizadas * 10;\n\t\t\t//Puntaje Promedio: Se recuperaria del sysacad\n\t\t\t\tpPromedio = (int) (promedio/10 * 3.5);\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Plan Desarrollo: Evaluado por comisión local\n\t\t\tpDesarrollo = (int) (Math.random() * 5 + 1);\n\n\n\t\t\tpuntaje = pIngresos + pActLaboral + pVivienda + pSalud + pDependencia + pPromedio + pRendimiento + pDesarrollo;\n\t\t\tpostulante.setMatAprobadas(materiasAprobadas);\n\t\t\t\n\t\t\ttry{ \n\t\t\t\tcontroller.postular(postulante,puntaje); \n\t\t\t\tJOptionPane.showMessageDialog(null, \"Se postuló al alumno \"+postulante.getNombre()+\" \"+postulante.getApellido()+\".\", \"Postulación exitosa.\", JOptionPane.OK_OPTION);\n\t\t\t\tlimpiarCampos();\n\t\t\t} \n\t\t\tcatch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se pudo postular el alumno\", \"Error\", JOptionPane.OK_OPTION);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"Datos incorrectos\", \"Error\", JOptionPane.OK_OPTION);\n\t\t}\n\t\t\n\t}",
"public FormUtama() {\n initComponents();\n setUkuranLokasiFrame(0.85, true);\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n setTanggal();\n setJam();\n setIp();\n tampilKonek();\n }",
"public gestion_utilisateur() {\n initComponents();\n }",
"public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }",
"public FormularioCliente() {\n initComponents();\n }",
"public frmVerzamelingBeheer() {\n try {\n initComponents();\n \n lblId.setVisible(false);\n\n pnlEdit.setVisible(false);\n\n for (VerzamelingsType type : TypeService.GetAllTypes()) {\n cmbType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n cmbEditType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n }\n\n \n for (Categorie categorie : CategorieService.GetAllCategories()) {\n cmbCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n cmbEditCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n }\n \n //vertaling voor JOptionpane\n UIManager.put(\"OptionPane.cancelButtonText\", \"Annuleren\");\n UIManager.put(\"OptionPane.noButtonText\", \"Nee\");\n UIManager.put(\"OptionPane.okButtonText\", \"Oke\");\n UIManager.put(\"OptionPane.yesButtonText\", \"Ja\");\n \n this.setTitle(\"Verzamelingen beheren - Verzamelingenbeheer\");\n \n ShowEditItems(false);\n RefreshList();\n }\n catch (ExceptionInInitializerError ex)\n {\n JOptionPane.showMessageDialog(null, \"Er kan geen verbinding worden gemaakt met de database (\" + ex.getMessage() + \").\", \"Fout\", ERROR_MESSAGE);\n System.exit(1);\n }\n\n }",
"public void crearManoObra(ActionEvent actionEvent) {\r\n manoobraDao manobraDao = new manoobraDaoImpl();\r\n String msg;\r\n this.manoobra.setNombreManob(this.manoobra.getNombreManob());\r\n this.manoobra.setCostojrhManob(this.manoobra.getCostojrhManob());\r\n \r\n if (manobraDao.crearManoObra(this.manoobra)) {\r\n msg = \"Mano de Obra creada correctamente\";\r\n FacesMessage message1 = new FacesMessage(FacesMessage.SEVERITY_INFO,msg , null);\r\n FacesContext.getCurrentInstance().addMessage(null, message1);\r\n } else {\r\n msg = \"No se creo la Mano de Obra\";\r\n FacesMessage message2 = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, null);\r\n FacesContext.getCurrentInstance().addMessage(null, message2);\r\n }\r\n \r\n }",
"protected RespostaFormularioPreenchido() {\n // for ORM\n }",
"public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"public VistaTrabaja() {\n initComponents();\n }",
"Compleja createCompleja();",
"public FormPlanetZirboin() {\n initComponents();\n }",
"public AdminForma2() {\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 1013, 397);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\tJButton btnObrisiRezervaciju = new JButton(\"Obrisi rezervaciju\");\r\n\t\tbtnObrisiRezervaciju.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tKontroler.getInstanca().obrisiRezervaciju(ID_Rezervacije);\r\n\t\t\t\tpodesiIDPredstave(nazivPredstave);\r\n\t\t\t\tpodesiRaspUlaznice(nazivPredstave);\r\n\t\t\t\tnoviBrRasUl+=brojRezervisanihUlaznica;\r\n\t\t\t\tKontroler.getInstanca().azurirajBrojUlaznica(ID_Pred, noviBrRasUl);\r\n\t\t\t\tosveziTabeluRezervacija();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Uspesno ste Izbrisali rezervaciju\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnObrisiRezervaciju.setBounds(21, 297, 140, 23);\r\n\t\tcontentPane.add(btnObrisiRezervaciju);\r\n\t\t\r\n\t\tcbPozoriste = new JComboBox();\r\n\t\tcbPozoriste.addItem(\"Rezervacije\");\r\n\t\tcbPozoriste.addItem(\"-- -- -- --\");\r\n\t\tcbPozoriste.addItem(\"Sortiraj - Broj Rez\");\r\n\t\tcbPozoriste.addItem(\"-- -- -- --\");\r\n\t\tcbPozoriste.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tnazivPozoriste = (String) cbPozoriste.getSelectedItem();\r\n\t\t\t\t\r\n\t\t\t\tfor(Rezervacije rz:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\t\t\tif(nazivPozoriste.equals(\"Rezervacije\")) {\r\n\t\t\t\t\t\tosveziTabeluRezervacija();\r\n\t\t\t\t\t}else if(nazivPozoriste.equals(\"Sortiraj - Broj Rez\")) {\r\n\t\t\t\t\t\tCollections.sort(alSort, Predstave.StuNameComparator2);\r\n\t\t\t\t\t\tucitajSortiranoPoBrojRez();\r\n\t\t\t\t\t}else if(nazivPozoriste.equals(rz.getImePozorista())) {\r\n\t\t\t\t\t\tosveziTabeluRezervacija(nazivPozoriste);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcbPozoriste.setBounds(21, 11, 153, 20);\r\n\t\tcontentPane.add(cbPozoriste);\r\n\t\t\r\n\t\ttable_Rezervacije = new JTable(dtm);\r\n\t\tJScrollPane scrollPane = new JScrollPane(table_Rezervacije);\r\n\t\tscrollPane.setBounds(21, 42, 966, 244);\r\n\t\tcontentPane.add(scrollPane);\r\n\t\t\r\n\t\ttable_Rezervacije.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint red=table_Rezervacije.getSelectedRow();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString id_Rez, imePoz, id, naziv, scena, vreme, brojRezUl, datum, cena=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tid_Rez=(table_Rezervacije.getModel().getValueAt(red, 0).toString());\r\n\t\t\t\t\t\tID_Rezervacije=Integer.parseInt(id_Rez);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\timePoz=(table_Rezervacije.getModel().getValueAt(red, 2).toString());\r\n\t\t\t\t\t\tImePozorista=imePoz;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnaziv=(table_Rezervacije.getModel().getValueAt(red, 3).toString());\r\n\t\t\t\t\t\tnazivPredstave=naziv;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tscena=(table_Rezervacije.getModel().getValueAt(red, 6).toString());\r\n\t\t\t\t\t\tscenaIzvodjenja=scena;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbrojRezUl=(table_Rezervacije.getModel().getValueAt(red, 7).toString());\r\n\t\t\t\t\t\tbrojRezervisanihUlaznica=Integer.valueOf(brojRezUl);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tcena=(table_Rezervacije.getModel().getValueAt(red, 8).toString());\r\n\t\t\t\t\t\tcenaUlaznica=Integer.valueOf(cena);\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\r\n\t\tscrollPane.setViewportView(table_Rezervacije);\r\n\t\t\r\n\t\tbtnOsveziTabelu = new JButton(\"Osvezi tabelu Rezervacija\");\r\n\t\tbtnOsveziTabelu.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tosveziTabeluRezervacija();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOsveziTabelu.setBounds(349, 324, 198, 23);\r\n\t\tcontentPane.add(btnOsveziTabelu);\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblRezervacije = new JLabel(\"Rezervacije svih korisnika\");\r\n\t\tlblRezervacije.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\tlblRezervacije.setBounds(371, 11, 231, 17);\r\n\t\tcontentPane.add(lblRezervacije);\r\n\t\t\r\n\t\tbtnPretragaGledalac = new JButton(\"Pretraga gledalac\");\r\n\t\tbtnPretragaGledalac.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tpretragaGledalac();\r\n\t\t\t\tobrisiPoljePretraga();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPretragaGledalac.setBounds(834, 297, 153, 23);\r\n\t\tcontentPane.add(btnPretragaGledalac);\r\n\t\t\r\n\t\ttfPretraga = new JTextField();\r\n\t\ttfPretraga.setBounds(654, 298, 170, 20);\r\n\t\tcontentPane.add(tfPretraga);\r\n\t\ttfPretraga.setColumns(10);\r\n\t\t\r\n\t\tObject[]kolone=new Object[9];\r\n\t\tkolone[0]=\"ID Rez\";\r\n\t\tkolone[1]=\"Korisnik\";\r\n\t\tkolone[2]=\"Pozoriste\";\r\n\t\tkolone[3]=\"Predstava\";\r\n\t\tkolone[4]=\"Datum\";\r\n\t\tkolone[5]=\"Vreme\";\r\n\t\tkolone[6]=\"Scena\";\r\n\t\tkolone[7]=\"Broj rez ulaznica\";\r\n\t\tkolone[8]=\"Cena po kom\";\r\n\t\t\r\n\t\tdtm.addColumn(kolone[0]);\r\n\t\tdtm.addColumn(kolone[1]);\r\n\t\tdtm.addColumn(kolone[2]);\r\n\t\tdtm.addColumn(kolone[3]);\r\n\t\tdtm.addColumn(kolone[4]);\r\n\t\tdtm.addColumn(kolone[5]);\r\n\t\tdtm.addColumn(kolone[6]);\r\n\t\tdtm.addColumn(kolone[7]);\r\n\t\tdtm.addColumn(kolone[8]);\r\n\t\t\r\n\t\tosveziTabeluRezervacija();\r\n\t\tnapuniCbPozoriste();\r\n\t\talSort=Kontroler.getInstanca().vratiRezervacije();\r\n\t\r\n\t}",
"Negacion createNegacion();",
"public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"public FrmInsertar() {\n initComponents();\n }",
"public Caso_de_uso () {\n }",
"public String crearPostulante() {\n\t\tString r = \"\";\n\t\ttry {\n\t\t\tif (edicion) {\n\t\t\t\tsetPos_password(Utilidades.Encriptar(getPos_password()));// PASS\n\t\t\t\tmanagergest.editarPostulante(pos_id.trim(), pos_nombre.trim(),\n\t\t\t\t\t\tpos_apellido.trim(), pos_direccion.trim(),\n\t\t\t\t\t\tpos_correo.trim(), pos_telefono.trim(),\n\t\t\t\t\t\tpos_celular.trim(), pos_password.trim(), \"A\");\n\t\t\t\tpos_id = \"\";\n\t\t\t\tpos_nombre = \"\";\n\t\t\t\tpos_apellido = \"\";\n\t\t\t\tpos_direccion = \"\";\n\t\t\t\tpos_correo = \"\";\n\t\t\t\tpos_password = \"\";\n\t\t\t\tpos_telefono = \"\";\n\t\t\t\tpos_celular = \"\";\n\t\t\t\tpos_institucion = \"\";\n\t\t\t\tpos_gerencia = \"\";\n\t\t\t\tpos_area = \"\";\n\t\t\t\tMensaje.crearMensajeINFO(\"Modificado - Editado\");\n\t\t\t\tr = \"home?faces-redirect=true\";\n\t\t\t} else {\n\t\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn r;\n\t}",
"public CrearCuenta(UsuarioVO usu) {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"Constructor CrearCuenta\");\r\n\t\tinitialize();\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tusuario = usu;\r\n\t}",
"@RequestMapping(value = \"/absensi/tambah/submit\", method = RequestMethod.POST)\n public String tambahSubmit (@NotNull Authentication auth, Model model, @ModelAttribute(\"newAbsen\") AbsenModel newAbsen)\n {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n int id_employee = absenDAO.selectIdByUsername(penggunaLogin.getUsername());\n newAbsen.setId_employee(id_employee);\n if(absenDAO.cekAbsen(newAbsen) == null){\n absenDAO.addAbsen(newAbsen);\n return \"redirect:/absen/kelola?success=menambah\";\n } else {\n model.addAttribute(\"message\", \"Absensi pada tanggal \" +newAbsen.getTanggal_absen() + \" gagal dibuat\");\n return \"redirect:/absen/kelola?gagal=menambah\";\n }\n\n }",
"protected void agregarUbicacion(){\n\n\n\n }",
"public FrmOdabir(String naslov) {\n \n initComponents();\n setTitle(naslov);\n setLocationRelativeTo(null);\n setVisible(true);\n \n }",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"@Override\n public boolean create(Revue objet) {\n return false;\n }",
"public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }",
"private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }",
"public CrearProductos() {\n initComponents();\n }",
"public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}"
] |
[
"0.6663084",
"0.65561754",
"0.6473439",
"0.6414488",
"0.63770294",
"0.6306076",
"0.6283022",
"0.62019914",
"0.6148371",
"0.61248994",
"0.6119344",
"0.61191714",
"0.61100906",
"0.6108907",
"0.6097925",
"0.6085656",
"0.60360956",
"0.603485",
"0.60242325",
"0.6020867",
"0.6011582",
"0.6000693",
"0.59775436",
"0.5975239",
"0.596324",
"0.5954527",
"0.59487754",
"0.59428596",
"0.5937761",
"0.593175",
"0.5928971",
"0.59287274",
"0.5927529",
"0.5924845",
"0.5924208",
"0.5905694",
"0.5898762",
"0.5881556",
"0.5874637",
"0.58566326",
"0.585658",
"0.5855542",
"0.5845941",
"0.58424157",
"0.5835705",
"0.5834924",
"0.58321697",
"0.58205754",
"0.58176017",
"0.5814569",
"0.58106744",
"0.5805739",
"0.5804225",
"0.57881415",
"0.5778855",
"0.577875",
"0.57731265",
"0.57710016",
"0.57577616",
"0.5757396",
"0.57441115",
"0.5737745",
"0.57154596",
"0.57153106",
"0.5711111",
"0.5710396",
"0.57091767",
"0.5697562",
"0.5692009",
"0.5691535",
"0.5685808",
"0.56857187",
"0.5682578",
"0.5679619",
"0.56780094",
"0.56709075",
"0.56644064",
"0.5664128",
"0.56587183",
"0.5656065",
"0.56552565",
"0.5650661",
"0.565053",
"0.5649974",
"0.5648679",
"0.56463736",
"0.56450325",
"0.56407523",
"0.5630075",
"0.5626896",
"0.5625154",
"0.5621356",
"0.56196326",
"0.56183535",
"0.56151396",
"0.56119174",
"0.5609419",
"0.5608624",
"0.5607104",
"0.56049347"
] |
0.62877077
|
6
|
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
|
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
jButton3 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
jPanel3 = new javax.swing.JPanel();
jLabel3 = new javax.swing.JLabel();
jPanel4 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
setLayout(new java.awt.BorderLayout());
jPanel1.setLayout(new java.awt.BorderLayout());
jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));
jButton3.setText("Uprav");
jPanel2.add(jButton3);
jButton2.setText("Prihlasit/Odhlasit");
jPanel2.add(jButton2);
jButton1.setText("Zrusit");
jPanel2.add(jButton1);
jPanel1.add(jPanel2, java.awt.BorderLayout.EAST);
add(jPanel1, java.awt.BorderLayout.PAGE_END);
jPanel3.setLayout(new java.awt.GridLayout(0, 1));
jLabel3.setText("Nazov");
jPanel3.add(jLabel3);
jPanel4.setLayout(new java.awt.GridLayout(1, 2));
jLabel1.setText("Od: Cas");
jPanel4.add(jLabel1);
jLabel2.setText("Do: Cas");
jPanel4.add(jLabel2);
jPanel3.add(jPanel4);
jLabel4.setText("Kapacita:");
jPanel3.add(jLabel4);
jLabel5.setText("Cena:");
jPanel3.add(jLabel5);
jLabel6.setText("Popis");
jPanel3.add(jLabel6);
jLabel7.setText("Povinny:");
jPanel3.add(jLabel7);
add(jPanel3, java.awt.BorderLayout.CENTER);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] |
[
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
] |
0.0
|
-1
|
Scanner scan_hsb=new Scanner(System.in); String ko = scan_hsb.next(); System.out.println("Enter String");
|
void scanner_hsb(String ko){
System.out.println(ko);
// scan_hsb.close();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void getString()\n\t{\n\t\t\n\t\tScanner s=new Scanner(System.in);\n\t\t\n\t\t//Here Scanner is the class name, a is the name of object, \n\t\t//new keyword is used to allocate the memory and System.in is the input stream. \n\t\t\n\t\tSystem.out.println(\"Entered a string \");\n\t\tString inputString = s.nextLine();\n\t\tSystem.out.println(\"You entered a string \" + inputString );\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n System.out.println(str);\n }",
"public static void main(String[] args) {\nScanner sc= new Scanner(System.in);\nString name=sc.nextLine();\n\t\tSystem.out.println(\"hello\\n\"+name);\n\t\t\n\t}",
"public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n String str=in.nextLine();\n System.out.println(str);\n }",
"public static void main(String[] args) \n {\n Scanner sc = new Scanner(System.in); \n \n // String input\n System.out.print(\"What's your name? \"); \n String name = sc.nextLine(); \n \n // Print the values to check if input was correctly obtained. \n System.out.println(\"Name: \" + name); \n\n // Close the Scanner\n sc.close();\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n // String input\n String first = sc.nextLine();\n System.out.println(first);\n\n }",
"public static String getStringInput() {\n Scanner in = new Scanner(System.in);\n return in.next();\n }",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String str=sc.next();\n String str1=sc.next();\n String str2=sc.next();\n String str3=sc.next();\n System.out.println(str);\n System.out.println(str1);\n System.out.println(str2);\n System.out.println(str3);\n\n\n }",
"public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"public static String inputStringFromKeyboard(String input){\n System.out.println(\"Input the String: \");\n //Scanner, save the inputted from keyboard\n Scanner scanner = new Scanner(System.in);\n //The value 'scanner' is assigned to 'input'\n input = scanner.next();\n return input;\n }",
"public static String getString(){\n Scanner in = new Scanner(System.in); //scanner variable to take input\n return in.nextLine().trim();\n }",
"private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }",
"public static void main(String args[])throws IOException\n\t{\n\tScanner obj=new Scanner(System.in);\n\n\t//Entering a string\n\tSystem.out.println(\"\\nEnter a string !\");\n\tString s=obj.nextLine();\n\tSystem.out.println(\"you have entered \"+ s);\n\n\t//entering a word\n\tSystem.out.println(\"\\nEnter a word !\");\n\tString w=obj.next();\n\n\t//entering an integer\n\tSystem.out.println(\"\\nEnter an integer !\");\n\tint n=obj.nextInt();\n\n\t//entering a float\n\tSystem.out.println(\"\\nEnter a floating point number !\");\n\tfloat f=obj.nextFloat();\n\n\t//Printing the inputs\n\tSystem.out.println(\"\\nThe inputs are .....\");\n\tSystem.out.println(\"\\nWord : \"+w+\"\\nInteger : \"+n+\"\\nFloat : \"+f);\n\n\n}",
"public static String getString (String ask)\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.print(ask + \" -> \");\r\n String input = keyboard.nextLine();\r\n return input;\r\n }",
"public void inputScanner(){\n\t\t Scanner sc=new Scanner(System.in); \n\t \n\t\t System.out.println(\"Enter your rollno\"); \n\t\t int rollno=sc.nextInt(); \n\t\t System.out.println(\"Enter your name\"); \n\t\t String name=sc.next(); \n\t\t System.out.println(\"Enter your fee\"); \n\t\t double fee=sc.nextDouble(); \n\t\t System.out.println(\"Rollno:\"+rollno+\" name:\"+name+\" fee:\"+fee); \n\t\t sc.close(); \n\t}",
"public static String inputString()\n\t{\n\t\treturn(sc.next());\n\t}",
"public String weiterSpielen(){\n Scanner keyboard = new Scanner(System.in);\n return keyboard.nextLine();\n }",
"private static String inputString() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Insert text: \");\n String inputText = userInput.nextLine();\n return inputText;\n }",
"public static String inputString(String s)\n {\n if (s != null && s.length() > 0)\n {\n System.out.print(s);\n System.out.flush();\n }\n\n StringBuffer sb = new StringBuffer();\n try\n {\n InputStreamReader reader = new InputStreamReader(System.in);\n do\n {\n sb.append(new BufferedReader(reader).readLine());\n }\n while (System.in.available() > 0);\n\n return sb.toString();\n }\n catch (IOException e)\n {\n return null;\n }\n }",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n\n\n\n }",
"private String getSearchString(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString phrase = null;\n\t\t\n\t\tSystem.out.print(\"Please enter the search phrase: \");\n\t\tphrase = scanner.nextLine();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\treturn phrase;\n\t}",
"public static String GetInput() {\r\n\t\t// Scanner is created and a value is set for input\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tString input = in.nextLine();\r\n\t\treturn input;\r\n\r\n\t}",
"String readInput() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"public static void userName() {\n System.out.println(\"Please enter your name: \");\n String name = sc.nextLine(); \n System.out.println(\"Hello, \" + name);\n }",
"public static String inputCommand() {\n String command;\n Scanner in = new Scanner(System.in);\n\n command = in.nextLine();\n\n return command;\n }",
"public static void namePet() {\n System.out.println(\"What is the name of your favorite pet? \");\n String petName = sc.nextLine(); \n }",
"@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t//String str = \"Hello World\";\n\t\tScanner scanner = new Scanner(System.in); //create object;\n\t\tSystem.out.println(\"Enter an String input\");\n\t\tString userInput = scanner.nextLine();//iput\n\t\tSystem.out.println(userInput.toString());\n\t\n\t\t\n\t\t//System.out.println(\"First string upper case is \" + userInput.toUpperCase().charAt(0) + \" from \" + userInput);\n\t\t\n\t}",
"public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nSystem.out.println(\"Enter the school name\");\r\nString a=s.next();\r\nSystem.out.println(\"Enter the student name\");\r\nString b=s.next();\r\nSystem.out.println(\"Enter the roll name\");\r\nString a=s.next();\r\n\t}",
"private String getUserInput(Scanner sc) {\n\t\t\n\t\tif (sc == null) {\n\t\t\treturn null;\n\t\t}\n\n\t System.out.print(\"\\nctransfer > \");\n\t return sc.nextLine();\n\t}",
"public static void main(String[] args) {\n Scanner myOdj = new Scanner(System.in );\n System .out.println(\" Enter your name\");\n\n String userName = myOdj.nextLine();\n System.out.println (\" hi \" + userName);\n\n \n }",
"public static String readUserInput() {\n return in.nextLine();\n }",
"String consoleInput();",
"public static void main(String[] args) {\nString name;\nScanner s=new Scanner(System.in);\n\tSystem.out.println(\"Please enter your first name: \");\n\tname=s.next();\n\tSystem.out.println(name+\", Welcome\");}",
"private static String validateInputStr() {\n String str = \"\";\n Scanner genericString = new Scanner(System.in);\n if (!genericString.hasNextInt()) {\n str = genericString.nextLine();\n return str;\n }\n else {\n validateInputStr();\n }\n return str;\n }",
"private String stringKeyBoardInput() {\n\t\tString input = \"\";\n\t\tboolean tryAgain = true;\n\t\twhile (tryAgain) {\n\t\t\ttry {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tinput = scanner.nextLine();\n\t\t\t\ttryAgain = false;\n\t\t\t} catch (InputMismatchException ime) {\n\t\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n System.out.print(SimpleSymbols(s.nextLine())); \n }",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n System.out.print(SimpleSymbols(s.nextLine())); \n }",
"public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }",
"void Input() {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter name of the book::\");\n Bname = scanner.nextLine();\n System.out.println(\"Enter price of the book::\");\n price = scanner.nextDouble();\n }",
"private static String getResponseTo(String s) { // get user input as a string\r\n\t\tSystem.out.print(s);\r\n\t\treturn (scan.nextLine());\r\n\t}",
"public String userCommand(){\n return scanner.nextLine();\n }",
"public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }",
"public static void main(String[] args) {\n String s1=\"asd\";\r\n String s2=\"bilo\";\r\n //Scanner sc= new Scanner(System.in);\r\n\t\t if (s1==s2)\r\n\t\t\t System.out.println(\"text compared0\");\r\n\t\t else\r\n\t\t\t System.out.println(\"text not compared0\");\r\n\t\t\t \r\n\t}",
"String getInput();",
"public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\n\t}",
"private static String scan(String text)\r\n\t{\r\n\t\tSystem.out.print(text);\r\n\t\treturn input.nextLine();\r\n\t}",
"public static void main(String[] args) {\n\t\t Scanner scan = new Scanner (System.in);\n\t\t \n\t\t System.out.println(\"tam isminizi giriniz\");\n\t String tamisim = scan.nextLine();\n\t \n \n System.out.println(\"Yasinizi giriniz\");\n int yas = scan.nextInt();\n System.out.println(yas);\n \n System.out.println(\"Isminizın ilk harfini girin\");\n char ilkHarf = scan.next().charAt(0);\n System.out.println(ilkHarf);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\r\n System.out.println(\"Introduzca un entero: \");\r\n int a = scn.nextInt();\r\n System.out.println(\"El numero introducido es el: \" + a);\r\n String b = scn.nextLine();\r\n System.out.println(b);\r\n String c = scn.next();\r\n System.out.println(c);\r\n }",
"private String getBarcode()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"\");\n System.out.print(\"Indtast stregkode: \");\n return scanner.nextLine();\n }",
"private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }",
"public static void main(String[] args) {\nScanner obj =new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the String\");\nString value=obj.nextLine();\nreverseString1(value);\n\t}",
"public static String promptStreetAddress(){\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter the street address: \");\n String output = scan.nextLine();\n return output;\n }",
"public static String getString(String prompt)\n {\n System.out.print(prompt + \" \");\n return in.nextLine();\n }",
"public static String inputString(String p) {\n String s = \"\";\n\n do {\n System.out.print(p);\n s = in.nextLine();\n if (!s.isEmpty()) {\n break;\n } else {\n System.err.print(\"\\nCan't be left blank, enter again.\\n\");\n }\n } while (true);\n return s;\n }",
"public void intro(){Scanner teclado = new Scanner(System.in);\nSystem.out.println(\"Introduzca la unidad de medida a la que transformar \"\n + \"pies, cm o yardas\");\nSystem.out.println(\"o escriba salir si quiere volver al primer menu\");\nopcion=teclado.nextLine();}",
"public static String promptCity(){\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter the city: \");\n String output = scan.nextLine();\n return output;\n }",
"private static String getInput(String message, Scanner sc) {\n String result = \"\";\n while (result.equals(\"\")) {\n System.out.println(message);\n result = sc.nextLine();\n }\n return result;\n }",
"public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}",
"@Test\n\tpublic void one()\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"enter the value of a\");\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(\"value of a is: \" +a);\n\t}",
"public static String getString() {\n // Variable declarations\n String str = \"\"; // String object to hold user input\n\n // Prompt user to enter str\n str = scnr.nextLine();\n\n // Return the string\n return str;\n }",
"private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }",
"public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}",
"String getUserInput();",
"private void getInput() {\n\t\tSystem.out.println(\"****Welcome to TNEB online Payment*****\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter your current unit\");\r\n\t\tunit = scan.nextInt();\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tInputStream input = System.in;\n\t\tScanner scanner = new Scanner(input);\n\t\t// nextLine()을 실행하기 전에 \n\t\t// 무엇을 해야할지 알려주는 메시지를 먼저 출력 하라.\n\t\t// 이를 'prompt(프롬프트)' 라고 한다\n\t\tSystem.out.println(\"문자열을 입력후 Enter....\");\n\t\tString strInput = scanner.nextLine();\n\t\tSystem.out.println(strInput);\n\n\t}",
"public static void main(String...args){\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString s = scan.nextLine();\r\n//\t\tString str = s.replaceAll(\"\\\\s\", \"\"); // removing white space from string\r\n//\t\tSystem.out.println(str);\r\n\t\tchar[] ch = s.toCharArray();\r\n\t\tSet<Character> charSet = new HashSet<>();\r\n\t\tfor(char c: ch){\r\n\t\t\t\r\n\t\t\tcharSet.add(c);\t\r\n\t\t}\r\n\t\t\r\n//\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor(Character character : charSet){\r\n//\t\t\tsb.append(character);\r\n\t\t\tSystem.out.print(character);\r\n\t\t}\r\n//\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\t}",
"private String selectString(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.next();\n }",
"String userInput(String question);",
"@Override\n\tpublic String read() \n\t{\n\t\tString res = \"\";\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tif (scan.hasNextLine())\n\t\t\tres = scan.nextLine();\n\t\t\n\t\treturn res;\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner s = new Scanner(System.in);\r\n\t String txt = s.next();\r\n\t //your code here\r\n\t System.out.println(txt.substring(0,2));\r\n\r\n\t}",
"public static void main(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n while ((quit.equals(question)!=true)){\n question = scan.nextLine();\n System.out.println (question);\n\n }\n }",
"public Game()\n {\n Scanner userInput = new Scanner(System.in); // Create a Scanner object\n System.out.println(\"Get player name\"); \n playerName = userInput.nextLine(); \n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t}",
"private String getMobileNumber(){\n System.out.println(\"Enter The Mobile Number\");\n return sc.next();\n }",
"public static String singleString()\n\t{\n\t\treturn(sc.nextLine());\n\t}",
"private static String inputStringHelper(Scanner scanner, String field) {\n System.out.println(\"Type in your new friend's \" + field + \": \");\n return scanner.nextLine();\n }",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"enter the string1\");\r\n\t\tString str1 = scan.nextLine();\r\n\t\tSystem.out.println(\"enter the string2\");\r\n\t\tString str2 = scan.nextLine();\r\nconacting(str1,str2);\r\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s1 = scan.nextLine();\n int begin = scan.nextInt();\n int end = scan.nextInt();\n System.out.println(s1.substring(begin,end + 1));\n }",
"public static String getString(String prompt) throws Exception {\n if (scanner == null) {\n throw new Exception(\"Input Utility's scanner is not set\");\n }\n String s;\n\n // enter the string\n if (prompt != null) {\n System.out.print(prompt);\n }\n s = scanner.nextLine();\n return s;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString hello = sc.nextLine();\n\t\tSystem.out.println(hello);\n\n\n\t}",
"private static void scan() {\n\t\tt = la;\n\t\tla = Scanner.next();\n\t\tla.toString();\n\t\tsym = la.kind;\n\t}",
"private static void readInput() { input = sc.nextLine().toLowerCase().toCharArray(); }",
"public static void main(String[] args) {\n\t\tString s = \"We're learning about Scanner\";\n\t\tSystem.out.println(s);\n\t\tScanner sc = new Scanner(System.in);\n//\t\tint m = sc.nextInt();\n//\t\tint n = sc.nextInt();\n//\t\tSystem.out.println(\"The Value of m is: \"+m);\n//\t\tSystem.out.println(\"The Value of n is: \"+n);\n//\t\tdouble d = sc.nextDouble();\n//\t\tString name = sc.next();//Gives us one Word\n//\t\tSystem.out.println(\"Name is: \" + name);\n\t\t\n//\t\tString fullName = sc.nextLine();\n//\t\tSystem.out.println(\"Full Name is: \" + fullName);\n\t\t\n\t\tString intInput = sc.nextLine();\n\t\tint n = Integer.parseInt(intInput);\n\t\tSystem.out.println(n);\n\t}",
"public static String getSentence (Scanner input){\r\n System.out.print(\"Enter a sentence: \");\r\n String sentence = input.nextLine();\r\n return sentence; \r\n }",
"public static String readString() {\n BufferedReader br\n = new BufferedReader(new InputStreamReader(System.in), 1);\n\n // Declare and initialize the string\n String string = \" \";\n\n // Get the string from the keyboard\n try {\n string = br.readLine();\n\n } catch (IOException ex) {\n System.out.println(ex);\n }\n\n // Return the string obtained from the keyboard\n return string;\n }",
"public void pedirPalabra() {\r\n\r\n Scanner entradaEscaner = new Scanner(System.in);\r\n palabra = entradaEscaner.nextLine();\r\n }",
"public static String userInput()\r\n {\r\n Scanner link = new Scanner(System.in);\r\n String word = link.next();\r\n char[] chars = word.toCharArray();\r\n boolean checkWord = false; \r\n for(int i = 0; i < chars.length; i++)\r\n {\r\n char c = chars[i];\r\n if((c < 97 || c > 122))\r\n {\r\n checkWord = true;\r\n }\r\n }\r\n link.close();\r\n if(!checkWord)\r\n {\r\n return word;\r\n } \r\n else \r\n System.out.println(\"Not a valid input\");\r\n return null;\r\n }",
"public static void main(String[] args) { \n\t\t\nScanner scan = new Scanner(System.in) ;\n\t\t\n\t\tSystem.out.println(\"lutfen \" + \"\\\"Y\\\"\" + \" veya \" + \"\\\"N\\\"\" + \"giriniz\");\n\t\t\n\tchar input = scan.next().charAt(0)\t ;\n\t\n\tif (input == 'Y' ||input=='y') {\n\t\tSystem.out.println(\"YES\");\n\t\t\n\t} else if (input== 'N' || input == 'n') {\n\t\tSystem.out.println(\"NO\");\n\t\t\n\t} else {\n\t\tSystem.out.println(\"yanlis giris yaptiniz. lutfen tekrar deneyiniz\");\n\n\t}\n\t\n\t\n\t\n\t\n\t\n\tscan.close();\n\t\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tSystem.out.println(input);\n\t\t\tif(input == null || input==\"\") {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter the first word\");\n String r = sc.next();\n System.out.print(\"Enter the second word\");\n String s = sc.next();\n\n\n System.out.println(decide(r,s));\n }",
"public void getPlayerInput() {\n System.out.println(\"Enter a Command: \");\n playerInput = inputScanner.nextLine();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNextLine()){\n\t\t\tString str=sc.nextLine();\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}",
"public static void main(String[]args) {\n\n System.out.println( \"enter a number:\" );\n String a = \"homosexual\";\n System.out.println( a.length() );\n\n String andrew = \"Hello\";\n Scanner can = new Scanner (System.in);\n System.out.println( \"Enter the next number\" );\n // to get the next integer\n System.out.println(can.nextInt()) ;\n\n\n\n\n\n\n\n\n\n}",
"public void takeUserInput() {\n\t\t\r\n\t}",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tString r=s.next();\n\t\tSystem.out.println(r.equals(\"KYS\")?1:0);\n\t}",
"public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nSystem.out.println(\"Enter the String:\");\r\nString str=sc.nextLine();\r\nString r=getImage(str);\r\n\r\n}",
"public static void main(String[] args) {\n\t\tToggle_String obj = new Toggle_String();\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the String\");\r\n\t\tString line =sc.next();\r\n\t\tString result = obj.toggleString(line);\r\n\t\tSystem.out.println(result);\r\n\t}",
"public String getData() {\r\n Scanner sc = new Scanner(System.in);\r\n String s = sc.nextLine();\r\n while ((s.startsWith(\"\") && s.endsWith(\" \")) || (s.length() == 0) || (s.startsWith(\" \"))) {\r\n System.out.print(\"A space record, or a space at the beginning is not acceptable. \\n\"\r\n + \"Please try again: \");\r\n s = sc.nextLine();\r\n }\r\n return s;\r\n }",
"public static String getInput(Scanner scan){\n int box = scan.nextInt();\n switch(box){\n case 1:\n System.out.print(\"You've won $10,000\");\n break;\n case 2:\n System.out.print(\"You've won a half eaten turkey sandwhich\");\n break;\n case 3: \n System.out.print(\"You've won a one-on-one date with Betty White\");\n break;\n default:\n System.out.println(\"A Wrong Number! You get nothing! Better restart the game LOL\");\n System.exit(1);\n break;\n }\n String string = \"t\";\n return string;\n }"
] |
[
"0.793408",
"0.7637405",
"0.7622358",
"0.7575835",
"0.75393385",
"0.74786097",
"0.7426475",
"0.73582923",
"0.7298885",
"0.727372",
"0.72692513",
"0.7115754",
"0.7084239",
"0.7076847",
"0.70568407",
"0.7039112",
"0.6997437",
"0.6968627",
"0.6962905",
"0.69485146",
"0.69310606",
"0.6915691",
"0.68991363",
"0.6845641",
"0.6844331",
"0.68179524",
"0.67842716",
"0.6779927",
"0.6768938",
"0.6755983",
"0.6755714",
"0.6732442",
"0.6719398",
"0.6715839",
"0.6712862",
"0.6684068",
"0.6684068",
"0.6672219",
"0.666529",
"0.663057",
"0.6627717",
"0.66263026",
"0.6612883",
"0.66004753",
"0.6588825",
"0.65666735",
"0.65660673",
"0.65625584",
"0.65619147",
"0.65268713",
"0.65142655",
"0.649697",
"0.64930606",
"0.6488436",
"0.64613605",
"0.64563155",
"0.64474475",
"0.64458764",
"0.6435007",
"0.6406411",
"0.64036393",
"0.6396641",
"0.63919485",
"0.6389188",
"0.63825595",
"0.6380775",
"0.63661754",
"0.636195",
"0.63509077",
"0.6345873",
"0.6336623",
"0.63344306",
"0.6326459",
"0.63261646",
"0.6319433",
"0.6317033",
"0.6308892",
"0.63070995",
"0.6286713",
"0.6275192",
"0.62707865",
"0.62641984",
"0.62641275",
"0.62636334",
"0.62634206",
"0.6263198",
"0.62600625",
"0.62545574",
"0.62456393",
"0.62410235",
"0.6233066",
"0.62238157",
"0.62231255",
"0.62213355",
"0.6214979",
"0.6214141",
"0.62098294",
"0.6206138",
"0.6206135",
"0.62036383"
] |
0.70976156
|
12
|
constructors Construct a Unit, its UnitType, and its exponent
|
Unit(Apfloat unitIn, UnitType utIn, int expIn) {
unitValue = unitIn;
unitType = utIn;
exponent = expIn;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Unit(String unitIn, UnitType utIn, int expIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, expIn);\n\t}",
"Unit() {\n\t\tthis(new Apfloat(\"0.0\", APFLOATPRECISION), SCALAR, 1);\n\t}",
"Unit(Apfloat unitIn, UnitType utIn) {\n\t\tthis(unitIn, utIn, 1);\n\t}",
"public UnitP\n (\n UnitP unitP, ErrorTypes errorType, ExceptionHandlingTypes exceptionHandling\n )\n {\n if (unitP == null) unitP = new UnitP();\n\n UnitPConstructor unitP2 = new UnitPConstructor\n (\n unitP.OriginalUnitString, ExceptionInstantiation.NewUnitInfo(unitP),\n UnitTypes.None, UnitSystems.None, errorType,\n (\n exceptionHandling != ExceptionHandlingTypes.NeverTriggerException ?\n exceptionHandling : unitP.Error.ExceptionHandling\n )\n );\n\n if (unitP2.ErrorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n Unit = Units.None;\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n OriginalUnitString = \"\";\n ValueAndUnitString = \"\";\n UnitString = \"\";\n }\n else\n {\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n \tunitP2.ErrorType, unitP2.ExceptionHandling\n );\n }",
"public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"Unit(String unitIn, UnitType utIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);\n\t}",
"public UnitConverter() {\r\n getParameters();\r\n }",
"Unit getUnit();",
"public Unit(float length, float width, float height, float totalCost, String unitKind, Furniture furniture, Electrictiy electrictiy, Wall wall, Roof roof, Floor floor) {\n this.length = length;\n this.width = width;\n this.height = height;\n this.totalCost = totalCost;\n this.unitKind = unitKind;\n this.furniture = furniture;\n this.electrictiy = electrictiy;\n this.wall = wall;\n this.roof = roof;\n this.floor = floor;\n }",
"public UnitP(UnitP unitP, Double value, int baseTenExponent)\n {\n Value = value;\n BaseTenExponent = baseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.Value.toString() +\n (\n unitP.BaseTenExponent != 0 ?\n \"*10^\" + unitP.BaseTenExponent.toString() : \"\"\n );\n ValueAndUnitString = Value.toString() +\n (\n BaseTenExponent != 0 ?\n \"*10^\" + BaseTenExponent.toString() : \"\"\n ) + \" \" + UnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"public Unit(float length, float width, float height, float totalCost, String unitKind, Furniture furniture, Electrictiy electrictiy, Wall wall, Roof roof, Floor floor, Plumbing plumbing) {\n this.length = length;\n this.width = width;\n this.height = height;\n this.totalCost = totalCost;\n this.unitKind = unitKind;\n this.furniture = furniture;\n this.electrictiy = electrictiy;\n this.wall = wall;\n this.roof = roof;\n this.floor = floor;\n this.plumbing = plumbing;\n }",
"LengthUnit(double metres) {\n/* 24 */ this.metres = metres;\n/* 25 */ this.dx = new Dx(1.0D, this);\n/* */ }",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling, \n PrefixUsageTypes prefixUsage\n )\n {\n if (prefix == null) prefix = new Prefix();\n\n ErrorTypes errorType =\n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n tempInfo = OtherPartsNumberParserMethods.GetUnitInfoFromNumberX\n (\n numberX, ExceptionHandlingTypes.NeverTriggerException, prefix.getPrefixUsage()\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo.Unit = unit;\n tempInfo.Prefix = new Prefix(prefix);\n tempInfo.Parts = new ArrayList<UnitPart>\n (\n \tMethodsCommon.GetPartsFromUnit(tempInfo).Parts\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n }\n\n errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n ValueAndUnitString = \"\";\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n UnitString = \"\";\n Unit = Units.None;\n OriginalUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = new ArrayList<UnitPart>(tempInfo.Parts);\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n \n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, ExceptionHandlingTypes.NeverTriggerException\n );\n }",
"public BFUnit(){\n \n }",
"public UnitP(Double value, Units unit, Prefix prefix, ExceptionHandlingTypes exceptionHandling)\n {\n ErrorTypes errorType = \n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo = ExceptionInstantiation.NewUnitInfo(value, unit, prefix);\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n else errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n UnitString = null;\n OriginalUnitString = null;\n Unit = Units.None;\n UnitSystem = UnitSystems.None;\n UnitType = UnitTypes.None;\n ValueAndUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = tempInfo.Parts;\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, exceptionHandling\n );\n }",
"public Unit(String unitName, String symbol, String description) {\n this.name = unitName;\n this.symbol = symbol;\n this.description = description;\n }",
"private Units() {\n // Nothing to do\n }",
"public Unit (java.lang.Integer unitId) {\n\t\tsuper(unitId);\n\t}",
"public abstract double toBasicUnit(double unit);",
"public Unit giveMeUnit(UnitDef unitDef, AIFloat3 pos);",
"public Unit() {\n\t\tthis.set();\n\t}",
"public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }",
"public Unit() {\n\n }",
"public Unit(int x, int y, int width, int height) {\n super(x, y, width, height);\n LOGGER.log(Level.INFO, this.toString() + \" created at (\" + x + \",\" + y + \")\", this.getClass());\n }",
"public TemperatureUnit(double width, double height, double length, StorageLocation myLoc, int tempLvl)\n {\n super(width, height, length, myLoc);\n setTempLvl(tempLvl);\n }",
"public UnitP(String valueAndUnit, ExceptionHandlingTypes exceptionHandling, PrefixUsageTypes prefixUsage)\n {\n ErrorTypes parsingError = \n (\n valueAndUnit == null ? ErrorTypes.NumericParsingError : ErrorTypes.None\n );\n\n UnitInfo unitInfo = ExceptionInstantiation.NewUnitInfo(0.0, exceptionHandling, prefixUsage);\n \n String unitString = \"\";\n\n if (parsingError == ErrorTypes.None)\n {\n UnitInfo tempInfo = MethodsUnitP.ParseValueAndUnit(valueAndUnit);\n \n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n unitString = tempInfo.TempString;\n unitInfo.Value = tempInfo.Value;\n unitInfo.BaseTenExponent = tempInfo.BaseTenExponent;\n }\n else parsingError = tempInfo.Error.Type;\n }\n\n if (parsingError != ErrorTypes.None && !valueAndUnit.contains(\" \"))\n {\n //valueAndUnit is assumed to only contain unit information.\n parsingError = ErrorTypes.None;\n unitInfo.Value = 1.0;\n unitString = valueAndUnit;\n }\n\n UnitPConstructor unitP2 = MethodsUnitP.GetUnitP2(unitInfo, unitString);\n\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getFactor(), prefixUsage);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n (parsingError != ErrorTypes.None ? parsingError : unitP2.ErrorType),\n unitP2.ExceptionHandling\n );\n }",
"static Unit<? extends Quantity> getPowInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow * n), elems[i]._root);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow * n / gcd, elems[i]._root / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, n, 1)};\n return getInstance(unitElems, new Element[0]);\n }",
"public InitialUnit (int owner0, Unit.Type type0, Position pos0) {\n owner = owner0;\n type = type0;\n pos = pos0;\n }",
"public ProductUnit(Unit<?> productUnit) {\n _elements = ((ProductUnit<?>) productUnit)._elements;\n }",
"public UnitP\n (\n Object numberX, String unitString, \n ExceptionHandlingTypes exceptionHandling,\n PrefixUsageTypes prefixUsage\n )\n {\n \t\n UnitPConstructor unitP2 = MethodsUnitP.GetUnitP2\n (\n \tOtherPartsNumberParserMethods.GetUnitInfoFromNumberX(numberX, exceptionHandling, prefixUsage), unitString\n );\n\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = new ArrayList<UnitPart>(unitP2.UnitInfo.Parts);\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n OriginalUnitString = \"\";\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo(unitP2.ErrorType, unitP2.ExceptionHandling);\n }",
"public Units()\n\t{\n\t\t// empty for empty unitset\n\t}",
"public LogicUnit(int width) {\n super(\"LogicUnit\", width);\n }",
"public UnitObject(TimeInterval _interval, T _value) {\r\n this.interval = _interval;\r\n // this.value = _value;\r\n fun = new ConstantFunction<T>(_value);\r\n }",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling\n )\n {\n \tthis(numberX, unit, prefix, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public void setUnit(Length units) {\n unit = units;\n }",
"public Unit (int hp, int str, int mag, int def, int x, int y) {\n this.stats = new Stats(hp, str, mag, def);\n this.position = new Position(x, y);\n }",
"public RegularUnit(Location location, int length, int width, int height){\n // initialise instance variables\n super(location, length, width, height, TYPE);\n }",
"public UnitP(UnitInfo unitInfo, UnitP unitP)\n {\n \tthis(unitInfo, unitP, \"\"); \t\n }",
"private UnitFactory() {\n\t}",
"public Unit(Unit u) {\t\t// Just copy the instance\n\t\tthis.set(u);\n\t}",
"ProductUnit() {\n _elements = new Element[0];\n }",
"public Unit<Length> footSurveyUS() {return footSurveyUS;}",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public UnitsBuilder(String... baseUnitSymbolsPatterns) {\n units = new ArrayList<>();\n units.add(new Unit(baseUnitSymbolsPatterns, 1.0));\n }",
"public Unit<Length> foot() {return foot;}",
"public Unit10(String name)\n {\n \n this.name = name;\n \n \n }",
"Quantity createQuantity();",
"public UnitObj(String tp,String pp) {\r\n\t\tprop=pp;\r\n\t\ttype=tp;\r\n\r\n\t}",
"public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }",
"public final void mult (Unit unit) throws ArithmeticException {\n\t\tlong u = mksa ; double r = factor; double v = value; double o = offset;\n\t\t/* dump(\"mult:this \"); unit.dump(\"mult:unit\"); */\n\t\tif (((mksa&_abs)!=0) && (unit.factor != 1)) throw\t// On a date\n\t\tnew ArithmeticException(\"****Unit.mult on a date!\");\n\t\tif (((mksa|unit.mksa)&_log) != 0) {\n\t\t\tif ((mksa == underScore) && (factor == 1.)) ;\n\t\t\telse if ((unit.mksa == underScore) && (unit.factor == 1.)) ;\n\t\t\telse throw new ArithmeticException\n\t\t\t(\"****Unit: can't multiply logs: \" + symbol + \" x \" + unit.symbol);\n\t\t}\n\t\t/* As soon as there is an operation, the offset is ignored \n\t\t * except if one of the factors is unity.\n\t\t */\n\t\tif ((offset!=0) || (unit.offset!=0)) {\n\t\t\tif (mksa == underScore) offset = unit.offset;\n\t\t\telse if (unit.mksa == underScore) ;\n\t\t\telse offset = 0;\n\t\t}\n\t\tv *= unit.value; \n\t\tr *= unit.factor;\n\t\tu += unit.mksa; u -= underScore;\n\t\tif ((u&0x0c80808080808080L) != 0) throw new ArithmeticException\n\t\t(\"****too large powers in: \" + symbol + \" x \" + unit.symbol);\n\t\tmksa = u;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\t/* Decision for the new symbol */\n\t\tif ((symbol != null) && (unit.symbol != null)) {\n\t\t\tif ((unit.mksa == underScore) && (unit.factor == 1)) return;\t// No unit ...\n\t\t\tif (( mksa == underScore) && ( factor == 1)) symbol = unit.symbol;\n\t\t\telse if ((symbol.equals(unit.symbol)) && (factor == unit.factor))\n\t\t\t\tsymbol = toExpr(symbol) + \"2\" ;\n\t\t\telse symbol = toExpr(symbol) + \".\" + toExpr(unit.symbol) ;\n\t\t}\n\t}",
"public String getUnit();",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"public UnitP(Double value, String unitString, ExceptionHandlingTypes exceptionHandling, PrefixUsageTypes prefixUsage)\n {\n UnitPConstructor unitP2 = MethodsUnitP.GetUnitP2(value, unitString, exceptionHandling, prefixUsage);\n \n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo(unitP2.ErrorType, unitP2.ExceptionHandling);\n }",
"public final EObject ruleUnitConstructionOperator() throws RecognitionException {\n EObject current = null;\n\n EObject lv_unit_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5992:6: ( ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:1: ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:1: ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:3: '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')'\n {\n match(input,55,FOLLOW_55_in_ruleUnitConstructionOperator10420); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getDollarSignKeyword_0(), null); \n \n match(input,25,FOLLOW_25_in_ruleUnitConstructionOperator10430); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getLeftParenthesisKeyword_1(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6001:1: ( (lv_unit_2_0= ruleUnitExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6002:1: (lv_unit_2_0= ruleUnitExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6002:1: (lv_unit_2_0= ruleUnitExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6003:3: lv_unit_2_0= ruleUnitExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitConstructionOperatorAccess().getUnitUnitExpressionParserRuleCall_2_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpression_in_ruleUnitConstructionOperator10451);\n lv_unit_2_0=ruleUnitExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitConstructionOperatorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"unit\",\n \t \t\tlv_unit_2_0, \n \t \t\t\"UnitExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n match(input,26,FOLLOW_26_in_ruleUnitConstructionOperator10461); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getRightParenthesisKeyword_3(), null); \n \n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public Builder setUnit(final Unit value) {\n _unit = value;\n return this;\n }",
"public Unit(String symbol) throws ParseException {\n\t\tthis.set(symbol) ;\n\t}",
"public Unit (int hp, int str, int mag, int def, Position p) {\n this.stats = new Stats(hp, str, mag, def);\n this.position = p;\n }",
"public Unit getUnit() {\n return unit;\n }",
"String getUnit();",
"public Integer CreateUnit(Unit U) {\n\t\tif (UnitContainer.size() == 0) {\n\t\t\tif ((TileID !=4)&(TileID != 3)){\n\t\t\t\tUnitContainer.add(U);\n\t\t\t\tU.MoveLeft = 0.0;\n\t\t\t\tU.locate(xloc, yloc);\n\t\t\t\treturn 1; //Placement success\n\t\t\t} else {\n\t\t\t\treturn 0; //Tile is mountains or water\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0; //Already a unit here\n\t\t}\n\t}",
"public interface Unit {\n\t/**\n\t * Convert value of this unit to u\n\t * @param amount\n\t * \t\t\t\tis value of this Unit\n\t * @param u\n\t * \t\t\tis Unit that we want to convert to\n\t * @return calculated value \n\t */\n\tpublic double convert(double amount, Unit u);\n}",
"public Equation() {\n alpha_arr = new ArrayList<LinkedList<VariableUnit>>();\n for (int i = 0; i < 26; i++) {\n LinkedList<VariableUnit> list = new LinkedList<VariableUnit>();\n alpha_arr.add(list);\n }\n \n op_order = new LinkedList<VariableUnit>();\n }",
"public void setUnits(byte units) { this.units = units; }",
"public Unit<Length> kilometre() {return kilometre;}",
"DefiningUnitType getDefiningUnit();",
"abstract public Unit baseUnit();",
"Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }",
"public Variable(int power, char notation){\n\t\tthis.power = power;\n\t\tthis.notation = notation;\n\t}",
"public Thermometer(Person person){\r\n super(person);\r\n temperature = new MeasureUnit(\"Celsius\",\"º C\", 1);\r\n }",
"public Units(final SystemOfUnits system) {\n metre = system.getUnit(Length.class);\n radian = system.getUnit(Angle.class);\n second = system.getUnit(Time.class);\n pascal = system.getUnit(Pressure.class);\n one = getDimensionless(system);\n kilometre = metre .multiply(1000);\n foot = metre .multiply(0.3048);\n footSurveyUS = metre .multiply(12 / 39.37);\n degree = radian.multiply(Math.PI / 180);\n grad = radian.multiply(Math.PI / 200);\n arcSecond = radian.multiply(Math.PI / (180*60*60));\n microradian = radian.divide(1E6);\n day = second.multiply(24*60*60);\n hectopascal = pascal.multiply(100);\n ppm = one .divide(1000000);\n }",
"public Length getUnit() {\n return unit;\n }",
"public UnitP\n (\n Double value, String unitString, ExceptionHandlingTypes exceptionHandling\n ) \n { \n \tthis (value, unitString, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public Unit getUnitAt(Position p);",
"public Unit<Length> metre() {return metre;}",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public Ingredient(IngredientName name, IngredientUnit unit, IngredientPrice price, MinimumUnit minimum,\n NumUnits numUnits) {\n requireAllNonNull(name);\n this.name = name;\n this.unit = unit;\n this.price = price;\n this.minimum = minimum;\n this.numUnits = numUnits;\n }",
"public UnitP(ParseInfo parseInfo)\n {\n \tthis(parseInfo, \"\");\n }",
"static Unit<? extends Quantity> getQuotientInstance(Unit<?> left,\n Unit<?> right) {\n Element[] leftElems;\n if (left instanceof ProductUnit<?>)\n leftElems = ((ProductUnit<?>) left)._elements;\n else\n leftElems = new Element[]{new Element(left, 1, 1)};\n Element[] rightElems;\n if (right instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) right)._elements;\n rightElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n rightElems[i] = new Element(elems[i]._unit, -elems[i]._pow,\n elems[i]._root);\n }\n } else\n rightElems = new Element[]{new Element(right, -1, 1)};\n return getInstance(leftElems, rightElems);\n }",
"public byte getUnits() { return units; }",
"public void setUnit(Unit unit) {\r\n\t\tthis.unit = unit;\r\n\t}",
"public PowerUp(float x, float y, float rotation, int type)\n {\n super(x, y, rotation);\n this.type = type;\n }",
"public UnitP(Object numberX, String unitString, ExceptionHandlingTypes exceptionHandling)\n {\n \tthis(numberX, unitString, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public final EObject ruleUnitExpressionFactor() throws RecognitionException {\n EObject current = null;\n\n Token lv_operand_0_0=null;\n EObject lv_exponent_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6579:6: ( ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6582:3: lv_operand_0_0= RULE_ID\n {\n lv_operand_0_0=(Token)input.LT(1);\n match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleUnitExpressionFactor11472); \n\n \t\t\tcreateLeafNode(grammarAccess.getUnitExpressionFactorAccess().getOperandIDTerminalRuleCall_0_0(), \"operand\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operand\",\n \t \t\tlv_operand_0_0, \n \t \t\t\"ID\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:2: ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==60) ) {\n alt95=1;\n }\n switch (alt95) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:4: '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n {\n match(input,60,FOLLOW_60_in_ruleUnitExpressionFactor11488); \n\n createLeafNode(grammarAccess.getUnitExpressionFactorAccess().getCircumflexAccentKeyword_1_0(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6608:1: ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6610:3: lv_exponent_2_0= ruleUnitExpressionExponent\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitExpressionFactorAccess().getExponentUnitExpressionExponentParserRuleCall_1_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpressionExponent_in_ruleUnitExpressionFactor11509);\n lv_exponent_2_0=ruleUnitExpressionExponent();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"exponent\",\n \t \t\tlv_exponent_2_0, \n \t \t\t\"UnitExpressionExponent\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}",
"public Units(String unitName, int credits) {\n this.unitName = unitName;\n this.credits = credits;\n }",
"public void setUnit(String unit);",
"Multiply createMultiply();",
"Units getUnits();",
"public Math2()\r\n {\r\n \r\n }",
"abstract Valuable createMoney(double value);",
"public HiloM() { }",
"static Unit<? extends Quantity> getRootInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow), elems[i]._root * n);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow / gcd,\n elems[i]._root * n / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, 1, n)};\n return getInstance(unitElems, new Element[0]);\n }",
"public NegativeUnitsException(double u)\r\n\t{\r\n\t\tsuper(\"Negative number given for units.\" + u);\r\n\t}",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"private UnitManager() {\r\n\t\tUM = new UnitMap(); // create an object\r\n\t}",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public Units(int unitID, String unitName, int credits) {\n this.unitName = unitName;\n this.credits = credits;\n this.unitID = unitID;\n }"
] |
[
"0.6865281",
"0.68328524",
"0.66032916",
"0.6500166",
"0.64789164",
"0.6440444",
"0.6370046",
"0.63176256",
"0.63169676",
"0.6283083",
"0.62728304",
"0.62117064",
"0.61786646",
"0.61204517",
"0.6070494",
"0.6064916",
"0.60550433",
"0.60505396",
"0.6035583",
"0.60319674",
"0.60318625",
"0.60031295",
"0.5973562",
"0.5962496",
"0.59595084",
"0.5940993",
"0.59130764",
"0.59021795",
"0.5867366",
"0.58660394",
"0.5849193",
"0.5822997",
"0.58215654",
"0.5784478",
"0.5784264",
"0.57730377",
"0.5767492",
"0.5761484",
"0.575274",
"0.57521933",
"0.5746972",
"0.5726122",
"0.5684095",
"0.5679548",
"0.5674524",
"0.5635201",
"0.5635128",
"0.5632156",
"0.5599484",
"0.55817187",
"0.55672425",
"0.5558187",
"0.55463976",
"0.5544228",
"0.5537259",
"0.55349106",
"0.55207235",
"0.55187917",
"0.55152595",
"0.55005026",
"0.54986674",
"0.54925585",
"0.54885656",
"0.54830104",
"0.5482627",
"0.5457385",
"0.5452568",
"0.5451944",
"0.5441591",
"0.54158854",
"0.5393497",
"0.5382833",
"0.53696555",
"0.5357213",
"0.5355822",
"0.5347643",
"0.5346618",
"0.534289",
"0.5337134",
"0.5326796",
"0.53252035",
"0.5324882",
"0.5324498",
"0.5321258",
"0.5311972",
"0.53066665",
"0.53053397",
"0.53000474",
"0.5291577",
"0.52855325",
"0.527869",
"0.52782303",
"0.52778363",
"0.5258634",
"0.5258631",
"0.5240466",
"0.52244234",
"0.52244234",
"0.52244234",
"0.5222256"
] |
0.682718
|
2
|
Construct a unit except that the exponent is set as 1
|
Unit(Apfloat unitIn, UnitType utIn) {
this(unitIn, utIn, 1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Unit() {\n\t\tthis(new Apfloat(\"0.0\", APFLOATPRECISION), SCALAR, 1);\n\t}",
"public abstract double toBasicUnit(double unit);",
"Unit(String unitIn, UnitType utIn, int expIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, expIn);\n\t}",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"public UnitP(UnitP unitP, Double value, int baseTenExponent)\n {\n Value = value;\n BaseTenExponent = baseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.Value.toString() +\n (\n unitP.BaseTenExponent != 0 ?\n \"*10^\" + unitP.BaseTenExponent.toString() : \"\"\n );\n ValueAndUnitString = Value.toString() +\n (\n BaseTenExponent != 0 ?\n \"*10^\" + BaseTenExponent.toString() : \"\"\n ) + \" \" + UnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"Unit(Apfloat unitIn, UnitType utIn, int expIn) {\n\t\tunitValue = unitIn;\n\t\tunitType = utIn;\n\t\texponent = expIn;\n\t}",
"Unit(String unitIn, UnitType utIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);\n\t}",
"public UnitsBuilder(String... baseUnitSymbolsPatterns) {\n units = new ArrayList<>();\n units.add(new Unit(baseUnitSymbolsPatterns, 1.0));\n }",
"public Unit<Dimensionless> one() {return one;}",
"static Unit<? extends Quantity> getPowInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow * n), elems[i]._root);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow * n / gcd, elems[i]._root / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, n, 1)};\n return getInstance(unitElems, new Element[0]);\n }",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"public final void mult (Unit unit) throws ArithmeticException {\n\t\tlong u = mksa ; double r = factor; double v = value; double o = offset;\n\t\t/* dump(\"mult:this \"); unit.dump(\"mult:unit\"); */\n\t\tif (((mksa&_abs)!=0) && (unit.factor != 1)) throw\t// On a date\n\t\tnew ArithmeticException(\"****Unit.mult on a date!\");\n\t\tif (((mksa|unit.mksa)&_log) != 0) {\n\t\t\tif ((mksa == underScore) && (factor == 1.)) ;\n\t\t\telse if ((unit.mksa == underScore) && (unit.factor == 1.)) ;\n\t\t\telse throw new ArithmeticException\n\t\t\t(\"****Unit: can't multiply logs: \" + symbol + \" x \" + unit.symbol);\n\t\t}\n\t\t/* As soon as there is an operation, the offset is ignored \n\t\t * except if one of the factors is unity.\n\t\t */\n\t\tif ((offset!=0) || (unit.offset!=0)) {\n\t\t\tif (mksa == underScore) offset = unit.offset;\n\t\t\telse if (unit.mksa == underScore) ;\n\t\t\telse offset = 0;\n\t\t}\n\t\tv *= unit.value; \n\t\tr *= unit.factor;\n\t\tu += unit.mksa; u -= underScore;\n\t\tif ((u&0x0c80808080808080L) != 0) throw new ArithmeticException\n\t\t(\"****too large powers in: \" + symbol + \" x \" + unit.symbol);\n\t\tmksa = u;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\t/* Decision for the new symbol */\n\t\tif ((symbol != null) && (unit.symbol != null)) {\n\t\t\tif ((unit.mksa == underScore) && (unit.factor == 1)) return;\t// No unit ...\n\t\t\tif (( mksa == underScore) && ( factor == 1)) symbol = unit.symbol;\n\t\t\telse if ((symbol.equals(unit.symbol)) && (factor == unit.factor))\n\t\t\t\tsymbol = toExpr(symbol) + \"2\" ;\n\t\t\telse symbol = toExpr(symbol) + \".\" + toExpr(unit.symbol) ;\n\t\t}\n\t}",
"Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }",
"public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }",
"public Monom(String s) {\r\n\t\tif(s==null) {\r\n\t\t\tthrow new IllegalArgumentException(\"not valid String\");\r\n\t\t}\r\n\t\tint indexOfPower = s.indexOf('^');\r\n\t\tint indexOfX = s.indexOf('x');\r\n\t\t\r\n\t\tif(s==\"0\" || s==\"0.0\") {\r\n\t\t\tthis.set_coefficient(0);\r\n\t\t\tthis.set_power(0);\r\n\t\t}\r\n\t\t\r\n\t\tif(s.charAt(0)=='x') {\r\n\t\t\tthis.set_coefficient(1);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tif(indexOfX==-1) {\r\n\t\t\t\tdouble a = Double.parseDouble(s);\r\n\t\t\t\tthis.set_coefficient(a);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tString tmp=\"\";\r\n\t\t\t\tfor(int i = 0; i < indexOfX; i++){\r\n\t\t\t\t\ttmp += s.charAt(i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(tmp.equals(\"-\")) \r\n\t\t\t\t\tthis.set_coefficient(-1);\r\n\r\n\t\t\t\telse {\r\n\t\t\t\t\tdouble a = Double.parseDouble(tmp);\r\n\t\t\t\t\tthis.set_coefficient(a);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\tif(indexOfPower==-1) {\r\n\t\t\t\t\r\n\t\t\t\tif(indexOfX==-1)\r\n\t\t\t\t\tthis.set_power(0);\r\n\t\t\t\t\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.set_power(1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tString tmp=\"\";\r\n\t\t\t\tfor(int i = indexOfPower+1; i <s.length() ; i++){\r\n\t\t\t\t\ttmp += s.charAt(i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tint b = Integer.valueOf(tmp);\r\n\t\t\t\t\r\n\t\t\t\tif(b<0)\r\n\t\t\t\t\tthrow new RuntimeException(\"The power is negative\");\r\n\t\t\t\t\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.set_power(b);\r\n\t\t}\r\n\t}",
"public UnitP(Double value, Units unit, Prefix prefix, ExceptionHandlingTypes exceptionHandling)\n {\n ErrorTypes errorType = \n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo = ExceptionInstantiation.NewUnitInfo(value, unit, prefix);\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n else errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n UnitString = null;\n OriginalUnitString = null;\n Unit = Units.None;\n UnitSystem = UnitSystems.None;\n UnitType = UnitTypes.None;\n ValueAndUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = tempInfo.Parts;\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, exceptionHandling\n );\n }",
"<C> UnspecifiedValueExp<C> createUnspecifiedValueExp();",
"public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}",
"public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }",
"@Test\n public void test_ScientificNotation_0130() {\n ScientificNotation x = new ScientificNotation(BigDecimal.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }",
"public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}",
"public Units()\n\t{\n\t\t// empty for empty unitset\n\t}",
"Multiply createMultiply();",
"static Unit<? extends Quantity> getRootInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow), elems[i]._root * n);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow / gcd,\n elems[i]._root * n / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, 1, n)};\n return getInstance(unitElems, new Element[0]);\n }",
"public NegativeUnitsException(double u)\r\n\t{\r\n\t\tsuper(\"Negative number given for units.\" + u);\r\n\t}",
"@Override\n public Expression create(Expression a, Expression b) {\n return new Minus(a, b);\n }",
"Unit getUnit();",
"public Builder setUnit(final Unit value) {\n _unit = value;\n return this;\n }",
"private Units() {\n // Nothing to do\n }",
"public static UnitsBuilder baseUnit(String... baseUnitSymbolsPatterns) {\n return new UnitsBuilder(baseUnitSymbolsPatterns);\n }",
"public void setUnit(Length units) {\n unit = units;\n }",
"LengthUnit(double metres) {\n/* 24 */ this.metres = metres;\n/* 25 */ this.dx = new Dx(1.0D, this);\n/* */ }",
"public AncientEgyptianMultiplication( ) {\r\n }",
"Quantity createQuantity();",
"Fraction () {\n this (0, 1);\n }",
"public OscillatorCalculator() {\n this(1);\n }",
"public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"@Override\n\tpublic double pow(double base, double exp) {\n\t\treturn 0;\n\t}",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling, \n PrefixUsageTypes prefixUsage\n )\n {\n if (prefix == null) prefix = new Prefix();\n\n ErrorTypes errorType =\n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n tempInfo = OtherPartsNumberParserMethods.GetUnitInfoFromNumberX\n (\n numberX, ExceptionHandlingTypes.NeverTriggerException, prefix.getPrefixUsage()\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo.Unit = unit;\n tempInfo.Prefix = new Prefix(prefix);\n tempInfo.Parts = new ArrayList<UnitPart>\n (\n \tMethodsCommon.GetPartsFromUnit(tempInfo).Parts\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n }\n\n errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n ValueAndUnitString = \"\";\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n UnitString = \"\";\n Unit = Units.None;\n OriginalUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = new ArrayList<UnitPart>(tempInfo.Parts);\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n \n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, ExceptionHandlingTypes.NeverTriggerException\n );\n }",
"public void setUnit(String unit);",
"public Builder clearPower() {\n bitField0_ = (bitField0_ & ~0x00000040);\n power_ = 0F;\n onChanged();\n return this;\n }",
"public NoiseCalculator() {\n this(1.0);\n }",
"private int toPower(int base, int exponent)\n\t {\n\t \t if(exponent > 0)\n\t {\n\t return toPower(base, exponent - 1) * base;\n\t }\n\t return 1;\n\t }",
"DefiningUnitType getDefiningUnit();",
"@Test\n public void test_ScientificNotation_0120() {\n ScientificNotation x = new ScientificNotation(BigInteger.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }",
"@Test\n public void test_ScientificNotation_0110() {\n ScientificNotation x = new ScientificNotation(0);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }",
"public void setExponent(Integer exponent);",
"public Rational() {\n\t\tthis(1,1);\n\t}",
"public abstract String getExponent();",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling\n )\n {\n \tthis(numberX, unit, prefix, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public Fraction(){\n\t\n\t\tsetFraction(0,1);\n }",
"public Builder clearNum1() {\r\n\t\t\t\tbitField0_ = (bitField0_ & ~0x00000002);\r\n\t\t\t\tnum1_ = 0;\r\n\t\t\t\tonChanged();\r\n\t\t\t\treturn this;\r\n\t\t\t}",
"public final EObject ruleUnitExpressionFactor() throws RecognitionException {\n EObject current = null;\n\n Token lv_operand_0_0=null;\n EObject lv_exponent_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6579:6: ( ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6582:3: lv_operand_0_0= RULE_ID\n {\n lv_operand_0_0=(Token)input.LT(1);\n match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleUnitExpressionFactor11472); \n\n \t\t\tcreateLeafNode(grammarAccess.getUnitExpressionFactorAccess().getOperandIDTerminalRuleCall_0_0(), \"operand\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operand\",\n \t \t\tlv_operand_0_0, \n \t \t\t\"ID\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:2: ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==60) ) {\n alt95=1;\n }\n switch (alt95) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:4: '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n {\n match(input,60,FOLLOW_60_in_ruleUnitExpressionFactor11488); \n\n createLeafNode(grammarAccess.getUnitExpressionFactorAccess().getCircumflexAccentKeyword_1_0(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6608:1: ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6610:3: lv_exponent_2_0= ruleUnitExpressionExponent\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitExpressionFactorAccess().getExponentUnitExpressionExponentParserRuleCall_1_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpressionExponent_in_ruleUnitExpressionFactor11509);\n lv_exponent_2_0=ruleUnitExpressionExponent();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"exponent\",\n \t \t\tlv_exponent_2_0, \n \t \t\t\"UnitExpressionExponent\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"public LogicUnit(int width) {\n super(\"LogicUnit\", width);\n }",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public Complex Minus (Complex z) {\n\nreturn new Complex(u-z.u,v-z.v);\n\n}",
"public UnitConverter() {\r\n getParameters();\r\n }",
"public void setUnits(byte units) { this.units = units; }",
"public UnitP\n (\n Double value, String unitString, ExceptionHandlingTypes exceptionHandling\n ) \n { \n \tthis (value, unitString, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public Rational() {\n\tnumerator = 0;\n\tdenominator = 1;\n }",
"public L1513_Rational() {\n\t this(0, 1);\n\t }",
"public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }",
"@Override\n public double getPower() {\n return 0;\n }",
"private final int unit1 (Parsing text, StringBuffer edited) \n\tthrows ParseException {\n\t\tint posini = text.pos;\t\t// Initial position in text\n\t\tUdef theUnit = uDef[0];\t\t// Default Unit = Unitless\n\t\tint mult_index = -1;\t\t// Index in mul_fact by e.g. μ\n\t\tint power = 1;\n\t\tchar op = Character.MIN_VALUE;\t// Operator power\n\t\tint error = 0;\t\t\t// Error counter\n\t\tboolean close_bracket = false;\t// () not edited when buffer empty\n\t\tint edited_pos = -1;\n\t\tint i, s;\n\n\t\t/* Initialize the Unit to unitless */\n\t\tmksa = underScore; factor = 1.;\n\t\tif (text.pos >= text.length) return(0);\t// Unitless\n\n\t\tif (DEBUG>0) System.out.println(\"....unit1(\" + text + \")\");\n\t\tswitch(text.a[text.pos]) {\n\t\tcase '(':\t\t/* Match parenthesized expression */\n\t\t\ttheUnit = null;\t// Parenthese do NOT define any unit.\n\t\t\ttext.pos++;\t\t// Accept the '('\n\t\t\tclose_bracket = (edited != null) ; /*&& (edited.length() > 0)*/\n\t\t\tif (close_bracket) {\n\t\t\t\tedited_pos = edited.length();\t// where to insert 'square'\n\t\t\t\tedited.append('(') ;\n\t\t\t}\n\t\t\tthis.unitec(text, edited) ;\n\t\t\tif ((text.pos < text.length) && (text.a[text.pos] == ')'))\n\t\t\t\ttext.pos++;\n\t\t\telse throw new ParseException\n\t\t\t(\"****Unit: Missing ) in '\" + text + \"'\", text.pos);\n\t\t\tif (close_bracket) {\n\t\t\t\t// Remove the Ending blanks, before closing the bracket\n\t\t\t\ti = edited.length(); \n\t\t\t\twhile ((--i >= 0) && (edited.charAt(i) == ' ')) ;\n\t\t\t\tedited.setLength(++i);\n\t\t\t\tedited.append(')') ;\n\t\t\t\tclose_bracket = false;\n\t\t\t}\n\t\t\tbreak ;\n\t\tcase '\"':\t\t/* Quoted units must match exactly */\n\t\t\ti = text.matchingQuote();\n\t\t\tif (i<text.length) i++;\t// Matching quote\n\t\t\ttheUnit = uLookup(text, i-text.pos);\n\t\t\tif (theUnit == null) throw new ParseException\n\t\t\t(\"****Unit: quoted unit does not match\", text.pos);\n\t\t\tbreak ;\n\t\tcase '-':\t\t// Unitless ?\n\t\t\ts = text.pos++;\n\t\t\tif (text.pos >= text.length) break;\n\t\t\tif (Character.isDigit(text.a[text.pos])) { \t// Number ?\n\t\t\t\ttext.pos = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile ((text.pos<text.length) && (text.a[text.pos]=='-')) \n\t\t\t\ttext.pos++;\t// Accept unitless as \"--\" or \"---\"\n\t\t\tbreak;\n\t\tcase '%':\n\t\t\ttheUnit = uLookup(text, 1);\n\t\t\tbreak;\n\t\tcase '\\\\':\t\t// Special constants\n\t\t\tfor (i=text.pos+1; (i<text.length) && Character.isLetter(text.a[i]); \n\t\t\ti++) ;\n\t\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\t\tif (theUnit == null) error++ ;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tfor (i=text.pos; (i<text.length) && Character.isLetter(text.a[i]); \n\t\t\ti++) ;\n\t\t// A unit may be terminated by 0 (a0 = classical electron radius)\n\t\tif ((i<text.length) && (text.a[i] == '0')) i++;\n\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\tif (theUnit != null) break;\n\t\t/* Simple unit not found. Look for multiple prefix */\n\t\ts = text.pos ;\t// Save \n\t\tif ((text.length-text.pos)>1) \n\t\t\tmult_index = text.lookup(mul_symb) ;\n\t\tif (mult_index < 0) break;\n\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\tif (theUnit == null) text.pos = s; \n\t\t}\n\t\t/* Look now for a Power: */\n\t\tif ((error == 0) && (text.pos < text.length)) \n\t\t\top = text.a[text.pos];\n\t\t/* Power is however not acceptable for complex and date numbers */\n\t\tif (theUnit != null) {\n\t\t\tif ((theUnit.mksa&(_abs|_pic)) != 0)\n\t\t\t\top = Character.MIN_VALUE;\n\t\t}\n\t\tif ((op == '+') || (op == '-') || (op == '^') || \n\t\t\t\t(Character.isDigit(op) && (op != '0'))) {\n\t\t\tif (DEBUG>0) System.out.print(\" look for power with op=\" + op);\n\t\t\tif (op == '^') text.pos += 1;\n\t\t\tif (text.pos < text.length) {\n\t\t\t\top = text.a[text.pos];\n\t\t\t\tif (op == '+') text.pos++ ;\n\t\t\t\tif (op != '-') op = '+';\n\t\t\t\tpower = text.parseInt() ;\n\t\t\t\t// A zero-power is illegal !!\n\t\t\t\tif (power == 0) error++;\n\t\t\t\t// 'square' or 'cubic' is spelled out BEFORE the unit name\n\t\t\t\telse if ((power > 0) && (power < 10) && (edited != null)) {\n\t\t\t\t\ttext.pos--;\t\t// Now text is the digit of power\n\t\t\t\t\ti = text.lookup(op_symb) ;\n\t\t\t\t\tif (i >= 0) { \t// Square or cubic\n\t\t\t\t\t\tif (edited_pos >= 0)\n\t\t\t\t\t\t\tedited.insert(edited_pos, op_text[i]);\n\t\t\t\t\t\telse edited.append(op_text[i]) ; \n\t\t\t\t\t\top = ' '; \t// Power is now edited\n\t\t\t\t\t}\n\t\t\t\t\telse text.pos++;\n\t\t\t\t}\n\t\t\t\tif (DEBUG>0) System.out.print(\", power=\" + power);\n\t\t\t}\n\t\t\telse error++;\n\t\t\tif (DEBUG>0) System.out.println(\", error=\" + error);\n\t\t}\n\n\t\tif (error>0) throw new ParseException\n\t\t(\"****Unit: '\" + text + \"'+\" + text.pos, text.pos) ;\n\n\t\tif (mult_index >= 0) {\t\t// Multiplicities like 'k', 'μ', ...\n\t\t\tfactor *= AstroMath.dexp(mul_fact[mult_index]);\n\t\t\tif (edited != null) edited.append(mul_text[mult_index]) ;\n\t\t}\n\n\t\tif (theUnit != null) {\n\t\t\tfactor *= theUnit.fact ;\n\t\t\tmksa = theUnit.mksa;\n\t\t\toffset = theUnit.orig;\n\t\t\tif (edited != null)\n\t\t\t\tedited.append(theUnit.expl) ;\n\t\t}\n\n\t\tif (power != 1) {\n\t\t\tthis.power (power) ;\n\t\t\tif ((op != ' ') && (edited != null)) {\n\t\t\t\tedited.append(\"power\") ;\n\t\t\t\tif (power>=0) edited.append(op);\t// - sign included...\n\t\t\t\tedited.append(power);\t\t\t// by this edition!\n\t\t\t}\n\t\t}\n\t\ts = text.pos - posini;\n\t\tif (DEBUG>0) System.out.println(\" =>unit1: return=\" + s \n\t\t\t\t+ \", f=\"+factor + \", val=\"+value);\n\t\treturn(s);\n\t}",
"ChronoUnit getUnit();",
"public Unit giveMeUnit(UnitDef unitDef, AIFloat3 pos);",
"public Unit() {\n\t\tthis.set();\n\t}",
"LengthScalarMultiply createLengthScalarMultiply();",
"public Clorus (double e) {\n super(\"clorus\");\n if (e < 0) {\n energy = 0;\n }else { energy = e;}\n r = 0;\n g = 0;\n b = 0;\n }",
"public MyDouble() {\n this.setValue(0);\n }",
"public UnitP\n (\n UnitP unitP, ErrorTypes errorType, ExceptionHandlingTypes exceptionHandling\n )\n {\n if (unitP == null) unitP = new UnitP();\n\n UnitPConstructor unitP2 = new UnitPConstructor\n (\n unitP.OriginalUnitString, ExceptionInstantiation.NewUnitInfo(unitP),\n UnitTypes.None, UnitSystems.None, errorType,\n (\n exceptionHandling != ExceptionHandlingTypes.NeverTriggerException ?\n exceptionHandling : unitP.Error.ExceptionHandling\n )\n );\n\n if (unitP2.ErrorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n Unit = Units.None;\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n OriginalUnitString = \"\";\n ValueAndUnitString = \"\";\n UnitString = \"\";\n }\n else\n {\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n \tunitP2.ErrorType, unitP2.ExceptionHandling\n );\n }",
"public Fraction() {\n this.numerator = 0;\n this.denominator = 1;\n }",
"public Fraction()\r\n {\r\n this.numerator = 0;\r\n this.denominator = 1;\r\n }",
"public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Cylinder() {\n\t\tthis(1.0);\n\t}",
"public LeftWallRepulsionForce (double magnitude, double exponent) {\n super(magnitude, exponent);\n }",
"String getUnit();",
"public ResolutionUnitTag()\r\n\t{\r\n\t\tthis(INCH);\r\n\t}",
"NumberValue createNumberValue();",
"public final EObject ruleUnitExpressionExponent() throws RecognitionException {\n EObject current = null;\n\n Token lv_negative_0_0=null;\n Token lv_value_1_0=null;\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6654:6: ( ( ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:1: ( ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:1: ( ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:2: ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:2: ( (lv_negative_0_0= '-' ) )?\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==61) ) {\n alt96=1;\n }\n switch (alt96) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6656:1: (lv_negative_0_0= '-' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6656:1: (lv_negative_0_0= '-' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6657:3: lv_negative_0_0= '-'\n {\n lv_negative_0_0=(Token)input.LT(1);\n match(input,61,FOLLOW_61_in_ruleUnitExpressionExponent11600); \n\n createLeafNode(grammarAccess.getUnitExpressionExponentAccess().getNegativeHyphenMinusKeyword_0_0(), \"negative\"); \n \n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionExponentRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t \n \t try {\n \t \t\tset(current, \"negative\", true, \"-\", lastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n break;\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6676:3: ( (lv_value_1_0= RULE_INTEGER ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6677:1: (lv_value_1_0= RULE_INTEGER )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6677:1: (lv_value_1_0= RULE_INTEGER )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6678:3: lv_value_1_0= RULE_INTEGER\n {\n lv_value_1_0=(Token)input.LT(1);\n match(input,RULE_INTEGER,FOLLOW_RULE_INTEGER_in_ruleUnitExpressionExponent11631); \n\n \t\t\tcreateLeafNode(grammarAccess.getUnitExpressionExponentAccess().getValueINTEGERTerminalRuleCall_1_0(), \"value\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionExponentRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"value\",\n \t \t\tlv_value_1_0, \n \t \t\t\"INTEGER\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"float mo106363e();",
"public UnitP RemoveCurrentBaseTen()\n {\n UnitInfo tempInfo = Managed.ConvertBaseTenToValue\n (\n \tExceptionInstantiation.NewUnitInfo(this)\n );\n \n return new UnitP(this, tempInfo.Value, tempInfo.BaseTenExponent);\n }",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public Unit (java.lang.Integer unitId) {\n\t\tsuper(unitId);\n\t}",
"@Override\n protected AngularSpeed createMeasurement(double value, AngularSpeedUnit unit) {\n return new AngularSpeed(value, unit);\n }",
"public Unit<Length> footSurveyUS() {return footSurveyUS;}",
"public void setUnit (String value) {\n\tthis.unit = value;\n }",
"public SoilMoisture(double value, Unit unit) throws IllegalArgumentException {\r\n super(value, unit, COMPARE_PRECISION, SoilMoisture::new);\r\n }",
"TimeUnit() {\n }",
"public Builder clearTxpower() {\n bitField0_ = (bitField0_ & ~0x00001000);\n txpower_ = getDefaultInstance().getTxpower();\n onChanged();\n return this;\n }",
"public BottomWallRepulsionForce (double magnitude, double exponent) {\n super(magnitude, exponent);\n }",
"UndefinedLiteralExp createUndefinedLiteralExp();",
"public Literal createLiteral(double b) throws ModelException{\n\n return createLiteral(String.valueOf(b));\n }",
"public Rational()\n\t{\n\t\tthis.setNumer(0);\n\t\tthis.setDenom(0);\n\t}",
"private static Unit<Dimensionless> getDimensionless(final SystemOfUnits system) {\n Unit<Dimensionless> unit = system.getUnit(Dimensionless.class);\n if (unit == null) try {\n unit = ((Unit<?>) Class.forName(\"tec.units.ri.AbstractUnit\").getField(\"ONE\").get(null)).asType(Dimensionless.class);\n } catch (ReflectiveOperationException | ClassCastException e) {\n throw new IllegalArgumentException(\"Cannot create a dimensionless unit from the given provider.\");\n }\n return unit;\n }",
"public String getUnit();",
"Complex() {\n real = 0.0;\n imag = 0.0;\n }",
"@Override\n\tpublic double derive(double input) {\n\t\treturn 1;\n\t}"
] |
[
"0.6479448",
"0.60498494",
"0.581749",
"0.57888067",
"0.56831485",
"0.566306",
"0.5631938",
"0.5551148",
"0.5478209",
"0.5453422",
"0.5450966",
"0.53611004",
"0.5315059",
"0.52747226",
"0.52674425",
"0.5262269",
"0.5249129",
"0.5247641",
"0.5228922",
"0.52082205",
"0.5190297",
"0.51870525",
"0.51770025",
"0.51671857",
"0.5150529",
"0.5150434",
"0.51222026",
"0.5114785",
"0.51134336",
"0.511029",
"0.51089644",
"0.5107719",
"0.510648",
"0.50989914",
"0.5091405",
"0.50758964",
"0.5063904",
"0.50570583",
"0.50540406",
"0.5047116",
"0.50229406",
"0.5018526",
"0.5010938",
"0.49992567",
"0.49831292",
"0.49826825",
"0.4977616",
"0.497672",
"0.497508",
"0.49618977",
"0.49580592",
"0.49543455",
"0.4938643",
"0.4934554",
"0.4925528",
"0.49218076",
"0.4908394",
"0.4904616",
"0.4894703",
"0.48835883",
"0.48782122",
"0.48661786",
"0.48657382",
"0.48656824",
"0.48607266",
"0.48553485",
"0.48524123",
"0.4852389",
"0.48399016",
"0.48381233",
"0.483606",
"0.48337123",
"0.48114872",
"0.48038998",
"0.48036307",
"0.48017383",
"0.48010322",
"0.47919577",
"0.47819015",
"0.4773067",
"0.47727537",
"0.47605693",
"0.47588715",
"0.47587872",
"0.47497404",
"0.47460237",
"0.47430247",
"0.47405514",
"0.47370064",
"0.47355735",
"0.47348964",
"0.47344062",
"0.47335494",
"0.47252122",
"0.47202843",
"0.47202048",
"0.47198284",
"0.4717639",
"0.47165787",
"0.47162285"
] |
0.5512739
|
8
|
Construct a Unit, its UnitType, and its exponent
|
Unit(String unitIn, UnitType utIn, int expIn) {
this(new Apfloat(unitIn, APFLOATPRECISION), utIn, expIn);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Unit(Apfloat unitIn, UnitType utIn, int expIn) {\n\t\tunitValue = unitIn;\n\t\tunitType = utIn;\n\t\texponent = expIn;\n\t}",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"Unit() {\n\t\tthis(new Apfloat(\"0.0\", APFLOATPRECISION), SCALAR, 1);\n\t}",
"Unit(Apfloat unitIn, UnitType utIn) {\n\t\tthis(unitIn, utIn, 1);\n\t}",
"Unit(String unitIn, UnitType utIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);\n\t}",
"public UnitP\n (\n UnitP unitP, ErrorTypes errorType, ExceptionHandlingTypes exceptionHandling\n )\n {\n if (unitP == null) unitP = new UnitP();\n\n UnitPConstructor unitP2 = new UnitPConstructor\n (\n unitP.OriginalUnitString, ExceptionInstantiation.NewUnitInfo(unitP),\n UnitTypes.None, UnitSystems.None, errorType,\n (\n exceptionHandling != ExceptionHandlingTypes.NeverTriggerException ?\n exceptionHandling : unitP.Error.ExceptionHandling\n )\n );\n\n if (unitP2.ErrorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n Unit = Units.None;\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n OriginalUnitString = \"\";\n ValueAndUnitString = \"\";\n UnitString = \"\";\n }\n else\n {\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n \tunitP2.ErrorType, unitP2.ExceptionHandling\n );\n }",
"public abstract double toBasicUnit(double unit);",
"public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"public UnitP(UnitP unitP, Double value, int baseTenExponent)\n {\n Value = value;\n BaseTenExponent = baseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.Value.toString() +\n (\n unitP.BaseTenExponent != 0 ?\n \"*10^\" + unitP.BaseTenExponent.toString() : \"\"\n );\n ValueAndUnitString = Value.toString() +\n (\n BaseTenExponent != 0 ?\n \"*10^\" + BaseTenExponent.toString() : \"\"\n ) + \" \" + UnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"Unit getUnit();",
"public Unit giveMeUnit(UnitDef unitDef, AIFloat3 pos);",
"public Unit(float length, float width, float height, float totalCost, String unitKind, Furniture furniture, Electrictiy electrictiy, Wall wall, Roof roof, Floor floor) {\n this.length = length;\n this.width = width;\n this.height = height;\n this.totalCost = totalCost;\n this.unitKind = unitKind;\n this.furniture = furniture;\n this.electrictiy = electrictiy;\n this.wall = wall;\n this.roof = roof;\n this.floor = floor;\n }",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling, \n PrefixUsageTypes prefixUsage\n )\n {\n if (prefix == null) prefix = new Prefix();\n\n ErrorTypes errorType =\n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n tempInfo = OtherPartsNumberParserMethods.GetUnitInfoFromNumberX\n (\n numberX, ExceptionHandlingTypes.NeverTriggerException, prefix.getPrefixUsage()\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo.Unit = unit;\n tempInfo.Prefix = new Prefix(prefix);\n tempInfo.Parts = new ArrayList<UnitPart>\n (\n \tMethodsCommon.GetPartsFromUnit(tempInfo).Parts\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n }\n\n errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n ValueAndUnitString = \"\";\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n UnitString = \"\";\n Unit = Units.None;\n OriginalUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = new ArrayList<UnitPart>(tempInfo.Parts);\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n \n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, ExceptionHandlingTypes.NeverTriggerException\n );\n }",
"public Unit(float length, float width, float height, float totalCost, String unitKind, Furniture furniture, Electrictiy electrictiy, Wall wall, Roof roof, Floor floor, Plumbing plumbing) {\n this.length = length;\n this.width = width;\n this.height = height;\n this.totalCost = totalCost;\n this.unitKind = unitKind;\n this.furniture = furniture;\n this.electrictiy = electrictiy;\n this.wall = wall;\n this.roof = roof;\n this.floor = floor;\n this.plumbing = plumbing;\n }",
"public UnitConverter() {\r\n getParameters();\r\n }",
"static Unit<? extends Quantity> getPowInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow * n), elems[i]._root);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow * n / gcd, elems[i]._root / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, n, 1)};\n return getInstance(unitElems, new Element[0]);\n }",
"public UnitP(Double value, Units unit, Prefix prefix, ExceptionHandlingTypes exceptionHandling)\n {\n ErrorTypes errorType = \n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo = ExceptionInstantiation.NewUnitInfo(value, unit, prefix);\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n else errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n UnitString = null;\n OriginalUnitString = null;\n Unit = Units.None;\n UnitSystem = UnitSystems.None;\n UnitType = UnitTypes.None;\n ValueAndUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = tempInfo.Parts;\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, exceptionHandling\n );\n }",
"public UnitP(String valueAndUnit, ExceptionHandlingTypes exceptionHandling, PrefixUsageTypes prefixUsage)\n {\n ErrorTypes parsingError = \n (\n valueAndUnit == null ? ErrorTypes.NumericParsingError : ErrorTypes.None\n );\n\n UnitInfo unitInfo = ExceptionInstantiation.NewUnitInfo(0.0, exceptionHandling, prefixUsage);\n \n String unitString = \"\";\n\n if (parsingError == ErrorTypes.None)\n {\n UnitInfo tempInfo = MethodsUnitP.ParseValueAndUnit(valueAndUnit);\n \n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n unitString = tempInfo.TempString;\n unitInfo.Value = tempInfo.Value;\n unitInfo.BaseTenExponent = tempInfo.BaseTenExponent;\n }\n else parsingError = tempInfo.Error.Type;\n }\n\n if (parsingError != ErrorTypes.None && !valueAndUnit.contains(\" \"))\n {\n //valueAndUnit is assumed to only contain unit information.\n parsingError = ErrorTypes.None;\n unitInfo.Value = 1.0;\n unitString = valueAndUnit;\n }\n\n UnitPConstructor unitP2 = MethodsUnitP.GetUnitP2(unitInfo, unitString);\n\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getFactor(), prefixUsage);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n (parsingError != ErrorTypes.None ? parsingError : unitP2.ErrorType),\n unitP2.ExceptionHandling\n );\n }",
"public Unit(String unitName, String symbol, String description) {\n this.name = unitName;\n this.symbol = symbol;\n this.description = description;\n }",
"LengthUnit(double metres) {\n/* 24 */ this.metres = metres;\n/* 25 */ this.dx = new Dx(1.0D, this);\n/* */ }",
"public UnitsBuilder(String... baseUnitSymbolsPatterns) {\n units = new ArrayList<>();\n units.add(new Unit(baseUnitSymbolsPatterns, 1.0));\n }",
"public UnitP\n (\n Object numberX, String unitString, \n ExceptionHandlingTypes exceptionHandling,\n PrefixUsageTypes prefixUsage\n )\n {\n \t\n UnitPConstructor unitP2 = MethodsUnitP.GetUnitP2\n (\n \tOtherPartsNumberParserMethods.GetUnitInfoFromNumberX(numberX, exceptionHandling, prefixUsage), unitString\n );\n\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = new ArrayList<UnitPart>(unitP2.UnitInfo.Parts);\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n OriginalUnitString = \"\";\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo(unitP2.ErrorType, unitP2.ExceptionHandling);\n }",
"public void setUnit(Length units) {\n unit = units;\n }",
"DefiningUnitType getDefiningUnit();",
"public Unit<Length> footSurveyUS() {return footSurveyUS;}",
"public Integer CreateUnit(Unit U) {\n\t\tif (UnitContainer.size() == 0) {\n\t\t\tif ((TileID !=4)&(TileID != 3)){\n\t\t\t\tUnitContainer.add(U);\n\t\t\t\tU.MoveLeft = 0.0;\n\t\t\t\tU.locate(xloc, yloc);\n\t\t\t\treturn 1; //Placement success\n\t\t\t} else {\n\t\t\t\treturn 0; //Tile is mountains or water\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0; //Already a unit here\n\t\t}\n\t}",
"public TemperatureUnit(double width, double height, double length, StorageLocation myLoc, int tempLvl)\n {\n super(width, height, length, myLoc);\n setTempLvl(tempLvl);\n }",
"public final void mult (Unit unit) throws ArithmeticException {\n\t\tlong u = mksa ; double r = factor; double v = value; double o = offset;\n\t\t/* dump(\"mult:this \"); unit.dump(\"mult:unit\"); */\n\t\tif (((mksa&_abs)!=0) && (unit.factor != 1)) throw\t// On a date\n\t\tnew ArithmeticException(\"****Unit.mult on a date!\");\n\t\tif (((mksa|unit.mksa)&_log) != 0) {\n\t\t\tif ((mksa == underScore) && (factor == 1.)) ;\n\t\t\telse if ((unit.mksa == underScore) && (unit.factor == 1.)) ;\n\t\t\telse throw new ArithmeticException\n\t\t\t(\"****Unit: can't multiply logs: \" + symbol + \" x \" + unit.symbol);\n\t\t}\n\t\t/* As soon as there is an operation, the offset is ignored \n\t\t * except if one of the factors is unity.\n\t\t */\n\t\tif ((offset!=0) || (unit.offset!=0)) {\n\t\t\tif (mksa == underScore) offset = unit.offset;\n\t\t\telse if (unit.mksa == underScore) ;\n\t\t\telse offset = 0;\n\t\t}\n\t\tv *= unit.value; \n\t\tr *= unit.factor;\n\t\tu += unit.mksa; u -= underScore;\n\t\tif ((u&0x0c80808080808080L) != 0) throw new ArithmeticException\n\t\t(\"****too large powers in: \" + symbol + \" x \" + unit.symbol);\n\t\tmksa = u;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\t/* Decision for the new symbol */\n\t\tif ((symbol != null) && (unit.symbol != null)) {\n\t\t\tif ((unit.mksa == underScore) && (unit.factor == 1)) return;\t// No unit ...\n\t\t\tif (( mksa == underScore) && ( factor == 1)) symbol = unit.symbol;\n\t\t\telse if ((symbol.equals(unit.symbol)) && (factor == unit.factor))\n\t\t\t\tsymbol = toExpr(symbol) + \"2\" ;\n\t\t\telse symbol = toExpr(symbol) + \".\" + toExpr(unit.symbol) ;\n\t\t}\n\t}",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"Quantity createQuantity();",
"private Units() {\n // Nothing to do\n }",
"String getUnit();",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"public Units()\n\t{\n\t\t// empty for empty unitset\n\t}",
"public String getUnit();",
"public InitialUnit (int owner0, Unit.Type type0, Position pos0) {\n owner = owner0;\n type = type0;\n pos = pos0;\n }",
"public void setUnits(byte units) { this.units = units; }",
"public Unit (java.lang.Integer unitId) {\n\t\tsuper(unitId);\n\t}",
"public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }",
"public Builder setUnit(final Unit value) {\n _unit = value;\n return this;\n }",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public LogicUnit(int width) {\n super(\"LogicUnit\", width);\n }",
"public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }",
"public Unit<Length> foot() {return foot;}",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling\n )\n {\n \tthis(numberX, unit, prefix, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public UnitP(Double value, String unitString, ExceptionHandlingTypes exceptionHandling, PrefixUsageTypes prefixUsage)\n {\n UnitPConstructor unitP2 = MethodsUnitP.GetUnitP2(value, unitString, exceptionHandling, prefixUsage);\n \n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo(unitP2.ErrorType, unitP2.ExceptionHandling);\n }",
"public ProductUnit(Unit<?> productUnit) {\n _elements = ((ProductUnit<?>) productUnit)._elements;\n }",
"public BFUnit(){\n \n }",
"public interface Unit {\n\t/**\n\t * Convert value of this unit to u\n\t * @param amount\n\t * \t\t\t\tis value of this Unit\n\t * @param u\n\t * \t\t\tis Unit that we want to convert to\n\t * @return calculated value \n\t */\n\tpublic double convert(double amount, Unit u);\n}",
"public Units getUnitTable();",
"public Unit(int x, int y, int width, int height) {\n super(x, y, width, height);\n LOGGER.log(Level.INFO, this.toString() + \" created at (\" + x + \",\" + y + \")\", this.getClass());\n }",
"Units getUnits();",
"public static UnitsBuilder baseUnit(String... baseUnitSymbolsPatterns) {\n return new UnitsBuilder(baseUnitSymbolsPatterns);\n }",
"public byte getUnits() { return units; }",
"public Ingredient(IngredientName name, IngredientUnit unit, IngredientPrice price, MinimumUnit minimum,\n NumUnits numUnits) {\n requireAllNonNull(name);\n this.name = name;\n this.unit = unit;\n this.price = price;\n this.minimum = minimum;\n this.numUnits = numUnits;\n }",
"public Unit() {\n\t\tthis.set();\n\t}",
"public Unit (int hp, int str, int mag, int def, int x, int y) {\n this.stats = new Stats(hp, str, mag, def);\n this.position = new Position(x, y);\n }",
"public Unit getUnit() {\n return unit;\n }",
"DefinedUnitType getDefinedUnit();",
"public UnitObject(TimeInterval _interval, T _value) {\r\n this.interval = _interval;\r\n // this.value = _value;\r\n fun = new ConstantFunction<T>(_value);\r\n }",
"public Unit getUnitAt(Position p);",
"public UnitP(UnitInfo unitInfo, UnitP unitP)\n {\n \tthis(unitInfo, unitP, \"\"); \t\n }",
"public Unit<Length> kilometre() {return kilometre;}",
"abstract Valuable createMoney(double value);",
"static Unit<? extends Quantity> getQuotientInstance(Unit<?> left,\n Unit<?> right) {\n Element[] leftElems;\n if (left instanceof ProductUnit<?>)\n leftElems = ((ProductUnit<?>) left)._elements;\n else\n leftElems = new Element[]{new Element(left, 1, 1)};\n Element[] rightElems;\n if (right instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) right)._elements;\n rightElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n rightElems[i] = new Element(elems[i]._unit, -elems[i]._pow,\n elems[i]._root);\n }\n } else\n rightElems = new Element[]{new Element(right, -1, 1)};\n return getInstance(leftElems, rightElems);\n }",
"public Unit10(String name)\n {\n \n this.name = name;\n \n \n }",
"Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }",
"private UnitFactory() {\n\t}",
"public final EObject ruleUnitExpressionFactor() throws RecognitionException {\n EObject current = null;\n\n Token lv_operand_0_0=null;\n EObject lv_exponent_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6579:6: ( ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6582:3: lv_operand_0_0= RULE_ID\n {\n lv_operand_0_0=(Token)input.LT(1);\n match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleUnitExpressionFactor11472); \n\n \t\t\tcreateLeafNode(grammarAccess.getUnitExpressionFactorAccess().getOperandIDTerminalRuleCall_0_0(), \"operand\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operand\",\n \t \t\tlv_operand_0_0, \n \t \t\t\"ID\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:2: ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==60) ) {\n alt95=1;\n }\n switch (alt95) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:4: '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n {\n match(input,60,FOLLOW_60_in_ruleUnitExpressionFactor11488); \n\n createLeafNode(grammarAccess.getUnitExpressionFactorAccess().getCircumflexAccentKeyword_1_0(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6608:1: ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6610:3: lv_exponent_2_0= ruleUnitExpressionExponent\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitExpressionFactorAccess().getExponentUnitExpressionExponentParserRuleCall_1_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpressionExponent_in_ruleUnitExpressionFactor11509);\n lv_exponent_2_0=ruleUnitExpressionExponent();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"exponent\",\n \t \t\tlv_exponent_2_0, \n \t \t\t\"UnitExpressionExponent\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public Length getUnit() {\n return unit;\n }",
"ProductUnit() {\n _elements = new Element[0];\n }",
"public RegularUnit(Location location, int length, int width, int height){\n // initialise instance variables\n super(location, length, width, height, TYPE);\n }",
"public Variable(int power, char notation){\n\t\tthis.power = power;\n\t\tthis.notation = notation;\n\t}",
"public Unit(Unit u) {\t\t// Just copy the instance\n\t\tthis.set(u);\n\t}",
"public final EObject entryRuleUnitExpressionExponent() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleUnitExpressionExponent = null;\n\n\n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6641:2: (iv_ruleUnitExpressionExponent= ruleUnitExpressionExponent EOF )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6642:2: iv_ruleUnitExpressionExponent= ruleUnitExpressionExponent EOF\n {\n currentNode = createCompositeNode(grammarAccess.getUnitExpressionExponentRule(), currentNode); \n pushFollow(FOLLOW_ruleUnitExpressionExponent_in_entryRuleUnitExpressionExponent11547);\n iv_ruleUnitExpressionExponent=ruleUnitExpressionExponent();\n _fsp--;\n\n current =iv_ruleUnitExpressionExponent; \n match(input,EOF,FOLLOW_EOF_in_entryRuleUnitExpressionExponent11557); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"Multiply createMultiply();",
"public String getUnit() {\n\t\treturn(symbol);\n\t}",
"public UnitObj(String tp,String pp) {\r\n\t\tprop=pp;\r\n\t\ttype=tp;\r\n\r\n\t}",
"static Unit<? extends Quantity> getRootInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow), elems[i]._root * n);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow / gcd,\n elems[i]._root * n / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, 1, n)};\n return getInstance(unitElems, new Element[0]);\n }",
"private UnitFeatures newUnitFeatures(Tree unitTree,\n Unit unit,\n double score,\n UnitFeatures unit1,\n UnitFeatures unit2,\n int start,\n int end) {\n return new UnitFeatures(unit, score, unit1, unit2, start, end);\n }",
"public Unit<Length> metre() {return metre;}",
"public void setUnit(String unit);",
"<C, PM> VariableExp<C, PM> createVariableExp();",
"public Unit(String symbol) throws ParseException {\n\t\tthis.set(symbol) ;\n\t}",
"public Unit() {\n\n }",
"UOp createUOp();",
"public final EObject ruleUnitConstructionOperator() throws RecognitionException {\n EObject current = null;\n\n EObject lv_unit_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5992:6: ( ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:1: ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:1: ( '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5993:3: '$' '(' ( (lv_unit_2_0= ruleUnitExpression ) ) ')'\n {\n match(input,55,FOLLOW_55_in_ruleUnitConstructionOperator10420); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getDollarSignKeyword_0(), null); \n \n match(input,25,FOLLOW_25_in_ruleUnitConstructionOperator10430); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getLeftParenthesisKeyword_1(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6001:1: ( (lv_unit_2_0= ruleUnitExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6002:1: (lv_unit_2_0= ruleUnitExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6002:1: (lv_unit_2_0= ruleUnitExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6003:3: lv_unit_2_0= ruleUnitExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitConstructionOperatorAccess().getUnitUnitExpressionParserRuleCall_2_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpression_in_ruleUnitConstructionOperator10451);\n lv_unit_2_0=ruleUnitExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitConstructionOperatorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"unit\",\n \t \t\tlv_unit_2_0, \n \t \t\t\"UnitExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n match(input,26,FOLLOW_26_in_ruleUnitConstructionOperator10461); \n\n createLeafNode(grammarAccess.getUnitConstructionOperatorAccess().getRightParenthesisKeyword_3(), null); \n \n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public void setUnitTable(Units value);",
"public Unit (int hp, int str, int mag, int def, Position p) {\n this.stats = new Stats(hp, str, mag, def);\n this.position = p;\n }",
"public List<Unit> build() {\n return units;\n }",
"public static <E extends KryptoType<E>> Tuple<E, LinkedList<String>> squareAndMultiply(E base, E exponent, E modul) {\n if(base.getClass().equals(Z.class))\n if(((Z)(KryptoType)exponent).compareTo(new Z(0)) < 0 || ((Z)(KryptoType)modul).compareTo(new Z(0)) <= 0)\n throw new IllegalArgumentException();\n char[] bin = exponent.toBinaryString().toCharArray();\n E result = base.newInstance(\"1\");\n LinkedList<String> list = new LinkedList<String>();\n for (char c : bin) {\n String resultString = \"(\" + result + \" * \" + result;\n result = result.multiply(result).mod(modul);\n if (c == '1') {\n result = result.multiply(base).mod(modul);\n resultString += \" * \" + base;\n }\n resultString = result + \" = \" + resultString + \") mod \" + modul;\n list.add(resultString);\n }\n return new Tuple<E, LinkedList<String>>(result, list);\n }",
"public void convertTo(Unit unit) throws ArithmeticException {\n\t\tdouble f = factor/unit.factor;\n\n\t\tif(DEBUG>0) {\n\t\t\tthis.dump(\"...convertTo:source= \"); \n\t\t\tunit.dump(\"...convertTo:target= \"); \n\t\t}\n\n\t\tif ((mksa == unit.mksa) && ((mksa&_log) == 0)) {\n\t\t\tvalue = (value*factor + offset - unit.offset)/unit.factor;\n\t\t\tfactor = unit.factor;\n\t\t\toffset = unit.offset;\n\t\t\tsymbol = unit.symbol;\n\t\t\treturn;\n\t\t}\n\t\t// More complex transformation: Use convertFrom\n\t\tUnit temp = new Unit(this);\n\t\tsymbol = unit.symbol;\n\t\tmksa = unit.mksa;\n\t\tfactor = unit.factor;\n\t\toffset = unit.offset;\n\t\tconvertFrom(temp);\n\t\treturn;\n\t}",
"public PowerUp(float x, float y, float rotation, int type)\n {\n super(x, y, rotation);\n this.type = type;\n }",
"public double convert(double amount, Unit u);",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"public Equation() {\n alpha_arr = new ArrayList<LinkedList<VariableUnit>>();\n for (int i = 0; i < 26; i++) {\n LinkedList<VariableUnit> list = new LinkedList<VariableUnit>();\n alpha_arr.add(list);\n }\n \n op_order = new LinkedList<VariableUnit>();\n }",
"public static ComputationUnit createUnit(NodeRequest request, String allowedOperators) {\n\t\tif(allowedOperators.indexOf(request.getOperator()) != -1)\n\t\t\treturn getNewComputationUnit(request.getOperator());\n\t\telse\n\t\t\treturn new UnsupportedComputationUnit();\n\t\t\t\t\n\t}"
] |
[
"0.67339116",
"0.63187575",
"0.6239383",
"0.6205636",
"0.6123762",
"0.6122084",
"0.6117053",
"0.60872597",
"0.60788816",
"0.6063293",
"0.6023487",
"0.59349644",
"0.5898546",
"0.5847372",
"0.58425534",
"0.58315146",
"0.5829795",
"0.5720601",
"0.5668494",
"0.56211406",
"0.55998373",
"0.55909264",
"0.55728334",
"0.5544333",
"0.55279106",
"0.55227345",
"0.5491562",
"0.5477686",
"0.5467567",
"0.54588217",
"0.5418532",
"0.5416016",
"0.54135185",
"0.5399079",
"0.53902495",
"0.5376557",
"0.5368432",
"0.5354902",
"0.53530097",
"0.5351421",
"0.5345214",
"0.5331507",
"0.5329616",
"0.5327627",
"0.5321746",
"0.5319774",
"0.53171283",
"0.52951765",
"0.52871597",
"0.52717453",
"0.5263874",
"0.5249502",
"0.523662",
"0.5230551",
"0.5225765",
"0.5224144",
"0.5223254",
"0.52101606",
"0.5195745",
"0.5192348",
"0.5189863",
"0.5185599",
"0.5184649",
"0.5177033",
"0.5172838",
"0.516701",
"0.5166517",
"0.516623",
"0.51553184",
"0.5134832",
"0.51313174",
"0.5121758",
"0.51162434",
"0.5105002",
"0.5101244",
"0.50986505",
"0.50908047",
"0.5088594",
"0.50884366",
"0.50845605",
"0.5073449",
"0.50706804",
"0.5053006",
"0.50444204",
"0.5042548",
"0.5038426",
"0.50383985",
"0.50371283",
"0.50371283",
"0.50371283",
"0.5033885",
"0.50280946",
"0.502687",
"0.5018146",
"0.5017088",
"0.50120497",
"0.5007052",
"0.50070256",
"0.50048053",
"0.5004338"
] |
0.66840935
|
1
|
Construct a unit except that the exponent is set as 1
|
Unit(String unitIn, UnitType utIn) {
this(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Unit() {\n\t\tthis(new Apfloat(\"0.0\", APFLOATPRECISION), SCALAR, 1);\n\t}",
"public abstract double toBasicUnit(double unit);",
"Unit(String unitIn, UnitType utIn, int expIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, expIn);\n\t}",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"public UnitP(UnitP unitP, Double value, int baseTenExponent)\n {\n Value = value;\n BaseTenExponent = baseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.Value.toString() +\n (\n unitP.BaseTenExponent != 0 ?\n \"*10^\" + unitP.BaseTenExponent.toString() : \"\"\n );\n ValueAndUnitString = Value.toString() +\n (\n BaseTenExponent != 0 ?\n \"*10^\" + BaseTenExponent.toString() : \"\"\n ) + \" \" + UnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"Unit(Apfloat unitIn, UnitType utIn, int expIn) {\n\t\tunitValue = unitIn;\n\t\tunitType = utIn;\n\t\texponent = expIn;\n\t}",
"Unit(Apfloat unitIn, UnitType utIn) {\n\t\tthis(unitIn, utIn, 1);\n\t}",
"public UnitsBuilder(String... baseUnitSymbolsPatterns) {\n units = new ArrayList<>();\n units.add(new Unit(baseUnitSymbolsPatterns, 1.0));\n }",
"public Unit<Dimensionless> one() {return one;}",
"static Unit<? extends Quantity> getPowInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow * n), elems[i]._root);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow * n / gcd, elems[i]._root / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, n, 1)};\n return getInstance(unitElems, new Element[0]);\n }",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"public final void mult (Unit unit) throws ArithmeticException {\n\t\tlong u = mksa ; double r = factor; double v = value; double o = offset;\n\t\t/* dump(\"mult:this \"); unit.dump(\"mult:unit\"); */\n\t\tif (((mksa&_abs)!=0) && (unit.factor != 1)) throw\t// On a date\n\t\tnew ArithmeticException(\"****Unit.mult on a date!\");\n\t\tif (((mksa|unit.mksa)&_log) != 0) {\n\t\t\tif ((mksa == underScore) && (factor == 1.)) ;\n\t\t\telse if ((unit.mksa == underScore) && (unit.factor == 1.)) ;\n\t\t\telse throw new ArithmeticException\n\t\t\t(\"****Unit: can't multiply logs: \" + symbol + \" x \" + unit.symbol);\n\t\t}\n\t\t/* As soon as there is an operation, the offset is ignored \n\t\t * except if one of the factors is unity.\n\t\t */\n\t\tif ((offset!=0) || (unit.offset!=0)) {\n\t\t\tif (mksa == underScore) offset = unit.offset;\n\t\t\telse if (unit.mksa == underScore) ;\n\t\t\telse offset = 0;\n\t\t}\n\t\tv *= unit.value; \n\t\tr *= unit.factor;\n\t\tu += unit.mksa; u -= underScore;\n\t\tif ((u&0x0c80808080808080L) != 0) throw new ArithmeticException\n\t\t(\"****too large powers in: \" + symbol + \" x \" + unit.symbol);\n\t\tmksa = u;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\t/* Decision for the new symbol */\n\t\tif ((symbol != null) && (unit.symbol != null)) {\n\t\t\tif ((unit.mksa == underScore) && (unit.factor == 1)) return;\t// No unit ...\n\t\t\tif (( mksa == underScore) && ( factor == 1)) symbol = unit.symbol;\n\t\t\telse if ((symbol.equals(unit.symbol)) && (factor == unit.factor))\n\t\t\t\tsymbol = toExpr(symbol) + \"2\" ;\n\t\t\telse symbol = toExpr(symbol) + \".\" + toExpr(unit.symbol) ;\n\t\t}\n\t}",
"Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }",
"public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }",
"public Monom(String s) {\r\n\t\tif(s==null) {\r\n\t\t\tthrow new IllegalArgumentException(\"not valid String\");\r\n\t\t}\r\n\t\tint indexOfPower = s.indexOf('^');\r\n\t\tint indexOfX = s.indexOf('x');\r\n\t\t\r\n\t\tif(s==\"0\" || s==\"0.0\") {\r\n\t\t\tthis.set_coefficient(0);\r\n\t\t\tthis.set_power(0);\r\n\t\t}\r\n\t\t\r\n\t\tif(s.charAt(0)=='x') {\r\n\t\t\tthis.set_coefficient(1);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tif(indexOfX==-1) {\r\n\t\t\t\tdouble a = Double.parseDouble(s);\r\n\t\t\t\tthis.set_coefficient(a);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tString tmp=\"\";\r\n\t\t\t\tfor(int i = 0; i < indexOfX; i++){\r\n\t\t\t\t\ttmp += s.charAt(i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(tmp.equals(\"-\")) \r\n\t\t\t\t\tthis.set_coefficient(-1);\r\n\r\n\t\t\t\telse {\r\n\t\t\t\t\tdouble a = Double.parseDouble(tmp);\r\n\t\t\t\t\tthis.set_coefficient(a);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\tif(indexOfPower==-1) {\r\n\t\t\t\t\r\n\t\t\t\tif(indexOfX==-1)\r\n\t\t\t\t\tthis.set_power(0);\r\n\t\t\t\t\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.set_power(1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tString tmp=\"\";\r\n\t\t\t\tfor(int i = indexOfPower+1; i <s.length() ; i++){\r\n\t\t\t\t\ttmp += s.charAt(i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tint b = Integer.valueOf(tmp);\r\n\t\t\t\t\r\n\t\t\t\tif(b<0)\r\n\t\t\t\t\tthrow new RuntimeException(\"The power is negative\");\r\n\t\t\t\t\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.set_power(b);\r\n\t\t}\r\n\t}",
"public UnitP(Double value, Units unit, Prefix prefix, ExceptionHandlingTypes exceptionHandling)\n {\n ErrorTypes errorType = \n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo = ExceptionInstantiation.NewUnitInfo(value, unit, prefix);\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n else errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n UnitString = null;\n OriginalUnitString = null;\n Unit = Units.None;\n UnitSystem = UnitSystems.None;\n UnitType = UnitTypes.None;\n ValueAndUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = tempInfo.Parts;\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, exceptionHandling\n );\n }",
"<C> UnspecifiedValueExp<C> createUnspecifiedValueExp();",
"public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}",
"public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }",
"@Test\n public void test_ScientificNotation_0130() {\n ScientificNotation x = new ScientificNotation(BigDecimal.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }",
"public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}",
"public Units()\n\t{\n\t\t// empty for empty unitset\n\t}",
"Multiply createMultiply();",
"static Unit<? extends Quantity> getRootInstance(Unit<?> unit, int n) {\n Element[] unitElems;\n if (unit instanceof ProductUnit<?>) {\n Element[] elems = ((ProductUnit<?>) unit)._elements;\n unitElems = new Element[elems.length];\n for (int i = 0; i < elems.length; i++) {\n int gcd = gcd(Math.abs(elems[i]._pow), elems[i]._root * n);\n unitElems[i] = new Element(elems[i]._unit, elems[i]._pow / gcd,\n elems[i]._root * n / gcd);\n }\n } else\n unitElems = new Element[]{new Element(unit, 1, n)};\n return getInstance(unitElems, new Element[0]);\n }",
"public NegativeUnitsException(double u)\r\n\t{\r\n\t\tsuper(\"Negative number given for units.\" + u);\r\n\t}",
"@Override\n public Expression create(Expression a, Expression b) {\n return new Minus(a, b);\n }",
"Unit getUnit();",
"public Builder setUnit(final Unit value) {\n _unit = value;\n return this;\n }",
"private Units() {\n // Nothing to do\n }",
"public static UnitsBuilder baseUnit(String... baseUnitSymbolsPatterns) {\n return new UnitsBuilder(baseUnitSymbolsPatterns);\n }",
"public void setUnit(Length units) {\n unit = units;\n }",
"LengthUnit(double metres) {\n/* 24 */ this.metres = metres;\n/* 25 */ this.dx = new Dx(1.0D, this);\n/* */ }",
"public AncientEgyptianMultiplication( ) {\r\n }",
"Quantity createQuantity();",
"Fraction () {\n this (0, 1);\n }",
"public OscillatorCalculator() {\n this(1);\n }",
"public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }",
"@Override\n\tpublic double pow(double base, double exp) {\n\t\treturn 0;\n\t}",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling, \n PrefixUsageTypes prefixUsage\n )\n {\n if (prefix == null) prefix = new Prefix();\n\n ErrorTypes errorType =\n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n tempInfo = OtherPartsNumberParserMethods.GetUnitInfoFromNumberX\n (\n numberX, ExceptionHandlingTypes.NeverTriggerException, prefix.getPrefixUsage()\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo.Unit = unit;\n tempInfo.Prefix = new Prefix(prefix);\n tempInfo.Parts = new ArrayList<UnitPart>\n (\n \tMethodsCommon.GetPartsFromUnit(tempInfo).Parts\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n }\n\n errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n ValueAndUnitString = \"\";\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n UnitString = \"\";\n Unit = Units.None;\n OriginalUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = new ArrayList<UnitPart>(tempInfo.Parts);\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n \n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, ExceptionHandlingTypes.NeverTriggerException\n );\n }",
"public void setUnit(String unit);",
"public Builder clearPower() {\n bitField0_ = (bitField0_ & ~0x00000040);\n power_ = 0F;\n onChanged();\n return this;\n }",
"public NoiseCalculator() {\n this(1.0);\n }",
"private int toPower(int base, int exponent)\n\t {\n\t \t if(exponent > 0)\n\t {\n\t return toPower(base, exponent - 1) * base;\n\t }\n\t return 1;\n\t }",
"DefiningUnitType getDefiningUnit();",
"@Test\n public void test_ScientificNotation_0120() {\n ScientificNotation x = new ScientificNotation(BigInteger.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }",
"public Rational() {\n\t\tthis(1,1);\n\t}",
"@Test\n public void test_ScientificNotation_0110() {\n ScientificNotation x = new ScientificNotation(0);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }",
"public void setExponent(Integer exponent);",
"public abstract String getExponent();",
"public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling\n )\n {\n \tthis(numberX, unit, prefix, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public Fraction(){\n\t\n\t\tsetFraction(0,1);\n }",
"public Builder clearNum1() {\r\n\t\t\t\tbitField0_ = (bitField0_ & ~0x00000002);\r\n\t\t\t\tnum1_ = 0;\r\n\t\t\t\tonChanged();\r\n\t\t\t\treturn this;\r\n\t\t\t}",
"public final EObject ruleUnitExpressionFactor() throws RecognitionException {\n EObject current = null;\n\n Token lv_operand_0_0=null;\n EObject lv_exponent_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6579:6: ( ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6582:3: lv_operand_0_0= RULE_ID\n {\n lv_operand_0_0=(Token)input.LT(1);\n match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleUnitExpressionFactor11472); \n\n \t\t\tcreateLeafNode(grammarAccess.getUnitExpressionFactorAccess().getOperandIDTerminalRuleCall_0_0(), \"operand\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operand\",\n \t \t\tlv_operand_0_0, \n \t \t\t\"ID\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:2: ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==60) ) {\n alt95=1;\n }\n switch (alt95) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:4: '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n {\n match(input,60,FOLLOW_60_in_ruleUnitExpressionFactor11488); \n\n createLeafNode(grammarAccess.getUnitExpressionFactorAccess().getCircumflexAccentKeyword_1_0(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6608:1: ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6610:3: lv_exponent_2_0= ruleUnitExpressionExponent\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitExpressionFactorAccess().getExponentUnitExpressionExponentParserRuleCall_1_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpressionExponent_in_ruleUnitExpressionFactor11509);\n lv_exponent_2_0=ruleUnitExpressionExponent();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"exponent\",\n \t \t\tlv_exponent_2_0, \n \t \t\t\"UnitExpressionExponent\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"public LogicUnit(int width) {\n super(\"LogicUnit\", width);\n }",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public Complex Minus (Complex z) {\n\nreturn new Complex(u-z.u,v-z.v);\n\n}",
"public UnitConverter() {\r\n getParameters();\r\n }",
"public void setUnits(byte units) { this.units = units; }",
"public UnitP\n (\n Double value, String unitString, ExceptionHandlingTypes exceptionHandling\n ) \n { \n \tthis (value, unitString, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }",
"public Rational() {\n\tnumerator = 0;\n\tdenominator = 1;\n }",
"public L1513_Rational() {\n\t this(0, 1);\n\t }",
"public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }",
"@Override\n public double getPower() {\n return 0;\n }",
"private final int unit1 (Parsing text, StringBuffer edited) \n\tthrows ParseException {\n\t\tint posini = text.pos;\t\t// Initial position in text\n\t\tUdef theUnit = uDef[0];\t\t// Default Unit = Unitless\n\t\tint mult_index = -1;\t\t// Index in mul_fact by e.g. μ\n\t\tint power = 1;\n\t\tchar op = Character.MIN_VALUE;\t// Operator power\n\t\tint error = 0;\t\t\t// Error counter\n\t\tboolean close_bracket = false;\t// () not edited when buffer empty\n\t\tint edited_pos = -1;\n\t\tint i, s;\n\n\t\t/* Initialize the Unit to unitless */\n\t\tmksa = underScore; factor = 1.;\n\t\tif (text.pos >= text.length) return(0);\t// Unitless\n\n\t\tif (DEBUG>0) System.out.println(\"....unit1(\" + text + \")\");\n\t\tswitch(text.a[text.pos]) {\n\t\tcase '(':\t\t/* Match parenthesized expression */\n\t\t\ttheUnit = null;\t// Parenthese do NOT define any unit.\n\t\t\ttext.pos++;\t\t// Accept the '('\n\t\t\tclose_bracket = (edited != null) ; /*&& (edited.length() > 0)*/\n\t\t\tif (close_bracket) {\n\t\t\t\tedited_pos = edited.length();\t// where to insert 'square'\n\t\t\t\tedited.append('(') ;\n\t\t\t}\n\t\t\tthis.unitec(text, edited) ;\n\t\t\tif ((text.pos < text.length) && (text.a[text.pos] == ')'))\n\t\t\t\ttext.pos++;\n\t\t\telse throw new ParseException\n\t\t\t(\"****Unit: Missing ) in '\" + text + \"'\", text.pos);\n\t\t\tif (close_bracket) {\n\t\t\t\t// Remove the Ending blanks, before closing the bracket\n\t\t\t\ti = edited.length(); \n\t\t\t\twhile ((--i >= 0) && (edited.charAt(i) == ' ')) ;\n\t\t\t\tedited.setLength(++i);\n\t\t\t\tedited.append(')') ;\n\t\t\t\tclose_bracket = false;\n\t\t\t}\n\t\t\tbreak ;\n\t\tcase '\"':\t\t/* Quoted units must match exactly */\n\t\t\ti = text.matchingQuote();\n\t\t\tif (i<text.length) i++;\t// Matching quote\n\t\t\ttheUnit = uLookup(text, i-text.pos);\n\t\t\tif (theUnit == null) throw new ParseException\n\t\t\t(\"****Unit: quoted unit does not match\", text.pos);\n\t\t\tbreak ;\n\t\tcase '-':\t\t// Unitless ?\n\t\t\ts = text.pos++;\n\t\t\tif (text.pos >= text.length) break;\n\t\t\tif (Character.isDigit(text.a[text.pos])) { \t// Number ?\n\t\t\t\ttext.pos = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile ((text.pos<text.length) && (text.a[text.pos]=='-')) \n\t\t\t\ttext.pos++;\t// Accept unitless as \"--\" or \"---\"\n\t\t\tbreak;\n\t\tcase '%':\n\t\t\ttheUnit = uLookup(text, 1);\n\t\t\tbreak;\n\t\tcase '\\\\':\t\t// Special constants\n\t\t\tfor (i=text.pos+1; (i<text.length) && Character.isLetter(text.a[i]); \n\t\t\ti++) ;\n\t\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\t\tif (theUnit == null) error++ ;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tfor (i=text.pos; (i<text.length) && Character.isLetter(text.a[i]); \n\t\t\ti++) ;\n\t\t// A unit may be terminated by 0 (a0 = classical electron radius)\n\t\tif ((i<text.length) && (text.a[i] == '0')) i++;\n\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\tif (theUnit != null) break;\n\t\t/* Simple unit not found. Look for multiple prefix */\n\t\ts = text.pos ;\t// Save \n\t\tif ((text.length-text.pos)>1) \n\t\t\tmult_index = text.lookup(mul_symb) ;\n\t\tif (mult_index < 0) break;\n\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\tif (theUnit == null) text.pos = s; \n\t\t}\n\t\t/* Look now for a Power: */\n\t\tif ((error == 0) && (text.pos < text.length)) \n\t\t\top = text.a[text.pos];\n\t\t/* Power is however not acceptable for complex and date numbers */\n\t\tif (theUnit != null) {\n\t\t\tif ((theUnit.mksa&(_abs|_pic)) != 0)\n\t\t\t\top = Character.MIN_VALUE;\n\t\t}\n\t\tif ((op == '+') || (op == '-') || (op == '^') || \n\t\t\t\t(Character.isDigit(op) && (op != '0'))) {\n\t\t\tif (DEBUG>0) System.out.print(\" look for power with op=\" + op);\n\t\t\tif (op == '^') text.pos += 1;\n\t\t\tif (text.pos < text.length) {\n\t\t\t\top = text.a[text.pos];\n\t\t\t\tif (op == '+') text.pos++ ;\n\t\t\t\tif (op != '-') op = '+';\n\t\t\t\tpower = text.parseInt() ;\n\t\t\t\t// A zero-power is illegal !!\n\t\t\t\tif (power == 0) error++;\n\t\t\t\t// 'square' or 'cubic' is spelled out BEFORE the unit name\n\t\t\t\telse if ((power > 0) && (power < 10) && (edited != null)) {\n\t\t\t\t\ttext.pos--;\t\t// Now text is the digit of power\n\t\t\t\t\ti = text.lookup(op_symb) ;\n\t\t\t\t\tif (i >= 0) { \t// Square or cubic\n\t\t\t\t\t\tif (edited_pos >= 0)\n\t\t\t\t\t\t\tedited.insert(edited_pos, op_text[i]);\n\t\t\t\t\t\telse edited.append(op_text[i]) ; \n\t\t\t\t\t\top = ' '; \t// Power is now edited\n\t\t\t\t\t}\n\t\t\t\t\telse text.pos++;\n\t\t\t\t}\n\t\t\t\tif (DEBUG>0) System.out.print(\", power=\" + power);\n\t\t\t}\n\t\t\telse error++;\n\t\t\tif (DEBUG>0) System.out.println(\", error=\" + error);\n\t\t}\n\n\t\tif (error>0) throw new ParseException\n\t\t(\"****Unit: '\" + text + \"'+\" + text.pos, text.pos) ;\n\n\t\tif (mult_index >= 0) {\t\t// Multiplicities like 'k', 'μ', ...\n\t\t\tfactor *= AstroMath.dexp(mul_fact[mult_index]);\n\t\t\tif (edited != null) edited.append(mul_text[mult_index]) ;\n\t\t}\n\n\t\tif (theUnit != null) {\n\t\t\tfactor *= theUnit.fact ;\n\t\t\tmksa = theUnit.mksa;\n\t\t\toffset = theUnit.orig;\n\t\t\tif (edited != null)\n\t\t\t\tedited.append(theUnit.expl) ;\n\t\t}\n\n\t\tif (power != 1) {\n\t\t\tthis.power (power) ;\n\t\t\tif ((op != ' ') && (edited != null)) {\n\t\t\t\tedited.append(\"power\") ;\n\t\t\t\tif (power>=0) edited.append(op);\t// - sign included...\n\t\t\t\tedited.append(power);\t\t\t// by this edition!\n\t\t\t}\n\t\t}\n\t\ts = text.pos - posini;\n\t\tif (DEBUG>0) System.out.println(\" =>unit1: return=\" + s \n\t\t\t\t+ \", f=\"+factor + \", val=\"+value);\n\t\treturn(s);\n\t}",
"ChronoUnit getUnit();",
"public Unit giveMeUnit(UnitDef unitDef, AIFloat3 pos);",
"public Unit() {\n\t\tthis.set();\n\t}",
"LengthScalarMultiply createLengthScalarMultiply();",
"public Clorus (double e) {\n super(\"clorus\");\n if (e < 0) {\n energy = 0;\n }else { energy = e;}\n r = 0;\n g = 0;\n b = 0;\n }",
"public MyDouble() {\n this.setValue(0);\n }",
"public UnitP\n (\n UnitP unitP, ErrorTypes errorType, ExceptionHandlingTypes exceptionHandling\n )\n {\n if (unitP == null) unitP = new UnitP();\n\n UnitPConstructor unitP2 = new UnitPConstructor\n (\n unitP.OriginalUnitString, ExceptionInstantiation.NewUnitInfo(unitP),\n UnitTypes.None, UnitSystems.None, errorType,\n (\n exceptionHandling != ExceptionHandlingTypes.NeverTriggerException ?\n exceptionHandling : unitP.Error.ExceptionHandling\n )\n );\n\n if (unitP2.ErrorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n Unit = Units.None;\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n OriginalUnitString = \"\";\n ValueAndUnitString = \"\";\n UnitString = \"\";\n }\n else\n {\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n \tunitP2.ErrorType, unitP2.ExceptionHandling\n );\n }",
"public Fraction() {\n this.numerator = 0;\n this.denominator = 1;\n }",
"public Fraction()\r\n {\r\n this.numerator = 0;\r\n this.denominator = 1;\r\n }",
"public Cylinder() {\n\t\tthis(1.0);\n\t}",
"public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public LeftWallRepulsionForce (double magnitude, double exponent) {\n super(magnitude, exponent);\n }",
"String getUnit();",
"public ResolutionUnitTag()\r\n\t{\r\n\t\tthis(INCH);\r\n\t}",
"NumberValue createNumberValue();",
"public final EObject ruleUnitExpressionExponent() throws RecognitionException {\n EObject current = null;\n\n Token lv_negative_0_0=null;\n Token lv_value_1_0=null;\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6654:6: ( ( ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:1: ( ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:1: ( ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:2: ( (lv_negative_0_0= '-' ) )? ( (lv_value_1_0= RULE_INTEGER ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6655:2: ( (lv_negative_0_0= '-' ) )?\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==61) ) {\n alt96=1;\n }\n switch (alt96) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6656:1: (lv_negative_0_0= '-' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6656:1: (lv_negative_0_0= '-' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6657:3: lv_negative_0_0= '-'\n {\n lv_negative_0_0=(Token)input.LT(1);\n match(input,61,FOLLOW_61_in_ruleUnitExpressionExponent11600); \n\n createLeafNode(grammarAccess.getUnitExpressionExponentAccess().getNegativeHyphenMinusKeyword_0_0(), \"negative\"); \n \n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionExponentRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t \n \t try {\n \t \t\tset(current, \"negative\", true, \"-\", lastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n break;\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6676:3: ( (lv_value_1_0= RULE_INTEGER ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6677:1: (lv_value_1_0= RULE_INTEGER )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6677:1: (lv_value_1_0= RULE_INTEGER )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6678:3: lv_value_1_0= RULE_INTEGER\n {\n lv_value_1_0=(Token)input.LT(1);\n match(input,RULE_INTEGER,FOLLOW_RULE_INTEGER_in_ruleUnitExpressionExponent11631); \n\n \t\t\tcreateLeafNode(grammarAccess.getUnitExpressionExponentAccess().getValueINTEGERTerminalRuleCall_1_0(), \"value\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionExponentRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"value\",\n \t \t\tlv_value_1_0, \n \t \t\t\"INTEGER\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public UnitP RemoveCurrentBaseTen()\n {\n UnitInfo tempInfo = Managed.ConvertBaseTenToValue\n (\n \tExceptionInstantiation.NewUnitInfo(this)\n );\n \n return new UnitP(this, tempInfo.Value, tempInfo.BaseTenExponent);\n }",
"float mo106363e();",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public Unit (java.lang.Integer unitId) {\n\t\tsuper(unitId);\n\t}",
"@Override\n protected AngularSpeed createMeasurement(double value, AngularSpeedUnit unit) {\n return new AngularSpeed(value, unit);\n }",
"public Unit<Length> footSurveyUS() {return footSurveyUS;}",
"public void setUnit (String value) {\n\tthis.unit = value;\n }",
"public SoilMoisture(double value, Unit unit) throws IllegalArgumentException {\r\n super(value, unit, COMPARE_PRECISION, SoilMoisture::new);\r\n }",
"TimeUnit() {\n }",
"public BottomWallRepulsionForce (double magnitude, double exponent) {\n super(magnitude, exponent);\n }",
"public Builder clearTxpower() {\n bitField0_ = (bitField0_ & ~0x00001000);\n txpower_ = getDefaultInstance().getTxpower();\n onChanged();\n return this;\n }",
"UndefinedLiteralExp createUndefinedLiteralExp();",
"public Rational()\n\t{\n\t\tthis.setNumer(0);\n\t\tthis.setDenom(0);\n\t}",
"private static Unit<Dimensionless> getDimensionless(final SystemOfUnits system) {\n Unit<Dimensionless> unit = system.getUnit(Dimensionless.class);\n if (unit == null) try {\n unit = ((Unit<?>) Class.forName(\"tec.units.ri.AbstractUnit\").getField(\"ONE\").get(null)).asType(Dimensionless.class);\n } catch (ReflectiveOperationException | ClassCastException e) {\n throw new IllegalArgumentException(\"Cannot create a dimensionless unit from the given provider.\");\n }\n return unit;\n }",
"public Literal createLiteral(double b) throws ModelException{\n\n return createLiteral(String.valueOf(b));\n }",
"public String getUnit();",
"Complex() {\n real = 0.0;\n imag = 0.0;\n }",
"@Override\n\tpublic double derive(double input) {\n\t\treturn 1;\n\t}"
] |
[
"0.6480523",
"0.60505617",
"0.58185923",
"0.5789564",
"0.56839454",
"0.5663755",
"0.5633317",
"0.5514659",
"0.5478893",
"0.5455002",
"0.5450864",
"0.536114",
"0.5315456",
"0.5275728",
"0.5268114",
"0.52613264",
"0.524957",
"0.52472",
"0.52300996",
"0.52080613",
"0.51889724",
"0.51888394",
"0.5178999",
"0.51665246",
"0.5151191",
"0.5150871",
"0.51216227",
"0.5116164",
"0.5115926",
"0.5111639",
"0.51097244",
"0.5109441",
"0.51073503",
"0.5098545",
"0.50910234",
"0.50769866",
"0.50632954",
"0.5058677",
"0.50518",
"0.50471085",
"0.5024528",
"0.50176275",
"0.50092554",
"0.49981135",
"0.4984609",
"0.49810582",
"0.4976151",
"0.4975609",
"0.4975172",
"0.49598265",
"0.4958267",
"0.4955815",
"0.49391514",
"0.49341926",
"0.4925754",
"0.49227953",
"0.49083567",
"0.4906031",
"0.4895794",
"0.4884329",
"0.48787943",
"0.48670062",
"0.4866817",
"0.48649457",
"0.48584822",
"0.48573956",
"0.48544937",
"0.48537642",
"0.4841741",
"0.48375964",
"0.4835634",
"0.48337418",
"0.48126712",
"0.48049557",
"0.4804637",
"0.4801416",
"0.48003337",
"0.4790983",
"0.47826946",
"0.4774262",
"0.47713092",
"0.47609088",
"0.47583482",
"0.4757325",
"0.47517833",
"0.47476968",
"0.47436494",
"0.4741624",
"0.4738521",
"0.4737425",
"0.47365102",
"0.47333938",
"0.47330654",
"0.4723817",
"0.47209147",
"0.47201398",
"0.47194692",
"0.47185406",
"0.47180453",
"0.471554"
] |
0.55530584
|
7
|
Construct a unit with a value of zero and unit type of Scalar that is, a default value
|
Unit() {
this(new Apfloat("0.0", APFLOATPRECISION), SCALAR, 1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }",
"public static Unit getDefaultUnit() {\r\n return (Unit)getDefaultUnit(AngularMeasurement.class);\r\n }",
"public Object getDefaultValue();",
"public Object getDefaultValue();",
"T getDefaultValue();",
"public String getDefaultValue() {\r\n if (this == BOOLEAN) {\r\n return \"false\";\r\n }\r\n\r\n if (this == CHAR) {\r\n return \"''\";\r\n }\r\n\r\n if (this == VOID) {\r\n return \"\";\r\n }\r\n\r\n if (this == FLOAT) {\r\n return \"0.f\";\r\n }\r\n\r\n if (this == DOUBLE) {\r\n return \"0.0\";\r\n }\r\n\r\n return \"0\";\r\n }",
"public double getDefaultValue() {\n return defaultValue;\n }",
"@Override\r\n\tprotected Integer zero() {\n\t\treturn 0;\r\n\t}",
"@Test\n public void testSetDefaultUnit() {\n System.out.println(\"setDefaultUnit\");\n Temperature.Unit unit = Temperature.Unit.FAHRENHEIT;\n Temperature.setDefaultUnit(unit);\n Temperature.Unit unit2 = Temperature.getDefaultUnit();\n assertEquals(unit, unit2);\n Temperature.setDefaultUnit(Temperature.Unit.CELSIUS);\n }",
"public double getDefault(){\n return number;\n }",
"public InitialUnit (int owner0, Unit.Type type0, Position pos0) {\n owner = owner0;\n type = type0;\n pos = pos0;\n }",
"public MyDouble() {\n this.setValue(0);\n }",
"@Override\n public double getValue() {\n return 0;\n }",
"public CalculatorValue(){\n\t\tvalue=0.0;\n\t\terrorTerm=0.0;\n\t\tthis.units=\"\";\n\t}",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"@Test\n public void testGetDefaultUnit() {\n System.out.println(\"getDefaultUnit\");\n Temperature.Unit expResult = Temperature.Unit.CELSIUS;\n Temperature.Unit result = Temperature.getDefaultUnit();\n assertEquals(expResult, result);\n }",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"@AnyLogicInternalCodegenAPI\n public double _DiseaseDuration_DefaultValue_xjal() {\n final Main self = this;\n return \n10 \n;\n }",
"CompT zero();",
"String getDefaultValue();",
"String getDefaultValue();",
"public double t0() {\n\t\treturn 0;\n\t}",
"public static TLAExpr DefaultVarInit()\n /*********************************************************************\n * Returns the default initial value of a variable declared with no *\n * value specified, which is herein defined to be \"{}\". *\n * *\n * Default initial value changed to \"defaultInitValue\" *\n * by LL on 22 Aug 2007 *\n *********************************************************************/\n { Vector<TLAToken> line = new Vector<TLAToken>() ;\n// line.addElement(new TLAToken(\"{\", 0, 0)) ;\n// line.addElement(new TLAToken(\"}\", 0, 0)) ;\n line.addElement(new TLAToken(\"defaultInitValue\", 0, 0));\n Vector<Vector<TLAToken>> vec = new Vector<Vector<TLAToken>>() ;\n vec.addElement(line) ;\n TLAExpr exp = new TLAExpr(vec) ;\n exp.normalize() ;\n return exp ;\n }",
"public static DefaultExpression default_() { throw Extensions.todo(); }",
"public static numero getZero()\n {\n return new numero(ZERO);\n }",
"com.google.protobuf.Value getDefaultValue();",
"public static void setDefaultUnit(Unit unit) {\r\n setDefaultUnit(AngularMeasurement.class, unit);\r\n }",
"public final void setZero() {\n \t\n\t\tthis.m00 = 0.0F;\n\t\tthis.m01 = 0.0F;\n\t\tthis.m02 = 0.0F;\n\t\tthis.m10 = 0.0F;\n\t\tthis.m11 = 0.0F;\n\t\tthis.m12 = 0.0F;\n\t\tthis.m20 = 0.0F;\n\t\tthis.m21 = 0.0F;\n\t\tthis.m22 = 0.0F;\n }",
"default A isZero() {\n return satisfiesNumberCondition(new NumberCondition<>(0, EQUAL_TO));\n }",
"public Scale()\n\t{\n\t\tthis.scaleName = \"no scale\";\n\t\tthis.scaleDegrees = \"no degrees\";\n\t\tthis.degreeCount = -99;\n\t}",
"public Duration() {\n this(0, 0, 0, 0, 0, 0.0);\n }",
"public DoubleValue() {\n this.value = 0;\n }",
"@Override\n protected AngularSpeedUnit getDefaultUnit() {\n return AngularSpeedUnit.RADIANS_PER_SECOND;\n }",
"public static Money zeroForLocalCurrency() {\n return zeroFor(Currency.getInstance(Locale.getDefault()));\n }",
"public TimeUnit getDefaultDurationUnits()\r\n {\r\n return (m_defaultDurationUnits);\r\n }",
"public abstract double toBasicUnit(double unit);",
"@Override public Type make_nil(byte nil) { return make(nil,_any); }",
"private TinyMT32 getZero() {\n TinyMT32 that = new TinyMT32(this);\n that.st0 = 0;\n that.st1 = 0;\n that.st2 = 0;\n that.st3 = 0;\n return that;\n }",
"Unit(Apfloat unitIn, UnitType utIn) {\n\t\tthis(unitIn, utIn, 1);\n\t}",
"public ThreeVector unitVector() {\r\n\t\tif (this.magnitude()==0) { \r\n\t\t\treturn new ThreeVector(0,0,0);\r\n\t\t} else {\r\n\t\t\treturn new ThreeVector(this.x/this.magnitude(), this.y/this.magnitude(), this.z/this.magnitude());\r\n\t\t}\r\n\t}",
"public static Vector4 zero()\n {\n return new Vector4(0,0,0,0);\n }",
"@ApiModelProperty(required = true, value = \"ID of the default unit of measurement to use for this variable\")\n @JsonProperty(\"default_unit_id\")\n public Integer getDefaultUnitId() {\n return defaultUnitId;\n }",
"public Rational()\n\t{\n\t\tthis.setNumer(0);\n\t\tthis.setDenom(0);\n\t}",
"<C> UnspecifiedValueExp<C> createUnspecifiedValueExp();",
"public void zero();",
"public static double nullToZero(Double d)\n {\n if(d == null)\n {\n return 0;\n }\n else\n {\n return d.doubleValue();\n }\n }",
"public LogicalModelDefaultValueSupplier(DeploymentUnit du) {\n this.du = du;\n }",
"public Variable(){\n name = \"\";\n initialValue = 0;\n }",
"public void setDefaultDurationUnits(TimeUnit units)\r\n {\r\n m_defaultDurationUnits = units;\r\n }",
"public MemberBuilder addMemberScalar(String name, String desc, String units, DataType dtype, Number val) {\n MemberBuilder mb = addMember(name, desc, units, dtype, new int[0]);\n Array data = null;\n switch (dtype) {\n case UBYTE:\n case BYTE:\n case ENUM1:\n data = new ArrayByte.D0(dtype.isUnsigned());\n data.setByte(0, val.byteValue());\n break;\n case SHORT:\n case USHORT:\n case ENUM2:\n data = new ArrayShort.D0(dtype.isUnsigned());\n data.setShort(0, val.shortValue());\n break;\n case INT:\n case UINT:\n case ENUM4:\n data = new ArrayInt.D0(dtype.isUnsigned());\n data.setInt(0, val.intValue());\n break;\n case LONG:\n case ULONG:\n data = new ArrayLong.D0(dtype.isUnsigned());\n data.setDouble(0, val.longValue());\n break;\n case FLOAT:\n data = new ArrayFloat.D0();\n data.setFloat(0, val.floatValue());\n break;\n case DOUBLE:\n data = new ArrayDouble.D0();\n data.setDouble(0, val.doubleValue());\n break;\n }\n mb.setDataArray(data);\n return mb;\n }",
"public ResolutionUnitTag()\r\n\t{\r\n\t\tthis(INCH);\r\n\t}",
"public IDatatype getDefaultValue() { \n\t\treturn myDefaultValue;\n\t}",
"Unit(String unitIn, UnitType utIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);\n\t}",
"public Cost(float c) {\r\n defaultCost = c;\r\n }",
"@Override\n protected double convertToDefaultUnit(AngularSpeed value) {\n return AngularSpeedConverter.convert(value.getValue().doubleValue(),\n value.getUnit(), getDefaultUnit());\n }",
"public Units()\n\t{\n\t\t// empty for empty unitset\n\t}",
"public T getDefaultValue() {\n return defaultValue.orNull();\n }",
"static public double getDefaultDouble () {\n return defaultDouble;\n }",
"@Override\n\tpublic void fillDefault(Value v) {\n\n\t}",
"@Doc(\"The value to use if the variable is accessed when it has never been set.\")\n\t@BindNamedArgument(\"default\")\n\tpublic Double getDefaultValue() {\n\t\treturn defaultValue;\n\t}",
"public GenerateurImpl() {\n\t\tsuper();\n\t\tthis.value = 0;\n\t}",
"@Override\n\tpublic double getMetricValue() {\n\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"public UnitP(Double value, Units unit, Prefix prefix, ExceptionHandlingTypes exceptionHandling)\n {\n ErrorTypes errorType = \n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo = ExceptionInstantiation.NewUnitInfo(value, unit, prefix);\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n else errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n UnitString = null;\n OriginalUnitString = null;\n Unit = Units.None;\n UnitSystem = UnitSystems.None;\n UnitType = UnitTypes.None;\n ValueAndUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = tempInfo.Parts;\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, exceptionHandling\n );\n }",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"@AnyLogicInternalCodegenAPI\n public double _DeathRisk_DefaultValue_xjal() {\n final Main self = this;\n return \n0.01 \n;\n }",
"public static Money zeroFor(Currency currency) {\n return new Money(BigDecimal.ZERO, currency);\n }",
"public float getEmptyValue() {\n return EMPTY_VALUE;\n }",
"@Override\r\n\tpublic double alapterulet() {\n\t\treturn 0;\r\n\t}",
"private static Double getDefaultNoDataValue() {\n\n try {\n final double dNoDataValue = Double.parseDouble(SextanteGUI.getSettingParameterValue(SextanteGeneralSettings.DEFAULT_NO_DATA_VALUE));\n return dNoDataValue;\n }\n catch (final Exception e) {\n return new Double(-99999d);\n }\n\n }",
"Unit(Apfloat unitIn, UnitType utIn, int expIn) {\n\t\tunitValue = unitIn;\n\t\tunitType = utIn;\n\t\texponent = expIn;\n\t}",
"float getEmpty();",
"abstract void assignZero();",
"public void zero() {\n fill(0);\n }",
"public ZeroCountDataWriter() {\n\t\tsuper(DataWriterType.ZEROCNTType);\n\t}",
"public Unit<Dimensionless> one() {return one;}",
"Unit(String unitIn, UnitType utIn, int expIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, expIn);\n\t}",
"public Token zero() {\n\t\ttry {\n\t\t\treturn new LongMatrixToken(new long[_rowCount * _columnCount],\n\t\t\t\t\t_rowCount, _columnCount, DO_NOT_COPY);\n\t\t} catch (IllegalActionException illegalAction) {\n\t\t\t// should not happen\n\t\t\tthrow new InternalErrorException(\"LongMatrixToken.zero: \"\n\t\t\t\t\t+ \"Cannot create zero matrix.\");\n\t\t}\n\t}",
"public Type getDefault() {\n if (!loaded) loadPanic();\n return defaultValue;\n }",
"public static Velocity newNanometersPerSecondValue()\n\t{\n\t\treturn new Velocity(0.0, VelocityUnit.NANOMETERS_PER_SECOND);\n\t}",
"public AccumulatorNumber ()\n\t{ total = 0.0; }",
"protected Object getDefaultValue() {\r\n if (FeatureCollectionTools.isAttributeTypeNumeric((AttributeType) this.typeDropDown.getSelectedItem())) {\r\n AttributeType at = (AttributeType) this.typeDropDown.getSelectedItem();\r\n\r\n if (at.equals(AttributeType.INTEGER)) {\r\n int i = Integer.parseInt(this.defValueTextField.getText());\r\n return new Integer(i);\r\n }\r\n double d = Double.parseDouble(this.defValueTextField.getText());\r\n return new Double(d);\r\n }\r\n return this.defValueTextField.getText();\r\n }",
"public String getDefault();",
"public abstract Vector4fc zero();",
"@Override\n\tpublic double classValue() {\n\t\treturn 0;\n\t}",
"public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }",
"public Unsigned128BitType()\n\t{\n\t\tthis( 0, 0 );\n\t}",
"public int ZERO() {\n return getInt(setting.ZERO);\n }",
"ParameterableElement getDefault();",
"TimeUnit() {\n }",
"public Node generateDefaultNode(Position pos) {\n\t\tNode n = generateNode(pos);\n\t\tn.finishInitializationWithDefaultModels(true);\n\t\treturn n;\n\t}",
"@Test\n public void initializeTensorsWithZeros() {\n T tensor = allocateTensor(Shape.of(2, 3, 2));\n\n assertEquals(3, tensor.rank());\n assertEquals(12, tensor.size());\n NdArray<U> data = (NdArray<U>)tensor;\n\n try (EagerSession session = EagerSession.create()) {\n Ops tf = Ops.create(session);\n\n // Initialize tensor memory with zeros and take a snapshot\n data.scalars().forEach(scalar -> ((NdArray<U>)scalar).setObject(valueOf(0)));\n Constant<T> x = tf.constantOf(tensor);\n\n // Initialize the same tensor memory with ones and take a snapshot\n data.scalars().forEach(scalar -> ((NdArray<U>)scalar).setObject(valueOf(1)));\n Constant<T> y = tf.constantOf(tensor);\n\n // Subtract y from x and validate the result\n Sub<T> sub = tf.math.sub(x, y);\n ((NdArray<U>)sub.asTensor()).scalars().forEach(scalar ->\n assertEquals(valueOf(-1), scalar.getObject())\n );\n }\n }",
"public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }",
"Quantity initQuantity(Quantity iQuantity)\n {\n iQuantity.updateElementValue(\"Quantity\");\n return iQuantity;\n }",
"FloatValue createFloatValue();",
"FloatValue createFloatValue();",
"public Value() {}",
"@Override\r\n public void initialiseEmptyPanel()\r\n {\r\n gaugeName = Helpers.createLabel(\"Default\");\r\n \r\n gauge = new Radial();\r\n \r\n gauge.setPreferredSize(new Dimension(300,300));\r\n setTitle(\"Default\");\r\n add(gaugeName);\r\n add(gauge);\r\n \r\n }",
"private Default()\n {}",
"Vector getZeroVector();",
"Unit getUnit();"
] |
[
"0.6306742",
"0.62166274",
"0.6024049",
"0.6024049",
"0.59344715",
"0.5898656",
"0.58964425",
"0.5872379",
"0.58128524",
"0.58048326",
"0.5746639",
"0.5687714",
"0.56400675",
"0.5632258",
"0.5606113",
"0.55951476",
"0.55660075",
"0.5559266",
"0.5525518",
"0.55046016",
"0.55046016",
"0.5499624",
"0.54910916",
"0.5485949",
"0.54857266",
"0.54750836",
"0.54620403",
"0.5451431",
"0.54469216",
"0.54463613",
"0.5437114",
"0.5435207",
"0.5423419",
"0.5415182",
"0.5414378",
"0.5400864",
"0.5363291",
"0.5328988",
"0.5312342",
"0.53110623",
"0.5300569",
"0.53003967",
"0.5297672",
"0.5293521",
"0.5289022",
"0.52608526",
"0.52130085",
"0.5205805",
"0.5190318",
"0.5169657",
"0.5161292",
"0.5154274",
"0.51530284",
"0.5147757",
"0.51449203",
"0.5138549",
"0.5137291",
"0.5135651",
"0.5132915",
"0.5132442",
"0.5128026",
"0.51133066",
"0.51115036",
"0.5095464",
"0.5094486",
"0.5092689",
"0.5091925",
"0.5090595",
"0.5087684",
"0.5086351",
"0.50858366",
"0.50817436",
"0.5068935",
"0.5066468",
"0.50653654",
"0.5061578",
"0.5050276",
"0.5049472",
"0.50474346",
"0.5045646",
"0.5045011",
"0.50346416",
"0.5034101",
"0.5021665",
"0.5018329",
"0.50095624",
"0.50047845",
"0.5001124",
"0.49972335",
"0.49967217",
"0.49934265",
"0.49920106",
"0.49919146",
"0.4990096",
"0.4990096",
"0.49886596",
"0.49860272",
"0.4984367",
"0.49794212",
"0.4973739"
] |
0.7154562
|
0
|
Gets the UnitType of the Unit
|
public UnitType getUnitType() {
return unitType;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\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(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }",
"public static UnitTypes GetUnitType(Units unit)\n {\n return MethodsCommon.GetTypeFromUnit(unit);\n }",
"public Unit<?> getUnit() {\n return _unit;\n }",
"Unit getUnit();",
"public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType xgetUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n return target;\n }\n }",
"DefinedUnitType getDefinedUnit();",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public static ToolsEnums.UnitMovementType getMovementType(int unitType){\n\t\t\n\t\tswitch(unitType){\n\t\t\tcase unitWaypoint:\n\t\t\t\treturn ToolsEnums.UnitMovementType.NULL;\n\t\t\t\t\n\t\t\tcase unitNull:\n\t\t\t\treturn ToolsEnums.UnitMovementType.NULL;\n\t\t\t\t\n\t\t\tcase unitAvatar:\n\t\t\t\treturn ToolsEnums.UnitMovementType.GROUND;\n\t\t\t\t\n\t\t\tcase unitNovice:\n\t\t\t\treturn ToolsEnums.UnitMovementType.GROUND;\n\t\t\t\t\n\t\t\tdefault: \n\t\t\t\treturn ToolsEnums.UnitMovementType.NULL;\n\t\t}\n\t}",
"public String getUnit() {\n\t\treturn unit;\n\t}",
"DefiningUnitType getDefiningUnit();",
"public String getUnit()\n {\n return (this.unit);\n }",
"public Unit getUnit() {\n return unit;\n }",
"@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"String getUnit();",
"public String getUnit() {\n\t\treturn(symbol);\n\t}",
"public String getUnit();",
"public String getUnit () {\n\treturn this.unit;\n }",
"public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }",
"TimeUnit getUnit();",
"Unit getHasUnit();",
"public short getPrimitiveType() {\n \t\treturn unitType;\n \t}",
"public String getUnitName() {\n return unitName;\n }",
"public String getUnitName() {\n return unitName;\n }",
"public String getUnitName () {\n return unitName;\n }",
"public com.mpe.financial.model.ItemUnit getItemUnit () {\r\n\t\treturn itemUnit;\r\n\t}",
"public String getUnitName() {\r\n return unitName;\r\n }",
"protected UnitType getType(int x, int y) {\r\n\t\tMessage getMessage = new Message(), result;\r\n\t\tint id = localMessageCounter++;\r\n\t\tgetMessage.put(\"request\", MessageRequest.getType);\r\n\t\tgetMessage.put(\"x\", x);\r\n\t\tgetMessage.put(\"y\", y);\r\n\t\tgetMessage.put(\"id\", id);\r\n\t\tgetMessage.put(\"origin\", \"D\" + unitID);\r\n\t\t\r\n\t\t// Send the getUnit message\r\n\t\tif (!sendAndWait(getMessage))\r\n\t\t\treturn null;\r\n\r\n\t\tresult = messageList.get(id);\r\n\t\tif (result == null) // Could happen if the game window had closed\r\n\t\t\treturn UnitType.undefined;\r\n\t\tmessageList.remove(id);\r\n\t\t\r\n\t\treturn UnitType.values()[(Integer)result.get(\"type\")];\t\r\n\t\t\r\n\t}",
"public String unit() {\n return this.unit;\n }",
"public jkt.hms.masters.business.MasStoreAirForceDepot getUnit () {\n\t\treturn unit;\n\t}",
"public UIUnitType getUiUnitType() {\r\n\t\treturn uiUnitType;\r\n\t}",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"@Updatable\n public String getUnit() {\n return unit;\n }",
"public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}",
"public UnitManagerEventType getEventType() {\n\t\treturn eventType;\n\t}",
"public com.redknee.util.crmapi.soap.subscriptions.xsd._2010._06.SubscriptionBundleUnitType getUnitType(){\n return localUnitType;\n }",
"public int getTechnicalUnitTypeId() {\r\n return technicalUnitTypeId;\r\n }",
"public abstract String getUnit();",
"public int getUnitCalculatorType()\n {\n return m_nCalculatorType;\n }",
"public static int getUnitType(String unitTypeName) {\n\n\tint unitType = UnitTypes.UNKNOWN;\n\n\tif(unitTypeName.equals(\"lifeForm_USSR_DIGroup6_MgGndRfl\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"lifeForm_USSR_DIGroup3_Ags17\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"lifeForm_USSR_DIGroup2_Lfk5\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_BMP2\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_BMP1\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_BTR80\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"US___M977_________\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"USSR_T72M_________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"USSR_T80__________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"USSR_ZSU23_4M_____\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"USSR_2S6__________\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_M1\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_M1A1\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_M1A2\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M1___________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M1A1_________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M1A2_________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M35__________\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_SA_6_FCR\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_SA_6_TEL\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_T72M\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_T80\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XM375S\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XMG1S\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XMLTS\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XMTSS\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_ZSU23_4M\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_ZSU23_4M\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_MIG29\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_F16C\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_F16D\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_A10\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"munition_US_Maverick\")) {\n\t unitType = UnitTypes.MISSILE;\n\t}\n\telse if(unitTypeName.startsWith(\"lifeForm_\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"unknown\")) {\n\t unitType = UnitTypes.UNKNOWN;\n\t}\n\telse {\n\t Debug.info(\"UnitTypes.getUnitType: Unknown unitTypeName=\"+unitTypeName);\n\t}\n\n\treturn unitType;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"public String getUnitnm() {\r\n return unitnm;\r\n }",
"public Type getType();",
"public int getUnitNum(){\n\t\treturn Integer.parseInt(unitNumLbl.getText());\n\t}",
"MachineType getType();",
"public AIUnit getAIUnit(Unit unit) {\n AIObject aio = getAIObject(unit.getId());\n return (aio instanceof AIUnit) ? (AIUnit) aio : null;\n }",
"public int getUnit_id() {\r\n\t\treturn unitId;\r\n\t}",
"@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}",
"String getBaseUnit() {\n return baseUnit;\n }",
"public final ArrayList<Units> GetUnitsForCurrentType()\n {\n return MethodsUnitP.GetUnitsTypeCommon(UnitType);\n }",
"public Type getType() {\n return this.mType;\n }",
"public java.lang.CharSequence getBUSUNIT() {\n return BUS_UNIT;\n }",
"public String getToUnit() {\r\n return this.toUnit;\r\n }",
"public java.lang.CharSequence getBUSUNIT() {\n return BUS_UNIT;\n }",
"ChronoUnit getUnit();",
"public Type getType () {\n\t\treturn type;\n\t}",
"public int getType()\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(TYPE$2);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public Type getType() {\n\t\treturn mType;\n\t}",
"public Integer getUnitId() {\n return unitId;\n }",
"public Integer getUnitId() {\n return unitId;\n }",
"public type getType() {\r\n\t\treturn this.Type;\r\n\t}",
"public jkt.hms.masters.business.MasUnit getOtherUnit () {\n\t\treturn otherUnit;\n\t}",
"public Type getType() {\n\t\treturn this.type;\n\t}",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();"
] |
[
"0.8133051",
"0.7948433",
"0.77553505",
"0.7211622",
"0.70716155",
"0.7062968",
"0.70148414",
"0.6992227",
"0.69912076",
"0.6929132",
"0.69094527",
"0.678381",
"0.6767663",
"0.6715157",
"0.66797906",
"0.665636",
"0.66458565",
"0.66458565",
"0.66458565",
"0.6598101",
"0.6589972",
"0.65627044",
"0.65578014",
"0.6554166",
"0.6548175",
"0.6530299",
"0.6472918",
"0.6443464",
"0.6443464",
"0.641421",
"0.63828117",
"0.6381788",
"0.6381613",
"0.6372059",
"0.6368679",
"0.63672763",
"0.6303096",
"0.6290676",
"0.6239963",
"0.618801",
"0.6172518",
"0.61557233",
"0.61544806",
"0.6148975",
"0.61481106",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.61342645",
"0.6130367",
"0.60977674",
"0.60813314",
"0.6075251",
"0.60600173",
"0.6037981",
"0.6027608",
"0.6016489",
"0.601299",
"0.598688",
"0.59665227",
"0.59644514",
"0.5955557",
"0.59552145",
"0.59513026",
"0.59464264",
"0.593748",
"0.5936054",
"0.5936054",
"0.5929092",
"0.5927419",
"0.5912809",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417",
"0.59120417"
] |
0.81625384
|
0
|
private X x = new X("xxxH");
|
public H(String a, String b, String c, String d, String e, String f, String g, String h, X x) {
super(a, b, c, d, e, f, g, x);
this.h = h;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public XObject(){\n }",
"public XObject(){\r\n }",
"public A(int x)\n {\n xValue = x;\n }",
"public SuperClass(int x)\r\n {\r\n _x = x;\r\n }",
"private SingletonClass() {\n x = 10;\n }",
"private Ex() {\n }",
"private R() {\n\n }",
"private E() {}",
"public lo() {}",
"private A(){\n System.out.println(\"Instance created\");\n }",
"public D() {}",
"private SingleObject(){\n }",
"private SingleObject()\r\n {\r\n }",
"public Name() {\n\n }",
"public void NewX(double x){\n\t\tthis.x = x;\n\t}",
"private SingleObject(){}",
"SPX(Object obj) {\n super();\n\n this.obj = obj;\n\n }",
"public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }",
"private SingletonClass()\n {\n s = \"Hello I am a string part of Singleton class\";\n }",
"SimpleGen(X objX, Y objY){\n\t\tthis.objXReff=objX;\n\t\tthis.objYReff=objY;\n\t}",
"OBJECT createOBJECT();",
"public ComputerPlayer()\r\n {\r\n x = 0;\r\n }",
"private XMath()\n {\n \n }",
"public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }",
"public helptest()\n {\n // initialise instance variables\n x = 0;\n }",
"public Tester()\n {\n // initialise instance variables\n x = 0;\n }",
"public OOP_207(){\n\n }",
"public Member() {}",
"private Instantiation(){}",
"private HailstoneSequence(){ // This private constructor hides the implicit public one\r\n\r\n}",
"public static Singleton print(String param)\n {\n return new Singleton();\n}",
"public LocalObject() {}",
"abc createabc();",
"public Card() { this(12, 3); }",
"public Test() {\n }",
"public MyObject(String objectName){\n\n this.objectName = objectName;\n }",
"public LogX() {\n\n }",
"Point(int x_, int y_){\n x = x_;\n y = y_;\n }",
"id() {}",
"Object create(Object source);",
"public Person() {}",
"public Test()\n {\n }",
"public Person()\n {\n //intentionally left empty\n }",
"public void setX(int x) { this.x=x; }",
"private static class <init> extends <init>\n{\n\n public void a(Object obj, StringBuilder stringbuilder)\n {\n au au1 = (au)obj;\n y y1 = new y();\n y1.a(\"$ts\", Integer.valueOf(au1.a()));\n y1.a(\"$inc\", Integer.valueOf(au1.b()));\n a.a(y1, stringbuilder);\n }",
"public Point() {\n }",
"public Point() {\n }",
"public Sad() {\n }",
"public Demo3() {}",
"public SecondClassExample(){\n id = 10;\n }",
"private Node(E x) {\n\t\t\telement = x;\n\t\t\tnext = null;\n\t\t}",
"public int x(){\n return x;\n }",
"private Message(){\n // default constructor\n }",
"A createA();",
"O() { super(null); }",
"public T(Object o){\r\n\t\tl = o;\r\n\t}",
"private void insertThis(ClassType object, MethodType x)\r\n {\r\n if ((x.modify & Keyword.STATICSY.value) == 0)\r\n {\r\n Parameter p = new Parameter();\r\n p.name = new Token();\r\n p.name.string = \"§this\";\r\n p.type = new Type();\r\n p.type.version = object.version;\r\n p.type.ident.string = object.name.string;\r\n p.type.type = Keyword.NONESY;\r\n\r\n Parameter [] q = new Parameter[x.parameter.length + 1];\r\n\r\n q[0] = p;\r\n for(int i = 1; i < q.length; i++)\r\n q[i] = x.parameter[i - 1];\r\n\r\n x.parameter = q;\r\n }\r\n\r\n if (x.throwing.length > 0)\r\n {\r\n Parameter p = new Parameter();\r\n p.name = new Token();\r\n p.name.string = \"§exception\";\r\n p.name.kind = Keyword.IDENTSY;\r\n p.type = new Type();\r\n p.type.type = Keyword.VOIDSY;\r\n\r\n Parameter[] q = new Parameter[x.parameter.length + 1];\r\n for (int i = 0; i < x.parameter.length; i++)\r\n q[i] = x.parameter[i];\r\n\r\n q[q.length - 1] = p;\r\n x.parameter = q;\r\n }\r\n }",
"public Self__1() {\n }",
"public Hello()\n {\n // initialise instance variables\n \n }",
"public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}",
"Member() {}",
"private Ognl(){\n }",
"private Token () { }",
"public Excellon ()\n {}",
"private ARXOrderedString(){\r\n this(\"Default\");\r\n }",
"private Value() {\n\t}",
"@Test\n public void addToX() {\n Position pos = new Position(10,10);\n pos=pos.addToX(3);\n\n assertEquals(13,pos.getX());\n }",
"public Clade() {}",
"public Holder() {\n }",
"@SuppressWarnings(\"unused\")\n public Coordinate() {}",
"public Member() {\n //Empty constructor!\n }",
"public Person(String inName)\n {\n name = inName;\n }",
"public abstract Member mo23408O();",
"public Employee() {}",
"public Cross(String owner){\r\n super(owner);\r\n }",
"public void setX(int x)\r\n {\r\n this.x = x;\r\n }",
"public Variable(){\n name = \"\";\n initialValue = 0;\n }",
"public Person() {\n\t\t\n\t}",
"public Card(int x) {\n\t\tid = x;\n\t}",
"public _355() {\n\n }",
"public Member() {\r\n\t}",
"GameObject(int x, int y){\n loadSprite();\n this.x = x;\n this.y = y;\n }",
"public Pleasure() {\r\n\t\t}",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"private DarthSidious(){\n }",
"public Square() {\n this(\"x\", false, false);\n }",
"public int getX(){return this.x;}",
"public Book() {}",
"public God() {}",
"private User() {}",
"private Heap() { }",
"private Heap() { }",
"@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}",
"public TestMe()\r\n/* 11: */ {\r\n/* 12:10 */ this.myNumber = (instanceCounter++);\r\n/* 13: */ }",
"public Square() {\n content = \"EMPTY\";\n \n }",
"public VendingMachineTest()\r\n {\r\n // initialise instance variables\r\n x = 0;\r\n }",
"public VoXtdzqx() {\n }"
] |
[
"0.720649",
"0.7170864",
"0.673659",
"0.6701604",
"0.6584974",
"0.60969585",
"0.5992893",
"0.59448254",
"0.5897944",
"0.5862486",
"0.5861979",
"0.5750117",
"0.573098",
"0.5729011",
"0.570057",
"0.5680997",
"0.56807196",
"0.5667893",
"0.5654872",
"0.5646505",
"0.5644123",
"0.56292206",
"0.5613368",
"0.5607248",
"0.5599313",
"0.5596823",
"0.5583139",
"0.5567718",
"0.55640274",
"0.5561171",
"0.5551644",
"0.5544187",
"0.55428743",
"0.55286604",
"0.55256146",
"0.5521313",
"0.55195767",
"0.55145013",
"0.55130386",
"0.5510179",
"0.55100924",
"0.5509094",
"0.5508126",
"0.5507657",
"0.5506418",
"0.5506413",
"0.5506413",
"0.5493165",
"0.54900825",
"0.5484718",
"0.54844683",
"0.54799014",
"0.54778814",
"0.5473067",
"0.5464541",
"0.5448422",
"0.5445481",
"0.54334646",
"0.5429855",
"0.54197776",
"0.5418359",
"0.54163736",
"0.54157764",
"0.5398253",
"0.5398007",
"0.53922415",
"0.5392135",
"0.539153",
"0.53852546",
"0.5381839",
"0.53788894",
"0.5377235",
"0.537602",
"0.53720456",
"0.5364261",
"0.5359485",
"0.5359419",
"0.535897",
"0.53535324",
"0.53524995",
"0.5348891",
"0.5348088",
"0.5347934",
"0.5344231",
"0.5344231",
"0.5344231",
"0.5344231",
"0.53430086",
"0.5339411",
"0.5336494",
"0.53335005",
"0.53318983",
"0.533088",
"0.5320172",
"0.5320172",
"0.5314741",
"0.5311369",
"0.5308566",
"0.5305482",
"0.53052413"
] |
0.59643215
|
7
|
once the user logged in
|
@RequestMapping(Mappings.INDEX)
public ModelAndView index(){
ModelAndView mv = new ModelAndView(ViewNames.INDEX);
return mv;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void loggedInUser() {\n\t\t\n\t}",
"public void login() {\n\t\tloggedIn = true;\n\t}",
"private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }",
"public void LogIn() {\n\t\t\r\n\t}",
"private boolean isLoggedInUser(){\n return true;\n }",
"@Override\n public void onLoggedIn() {\n\n }",
"private void checkIfUserIsAuthenticated() {\n splashViewModel.checkIfUserIsAuthenticated();\n splashViewModel.getIsUserAuthenticated().observe(this, user -> {\n if (!user.isAuthenticated()) {\n startAuthActivity();\n finish();\n } else {\n getUserFromDatabase(user.getUid());\n }\n });\n }",
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"public static void makeLogged() {\n\t\tMemberSessionFacade.setAttribute(ConfigKeys.LOGGED, \"1\");\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, \"1\");\n\t}",
"public void StartLogIn(){\n\t}",
"public void onStart() {\n super.onStart();\n // Check if user is signed in (non-null) and update UI accordingly.\n FirebaseUser currentUser = mAuth.getCurrentUser();\n if (currentUser!=null)\n this.logIn(currentUser);\n }",
"public void userLoggedIn(CurrentUser user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged in\");\t\t\n\t\t\tMainActivity.this.userLoggedIn();\n\t\t}",
"public void userLoggedIn(CurrentUser user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged in\");\n\t\t\tMainActivity.this.userLoggedIn();\n\t\t}",
"protected void login() {\n\t\t\r\n\t}",
"@Override\n public void onStart() {\n super.onStart();\n // Check if user is signed in (non-null) and update UI accordingly.\n FirebaseUser currentUser = mAuth.getCurrentUser();\n }",
"private void userIsAuthenticated() {\n this.setResult(RC_USER_LOGGED_IN, null);\n this.finish();\n }",
"@Override\n public void onStart(){\n super.onStart();\n //Check if user is signed in and update UI accordingly\n FirebaseUser currentUser = mAuth.getCurrentUser();\n\n if (currentUser != null){\n //User is signed in\n updateUI(\"User Signed In\");\n }\n else {\n // User is signed out\n updateUI(\"User Signed Out\");\n }\n\n // Check for existing Google Sign In account, if the user is already signed in\n // the GoogleSignInAccount will be non-null.\n GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this);\n if(account != null) {\n accountEmail = account.getEmail();\n updateUI(account.toString());\n }\n }",
"private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }",
"void markAsUserSession();",
"private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }",
"public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"admin@gibmit.ch\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}",
"private boolean isLoggedIn() {\n // Gets SharedPreferences\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n // Gets boolean, which displays if the user has ever logged in.\n // This changes to true, when the user has logged in\n return sharedPreferences.getBoolean(getResources().getString(R.string.pref_logged_in_key), getResources().getBoolean(R.bool.pref_already_logged_in_default));\n }",
"public void loggedInSuccessful() {\n\t\tIntent intent = new Intent(this, MainActivity.class);\n\t\tstartActivity(intent);\n\t\tthis.finish();\n\t}",
"private void doLogin() {\r\n\t\tloggedIn = true;\r\n\t\tdoctor.setOnline(1);\r\n\t\t// Set doctor as logged in\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Get a list of currently logged in doctors\r\n\t\tdoctors = dbAdapter.getDoctors(this.doctor);\r\n\t\t// Add listeners to keep the list updated\r\n\t\ttry {\r\n\t\t\teb.addListener(new LogoutListener(this.doctor.getMac(),\r\n\t\t\t\t\tthis.location));\r\n\t\t\teb.addListener(new DeviceDetectedListener());\r\n\t\t\teb.addListener(new DevicedMovedListener());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: Handle\r\n\t\t}\r\n\t\tnotifyObservers();\r\n\t}",
"private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }",
"boolean hasLoggedIn();",
"@Override\n public void onStart() {\n super.onStart();\n // Check if user is signed in (non-null) and update UI accordingly.\n currentUser = firebaseAuth.getCurrentUser();\n firebaseAuth.addAuthStateListener(authStateListener);\n\n\n }",
"@Override\n public void onStart() {\n super.onStart();\n //Se toma el usuario actual ... si está validado\n FirebaseUser currentUser = mAuth.getCurrentUser();\n updateUI(currentUser);\n }",
"public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}",
"public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }",
"public boolean isUserLoggedIn();",
"@Override\n\tpublic void setLoggedIn(boolean arg0) {\n\t\t\n\t}",
"private LogIn() {}",
"@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }",
"public Boolean isLoggedIn()\n {\n return isLoggedIn;\n }",
"private boolean setLoggedInUser(String userId) {\n if (currentContext != null) {\n //Set the user Id when user is successfully logged_in\n if (mFireBaseAnalytics != null)\n mFireBaseAnalytics.setUserId(userId);\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(LOGIN_SHARED_PREF_NAME, 0);\n return sharedPrefs.edit().putString(USER_ID_SHARED_PREF_NAME, userId).commit() &&\n setLoggedInTime();\n }\n return false;\n }",
"@Override\n protected void onStart() {\n super.onStart();\n FirebaseUser currentUser = mAuth.getCurrentUser();\n if (currentUser != null){\n UpdateUI();\n }\n }",
"private void signInAlready(FirebaseUser user) {\n if (user != null) {\n updateUI(user);\n } else {\n updateUI(null);\n }\n }",
"@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }",
"private void signIn() {\n }",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"private static void logedIn(Request req, Response res, CloudService cloud) {\r\n\t\t\tif (cloud.getKorisnici().get(req.cookie(\"userID\")) == null) {\r\n\t\t\t\tString[] params = req.splat();\r\n\t\t\t\tString path;\r\n\t\t\t\tif(params.length == 0)\r\n\t\t\t\t\tpath = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpath = params[0];\r\n\t\t\t\tif(path.equals(\"checkLogin\") || path.equals(\"favicon.ico\"))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tres.redirect(\"/login.html\");\r\n\t\t\t\thalt(302);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(req.session().attribute(\"user\") == null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tKorisnik k = cloud.getKorisnici().get(req.cookie(\"userID\"));\r\n\t\t\t\t\treq.session().attribute(\"user\", k); // postavi mu korisnika za sesiju\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"@Override\n public void run() {\n isLoggedin = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(\"loggedIn\",Boolean.FALSE);\n if(isLoggedin.equals(Boolean.TRUE)){\n Intent mainIntent = new Intent(Splash.this,MainActivity.class);\n Splash.this.startActivity(mainIntent);\n }\n else{\n Intent mainIntent = new Intent(Splash.this,Login.class);\n Splash.this.startActivity(mainIntent);}\n Splash.this.finish();\n }",
"@Override\n public void run() {\n if (sharedPreferences.contains(\"User-id\")) {\n loginUserId = sharedPreferences.getString(\"User-id\", null);\n if (loginUserId.equals(\"\") || loginUserId.equals(null)) {\n startActivity(new Intent(SplashScreen.this, LoginActivity.class));\n } else {\n startActivity(new Intent(SplashScreen.this, HomePageActivity.class));\n }\n } else {\n startActivity(new Intent(SplashScreen.this, LoginActivity.class));\n }\n }",
"@Override\n public void run() {\n if (session.isLoggedIn()) {\n Intent i = new Intent(Splash.this, MainActivity.class);\n startActivity(i);\n finish();\n }\n else if(!session.isLoggedIn()){\n Intent i = new Intent(Splash.this, RepRegistration.class);\n startActivity(i);\n finish();\n }\n }",
"@Override\n\tpublic UserFormData loggedIn(final UserFormData userData) {\n\t\tfinal Date now = new Date();\n\t\tLOG.info(new StringBuilder().append(\"User \" + userData.getEmail()).append(\" (login : \" + userData.getLogin())\n\t\t\t\t.append(\") juste logged in, updating stats data\").toString());\n\t\tSQL.insert(SQLs.USER_UPDATE_LAST_LOGIN, userData, new NVPair(\"currentDate\", now));\n\n\t\tthis.dataCache.clearCache(userData.getUserId().getValue());\n\t\treturn userData;\n\t}",
"@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}",
"public boolean isLoggedin(){\n return STATE.equals(IN);\n }",
"public void onPlayerLoggedIn() {\n\t\tshowPlayerButtons();\n\t}",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"void setHasLoggedIn(Boolean value);",
"@Override\n public void loggedIn(Member member) {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }",
"public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }",
"private boolean loggedIn() {\n boolean exist = false;\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n if (u.getLoggedIn() != null) {\n exist = u.getLoggedIn().booleanValue();\n }\n return exist;\n }",
"public void checkAlreadyLogin(CheckLoggedInInterface listner) {\n currentUser = firebaseAuth.getCurrentUser();\n if(currentUser != null) listner.isLoggedIn(true);\n else listner.isLoggedIn(false);\n }",
"final String loginAsAutoUser() {\r\n \treturn loginAsAutoUser(false);\r\n }",
"@Override\n\tpublic void onExpiration(Session session) {\n\t\tlogger.info(\"onExpiration session created:id= {}, begin at {}\", session.getId(), session.getStartTimestamp());\n\t\tlogger.info(\"currentUser={}\",session.getAttribute(Constants.CURRENT_USER));\n\t}",
"public void onConnectSpamDone() {\n loggingIn = false;\n }",
"public boolean isLoggedIn(){\n return mIsLoggedIn;\n }",
"private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }",
"@Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n FirebaseUser mFirebaseUser = mFirebaseAuth.getCurrentUser();\n if( mFirebaseUser != null){\n Toast.makeText(LogInActivity.this,\"You are logged in\",Toast.LENGTH_SHORT).show();\n Intent move = new Intent(LogInActivity.this,HomeActivity.class);\n startActivity(move);\n }\n else{\n Toast.makeText(LogInActivity.this,\"Please Log In\",Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\tpublic boolean isLoggedIn() {\n\t\treturn false;\n\t}",
"private void observeIsUserLoggedInLiveData() {\n viewModel.getIsUserLoggedInLiveData()\n .observe(this, loggedInStatus -> isUserLoggedIn = loggedInStatus);\n }",
"@Override\n protected void afterAuthenticating() {\n }",
"public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }",
"@Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n FirebaseUser user = firebaseAuth.getCurrentUser();\n if (user != null) {\n // User is signed in\n // Log.d(TAG, \"onAuthStateChanged:signed_in:\" + user.getUid());\n // toastMessage(\"Successfully signed in with: \" + user.getEmail());\n } else {\n // User is signed out\n // Log.d(TAG, \"onAuthStateChanged:signed_out\");\n // toastMessage(\"Successfully signed out.\");\n }\n // ...\n }",
"User getCurrentLoggedInUser();",
"@Override\n protected void onStart() {\n super.onStart();\n\n if(mAuth.getCurrentUser() == null){\n finish();\n startActivity(new Intent(this, MainActivity.class));\n\n }\n }",
"public boolean isLoggedIn()\n {\n return this.isLoggedIn;\n }",
"protected synchronized void login() {\n\t\tauthenticate();\n\t}",
"private void checkAccountLoggedIn()\r\n\t{\n\t\tSharedPreferences pref = this.getSharedPreferences(\"accountdata\", 0);\r\n\t\tSystem.out.println(\"Checking if an account is logged in\");\r\n\t\tif (pref.getBoolean(\"accountLoggedIn\", false))\r\n\t\t{\r\n\t\t\tloginButton.setEnabled(false);\r\n\t\t\tregisterButton.setEnabled(false);\r\n\r\n\t\t\t// Make a crouton notifying the user\r\n\t\t\tCrouton crouton = Crouton.makeText(this, this.getResources()\r\n\t\t\t\t\t.getString(R.string.activity_login_account_loggedin),\r\n\t\t\t\t\tStyle.INFO);\r\n\t\t\tConfiguration.Builder configBuild = new Configuration.Builder();\r\n\t\t\tconfigBuild.setDuration(Configuration.DURATION_INFINITE);\r\n\t\t\tcrouton.setConfiguration(configBuild.build());\r\n\t\t\tcrouton.setOnClickListener(new OnClickListener()\r\n\t\t\t{\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Crouton clicked\");\r\n\t\t\t\t\t((LoginActivity) v.getContext()).onBackPressed();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tcrouton.show();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}",
"public boolean isLoggedIn(){\n return mSharedPreferences.contains(SharedPrefContract.PREF_IS_LOGGED_IN) && mSharedPreferences.getBoolean(SharedPrefContract.PREF_IS_LOGGED_IN, true);\n }",
"void signInComplete();",
"private boolean isLoggedIn() {\n return mSharedPreferences.getBoolean(PREF_KEY_LOGIN, false);\n }",
"@Override\n public void run() {\n PreferenceManager.getDefaultSharedPreferences(AuthenticatorExample.this)\n .edit().putBoolean(\"is_authenticated\", true).commit();\n // Notify the service that authentication is complete\n notifyAuthenticated();\n // Close the Activity\n finish();\n }",
"private void autoLogon() {\n\n // Get the username from the shared preferences file\n String strMailID = null;\n SharedPreferences appPreferences = getSharedPreferences(RegistrationScreenActivity.PREFERENCES_FILENAME, MODE_PRIVATE);\n if( appPreferences.contains(RegistrationScreenActivity.KEY_MAIL_ID) ) {\n strMailID = appPreferences.getString(RegistrationScreenActivity.KEY_MAIL_ID, null);\n }\n\n // If the username is not stored in the file, then request\n // the user to explicitly login by providing the credentials\n if(strMailID != null) {\n\n // Fetch the data from the database\n DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());\n AccountInformation accountInfo = dbHandler.getAccountInfo(strMailID);\n if(accountInfo != null) {\n\n // If the account exists, then check auto logon is set to true\n if( !accountInfo.getIfSignedOut() && accountInfo.getIfAlwaysSignIn() ) {\n\n strUserMailID = accountInfo.getEmail();\n strUserName = accountInfo.getName();\n\n // Do auto login by auto displaying the home screen\n Intent intent = new Intent(this, HomeScreenActivity.class);\n intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);\n intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);\n startActivity(intent);\n\n } else {\n\n // Request user to enter the credentials\n Toast.makeText(getApplicationContext(), \"Session signed out previously. \\n \" +\n \"Please enter credentials to login\", Toast.LENGTH_LONG).show();\n }\n } else {\n // Display error if the account does not exists\n Toast.makeText(getApplicationContext(), \"No such user exists. \\n \" +\n \"Please register to login\", Toast.LENGTH_LONG).show();\n }\n }\n }",
"@Override\r\n protected void onStart() {\r\n super.onStart();\r\n if(mAuth.getCurrentUser() !=null)\r\n {\r\n finish();\r\n startActivity(new Intent(this,Account.class));\r\n }\r\n }",
"public void loginSuccess(@Observes org.jboss.seam.security.events.LoggedInEvent event) {\n try {\n log.info(\"Login successfully for user : \" + event.getUser().getId());\n FacesContext context = FacesContext.getCurrentInstance();\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\n //Redirect to the home page\n if (identity.hasRole(\"admin\", \"crm\", \"GROUP\")\n || identity.hasRole(\"commercial\", \"crm\", \"GROUP\")) {\n context.getExternalContext().redirect(request.getContextPath() + \"/backoffice/home.jsf\");\n }else if(identity.hasRole(\"client\", \"crm\", \"GROUP\")){\n context.getExternalContext().redirect(request.getContextPath() + \"/frontoffice/home.jsf\");\n }\n //Sending welcome message\n messages.info(\"Bienvenue \"+event.getUser().getId());\n } catch (IOException ex) {\n log.error(ex.getMessage());\n }\n }",
"public void sessionStarted() {\n\t\t\r\n\t}",
"@Override\n public void run() {\n System.out.println(\"sessionManager.isLoggedIn()\" + sessionManager.isLoggedIn());\n if (sessionManager.isLoggedIn()) {\n i = new Intent(getApplicationContext(), MainActivity.class);\n i.putExtra(\"activity\",\"Launch\");\n startActivity(i);\n } else {\n i = new Intent(getApplicationContext(), LoginActivity.class);\n i.putExtra(\"Name\",\"Launch\");\n startActivity(i);\n }\n finish();\n }",
"@Override\n public void run() {\n\n if (isSignedUp && isLoggedIn) {\n Intent mainIntent = new Intent(Activity_Splash.this, Activity_HomePage.class);\n Activity_Splash.this.startActivity(mainIntent);\n }else{\n Intent mainIntent = new Intent(Activity_Splash.this, Activity_Login.class);\n Activity_Splash.this.startActivity(mainIntent);\n }\n Activity_Splash.this.finish();\n }",
"@Override\r\n\t\t\t\t\tpublic void onLoginedNotify() {\n\t\t\t\t\t\tTypeSDKLogger.d( \"onLoginedNotify\");\r\n\t\t\t\t\t\thaimaLogout();\r\n\t\t\t\t\t\thaimaLogin();\r\n\t\t\t\t\t}",
"@Override\n public void onAuthenticated(AuthData authData) {\n Log.i(\"lt\", \"authed\");\n }",
"public Boolean isLoggedIn() {\n return this.loggedIn;\n }",
"@Override\n protected void onStart(){\n super.onStart();\n FirebaseUser user=auth.getCurrentUser();\n\n if(user!=null){\n startActivity(new Intent(MainActivity.this,HomeActivity.class));\n }\n }",
"@Override\n public void onAuthenticated(AuthData authData) {\n\n Context context = getApplicationContext();\n CharSequence text = \"Logged in\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n //save uid\n //remove uid\n SharedPreferences sharedPref = getApplicationContext().getSharedPreferences(\n getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"uid\", authData.getUid().toString());\n editor.commit();\n\n Intent goToNextActivity = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(goToNextActivity);\n }",
"private void checkForSavedLogin() {\n\t\taccessToken = getAccessToken();\n\t\tif (accessToken==null) return;\t//if there are no credentials stored then return to usual activity\n\n\t\t// initialize Twitter4J\n\t\ttwitter.setOAuthAccessToken(accessToken);\n\t}",
"@Override\n public void onLoggedInVerified(User user) {\n bakery.toastShort(user.getEmail());\n loadTaskActivity();\n }",
"public void run() {\n if (userAutentification(email, password)) {\n onLoginSuccess(name, email);\n } else {\n onLoginFailed();\n // onLoginFailed();\n }\n mConnectionProgressDialog.dismiss();\n }",
"@Override\n\tpublic void loginUser() {\n\t\t\n\t}",
"public boolean isLoggedIn() {\n return loggedIn;\n }",
"public boolean isLoggedIn(){\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n if (sharedPreferences.getString(KEY_USERNAME, null) != null){\n return true;\n }\n return false;\n }",
"public abstract boolean isLoggedIn();",
"public void authUser(){\n\n String emptyString = \"\";\n if(!(String.valueOf(userName.getText()).equals(emptyString) ||\n String.valueOf(userNumber.getText()).equals(emptyString))){\n\n SharedPreferences preferences = getApplicationContext().getSharedPreferences(\"user_info\", 0);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(getResources().getString(R.string.isLoggedIn), true);\n editor.putString(getResources().getString(R.string.userName), String.valueOf(userName.getText()));\n editor.putString(getResources().getString(R.string.userNumber), String.valueOf(userNumber.getText()));\n editor.apply();\n\n Intent intent = new Intent(getApplicationContext(), HomeScreen.class);\n\n startActivity(intent);\n }\n else{\n Toast.makeText(getApplicationContext(),\n \"Please enter compelete credentials..\", Toast.LENGTH_SHORT)\n .show();\n }\n\n }",
"synchronized public boolean getLoggedin()\n\t{\n\t\treturn userInfo.isSessionValid();\n\t}",
"public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}",
"public boolean isUserLoggedIn(Context context){\n\t\tDatabaseHandler db = new DatabaseHandler(context);\n\t\tint count = db.getRowCount();\n\t\tif(count > 0){\n\t\t\t// user logged in\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic void login() {\n\r\n\t}",
"@Override\r\n\tprotected void onLoginSuccess() {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tgoLoginActivity();\n\t\t\t}"
] |
[
"0.79283714",
"0.7446181",
"0.71110004",
"0.71031237",
"0.70633394",
"0.68275803",
"0.6808764",
"0.6804934",
"0.67526805",
"0.67340434",
"0.67071706",
"0.6695672",
"0.6683689",
"0.66697514",
"0.66671705",
"0.66497123",
"0.6647357",
"0.6641553",
"0.6623902",
"0.6542875",
"0.65245926",
"0.65166837",
"0.65153784",
"0.6512498",
"0.65072554",
"0.6475618",
"0.64727867",
"0.64694566",
"0.6463635",
"0.6454742",
"0.6447003",
"0.64328057",
"0.64296454",
"0.6428007",
"0.6426574",
"0.6424618",
"0.6421054",
"0.64189196",
"0.64131373",
"0.6403328",
"0.63952726",
"0.63725924",
"0.6371336",
"0.6358341",
"0.6352781",
"0.63382787",
"0.6320676",
"0.6316929",
"0.6315638",
"0.6314477",
"0.6302465",
"0.6301282",
"0.6298765",
"0.62973905",
"0.62963533",
"0.62956095",
"0.6294661",
"0.62884796",
"0.62810385",
"0.6280665",
"0.6278093",
"0.6270582",
"0.62700325",
"0.62579083",
"0.62542266",
"0.62499446",
"0.62422645",
"0.6241327",
"0.6241101",
"0.6240362",
"0.623622",
"0.62343806",
"0.6231973",
"0.62242216",
"0.6218488",
"0.62138635",
"0.62105167",
"0.6203423",
"0.6191273",
"0.61893654",
"0.61880535",
"0.61814564",
"0.61748254",
"0.6174193",
"0.6173288",
"0.6151897",
"0.6147674",
"0.6147238",
"0.6141075",
"0.61403733",
"0.6136398",
"0.6135724",
"0.61326265",
"0.6129221",
"0.6128025",
"0.6123026",
"0.6122488",
"0.6118416",
"0.6112796",
"0.6109613",
"0.6107047"
] |
0.0
|
-1
|
once user logout out
|
@RequestMapping(Mappings.LOGOUT)
public String logout(){
return "redirect:/login";
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void logout() {\n \n }",
"public void Logout() {\n \t\t\t\n \t\t}",
"@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}",
"void logoutDone();",
"private void doLogout() {\r\n\t\tdoctor.setOnline(0);\r\n\t\t// Set doctor as logged out\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Release objects and notify observers\r\n\t\tloggedIn = false;\r\n\t\tnotifyObservers();\r\n\t\tdoctors = null;\r\n\t\tdoctor = null;\r\n\t}",
"void logout();",
"void logout();",
"private void logout()\r\n {\r\n LogoutRequest request = new LogoutRequest();\r\n request.setUsername(username);\r\n this.sendRequest(request);\r\n }",
"public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }",
"public void logout(){\r\n\t\tallUser.remove(this.sessionID);\r\n\t\tthis.sessionID = -1;\r\n\t}",
"@Override\n\tpublic void logout() {\n\t}",
"private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }",
"public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }",
"private void logout() {\n LogoutTask mAuthTask = new LogoutTask();\n mAuthTask.execute((Void) null);\n }",
"void onLogout(boolean loggedIn);",
"public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }",
"@Override\n public void Logout() {\n\t \n }",
"public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}",
"public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }",
"private void logout() {\n getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit().clear().apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE).edit().putBoolean(IS_LOGGED_IN, false).apply();\n\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(URL + \"/nuh/logout\")\n .build();\n AsyncTask.execute(() -> {\n try {\n client.newCall(request).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }",
"protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}",
"private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }",
"private void logout() {\n Utils.showConfirmationDialogCallBack(MainActivity.this, getString(R.string.logout_sure), this);\n }",
"@Override\n public void performLogout(){\n }",
"public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n /*\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n \n \n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n */\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n\n this.setVisible(false);\n }\n\n }",
"private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}",
"@Override\n\tpublic void logOutUser() {\n\t\t\n\t}",
"public void logout(){\n\t\t\n\t\tcurrentUser.logout();\n\t\tcurrentUser = null;\n\t\tchangeViewPort(new GUI_Logout(\"\", \"\", this));\n\t}",
"private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}",
"public void logout() {\n loggedIn = \"\";\n FacesContext.getCurrentInstance().getExternalContext()\n .getSessionMap().put(\"loggedIn\", \"\");\n }",
"private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }",
"public void attemptLogout() {\n spEditor.clear();\n spEditor.putBoolean(LOGGEDIN_KEY, false);\n spEditor.commit();\n }",
"@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}",
"@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}",
"@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}",
"public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }",
"public void logout() {\n getRequest().getSession().invalidate();\n }",
"public void logOut() {\n sp.edit().clear().commit();\n }",
"private void logout(){\n showLoadingDialog();\n TwitterController.getInstance().logout(logoutCallback);\n }",
"private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}",
"public void Logout()\n {\n isLoggedIn = false;\n connection.Disconnect(); \n connection = null;\n }",
"private void logout() {\n //set offline flag\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\n new PostNoSqlDataBase(this).offline(uid);\n\n //logout\n // FirebaseAuth mAuth = FirebaseAuth.getInstance();\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mGoogleSignInClient.signOut();\n FirebaseAuth.getInstance().signOut();\n //go to the main activity\n startActivity(new Intent(this, SignUpActivity.class));\n finish();\n }",
"void logoutSuccessful();",
"public abstract void logout();",
"private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(Activity_Main.this, Activity_Login.class);\n startActivity(intent);\n finish();\n }",
"public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}",
"private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }",
"@Override\r\n\tpublic void userLogout(String login) {\n\r\n\t}",
"@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}",
"public static void logout() {\n userId = -1;\n aisId = -1;\n \n name = \"\";\n role = \"\";\n roleFromDatabase = \"\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n }",
"void successLogout();",
"public void logout () {\n\t\tif (isLoggedIn()) {\n\t\t\tGPPSignIn.sharedInstance().signOut();\n\t\t\tGPGManager.sharedInstance().signOut();\n\t\t}\n\t}",
"private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }",
"private void logout(){\r\n\t\ttry {\r\n\t\t\tserver.rmvClient(user);\r\n\t\t} catch (RemoteException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tSystem.exit(0);\r\n\t}",
"public void Logout(){\n preferences.edit().remove(userRef).apply();\n }",
"@Override\n public void doLogout() {\n // Toast.makeText(getApplicationContext(),\"Session Expired\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), activity_Login.class);\n startActivity(intent);\n }",
"private void logoutHandler() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context, android.R.style.Theme_DeviceDefault_Dialog);\n builder.setTitle(\"Logout?\");\n builder.setMessage(\"Are you sure you want to logout?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Util.setLoggedInFlag(false);\n\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n\n Intent intent = new Intent(HomeActivity.this, SplashActivity.class);\n startActivity(intent);\n HomeActivity.this.finish();\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n builder.show();\n }",
"private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(EscolhaProjeto.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }",
"public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\t\n\t\t}",
"@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLocalRequest().getSession().invalidate();\n\t\t\n\t}",
"public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }",
"public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\n\t\t}",
"@Override\n public void doLogout() {\n // Toast.makeText(getApplicationContext(),\"Session Expired\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(getApplicationContext(), activity_Login.class);\n startActivity(intent);\n }",
"public void logOut() {\n Logger.d(TAG,\"login#logOut\");\n Logger.d(TAG,\"login#stop reconnecting\");\n //\t\teverlogined is enough to stop reconnecting\n everLogined = false;\n isLocalLogin = false;\n reqLoginOut();\n }",
"private void logout() {\n ProgressDialog logoutProgressDialog = new ProgressDialog(ContributionsGalleryActivity.this);\n logoutProgressDialog.setMessage(getResources().getString(R.string.logging_out));\n logoutProgressDialog.setCancelable(false);\n logoutProgressDialog.show();\n ParseUser.logOutInBackground(e -> {\n logoutProgressDialog.dismiss();\n if (e != null) { // Logout has failed\n Snackbar.make(contributionsGalleryRelativeLayout, getResources().getString(R.string.logout_failed), Snackbar.LENGTH_LONG).show();\n }\n else { // Logout has succeeded\n goLoginSignupActivity();\n finish();\n }\n });\n }",
"private void doLogout() {\n mRtmClient.logout(null);\n MessageUtil.cleanMessageListBeanList();\n }",
"private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(getActivity(), LoginActivity.class);\n startActivity(intent);\n getActivity().finish();\n }",
"@Override\n public void logOut() {\n }",
"public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n mCtx.startActivity(new Intent(mCtx, LoginActivity.class));\n }",
"public void logout() {\n // Mengambil method clear untuk menghapus data Shared Preference\n editor.clear();\n // Mengeksekusi perintah clear\n editor.commit();\n // Membuat intent untuk berpindah halaman\n Intent intent = new Intent(context, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n }",
"public static Result logout() {\n session().clear();\n flash(\"success\", Messages.get(\"youve.been.logged.out\"));\n return GO_HOME;\n }",
"private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\t\tdb.deleteUsers();\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(MainActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}",
"@Override\r\n\t\t\tpublic void onLogout() {\n\t\t\t\tshowToast(\"onLogout---\");\r\n\t\t\t}",
"public void logout() {\n\n $(logOutNavigator).click();\n driver = commonMethods.waitForElement(driver, logOffBtn);\n $(logOffBtn).click();\n $(loadingProgressIcon).should(disappear);\n }",
"public String logout()\n\t{\n\t\tsession.remove(\"user_name\");\n\t\tsession.remove(\"password\");\n\t\tsession.clear();\n\t\tsession.invalidate();\t\n\t\taddActionMessage(\"You Have Been Successfully Logged Out\");\n\t\treturn SUCCESS;\n\t}",
"public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}",
"public void logout(){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = GET_LOGOUT_KEYWORD;\t\t\t\t\r\n\r\n\t\t// Sending message\r\n\t\tpw.println(messageToServer);\t\t\r\n\t\tpw.flush();\r\n\r\n\t\t// Closing connection\r\n\t\ttry {\r\n\r\n\t\t\tif(client != null) \r\n\t\t\t\tclient.close();\r\n\r\n\t\t\tif(pw != null) \r\n\t\t\t\tpw.close();\r\n\r\n\t\t\tif(br != null) \r\n\t\t\t\tbr.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"[EXCEPTION] closing streams, socket\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"boolean checkLogout(User user, HttpServletRequest request, HttpSession session);",
"public void logout() {\n \n FacesContext.getCurrentInstance().getExternalContext().invalidateSession();\n try {\n FacesContext.getCurrentInstance().getExternalContext()\n .redirect(\"/BookStorePelikSangat/faces/admin/loginadmin.xhtml\");\n } \n catch (IOException e) {}\n\t}",
"@Override\n\tpublic String logout() {\n\t\treturn null;\n\t}",
"public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n Intent myIntent = new Intent(mCtx, LoginActivity.class);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mCtx.startActivity(myIntent);\n }",
"private void logout(){\n ParseUser.logOut();\n removeUserFromPrefs();\n Intent intent = LandingActivity.intent_factory(this);\n startActivity(intent);\n }",
"@Override\n public void run() {\n LogoutHelper.logout(context, AppMessage.TOAST_MESSAGE_SESSION_EXPIRED);\n }",
"public void logout() {\n updateToken(\"\");\n startActivity(new Intent(GarageListActivity.this, LoginScreenActivity.class));\n updateToken(\"\");\n finish();\n }",
"public static void handleLogoutGUI()\n\t{\n\t\tOp logOp = new Op(Operations.LOGOUT,userLogin);\n\t\tclient.handleMessageFromClientUI(logOp);\n\t}",
"public void logout() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.clear();\r\n editor.apply();\r\n ctx.startActivity(new Intent(ctx, MainActivity.class));\r\n }",
"public static void logout(Context context){\n\t\t\tnew PerformLogoutTask().execute(context);\n\t\t\t\n\t\t\t\n\t\t}",
"public void onLogOut(View view) {\n\n\t\t// if (doubleBackToExitPressedOnce)\n\t\t// {\n\t\t// Satyen: we are removing PIN here\n\t\teditor.remove(\"pin\");\n\t\teditor.clear();\n\t\teditor.commit();\n\n\t\t// Satyen: unsubscribing to channels\n\t\tSet<String> setOfAllSubscriptions = PushService.getSubscriptions(this);\n\t\tSystem.out.println(\">>>>>>> Channels before clearing - \"\n\t\t\t\t+ setOfAllSubscriptions.toString());\n\t\tfor (String setOfAllSubscription : setOfAllSubscriptions) {\n\t\t\tSystem.out.println(\">>>>>>> MainActivity::onLogOut() - \"\n\t\t\t\t\t+ setOfAllSubscription);\n\t\t\tPushService.unsubscribe(this, setOfAllSubscription);\n\t\t}\n\t\tsetOfAllSubscriptions = PushService.getSubscriptions(this);\n\t\tSystem.out.println(\">>>>>>> Channels after cleared - \"\n\t\t\t\t+ setOfAllSubscriptions.toString());\n\t\tParseUser.logOut();\n\t\tglobalVariable.resetOnLogout2();\n\t\tGlobalVariable.resetOnLogout();\n\t\tnextIntent = new Intent(this, LoginActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tstartActivity(nextIntent);\n\t\t// finish();\n\n\t\t// }\n\t\t//\n\t\t// doubleBackToExitPressedOnce = true;\n\t\t// Toast.makeText(this, \"Click again to logout\",\n\t\t// Toast.LENGTH_SHORT).show();\n\t\t//\n\t\t// new Handler().postDelayed(new Runnable() {\n\t\t//\n\t\t// @Override\n\t\t// public void run() {\n\t\t// doubleBackToExitPressedOnce=false;\n\t\t// }\n\t\t// }, 2000);\n\t\t//\n\n\t\t// nextIntent = new Intent(this, LoginActivity.class);\n\t\t// startActivity(nextIntent);\n\t}",
"public void logoutCurrentUser() {\n mAuth.signOut();\n this.loggedInUser = null;\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void onLogoutSuccessed() {\n\t\t\t\t\t\t\t\t\tTypeSDKLogger.d(\"onLogoutSuccessed\");\r\n\t\t\t\t\t\t\t\t\tTypeSDKNotify_haima notify = new TypeSDKNotify_haima();\r\n\t\t\t\t\t\t\t\t\tnotify.Logout();\r\n\t\t\t\t\t\t\t\t}",
"private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }",
"@Override\r\n\t\t\t\t\tpublic void onLogoutSuccessed() {\n\t\t\t\t\t\tTypeSDKLogger.d(\"onLogoutSuccessed\");\r\n\t\t\t\t\t\tTypeSDKNotify_haima notify = new TypeSDKNotify_haima();\r\n\t\t\t\t\t\tnotify.Logout();\r\n\t\t\t\t\t}",
"default void onLogout(SessionID sessionID) {\n }",
"public void doLogout() {\r\n\t\tdestroy();\r\n\r\n\t\t/* ++++++ Kills the Http session ++++++ */\r\n\t\t// HttpSession s = (HttpSession)\r\n\t\t// Sessions.getCurrent().getNativeSession();\r\n\t\t// s.invalidate();\r\n\t\t/* ++++++ Kills the zk session +++++ */\r\n\t\t// Sessions.getCurrent().invalidate();\r\n\t\tExecutions.sendRedirect(\"/j_spring_logout\");\r\n\r\n\t}",
"void logoff();",
"public void logout(){\n\t\ttry{\n\t\t\tif(sock.isConnected()){\n\t\t\t\tOutputStream sout = sock.getOutputStream();\n\t\t\t\tCryptoHelper ch = new CryptoHelper();\n\t\t\t\t\n\t\t\t\t// Send K{LOGOUT} to server\n\t\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\t\t\tHashHelper.WriteInt(out, LOGOUT);\n\t\t\t\tbyte[] msg = ch.symEncrypt(symK, out.toByteArray());\n\t\t\t\tHashHelper.WriteInt(sout, msg.length);\n\t\t\t\tsout.write(msg);\n\t\t\t\tlogout = true;\n\t\t\t\tsock.close();\n\t\t\t\tlistenerSock.close();\n\t\t\t\tSystem.out.println(\"Client logged out\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t}\n\t\n\n\t}",
"public void logOut() {\n\t\t//Inform the database that the user want to log out\n\t\tdc.logOutPlayer(activity);\n\t\t\n\t\t/*\n\t\t * Call is made to StartActivity, which surely is in the bottom of activity-stack. Add a flag to clear stack\n\t\t * and from StartActivity a call is made to the Login screen and StartActivity is finished. By doing this we\n\t\t * assure that Login screen is at the bottom of the activity-stack and a press on back button, while placed \n\t\t * on Login screen, will result in that the application is closed\n\t\t */\n\t\tIntent intent = new Intent(activity, StartActivity.class);\n\t\tintent.putExtra(\"finish\", true);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tactivity.startActivity(intent);\n\t\tactivity.finish();\n\t}",
"public static void logout() {\n\t\tif (activeAccount != null) try {\n\t\t\t\n\t\t\tif (authClient != null)\n\t\t\t\tauthClient.logout();\n\t\t\tauthClient = null;\n\t\t\t\n\t\t\tactiveAccount = null;\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(DialogPanel.getTopWindow(), (\"An error occurred while logging out from the GoldenGATE Server at\\n\" + activeAccount.host + \":\" + activeAccount.port + \"\\n\" + ioe.getMessage()), \"Error on Logout\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public Result logOut() {\n customerService().logout();\n return redirectToReturnUrl();\n }",
"@Override\n\tpublic void logout(user theUser) {\n\t}",
"static void logout() {\n\t\tserver.clearSharedFiles(username);\n\t\tserver.clearNotSharedFiles(username);\n\t}"
] |
[
"0.8099993",
"0.8038928",
"0.8037546",
"0.80015045",
"0.79432654",
"0.7874783",
"0.7874783",
"0.78655213",
"0.78521574",
"0.78169817",
"0.7786999",
"0.77260983",
"0.77256",
"0.7723842",
"0.7691622",
"0.7678988",
"0.76629406",
"0.7652548",
"0.7645026",
"0.7633451",
"0.7615013",
"0.76072276",
"0.7600551",
"0.7596027",
"0.7588616",
"0.7585611",
"0.75825864",
"0.757144",
"0.75636464",
"0.75560045",
"0.75545835",
"0.75499636",
"0.7548251",
"0.7548251",
"0.752655",
"0.7515336",
"0.75133276",
"0.74968994",
"0.7489142",
"0.7482517",
"0.7455167",
"0.74535525",
"0.7446498",
"0.74361587",
"0.74316686",
"0.7429402",
"0.74200976",
"0.74146634",
"0.7414177",
"0.7410637",
"0.7388233",
"0.7376448",
"0.73725975",
"0.736711",
"0.73545647",
"0.7339958",
"0.73339766",
"0.7332816",
"0.73219293",
"0.73216593",
"0.7320472",
"0.7319299",
"0.7318529",
"0.7306717",
"0.7306088",
"0.7297411",
"0.7273977",
"0.726585",
"0.7255666",
"0.7253618",
"0.7243605",
"0.72392124",
"0.72343916",
"0.722974",
"0.7225262",
"0.72189987",
"0.72184074",
"0.7206709",
"0.72008365",
"0.7188479",
"0.7183876",
"0.71785784",
"0.71620715",
"0.7158227",
"0.715754",
"0.71564955",
"0.71493953",
"0.7142267",
"0.7138771",
"0.71373534",
"0.71309555",
"0.7130562",
"0.712919",
"0.7127472",
"0.7115223",
"0.71081936",
"0.7098865",
"0.70957613",
"0.709078",
"0.7088082",
"0.708794"
] |
0.0
|
-1
|
============== ADD PRODUCTS ===============
|
@GetMapping(Mappings.ADD_PRODUCT)
public ModelAndView add_product(){
Product product = new Product();
ModelAndView mv = new ModelAndView(ViewNames.ADD_PRODUCT);
mv.addObject("product", product);
return mv;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }",
"private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }",
"void addProduct(Product product);",
"public void addProduct(Product product);",
"public void addProduct() {\n Product result;\n String prodName = getToken(\"Enter product name: \");\n double price = getDouble(\"Enter price per unit: $\");\n result = warehouse.addProduct(prodName, price);\n if (result != null) {\n System.out.println(result);\n }\n else {\n System.out.println(\"Product could not be added.\");\n }\n }",
"public addproduct() {\n\t\tsuper();\n\t}",
"public void addProduct(Product p) {\n c.addProduct(p);\n }",
"public void Addproduct(Product objproduct) {\n\t\t\n\t}",
"Product addOneProduct(String name, String imgNameBarcode, String imgName, String barcode) throws Exception;",
"Product addNewProductInStore(Product newProduct);",
"public void addProduct() throws Throwable\r\n\t{\r\n\t\tgoToProductsSection();\r\n\t\tverifyProduct();\r\n\t\tselPproductBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ProductsPage\") , \"Products Page \");\r\n\t\tProductsPage pdpage=new ProductsPage();\r\n\t\tpdpage.selectProducts();\r\n\t}",
"x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product addNewProduct();",
"ProductView addProduct(ProductBinding productToAdd) throws ProductException;",
"public void addProduct(Product product) {\n allProducts.add(product);\n }",
"private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Butter\")\n .barcode(new Barcode(\"5906217041483\"))\n .price(new BigDecimal(4.29))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Beer\")\n .barcode(new Barcode(\"5905927001114\"))\n .price(new BigDecimal(2.99))\n .build()\n );\n }",
"public void addProduct(Product toAdd) {\n\t\tthis.products.add(toAdd);\n\t}",
"public static void addProduct(Product product){\r\n \r\n System.out.println(\"Adding Product \" + product.getProductName());\r\n productInvMap.put(productInvMap.size(),product);\r\n }",
"public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }",
"public void addProduct(Product newProduct) {\n System.out.println(\"addProduct(): \" + newProduct.getName());\n allProducts.add(newProduct);\n }",
"public void insertIntoProduct() {\n\t\ttry {\n\t\t\tPreparedStatement statement = connect.prepareStatement(addProduct);\n\t\t\tstatement.setString(1, productName);\n\t\t\tstatement.setString(2, quantity);\n\t\t\t\n\t\t\tstatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }",
"public void addProduct(Product p){\n stock.add(p);\n }",
"public void addProduct(Product pProduct)\n\t{\n\t\tmyProductInventory.add(pProduct);\n\n\n\t}",
"public void addProduct(Product item){\n inventory.add(item);\n }",
"public void add(Product p) {\r\n\t\tparts.add(p);\r\n\t}",
"public static ArrayList<Product> addNewProduct() {\r\n\r\n\t\tSupplier selectedSup = Part02Tester.getSupplier();\r\n\r\n\t\tArrayList<Product> newProductArray = addProduct();\r\n\r\n\t\tProduct newProduct = newProductArray.get(0);\r\n\r\n\t\tArrayList<Product> prodList = selectedSup.getSupProducts();\r\n\r\n\t\tprodList.add(newProduct);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//The product is then added to the array list for the specified supplier\r\n\t\treturn newProductArray;\r\n\r\n\t}",
"public static void addProduct(Product newProduct) {\n allProducts.add(newProduct);\n }",
"@FXML void but_AddProduct(ActionEvent event) {\n\n productLine.add(new Widget(txtProductName.getText(), txtManufacturer.getText(),\n choiceType.getValue())); //Adding test product in observable list\n\n productTable.setItems(productLine); //Adds product to table\n listProduce.setItems(productLine); //Adds product to produce list\n\n addToDatabaseProduct();\n\n System.out.println(\"Product added\");\n }",
"public void addProduct(Product product){\n // Adding new contact\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_PRODUCT_NAME, product.getName_product());\n values.put(IS_STRIKE_OUT, product.IsStrikeout());\n values.put(KEY_UUID_PRODUCT_NAME, String.valueOf(product.getId()));\n\n\n // Inserting Row\n db.insert(TABLE_PRODUCTS, null, values);\n Log.d(LOG_TAG_ERROR, \"addProduct OK \" + \" \" + product.getName_product() + \" \" + product.getId());\n\n db.close(); // Closing database connection\n }",
"public void addProduct(Product p) {\n\t\tthis.productList.add(p);\n\t}",
"public boolean addProduct(Product p) {\n// products.add(p);\n boolean prodExists = false;\n for(Product prod: products){\n if(prod.getId() == p.getId()){\n prodExists = true;\n break;\n }\n }\n if(!prodExists){\n products.add(p);\n return true;\n }\n return false;\n }",
"public void addProduct(Product item)\n {\n stock.add(item);\n }",
"public static void addProducts(Product product) throws SQLException\n\t{\n\t\tpreparedStatement = connection.prepareStatement(addQuery);\n//\t\tpreparedStatement.setInt(1, product.getProductId());\n\t\tpreparedStatement.setString(1, product.getProductName());\n\t\tpreparedStatement.setInt(2, product.getCategoryId());\n\t\tpreparedStatement.setInt(3, product.getProductTypeId());\n\t\t\n\t\tpreparedStatement.executeUpdate();\n\t}",
"public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }",
"public long addProductShoppingList(String name, int quality, double quantity, String unit) {\n long pid = addNewProduct(name);\n Cursor c = null;\n\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n if (pid == -1) {\n\n String[] args = new String[1];\n args[0] = name;\n c = db.rawQuery(\"SELECT * FROM Products WHERE pname=?\", args);\n c.moveToFirst();\n while (!c.isAfterLast()) {\n pid=c.getInt(c.getColumnIndex(\"_id\"));\n c.moveToNext();\n }\n }\n ContentValues cv = new ContentValues();\n cv.put(DBHelper.SHOPPINGLIST_PID, (int) pid);\n cv.put(DBHelper.SHOPPINGLIST_QUALITY, quality);\n cv.put(DBHelper.SHOPPINGLIST_QUANTITY, quantity);\n cv.put(DBHelper.SHOPPINGLIST_UNIT, unit);\n\n long _id = db.insert(DBHelper.TABLE_SHOPPINGLIST, null, cv);\n\n if (_id > 0) {\n Log.d(DatabaseHelper.class.getName(), \"AddProductShoppingList: _id:\" + String.valueOf(_id) + \", pid:\" + String.valueOf(pid) + \", pname:\" + name);\n } else {\n Log.d(DatabaseHelper.class.getName(), \"AddProductShoppingList: pname:'\" + name + \"', But already in ShoppingList table.\");\n }\n db.close();\n return _id;\n }",
"public void addProduct(){\n\t\tSystem.out.println(\"Company:\");\n\t\tSystem.out.println(theHolding.fabricationCompanies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Code:\");\n\t\t\tString code = reader.nextLine();\n\t\t\tSystem.out.println(\"Water quantity require:\");\n\t\t\tdouble waterQuantity = reader.nextDouble();\n\t\t\treader.nextLine();\n\t\t\tSystem.out.println(\"Inventory:\");\n\t\t\tint inventory = reader.nextInt();\n\t\t\treader.nextLine();\n\t\t\tProduct toAdd = new Product(name, code, waterQuantity, inventory);\n\t\t\ttheHolding.addProduct(selected, toAdd);\n\t\t\tSystem.out.println(\"The product were added successfuly\");\n\t\t}\n\t}",
"@Override\n\tpublic boolean addProduct(Product p) {\n\t\treturn false;\n\t}",
"public static ArrayList<Product> addProduct() {\r\n\r\n\t\tboolean proDiscontinued = false;\r\n\t\tboolean proInStock = false;\r\n\t\tint proQtyAvailable = 0;\r\n\r\n\t\tArrayList<Product> newProductArray = new ArrayList<Product>();\r\n\r\n\t\tSystem.out.println(\"---Product details---\");\r\n\r\n\t\tRandom proCodeRandom = new Random();\t\t\t\t\t\t\t\r\n\t\tint proCode = proCodeRandom.nextInt(100);\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the make of the product:\");\t\t\r\n\r\n\t\tString proMake = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the model of the product:\");\r\n\r\n\t\tString proModel = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the price of the product:\");\r\n\t\tdouble proPrice = Validation.doubleValidation();\r\n\r\n\t\tSystem.out.println(\"Is the product discontinued? y/n \");\r\n\r\n\t\tString answer = Validation.stringNoIntsValidation();\r\n\r\n\r\n\t\tif(answer.equals(\"y\") || answer.equals(\"Y\")) {\r\n\t\t\tproDiscontinued = true;\r\n\t\t\tSystem.out.println(\"How many products are available?\");\r\n\t\t\tproQtyAvailable = Validation.intValidation();\r\n\t\t\tif(proQtyAvailable <= 0) {\r\n\r\n\t\t\t\tproInStock = false;\r\n\t\t\t}else {\r\n\t\t\t\tproInStock = true;\r\n\t\t\t}\r\n\t\t}else if(answer.equals(\"n\") || answer.equals(\"N\")) {\r\n\t\t\tproDiscontinued = false;\r\n\t\t\tSystem.out.println(\"How many products are available?\");\r\n\t\t\tproQtyAvailable = Validation.intValidation();\r\n\t\t\tif(proQtyAvailable <= 0) {\r\n\t\t\t\tproInStock = false;\r\n\t\t\t}else {\r\n\t\t\t\tproInStock = true;\r\n\t\t\t}\r\n\t\t}\t\r\n\r\n\t\tProduct newProduct = new Product(proCode, proMake, proModel, proPrice, proInStock);\r\n\t\tnewProduct.setProQtyAvailable(proQtyAvailable);\r\n\t\tnewProduct.setProDiscontinued(proDiscontinued);\r\n\r\n\t\tnewProductArray.add(newProduct);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//The product is then added to the array list for the specified supplier\r\n\r\n\t\tSystem.out.println();\r\n\r\n\t\treturn newProductArray;\r\n\t}",
"public void addProduct(Product p) {\n if(products.size() != 0 && products.get(0).getPricingDetails().equals(p.getPricingDetails()))\n return;\n\n products.add(p);\n quantity++;\n price = price.add(p.getPricingDetails());\n }",
"public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void addProduct(Product p) {\n\t\t\n\t\tString manufacturer = p.getManufacturer().toLowerCase();\n\t\t\n\t\tSet<Product> productsForThisManufacturer = productsByManufacturer.get(manufacturer);\n\t\t\n\t\tif (productsForThisManufacturer == null) {\n\t\t\tproductsForThisManufacturer = new HashSet<Product>();\n\t\t\tproductsByManufacturer.put(manufacturer, productsForThisManufacturer);\n\t\t}\n\t\t\n\t\tproductsForThisManufacturer.add(p);\n\n\t}",
"private static void addProductsToStore() throws Exception\n {\n store.add(new Sales(123, \"Heinz Catsup\", .8, 45.4, 55));\n store.add(new Sales(244, \"Guilden's Mustard\", .85, 23.4, 28));\n store.add(new Sales(303, \"Lipton Noodle Soup\", .9, 9.0, 6));\n store.add(new Sales(445, \"Meow Mix Cat Food\", .7, 25.7, 43));\n store.add(new Sales(501, \"Hershey's Chocolate Syrup\", .95, 38.0, 23));\n }",
"public void addItem(Product p) {\n\t\t_items.add(p);\n\t}",
"public void productsToBuy(Product purchase){\n bill.getProducts().add(purchase);\n }",
"public void add(Vector<String> prod) {\n\tproductions.add(prod);\n }",
"@Override\n\tpublic void add(Entity entity) throws Exception {\n\t\tsuper.add(entity);\n\t\tProduct prod = (Product) entity;\n\n\t\tSQLiteStatement st = db\n\t\t\t\t.prepare(\"INSERT INTO products(sessionID, name, priceMin, priceMax, quantity, category)\"\n\t\t\t\t\t\t+\"VALUES (?, ?, ?, ?, ?, ?)\");\n\t\tst.bind(1, sessionId).bind(2, prod.getName()).bind(3, prod.getPriceMin())\n\t\t\t\t.bind(4, prod.getPriceMin()).bind(5, prod.getQuantity())\n\t\t\t\t.bind(6, prod.getCategory());\n\t\tst.step();\n\t\ttotalQuantity += prod.quantity;\n\t\tif (!categoryList.containsKey(prod.getCategory())) {\n\t\t\tcategoryList.put(prod.getCategory(), new ArrayList<Product>());\n\t\t}\n\t\tcategoryList.get(prod.getCategory()).add(prod);\n\t\tif (availableProducts.get(entity.getName())==null) {\n\t\t\tavailableProducts.put(entity.getName(), \" \");\n\t\t}\n\t}",
"public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }",
"public void addToBasket(Product product){\n\n Purchaseitem purchaseitem = new Purchaseitem();\n purchaseitem.setProduct(product.getId());\n purchaseitem.setProductByProduct(product);\n boolean toAdd = false;\n if(basket.isEmpty()){\n purchaseitem.setQuantity(1);\n basket.add(purchaseitem);\n }else {\n for(int i = 0; i < basket.size(); i++){\n if(basket.get(i).getProduct() == product.getId()){\n basket.get(i).setQuantity(basket.get(i).getQuantity() + 1);\n return;\n } else {\n purchaseitem.setQuantity(1);\n toAdd = true;\n }\n }\n }\n if(toAdd){\n basket.add(purchaseitem);\n }\n }",
"@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}",
"public void agregar(Producto producto) throws BusinessErrorHelper;",
"public void onAddButtonClick(View view) {\n\n if (view.getId() == R.id.Badd) {\n\n EditText a = (EditText) findViewById(R.id.TFenterName);\n\n String b = a.getText().toString();\n product.setProductName(b);\n\n a = (EditText) findViewById(R.id.TFenterPrice);\n b = a.getText().toString();\n product.setPrice(b);\n\n a = (EditText) findViewById(R.id.TFenterQuantity);\n b = a.getText().toString();\n product.setQuantity(b);\n\n a = (EditText) findViewById(R.id.TFLocation);\n b = a.getText().toString();\n product.setLocation(b);\n\n a = (EditText) findViewById(R.id.TFExpiration);\n b = a.getText().toString();\n product.setExpiration(b);\n\n helper.insertProduct(product);\n\n Intent i = new Intent(AddProduct.this, WasAdded.class);\n i.putExtra(\"product\", product.getProductName());\n startActivity(i);\n\n }\n }",
"public void addProduct(CartProduct p) throws InsufficientQuantityException {\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\tif (product.getDescription().equals(p.getDescription()) && (product.getQuantity() >= 1)) {\n\t\t\t\tcart.addToCart(p);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tthrow new InsufficientQuantityException(\"Out of Stock\");\n\t\t\t}\n\t\t}\n\t}",
"public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }",
"public String addToInventory(Product productDetails){\n productDetails.setProductForSale(\"Y\");\n productDetails = mongoDbConnector.addToInventory(productDetails);\n return productDetails.getProductName();\n }",
"public void addProduct(String name, double val, int q) {\n\t\tproducts.add(new Products(name, val, q));\n\t}",
"public void fillProducts(int totalEntries) {\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n storeOperations.addProduct(i, text.sentence(getRandomNumber(1, 10)), text.paragraph(getRandomNumber(1, 50)), (float) getRandomNumber(1, 3000), getRandomNumber(1, 5000));\n }\n }",
"private void buyProduct() {\n\t\tSystem.out.println(\"Enter Number of Product :- \");\n\t\tint numberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\twhile (!StoreController.getInstance().isValidNumberOfProduct(\n\t\t\t\tnumberOfProduct)) {\n\t\t\tSystem.out.println(\"Enter Valid Number of Product :- \");\n\t\t\tnumberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\t}\n\t\tfor (int number = 1; number <= numberOfProduct; number++) {\n\t\t\tSystem.out.println(\"Enter \" + number + \" Product Id\");\n\t\t\tint productId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\twhile (!StoreController.getInstance().isValidProductId(productId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id\");\n\t\t\t\tproductId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter product Quantity\");\n\t\t\tint quantity = getValidInteger(\"Enter product Quantity\");\n\t\t\tCartController.getInstance().addProductToCart(productId, quantity);\n\t\t}\n\t}",
"public boolean addProduct(Product product) {\n\t\treturn false;\n\t}",
"public void addProduct(Product product)\n {\n SQLiteDatabase db = this.database.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n\n values.put(ShoppingListTable.KEY_TPNB, product.getTPNB());\n values.put(ShoppingListTable.KEY_NAME, product.getName());\n values.put(ShoppingListTable.KEY_DESCRIPTION, product.getDescription());\n values.put(ShoppingListTable.KEY_COST, product.getCost());\n values.put(ShoppingListTable.KEY_QUANTITY, product.getQuantity());\n values.put(ShoppingListTable.KEY_SUPER_DEPARTMENT, product.getSuperDepartment());\n values.put(ShoppingListTable.KEY_DEPARTMENT, product.getDepartment());\n values.put(ShoppingListTable.KEY_IMAGE_URL, product.getImageURL());\n values.put(ShoppingListTable.KEY_CHECKED, product.isChecked());\n values.put(ShoppingListTable.KEY_AMOUNT, product.getAmount());\n values.put(ShoppingListTable.KEY_POSITION, product.getAmount());\n\n db.insert(ShoppingListTable.TABLE_NAME, null, values);\n\n db.close();\n }",
"private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}",
"public void addToDatabaseProduct() {\n // Database credentials\n String pass = \"\";\n\n InputStream passPath = Controller.class.getResourceAsStream(\"/password.txt\");\n if (passPath == null) {\n System.out.println(\"Could not find password in resources folder\");\n }\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(passPath));\n String line = null;\n while (true) {\n try {\n if (!((line = reader.readLine()) != null)) {\n break;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(line);\n if (line != null) {\n pass = line;\n System.out.println(\"Password login: \" + line);\n break;\n }\n }\n Connection conn = null; //Temporary\n PreparedStatement stmt = null; //Temporary\n\n try {\n // STEP 1: Register JDBC driver\n Class.forName(\"org.h2.Driver\");\n\n //STEP 2: Open a connection\n conn = DriverManager.getConnection(\"jdbc:h2:./res/HR\", \"\",\n pass);\n\n final String sqlProductName = txtProductName.getText();\n String sqlManufName = txtManufacturer.getText();\n ItemType sqlItemType = choiceType.getValue();\n\n stmt = conn.prepareStatement(\"INSERT INTO Product(type, manufacturer, name) VALUES (?, ?, ?)\",\n Statement.RETURN_GENERATED_KEYS);\n stmt.setString(1, sqlItemType.toString());\n stmt.setString(2, sqlManufName);\n stmt.setString(3, sqlProductName);\n\n stmt.executeUpdate();\n\n stmt.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void add(Product product) {\r\n sessionFactory.getCurrentSession()\r\n .save(product);\r\n }",
"@Override\n\tpublic void addProduct(Product product) throws ProductNotFoundException {\n\t\tif (productRepository.findByName(product.getName()) == null){\n\t\t\tproductRepository.addProduct(product);\n\t\t}\n\n\t}",
"public String addProduct() throws Exception {\r\n\t\t\r\n\t\t//content spot entity\r\n\t\tSpotBean spotBean = new SpotBean();\r\n\t\tspotBean.setId(this.getContentSpot().getId());\r\n\t\tspotBean = contentSpotService.load(spotBean);\r\n\t\t\r\n\t\t//main content spot\r\n\t\tContentSpot content = spotBean.getContentSpot();\r\n\t\tthis.products = content.getProducts();\r\n\r\n\t\t//configure products list attribute\r\n\t\tcontent.setProducts(extractProducts());\r\n\t\t\r\n\t\treturn update(spotBean);\r\n\t}",
"public void add(Product product) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, product.getName());\n values.put(KEY_URL, product.getURL());\n values.put(KEY_CURRENT, product.getCurrentPrice());\n values.put(KEY_CHANGE, product.getChange());\n values.put(KEY_DATE, product.getDate());\n values.put(KEY_INITIAL, product.getInitialPrice());\n long id = database.insert(PRODUCT_TABLE, null, values);\n product.setId((int) id);\n database.close();\n }",
"public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}",
"@PostMapping(\"/add\")\r\n\tpublic ProductDetails addProduct(@Valid @RequestBody AddProduct request) {\r\n\r\n\t\tProduct product = productUtil.getProduct();\r\n\t\tproduct.setProduct_Id(productUtil.generateId());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\tproduct.setProduct_Price(request.getProduct_Price());\r\n\t\tproduct.setProduct_Quantity(request.getProduct_Quantity());\r\n\t\tproduct.setProduct_Availability(request.isProduct_Availability());\r\n\t\tproduct = productService.addProduct(product);\r\n\t\treturn productUtil.toProductDetails(product);\r\n\r\n\t}",
"public void addItems(String name, String mobile){\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\n\t\tvalues.put(KEY_NAME, name);\n\t\tvalues.put(KEY_PRICE, mobile);\n\n\t\tlong id = db.insert(TABLE_SHOP, null, values); // insert to 1st row\n\t\tdb.close(); // Closing database connection\n\n\t\tLog.d(TAG, \"New products inserted into sqlite: \" + id);\n\n\t}",
"public void addProduct(Product product) {\n int newQuantity = product.getQuantity();\n try {\n Product productInCart = getProductInCartCorrespondentTo(product);\n int previousQuantity = productInCart.getQuantity();\n productInCart.setQuantity(newQuantity + previousQuantity);\n this.amount += newQuantity * product.getPrice();\n } catch (NoSuchProductException e) {\n // the product isn't already in the list -> add it\n int index;\n try {\n index = getCategoryIndex(product.getCategory().name());\n } catch (NoSuchCategoryException e2) {\n index = categoryNames.indexOf(Category.OTHER.name());\n }\n shoppingCart.get(index).add(product);\n float price = product.getPrice() * newQuantity;\n this.amount += price;\n }\n for (int i = 0; i < newQuantity; i ++)\n lastProductList.add(product);\n }",
"@Override\n\tpublic void add(Product p) {\n\t\tproductRepository.save(p);\n\t}",
"void add(ProductCategory category);",
"Product storeProduct(Product product);",
"public boolean addProduct(Product product) \r\n\t{\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\tboolean feedback=pDoa.addProductDoa(product);\r\n\t\t\tif(feedback) {\r\n\t\t\t\t\r\n\t\t\t\t\t\t\treturn true;\t\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn false;\r\n\t\t\r\n\t}",
"public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }",
"public void addNbProducts(int nbProducts) {\r\n this.nbProducts += nbProducts;\r\n }",
"public boolean addProduct(Product p) {\n\t\t\n\t\treturn products.add(p);\n\t}",
"public void onClick(View v)\n {\n // Add to cart model\n for (int i = 0; i < productQuantity; i++)\n {\n dbManager.addToCart(activeProduct.getID());\n }\n }",
"CatalogItem addCatalogItem(CatalogItem catalogItem);",
"public void addItemToSale(String productId, int quantity) {\r\n if (productId.isEmpty()) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id is missing - enter valid product id\");\r\n System.exit(1);\r\n }\r\n if (quantity <= 0) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"quantity is less than or equal to 0 - enter valid quantity\");\r\n System.exit(1);\r\n }\r\n FakeDatabase db = new FakeDatabase();\r\n Product product = db.findProduct(productId);\r\n\r\n if (product != null) { //product found in database\r\n receipt.addLineItem(product, quantity);\r\n } else {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id not found in database - enter valid product id\");\r\n System.exit(1);\r\n }\r\n }",
"public void addProduct(ProductBarcode barcode) throws IllegalArgumentException;",
"@RequestMapping(value = {\"/add_product\"}, method = RequestMethod.POST)\n public String createProduct(Model model, HttpServletRequest request) {\n boolean isSuccess = addProductByRest(request);\n if (isSuccess) {\n ProductController controller = new ProductController();\n List<Product> productList = controller.getProductList(request, \"products\");\n model.addAttribute(\"products\", productList);\n return \"product_list\";\n } else {\n return \"product_detail_new\";\n }\n }",
"@Override\r\n\tpublic boolean addProduct(Product product) {\n\t\treturn dao.addProduct(product);\r\n\t}",
"public void addProductToCart(String product) {\n\t\tpause(1000);\n\t\tBy bySelector = By.cssSelector(\"button.prdbox\");\n\t\tList<WebElement> elements = driver.findElements(bySelector);\n\t\t\n\t\tfor (WebElement item : elements) {\n\t\t\tString test = item.getAttribute(\"innerHTML\");\n\t\t\tif (test.contains(product)){\n\t\t\t\titem.click();\n\t\t\t}\n\t\t}\t\n\t}",
"@Override\n\tpublic boolean addProduct(Products productInfoBean) {\n\t\treturn dao.addProduct(productInfoBean);\n\t}",
"public void insert(Product product) {\n this.products.add(product);\n }",
"public Products addProduct(Products product) {\n\t\treturn productsRepo.save(product);\n\t}",
"protected ArrayList<Product> addProduct() {\r\n int productType;\r\n Scanner scanner = new Scanner(System.in);\r\n System.out.print(\"\\n(1: Giyim)\\n\"+ \"(2: Gıda&Beslenme)\\n\" +\"(3: Kozmetik)\\n\");\r\n System.out.print(\"Lutfen urun tipini seciniz :\\n\");\r\n\r\n productType =scanner.nextInt();\r\n while (productType != 1 && productType != 2 && productType != 3 ) {\r\n\r\n System.out.println(\"Yanlis urun tipi secimi !\\nLutfen tekrar deneyiniz : \");\r\n productType =scanner.nextInt();\r\n }\r\n scanner.nextLine();\r\n\r\n String name, size, gender, tag, content;\r\n double price;\r\n int numberOfProduct;\r\n if(productType == 1){\r\n\r\n System.out.print(\"Urun adini giriniz --> \");\r\n name = scanner.nextLine();\r\n System.out.print(\"Urun fiyatini giriniz --> \");\r\n price = scanner.nextDouble();\r\n scanner.nextLine();\r\n System.out.print(\"Urun bedenini giriniz --> \");\r\n size = scanner.nextLine();\r\n System.out.print(\"Urun cinsiyetini giriniz --> \");\r\n gender = scanner.nextLine();\r\n System.out.print(\"Urun etiketini giriniz --> \");\r\n tag = scanner.nextLine();\r\n\r\n while (splitSize(tag) !=4){\r\n System.out.println(\"Eksik etiket inputu girdiniz, 4 etiket inputu giriniz\");\r\n tag = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun icerigini giriniz --> \");\r\n content = scanner.nextLine();\r\n while (splitSize(content) !=4) {\r\n System.out.println(\"Eksik icerik inputu girdiniz, 4 icerik inputu giriniz\");\r\n content = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun sayisini giriniz --> \");\r\n numberOfProduct = scanner.nextInt();\r\n\r\n Clothes clothes = new Clothes(name, price, size, gender, tag, content, numberOfProduct);\r\n\r\n ClothesList.add(clothes);\r\n allProducts.add(allProducts.size(),clothes);\r\n }\r\n else if(productType == 2){\r\n\r\n System.out.print(\"Urun adini giriniz --> \");\r\n name = scanner.nextLine();\r\n System.out.print(\"Urun fiyatini giriniz --> \");\r\n price = scanner.nextDouble();\r\n scanner.nextLine();\r\n System.out.print(\"Urun etiketini giriniz --> \");\r\n tag = scanner.nextLine();\r\n while (splitSize(tag) !=4){\r\n System.out.println(\"Eksik etiket inputu girdiniz, 4 etiket inputu giriniz\");\r\n tag = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun icerigini giriniz --> \");\r\n content = scanner.nextLine();\r\n while (splitSize(content) !=4){\r\n System.out.println(\"Eksik icerik inputu girdiniz, 4 icerik inputu giriniz\");\r\n content = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun sayisini giriniz --> \");\r\n numberOfProduct = scanner.nextInt();\r\n\r\n Nutrient nutrient = new Nutrient(name, price,tag,content, numberOfProduct);\r\n NutrientList.add(nutrient);\r\n allProducts.add(allProducts.size(),nutrient);\r\n }\r\n else if(productType == 3){\r\n\r\n System.out.print(\"Urun adini giriniz --> \");\r\n name = scanner.nextLine();\r\n System.out.print(\"Urun fiyatini giriniz --> \");\r\n price = scanner.nextDouble();\r\n scanner.nextLine();\r\n System.out.print(\"Urun cinsiyetini giriniz --> \");\r\n gender = scanner.nextLine();\r\n System.out.print(\"Urun etiketini giriniz --> \");\r\n tag = scanner.nextLine();\r\n while (splitSize(tag) !=4){\r\n System.out.println(\"Eksik etiket inputu girdiniz, 4 etiket inputu giriniz\");\r\n tag = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun icerigini giriniz --> \");\r\n content = scanner.nextLine();\r\n while (splitSize(content) !=4){\r\n System.out.println(\"Eksik icerik inputu girdiniz, 4 icerik inputu giriniz\");\r\n content = scanner.nextLine();\r\n }\r\n\r\n System.out.print(\"Urun sayisini giriniz --> \");\r\n numberOfProduct = scanner.nextInt();\r\n\r\n Cosmetics cosmetics = new Cosmetics(name, price,gender,tag, content, numberOfProduct);\r\n CosmeticsList.add(cosmetics);\r\n allProducts.add(allProducts.size(),cosmetics);\r\n }\r\n writeToCsv();\r\n return allProducts;\r\n }",
"public void addNewProduct(String name, String metaTag, String model, double price, String category) {\r\n\t\t\r\n\t\t//clicking on add button\r\n\t\tthis.addNewBtn.click();\r\n\t\t\r\n\t\t//entering the name of product in the category name field\r\n\t\tthis.productName.sendKeys(name);\r\n\t\t\r\n\t\t//entering meta tag title for the product\r\n\t\tthis.metaTag.sendKeys(metaTag);\r\n\t\t\r\n\t\t//going to model tab\r\n\t\tthis.dataTabBtn.click();\r\n\t\t\r\n\t\t//entering model no\r\n\t\tthis.modelField.sendKeys(model);\r\n\t\t\r\n\t\t//entering price\r\n\t\tthis.priceField.sendKeys(String.valueOf(price));\r\n\t\t\r\n\t\t//going to links tab\r\n\t\tthis.linksTabBtn.click();\r\n\t\t\r\n\t\t//entering categories\r\n\t\tthis.categoriesField.sendKeys(category);\r\n\t\t\r\n\t\t//clicking on save button\r\n\t\tthis.saveBtn.click();\t\t\r\n\t}",
"public void defineProduct(String name,\r\n\t\t\t\t\t\t\t\t double calories,\r\n\t\t\t\t\t\t\t\t double proteins,\r\n\t\t\t\t\t\t\t\t double carbs,\r\n\t\t\t\t\t\t\t\t double fat){\r\n\t\tproducts.add(new Material(name,calories,proteins,carbs,fat,false));\r\n\t}",
"public synchronized void addItem(Product product){\n \n ShoppingCartItem item = carrito.get(product.getId());\n int new_quantity;\n \n if(item==null){\n carrito.set(product.getId(), new ShoppingCartItem(product));\n new_quantity = 1;\n }else{\n new_quantity = item.getQuantity()+1;\n }\n //even if it's added or not, we call update method to update the quantity of the product\n this.update(product,Integer.toString(new_quantity));\n }",
"public void rbListAddElement() {\n rbProductType.clear();\n rbProductType.add(rbScs);\n rbProductType.add(rbSko);\n rbProductType.add(rbMko);\n rbProductType.add(rbZko);\n }",
"public void createProduct(ProductData newProduct) {\n throw new UnsupportedOperationException();\n }",
"public void saveNewProduct(Product product) throws BackendException;",
"public AdmAddProduct() {\n initComponents();\n }",
"void createOrUpdateProducts(List<PsdProduct> psdProducts);",
"@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }",
"@Override\n\tpublic void addProduct(Product product) throws DataBaseAccessException {\n\t\tLOGGER.debug(\"Inserting a single row into a database table\");\n\t\tLOGGER.info(\"values of product \" + product.getProductId());\n\t\tObject[] insert = new Object[] { product.getProductId(), product.getProductName(),\n\t\t\t\tproduct.getProductCategory() };\n\t\ttry {\n\t\t\tjdbcTemplate.update(INSERT_PRODUCT, insert);\n\t\t} catch (DataAccessException e) {\n\t\t\tthrow new DataBaseAccessException(\"unable to do the transaction \" + e);\n\t\t}\n\t}",
"protected static void addElec(Electronics toAdd) {\n ProductGUI.Display(\"addElec function\\n\");\n if (toAdd == null) {\n ProductGUI.Display(\"Elec not added\\n\");\n } else {\n try {\n if (!(toAdd.isAvailable(toAdd.getID(), productList))) {\n ProductGUI.Display(\"Sorry. this product already exists\\n\");\n return;\n } else {\n ProductGUI.Display(\"new electronic Product\\n\");\n }\n\n myProduct = new Electronics(toAdd.getID(), toAdd.getName(), toAdd.getYear(), toAdd.getPrice(), toAdd.getMaker());\n productList.add(myProduct);\n\n //itemName = itemName.toLowerCase();\n //System.out.println(itemName);\n addToMap(toAdd.getName()); // adding the product name to the hashmap\n System.out.println(\"elec added to all\");\n ProductGUI.fieldReset();\n } catch (Exception e) {\n ProductGUI.Display(e.getMessage());\n }\n }\n }",
"public void addProduct(int ID) {\r\n\t\tinventory.put(ID, 0);\r\n\t}",
"@Override\n\tpublic void addProduct(ProductEntity product)\n\t{\n\t\tsave(product);\n\t\tlogger.debug(\"The user added is \" + product.getProductUuid());\n\t}",
"public void addProduct(String product, int quantity) {\n if (shoppingBasket.containsKey(product) != true) {\n shoppingBasket.put(product, quantity);\n } else {\n shoppingBasket.put(product, shoppingBasket.get(product) + quantity);\n }\n }"
] |
[
"0.8049334",
"0.8025874",
"0.80149466",
"0.7933256",
"0.7867566",
"0.78590894",
"0.77730346",
"0.773096",
"0.76271194",
"0.74916714",
"0.74451864",
"0.73692924",
"0.7363577",
"0.73538846",
"0.73215395",
"0.7299841",
"0.72947127",
"0.72772574",
"0.7239898",
"0.7239494",
"0.7219401",
"0.72146726",
"0.71568537",
"0.7078209",
"0.70449424",
"0.70319855",
"0.7028169",
"0.70186555",
"0.6963657",
"0.6962492",
"0.6937068",
"0.68850356",
"0.6855355",
"0.68552977",
"0.68547815",
"0.6843964",
"0.6825514",
"0.6813147",
"0.6786361",
"0.6784962",
"0.67722696",
"0.6769638",
"0.6739873",
"0.67365634",
"0.6734453",
"0.6709156",
"0.6699988",
"0.6689226",
"0.66573673",
"0.6651958",
"0.6637752",
"0.66304755",
"0.66261667",
"0.66092116",
"0.66018695",
"0.65915215",
"0.6586788",
"0.6586008",
"0.6575783",
"0.65719277",
"0.6568972",
"0.6566453",
"0.6564576",
"0.6562585",
"0.65498006",
"0.65401524",
"0.65320855",
"0.6529011",
"0.6518515",
"0.6516587",
"0.65090597",
"0.6505033",
"0.6500041",
"0.6499037",
"0.6489195",
"0.6480171",
"0.6467394",
"0.64623356",
"0.64516604",
"0.64502096",
"0.6445911",
"0.6442415",
"0.6441543",
"0.64378583",
"0.6431433",
"0.64141434",
"0.64048415",
"0.6404242",
"0.6398144",
"0.6393422",
"0.638653",
"0.6384031",
"0.6370882",
"0.6363193",
"0.6361889",
"0.6361478",
"0.6354895",
"0.6351043",
"0.63398904",
"0.63329023",
"0.63233894"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {
isc.intake2.online_test.entities.User user = userService.findByName(((User) authentication.getPrincipal()).getUsername());
final Map<String, Object> additionalInfo = new HashMap<String, Object>();
additionalInfo.put("userId",user.getId());
additionalInfo.put("fullName", user.getUserFirstName() + " " + user.getUserLastName());
additionalInfo.put("userRole", user.getUserType().getUserTypeName());
((DefaultOAuth2AccessToken) accessToken).setAdditionalInformation(additionalInfo);
return accessToken;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
/ renamed from: a
|
public final void mo41681a(C15824kr krVar) throws RemoteException {
if (krVar.f44552d != null) {
krVar.f44552d.mo41468a(this.f44538a);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] |
[
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] |
0.0
|
-1
|
TODO: how to handle when given is empty
|
@Test
void shouldNotReturnFailureWhenActualDoesNotContainGivenEntries() {
Target t = new Target(new HashMap<String, String>() {{
put("hello", "world");
put("foo", "bar");
}});
DefaultValidator<Target> validator = new DefaultValidator<>(Target.class);
validator.ruleForMap(Target::getMap).doesNotContain(array(entry("name", "sean")));
ValidationResult validationResult = validator.validate(t);
assertTrue(validationResult.isValid());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }",
"private void checkForEmptyParameter(String param, String paramName)\n\t\t\tthrows MissingParameterException, InvalidParameterException {\n\t\tif (param != null && param.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(paramName + \" can not be empty\");\n\t\t}\n\t}",
"@Test public void gracefullyEndsForEmptyInputs() {\n\t\tAssert.assertNotNull(parser.parse(new String[0], new CliOptions()));\n\t}",
"@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }",
"private void checkForNullOrEmptyParameter(String param, String paramName)\n\t\t\tthrows MissingParameterException, InvalidParameterException {\n\t\tif (param == null) {\n\t\t\tthrow new MissingParameterException(paramName + \" can not be null\");\n\t\t} else if (param.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(paramName + \" can not be empty\");\n\t\t}\n\t}",
"protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean isParamsEmpty(String... params){\n for (String param : params) {\n if (param.isEmpty())\n return true;\n }\n return false;\n }",
"AstroArg empty();",
"protected boolean isEmptyValue(final String parameter) {\n // String value = parameters.get(parameter);\n // return isEmptyString(value);\n return false;\n }",
"@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"@Test\n public void testWithEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new ArrayList<String>());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"protected boolean checkEmpty(String[] parameters) {\n return parameters == null || parameters.length == 0;\n }",
"@Test\n public void testWithEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{}\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}",
"private static String null2unknown(String in) {\r\n\t\tif (in == null || in.length() == 0) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn in;\r\n\t\t}\r\n\t}",
"@Test\n public void testWithEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[]\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"private void validateInputParameters(){\n\n }",
"abstract public boolean argsNotFull();",
"@Test\n public void testWithNonEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(Arrays.asList(\"test\"));\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }",
"private boolean checkParams(String[] params){\r\n\t\tfor(String param:params){\r\n\t\t\tif(param == \"\" || param == null || param.isEmpty()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static void main(String[] args) {\n testSplitterNullOrEmpty();\n }",
"@Test\n public void testWithNonEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{\\\"test\\\":1}\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }",
"@Test\n public void testWithNonEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[\\\"test\\\"]\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }",
"@Test\n public void parse_emptyArg_throwsParseException() {\n assertParseFailure(parser, \" \", String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n GoogleCommand.MESSAGE_USAGE));\n }",
"protected void validate_return(java.lang.String[] param){\r\n \r\n }",
"@Test\n public void addNonEmptyTest() {\n Set<String> s = this.createFromArgsTest(\"zero\", \"one\", \"three\");\n Set<String> sExpected = this.createFromArgsRef(\"zero\", \"one\", \"two\",\n \"three\");\n\n s.add(\"two\");\n\n assertEquals(sExpected, s);\n }",
"@Override\n public boolean isEmpty() { return true; }",
"private static String getRequiredParam(String param, Properties properties,\r\n String[] arguments) throws IllegalArgumentException\r\n {\r\n String value = properties.getProperty(param);\r\n if (value == null)\r\n {\r\n if ((arguments != null) && (arguments.length > 0))\r\n {\r\n value = arguments[0].trim();\r\n }\r\n else\r\n {\r\n throw new IllegalArgumentException(\"'\" + param + \"' is a required \"\r\n + \"initialization parameter. Aborting.\");\r\n }\r\n }\r\n return value;\r\n }",
"public static void notNullOrEmpty(String parameter, String name)\n {\n if(parameter == null || parameter.isEmpty()) {\n throw new IllegalArgumentException(name + \" is null or empty.\");\n }\n }",
"public void testGetInputArguments() {\n List<String> args = mb.getInputArguments();\n assertNotNull(args);\n for (String string : args) {\n assertNotNull(string);\n assertTrue(string.length() > 0);\n }\n }",
"public static void notNullOrEmpty(Object[] parameter, String name) throws IllegalArgumentException\n {\n if(parameter == null || parameter.length == 0) {\n throw new IllegalArgumentException(name + \" parameter is empty.\");\n }\n }",
"@Override\n public Data build(String input) {\n return null;\n }",
"@Override\n\tpublic String[] getParameterValues(String arg0) {\n\t\treturn null;\n\t}",
"@Test\n public void testWithEmptyJsonArray() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new JSONArray());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"String getOne_or_more();",
"private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }",
"static int size_of_ora(String passed){\n\t\treturn 1;\n\t}",
"public abstract boolean canMatchEmpty();",
"@Test\n public void addMultipleNonEmptyTest() {\n Set<String> s = this.createFromArgsTest(\"zero\", \"three\");\n Set<String> sExpected = this.createFromArgsRef(\"zero\", \"one\", \"two\",\n \"three\");\n\n s.add(\"two\");\n s.add(\"one\");\n\n assertEquals(sExpected, s);\n }",
"static int size_of_ret(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_ana(String passed){\n\t\treturn 1;\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testSumShouldGiveBackExceptionIfInputIsEmpty() {\n\t\tString input = \"\";\n\t\tString separator = \",\";\n\t\t// THEN\n\t\tunderTest.sum(input, separator);\n\t}",
"private String[] trimFirstArg(String[] args) {\n return Arrays.copyOfRange(args, 1, args.length);\n }",
"private void parseOptionalArguments(DataSet edges, Value[] values,\n int argIndex) {\n if (values.length > argIndex) {\n while (values.length > argIndex) {\n parseStringArguments(edges, values[argIndex++]);\n }\n }\n }",
"@Test\n public void testWithEmptyJsonObject() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new JSONObject());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"@Test\n\tpublic void caseNameWithEmpty() {\n\t\tString caseName = \" \";\n\t\ttry {\n\t\t\tStringNumberUtil.stringUtil(caseName);\n\t\t} catch (StringException e) {\n\t\t}\n\t}",
"@Override\n public boolean isEmpty()\n {\n return false;\n }",
"@Test\r\n\tpublic void testNoArg() {\r\n\t\tAssert.assertEquals(\"test[]\", new FunctionImpl.FunctionBuilderImpl(\"test\").build().toQ());\r\n\t}",
"private static String[] checkInput(String input) throws Exception{\n String[] in = input.trim().split(\" \");\n\n if(in.length == 0){\n throw new CommandException(ExceptionEnum.INCORRECT_COMMAND_EXCEPTION);\n }\n\n if(CommandEnum.getCommandEnumFrom(in[0]) == null){\n throw new CommandException(ExceptionEnum.INCORRECT_COMMAND_EXCEPTION);\n }\n\n if(isSpecificCommandENum(in[0],BYE)){\n return in;\n }\n if(isSpecificCommandENum(in[0],TERMINATE)){\n return in;\n }\n\n if(in.length < MIN_PARAM){\n throw new CommandException(ExceptionEnum.LESS_INPUT_EXCEPTION);\n }\n\n if(in.length > MAX_PARAM){\n throw new CommandException(ExceptionEnum.EXTRA_INPUT_EXCEPTION);\n }\n\n //check input value\n for(int i = 1; i < in.length; i++){\n try{\n Integer.parseInt(in[i]);\n }catch(NumberFormatException e){\n throw new CommandException(ExceptionEnum.INVALID_INPUT_EXCEPTION);\n }\n }\n\n return in;\n }",
"String processing();",
"@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}",
"private static void checkArg(Object s) {\n if (s == null) {\n throw new NullPointerException(\"Argument must not be null\");\n }\n }",
"public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"static int size_of_sub(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_add(String passed){\n\t\treturn 1;\n\t}",
"@Override\n public boolean isEmpty() {\n return false;\n }",
"static int size_of_out(String passed){\n\t\treturn 2;\n\t}",
"public org.apache.spark.ml.param.Param<java.lang.String> handleInvalid () { throw new RuntimeException(); }",
"default Boolean isEmpty(){\n return builder().length() == 0;\n }",
"public ConsList<String> tryToConsumeInput( ConsList<String> unprocessedInput );",
"private static void validateInputArguments(String args[]) {\n\n\t\tif (args == null || args.length != 2) {\n\t\t\tthrow new InvalidParameterException(\"invalid Parameters\");\n\t\t}\n\n\t\tString dfaFileName = args[DFA_FILE_ARGS_INDEX];\n\t\tif (dfaFileName == null || dfaFileName.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid file name\");\n\t\t}\n\n\t\tString delimiter = args[DELIMITER_SYMBOL_ARGS_INDEX];\n\t\tif (delimiter == null || delimiter.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid delimiter symbol\");\n\t\t}\n\t}",
"Optional<String[]> arguments();",
"@Implementation\n protected String getParameters(String keys) {\n return null;\n }",
"@Override\npublic boolean isEmpty() {\n\treturn false;\n}",
"@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}",
"public ArgumentChecker(String word) {\n\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }",
"private static String filterJsonTotalInput(String input) {\n if (input.equals(\"null\")) {\n return total;\n }\n return input;\n }",
"private boolean isInValidInput(String input) {\n\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn true;\n\n\t\tint firstPipeIndex = input.indexOf(PARAM_DELIMITER);\n\t\tint secondPipeIndex = input.indexOf(PARAM_DELIMITER, firstPipeIndex + 1);\n\n\t\t/*\n\t\t * if there are no PARAM_DELIMITERs or starts with a PARAM_DELIMITER\n\t\t * (Meaning command is missing) or only single PARAM_DELIMITER input is\n\t\t * not valid\n\t\t */\n\t\tif (firstPipeIndex == -1 || firstPipeIndex == 0 || secondPipeIndex == -1)\n\t\t\treturn true;\n\n\t\t// Means package name is empty\n\t\tif (secondPipeIndex - firstPipeIndex < 2)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}",
"private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static String check(String param, String src_default) {\n if (param == null || param.trim().equals(\"\")) {\n return src_default;\n } else {\n return param;\n }\n }",
"private boolean isComboBoxEmpty(String entry){\n return entry == null || entry.isBlank();\n }",
"@Override\n public String execute(String argument) {\n try {\n if (!argument.isEmpty()) {\n throw new WrongArgumentException();\n }\n\n System.out.println(\"Программа успешно завершена!\");\n System.exit(0);\n } catch (WrongArgumentException e) {\n System.out.println(\"Используйте: '\" + getName() + \"'\");\n } catch (Exception e) {\n System.out.println(\"Что-то пошло не так. Повторите ввод.\");\n }\n return argument;\n }",
"private void checkEmpty() throws NoSuchElementException\n\t{\n\t\tif (isEmpty())\n\t\t{\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t}",
"public abstract ImmutableSet<String> getExplicitlyPassedParameters();",
"@Test(expected = MissingArgumentException.class)\n\tpublic void testMainEmptyParameters() throws Exception {\n\t\tString[] arguments = new String[0];\n\t\tAutomaticMowerMain.main(arguments);\n\t}",
"String extractParameters ();",
"private String processOperationInput(String operationInput) {\n try {\n return \"bbox = \" + new JSONObject(operationInput).getString(\"bbox\");\n } catch (Exception ignore) {\n }\n return new String (\"No input parameters\");\n }",
"static String checkEmptyString(String str, String strName) {\n String errorMsg = \"empty \" + strName;\n str = Optional.ofNullable(str).map(s -> {\n if(s.isEmpty()) {\n throw new NullPointerException(errorMsg);\n }\n return s;\n }).orElseThrow(() -> new NullPointerException(errorMsg));\n return str;\n }",
"@Test\n public void parse_emptyInvalidArgs_throwsParseException() {\n assertParseFailure(parser, ParserUtil.EMPTY_STRING, String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n SortCommand.MESSAGE_USAGE));\n }",
"static int size_of_in(String passed){\n\t\treturn 2;\n\t}",
"private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }",
"static int size_of_cmc(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_dad(String passed){\n\t\treturn 1;\n\t}",
"public ArgumentChecker(String[] words) {\n\n if (words.length < 1 || words == null) {\n throw new IllegalArgumentException();\n }\n for (String word : words) {\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }\n }",
"private String getStringOrNull (String value) {\n if (value == null || value.isEmpty()) value = null;\n return value;\n }",
"private static boolean paramValid(String paramName,String paramValue){\n return paramName!=null&¶mName.length()>0&¶mValue!=null&¶mValue.length()>0;\n }",
"static void return_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"static int size_of_inr(String passed){\n\t\treturn 1;\n\t}",
"private void checkFormNullInput(Point[] points) {\n // No null inputs are allowed\n if (points == null) throw new IllegalArgumentException();\n\n for (Point p : points) {\n // No null elements are allowed\n if (p == null) {\n throw new IllegalArgumentException();\n }\n }\n }",
"public abstract void makeEmpty();",
"private boolean hasValue (String s) { return s != null && s.length() != 0; }",
"@Test\n public void testValidateParams() {\n String[] params;\n\n // valid params - just the application name\n params = new String[]{\"Application\"};\n instance.validateParams(params);\n\n // valid params - extra junk\n params = new String[]{\"Application\", \"Other\", \"Other\"};\n instance.validateParams(params);\n\n // invalid params - empty\n params = new String[0];\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - null first param\n params = new String[]{null};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - empty string\n params = new String[]{\"\"};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n }",
"@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}",
"@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithEmptyString() {\n\t\tprocessor.execute(\"\", ANONYMOUS_CSVCONTEXT);\n\t}",
"private Arguments validateAndReturnType(String[] arguments) {\n\t\tif(arguments == null || arguments.length == 0 || arguments.length > 3)\n \t\treturn Arguments.INVALID;\n\t\tString arg1 = arguments[0].toLowerCase();\n\t\tif(arg1.equals(\"increase\") || arg1.equals(\"reduce\") || arg1.equals(\"inrange\")){\n\t\t\tif(arguments.length != 3)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"increase\"))\n\t\t\t\t\treturn Arguments.INCREASE;\n\t\t\t\telse if(arg1.equals(\"reduce\"))\n\t\t\t\t\treturn Arguments.REDUCE;\n\t\t\t\telse if(arg1.equals(\"inrange\"))\n\t\t\t\t\treturn Arguments.INRANGE;\n\t\t\t}\n\t\t} else if(arg1.equals(\"next\") || arg1.equals(\"previous\") || arg1.equals(\"count\")) {\n\t\t\tif(arguments.length != 2)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"next\"))\n\t\t\t\t\treturn Arguments.NEXT;\n\t\t\t\telse if(arg1.equals(\"previous\"))\n\t\t\t\t\treturn Arguments.PREVIOUS;\n\t\t\t\telse if(arg1.equals(\"count\"))\n\t\t\t\t\treturn Arguments.COUNT;\n\t\t\t}\n\t\t} else if(arg1.equals(\"quit\")) {\n\t\t\treturn Arguments.QUIT;\n\t\t} else\n\t\t\treturn Arguments.INVALID;\n\t\t\t\n\t\treturn null;\n\t}",
"@Test\n public void allowedEmptyType() throws Exception {\n Query query = Query.parse(\"/allow-empty-type\");\n doAllowedEmptyTest(query);\n }",
"private Boolean nonEmptyQuery(String query){\n\t\tBoolean isCorrect = false;\n\t\tString [] queryElements = query.split(\"--\");\n\t\tif(queryElements.length==2 && !queryElements[0].isEmpty() && !queryElements[1].isEmpty())\n\t\t\tisCorrect = true;\n\t\treturn isCorrect;\n\t}"
] |
[
"0.63711953",
"0.61976564",
"0.6011647",
"0.6009147",
"0.5960147",
"0.5953561",
"0.5870515",
"0.58324444",
"0.58139193",
"0.57187986",
"0.57159275",
"0.57077754",
"0.56549275",
"0.55715066",
"0.55475336",
"0.5539996",
"0.5495584",
"0.54823446",
"0.54461807",
"0.54458183",
"0.5428699",
"0.5347033",
"0.5327295",
"0.5318075",
"0.53141224",
"0.52856284",
"0.5276606",
"0.52722377",
"0.52680945",
"0.52399826",
"0.5221468",
"0.52151155",
"0.51874036",
"0.5175943",
"0.5171456",
"0.5157576",
"0.5157214",
"0.51454467",
"0.5127308",
"0.51222014",
"0.51211816",
"0.5119818",
"0.511268",
"0.5103421",
"0.50982463",
"0.5098214",
"0.5095195",
"0.5092276",
"0.5072807",
"0.5069923",
"0.5066646",
"0.50656223",
"0.5064917",
"0.5064917",
"0.506428",
"0.50584",
"0.50584",
"0.50538564",
"0.5039512",
"0.5037114",
"0.5033656",
"0.5031559",
"0.50304085",
"0.50297225",
"0.5029284",
"0.5022451",
"0.5019976",
"0.5013311",
"0.5008995",
"0.5002722",
"0.50023484",
"0.4996699",
"0.49952775",
"0.49898323",
"0.49864563",
"0.49845728",
"0.4983564",
"0.49806285",
"0.49802408",
"0.49740615",
"0.49717724",
"0.49701372",
"0.4959793",
"0.4959329",
"0.49587217",
"0.49581853",
"0.49576452",
"0.49570096",
"0.495658",
"0.4955307",
"0.49512956",
"0.49424672",
"0.49411297",
"0.49392933",
"0.49383903",
"0.4938376",
"0.49375826",
"0.49332705",
"0.49295908",
"0.49287945",
"0.49238124"
] |
0.0
|
-1
|
TODO: not sure this is appropriate
|
@SuppressWarnings("unchecked")
@Test
void shouldThrowExceptionWhenGivenEntriesIsEmpty() {
DefaultValidator<Target> validator = new DefaultValidator<>(Target.class);
assertThrows(IllegalArgumentException.class, () -> validator.ruleForMap(Target::getMap).doesNotContain(new MapEntry[0]));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"public void method_4270() {}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"private void strin() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"private void m50366E() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override public int describeContents() { return 0; }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n protected void prot() {\n }",
"protected abstract Set method_1559();",
"public final void mo51373a() {\n }",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"protected OpinionFinding() {/* intentionally empty block */}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public abstract void mo70713b();",
"@Override\n public void init() {\n\n }",
"private Rekenhulp()\n\t{\n\t}",
"private void init() {\n\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"Consumable() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"private void level7() {\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"public void identify() {\n\n\t}",
"@Override\n public void preprocess() {\n }",
"@Override\n public void init() {\n }",
"abstract int pregnancy();",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"public abstract String mo41079d();",
"public void mo21877s() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"public abstract Object mo26777y();",
"public abstract String mo13682d();",
"private Util() { }",
"@Override\n void init() {\n }"
] |
[
"0.5791955",
"0.5636724",
"0.55144966",
"0.55123043",
"0.5491161",
"0.5481341",
"0.5472228",
"0.54436463",
"0.54293406",
"0.53658736",
"0.5339569",
"0.5329671",
"0.5324428",
"0.5308426",
"0.5299904",
"0.52606624",
"0.52559483",
"0.52267027",
"0.52126396",
"0.5182188",
"0.5168568",
"0.5166967",
"0.51525533",
"0.5149227",
"0.51253057",
"0.51180124",
"0.5117565",
"0.51136684",
"0.51088643",
"0.50992393",
"0.50981224",
"0.50981224",
"0.507594",
"0.5057555",
"0.5057295",
"0.50457245",
"0.50432605",
"0.50408936",
"0.5038396",
"0.50338936",
"0.50258416",
"0.50258416",
"0.5010056",
"0.5009512",
"0.5009512",
"0.5009512",
"0.5009512",
"0.5009512",
"0.5009512",
"0.5009014",
"0.5005897",
"0.5004117",
"0.49813062",
"0.49806553",
"0.49725258",
"0.49650472",
"0.49602544",
"0.49599957",
"0.4958173",
"0.49544168",
"0.4949524",
"0.49452555",
"0.49450725",
"0.4943945",
"0.49437812",
"0.49409443",
"0.49409443",
"0.49409443",
"0.49409443",
"0.49409443",
"0.4939411",
"0.49362215",
"0.49313396",
"0.49313396",
"0.49262244",
"0.49223804",
"0.49202067",
"0.49166024",
"0.49162233",
"0.49117133",
"0.4907533",
"0.49052843",
"0.49033824",
"0.49027583",
"0.49003893",
"0.48959273",
"0.4893858",
"0.48911765",
"0.48834434",
"0.4880986",
"0.48728234",
"0.4869399",
"0.48666838",
"0.48663527",
"0.48654997",
"0.48628044",
"0.48586822",
"0.48585302",
"0.48575854",
"0.48568928",
"0.48565048"
] |
0.0
|
-1
|
TODO: use this or remove
|
private static Stream<Arguments> shouldReturnFailureWhenActualContainsAtLeastOneGivenValueSource() {
return Stream.of(
Arguments.of((Object) MoreArrays.array(Maps.entry("hello", "world"))),
Arguments.of((Object) MoreArrays.array(Maps.entry("name", "sean"), Maps.entry("foo", "bar")))
);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void strin() {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n public void preprocess() {\n }",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private Unescaper() {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}"
] |
[
"0.59241426",
"0.58406943",
"0.5799903",
"0.5777382",
"0.57582146",
"0.57441914",
"0.57346094",
"0.57205826",
"0.56404024",
"0.55740416",
"0.5513783",
"0.54924506",
"0.54811805",
"0.54811805",
"0.54712737",
"0.54554003",
"0.5450764",
"0.5432042",
"0.5432042",
"0.54319906",
"0.541374",
"0.5410432",
"0.5404423",
"0.5399213",
"0.5394766",
"0.5394097",
"0.53937006",
"0.53937006",
"0.53937006",
"0.53937006",
"0.53937006",
"0.53937006",
"0.53741574",
"0.5371224",
"0.5357753",
"0.53560317",
"0.5353748",
"0.53474617",
"0.53325486",
"0.53210944",
"0.53210944",
"0.5306974",
"0.5288766",
"0.5280544",
"0.52620274",
"0.52620274",
"0.5252124",
"0.52509433",
"0.5244721",
"0.5241434",
"0.5239112",
"0.52384037",
"0.5236013",
"0.52292454",
"0.5220776",
"0.5218029",
"0.52136284",
"0.52103245",
"0.520998",
"0.5209307",
"0.5204219",
"0.52007973",
"0.51919216",
"0.51886886",
"0.51867557",
"0.5186351",
"0.51730704",
"0.5166132",
"0.51655567",
"0.51638246",
"0.5149236",
"0.5147765",
"0.5147166",
"0.5147166",
"0.5147166",
"0.5147166",
"0.5147166",
"0.5145695",
"0.5139354",
"0.5136163",
"0.5133436",
"0.51278317",
"0.5127529",
"0.5127529",
"0.5124556",
"0.5117931",
"0.51107955",
"0.51107955",
"0.51107955",
"0.5109379",
"0.5108745",
"0.51063657",
"0.5102236",
"0.5099341",
"0.50972825",
"0.5087357",
"0.508695",
"0.5086915",
"0.5083231",
"0.50759256",
"0.5074535"
] |
0.0
|
-1
|
/ Runtime: 1 ms, faster than 100.00% of Java online submissions for Power of Four. Memory Usage: 33.2 MB, less than 6.67% of Java online submissions for Power of Four.
|
public boolean isPowerOfFour(int num) {
if(num <= 0) return false;
while(num != 1)
{
if(num % 4 !=0) return false;
num /= 4;
}
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}",
"public static void main(String[] args)\n {\n double start = System.currentTimeMillis();\n int sum = 0;\n BigInteger product = new BigInteger(\"1\");\n BigInteger one = new BigInteger(\"1\");\n BigInteger number = new BigInteger(\"100\");\n while (number.compareTo(one) == 1)\n {\n product = product.multiply(number);\n number = number.subtract(new BigInteger(\"1\"));\n }\n String pString = product.toString();\n for (int i = 0; i < pString.length(); i++)\n {\n int n = Character.getNumericValue(pString.charAt(i));\n sum += n;\n }\n System.out.println(sum);\n System.out.printf(\"\\nRunning Time: %fms\\n\", System.currentTimeMillis() - \n start);\n }",
"public abstract long mo9746k();",
"public static void main (String[] args)\n {\n int[] f = {3,3,1}; \n \n //System.out.println(nCPr(f,3));\n System.out.println(nCPr(f,3));\n \n System.exit(0);\n \n /*\n long t = System.currentTimeMillis();\n System.out.println(primes0(Long.MAX_VALUE)); \n System.out.println((System.currentTimeMillis() - t) /1);\n \n t = System.currentTimeMillis();\n System.out.println(primes(Long.MAX_VALUE,null)); \n System.out.println((System.currentTimeMillis() - t) /1);*/\n \n br.com.hkp.classes.math.numberstheory.QuickSieve sv = \n new br.com.hkp.classes.math.numberstheory.QuickSieve(50000000);\n \n System.out.println(\">>>\"+primeFactors(89999999));\n \n \n \n Iterator<Integer> it = sv.getList().iterator();\n \n double soma = 0;\n \n while (it.hasNext())\n \n {\n long n = it.next();\n if (n > 6000)\n break;\n else\n soma += 32000000 / it.next();\n }\n \n System.out.println(soma);\n \n //System.exit(0);\n \n \n System.out.println(\" Fatorando...\");\n long pow = (long)Math.pow(50000000, 2);\n \n System.out.println(\" pow = \" +pow);\n \n for (int i = 0; i <= 300; i++)\n {\n long random = (long)(pow * Math.random());//715256374182293l;\n System.out.println(\" random = \" + random);\n long t = System.currentTimeMillis();\n System.out.print(\"Primes : \"+primeFactors(random,sv.getList())); \n long time = System.currentTimeMillis() - t;\n System.out.println(\" > \"+ time + \" milseg\");\n \n t = System.currentTimeMillis();\n System.out.print(\"Primes0 : \"+primeFactors(random)); \n long time0 = System.currentTimeMillis() - t;\n System.out.println(\" > \"+ time0 + \" milseg\");\n \n \n System.out.println(\" ratio = \" + ((time != 0) ? time0/time : \"N/A\"));\n }\n //System.out.println(primes(14552145213l)); \n //System.out.println((7l*7l*73l*127l*337l*92737l*649657l) == Long.MAX_VALUE); \n //System.out.println(5l*23l*53301701l*1504703107l); \n //System.out.println((7l*7l*73l*127l*337l*92737l*649657l)); \n System.exit(0);\n //System.out.println(frac(5.97));\n int[] v = {3,2,0};\n System.out.println(nPr(v,3));\n \n System.exit(0);\n\n double pi = 5.97;\n //System.out.println(frac(pi));\n double fracPi = frac (pi);\n double fracMinusPi = frac (-pi);\n double i = integ(pi);\n //System.out.printf (\"%f %f %f %.14f%n\", pi, fracPi, fracMinusPi,i);\n System.out.println ( fracPi);\n\n BigDecimal bdPi = new BigDecimal (\"\" +5.97);\n BigDecimal bdFracPi = frac (bdPi);\n BigDecimal bdFracMinusPi = frac (bdFracPi.negate());\n\n //System.out.printf (\"%f %f %f%n\", bdPi, bdFracPi, bdFracMinusPi);\n System.out.println(bdFracPi);\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.println(\"For which power would you like to calculate the formula? (type whole, positive number)\");\r\n\t\tint power = in.nextInt()+1;\r\n\t\t\r\n\t\tlong startTime = System.nanoTime();\r\n\t\t\r\n\t\tBigDecimal[][] init = matrix.createNullMatrix(power);\r\n\t\t\r\n\t\tinit = matrix.findCoefficients(init);\r\n\t\t\r\n\t\tBigDecimal[] vec = matrix.findPartialSums(init);\r\n\t\t\r\n\t\tBigDecimal[][] inverse = matrix.findInverse(init);\r\n\t\t\r\n\t\tBigDecimal[] vec1 = matrix.multiplyMatrices(inverse, vec);\r\n\t\tSystem.out.println();\r\n\t\tmatrix.readVector(vec1);\r\n\t\t\r\n\t\tlong endTime = System.nanoTime();\r\n\t\t\r\n\t\tin.close();\r\n\t\t\r\n\t\tSystem.out.println( (float)((float)(endTime-startTime)/1000000000) + \" seconds to finish\");\r\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"A run through of various algorithms included in this repo\");\n\t\t\n\t\tSystem.out.println(\"The Russian peasant multiplication Algorithm\");\n\t\t\n\t\tint a = 478, b = 7023;\n\t\t\n\t\tSystem.out.println(\"Values used \" + a + \" and \" + b);\n\t\t\n\t\tint niters = 1000000;\n\t\tlong startTime = System.nanoTime(); \n\t\t\n\t\tfor(int count = 0;count < niters;count++) {\n\t\t Peasants.peasantAlg(a, b);\n\t\t}\n\t\tdouble time = ((System.nanoTime() - startTime)/(double)niters);\n\t\t \n\t\tSystem.out.println(\"Answer is \" + Peasants.peasantAlg(a,b));\n\t\tSystem.out.println(\"Time taken \" + time);\n\t\t\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"The Fibonacci Algorithm\");\n\t\t\n\t\ta = 10;\n\t\t\n\t\tSystem.out.println(\"Value used \" + a);\n\t\t\n\t\tstartTime = System.nanoTime(); \n\t\tfor(int i = 0;i < 100000;i++) {\n\t\t\tFibonacci.fib(a);\n\t\t}\n\t\t\n\t\ttime = ((System.nanoTime() - startTime)/(double)100000);\n\t\tSystem.out.println(\"Answer is \" + Fibonacci.fib(a));\n\t\tSystem.out.println(\"the time taken \" + time); \n\t\t\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"The Tower of Hanoi Algorithm\");\n\t\t\n\t\ta = 6;\n\t\t\n\t\tSystem.out.println(\"Value used \" + a);\n\t\t\n\t\tstartTime = System.nanoTime(); \n\t\t\n\t\tTowerOfHanoi.Hanoi(a, \"A\", \"C\", \"B\"); //Run once to avoid filling the console\n\t\t\n\t\tSystem.out.println(\"the time taken \" + (System.nanoTime() - startTime)); \n\t\t\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"The Selection Sort, Insertion Sort and Stalin Sort ALgorithms\");\n\t\t\n int n = 100; //Number of variables to be sorted\n\t\t\n\t\tint[] x = new int[n];\n\t\tint[] y = new int[n];\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tlong endTime = 0;\n\t\tlong endTime2 = 0;\n\t\tstartTime = 0;\n\t\t\n\t\tfor(int i = 0;i < 10000;i++) {\n\t\t\t\n\t\t\tfor(int j = 0;j < n;j++) { //Fills arrays with random numbers\n\t\t\t\tint k = rand.nextInt();\n\t\t\t\tx[j] = k;\n\t\t\t\ty[j] = k;\n\t\t\t}\n\t\t\t\n\t\t\tstartTime = System.nanoTime(); \n\t\t\tDifferentSorts.selectionSort(x);\n\t\t\tendTime += System.nanoTime() - startTime;\n\t\t\t\n\t\t\t\n startTime = System.nanoTime(); \n DifferentSorts.insertSort(y);\n\t\t\tendTime2 += System.nanoTime() - startTime;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Time taken for Selection Sort \" + (endTime / 10000));\n\t\tSystem.out.println(\"Time taken for Insertion Sort \" + (endTime2 / 10000));\n\t\t\n\t\tSystem.out.println(\"Selection Sort sorted array\");\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tSystem.out.print(\" \" + x[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Insertion Sort sorted array\");\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tSystem.out.print(\" \" + y[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"The Merge Sort and Enhanced Merge Sort ALgorithms\");\n\t\t\n\t\t\n\t\tn = 100; //Number of variables to be sorted\n\t\t\n\t\tx = new int[n];\n\t\ty = new int[n];\n\t\t\t\t\n\t\tendTime = 0;\n\t\tendTime2 = 0;\n\t\tstartTime = 0;\n\t\t\n\t\tfor(int i = 0;i < 10000;i++) {\n\t\t\t\n\t\t\tfor(int j = 0;j < n;j++) { //Fills arrays with random numbers\n\t\t\t\tint k = rand.nextInt();\n\t\t\t\tx[j] = k;\n\t\t\t\ty[j] = k;\n\t\t\t}\n\t\t\t\n\t\t\tstartTime = System.nanoTime(); \n\t\t\tDifferentSorts.mergeSort(x);\n\t\t\tendTime += System.nanoTime() - startTime;\n\t\t\t\n\t\t\t\n startTime = System.nanoTime(); \n DifferentSorts.improvedMergeSort(y);\n\t\t\tendTime2 += System.nanoTime() - startTime;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Time taken for Merge Sort \" + (endTime / 10000));\n\t\tSystem.out.println(\"Time taken for Improved Merge Sort \" + (endTime2 / 10000));\n\t\t\n\t\tSystem.out.println(\"Merge Sort sorted array\");\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tSystem.out.print(\" \" + x[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(\"Improved Merge Sort sorted array\");\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tSystem.out.print(\" \" + y[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"The Quick Sort and Enhanced Quick Sort ALgorithms\");\n\t\t\n n = 100; //Number of variables to be sorted\n\t\t\n\t\tx = new int[n];\n\t\ty = new int[n];\n\t\t\t\t\n\t\tendTime = 0;\n\t\tendTime2 = 0;\n\t\tstartTime = 0;\n\t\t\n\t\tint low = 0, high = n - 1;\n\t\t\n\t\tfor(int i = 0;i < 10000;i++) {\n\t\t\t\n\t\t\tfor(int j = 0;j < n;j++) { //Fills arrays with random numbers\n\t\t\t\tint k = rand.nextInt();\n\t\t\t\tx[j] = k;\n\t\t\t\ty[j] = k;\n\t\t\t}\n\t\t\t\n\t\t\tstartTime = System.nanoTime(); \n\t\t\tDifferentSorts.quickSort(x, low, high);\n\t\t\tendTime += System.nanoTime() - startTime;\n\t\t\t\n\t\t\t\n startTime = System.nanoTime(); \n DifferentSorts.enhancedQuickSort(y, low, high);\n\t\t\tendTime2 += System.nanoTime() - startTime;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Time taken for Quick Sort \" + (endTime / 10000));\n\t\tSystem.out.println(\"Time taken for Enhanced Quick Sort \" + (endTime2 / 10000));\n\t\t\n\t\tSystem.out.println(\"Quick Sort sorted array\");\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tSystem.out.print(\" \" + x[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(\"Enhanced Quick Sort sorted array\");\n\t\tfor(int i = 0;i < n;i++) {\n\t\t\tSystem.out.print(\" \" + y[i]);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"The Brute force search and KMP search ALgorithms\");\n\t\t\n\t\tString txt = \"ABABDABACDABABCABAB\"; \n\t String pat = \"ABABCABAB\";\n\t \n\t System.out.println(\"The text for the search Algorithms \" + txt);\n\t System.out.println(\"The pattern for the search Algorithms \" + pat);\n\t \n\t startTime = System.nanoTime(); \n\t\tfor(int i = 0;i < 10000;i++) {\n\t\t\tStringSearch.bruteForceSubString(txt, pat);\n\t\t}\n\t\t\n\t\ttime = ((System.nanoTime() - startTime)/(double)10000);\n\t\tSystem.out.println(\"Brute Force answer is \" + StringSearch.bruteForceSubString(txt, pat));\n\t\tSystem.out.println(\"the time taken \" + time); \n\t\t\n\t\tKMPsearch kmp = new KMPsearch();\n\t\t\n\t\tSystem.out.println(\"KMP search answer is \" );\n\t\tstartTime = System.nanoTime(); \n\t\tkmp.KMPSearch(pat, txt); //Run once to avoid flooding console\n\t\ttime = (System.nanoTime() - startTime);\n\t\tSystem.out.println(\"the time taken \" + time + \" , this is not averaged out so maybe higher than brute force\"); \n\t}",
"static void runIt() throws IOException {\n\t\t String inFName = \"resource/C-large.in\";\n//\t\tString outFName = \"resource/C-small.out\";\n\t\t String outFName = \"resource/C-large.out\";\n\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFName));\n\t\tPrintWriter out = new PrintWriter(new File(outFName));\n\n\t\tint testCases = Integer.parseInt(in.readLine());\n\n\t\tfor (int i = 0; i < testCases; ++i) {\n\n\t\t\tString line[] = in.readLine().split(\" \");\n//\t\t\tSystem.out.println(line);\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\toutput.append(\"Case #\" + (i + 1) + \": \");\n\n\t\t\tint R = Integer.parseInt(line[0]);\n\t\t\tint K = Integer.parseInt(line[1]);\n\t\t\tlong euros = 0;\n\t\t\tint pass = 0;\n\t\t\tline = in.readLine().split(\" \");\n\t\t\tVector<Integer> queue = new Vector<Integer>();\n\t\t\tVector<Integer> first = new Vector<Integer>();\n\t\t\tfor (String string : line) {\n\t\t\t\tqueue.add(Integer.parseInt(string));\n\t\t\t\tfirst.add(Integer.parseInt(string));\n\t\t\t\t\n\t\t\t}\n\n\n\t\t\tfor (int time = 0; time < R; ++time) {\n\t\t\t\tint p = 0;\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (p < queue.size()) {\n\t\t\t\t\t\tInteger g = queue.elementAt(p++);\n\t\t\t\t\t\tif (pass + g <= K) {\n\t\t\t\t\t\t\tpass += g;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tfor (int kk = 1; kk < p; ++kk) {\n\t\t\t\t\tInteger m = queue.remove(0);\n\t\t\t\t\tqueue.add(m);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\teuros += pass;\n\t\t\t\tpass=0;\n\t\t\t\tif(queue.equals(first)){\n\t\t\t\t\tint s = R/(time+1);\n\t\t\t\t\teuros*=s;\n\t\t\t\t\ttime *=s;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\toutput.append(euros);\n\t\t\tSystem.out.println(output);\n\t\t\tout.println(output);\n\t\t}\n\n\t\tin.close();\n\t\tout.flush();\n\t\tout.close();\n\t}",
"public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }",
"private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }",
"public static void main(String[] args) {\r\n System.out.println(\"Digite el numero de abejas\");\r\n Scanner scan = new Scanner(System.in);\r\n int numberOfBees = scan.nextInt();\r\n long mb = 1024 * 1024;\r\n Runtime runtime = Runtime.getRuntime();\r\n if (numberOfBees > 5000) {\r\n CollisionPrevention3D test = new CollisionPrevention3D(numberOfBees);\r\n test.readFile();\r\n long startMemory = (runtime.totalMemory() - runtime.freeMemory()) / mb;\r\n long startTime = System.currentTimeMillis();\r\n test.addBeesToMatrix();\r\n test.detectCollisions();\r\n long estimatedTime = System.currentTimeMillis() - startTime;\r\n long finalMemory = (runtime.totalMemory() - runtime.freeMemory()) / mb;\r\n long estimatedMemory = (finalMemory - startMemory);\r\n test.saveFile();\r\n System.out.println(\"El algoritmo tomo un tiempo de: \" + estimatedTime + \" ms\");\r\n System.out.println(\"El algoritmo El algoritmo usó : \" + estimatedMemory + \" mb\");\r\n } else {\r\n CollisionPrevention test2 = new CollisionPrevention(numberOfBees);\r\n test2.leerArchivo();\r\n long startMemory2 = (runtime.totalMemory() - runtime.freeMemory()) / mb;\r\n long startTime2 = System.currentTimeMillis();\r\n test2.detectarColisiones();\r\n long estimatedTime2 = System.currentTimeMillis() - startTime2;\r\n test2.guardarArchivo();\r\n long finalMemory2 = (runtime.totalMemory() - runtime.freeMemory()) / mb;\r\n long estimatedMemory2 = (finalMemory2 - startMemory2);\r\n System.out.println(\"El algoritmo tomo un tiempo de: \" + estimatedTime2 + \" ms\");\r\n System.out.println(\"El algoritmo usó : \" + estimatedMemory2 + \" mb\");\r\n }\r\n }",
"public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(UFTest.class.getResource(\"/\").getPath()+\"1.5/largeUF.txt\"));\n String str = bufferedReader.readLine();\n UFLJWQU uf = new UFLJWQU(Integer.parseInt(str));\n long beginTime =System.currentTimeMillis();\n while ((str = bufferedReader.readLine())!=null){\n String[] array = str.split(\" \");\n int p = Integer.parseInt(array[0]);\n int q = Integer.parseInt(array[1]);\n if(uf.connected(p,q)) continue;\n uf.union(p,q);\n// System.out.println(p+\" -- \"+q);\n }\n System.out.println(uf.count());\n System.out.println(\"cost time :\"+(System.currentTimeMillis() - beginTime));\n }",
"public static void main(String[] args) {\n // solution for the problem\n int solution;\n // end time of the program\n long endTime;\n // start time of the program\n long startTime;\n\n startTime = System.nanoTime();\n solution = findSpecialPrimesSum();\n endTime = System.nanoTime();\n\n // print answer and time taken\n System.out.println(ANSWER + solution);\n System.out.printf(TIME_TAKEN, (double) (endTime - startTime) / TIME_CONVERSION);\n }",
"@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the number of members: \");\n\t\tnumberOfMembers = scanner.nextInt();\n\t\tSystem.out.println(\"Enter the number of timestamps: \");\n\t\tnumberOfTimestamps = scanner.nextInt();\n\t\tscanner.close();\n\t\t\n\t\t/**\n\t\t * Generating logFile with values given by user,\n\t\t * calculating time taken to generate and printing that time.\n\t\t */\n\t\tstartTime = System.nanoTime();\n\t\tgenerateLogFile(numberOfMembers, numberOfTimestamps);\n\t\ttimeLast = System.nanoTime() - startTime;\n\t\tcalculateTime(\"File generated in\", timeLast);\n\t\t\n\t\t/**\n\t\t * Initializing algorithm instances,\n\t\t * calculating time taken to initialize and printing that time.\n\t\t */\n\t\tstartTime = System.nanoTime();\n\t\tquickFind = new QuickFindUF(numberOfMembers);\n\t\tquickUnion = new QuickUnionUF(numberOfMembers);\n\t\tweightedQuickUnion = new WeightedQuickUnionUF(numberOfMembers);\n\t\tweightedQuickUnionByHeight = new WeightedQuickUnionByHeightUF(numberOfMembers);\n\t\tquickUnionPathCompression = new QuickUnionPathCompressionUF(numberOfMembers);\n\t\tweightedQuickUnionPathCompression = new WeightedQuickUnionPathCompressionUF(numberOfMembers);\n\t\ttimeLast = System.nanoTime() - startTime;\n\t\tcalculateTime(\"Instances generated in\", timeLast);\n\t\t\n\t\t/**\n\t\t * Running algorithms and initializing variables of time taken.\n\t\t */\n\t\tdouble quickFindTime = runAlgorithm(quickFind);\n\t\tdouble quickUnionTime = runAlgorithm(quickUnion);\n\t\tdouble weightedQuickUnionTime = runAlgorithm(weightedQuickUnion);\n\t\tdouble weightedQuickUnionByHeightTime = runAlgorithm(weightedQuickUnionByHeight);\n\t\tdouble quickUnionPathCompressionTime =runAlgorithm(quickUnionPathCompression);\n\t\tdouble weightedQuickUnionPathCompressionTime = runAlgorithm(weightedQuickUnionPathCompression);\n\t\t\n\t\t/**\n\t\t * Creating list of times taken to run by different algorithms\n\t\t * to get the shortest time taken.\n\t\t */\n\t\tArrayList<Double> algorithmTimes = new ArrayList<>();\n\t\talgorithmTimes.add(quickFindTime);\n\t\talgorithmTimes.add(quickUnionTime);\n\t\talgorithmTimes.add(weightedQuickUnionTime);\n\t\talgorithmTimes.add(weightedQuickUnionByHeightTime);\n\t\talgorithmTimes.add(quickUnionPathCompressionTime);\n\t\talgorithmTimes.add(weightedQuickUnionPathCompressionTime);\n\t\tCollections.sort(algorithmTimes);\n\t\tdouble shortestTime = algorithmTimes.get(0);\n\t\t\n\t\t/**\n\t\t * Printing comparison of time taken by algorithms in relation to the shortest time. \n\t\t */\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\"Times Comparison\");\n\t\tSystem.out.println(\"======================================================\");\n\t\tSystem.out.printf(quickFind.getClass().getSimpleName() + \"\\t\\t\\t\\t%.5f%n\"\n\t\t\t\t+ quickUnion.getClass().getSimpleName() + \"\\t\\t\\t\\t%.5f%n\"\n\t\t\t\t+ weightedQuickUnion.getClass().getSimpleName() + \"\\t\\t\\t%.5f%n\"\n\t\t\t\t+ weightedQuickUnionByHeight.getClass().getSimpleName() + \"\\t\\t%.5f%n\"\n\t\t\t\t+ quickUnionPathCompression.getClass().getSimpleName() + \"\\t\\t%.5f%n\"\n\t\t\t\t+ weightedQuickUnionPathCompression.getClass().getSimpleName() + \"\\t%.5f%n\",\n\t\t\t\tquickFindTime/shortestTime, quickUnionTime/shortestTime,weightedQuickUnionTime/shortestTime, \n\t\t\t\tweightedQuickUnionByHeightTime/shortestTime, quickUnionPathCompressionTime/shortestTime, weightedQuickUnionPathCompressionTime/shortestTime);\n\t}",
"@Override\n public String run() {\n long sum = 0;\n int limit = 2000000;\n for (int num = 2; num < limit; num++){\n if(isPrime(num)){\n sum += num;\n }\n }\n return Long.toString(sum);\n }",
"public static void main(String[] args) throws Exception {\n\t\tString filePath = \"/Users/Alen/Documents/CodeJam/2013/Qualification/C-Large-1.in\";\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(filePath));\n\t\tString outFile = filePath.substring(0, filePath.lastIndexOf('.'))\n\t\t\t\t+ \".out\";\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(outFile));\n\t\t\n\t\tfinal int MAX_POWER = 16;\n\t\t\n\t\tint[] palindrome = new int[MAX_POWER / 2];\n\t\tInteger[] palindromeSquarePalindrome = new Integer[MAX_POWER];\n\t\tList<Integer[]> pspList = new ArrayList<Integer[]>();\n\t\t\n\t\tfor (int i = 1; i <= palindrome.length; i++) {\n\t\t\tfor (int i2 = 0; i2 < palindrome.length; i2++) {\n\t\t\t\tpalindrome[i2] = 0;\n\t\t\t}\n\t\t\tfor (int i3 = 0; i3 < palindromeSquarePalindrome.length; i3++) {\n\t\t\t\tpalindromeSquarePalindrome[i3] = 0;\n\t\t\t}\n\t\t\tpalindromeSquarePalindrome[palindromeSquarePalindrome.length - 1] = 2 * i - 1;\n\t\t\t\n\t\t\tint j = 0;\n\t\t\twhile (j >= 0 && j <= i / 2) {\n\t\t\t\tif (palindrome[j] == 0) {\n\t\t\t\t\tif (j == 0 || j >= (i - 1) / 2 ) palindrome[j] = palindrome[i - j - 1] = 1;\n\t\t\t\t\telse {\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean isPalindrome = true;\nk:\t\t\t\tfor (int k = 0; k < i; k++) {\n\t\t\t\t\tint palindromeSquare = 0;\n\t\t\t\t\tfor (int l = 0; l <= k; l++) {\n\t\t\t\t\t\tpalindromeSquare += palindrome[l] * palindrome[k - l];\n\t\t\t\t\t\tif (palindromeSquare > 9) {\n\t\t\t\t\t\t\tisPalindrome = false;\n\t\t\t\t\t\t\tbreak k;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpalindromeSquarePalindrome[k] = palindromeSquare;\n\t\t\t\t\tpalindromeSquarePalindrome[2 * i - 2 - k] = palindromeSquare;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (isPalindrome) {\n\t\t\t\t\tpspList.add(palindromeSquarePalindrome.clone());\n\t\t\t\t\tif (j < (i - 1) / 2 || palindrome[j] == 9) {\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tpalindrome[j] = 0;\n\t\t\t\t\tpalindrome[i - j - 1] = 0;\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tif (j >= 0) {\n\t\t\t\t\tint newValue = palindrome[j] + 1;\n\t\t\t\t\t//newValue %= 10;\n\t\t\t\t\tif (j == 0 && newValue == 0) {\n\t\t\t\t\t\tnewValue = 1;\n\t\t\t\t\t}\n\t\t\t\t\tpalindrome[j] = newValue;\n\t\t\t\t\tpalindrome[i - j - 1] = newValue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\n\t\tString line = br.readLine();\n\t\tint t = Integer.valueOf(line);\n\t\tfor (int i = 0; i < t; i++) {\n\t\t\t// TODO main logical\n\t\t\t// ...\n\t\t\tline = br.readLine();\n\t\t\tString[] strs = line.split(\" \");\n\t\t\tInteger[] a = new Integer[MAX_POWER];\n\t\t\tInteger[] b = new Integer[MAX_POWER];\n\t\t\ta[a.length - 1] = strs[0].length();\n\t\t\tfor (int k = 0; k < strs[0].length(); k++) {\n\t\t\t\ta[k] = strs[0].charAt(k) - 0x30;\n\t\t\t}\n\t\t\tb[b.length - 1] = strs[1].length();\n\t\t\tfor (int k = 0; k < strs[1].length(); k++) {\n\t\t\t\tb[k] = strs[1].charAt(k) - 0x30;\n\t\t\t}\n\t\t\t\n\t\t\tint start = 0;\n\t\t\tfor (int k = 0; k < pspList.size(); k++) {\n\t\t\t\tif (compare(a, pspList.get(k)) <= 0) {\n\t\t\t\t\tstart = k;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint end = pspList.size();\n\t\t\tfor (int k = start; k < pspList.size(); k++) {\n\t\t\t\tif (compare(b, pspList.get(k)) < 0) {\n\t\t\t\t\tend = k;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// TODO output\n\t\t\tbw.write(String.format(\"Case #%d: %d\\r\\n\", i + 1, end - start));\n\t\t}\n\n\t\tbw.flush();\n\t\tbw.close();\n\t\tbr.close();\n\n\t}",
"public static void main(String[] args) {\r\n\t\t/** 1.000\r\n\t\t * bruteforceBE Asc runtime: 1072294\r\n\t\t * bruteforceBE Desc runtime: 17835245\r\n\t\t * improvedBE Asc runtime: 3562199\r\n\t\t * improvedBE Desc runtime: 794515\r\n\t\t * linearBE Asc runtime: 1680780\r\n\t\t * linearBE Desc runtime: 1629310\r\n\t\t *\r\n\t\t * 10.000\r\n\t\t * bruteforceBE Asc runtime: 3850878\r\n\t\t * bruteforceBE Desc runtime: 113789179\r\n\t\t * improvedBE Asc runtime: 11800873\r\n\t\t * improvedBE Desc runtime: 8166293\r\n\t\t * linearBE Asc runtime: 14381578\r\n\t\t * linearBE Desc runtime: 5897656\r\n\t\t *\r\n\t\t * 100.000\r\n\t\t * bruteforceBE Asc runtime: 19376301\r\n\t\t * bruteforceBE Desc runtime: 7801237491\r\n\t\t * improvedBE Asc runtime: 52015969\r\n\t\t * improvedBE Desc runtime: 33891001\r\n\t\t * linearBE Asc runtime: 43042990\r\n\t\t * linearBE Desc runtime: 10088763\r\n\t\t *\r\n\t\t * 200.000\r\n\t\t * bruteforceBE Asc runtime: 27567279\r\n\t\t * bruteforceBE Desc runtime: 30705593272\r\n\t\t * improvedBE Asc runtime: 87086775\r\n\t\t * improvedBE Desc runtime: 51012088\r\n\t\t * linearBE Asc runtime: 61726040\r\n\t\t * linearBE Desc runtime: 56062681\r\n\t\t */\r\n\t\tArrayList<Integer> ArrayUnsortAsc = new ArrayList<>();\r\n\t\tArrayList<Integer> ArrayUnsortDesc = new ArrayList<>();\r\n\t\tint n = 1000;\r\n\r\n\t\tfor(int i = 1; i <= n; i++ ) {\r\n\t\t\tArrayUnsortAsc.add(i);\r\n\t\t}\r\n\t\tfor(int j = n; j >= 1; j-- ) {\r\n\t\t\tArrayUnsortDesc.add(j);\r\n\t\t}\r\n\r\n\t\tlong beginning = 0, end = 0;\r\n\t\tlong runtime;\r\n\t\t//1a test\r\n\t\tbeginning = System.nanoTime();\r\n\t\tbruteForceBE(ArrayUnsortAsc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"bruteforceBE Asc runtime: \" + runtime);\r\n\r\n\t\tbeginning = System.nanoTime();\r\n\t\tbruteForceBE(ArrayUnsortDesc,ArrayUnsortDesc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"bruteforceBE Desc runtime: \" + runtime);\r\n\r\n\r\n\t\t//1b test\r\n\t\tbeginning = System.nanoTime();\r\n\t\timprovedBE(ArrayUnsortAsc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"improvedBE Asc runtime: \" + runtime);\r\n\r\n\t\tbeginning = System.nanoTime();\r\n\t\timprovedBE(ArrayUnsortDesc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"improvedBE Desc runtime: \" + runtime);\r\n\r\n\r\n\t\t//1c test\r\n\t\tbeginning = System.nanoTime();\r\n\t\tlinearBE(ArrayUnsortAsc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"linearBE Asc runtime: \" + runtime);\r\n\r\n\t\tbeginning = System.nanoTime();\r\n\t\tlinearBE(ArrayUnsortDesc,ArrayUnsortDesc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"linearBE Desc runtime: \" + runtime);\r\n\r\n\t}",
"public static void main(String[] args) {\n String num1 = \"256117489511377083148593685533950561400363410418754703282767252221661609163404299\";\n String num2 = \"61200496111643709081218550902198211480012378840070191147459688611759881218205422431757614\";\n// String num1 = \"29476\";\n// String num2 = \"919\";\n MultiplyStringsSolution solution = new MultiplyStringsSolution();\n long a = System.currentTimeMillis();\n System.out.println(solution.multiply(num1, num2));\n long b = System.currentTimeMillis();\n System.out.println(b - a);\n System.out.println(solution.multiply2(num1, num2));\n long c = System.currentTimeMillis();\n System.out.println(c - b);\n System.out.println(solution.multiply3(num1, num2));\n long d = System.currentTimeMillis();\n System.out.println(d - c);\n System.out.println(solution.multiply4(num1, num2));\n long e = System.currentTimeMillis();\n System.out.println(e - d);\n }",
"public static void main(String[] args) {\n\t\tint[] prime= new int[1229]; //only need primes up to 10000\n\t\tint n=1;\n\t\tint index=0;\n\t\tint test=0;\n\t\tfor (int i=2; (i-n)<=1229; i++) {\n\t\t\tfor (int j=2; j<=Math.sqrt(i); j++) {\n\t\t\t\tint k=i%j;\n\t\t\t\tif (k==0) {\n\t\t\t\t\tn++;\n\t\t\t\t\ttest++;\n\t\t\t\t\tj=(int)Math.sqrt(i);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (test==0) {\n\t\t\t\tprime[index]=i;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\ttest=0;\n\t\t}\n\t\t\n\t\t//use primes to find prime factorization and sum of divisors\n\t\tint [] divides= new int[1229]; //Number of times each prime divides a number\n\t\tint [] sumOfDivisors= new int[10000]; //Sum of divisors for i at index i\n\t\tint total=0;\n\t\tint sum=1;\n\t\tindex=1;\n\t\tfor (int i=2; i<=10000; i++) {\n\t\t\tint d=i;\n\t\t\tfor (int j=0; j<1229; j++) { //find prime factorization for i\n\t\t\t\twhile (d%prime[j]==0 && d>1) {\n\t\t\t\t\td=d/prime[j];\n\t\t\t\t\tdivides[j]++;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tfor (int j=0; j<1229; j++) { //use Number theory formula for sum of divisors\n\t\t\t\tsum*=(Math.pow(prime[j], divides[j]+1)-1)/(prime[j]-1);\n\t\t\t}\n\t\t\tif (sum-i<i) { //only check if sum of divisors of i is less than i\n\t\t\t\tif (sumOfDivisors[sum-i-1]==i) { //check if amicable pair\n\t\t\t\t\ttotal=total+i+sum-i; //add both to total (only happens once)\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrays.fill(divides,0); //reset divisors array\n\t\t\tsumOfDivisors[index]=sum-i; //store number of divisors\n\t\t\tsum=1;\n\t\t\tindex++;\n\t\t}\n\t\tSystem.out.print(\"The sum of all amicable numbers less than 10000 is: \");\n\t\tSystem.out.println(total);\n long endTime = System.currentTimeMillis();\n System.out.println(\"It took \" + (endTime - startTime) + \" milliseconds.\");\n\n\t}",
"public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"public static void main(String[] args) {\r\n long time1 = System.currentTimeMillis();\r\n Scanner scanner = new Scanner(System.in);\r\n System.out.println(\"Enter a 64-bit integer amd a loop method ('f' for 'for loop', 'w' for 'while loop', 'd'for 'do while loop') to print your chosen amount of first prime numbers: \");\r\n String str = scanner.nextLine();\r\n\r\n String input[] = str.split(\" \");\r\n String integer = input[0];\r\n long n = Long.valueOf(integer);\r\n String character = input[1];\r\n char a = character.charAt(0);\r\n\r\n switch (a) {\r\n case 'f':\r\n for (long i = 0; i < n; i++) {\r\n for (long j = 0; j < n; i++) {\r\n if (f(i) == true) {\r\n System.out.println(i);\r\n j++;\r\n }\r\n }\r\n }\r\n break;\r\n case 'w':\r\n for (long i = 0; i < n; i++) {\r\n for (long j = 0; j < n; i++) {\r\n if (w(i) == true) {\r\n System.out.println(i);\r\n j++;\r\n }\r\n }\r\n }\r\n break;\r\n case 'd':\r\n for (long i = 0; i < n; i++) {\r\n for (long j = 0; j < n; i++) {\r\n if (d(i) == true) {\r\n System.out.println(i);\r\n j++;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n long time2 = System.currentTimeMillis();\r\n System.out.println((time2 - time1) + \" is the total time in milliseconds.\");\r\n }",
"public static void main(String[] args) {\n Random rand = new Random();\n\n // Bit length to test\n int bits = 1024;\n\n // arrays of big ints\n BigInteger[] num1 = new BigInteger[100];\n BigInteger[] num2 = new BigInteger[num1.length];\n // GCD array\n BigInteger[] data = new BigInteger[num2.length];\n\n BigInteger big;\n\n // Uses the same big int for num1[i] and num2[i+1] therefore\n // we only need to generate num1.length big ints\n for (int i = 0; i < num1.length - 1; i++) {\n big = BigInteger.probablePrime(bits, rand);\n num1[i] = big; \n num2[i + 1] = big;\n }\n // The last and first ones\n big = BigInteger.probablePrime(bits, rand);\n num1[num1.length - 1] = big;\n num2[0] = big;\n\n // Timing of gcd\n\t\tLong startTime = new Long(System.currentTimeMillis());\n for (int i = 0; i < num1.length; i++) {\n data[i] = num1[i].gcd(num2[i]);\n }\n Long endTime = new Long(System.currentTimeMillis());\n\t\tSystem.out.println(endTime.intValue() - startTime.intValue());\n\n\n }",
"public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }",
"private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }",
"public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }",
"public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }",
"public static void main(String[] args) {\n int[] example1 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 2, 4, 6, 8, 10, 12, 14, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target1 = 59;\n int[] example2 = {2, 4, 6, 8, 10, 12, 14, 16, 18, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target2 = 59;\n int[] example3 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 2, 4, 6, 8, 10, 12, 14, 16, 18};\n int target3 = 34;\n\n int[] result1;\n int[] result2;\n int[] result3;\n\n // 1.Brute Force\n System.out.println(\"Brute Force start\");\n long startBF = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Brute Force result1 \", result1);\n println(\"Brute Force result2 \", result2);\n println(\"Brute Force result3 \", result3);\n System.out.println(\"Brute Force costs: \" + (System.currentTimeMillis() - startBF));\n\n // 2.Two Pass Hash Table\n System.out.println(\"Two Pass Hash Table start\");\n long startTP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startTP));\n\n // 3.One Pass Hash Table\n System.out.println(\"One Pass Hash Table start\");\n long startOP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startOP));\n }",
"public static void main(String args[]){\n\t\tProblem7 p7 = new Problem7(1000000);\n\t\t//p7.slow_check_if_prime(7919);\n\t\tp7.solve();\n\t}",
"public static void main(String a[]) throws InterruptedException {\n System.out.println(PiDigits.getDigits(1, 1000000, 500));\n// long end3 = System.nanoTime();\n// System.out.println(\"parallel code took :\"+(double)(end3-start3)/1e9 +\" seconds\");\n//\t\tString s1 = new String(bytesToHex(PiDigits.getDigits(1, 100)));\n// \tString s2 = new String(PiDigits.getDigits(1, 100, 1));\n// System.out.println(s1.equals(s2));\n\t}",
"public static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}",
"public static void main(String[] args)\n {\n\tScanner sc = new Scanner(System.in);\n\tSystem.out.println(\"enter cache size in KB among (1, 2, 4, 8, 16, 32)\");\n\tint cacheSize = sc.nextInt();\n\tSystem.out.println(\"enter way associative value among(1,2,4,8)\");\n\tint wayAssociative = sc.nextInt();\n\tSystem.out.println(\"enter cache line size in bytes among(2,4,8,16,32,64)\");\n\tint cacheLineSize = sc.nextInt();\n\tsc.close();\n\n\tlong count_hit = 0, count_miss = 0;\n\tlong count_hit_2 = 0, count_miss_2 = 0, clockCycle_2 = 0;\n\tlong count_hit_4 = 0, count_miss_4 = 0, clockCycle_4 = 0;\n\tlong count_hit_8 = 0, count_miss_8 = 0, clockCycle_8 = 0;\n\n\tint numberOfCacheLines = (int) ((cacheSize * 1024) / cacheLineSize);\n\n\tArrayList<String> cacheKeys = new ArrayList<String>(numberOfCacheLines);\n\tArrayList<String> cacheValues = new ArrayList<String>(numberOfCacheLines);\n\tArrayList<String> cacheKeys_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\n\tlong clockCycle = 0;\n\n\tStringBuilder y = new StringBuilder(\"\");\n\n\t// creating main memory array to store all addresses in a 2d\n\t// array..mapping one\n\t// letter into one width length only..1 to 1 mapping.\n\t// so 2 width is one byte..to get value do block offset*2\n\tString[][] mainMemory = new String[1743][32];\n\tfor (int i = 0; i < 1743; i++)\n\t{\n\t for (int j = 0; j < 32; j++)\n\t {\n\t\tmainMemory[i][j] = \"\";\n\t }\n\t}\n\ttry\n\t{\n\t // read all input files\n\t\tString instructionAddresses = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_addr_trace_hex_project_1.txt\")));\n\t\tString dataSizes = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_data_size_project_1.txt\")));\n\t\tString memoryAddresses = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_mem_hex_16byte_wide.txt\")));\n\t\t// copy all memory addresses into the 2d mainMemory array\n\t\t// split into each line of address\n\n\t String[] memoryAddress = memoryAddresses.split(\"\\\\s+\");\n\t for (int i = 0; i < 1743; i++)\n\t {\n\t\t// split address into each letter\n\t\tString[] oneBit = memoryAddress[i].split(\"\");\n\n\t\tint z = -1;\n\n\t\tfor (int q = oneBit.length - 1; q >= 0; q--)\n\t\t{\n\t\t z++;\n\t\t // store each letter into the array as hex\n\t\t mainMemory[i][q] = oneBit[z];\n\t\t}\n\t }\n\n\t // splitting the instruction addresses into lines\n\t String[] instructionAddress = instructionAddresses.split(\"\\\\s+\");\n\n\t // splitting dataSizes to get length of each data\n\t String[] dataSize = dataSizes.split(\"\\\\s+\");\n\t for (int i = 0; i < instructionAddress.length; i++)\n\t {\n\t\ttry\n\t\t{\n\t\t String binaryIs = \"\";\n\t\t String binaryOffset = \"\";\n\t\t String blockNumber = \"\";\n\t\t if (Integer.parseInt(instructionAddress[i], 16) > 15)\n\t\t {\n\t\t\tbinaryIs = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));\n\t\t\tbinaryOffset = binaryIs.substring(binaryIs.length() - 4);\n\t\t\tblockNumber = binaryIs.substring(0, binaryIs.length() - 4);\n\t\t } else\n\t\t {\n\n\t\t\tblockNumber = \"0\";\n\t\t\tbinaryOffset = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));\n\t\t }\n\n\t\t // check if hit or miss for 1 way\n\t\t if (wayAssociative == 1)\n\t\t {\n\n\t\t\tif (cacheKeys.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t{\n\t\t\t // cache hit situation\n\t\t\t count_hit++;\n\t\t\t clockCycle++;\n\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t // cache miss\n\t\t\t count_miss++;\n\t\t\t clockCycle += 15;\n\n\t\t\t // replacement for direct mapping.\n\n\t\t\t int newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t int length = Integer.parseInt(dataSize[i]);\n\n\t\t\t y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t int p = -1, beta = 0;\n\t\t\t for (int alpha = 1; alpha < length; alpha++)\n\t\t\t {\n\n\t\t\t\tif ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t{\n\n\t\t\t\t newBlockNumber_Value++;\n\t\t\t\t newOffset_StartingPosition = 0;\n\t\t\t\t beta = length - alpha;\n\n\t\t\t\t if (p < beta)\n\t\t\t\t {\n\t\t\t\t\tp++;\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t }\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t}\n\t\t\t }\n\n\t\t\t y = y.reverse();\n\n\t\t\t // if y is more than one byte then put it in next cache line\n\t\t\t if (y.length() > 4)\n\t\t\t {\n\n\t\t\t\tfor (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t{\n\t\t\t\t String yy = y.substring(o, o + 4);\n\n\t\t\t\t cacheKeys.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t cacheValues.add(yy);\n\n\t\t\t\t}\n\t\t\t } else\n\t\t\t {\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\t\t\t\t cacheKeys.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t cacheValues.add(y.toString());\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t}\n\n\t\t\ty.delete(0, y.length());\n\n\t\t }\n\n\t\t else if (wayAssociative > 1)\n\t\t {\n\n\t\t\tif (wayAssociative == 2)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_1.contains(blockNumber + \",\" + binaryOffset)))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_2++;\n\t\t\t\tclockCycle_2++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_2++;\n\t\t\t\tclockCycle_2 += 15;\n\n\t\t\t\t// replacement\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (i % wayAssociative == 0)\n\t\t\t\t{\n\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tif (cacheKeys.size() <= numberOfCacheLines)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\t cacheValues_0.add(yy);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t\telse if (i % wayAssociative == 1)\n\t\t\t\t{\n\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t\t// way =4\n\t\t\tif (wayAssociative == 4)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_1.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_2.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_4++;\n\t\t\t\tclockCycle_4++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_4++;\n\t\t\t\tclockCycle_4 += 15;\n\n\t\t\t\t// replacement\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\n\t\t\t\t if (i % wayAssociative == 0)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_0.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 1\n\t\t\t\t else if (i % wayAssociative == 1)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 2\n\t\t\t\t else if (i % wayAssociative == 2)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(y.toString());\n\t\t\t\t\t } else\n\t\t\t\t\t {\n\t\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // mmod 3\n\t\t\t\t else if (i % wayAssociative == 3)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t\telse if (wayAssociative == 8)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_1.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || cacheKeys_4.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_5.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_7.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_6.contains(blockNumber + \",\" + binaryOffset)))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_8++;\n\t\t\t\tclockCycle_8++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_8++;\n\t\t\t\tclockCycle_8 += 15;\n\n\t\t\t\t// replacement\n\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\n\t\t\t\t if (i % wayAssociative == 0)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_0.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 1\n\t\t\t\t else if (i % wayAssociative == 1)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 2\n\t\t\t\t else if (i % wayAssociative == 2)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(y.toString());\n\t\t\t\t\t } else\n\t\t\t\t\t {\n\t\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // mmod 3\n\t\t\t\t else if (i % wayAssociative == 3)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 4\n\t\t\t\t else if (i % wayAssociative == 4)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_4.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_4.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_4.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_4.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 5\n\t\t\t\t else if (i % wayAssociative == 5)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_5.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_5.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_5.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_5.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 6\n\t\t\t\t else if (i % wayAssociative == 6)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_6.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_6.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_6.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_6.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 7\n\n\t\t\t\t else if (i % wayAssociative == 7)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_7.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_7.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_7.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_7.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t //\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t }\n\n\t\t // 3\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\n\t }\n\n\t // to print outputs\n\n\t if (wayAssociative == 1)\n\t {\n\t\tlong cache_access = count_hit + count_miss;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit);\n\n\t\tdouble hit_ratio = ((double) count_hit) / (count_hit + count_miss) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t else if (wayAssociative == 2)\n\t {\n\t\tlong cache_access = count_hit_2 + count_miss_2;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_2);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_2);\n\n\t\tdouble hit_ratio = ((double) count_hit_2) / (count_hit_2 + count_miss_2) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_2;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t else if (wayAssociative == 4)\n\t {\n\t\tlong cache_access = count_hit_4 + count_miss_4;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_4);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_4);\n\n\t\tdouble hit_ratio = ((double) count_hit_4) / (count_hit_4 + count_miss_4) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_4;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\n\t } else if (wayAssociative == 8)\n\t {\n\t\tlong cache_access = count_hit_8 + count_miss_8;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_8);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_8);\n\n\t\tdouble hit_ratio = ((double) count_hit_8) / (count_hit_8 + count_miss_8) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_8;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t} catch (Exception e)\n\t{\n\t e.printStackTrace();\n\t}\n\n }",
"public static void Main()\n\t{\n\t\tdouble[] p = new double[100];\n\t\tint m;\n\t\tint n;\n\t\tint i;\n\t\tint j;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tfor (i = 0;i < m;i++)\n\t\t{\n//C++ TO JAVA CONVERTER TODO TASK: The memory management function 'malloc' has no equivalent in Java:\n\t\t\tp[i] = (double)malloc(100 * (Double.SIZE / Byte.SIZE));\n\t\t}\n\t\tfor (i = 0;i < m;i++)\n\t\t{\n\t\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\t\tif (tempVar2 != null)\n\t\t\t{\n\t\t\t\tn = Integer.parseInt(tempVar2);\n\t\t\t}\n\t\t\tfor (j = 0;j < n;j++)\n\t\t\t{\n\t\t\t\tString tempVar3 = ConsoleInput.scanfRead();\n\t\t\t\tif (tempVar3 != null)\n\t\t\t\t{\n\t\t\t\t\tp[i] + j = tempVar3;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5lf\\n\",s(p[i], n));\n\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}",
"public static void main(String[] args) throws Exception {\n\n LeetCode leetCode = new LeetCode();\n long start = System.currentTimeMillis();\n System.out.println(leetCode.findKthNumber(\n 719885387,\n 209989719\n ));\n System.out.println(System.currentTimeMillis() - start);\n }",
"@Benchmark\n public void task0()\n throws IOException{\n Map<Character, Integer> letterScores = (new LetterScorer(maxThreads, validCharRegex))\n .getScoreFromCorpus(dataDir);\n\n Files.write(Paths.get(outFilePath)\n , (new KScorer(maxThreads, validCharRegex, kNeighborhood, letterScores))\n .getScoreFromCorpus(dataDir)\n .stream()\n .sorted(Comparator.comparing(Map.Entry::getKey))\n .map(e-> e.getKey() + \", \" + e.getValue())\n .collect(Collectors.joining(\"\\n\"))\n .getBytes());\n }",
"public static void main(String[] argv) {\n BigInteger around = new BigInteger(\"1000000000000\");\n BigInteger howmany = new BigInteger(\"10000\");\n\n // print prime numbers that are found\n boolean show = false;\n\n long time = 0;\n\n time = -System.nanoTime();\n SieveOfEratosthenesSegment range = new SieveOfEratosthenesSegment(around, howmany);\n time += System.nanoTime();\n\n System.out.format(\"Starting value %s%n\", range.sieveBase);\n System.out.format(\"Ending value %s%n\", range.sieveBound);\n System.out.format(\"Preparation in %.2f sec\\n\", time / 1000000000f);\n\n int delta = range.sieveBound.subtract(range.sieveBase).intValue();\n int count = 0;\n\n time = -System.nanoTime();\n for (BigInteger prime : range) {\n if (show) {\n time += System.nanoTime();\n System.out.println(prime);\n time -= System.nanoTime();\n }\n ++count;\n }\n time += System.nanoTime();\n System.out.format(\"Tested %d numbers in %.2f sec (%.2f per sec)\\n\",\n delta, time / 1000000000f, 1000000000f * delta / time);\n System.out.format(\"Found %d prime numbers\\n\",\n count);\n }",
"public static void main(String[] args) {\n\n\t\tint numberOfIntegers = 2000000;\n\n\t\tarrayListMethod(numberOfIntegers);\n\t\tlinkedListMethod(numberOfIntegers);\n\t\thastableMethod(numberOfIntegers);\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc =new Scanner(System.in);\n\t\tBigInteger n=sc.nextBigInteger();\n\t\tBigInteger k=sc.nextBigInteger();\n\t\t\n\t\ttriangle task3=new triangle(n,k);\n\t\tdouble s = System.currentTimeMillis();\n\t\tBigInteger r =task3.recurse(n, k);\n\t\tdouble e = System.currentTimeMillis();\n\t\tdouble totalTime3 = e - s;\n\t\t\n\t\tForkJoinPool pool=new ForkJoinPool(1);\n\t\ttriangle task=new triangle(n,k);\n\t\tdouble shuru = System.currentTimeMillis();\n\t\tBigInteger yo=pool.invoke(task);\n\t\tdouble khatam = System.currentTimeMillis();\n\t\tdouble yolo = khatam - shuru;\n\t\t\n\t\tSystem.out.println(yolo/totalTime3);\n\t\tSystem.out.println(yo);\n\t\t\n\t\tForkJoinPool pooll=new ForkJoinPool(2);\n\t\ttriangle taskk=new triangle(n,k);\n\t\tdouble shuruu = System.currentTimeMillis();\n\t\tBigInteger yoo=pooll.invoke(taskk);\n\t\tdouble khatamm = System.currentTimeMillis();\n\t\tdouble yoloo = khatamm - shuruu;\n\t\t\n\t\tSystem.out.println(yoloo/totalTime3);\n\t\tSystem.out.println(yoo);\n\t\t\n\t\tForkJoinPool poolll=new ForkJoinPool(3);\n\t\ttriangle taskkk=new triangle(n,k);\n\t\tdouble shuruuu = System.currentTimeMillis();\n\t\tBigInteger yooo=poolll.invoke(taskkk);\n\t\tdouble khatammm = System.currentTimeMillis();\n\t\tdouble yolooo = khatammm - shuruuu;\n\t\t\n\t\tSystem.out.println(yolooo/totalTime3);\n\t\tSystem.out.println(yooo);\n\t\t\n\t\tSystem.out.println(\"Ratio of time for 2nd by 1st Thread pool-\");\n\t\tSystem.out.println(yoloo/yolo);\n\t\t\n\t\tSystem.out.println(\"Ratio of time for 3rd by 1st Thread pool-\");\n\t\tSystem.out.println(yolooo/yolo);\n\t}",
"public static void main(String[] args)\n\t{\n\t\tArrayList set = new ArrayList(); \n\t\tdouble productSum = 0;\t\n\t\t\n\t\tfor (int i = 0 ; i < 355000 ; i++)\n\t\t{\n\t\t\tproductSum = 0;\n\t\t\t//Can only be a 5 digit number or a 4 digit number\t\t\t\t\t\t\n\t\t\tint value = i;\n\t\t\twhile (value != 0)\n\t\t\t{\n\t\t\t\tproductSum += Math.pow((value % 10), 5);\n\t\t\t\tvalue /= 10;\n\t\t\t}\n\t\t\t\n\t\t\tif (i == productSum)\n\t\t\t{\n\t\t\t\tset.add(i);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0 ; i < set.size(); i++)\n\t\t{\n\t\t\tsum += (int)set.get(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"public void testPerformance() {\n \t}",
"@Test\n\tvoid testCost() {\n\t\tint nbCores = 16;\n\t\tlong duration = 2000;\n\t\tDate requestDate = new Date(\"01/01/2000\");\n\t\tJob j1 = new Job(nbCores,requestDate,duration,mediumQ);//16 cores less than 1h\n\t\tJob j2 = new Job(nbCores*2,requestDate,duration,mediumQ);//32 cores less than 1h\n\t\tJob j3 = new Job(nbCores*2+1,requestDate,duration,mediumQ);//33 cores less than 1h\n\t\tJob j4 = new Job(nbCores,requestDate,duration*2,mediumQ);//16 cores more than 1h\n\t\tJob j5 = new Job(nbCores*2+1,requestDate,duration*2,mediumQ);//33 cores more than 1h\n\t\tassertEquals(j1.getCost(),0.05f);\n\t\tassertEquals(j2.getCost(),0.05f);\n\t\tassertEquals(j3.getCost(),0.1f);\n\t\tassertEquals(j4.getCost(),0.1f);\n\t\tassertEquals(j5.getCost(),0.2f);\n\t}",
"public static void main(String[] args) throws NoSuchAlgorithmException {\n\t\t\n\t\t\n\t\tBloomFilter bf= new BloomFilter(3000000, 0.0001);\n\t\t\n\t\tSystem.out.println(\"n=\"+bf.n);\n\t\tSystem.out.println(\"p= \"+bf.falseprobability);\n\t\tSystem.out.println(\" m=\"+bf.m);\n\t\tSystem.out.println(\" k=\"+ bf.k);\n\t\t\n\t\t\n\t\n\t\t\n\t\tfor(int i=0;i<3000000;i++){\n\t\t\t//if(i%2==0)\n\t\t\t\tbf.add(\"INCREASES LENGTH OF String TO TEST MAX LIMIT\"+i);\n\t\t}\n\t\t\n\t\tint counter=0;\n\t\tfinal long starttime=System.nanoTime();\n\t\tfor(int j=0;j<3000000;j++)\n\t\t\tif(!bf.contains(\"INCREASES LENGTH OF String TO TEST MAX LIMIT\"+j))\n\t\t\t\tcounter++;\n\t\t\n\t\tfinal long duration=System.nanoTime()-starttime;\n\t\t\n\t\tSystem.out.println(\"duration of checking 3000000 elementis=\"+duration/3000000+\"counter value=\"+counter);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}",
"public static void main(String[] args) {\n\n ArrayClone();\n //ArrayToString();\n //ArrayReverse();\n\n //ForToForeach();\n //SaveOurRAM();\n\n //Homework_Example_1();\n //Homework_Example_2();\n }",
"private void method_4325(int var1, int var2) {\r\n byte var4 = 64;\r\n String[] var3 = class_752.method_4253();\r\n class_482.field_2258 = true;\r\n byte var5 = 4;\r\n int var6 = var4 - 1;\r\n\r\n int var10000;\r\n label95:\r\n while(true) {\r\n var10000 = var6;\r\n\r\n label92:\r\n while(var10000 <= var4 + 32) {\r\n var10000 = var1 - var5;\r\n if(var3 == null) {\r\n break label95;\r\n }\r\n\r\n int var7 = var10000;\r\n\r\n label89:\r\n do {\r\n var10000 = var7;\r\n\r\n label86:\r\n while(true) {\r\n if(var10000 > var1 + var5) {\r\n break label89;\r\n }\r\n\r\n var10000 = var2 - var5;\r\n if(var3 == null) {\r\n continue label92;\r\n }\r\n\r\n int var8 = var10000;\r\n\r\n while(true) {\r\n if(var8 > var2 + var5) {\r\n break label86;\r\n }\r\n\r\n double var9 = (double)(var7 - var1);\r\n double var11 = (double)(var8 - var2);\r\n double var13 = var9 * var9 + var11 * var11;\r\n if(var3 != null) {\r\n double var15;\r\n var10000 = (var15 = var13 - ((double)var5 - 0.5D) * ((double)var5 - 0.5D)) == 0.0D?0:(var15 < 0.0D?-1:1);\r\n if(var3 == null) {\r\n break;\r\n }\r\n\r\n if(var10000 <= 0) {\r\n label105: {\r\n label106: {\r\n var10000 = var6;\r\n byte var10001 = var4;\r\n if(var3 != null) {\r\n if(var6 < var4) {\r\n double var16;\r\n var10000 = (var16 = var13 - ((double)(var5 - 1) - 0.5D) * ((double)(var5 - 1) - 0.5D)) == 0.0D?0:(var16 < 0.0D?-1:1);\r\n if(var3 != null) {\r\n if(var10000 > 0) {\r\n break label105;\r\n }\r\n\r\n this.field_2990.method_2058(var7, var6, var8, class_1192.field_6032);\r\n }\r\n\r\n if(var3 != null) {\r\n break label105;\r\n }\r\n }\r\n\r\n var10000 = var6;\r\n if(var3 == null) {\r\n break label106;\r\n }\r\n\r\n var10001 = var4;\r\n }\r\n\r\n if(var10000 > var10001) {\r\n this.field_2990.method_2058(var7, var6, var8, class_1192.field_6025);\r\n if(var3 != null) {\r\n break label105;\r\n }\r\n }\r\n\r\n double var17;\r\n var10000 = (var17 = var13 - ((double)(var5 - 1) - 0.5D) * ((double)(var5 - 1) - 0.5D)) == 0.0D?0:(var17 < 0.0D?-1:1);\r\n }\r\n\r\n if(var3 != null) {\r\n label59: {\r\n if(var10000 > 0) {\r\n this.field_2990.method_2058(var7, var6, var8, class_1192.field_6032);\r\n if(var3 != null) {\r\n break label59;\r\n }\r\n }\r\n\r\n this.field_2990.method_2058(var7, var6, var8, class_1192.field_6143);\r\n }\r\n }\r\n }\r\n }\r\n\r\n ++var8;\r\n }\r\n\r\n if(var3 == null) {\r\n break label86;\r\n }\r\n }\r\n }\r\n\r\n ++var7;\r\n } while(var3 != null);\r\n\r\n ++var6;\r\n if(var3 != null) {\r\n continue label95;\r\n }\r\n break;\r\n }\r\n\r\n this.field_2990.method_2058(var1, var4 + 0, var2, class_1192.field_6032);\r\n this.field_2990.method_2058(var1, var4 + 1, var2, class_1192.field_6032);\r\n this.field_2990.method_2058(var1, var4 + 2, var2, class_1192.field_6032);\r\n this.field_2990.method_2058(var1 - 1, var4 + 2, var2, class_1192.field_6077);\r\n this.field_2990.method_2058(var1 + 1, var4 + 2, var2, class_1192.field_6077);\r\n this.field_2990.method_2058(var1, var4 + 2, var2 - 1, class_1192.field_6077);\r\n this.field_2990.method_2058(var1, var4 + 2, var2 + 1, class_1192.field_6077);\r\n this.field_2990.method_2058(var1, var4 + 3, var2, class_1192.field_6032);\r\n this.field_2990.method_2058(var1, var4 + 4, var2, class_1192.field_6146);\r\n var10000 = 0;\r\n break;\r\n }\r\n\r\n class_482.field_2258 = (boolean)var10000;\r\n }",
"public static void main(String[] args) {\n \n int a;\n int b;\n int c;\n int n = 1000;\n \n // Brute force\n \n for (a = 2; a < n; a++) {\n for (b = 2; b < n; b++) {\n for (c = 2; c < n; c++) {\n if (a*a + b*b == c*c && a + b + c == 1000) {\n // 200 375 425\n System.out.println(a*b*c); // 31875000\n System.exit(0);\n }\n }\n }\n }\n }",
"public static void main(String[] args) {\n\t\tint i = 1;\n\t\tint sum = 0;\n\t\tlong s = System.currentTimeMillis();\n\t\tfor(;i < 1000000;i++){\n\t\t\tif(isPal(i) && isPalBin(i)){\n\t\t\t\tsum+=i;\n\t\t\t\tSystem.out.println(i +\" in binary: \"+Integer.toBinaryString(i));\n\t\t\t}\n\t\t}\n\t\tlong e = System.currentTimeMillis();\n\t\tSystem.out.println(\"\\nSum of all Double base Palindrome is \"+sum);\n\t\tSystem.out.println(\"time taken \"+(e-s)+\" ms\");\n\t\t\n\n\t}",
"public static void main(String[] args) throws FileNotFoundException, IOException{\n\tScanner sc=new Scanner(new BufferedReader(new InputStreamReader (new FileInputStream(\"CodeJam2014/r1c_a/A-large.in\"))));\r\n\t\t//Scanner sc=new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t\tPrintWriter ou=new PrintWriter(new FileWriter(\"CodeJam2014/r1c_a/testal.out\"));\r\n\t\tint res,rep,i,j;\r\n\t\tlong p,q,tp,tq,cp,cq;\r\n\t\tboolean vis;\r\n\t\tString s;\r\n\t\tString[] s2=new String[3];\r\n\t\tString out=\"\";\r\n\t\t\r\n\t\tres=sc.nextInt();\r\n\t\ts=sc.nextLine();\r\n\t\tfor(rep=1;rep<=res;rep++){\r\n\t\t\ts=sc.nextLine();\r\n\t\t\ts2=s.split(\"/\");\r\n\t\t\tp=0; q=0;\r\n\t\t\tfor(i=0;i<s2[0].length();i++){\r\n\t\t\t\tp*=10;\r\n\t\t\t\tp+=(int)s2[0].charAt(i)-(int)'0';\r\n\t\t\t}\r\n\t\t\tfor(i=0;i<s2[1].length();i++){\r\n\t\t\t\tq*=10;\r\n\t\t\t\tq+=(int)s2[1].charAt(i)-(int)'0';\r\n\t\t\t}\r\n\t\t\t//p=Integer.parseInt(s2[0]); q=Integer.parseInt(s2[1]);\r\n\t\t\t//p=sc.nextInt(); q=sc.nextInt();\r\n\t\t\ttp=p/gcd(p,q); tq=q/gcd(p,q);\r\n\t\t\tSystem.out.println(tp);\r\n\t\t\tcp=0; cq=0;\r\n\t\t\tvis=true;\r\n\t\t\twhile(tp!=1){\r\n\t\t\t\ttp=tp>>1;\r\n\t\t\t\tcp++;\r\n\t\t\t}\r\n\t\t\twhile(tq!=1){\r\n\t\t\t\tif (tq%2==1) {vis=false; break;}\r\n\t\t\t\ttq/=2;\r\n\t\t\t\tcq++;\r\n\t\t\t}\r\n\t\t\tou.print(\"Case #\"+rep+\": \");\r\n\t\t\tif (!vis) ou.print(\"impossible\");\r\n\t\t\telse ou.print(cq-cp);\r\n\t\t\tif (res!=rep) ou.println();\r\n\t\t\tSystem.out.println(cq-cp);\r\n\t\t}\r\n\t\tou.close();\r\n\t}",
"static void method_9231() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¯W!BÔK)Ý/HG\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8734 = (new String((char[])var4)).intern();\r\n String var2 = field_8734;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 179;\r\n break;\r\n case 1:\r\n var10009 = 68;\r\n break;\r\n case 2:\r\n var10009 = 33;\r\n break;\r\n case 3:\r\n var10009 = 45;\r\n break;\r\n case 4:\r\n var10009 = 187;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 70;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }",
"static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"public static void main(String[] args) {\n setStandardInput();\n\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt(); // Denoting the number of balls.\n in.skip(\"\\n\");\n\n int maxN = 100005; // The maximum number of balls.\n int maxV = 10005; // The maximum value written on a ball.\n\n int[] nums = new int[maxN];\n ArrayList<Integer> sortedBalls = new ArrayList<>();\n\n for (int i = 1; i <= N; i++) {\n nums[i] = in.nextInt();\n sortedBalls.add(nums[i]);\n }\n\n Arrays.sort(sortedBalls.toArray());\n\n int[] balls = IntStream.of(nums).distinct().toArray(); // V\n\n HashMap<Integer, Integer> H = new HashMap<>();\n for (int i = 0; i < balls.length; i++) {\n H.put(balls[i], i);\n }\n\n int[] counter = new int[maxN];\n for (int i = 1; i <= N; i++) {\n counter[H.get(nums[i])]++;\n }\n\n long[] powerOfTwo = new long[maxN]; // Maybe I can change to LONG as solution\n powerOfTwo[0] = 1L;\n for (int i = 1; i <= N; i++) {\n powerOfTwo[i] = (powerOfTwo[i - 1] << 1L) % mod;\n }\n\n // Let ways[v] denotes the number of ways modulus 10^9+7 that balls can\n // be drawn from the set, so that their GCD equals the number v.\n int[] ways = new int[maxV];\n\n for (int i = 0; i < balls.length; i++) {\n// balls\n }\n\n for (int i = 0; i < balls.length; i++) {\n\n for (int v = 1; v <= 10000; v++) {\n\n int gcd = gcd(balls[i], v);\n ways[gcd] = add(ways[gcd], (int)((powerOfTwo[counter[i]] - 1) * ways[v]));\n }\n\n ways[balls[i]] = add(ways[balls[i]], (int)powerOfTwo[counter[i]] - 1);\n }\n\n int Q = in.nextInt(); // Representing the number of GCD queries that will have to be performed.\n in.nextLine();\n\n// in.skip(\"\\n\");\n\n for (int queryNum = 1; queryNum <= Q; queryNum++) {\n\n int X = in.nextInt(); // Denoting the GCD.\n\n System.out.println(ways[X]);\n }\n }",
"public static void main(String[] args) {\n long startTime = System.nanoTime();\n Board b = new Board();\n b.board = InitialPositions.kiwiPeteBoard; // perft test\n\n int p2 = 0;\n int p3 = 0;\n int p4 = 0;\n int p5 = 0;\n\n List<Move> p1Moves = b.validMoves();\n int p1 = p1Moves.size();\n for (Move m : p1Moves){\n b.makeMove(m);\n List<Move> p2Moves = b.validMoves();\n p2 += p2Moves.size();\n for (Move n : p2Moves){\n b.makeMove(n);\n List<Move> p3Moves = b.validMoves();\n for (Move m3 : p3Moves){\n b.makeMove(m3);\n List<Move> moves4 = b.validMoves();\n p4 += moves4.size();\n for (Move m4 : moves4){\n b.makeMove(m4);\n p5 += b.validMoves().size();\n b.undoMove(m4);\n }\n b.undoMove(m3);\n }\n p3 += p3Moves.size();\n b.undoMove(n);\n }\n b.undoMove(m);\n }\n System.out.println();\n System.out.println(p1);\n System.out.println(p2);\n System.out.println(p3);\n System.out.println(p4);\n System.out.println(p5); // 193690690\n System.out.println(\"Time taken: \"+(System.nanoTime()-startTime)); // with int castles : 35003485400\n }",
"public static void main(String[] args) {\n /* *************** */\n /* * QUESTION 7 * */\n /* *************** */\n /* *************** */\n\n for(double p=0; p<1; p+=0.1){\n for(double q=0; q<1; q+=0.1){\n int res_1 = 0;\n int res_2 = 0;\n for(int i=0; i<100; i++){\n Graph graph_1 = new Graph();\n graph_1.generate_full_symmetric(p, q, 100);\n //graph_2.setVertices(new ArrayList<>(graph_1.getVertices()));\n Graph graph_2 = (Graph) deepCopy(graph_1);\n res_1+=graph_1.resolve_heuristic_v1().size();\n res_2+=graph_2.resolve_heuristic_v2();\n }\n res_1/=100;\n System.out.format(\"V1 - f( %.1f ; %.1f) = %s \\n\", p, q, res_1);\n res_2/=100;\n System.out.format(\"V2 - f( %.1f ; %.1f) = %s \\n\", p, q, res_2);\n }\n }\n\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"\\tSelection\\tBubble\\tInsertion\\tCollections\\tQuick\\tinPlaceQuick\\tMerge\");\r\n\t\tfor (int n = 1000; n <= 7000; n += 500) {\r\n\t\t\tAPArrayList<Double> lists = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listb = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listi = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listc = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listq = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listipq = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listm = new APArrayList<Double>();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\tDouble val = Math.random();\r\n\t\t\t\tlists.add(val);\r\n\t\t\t\tlistb.add(val);\r\n\t\t\t\tlisti.add(val);\r\n\t\t\t\tlistc.add(val);\r\n\t\t\t\tlistq.add(val);\r\n\t\t\t\tlistipq.add(val);\r\n\t\t\t\tlistm.add(val);\r\n\t\t\t}\r\n\r\n\t\t\tlong selStartTime = System.nanoTime();\r\n\t\t\tlists.selectionSort();\r\n\t\t\tlong selEndTime = System.nanoTime();\r\n\t\t\tlong selSortTime = selEndTime - selStartTime;\r\n\t\t\tlists.clear();\r\n\t\t\t\r\n\t\t\tlong bubStartTime = System.nanoTime();\r\n\t\t\tlistb.bubbleSort();\r\n\t\t\tlong bubEndTime = System.nanoTime();\r\n\t\t\tlong bubSortTime = bubEndTime - bubStartTime;\r\n\t\t\tlistb.clear();\r\n\t\t\t\r\n\t\t\tlong insStartTime = System.nanoTime();\r\n\t\t\tlisti.insertionSort();\r\n\t\t\tlong insEndTime = System.nanoTime();\r\n\t\t\tlong insSortTime = insEndTime - insStartTime;\r\n\t\t\tlisti.clear();\r\n\t\t\t\r\n\t\t\tlong CollStartTime = System.nanoTime();\r\n\t\t\tlistc.sort();\r\n\t\t\tlong CollEndTime = System.nanoTime();\r\n\t\t\tlong CollSortTime = CollEndTime - CollStartTime;\r\n\t\t\tlistc.clear();\r\n\t\t\t\r\n\t\t\tlong quickStartTime = System.nanoTime();\r\n\t\t\tlistq.simpleQuickSort();\r\n\t\t\tlong quickEndTime = System.nanoTime();\r\n\t\t\tlong quickSortTime = quickEndTime - quickStartTime;\r\n\t\t\tlistq.clear();\r\n\t\t\t\r\n\t\t\tlong inPlaceQuickStartTime = System.nanoTime();\r\n\t\t\tlistipq.inPlaceQuickSort();\r\n\t\t\tlong inPlaceQuickEndTime = System.nanoTime();\r\n\t\t\tlong inPlaceQuickSortTime = inPlaceQuickEndTime - inPlaceQuickStartTime;\r\n\t\t\tlistipq.clear();\r\n\t\t\t\r\n\t\t\tlong mergeStartTime = System.nanoTime();\r\n\t\t\tlistm.mergeSort();\r\n\t\t\tlong mergeEndTime = System.nanoTime();\r\n\t\t\tlong mergeSortTime = mergeEndTime - mergeStartTime;\r\n\t\t\tlistq.clear();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(n + \"\\t\" + selSortTime + \"\\t\" + bubSortTime + \"\\t\" + insSortTime + \"\\t\" + CollSortTime + \"\\t\" + quickSortTime + \"\\t\" + inPlaceQuickSortTime + \"\\t\" + mergeSortTime);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws UnsupportedEncodingException {\n var res2 = old.MD4.MD4.hash(\"The quick brown fox jumps over the lazy dogshdkasjhflksdjhflkasjhdflkjshdfkljasdhlfkjajhjhhldfkjashldf\".getBytes());\n// var res1 = cyph.digest(\"\".getBytes());\n\n System.out.println(encodeHexString(res2));\n// System.out.println(new BitUtils(res1).getNextLong(25) + \"\\n\");\n\n System.exit(0);\n\n var secPreimg8 = secondPreimage(\"test\", 8, 1000);\n System.out.println(\"Second preimage avg over 8 bits: \" + secPreimg8);\n dumpData(\"preimg.txt\", true, \"8 \" + secPreimg8 + \"\\n\");\n\n var secPreimg12 = secondPreimage(\"test\", 12, 1000);\n System.out.println(\"Second preimage avg over 12 bits: \" + secPreimg12);\n dumpData(\"preimg.txt\", false, \"12 \" + secPreimg12 + \"\\n\");\n\n var secPreimg16 = secondPreimage(\"test\", 16, 500);\n System.out.println(\"Second preimage avg over 16 bits: \" + secPreimg16);\n dumpData(\"preimg.txt\", false, \"16 \" + secPreimg16 + \"\\n\");\n\n var secPreimg20 = secondPreimage(\"test\", 20, 50);\n System.out.println(\"Second preimage avg over 20 bits: \" + secPreimg20);\n dumpData(\"preimg.txt\", false, \"20 \" + secPreimg20 + \"\\n\");\n\n var secPreimg24 = secondPreimage(\"test\", 24, 10);\n System.out.println(\"Second preimage avg over 24 bits: \" + secPreimg24);\n dumpData(\"preimg.txt\", false, \"24 \" + secPreimg24 + \"\\n\");\n\n var coll8 = collisions(8, 1000);\n System.out.println(\"\\nCollisions for 8 bits: \" + coll8);\n dumpData(\"coll.txt\", true, \"8 \" + coll8 + \"\\n\");\n\n var coll12 = collisions(12, 1000);\n System.out.println(\"Collisions for 12 bits: \" + coll12);\n dumpData(\"coll.txt\", false, \"12 \" + coll12 + \"\\n\");\n\n var coll16 = collisions(16, 1000);\n System.out.println(\"Collisions for 16 bits: \" + coll16);\n dumpData(\"coll.txt\", false, \"16 \" + coll16 + \"\\n\");\n\n var coll20 = collisions(20, 1000);\n System.out.println(\"Collisions for 20 bits: \" + coll20);\n dumpData(\"coll.txt\", false, \"20 \" + coll20 + \"\\n\");\n\n var coll24 = collisions(24, 1000);\n System.out.println(\"Collisions for 24 bits: \" + coll24);\n dumpData(\"coll.txt\", false, \"24 \" + coll24 + \"\\n\");\n }",
"public static void main(String[] args) {\n// printTO1Million(2);\n printTO1Million(3);\n }",
"public static void main(String[] args) {\n\n Set<Long> ids = LongStream.range(0, 1_000_000).boxed().collect(Collectors.toSet());\n // HashSet\n // ArrayList\n // Long[]\n // long[]\n // int[]\n // LinkedList\n System.out.println(\"Allocated!\");\n\n System.out.println(PerformanceUtil.getUsedHeap());\n }",
"public static void main(String[] args) {\n // solution for the problem\n int solution;\n // end time of the program\n long endTime;\n // start time of the program\n long startTime;\n\n startTime = System.nanoTime();\n solution = findTriangleNumber(TARGET_FACTORS);\n endTime = System.nanoTime();\n\n // print answer and time taken\n System.out.println(ANSWER + solution);\n System.out.printf(TIME_TAKEN, (double) (endTime - startTime) / TIME_CONVERSION);\n }",
"public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public static void main(String[] args) {\n long maxPrime = (long)Math.pow(2,20) - 1;\n\n // PrimeCross pp = new PrimeCross(maxPrime); //With cross 3, 5, 7\n Prime pp = new PrimeParallel(maxPrime);\n\n double time = System.nanoTime();\n pp.findPrimes();\n time = (System.nanoTime() - time) / 1000000; //milliseconds\n\n System.out.println(\"Time used to find primes: \" + time + \" ms.\");\n\n\n pp.print(); // Prints some of the last primes\n // pp.write(\"eratosthenes.txt\");\n\n System.out.println(\"\\n\\n---------------------------------------\");\n System.out.println(\"Gaps:\\n\");\n\n findGapsWithEratosthenes(pp);\n // findPrimesDivision(pp);\n // findGapDivision(pp);\n }",
"public static void main(String[] args) {\n\t\tm = 250;\n\t\tdouble coupon = 0.0;\n\t\tdouble birthday = 0.0;\n\t\tfor (int i = 0; i < iteration; i++) {\n\t\t\tarray = new int[m];\n\t\t\tArrays.fill(array, -1);\n\t\t\tresult = new int[2];\n\t\t\thash();\n\t\t\tcoupon = coupon + result[0];\n\t\t\tbirthday = birthday + result[1];\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"Coupon Collector prog :\" + coupon / iteration);\n\t\tSystem.out.println(\"Coupon Collector theory :\" + Math.sqrt(Math.PI * m / 2));\n\t\tSystem.out.print(\"\\n\");\n\t\tSystem.out.println(\"Birthday prog :\" + birthday / iteration);\n\t\tSystem.out.println(\"Birthday theory :\" + m * Math.log(m));\n\t\t\n\t}",
"private static int benchmarkedMethod() {\n return 3;\n }",
"@Override\r\n public long problem0(int size) {\r\n System.out.println(\"This is just an example, but please follow this template.\");\r\n String s = \"\";\r\n long start = System.currentTimeMillis();\r\n\r\n for (int i=0; i<size; i++) {\r\n s = s + i;\r\n }\r\n \r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }",
"public static void main(String[] args) {\n\t\tlong startTime = System.nanoTime();\n\t\tint x = 563847412;\n\t\t// int x = 1563847412;\n\t\tSystem.out.println(getResult(x));\n\t\tlong endTime = System.nanoTime();\n\t\tSystem.out.println(\"Took \" + (endTime - startTime) + \" ns\");\n\t}",
"public static void main(String[] args) {\n\t\tAnalyse ana = new Analyse(20, 5);\r\n//\t\tArrayList<Map.Entry<Integer, Double>> current = ana.getNeighbor(\"\")\r\n//\t\tfor(int i = 0; i < ana.average.length; i++){\r\n//\t\t\tSystem.out.println(ana.average[i]);\r\n//\t\t}\r\n//\t\tfor (int i = 0; i < 5; i++) {\r\n//\t\t\tSystem.out.println(ana.heap.get(i).getValue());\r\n//\t\t}\r\n\t\tSystem.out.println(ana.similarity.size());\r\n//\t\tArrayList<Map.Entry<Integer, Double>> record = ana.getNeighbor(\"0155061224\");\r\n//\t\tSystem.out.println(ana.heap.size());\r\n//\t\tSystem.out.println(record.size());\r\n//\t\tfor(int i = 0; i < record.size(); i++){\r\n//\t\t\tSystem.out.println(record.get(i).getKey());\r\n//\t\t\tSystem.out.println(record.get(i).getValue());\r\n////\t\t\tSystem.out.println(ana.matrix[record.get(i).getKey()][ana.read.getItems().indexOf(3149)]);\r\n//\t\t}\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"score\" + ana.predictionBaseline(\"100\"));\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(end - start);\r\n//\t\tSystem.out.println(ana.predictionBaseline(\"0155061224\"));\r\n\t}",
"public static void main(String[] args) {\n\t\tboolean[] primes = new boolean[1000000];\r\n\t\tArrayList<Integer> consecutivePrimeSums = new ArrayList<>();\r\n\t\tfor (int i = 0; i < primes.length; i++) {\r\n\t\t\tprimes[i] = true;\r\n\t\t}\r\n\t\tprimes[0] = false;//1 is not prime number\r\n\t\tfor (int p = 2; p*p <= 1000000; p++) {\r\n\t\t\tif (primes[p-1] == true) {\r\n\t\t\t\tfor (int q = p*p; q <= 1000000; q += p) {\r\n\t\t\t\t\tprimes[q-1] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Store the consecutive prime sums as we iterate through the boolean array\r\n\t\tconsecutivePrimeSums.add(0);\r\n\t\tint currentIndex = 1;\r\n\t\tfor (int j = 0; j < primes.length; j++) {\r\n\t\t\tif (primes[j] == true) {\r\n\t\t\t\tconsecutivePrimeSums.add(consecutivePrimeSums.get(currentIndex-1) + (j+1));\r\n\t\t\t\tcurrentIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Now we use 2 nested for loops to loop through all possible consecutive prime sums\r\n\t\tint maxLength = 0;\r\n\t\tint ans = 0;\r\n\t\tfor (int k = consecutivePrimeSums.size()-1; k >= 2; k--) {\r\n\t\t\tfor (int m = k-2; m >= 0; m--) {\r\n\t\t\t\tint currentSum = consecutivePrimeSums.get(k) - consecutivePrimeSums.get(m);\r\n\t\t\t\tif (currentSum >= 1000000)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif (primes[currentSum-1] == true && (k-m) > maxLength) {\r\n\t\t\t\t\tans = currentSum;\r\n\t\t\t\t\tmaxLength = k-m;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(ans);\r\n\t\t/*long endTime = System.nanoTime();\r\n\t\tlong timeElapsed = endTime - startTime;\r\n\t\tSystem.out.println(timeElapsed/1000000 + \" ms\");*/\r\n\t}",
"public static void main(String[] args) {\n\t\n\t\tArrayList DP_result=DP_min_operation(98734);\n\t\tArrayList result_arry=step_to_primitive_cal(98734,DP_result);\n\t\tSystem.out.println(result_arry);\n\t\tSystem.out.println(result_arry.size());\n\n\t}",
"public static void main(String[] args) {\n countDuplicateCharacters(\"My name is Fernando\");\n\n //2. Reverse an Arraylist.\n reverseArrayList();\n\n //3. Check if a particular key exists in HashMap.\n //4. Convert keys of a map to a list.\n checkKeyAndCreateList();\n\n //5. Copy all elements of a HashSet to an Object array.\n hashToObject();\n\n //6. Get highest and lowest value stored in TreeSet\n maxAndMinValueTreeSet();\n\n //7. Sort ArrayList of Strings alphabetically.\n sortArrayList();\n\n //8. Get Set view of keys from HashTable.\n getViewsHashTable();\n\n }",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n BigInteger answer = BigInteger.valueOf(0);\n String stringInt;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n\n answer = MathFunctions.numberFactorial(100);\n\n stringInt = answer.toString();\n\n\n\n list = MathFunctions.addStringToArray(stringInt);\n\n for (int i = 0; i < list.size(); i++)\n sum += list.get(i);\n\n this.answer = sum;\n }",
"public static void main(String[] args) {\n\tlong start=System.currentTimeMillis();\n\tUtil.println(\"Result = \" + new _005_smallest_multiple().run());\n\tlong end=System.currentTimeMillis();\n\tUtil.println(\"Total time: \" + (end - start) * 0.001 + \" s\");\n}",
"public static void main(String[] args) {\n for (int N = 100; N <= 100000; N *= 10) {\n int[] nums = new int[N];\n Random random = new Random();\n for (int i = 0; i < N; i++) {\n nums[i] = random.nextInt(N * 10);\n }\n Long start = 0L, end = 0L;\n int[] quickSortArray = Arrays.copyOf(nums, nums.length);\n int[] InsertSortArray = Arrays.copyOf(nums, nums.length);\n int[] shellSortArray = Arrays.copyOf(nums, nums.length);\n int[] bubbleSortArray = Arrays.copyOf(nums, nums.length);\n int[] selectionSortArray = Arrays.copyOf(nums, nums.length);\n int[] mergeSortArray = Arrays.copyOf(nums, nums.length);\n System.out.println(\"数据量为:\" + N);\n start = System.currentTimeMillis();\n QuickSort.quickSort(quickSortArray, 0, N - 1);\n end = System.currentTimeMillis();\n System.out.println(\"快速排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n InsertSort.insertSort(InsertSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"插入排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n ShellSort.shellSort(shellSortArray, 8);\n end = System.currentTimeMillis();\n System.out.println(\"希尔排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n BubbleSort.bubbleSort(bubbleSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"冒泡排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n SelectionSort.selectionSort(selectionSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"选择排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n MergeSort.mergeSort(mergeSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"归并排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n }\n }",
"public static void main(String[] args) {\n int size;\n int range;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter a number N and we will print all the primes from 0 - N: \");\n range = scan.nextInt();\n long startTime = System.currentTimeMillis();\n primeRangeUsingSieveOfEratosthenes(range);\n long endTime = System.currentTimeMillis();\n long timeElapsed = endTime - startTime;\n System.out.println(\"\\nTime elapsed in ms: \"+timeElapsed );\n }",
"public static void main(String[] args) {\n Maxheap<Integer> maxheap = new Maxheap<>();\n double time=0;\n int opCount = 10000000;\n time = testHeap(maxheap,opCount,true);\n System.out.println(\"Test heapify completed: \"+time+ \"s\");\n time = testHeap(maxheap,opCount,false);\n System.out.println(\"Test completed: \"+time+ \"s\");\n\n\n// time = debugHeap(maxheap,5,true);\n// System.out.println(\"Test completed: \"+time+ \"s\");\n }",
"static void method_6617() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"3\u0012qêXI}@k\u0017ê\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_6523 = (new String((char[])var4)).intern();\r\n String var2 = field_6523;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 162;\r\n break;\r\n case 1:\r\n var10009 = 140;\r\n break;\r\n case 2:\r\n var10009 = 252;\r\n break;\r\n case 3:\r\n var10009 = 8;\r\n break;\r\n case 4:\r\n var10009 = 186;\r\n break;\r\n case 5:\r\n var10009 = 171;\r\n break;\r\n default:\r\n var10009 = 159;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"public static void main(String[] args) { int n = 100000000;\n// Integer[] array = ArrayGenerator.randomGenerator(n, n);\n// Integer[] arr = Arrays.copyOf(array, array.length);\n// PerformanceSort.test(\"QuickSort\", array);\n// PerformanceSort.test(\"MergeSort\", arr);\n// Integer[] array1 = ArrayGenerator.orderGenerator(n);\n// Integer[] arr1 = Arrays.copyOf(array1, array1.length);\n// PerformanceSort.test(\"QuickSort\", array1);\n// PerformanceSort.test(\"MergeSort\", arr1);\n//\n int n = 5000000;\n Integer[] array = ArrayGenerator.randomGenerator(n, 3);\n Integer[] arr = Arrays.copyOf(array, array.length);\n\n PerformanceSort.test(\"QuickSort3\", array);\n PerformanceSort.test(\"QuickSort2\", arr);\n// Integer[] array = new Integer[]{1, 8, 7, 6, 4};\n// PerformanceSort.test(\"QuickSort2\", array);\n\n }",
"private void m15513b(long j) {\n if (mo9140c() != null) {\n this.f13396d.f11688z = System.currentTimeMillis();\n int intValue = ((Integer) this.f13396d.get(\"data_pk_anchor_score\")).intValue();\n int intValue2 = ((Integer) this.f13396d.get(\"data_pk_guest_score\")).intValue();\n if (intValue > intValue2) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_result\", PkResult.LEFT_WON);\n } else if (intValue < intValue2) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_result\", PkResult.RIGHT_WON);\n } else {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_result\", PkResult.EVEN);\n }\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_state\", PkState.PENAL);\n if (j <= 0) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_state\", PkState.FINISHED);\n }\n int i = (int) (j / 1000);\n int i2 = (int) (j % 1000);\n if (this.f13399i != null) {\n this.f13399i.dispose();\n this.f13399i = null;\n }\n this.f13399i = C9057b.m27050a(0, 1, TimeUnit.SECONDS).mo19305c((long) (i + 1)).mo19320e((long) i2, TimeUnit.MILLISECONDS).mo19317d((C7327h<? super T, ? extends R>) new C4703fw<Object,Object>(i)).mo19294a(C47549a.m148327a()).mo19280a((C7326g<? super T>) new C4704fx<Object>(this), (C7326g<? super Throwable>) new C4705fy<Object>(this));\n }\n }",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(\"superbull.in\"));\n PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"superbull.out\")));\n //Only in a tree is the winner condition(as stated in problem) satisfied\n int N = Integer.parseInt(br.readLine());\n \n long ret = 0;\n \n int[] nums = new int[N];\n for(int i = 0; i<N; i++) nums[i] = Integer.parseInt(br.readLine());\n int[] prims = new int[N]; //for dense graphs: N edges each. Loop thru edges anyways, so selection sort remove log factor\n Arrays.fill(prims, Integer.MIN_VALUE);\n prims[0] = -1;\n int curr = 0;\n \n for(int i = 0; i<N-1; i++){\n int max = Integer.MIN_VALUE;\n int next = -1;\n for(int j = 0; j<N; j++){\n if(prims[j] == -1) continue;\n \n int xor = nums[curr]^nums[j];\n prims[j] = Math.max(prims[j], xor);\n \n if(prims[j] > max){\n next = j;\n max = prims[j];\n }\n }\n ret += max;\n prims[next] = -1;\n curr = next;\n }\n pw.println(ret);\n pw.close();\n br.close();\n }",
"public static void main(String[] args) throws IOException {\n\t\tint[] hundredRand = new int[100]; \n\t \t for(int i = 0; i < hundredRand.length; i++) {\n\t \thundredRand[i] = (int)(Math.random()*100 + 1);\n\t }\t \n\t //Generating 1000 Random numbers\n\t int[] ThousandRand = new int[1000]; \n\t for(int i = 0; i < ThousandRand.length; i++) {\n\t \tThousandRand[i] = (int)(Math.random()*1000 + 1);\n\t }\t\n\t //Generating 10,000 Random integers\n\t int[] TenThousandRand = new int[10000]; \n\t for(int i = 0; i < TenThousandRand.length; i++) {\n\t \tTenThousandRand[i] = (int)(Math.random()*10000 + 1);\n\t }\t\n\t //Generating 1,00,000 Random integers\n\t int[] onelakhRand = new int[100000]; \n\t for(int i = 0; i < onelakhRand.length; i++) {\n\t \tonelakhRand[i] = (int)(Math.random()*100000 + 1);\n\t }\t\n\t \n\t //Time needed to sort hundred random integers using Bubble sort\t\n\t long hunBubbleSortStart =System.nanoTime();\n\t BubbleSort(hundredRand);\n\t long hunBubbleSortEnd=System.nanoTime();\n\t long hunBubble=hunBubbleSortEnd-hunBubbleSortStart;\n\t \n\t //Time needed to sort hundred random integers using Insertion sort\n\t long hunInsertionSortStart =System.nanoTime();\n\t Insertionsort(hundredRand);\n\t long hunInsertionSortEnd=System.nanoTime();\n\t long hunInsertion=hunInsertionSortEnd-hunInsertionSortStart;\n\n\t //Time needed to sort hundred random integers using Selection sort\n\t long hunSelectionSortStart =System.nanoTime();\n\t Insertionsort(hundredRand);\n\t long hunSelectionSortEnd=System.nanoTime();\n\t long hunSelection=hunSelectionSortEnd-hunSelectionSortStart;\n\t \n\t //Time needed to sort Hundred random integers using Merge sort\n\t long hunMergeSortStart =System.nanoTime();\n\t mergeSort(hundredRand);\n\t long hunMergeSortEnd=System.nanoTime();\n\t long hunMerge=hunMergeSortEnd-hunMergeSortStart;\n\t \n\t //Time needed to sort hundred random integers using Heap sort\t\n\t long hunHeapSortStart =System.nanoTime();\n\t HeapSort(hundredRand);\n\t long hunHeapSortEnd=System.nanoTime();\n\t long hunHeap=hunHeapSortEnd-hunHeapSortStart;\n\t \n\n\t //Time needed to sort Hundred random integers using Quick sort\n\t long hunQuickSortStart =System.nanoTime();\n\t QuickSort(hundredRand);\n\t long hunQuickSortEnd=System.nanoTime();\n\t long hunQuick=hunQuickSortEnd-hunQuickSortStart;\n\n\t //Time needed to sort Thousand Random Integers using Bubble Sort\n\t long ThousandBubbleSortStart =System.nanoTime();\n\t BubbleSort(ThousandRand);\n\t long ThousandBubbleSortEnd=System.nanoTime();\n\t long ThousandBubble=ThousandBubbleSortEnd-ThousandBubbleSortStart;\n\t \n\t //Time needed to sort Thousand random integers using Insertion sort\n\t long ThousandInsertionSortStart =System.nanoTime();\n\t Insertionsort(ThousandRand);\n\t long ThousandInsertionSortEnd=System.nanoTime();\n\t long ThousandInsertion=ThousandInsertionSortEnd-ThousandInsertionSortStart;\n\n\t //Time needed to sort Thousand random integers using Selection sort\n\t long ThousandSelectionSortStart =System.nanoTime();\n\t Selectionsort(ThousandRand);\n\t long ThousandSelectionSortEnd=System.nanoTime();\n\t long ThousandSelection=ThousandSelectionSortEnd-ThousandSelectionSortStart;\n\t \n\t //Time needed to sort Thousand Random Integers using Merge Sort\n\t long ThousandMergeSortStart =System.nanoTime();\n\t mergeSort(ThousandRand);\n\t long ThousandMergeSortEnd=System.nanoTime();\n\t long ThousandMerge=ThousandMergeSortEnd-ThousandMergeSortStart;\n\n\t\t //Time needed to sort Thousand Random Integers using Quick Sort\n\t\t long ThousandQuickSortStart =System.nanoTime();\n\t\t QuickSort(ThousandRand);\n\t\t long ThousandQuickSortEnd=System.nanoTime();\n\t\t long ThousandQuick=ThousandQuickSortEnd-ThousandQuickSortStart;\n\t\t \n\t\t //Time needed to sort Thousand Random Integers using HeapSort\n\t\t long ThousandHeapSortStart =System.nanoTime();\n\t\t HeapSort(ThousandRand);\n\t\t long ThousandHeapSortEnd=System.nanoTime();\n\t\t long ThousandHeap=ThousandHeapSortEnd-ThousandHeapSortStart;\n\t\t \n\t\t \n\t \n\t //Time needed to sort TenThousand Random Integers using Bubble Sort\n\t long TenThousandBubbleSortStart =System.nanoTime();\n\t BubbleSort(TenThousandRand);\n\t long TenThousandBubbleSortEnd=System.nanoTime();\n\t long TenThousandBubble=TenThousandBubbleSortEnd-TenThousandBubbleSortStart;\n\t \n\t //Time needed to sort TenThousand random integers using Insertion sort\n\t long TenThousandInsertionSortStart =System.nanoTime();\n\t Insertionsort(TenThousandRand);\n\t long TenThousandInsertionSortEnd=System.nanoTime();\n\t long TenThousandInsertion=TenThousandInsertionSortEnd-TenThousandInsertionSortStart;\n\n\t //Time needed to sort TenThousand random integers using Selection sort\n\t long TenThousandSelectionSortStart =System.nanoTime();\n\t Selectionsort(TenThousandRand);\n\t long TenThousandSelectionSortEnd=System.nanoTime();\n\t long TenThousandSelection=TenThousandSelectionSortEnd-TenThousandSelectionSortStart;\n\t \n\t //Time needed to sort TenThousand random integers using Merge sort\n\t long TenThousandMergeSortStart =System.nanoTime();\n\t mergeSort(TenThousandRand);\n\t long TenThousandMergeSortEnd=System.nanoTime();\n\t long TenThousandMerge=TenThousandMergeSortEnd-TenThousandMergeSortStart;\n\t \n\t //Time needed to sort TenThousand random integers using Quick sort\n\t long TenThousandQuickSortStart =System.nanoTime();\n\t QuickSort(TenThousandRand);\n\t long TenThousandQuickSortEnd=System.nanoTime();\n\t long TenThousandQuick=TenThousandQuickSortEnd-TenThousandQuickSortStart;\n\t \n\t \n\t //Time needed to sort TenThousand Random Integers using Heap Sort\n\t long TenThousandHeapSortStart =System.nanoTime();\n\t HeapSort(TenThousandRand);\n\t long TenThousandHeapSortEnd=System.nanoTime();\n\t long TenThousandHeap=TenThousandHeapSortEnd-TenThousandHeapSortStart;\n\n\t //Time needed to sort oneLakh Random Integers using Bubble Sort\n\t long OnelakhBubbleSortStart =System.nanoTime();\n\t BubbleSort(onelakhRand);\n\t long OnelakhBubbleSortEnd=System.nanoTime();\n\t long OnelakhBubble=OnelakhBubbleSortEnd-OnelakhBubbleSortStart;\n\t \n\t //Time needed to sort oneLakh random integers using Insertion sort\n\t long OnelakhInsertionSortStart =System.nanoTime();\n\t Insertionsort(onelakhRand);\n\t long OnelakhInsertionSortEnd=System.nanoTime();\n\t long OnelakhInsertion=OnelakhInsertionSortEnd-OnelakhInsertionSortStart;\n\n\t //Time needed to sort OneLakhrandom integers using Selection sort\n\t long OnelakhSelectionSortStart =System.nanoTime();\n\t Selectionsort(onelakhRand);\n\t long OnelakhSelectionSortEnd=System.nanoTime();\n\t long OnelakhSelection=OnelakhSelectionSortEnd-OnelakhSelectionSortStart;\n\t \n\t //Time needed to sort TenThousand random integers using Merge sort\n\t long OnelakhMergeSortStart =System.nanoTime();\n\t mergeSort(onelakhRand);\n\t long OnelakhMergeSortEnd=System.nanoTime();\n\t long OnelakhMerge=OnelakhMergeSortEnd-OnelakhMergeSortStart;\n\t \n\t //Time needed to sort TenThousand random integers using Quick sort\n\t long OnelakhQuickSortStart =System.nanoTime();\n\t QuickSort(onelakhRand);\n\t long OnelakhQuickSortEnd=System.nanoTime();\n\t long OnelakhQuick=OnelakhQuickSortEnd-OnelakhQuickSortStart;\n\t \n\t //Time needed to sort one Lakh Random Integers using Bubble Sort\n\t long OnelakhHeapSortStart =System.nanoTime();\n\t HeapSort(onelakhRand);\n\t long OnelakhHeapSortEnd=System.nanoTime();\n\t long OnelakhHeap=OnelakhHeapSortEnd-OnelakhHeapSortStart;\n\n\t \n\n\t File f = new File(\"Output.txt\");\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(f.getAbsoluteFile()));\n\t\tbw.write(\"Array size \"+\"Bubble Sort(ns) \"+\"Insertion sort(ns) \"+\"Selection sort(ns) \"+\"Merge sort(ns) \"+\" Quick Sort(ns) \"+\" HeapSort(ns)\"+\"\\n\");\n\t\tbw.write(\"100 \"+hunBubble+\"(ns) \"+hunInsertion+\"(ns) \"+hunSelection+\"(ns)\t\t\"+hunMerge+\"(ns) \"+hunQuick+\"(ns)\"+\" \"+hunHeap+\"(ns)\"+\"\\n\");\n\t bw.write(\"1000 \"+ThousandBubble+\"(ns) \"+ThousandInsertion+\"(ns) \"+ThousandSelection+\"(ns)\t \t\"+ThousandMerge+\"(ns) \"+ThousandQuick+\"(ns)\"+\" \"+ThousandHeap+\"(ns)\"+\"\\n\");\n\t bw.write(\"10000 \"+TenThousandBubble+\"(ns) \"+TenThousandInsertion+\"(ns)\t \"+TenThousandSelection+\"(ns) \"+TenThousandMerge+\"(ns) \"+TenThousandQuick+\"(ns)\"+\" \"+TenThousandHeap+\"(ns)\"+\"\\n\");\n\t bw.write(\"100000 \"+OnelakhBubble+\"(ns) \"+OnelakhInsertion+\"(ns)\t \"+OnelakhSelection+\"(ns)\t\"+OnelakhMerge+\"(ns) \"+OnelakhQuick+\"(ns) \"+OnelakhHeap+\"(ns)\"+\"\\n\");\n\n\t\tbw.close();\n\t\n\n\t}",
"public static void func(){\n\t\tHashMap<Integer,Integer> map = new HashMap<Integer,Integer>();\n\t\tint limit = 1000;\n\t\tboolean psb[] = generatePrime(limit);\n\t\t\n\t\tint ps[] = MathTool.generatePrime(100000);\n\t\tfor (int i = 1; ps[i]<1000; i++) {\n\t\t\t//System.out.println(ps[i]);\n\t\t}\n\t\tint max=0;\n\t\tfor (int i = 0; ps[i] < limit; i++) {\n\t\t\tint n = ps[i];\n\t\t\tint j=i;\n\t\t\twhile(n<limit){\n\t\t\t\tif(!psb[n]){\n\t\t\t\t\tint num =j-i+1;\n\t\t\t\t\tif(map.containsKey(n)){\n\t\t\t\t\t\tif(map.get(new Integer(n)) < num){\n\t\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t}\n\t\t\t\t\tif(num > max){\n\t\t\t\t\t\tmax=num;\n\t\t\t\t\t\tSystem.out.println(num+\" \"+n+\" \"+i+\" \"+j);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tn+=ps[j];\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) throws FileNotFoundException{\n int[] quicktimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes1[i] = (int)endTime;\n }\n \n int[] mergetimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes1[i] = (int)endTime;\n }\n \n int[] heaptimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes1[i] = (int)endTime;\n }\n \n int[] quicktimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[i] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes2[i] = (int)endTime;\n }\n \n int[] mergetimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes2[i] = (int)endTime;\n }\n \n int[] heaptimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes2[i] = (int)endTime;\n }\n \n int[] quicktimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes3[i] = (int)endTime;\n }\n \n int[] mergetimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes3[i] = (int)endTime;\n }\n \n int[] heaptimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes3[i] = (int)endTime;\n }\n \n int[] quicktimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes4[i] = (int)endTime;\n }\n \n int[] mergetimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes4[i] = (int)endTime;\n }\n \n int[] heaptimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes4[i] = (int)endTime;\n }\n \n \n //THESE WILL GENERATE THE MERGE/HEAP/QUICK SORT FOR THE REVERSE SORTED ARRAYS OF VARIOUS LENGTHS\n int[] quicktimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes5[i] = (int)endTime;\n }\n \n int[] mergetimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes5[i] = (int)endTime;\n }\n \n int[] heaptimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes5[i] = (int)endTime;\n }\n \n int[] quicktimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes6[i] = (int)endTime;\n }\n \n int[] mergetimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes6[i] = (int)endTime;\n }\n \n int[] heaptimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes6[i] = (int)endTime;\n }\n \n int[] quicktimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes7[i] = (int)endTime;\n }\n \n int[] mergetimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes7[i] = (int)endTime;\n }\n \n int[] heaptimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes7[i] = (int)endTime;\n }\n \n int[] quicktimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes8[i] = (int)endTime;\n }\n \n int[] mergetimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes8[i] = (int)endTime;\n }\n \n int[] heaptimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes8[i] = (int)endTime;\n }\n \n //THESE WILL GENERATE THE MERGE/HEAP/QUICK SORT FOR THE RANDOM ARRAYS OF VARIOUS LENGTHS\n int[] quicktimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes9[i] = (int)endTime;\n }\n \n int[] mergetimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes9[i] = (int)endTime;\n }\n \n int[] heaptimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes9[i] = (int)endTime;\n }\n \n int[] quicktimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes10[i] = (int)endTime;\n }\n \n int[] mergetimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes10[i] = (int)endTime;\n }\n \n int[] heaptimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes10[i] = (int)endTime;\n }\n \n int[] quicktimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes11[i] = (int)endTime;\n }\n \n int[] mergetimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes11[i] = (int)endTime;\n }\n \n int[] heaptimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);;\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes11[i] = (int)endTime;\n }\n \n int[] quicktimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes12[i] = (int)endTime;\n }\n \n int[] mergetimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes12[i] = (int)endTime;\n }\n \n int[] heaptimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes12[i] = (int)endTime;\n }\n \n //PRINTING THE RESULTS OUT INTO FILE\n File f = new File(\"Results.txt\");\n FileOutputStream fos = new FileOutputStream(f);\n PrintWriter pw = new PrintWriter(fos);\n pw.println(\"SORTED ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes1), medVal(quicktimes1), varVal(quicktimes1, meanVal(quicktimes1)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes2), medVal(quicktimes2), varVal(quicktimes2, meanVal(quicktimes2)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes3), medVal(quicktimes3), varVal(quicktimes3, meanVal(quicktimes3)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes4), medVal(quicktimes4), varVal(quicktimes4, meanVal(quicktimes4)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes1), medVal(mergetimes1), varVal(mergetimes1, meanVal(mergetimes1)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes2), medVal(mergetimes2), varVal(mergetimes2, meanVal(mergetimes2)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes3), medVal(mergetimes3), varVal(mergetimes3, meanVal(mergetimes3)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes4), medVal(mergetimes4), varVal(mergetimes4, meanVal(mergetimes4)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes1), medVal(heaptimes1), varVal(heaptimes1, meanVal(heaptimes1)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes2), medVal(heaptimes2), varVal(heaptimes2, meanVal(heaptimes2)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes3), medVal(heaptimes3), varVal(heaptimes3, meanVal(heaptimes3)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes4), medVal(heaptimes4), varVal(heaptimes4, meanVal(heaptimes4)));\n pw.println(\"REVERSE SORTED ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes5), medVal(quicktimes5), varVal(quicktimes5, meanVal(quicktimes5)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes6), medVal(quicktimes6), varVal(quicktimes6, meanVal(quicktimes6)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes7), medVal(quicktimes7), varVal(quicktimes7, meanVal(quicktimes7)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes8), medVal(quicktimes8), varVal(quicktimes8, meanVal(quicktimes8)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes5), medVal(mergetimes5), varVal(mergetimes5, meanVal(mergetimes5)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes6), medVal(mergetimes6), varVal(mergetimes6, meanVal(mergetimes6)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes7), medVal(mergetimes7), varVal(mergetimes7, meanVal(mergetimes7)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes8), medVal(mergetimes8), varVal(mergetimes8, meanVal(mergetimes8)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes5), medVal(heaptimes5), varVal(heaptimes5, meanVal(heaptimes5)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes6), medVal(heaptimes6), varVal(heaptimes6, meanVal(heaptimes6)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes7), medVal(heaptimes7), varVal(heaptimes7, meanVal(heaptimes7)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes8), medVal(heaptimes8), varVal(heaptimes8, meanVal(heaptimes8)));\n pw.println(\"RANDOM ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes9), medVal(quicktimes9), varVal(quicktimes9, meanVal(quicktimes9)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes10), medVal(quicktimes10), varVal(quicktimes10, meanVal(quicktimes10)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes11), medVal(quicktimes11), varVal(quicktimes11, meanVal(quicktimes11)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes12), medVal(quicktimes12), varVal(quicktimes12, meanVal(quicktimes12)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes9), medVal(mergetimes9), varVal(mergetimes9, meanVal(mergetimes9)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes10), medVal(mergetimes10), varVal(mergetimes10, meanVal(mergetimes10)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes11), medVal(mergetimes11), varVal(mergetimes11, meanVal(mergetimes11)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes12), medVal(mergetimes12), varVal(mergetimes12, meanVal(mergetimes12)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes9), medVal(heaptimes9), varVal(heaptimes9, meanVal(heaptimes9)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes10), medVal(heaptimes10), varVal(heaptimes10, meanVal(heaptimes10)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes11), medVal(heaptimes11), varVal(heaptimes11, meanVal(heaptimes11)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes12), medVal(heaptimes12), varVal(heaptimes12, meanVal(heaptimes12)));\n pw.close();\n }",
"static void method_6222() {\r\n String[] var5 = new String[2];\r\n int var3 = 0;\r\n String var2 = \"Yá¼\u000bNÔ¨é®H\u0004=¬Îï\";\r\n int var4 = \"Yá¼\u000bNÔ¨é®H\u0004=¬Îï\".length();\r\n char var1 = 4;\r\n int var0 = -1;\r\n\r\n while(true) {\r\n ++var0;\r\n String var10002 = var2.substring(var0, var0 + var1);\r\n boolean var10000 = true;\r\n char[] var10003 = var10002.toCharArray();\r\n class_1652 var10004 = var10003.length;\r\n Object var9 = true;\r\n char[] var8 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var6 = 0;\r\n\r\n while(true) {\r\n var10003 = var8;\r\n var8 = var10001;\r\n var10001 = var10003;\r\n char[] var11 = var8;\r\n var8 = var10003;\r\n if(var10003 <= var6) {\r\n var5[var3++] = (new String((char[])var9)).intern();\r\n if((var0 += var1) >= var4) {\r\n field_5882 = var5;\r\n String[] var10 = field_5882;\r\n field_5881 = \"CL_00000496\";\r\n class_1652[] var7 = new class_1652[7];\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5123, 0, 1, 5, 10);\r\n var7[0] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5124, 0, 1, 3, 5);\r\n var7[1] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5189, 0, 4, 9, 5);\r\n var7[2] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5121, 0, 3, 8, 10);\r\n var7[3] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5155, 0, 1, 3, 15);\r\n var7[4] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5118, 0, 1, 3, 15);\r\n var7[5] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5115, 0, 1, 1, 1);\r\n var7[6] = var10004;\r\n field_5879 = var7;\r\n return;\r\n }\r\n\r\n var1 = var2.charAt(var0);\r\n break;\r\n }\r\n\r\n char var10007 = (char)((Object[])var9)[var6];\r\n short var10009;\r\n switch(var6 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 206;\r\n break;\r\n case 2:\r\n var10009 = 161;\r\n break;\r\n case 3:\r\n var10009 = 143;\r\n break;\r\n case 4:\r\n var10009 = 200;\r\n break;\r\n case 5:\r\n var10009 = 46;\r\n break;\r\n default:\r\n var10009 = 98;\r\n }\r\n\r\n ((Object[])var9)[var6] = (char)(var10007 ^ var11 ^ var10009);\r\n ++var6;\r\n }\r\n }\r\n }",
"public static void main(String[] args) {\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, true, null)));\n measureTime(()->checkInterruptSequential(4, 4, 3, false));\n measureTime(()->checkInterruptSequential(4, 4, 3, true));\n }",
"public static void main(String[] args) {\n\n SlidingWindowDemo demo = new SlidingWindowDemo();\n\n// LeakyBucketDemo demo = new LeakyBucketDemo();\n\n// TokenBucketDemo demo = new TokenBucketDemo();\n\n\n\n\n\n for (int i = 0; i < 10000; i++) {\n try {\n Thread.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(demo.grant());\n System.out.println(System.currentTimeMillis());\n }\n }",
"static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Azy;\u001ftQF\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var3 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var4 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1678 = (new String((char[])var3)).intern();\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var3)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 229;\r\n break;\r\n case 1:\r\n var10009 = 210;\r\n break;\r\n case 2:\r\n var10009 = 203;\r\n break;\r\n case 3:\r\n var10009 = 146;\r\n break;\r\n case 4:\r\n var10009 = 172;\r\n break;\r\n case 5:\r\n var10009 = 142;\r\n break;\r\n default:\r\n var10009 = 179;\r\n }\r\n\r\n ((Object[])var3)[var0] = (char)(var10007 ^ var4 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"static void method_5904() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¡,´\u001a\u000béÜG°\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_5515 = (new String((char[])var4)).intern();\r\n String var2 = field_5515;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 111;\r\n break;\r\n case 2:\r\n var10009 = 241;\r\n break;\r\n case 3:\r\n var10009 = 6;\r\n break;\r\n case 4:\r\n var10009 = 168;\r\n break;\r\n case 5:\r\n var10009 = 185;\r\n break;\r\n default:\r\n var10009 = 41;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"public static void main(String[] args) {\n\n System.out.println(\"In this testrun the squenz has \" + ARRAY_SIZE + \" Elements.\\n\");\n // evaluate Mergesort Vogella\n evaluateMergesortVogella();\n\n // evaluate Mergesort Vogella with Java Threads\n evaluateMergesortVogellaThreaded();\n\n // evaluate Mergesort Vogella with openMP\n// evaluateMergesortVogellaOpenMP();\n\n // evaluate Mergesort University Washington\n evaluateMergesortUniversityWashington();\n\n // evaluate Mergesort University Washington with Java Threads\n evaluateMergesortUniversityWashingtonThreaded();\n\n // evaluate Mergesort University Washington with openMP\n// evaluateMergesortUniversityWashingtonOpenMP();\n }",
"public static void main(String[] args) {\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tSystem.out.println(\"Input the number n : \");\n\t\tint n = keyboard.nextInt();\n\t\t// Integer can't deal with number which is larger than 32 bits. \n\t\tif ((n < 1) || (n > 32)) {\n\t\t\tSystem.out.println(\"It can only calculate 1-32.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tSystem.out.printf(\"%d Queens\\n\", n);\n\t\tN_Queens_high nq6 = new N_Queens_high();\n\t\tlong preTime = System.currentTimeMillis();\n\t\t// N queens only use n bits to store.\n\t\t// When there is a queen on a certain column, its bit is 1. \n\t upperlim = (upperlim << n) - 1;\n\t\tnq6.test(0, 0, 0);\n\t\tlong aftTime = System.currentTimeMillis();\n\t\tlong useTime = aftTime - preTime;\n\t\tSystem.out.print(\"Total solution : \" + sum + \" , Time : \" + useTime + \" ms\\n\");\n\t\t\n\t\tkeyboard.close();\n\t}",
"public static void main(String[] args) { TODO Auto-generated method stub\n\t\t\n\t\t// test funcionality\n//\t\tString temp = palindromeGenerator(101);\n//\t\tPrint.print(validPalindrome(temp, 0, temp.length() - 1));\n\t\t//\n\t\tList<String> palString = new ArrayList<>();\n\t\tint palLen = 0;\n\t\tfor (int i = 1; i <= 20; i++) {\n\t\t\tint len = i * 50;\n\t\t\tpalLen += len;\n\t\t\tpalString.add(palindromeGenerator(len));\n\t\t}\n\t\tSystem.out.format(\"all palindrome lenth: %s%n\", palLen);\n\t\tList<String> testString = testStringGenerator(palString);\n//\t\tPrint.print(testString);\n\t\tlong pre = System.currentTimeMillis();\n\t\tfinal int maxItr = 5;\n\t\tlong avgTime = 0;\n\t\tfor (String test : testString) {\n\t\t\tavgTime = 0;\n//\t\t\tbruteForce(test);\n\t\t\tfor (int i = 0; i < maxItr - 1; i++) {\n\t\t\t\tpre = System.currentTimeMillis();\n\t\t\t\tbruteForce(test);\n\t\t\t\tavgTime += System.currentTimeMillis() - pre;\n\t\t\t}\n\t\t\tpre = System.currentTimeMillis();\n\t\t\tint temp = bruteForce(test);\n\t\t\tavgTime += System.currentTimeMillis() - pre;\n\t\t\tSystem.out.format(\"Brute force: test string size: %s, \"\n\t\t\t\t\t+ \"longest palindrome len: %s, \"\n\t\t\t\t\t+ \"time use: %s ms%n\",\n\t\t\t\t\ttest.length(), \n\t\t\t\t\ttemp, \n\t\t\t\t\tavgTime / maxItr);\n\t\t\t\n//\t\t\tdp(test);\n\t\t\tavgTime = 0;\n\t\t\tfor (int i = 0; i < maxItr - 1; i++) {\n\t\t\t\tpre = System.currentTimeMillis();\n\t\t\t\tdp(test);\n\t\t\t\tavgTime += System.currentTimeMillis() - pre;\n\t\t\t}\n\t\t\tpre = System.currentTimeMillis();\n\t\t\ttemp = dp(test);\n\t\t\tavgTime += System.currentTimeMillis() - pre;\n\t\t\tSystem.out.format(\"DP: test string size: %s, \"\n\t\t\t\t\t+ \"longest palindrome len: %s, \"\n\t\t\t\t\t+ \"time use: %s ms%n\", \n\t\t\t\t\ttest.length(), \n\t\t\t\t\ttemp, \n\t\t\t\t\tavgTime / maxItr);\n//\t\t\tpre = System.currentTimeMillis();\n//\t\t\tfastDP(test);\n//\t\t\tSystem.out.format(\"Manacher: test string size: %s, \"\n//\t\t\t\t\t+ \"longest palindrome len: %s, \"\n//\t\t\t\t\t+ \"time use: %s ms%n\", \n//\t\t\t\t\ttest.length(), \n//\t\t\t\t\tfastDP(test), \n//\t\t\t\t\tSystem.currentTimeMillis() - pre);\n\t\t\t\n//\t\t\tmanacher(test);\n\t\t\tavgTime = 0;\n\t\t\tfor (int i = 0; i < maxItr - 1; i++) {\n\t\t\t\tpre = System.currentTimeMillis();\n\t\t\t\tmanacher(test);\n\t\t\t\tavgTime += System.currentTimeMillis() - pre;\n\t\t\t}\n\t\t\tpre = System.currentTimeMillis();\n\t\t\ttemp = manacher(test);\n\t\t\tavgTime += System.currentTimeMillis() - pre;\n\t\t\tSystem.out.format(\"Manacher: test string size: %s, \"\n\t\t\t\t\t+ \"longest palindrome len: %s, \"\n\t\t\t\t\t+ \"time use: %s ms%n\", \n\t\t\t\t\ttest.length(), \n\t\t\t\t\ttemp, \n\t\t\t\t\tavgTime / maxItr);\n\t\t\t\n\t\t}\n//\t\tSystem.out.println(System.currentTimeMillis());\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int q = sc.nextInt();\n\n for(int k = 0; k < q; k++) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n\n // indicate number of pieces\n long x = 1;\n long y = 1;\n \n ArrayList<Long> c_y = new ArrayList<Long>();\n for(int i = 0; i < m - 1; i++) {\n c_y.add(sc.nextLong());\n }\n \n ArrayList<Long> c_x = new ArrayList<Long>();\n for(int i = 0; i < n - 1; i++) {\n c_x.add(sc.nextLong());\n }\n\n Collections.sort(c_y, Collections.reverseOrder());\n Collections.sort(c_x, Collections.reverseOrder());\n\n // cut: most expensive = cut first\n int index_X = 0;\n int index_Y = 0;\n long totalCost = 0;\n\n while(!(x == n && y == m)) {\n if(x < n && y < m) {\n // compare cost to decide whether cut horizontally or vertically\n if(c_y.get(index_Y) >= c_x.get(index_X)) {\n totalCost += c_y.get(index_Y) * x;\n y++;\n index_Y++;\n } else if(c_y.get(index_Y) < c_x.get(index_X)) {\n totalCost += c_x.get(index_X) * y;\n x++;\n index_X++; \n }\n } else if(x == n && y < m) {\n totalCost += c_y.get(index_Y) * x;\n index_Y++;\n y++;\n } else if(x < n && y == m) {\n totalCost += c_x.get(index_X) * y;\n index_X++;\n x++;\n }\n }\n\n totalCost = totalCost % (long)(Math.pow(10, 9) + 7);\n System.out.println(totalCost );\n }\n }",
"public static void main(String[] args) {\n Util_BinTreeNode<Integer> root = new Util_BinTreeNode<>();\n root.add(8);\n root.add(4); root.add(16);\n root.add(2); root.add(6); root.add(11); root.add(20);\n /*\n Caution. Adding the bellow nodes, causes the java.lang.OutOfMemoryError: GC overhead limit exceeded\n root.add(1); root.add(3); root.add(5); root.add(7);\n root.add(10); root.add(12); root.add(19); root.add(21);\n */\n System.out.println(java.time.LocalTime.now());\n ArrayList<LinkedList<Integer>> aofl = allSequences(root);\n System.out.println(java.time.LocalTime.now());\n\n for (LinkedList<Integer> list : aofl) {\n for (Integer i : list) {\n System.out.print(i + \",\");\n }\n System.out.println(\" \");\n }\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int T = scanner.nextInt();\n assert T >=1;\n assert T<=100000;\n long []numArr = new long[T];\n for(int i=0; i<T; i++) {\n numArr[i] = scanner.nextLong ();\n assert numArr[i]>=1;\n assert numArr[i]<=1000000000;\n }\n\n for (long num : numArr) {\n int i=1;\n long sum=0;\n while(i*3<num) {\n sum +=i*3;\n if(i*5<num && i%3!=0)\n sum +=i*5;\n i++;\n }\n System.out.println(sum);\n }\n }",
"static void jps() {\n\n }",
"public static void main(String[] args) {\n\t\tArrays.fill(arr, 1);\n\t\tlong startTime = System.nanoTime();\n\t\t// Traverse till square root of MAX\n\t\t// Using logic similar to sieve of eratosthenes to\n\t\t// populate factor sum array\n\t\tint limit = (int)Math.sqrt(MAX);\n\t\tfor (int i = 2; i <= limit; ++i) {\n\t\t\tint j = i+i;\n\t\t\tint count = 2;\n\t\t\twhile (j <= MAX){\n\t\t\t\t// As we already add count (j/i) to the factor sum when adding i,\n\t\t\t\t// we don't add when i is equal to or greater than count\n\t\t\t\tif (i < count) {\n\t\t\t\t\t// Adding i and count (j/i) to the factor sum of j\n\t\t\t\t\tarr[j] += i;\n\t\t\t\t\tarr[j] += count;\n\t\t\t\t}\n\t\t\t\tj += i;\n\t\t\t\tcount++;\n\t\t\t} \n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tSystem.out.println(\"The following are amicable numbers\");\n\t\tfor (int i = 2; i <= MAX; ++i) {\n\t\t\tint num = arr[i];\n\t\t\tif (num <= MAX && num > i) {\n\t\t\t\tif (arr[num] == i) {\n\t\t\t\t\tSystem.out.println(count+\": \"+i+\" and \"+num);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong endTime = System.nanoTime();\n\t\tdouble duration = timeInSec(endTime,startTime) ;\n\t\tSystem.out.println(\"Run time \" + duration + \" : secs\");\t\t\n\t}",
"public void runSRJF() {\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n //localProcess = (ArrayList<Processus>) listOfProcess.clone();\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list with new instances of process\n Processus tmp = new Processus(cpy.getName(), cpy.getTime(), (HashMap<Integer, Integer>) cpy.getListOfInOut().clone(), (HashMap<Integer, Integer>) cpy.getlistOfResource().clone());\n localProcess.add(tmp);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) {\n tmpProc = null;\n if (executedProc != null && executedProc.getTime() <= currentTime) {//test if the current executed process is the smallest and is not in in/out operation\n for (Processus proc : localProcess) {//chose the process to execute (the shortest)\n if (proc.getTime() <= currentTime) {\n if (proc.getRessource(proc.getCurrentStep()) < executedProc.getRessource(executedProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n }\n }\n }\n } else {//same tests but if there is no current process on the UC\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime) {\n if (localProcess.size() == 1 || tmpProc == null) {//if there is only only one process left in the list\n executedProc = proc;\n tmpProc = proc;\n } else if (proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n }\n if (executedProc != null) {//if there is a process\n //execution of the process over 1 unity of time and then verifying again it's steel the smallest\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) {\n proc.setWaitingTime(1);//set th waiting time of the others process that could be executed\n }\n }\n occupancyTime++;\n currentTime++;\n executedProc.setTime(executedProc.getTime() + 1);\n executedProc.setRessource(executedProc.getCurrentStep(), executedProc.getRessource(executedProc.getCurrentStep()) - 1);\n if (executedProc.getRessource(executedProc.getCurrentStep()) <= 0) {\n if (executedProc.getCurrentStep() < executedProc.getListOfInOut().size()) {\n executedProc.setTime(currentTime + executedProc.getInOut(executedProc.getCurrentStep()));\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1);\n if (executedProc.getCurrentStep() > executedProc.getlistOfResource().size()) {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n } else {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n executedProc = null;\n }\n } else {\n currentTime++;\n }\n }\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n\n }",
"public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int t= scan.nextInt();\n int min[] = new int[10001];\n Arrays.fill(min,89898);\n min[0] = 0;\n int pn[] = new int[10001];\n boolean p[] = new boolean[10001];\n for(int i=2;i<101;++i)\n {\n if(!p[i])\n for(int j=i*i;j<10001;j+=i)\n p[j] = true;\n }\n int index = 0;\n for(int i=2;i<10001;++i)\n if(!p[i])\n pn[index++] = i;\n int last = index-1;\n for(int i=0;i<=last;++i)\n {\n int temp = (int)Math.pow(pn[i], pn[i]);\n if(temp<10001)\n pn[index++] = temp;\n else break;\n }\n pn[index++] = 898989;\n Arrays.sort(pn,0,index);\n for(int i=2;i<10001;++i)\n {\n for(int j=0;pn[j]<=i;++j)\n if(min[i]>1+min[i-pn[j]])\n min[i] = 1+min[i-pn[j]];\n }\n\n StringBuilder sb = new StringBuilder(\"\");\n while(t-->0)\n {\n sb.append(min[scan.nextInt()]+\"\\n\");\n }\n System.out.println(sb);\n }",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint t = scn.nextInt();\n\t\tfor(int i = 0; i<t; i++) {\n\t\t\tn = scn.nextInt();\n\t\t\tdistance = 0;\n\t\t\tdistancesum = 0;\n\t\t\tlist = new LinkedList[n+3];\n\t\t\tfor(int j = 1; j<=n+2; j++) {\n\t\t\t\tlist[j] = new LinkedList<>();\n\t\t\t}\n\t\t\tlist[1].add(scn.nextInt());\n\t\t\tlist[1].add(scn.nextInt());\n\t\t\tlist[n+2].add(scn.nextInt());\n\t\t\tlist[n+2].add(scn.nextInt());\n\t\t\t\n\t\t\tfor(int j = 2; j<n+2; j++) {\n\t\t\t\tlist[j].add(scn.nextInt());\n\t\t\t\tlist[j].add(scn.nextInt());\n\t\t\t}\n\t\t\t\n\t\t\tvisited = new boolean[n+2];\n\t\t\tcnt = 0;\n\t\t\tmin = 10000;\n\t\t\tfindLoot(list,2);\n\t\t\tSystem.out.println(\"#\"+(i+1)+\" \"+min);\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n int target = 974;\n ArrayList<Integer> factors = new ArrayList<>();\n\n\n for (int i = 1; i <= target; i++) {\n if (target % i == 0) {\n factors.add(i);\n }\n }\n\n int total = 0;\n for (int factor : factors) {\n total += factor;\n }\n\n\n\n System.out.println(\"Result: \" + total);\n System.out.println(\"Done!\");\n }"
] |
[
"0.61368704",
"0.60292864",
"0.5978572",
"0.59652776",
"0.59604037",
"0.5947159",
"0.58931583",
"0.58789444",
"0.5853271",
"0.5840653",
"0.58204854",
"0.5818976",
"0.58153737",
"0.57885325",
"0.5774306",
"0.57647365",
"0.5756481",
"0.57494724",
"0.57352173",
"0.5708644",
"0.5707665",
"0.5691678",
"0.5686274",
"0.56746244",
"0.56728154",
"0.5658144",
"0.56516224",
"0.5646718",
"0.5642291",
"0.5598616",
"0.55948955",
"0.55880517",
"0.5587069",
"0.55743176",
"0.5568128",
"0.55606496",
"0.5555204",
"0.5548485",
"0.5540625",
"0.5532109",
"0.5517354",
"0.55135065",
"0.5511096",
"0.5495848",
"0.5495666",
"0.5495437",
"0.54907185",
"0.5484386",
"0.5480453",
"0.5478226",
"0.5476599",
"0.54742706",
"0.54728156",
"0.5471117",
"0.54698557",
"0.546481",
"0.5458401",
"0.54567605",
"0.5454813",
"0.545159",
"0.54504657",
"0.5448021",
"0.5447345",
"0.5444006",
"0.5435712",
"0.5434439",
"0.5429411",
"0.5426186",
"0.5424397",
"0.54242676",
"0.54217553",
"0.5418853",
"0.5413894",
"0.54123753",
"0.54106075",
"0.5408093",
"0.54061556",
"0.5396584",
"0.53918254",
"0.5390823",
"0.5385697",
"0.53806335",
"0.53754175",
"0.5371411",
"0.53689486",
"0.53638196",
"0.53629196",
"0.5359577",
"0.53564864",
"0.5355657",
"0.53554547",
"0.53552276",
"0.5354194",
"0.5350745",
"0.53490996",
"0.5340673",
"0.53397787",
"0.53390807",
"0.5338618",
"0.5332256",
"0.53307587"
] |
0.0
|
-1
|
solves system of nonlinear equations
|
public static double [][] iteration (double X01, double X02){
double [][] x=new double[10][2];
for (int i=0; i<x.length; i++){
x[i][0]= (A[0][0]*X01 + A[0][1]*X02)+B[0];
X01=x[i][0];
x[i][1]= (A[1][0]*X01 + A[1][1]*X02)+B[1];
X02=x[i][1];
}
return x;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void test15() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(22, (UnivariateRealFunction) tanh0, (-0.5), (double) 22, (-0.5), allowedSolution0);\n }",
"@Test\n public void test22() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }",
"public static void solveQuadraticEquation() {\n }",
"@Test\n public void test21() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Minus minus0 = new Minus();\n double double0 = illinoisSolver0.solve(4037, (UnivariateRealFunction) minus0, (double) 4037, 0.0, (double) 4037);\n }",
"public void solve_linear(double a,double b, MutableDouble t, MutableLong num)\r\n\t{\r\n\t\t\r\n\t\tif (a==0.0) { //\r\n\t\t\tnum.setValue(0);\r\n\t return;\r\n\t } else {\r\n\t\tnum.setValue(1);\r\n\t t.setValue(-b/a);\r\n\t return;\r\n\t }\r\n\t}",
"public void solve(int x, int y, int number)\r\n\t{\r\n\t\t\r\n\t}",
"@Test\n public void test19() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }",
"@Test\n public void test17() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-8.575998569792264E-17), 2.384185791015625E-7, allowedSolution0);\n }",
"private Hashtable solve() {\n Hashtable<Integer, Double> solution = new Hashtable<>(); //maps variable (column) to its value\n double det = system.determinant();\n if (det == 0) {\n System.err.println(\"LinearSystem Solve Failed: determinant of matrix is 0\");\n return null;\n } else {\n for (int c = 0; c < system.N; c++) {\n double detC = colVectorIntoMatrix(c).determinant();\n solution.put(c, detC/det);\n }\n return solution;\n }\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"@Test\n public void test00() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Abs abs0 = new Abs();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = illinoisSolver0.solve(1166, (UnivariateRealFunction) abs0, 0.0, 0.0, allowedSolution0);\n }",
"@Test\n public void test24() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Asin asin0 = new Asin();\n // Undeclared exception!\n try { \n illinoisSolver0.solve((-2213), (UnivariateRealFunction) asin0, 0.008336750013465571, (-2468.32548668046), 0.008336750013465571);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (-2,213) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test18() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.9631727196538443), (double) 16, (-0.9631727196538443), allowedSolution0);\n }",
"public static void solve(String question)\n\t{\n\t\t\n\t\tint add_function = 0;\n\t\tint sub_function = 0;\n\t\t\n\t\tString string_alpha = find_a(question); //finds the value of first input including x\n\t\tString string_beta = find_b(question); //finds the value of second input including x\n\t\t\n\t\tint var_alpha = find_a_num(question); //finds value as integer not including x, of first function\n\t\tint var_beta = find_b_num(question); //finds value as integer not including x, of second function\n\t\t\n\t\tSystem.out.println((find_par(2,question) + find_par(3,question)));\n\t\t\n\t\tString function_1 = function_1(question); //finds just the trig operator of the first function only used to check what type of equation\n\t\tString function_2 = function_2(question); //finds just the trig operator of the second function\n\t\t\n\t\t//check to make sure question is valid if not will start over\n\t\tif (!((function_1.equalsIgnoreCase(\"sin\") && function_1.equalsIgnoreCase(\"cos\") && function_1.equalsIgnoreCase(\"tan\")) || (function_2.equalsIgnoreCase(\"sin\") || function_2.equalsIgnoreCase(\"cos\") || function_2.equalsIgnoreCase(\"tan\"))))\n\t\t{\n\t\t\terror();\n\t\t}\n\t\t\n\t\t//checking to see what equation to use\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"sin\"))\n\t\t{\n\t\t\t\n\t\t\tsin_sin(string_alpha,string_beta,var_alpha,var_beta);\n\t\t\t/*System.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"-\" + string_beta + \")) - (cos(\" + string_alpha + \"+\" + string_beta +\"))]\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_beta2 + \") - cos(\" + string_alpha2 + \")]\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_beta2 + \") - (1/2)cos(\" + string_alpha2 + \")\");\n\t\t\t\n\t\t\tfinished();*/\n\t\t\t\n\t\t}\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t//not done\n\t\tif (function_1.equalsIgnoreCase(\"cos\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t\n\t\t////////////\n\t\t//System.out.println(function_1 + \" \" + function_2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find_b(question);\n\t}",
"public abstract GF2nElement solveQuadraticEquation()\n throws RuntimeException;",
"public abstract void solve();",
"@Test\n public void test09() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-1672.701), (-4.26431539230972), (-8.575998569792264E-17), allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [-1,672.701, -4.264], values: [-1, -1]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"@Test\n public void test06() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, 4.833322802454349E-9, 2.384185791015625E-7, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [0, 0], values: [0, 0]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"public interface ILinearSystem {\n\n /**\n * Sets the coefficient matrix {@code a}.\n *\n * @param a a square matrix\n */\n public void setMatrix(IDoubleArray A);\n\n /**\n * Sets the coefficient vector {@code b}.\n *\n * @param b the coefficient vector\n */\n public void setCoefficientVector(IDoubleArray b);\n\n /**\n * Solve linear system.\n *\n * @return the vector {@code x}, solution of Ax = b.\n */\n public void perform();\n\n /**\n * Get solution x of A*x = b.\n *\n * @return solution\n */\n public IDoubleArray getSolutionVector();\n\n}",
"public VariableUnit solve() {\n LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();\n\n VariableUnit vu1 = new VariableUnit(250.0, 'x');\n VariableUnit vu2 = new VariableUnit('+');\n VariableUnit vu3 = new VariableUnit(250.0, 'x');\n VariableUnit vu4 = new VariableUnit(501.0, 'x');\n VariableUnit vu5 = new VariableUnit('y');\n VariableUnit vu6 = new VariableUnit('-');\n alpha_arr.get(('x' - 'a')).addLast(vu1);\n alpha_arr.get(('x' - 'a')).addLast(vu2);\n alpha_arr.get(('x' - 'a')).addLast(vu3);\n op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);\n op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);\n assignValue(2.0, 'x');\n \n System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);\n System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);\n System.out.print(vu5);\n System.out.println();\n System.out.println(\"------------------------------\");\n \n VariableUnit temp, temp1;\n for (int i = 0; i < op_order.size(); i++) {\n \ttemp = op_order.pollFirst();\n \t\n \t\tswitch (temp.getVariable()) {\n \tcase '+':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().add(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tcase '-':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().subtract(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tdefault:\n \t\tprocessor.push(temp);\n \t\t}\n }\n\n /*\n * System.out.println(\"This equation is currently unsolvable.\");\n \tSystem.out.println(\"Try assigning values to some of the variables.\");\n */\n while (!processor.isEmpty()) {\n \top_order.addFirst(processor.pop());\n }\n \n ListIterator<VariableUnit> iter = op_order.listIterator();\n \n while ( iter.hasNext() ) {\n \tVariableUnit iter_temp = iter.next();\n \t//System.out.print(iter_temp.hasValue());\n \tif (iter_temp.hasValue()) {\n \t\tSystem.out.print( Double.toString(iter_temp.subValue()) );\n \t}\n \telse {\n \t\tSystem.out.print(iter_temp);\n \t}\n };\n System.out.println();\n \n return new VariableUnit(Double.NaN, ' ');\n }",
"@Test\n public void test23() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver(1.0);\n Floor floor0 = new Floor();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(2297949, (UnivariateRealFunction) floor0, 0.5, 1.0, allowedSolution0);\n double double1 = illinoisSolver0.doSolve();\n }",
"private static void equationsTest() {\n }",
"public static void model1() {\n try {\n IloCplex cplex = new IloCplex();\n \n //variables\n IloNumVar x = cplex.numVar(0, Double.MAX_VALUE, \"x\"); //x >= 0\n IloNumVar y = cplex.numVar(0, Double.MAX_VALUE, \"y\"); //y >= 0\n \n //expressions\n IloLinearNumExpr objective = cplex.linearNumExpr();\n objective.addTerm(0.12, x);\n objective.addTerm(0.15, y);\n \n //define objective\n cplex.addMinimize(objective);\n \n //define constraints\n cplex.addGe(cplex.sum(cplex.prod(60, x), cplex.prod(60, y)), 300);\n cplex.addGe(cplex.sum(cplex.prod(12, x), cplex.prod(6, y)), 36);\n cplex.addGe(cplex.sum(cplex.prod(10, x), cplex.prod(30, y)), 90);\n \n //solve\n if (cplex.solve()) {\n System.out.println(\"Obj = \" + cplex.getObjValue());\n System.out.println(\"Obj = \" + cplex.getValue(objective));\n System.out.println(\"x = \" + cplex.getValue(x));\n System.out.println(\"y = \" + cplex.getValue(y));\n } else {\n System.out.println(\"Solution not found.\");\n }\n } catch (IloException ex) {\n ex.printStackTrace();\n }\n }",
"@Test\n public void test20() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0);\n Asinh asinh0 = new Asinh();\n AllowedSolution allowedSolution0 = AllowedSolution.ANY_SIDE;\n double double0 = regulaFalsiSolver0.solve(937, (UnivariateRealFunction) asinh0, (-3537.8), 1704.8188, allowedSolution0);\n }",
"@NonNull\n public static ArrayList<Function> solve(\n @NonNull LinearSystem<Numerical, FArray<Numerical>> systemToSolve)\n throws CircuitShortingException {\n\n n = systemToSolve.variablesNumber();\n\n // Solve initial system\n ArrayList<FArray<Numerical>> solution = systemToSolve.getSolution();\n\n RealMatrix A = getRightSideMatrix(solution);\n RealVector constants = getRightSideConstants(solution);\n\n // Set answer if A is getZero\n if (isZeroMatrix(A)) {\n ArrayList<Function> answer = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n answer.add(Functions.constant(constants.getEntry(i)).integrate());\n }\n return answer;\n }\n\n // Evaluate general solution\n Matrix<Function> matrixExponent = MatrixExponent.matrixExponent(A);\n\n // Evaluate particle solution\n Matrix<Function> underIntegralMatrix = MatrixExponent.matrixExponent(A.scalarMultiply(-1))\n .multiply(Matrices.getFunctionMatrix(constants));\n\n Matrix<Function> constPart =\n matrixExponent.multiply(Matrices.integrate(underIntegralMatrix));\n\n // Find constants for initial values\n ArrayList<Numerical> coefficients;\n try {\n coefficients = getCoefficients(matrixExponent, constPart);\n } catch (InconsistentSystemException e) {\n throw new RuntimeException(); // Should never happen\n }\n\n\n // Set answer\n ArrayList<Function> answer = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n Function answerAddition = Functions.zero();\n\n for (int j = 0; j < n; j++) {\n answerAddition = answerAddition.add(matrixExponent.get(i, j)\n .multiplyConstant(coefficients.get(j)));\n }\n\n answerAddition = answerAddition.add(constPart.get(i, 0));\n\n answer.add(answerAddition);\n }\n\n return answer;\n }",
"public abstract TrajectoryInfo solve();",
"@Test\n public void test07() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.15, 0.0, 1315.10543666213);\n Asinh asinh0 = new Asinh();\n AllowedSolution allowedSolution0 = AllowedSolution.ABOVE_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(0, (UnivariateRealFunction) asinh0, 2.479773539153719E-5, 2209.1881, 0.0, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"private double equation(long n) {\n\t\treturn (4d * montoCarlo(n) / n);\n\t}",
"public interface Solver {\n public ArrayList<ArrayList<Double>> solve(double step, List<Pair<Double, Double>> init, int numberOfIterations);\n public ArrayList<ArrayList<Double>> solve(double step, List<Pair<Double, Double>> init, double max);\n}",
"public void linearEquation(double a, double b, double c){\n //if a = b = 0; x can be any real value\n this.a = a;\n this.b = b;\n this.c = c;\n if(a == 0 && b==0 && c==0) {\n System.out.println(\"Infinite solution\");\n\n }\n\n else {\n x = (c-b)/a;\n\n //if a = 0, x is undefined\n System.out.println(x);\n if(a==0){\n System.out.println(\"No solution\");\n }\n\n\n }\n }",
"public boolean solve()\n\t{\n\t\t// Call the internal solver with the initial values\n\t\treturn solve(numberOfDiscs, poles[0], poles[1], poles[2]);\n\t}",
"public float solveEqun(float[][] values, int uf, int eq) {\n float sol=0;\n float v=0,u=0,a=0,t=0,s=0;\n for (int i=0;i<3;i++) {\n for (int j=0;j<2;j++) {\n if (values[i][1] == 1)\n v = values[i][0];\n else if (values[i][1] == 2)\n u = values[i][0];\n else if (values[i][1] == 3)\n a = values[i][0];\n else if (values[i][1] == 4)\n t = values[i][0];\n else if (values[i][1] == 5)\n s = values[i][0];\n }\n }\n\n if (eq == 1) {\n if (uf == 1) {\n sol = u+(a*t);\n //System.out.println(\"u:\"+u);\n }\n else if (uf == 2) {\n sol = v - (a*t);\n //System.out.println(\"V:\"+v);\n }\n\n else if (uf == 3)\n sol = (v-u)/t;\n else if (uf == 4)\n sol = (v-u)/a;\n }\n\n else if (eq == 2) {\n if (uf == 5)\n sol = (float) ((u*t) + (0.5*a*t*t));\n else if (uf == 2)\n sol = (float) ((s-(0.5*a*t*t))/t);\n else if (uf == 3)\n sol = (float) ((s-(u*t))/(0.5*t*t));\n else if (uf == 4) {\n float sol1 = (float) ((-u+Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n float sol2 = (float) ((-u-Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n if (sol1<0)\n sol = sol2;\n else\n sol = sol1;\n }\n }\n\n else if (eq == 3) {\n if (uf == 1)\n sol = (float) Math.sqrt((2*a*s)-(u*u));\n else if (uf == 2)\n sol = (float) Math.sqrt((v*v)-(2*a*s));\n else if (uf == 3)\n sol = ((v*v)-(u*u))/(2*s);\n else if (uf == 5)\n sol = ((v*v)-(u*u))/(2*a);\n }\n\n return sol;\n }",
"private DoubleMatrix solve33(DoubleMatrix A, DoubleMatrix rhs) {\n \n DoubleMatrix result = DoubleMatrix.zeros(3, 1);\n \n // if (A.lines() != 3 || A.pixels() != 3){\n // throw \"solve33: input: size of A not 33.\")\n // }\n // if (rhs.lines() != 3 || rhs.pixels() != 1) {\n // throw \"solve33: input: size rhs not 3x1.\")\n // }\n \n // ______ real8 L10, L20, L21: used lower matrix elements\n // ______ real8 U11, U12, U22: used upper matrix elements\n // ______ real8 b0, b1, b2: used Ux=b\n final double L10 = A.get(1, 0) / A.get(0, 0);\n final double L20 = A.get(2, 0) / A.get(0, 0);\n final double U11 = A.get(1, 1) - L10 * A.get(0, 1);\n final double L21 = (A.get(2, 1) - (A.get(0, 1) * L20)) / U11;\n final double U12 = A.get(1, 2) - L10 * A.get(0, 2);\n final double U22 = A.get(2, 2) - L20 * A.get(0, 2) - L21 * U12;\n \n // ______ Solution: forward substitution ______\n final double b0 = rhs.get(0, 0);\n final double b1 = rhs.get(1, 0) - b0 * L10;\n final double b2 = rhs.get(2, 0) - b0 * L20 - b1 * L21;\n \n // ______ Solution: backwards substitution ______\n result.put(2, 0, b2 / U22);\n result.put(1, 0, (b1 - U12 * result.get(2, 0)) / U11);\n result.put(0, 0, (b0 - A.get(0, 1) * result.get(1, 0) - A.get(0, 2) * result.get(2, 0)) / A.get(0, 0));\n \n return result;\n \n }",
"@Test\n public void test16() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n double double0 = illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-0.5), (double) 16, (-0.5), allowedSolution0);\n }",
"public interface Solver {\n void solve(Grid grid);\n}",
"public NonLinear(double[] x, double[] y, RealValuedFunctionVA rf,\n\t\t\t Config config, double[] guess)\n\t{\n\t this.rf = rf;\n\n\t int n = rf.minArgLength() - 1;\n\t extendedParameters = new double[n+1];\n\t double[] ourGuess = new double[n];\n\t if (guess != null) {\n\t\tif (guess.length < ourGuess.length) {\n\t\t throw new IllegalArgumentException\n\t\t\t(errorMsg(\"gTooShort\", guess.length, ourGuess.length));\n\n\t\t}\n\t\tSystem.arraycopy(guess, 0, ourGuess, 0, ourGuess.length);\n\t }\n\t setParameters(ourGuess);\n\n\t if (config == null) config = defaultConfig;\n\n\t // y before x is the LMA convention.\n\t double sumsq = LMA.findMin(rf, LMA.Mode.LEAST_SQUARES,\n\t\t\t\t ourGuess, config.lambda, config.nu,\n\t\t\t\t config.limit,\n\t\t\t\t config.iterationLimit, y, x);\n\t System.arraycopy(ourGuess, 0, extendedParameters, 1, n);\n\n\t double[][] J = new double[x.length][];\n\t double[][] H = new double[n][n];\n\t for (int i = 0; i < x.length; i++) {\n\t\textendedParameters[0] = x[i];\n\t\tJ[i] = rf.jacobian(1,extendedParameters);\n\t }\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int i = 0; i < n; i++) {\n\t\tfor (int j = 0; j < n; j++) {\n\t\t adder.reset();\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble term = J[k][i]*J[k][j];\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\t decomp = new CholeskyDecomp(H, H);\n\t if (x.length == n) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tsumsq = LeastSquaresFit.sumOfSquares(this, x, y);\n\t\tdouble variance = sumsq / (x.length - n);\n\t\t// Chi-square is sumsq divided by the variance because\n\t\t// the sigmas all have the same value, but that just\n\t\t// gives x.length - n. This happens because we don't have\n\t\t// an independent estimate of the variance, so we are\n\t\t// implicitly assuming we have the right fit.\n\t\tsetChiSquare(x.length - n);\n\t\tsetDegreesOfFreedom(x.length - n);\n\t\t// reducedChiSquare = ChiSquare divided by the degrees\n\t\t// of freedom.\n\t\tsetReducedChiSquare(1.0);\n\t\t// the H matrix used sigma=1, so we should have divided it by\n\t\t// the variance, which we didn't know. The covariance is the\n\t\t// inverse of H, so we should multiply it by the variance to\n\t\t// get the right value.\n\t\tsetVariance(variance);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] *= variance;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}",
"@Test\n public void test05() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, 0.0);\n Exp exp0 = new Exp();\n AllowedSolution allowedSolution0 = AllowedSolution.ABOVE_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(1626, (UnivariateRealFunction) exp0, (double) 1626, 0.0, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [1,626, 0]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"public abstract double solve(int[][] matrix, double[] profitTable, int[] teamTable);",
"@Test\n public void test04() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(0, (UnivariateRealFunction) log1p0, 4956.642689288169, 636.6, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void testApproximation() {\n int N = 100;\n Mesh mesh = new Mesh(equation.t0, equation.tN, N);\n Noise noise = new Noise(mesh, 10);\n\n // We will use SDG method to approximate with a polynomial degree of p = 4.\n int p = 4;\n SDG sdg = new SDG();\n ApproxGlobal approxGlobal = sdg.Solve(equation, noise, mesh, p);\n\n // For every element, we check that the approximation at the endpoint is within 10e-10\n // of the analytical solution.\n for(int i = 0; i < approxGlobal.localApproximations.length; i++){\n ApproxLocal local = approxGlobal.localApproximations[i];\n\n double totalNoise = noise.sumUntil(i);\n double t = mesh.elements[i].upperEndpoint;\n\n double expected = this.equation.exactSolution(t, totalNoise);\n double actual = local.terminal();\n\n assertEquals(expected, actual, 10e-10);\n }\n }",
"public void solveNet()\n {\n// List<Future<?>> layerFutures = new LinkedList<>();\n// for (int i = 1; i < getNumLayers(); i++)\n// {\n// for (int j = 0; j < nodeValues_[i].length; j++)\n// {\n// layerFutures.add(SHARED_NODE_SOLVE_EXECUTOR.submit(new SolveNode(i, j)));\n// }\n// for (Future<?> f : layerFutures)\n// {\n// // Wait for the layer to complete before moving on to the next layer\n// try\n// {\n// f.get();\n// }\n// catch (Exception e)\n// {\n// e.printStackTrace();\n// }\n// }\n// layerFutures.clear();\n// }\n for (int i = 1; i < getNumLayers(); i++)\n {\n for (int j = 0; j < nodeValues_[i].length; j++)\n {\n new SolveNode(i, j).run();\n }\n }\n }",
"public abstract int[] solve(double[][] costs);",
"public void solve(double mass, int t0, double v_t0, double a, \n double b, double n) {\n\n this.m = mass;\n int t = t0;\n double h = (b - a) / n;\n double v_i = v_t0;\n System.out.println(\"At t = (\"+t0+\"), v(\"+t0+\") = \"+v_i);\n\n for (int i = 0; i < n; i++) {\n v_i = v_i + (h * f(v_i));\n t = t + h;\n System.out.println(\"At t = (\"+(i+1)+\"), v(\"+(i+1)+\") = \"+v_i);\n }\n }",
"private double getSol(){\n return this.sol;\n }",
"public abstract double[] solveDual(int[][] matrix, double[] profitTable, int[] teamTable);",
"public static void main(String[] args) {\n double numA;\n double numB;\n double numC;\n double delta;\n\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter number a: \");\n numA = sc.nextDouble();\n System.out.print(\"Enter number b: \");\n numB = sc.nextDouble();\n System.out.print(\"Enter number c: \");\n numC = sc.nextDouble();\n delta = Math.pow(numB,2) - (4*numA*numC);\n\n if (numA == 0){\n if (numB == 0){\n if (numC == 0){\n System.out.println(\"Equation countless solutions\");\n }else {\n System.out.println(\"Equation has no solution\");;\n }\n }else {\n System.out.println(\"Equation has 1 solution x = \" + (-numB/numA));\n }\n }else {\n if (delta < 0){\n System.out.println(\"Equation has no solution\");\n }else if (delta == 0){\n System.out.println(\"Equation has 1 solution x = \" + (-numB/(2*numA)));\n }else {\n System.out.println(\"Equation has 2 solutions x1 = \" + (-numB+Math.sqrt(delta))/(2*numA));\n System.out.println(\"Equation has 2 solutions x2 = \" + (-numB-Math.sqrt(delta))/(2*numA));\n }\n }\n }",
"@Test\n public void test02() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = regulaFalsiSolver0.solve(2044, (UnivariateRealFunction) log1p0, (-517.825700479), (double) 0, 1711.029259737, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public double getSol() {\n this.tanSolve();\n return this.x;\n }",
"public boolean solucionar() {\n\t\treturn false;\n\t}",
"@Test\n public void test12() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n // Undeclared exception!\n try { \n illinoisSolver0.doSolve();\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test13() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Asin asin0 = new Asin();\n illinoisSolver0.setup(5, asin0, 907.1500599825578, 16, 16);\n // Undeclared exception!\n try { \n illinoisSolver0.doSolve();\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [907.15, 16]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"void findFeasible() {\n\n\t\tfor( int u = 0; u < neg.length; u++ ) {\t\n\t\t\tint i = neg[u];\n\t\t\tfor( int v = 0; v < pos.length; v++ ) {\t\n\t\t\t\tint j = pos[v];\n\t\t\t\tf[i][j] = -delta[i] < delta[j]? -delta[i]: delta[j];\n\t\t\t\tdelta[i] += f[i][j];\n\t\t\t\tdelta[j] -= f[i][j];\n\t\t\t}\n\t\t}\n\t}",
"void solve() throws IOException {\n\t\tint n = ni();\n\t\tint[] v = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tv[i] = ni();\n\t\tsolve(v);\n\t\tout.println(result.size());\n\t\tfor (int a : result)\n\t\t\tout.print(a + \" \");\n\t}",
"public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\n {Math.pow(B.getKey(),2),B.getKey(),1},\n {Math.pow(C.getKey(),2),C.getKey(),1}};\n\n double deter = computeSarrus(matrice);\n\n double [][] matriceA = {{A.getValue(),A.getKey(),1},\n {B.getValue(),B.getKey(),1},\n {C.getValue(),C.getKey(),1}};\n\n double [][] matriceB = {{Math.pow(A.getKey(),2),A.getValue(),1},\n {Math.pow(B.getKey(),2),B.getValue(),1},\n {Math.pow(C.getKey(),2),C.getValue(),1}};\n\n double [][] matriceC = {{Math.pow(A.getKey(),2),A.getKey(),A.getValue()},\n {Math.pow(B.getKey(),2),B.getKey(),B.getValue()},\n {Math.pow(C.getKey(),2),C.getKey(),C.getValue()}};\n\n abc[0] = computeSarrus(matriceA) / deter;\n abc[1] = computeSarrus(matriceB) / deter;\n abc[2] = computeSarrus(matriceC) / deter;\n }",
"private void polyAddSolve() {\n double a, b, c, d, y1, x1, x2, x3;\n a = this.aadd;\n b = this.badd;\n c = this.cadd;\n d = this.dadd;\n y1 = this.yadd;\n if (a != 0) {\n this.adddegree = 3;\n d = d - y1;\n double e, f, g, h, j, t, y, b2, c2, im, re, disc;\n e = ((-Math.pow(b, 3)) / (27 * Math.pow(a, 3)))\n + ((b * c) / (6 * Math.pow(a, 2))) - (d / (2 * a));\n f = (c / (3 * a)) - ((Math.pow(b, 2)) / (9 * Math.pow(a, 2)));\n g = (-b / (3 * a));\n h = Math.pow(e, 2) + Math.pow(f, 3);\n\n if (h < 0) {\n re = e;\n im = Math.sqrt(-h);\n Complex root1 = new Complex(re, im);\n Complex root2 = new Complex(re, -im);\n\n j = root1.getRealRoot(3) + root2.getRealRoot(3);\n x1 = j + g;\n this.x1add = x1;\n this.x3realadd = \"x1 = \" + this.x1add;\n b2 = a * x1 + b;\n c2 = x1 * b2 + c;\n disc = Math.pow(b2, 2) - 4 * a * c2;\n if (disc < 0) {\n this.addreal = false;\n double r, i;\n r = -b2 / (2 * a);\n i = Math.sqrt(-disc) / (2 * a);\n this.x1readd = r;\n this.x2readd = r;\n this.x1imadd = i;\n this.x2imadd = -i;\n this.x1compadd = \"x1= \" + r + \"+\" + i + \"i ; \";\n this.x2compadd = \"x2= \" + r + \"-\" + i + \"i ; \";\n\n } else {\n this.addreal = true;\n x2 = (-b2 + Math.sqrt(disc)) / (2 * a);\n x3 = (-b2 - Math.sqrt(disc)) / (2 * a);\n this.x2add = x2;\n this.x3add = x3;\n this.x1realadd = \"x1= \" + this.x2 + \" ; \";\n this.x2realadd = \"x2= \" + this.x3 + \" ; \";\n }\n\n } else {\n double t2, y2, j2;\n t = e + Math.sqrt(h);\n y = e - Math.sqrt(h);\n y2 = Math.pow(y, 1.0 / 3.0);\n t2 = Math.pow(t, 1.0 / 3.0);\n j2 = y2 + t2;\n x1 = j2 + g;\n this.x1add = x1;\n this.x3realadd = \"x1 = \" + this.x1add;\n b2 = a * x1 + b;\n c2 = x1 * b2 + c;\n disc = Math.pow(b2, 2) - 4 * a * c2;\n if (disc < 0) {\n this.addreal = false;\n double r, i;\n r = -b2 / (2 * a);\n i = Math.sqrt(-disc) / (2 * a);\n this.x1readd = r;\n this.x2readd = r;\n this.x1imadd = i;\n this.x2imadd = -i;\n this.x1compadd = \"x1= \" + r + \"+\" + i + \"i ; \";\n this.x2compadd = \"x2= \" + r + \"-\" + i + \"i ; \";\n this.x1realadd = \"false\";\n this.x2realadd = \"false\";\n\n } else {\n x2 = (-b2 + Math.sqrt(disc)) / (2 * a);\n x3 = (-b2 - Math.sqrt(disc)) / (2 * a);\n this.x2add = x2;\n this.x3add = x3;\n this.x1realadd = \"x1= \" + this.x2add + \" ; \";\n this.x2realadd = \"x2= \" + this.x3add + \" ; \";\n }\n\n }\n\n }\n if (a == 0 && b != 0) {\n this.adddegree = 2;\n d = d - y1;\n double disc, r, i;\n disc = Math.pow(c, 2) - 4 * b * d;\n if (disc < 0) {\n this.addreal = false;\n r = -c / (2 * b);\n i = Math.sqrt(-disc) / (2 * b);\n this.x1readd = r;\n this.x2readd = r;\n this.x1imadd = i;\n this.x2imadd = -i;\n this.x1compadd = \"x1= \" + r + \"+\" + i + \"i\";\n this.x2compadd = \"x2= \" + r + \"-\" + i + \"i\";\n this.x1realadd = \"false\";\n this.x2realadd = \"false\";\n\n } else {\n this.addreal = true;\n x1 = (-c + Math.sqrt(disc)) / (2 * b);\n x2 = (-c + Math.sqrt(disc)) / (2 * b);\n this.x1add = x1;\n this.x2add = x2;\n\n this.x1realadd = \"x1= \" + this.x1add + \" ; \";\n this.x2realadd = \"x2= \" + this.x2add + \" ; \";\n }\n }\n if (a == 0 && b == 0 && c != 0) {\n this.adddegree = 1;\n this.x1add = (y1 - d) / c;\n this.x1realadd = \"x1= \" + this.x1add;\n }\n if (a == 0 && b == 0 && c == 0) {\n this.adddegree = 0;\n\n if (d == y1) {\n this.x1realadd = \"Identity: \" + d + \" = \" + y1;\n\n } else {\n this.x1realadd = \"Contradiction: \" + d + \" is not equal to \" + y1;\n\n }\n }\n\n }",
"public LPSolution solve(double[][] xResults, double[][] yResults) throws GRBException {\n\t\tdouble intFeasTol = mSettings.getIntegralityTolerance();\n\t\tdouble feasTol = mSettings.getFeasibilityTolerance();\n\n\t\tGRBEnv env = new GRBEnv();\n\t\tGRBModel model = new GRBModel(env);\n\n\t\tGRBSolverUtils.configureToleranceParameters(model, intFeasTol, feasTol);\n\n\t\tint n = mExplicitMDP.getNumStates();\n\t\tint m = mExplicitMDP.getNumActions();\n\n\t\t// Initial state distribution\n\t\tdouble[] alpha = new double[n];\n\t\tArrays.fill(alpha, 1.0 / n);\n\n\t\t// Create variables: x_ia\n\t\t// Lower bound on variables: x_ia >= 0\n\t\tGRBVar[][] xVars = GRBSolverUtils.createOptimizationVars(\"x\", GRB.CONTINUOUS, n, m, 0.0,\n\t\t\t\tDouble.POSITIVE_INFINITY, model);\n\n\t\t// Create variables: y_ia\n\t\t// Lower bound on variables: y_ia >= 0\n\t\tGRBVar[][] yVars = GRBSolverUtils.createOptimizationVars(\"y\", GRB.CONTINUOUS, n, m, 0.0,\n\t\t\t\tDouble.POSITIVE_INFINITY, model);\n\n\t\t// Create variables: Deltax_ia (binary)\n\t\tString deltaxVarName = \"Deltax\";\n\t\tGRBVar[][] deltaxVars = GRBSolverUtils.createOptimizationVars(deltaxVarName, GRB.BINARY, n, m, 0.0, 1.0, model);\n\n\t\t// Create variables: Deltay_ia (binary)\n\t\tString deltayVarName = \"Deltay\";\n\t\tGRBVar[][] deltayVars = GRBSolverUtils.createOptimizationVars(deltayVarName, GRB.BINARY, n, m, 0.0, 1.0, model);\n\n\t\t// Set optimization objective\n\t\tGRBSolverUtils.setOptimizationObjective(mExplicitMDP, xVars, model);\n\n\t\t// Add constraints\n\t\taddC1Constraints(xVars, model);\n\t\taddC2Constraints(alpha, xVars, yVars, model);\n\n\t\t// Add constraints to ensure deterministic solution policy\n\t\tGRBSolverUtils.addDeltaConstraints(mExplicitMDP, deltaxVarName, deltaxVars, model);\n\t\tGRBSolverUtils.addDeltaConstraints(mExplicitMDP, deltayVarName, deltayVars, model);\n\n\t\t// For average-cost MDP, sum_i,a (x_ia) = 1; therefore, we can use X = 1\n\t\tGRBSolverUtils.addVarDeltaConstraints(1.0, mExplicitMDP, \"x\", xVars, deltaxVarName, deltaxVars, model);\n\n\t\t// Similarly, we use Y = 1\n\t\tGRBSolverUtils.addVarDeltaConstraints(1.0, mExplicitMDP, \"y\", yVars, deltayVarName, deltayVars, model);\n\n\t\t// Add (upper/lower bound) cost constraints, if any\n\t\tif (mSoftConstraints != null) {\n\t\t\t// Soft constraints\n\t\t\tCostConstraintUtils.addSoftCostConstraints(mSoftConstraints, mHardConstraints, mExplicitMDP, xVars, model);\n\t\t} else if (mHardConstraints != null) {\n\t\t\t// Hard constraints\n\t\t\tCostConstraintUtils.addHardCostConstraints(mHardConstraints, mExplicitMDP, xVars, model);\n\t\t}\n\n\t\t// Solve optimization problem for x_ia, y_ia, and Delta_ia\n\t\tmodel.optimize();\n\n\t\tint numSolutions = model.get(GRB.IntAttr.SolCount);\n\t\tdouble objectiveValue = -1;\n\n\t\tif (numSolutions > 0) {\n\t\t\t// Solution found\n\n\t\t\t// Objective value: sum_i,a (c_ia * x_ia)\n\t\t\tobjectiveValue = model.get(GRB.DoubleAttr.ObjVal);\n\n\t\t\t// Query results: optimal values of x_ia, y_ia, and Delta_ia\n\t\t\tdouble[][] grbXResults = model.get(GRB.DoubleAttr.X, xVars);\n\t\t\tdouble[][] grbYResults = model.get(GRB.DoubleAttr.X, yVars);\n\t\t\tdouble[][] grbDeltaxResults = model.get(GRB.DoubleAttr.X, deltaxVars);\n\t\t\tdouble[][] grbDeltayResults = model.get(GRB.DoubleAttr.X, deltayVars);\n\n\t\t\t// Copy x_ia and y_ia results to the return parameters\n\t\t\tSystem.arraycopy(grbXResults, 0, xResults, 0, grbXResults.length);\n\t\t\tSystem.arraycopy(grbYResults, 0, yResults, 0, grbYResults.length);\n\n\t\t\t// Consistency checks\n\t\t\tverifyAllConstraints(grbXResults, grbYResults, grbDeltaxResults, grbDeltayResults, alpha);\n\t\t\tassert GRBSolverUtils.consistencyCheckResults(grbXResults, grbDeltaxResults, mExplicitMDP, feasTol);\n\t\t\tassert GRBSolverUtils.consistencyCheckResults(grbYResults, grbDeltayResults, mExplicitMDP, feasTol);\n\t\t}\n\n\t\t// Dispose of model and environment\n\t\tmodel.dispose();\n\t\tenv.dispose();\n\n\t\t// LP solution\n\t\tLPSolution solution = new LPSolution(numSolutions > 0, objectiveValue);\n\t\tsolution.addSolution(\"x\", xResults);\n\t\tsolution.addSolution(\"y\", yResults);\n\t\treturn solution;\n\t}",
"public static double solve(UnivariateRealFunction f, double x0, double x1)\n throws MathException\n {\n if(f == null){\n throw new IllegalArgumentException(\"f can not be null.\"); \n }\n \n return UnivariateRealSolverFactory.newInstance().newDefaultSolver(f)\n .solve(x0, x1);\n }",
"public abstract double evaluer(SolutionPartielle s);",
"@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}",
"@Override\n public void solve() throws LaterationException, NotReadyException,\n LockedException {\n if (!isReady()) {\n throw new NotReadyException();\n }\n if (isLocked()) {\n throw new LockedException();\n }\n\n try {\n mLocked = true;\n\n if (mListener != null) {\n mListener.onSolveStart(this);\n }\n\n setupFitter();\n\n mFitter.fit();\n\n //estimated position\n mEstimatedPositionCoordinates = mFitter.getA();\n mCovariance = mFitter.getCovar();\n mChiSq = mFitter.getChisq();\n\n if (mListener != null) {\n mListener.onSolveEnd(this);\n }\n } catch (final NumericalException e) {\n throw new LaterationException(e);\n } finally {\n mLocked = false;\n }\n }",
"public NonLinear(double[] x, double[] y, double sigma,\n\t\t\t RealValuedFunctionVA rf,\n\t\t\t Config config,\n\t\t\t double[] guess)\n\t{\n\t this.rf = rf;\n\n\t int n = rf.minArgLength() - 1;\n\t extendedParameters = new double[n+1];\n\t double[] ourGuess = new double[n];\n\t setParameters(ourGuess);\n\n\t if (config == null) config = defaultConfig;\n\n\t if (guess != null) {\n\t\tif (guess.length < ourGuess.length) {\n\t\t throw new IllegalArgumentException\n\t\t\t(errorMsg(\"gTooShort\", guess.length, ourGuess.length));\n\n\t\t}\n\t\tSystem.arraycopy(guess, 0, ourGuess, 0, ourGuess.length);\n\t }\n\n\t // y before x is the LMA convention.\n\t double sumsq = LMA.findMin(rf, LMA.Mode.LEAST_SQUARES,\n\t\t\t\t ourGuess, config.lambda, config.nu,\n\t\t\t\t config.limit,\n\t\t\t\t config.iterationLimit, y, x);\n\t System.arraycopy(ourGuess, 0, extendedParameters, 1, n);\n\n\t double[][] J = new double[x.length][];\n\t double[][] H = new double[n][n];\n\t for (int i = 0; i < x.length; i++) {\n\t\textendedParameters[0] = x[i];\n\t\tJ[i] = rf.jacobian(1,extendedParameters);\n\t }\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int i = 0; i < n; i++) {\n\t\tfor (int j = 0; j < n; j++) {\n\t\t adder.reset();\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble term = J[k][i]*J[k][j];\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\t decomp = new CholeskyDecomp(H, H);\n\t if (x.length == n) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tdouble sigma2 = sigma*sigma;\n\t\tdouble chiSq = LeastSquaresFit.chiSquare(this, x, y, sigma);\n\t\tsetChiSquare(chiSq);\n\t\tsetDegreesOfFreedom(x.length - n);\n\t\tsetReducedChiSquare(chiSq/(x.length-n));\n\t\t// We didn't include the factor of sigma2 in the previous\n\t\t// matrices, and just fix up the value here, so as to\n\t\t// avoid some additional arithmetic while computing the\n\t\t// parameters.\n\t\tsetVariance(sigma2);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] *= sigma2;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}",
"public static void newton_general() {\n\n Scanner sc = new Scanner(System.in); // for receiving console input\n\n System.out.print(\"No. of points: \");\n int ptsNum = sc.nextInt(); // enter the number (x, y) points you're willing to provide\n float[] xs = new float[ptsNum]; // to store [x] points\n float[] ys = new float[ptsNum]; // to store [y] points\n\n System.out.println(\"Enter points in pairs: (x, y)\");\n\n for (int i = 0; i < ptsNum; i++) { // storing (x, y) points in [xs] & [ys] arrays respectively\n xs[i] = sc.nextFloat();\n ys[i] = sc.nextFloat();\n }\n\n for (int i = 1; i < ptsNum; i++) { // loop for ∇y's (e.g. ∇y, ∇²y, ...)\n // loop for the sub-array of same ∇ level indices[ptsNum - 1 down to i]\n for (int j = ptsNum - 1; j >= i; j--) {\n ys[j] = (ys[j] - ys[j - 1]) / (xs[j] - xs[j - i]);\n }\n }\n\n short play = 1; // flag for 're-interpolating' a new [x] point\n\n while (play == 1) {\n System.out.print(\"Enter an X to find its Y: \");\n float x = sc.nextFloat();\n\n float res = ys[0], coef = 1;\n for (int i = 1; i < ptsNum; i++) {\n coef *= (x - xs[i - 1]);\n res += coef * ys[i];\n }\n\n System.out.println(res);\n System.out.print(\"Another X? press 1 for yes, else 0: \");\n play = sc.nextShort();\n }\n\n sc.close();\n\n }",
"private static void solve() throws IOException {\n\n OptimizationGame.solve();\n SumOfSumOfDigits.solve();\n CrossTheStreet.solve();\n }",
"private void asolve( int n, double b[], double x[], double sa[] ) {\n for( int i = 0; i < n; i++ )\n x[i] = (sa[i] != 0.0 ? b[i] / sa[i] : b[i]);\n }",
"@Test\n public void test14() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver();\n Log log0 = new Log();\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(2048, (UnivariateRealFunction) log0, 0.0, (double) 2048);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (2,048) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test01() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver(0.0, (-1060.0));\n Gaussian gaussian0 = new Gaussian();\n double double0 = pegasusSolver0.solve(4, (UnivariateRealFunction) gaussian0, 125.121193945018, (-2672.0), (-1060.0));\n }",
"public abstract double evaluateSolution(Solution solution) throws JMException, SimulationException;",
"public NonLinear(double[] x, double[] y, double[] sigma,\n\t\t\t RealValuedFunctionVA rf,\n\t\t\t Config config, double[] guess)\n\t{\n\t this.rf = rf;\n\n\t int n = rf.minArgLength() - 1;\n\t extendedParameters = new double[n+1];\n\t double[] ourGuess = new double[n];\n\t setParameters(ourGuess);\n\n\t if (config == null) config = defaultConfig;\n\n\t if (guess != null) {\n\t\tif (guess.length < ourGuess.length) {\n\t\t throw new IllegalArgumentException\n\t\t\t(errorMsg(\"gTooShort\", guess.length, ourGuess.length));\n\n\t\t}\n\t\tSystem.arraycopy(guess, 0, ourGuess, 0, ourGuess.length);\n\t }\n\n\t // y before x is the LMA convention.\n\t double sumsq = LMA.findMin(rf, LMA.Mode.WEIGHTED_LEAST_SQUARES,\n\t\t\t\t ourGuess, config.lambda, config.nu,\n\t\t\t\t config.limit,\n\t\t\t\t config.iterationLimit, y, sigma, x);\n\t System.arraycopy(ourGuess, 0, extendedParameters, 1, n);\n\n\t double[][] J = new double[x.length][];\n\t double[][] H = new double[n][n];\n\t for (int i = 0; i < x.length; i++) {\n\t\textendedParameters[0] = x[i];\n\t\tJ[i] = rf.jacobian(1,extendedParameters);\n\t }\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int i = 0; i < n; i++) {\n\t\tfor (int j = 0; j < n; j++) {\n\t\t adder.reset();\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble sk = sigma[k];\n\t\t\tdouble term = J[k][i]*J[k][j] / (sk*sk);\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\t decomp = new CholeskyDecomp(H, H);\n\t if (x.length == n) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t } else {\n\t\tdouble chiSq = LeastSquaresFit.chiSquare(this, x, y, sigma);\n\t\tsetChiSquare(chiSq);\n\t\tsetDegreesOfFreedom(x.length - n);\n\t\tsetReducedChiSquare(chiSq/(x.length-n));\n\t }\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\t\r\n\t\t\tint [] numReps= {3,1,2,2,2};\r\n\t\t\tMathModelClass.solveMe(85, 5, 2,numReps, 1);\r\n\t\r\n\t\t}",
"public boolean runSolver()\n {\n Variable current = getUnassignedVar();\n\n if (current == null)\n {\n return true;\n }\n\n for (int i = 0; i < current.getDomain().size(); i++)\n {\n List<Integer> oldDomain = current.getDomain();\n int newval = oldDomain.get(i);\n current.setValue(newval);\n current.setDomain(i);\n\n if (constraintsSatisfied(constraintsWithAnyVals()))\n {\n if (runSolver())\n {\n return true;\n }\n }\n\n current.setDomain(oldDomain);\n current.setValue(current.getPrevious()); \n }\n return false;\n }",
"public static double[] solveQuadratic(double [] eqn){\n\t\teqn[4]=((-eqn[1]+Math.sqrt(eqn[3]))/(2*eqn[0]));\n\t\teqn[5]=((-eqn[1]-Math.sqrt(eqn[3]))/(2*eqn[0]));\n\t\treturn eqn;\n\t}",
"public static void main(String[] args) {\n\t\tint x;\n\t\tint x1;\n\t\tint x2;\n\t\tint disc;\n\t\tSystem.out.println(\"Resolvons Ax2 + Bx + C = 0\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Donnez A : \");\n\t\tint A = sc.nextInt();\n\t\tSystem.out.print(\"Donnez B : \");\n\t\tint B = sc.nextInt();\n\t\tSystem.out.print(\"Donnez C : \");\n\t\tint C = sc.nextInt();\n\t\tdisc = (B*B)-4*A*C;\n\t\tif(A==0 && B==0 && C==0) {\n\t\t\tSystem.out.println(\"tout reel est solution\");\n\t\t}\n\t\telse if(A==0 && B==0) {\n\t\t\tSystem.out.println(\"Pas de solution\");\n\t\t}\n\t\telse if(A==0) {\n\t\t\tx=-C/B;\n\t\t\tSystem.out.println(\"la solution est :\"+x);\n\t\t}\n\t\telse if (disc<0) {\n\t\t\tSystem.out.println(\"Pas de solution le discriminant est negatif\");\n\t\t}\n\t\telse {\n\t\t\tx1=(-B + (int)Math.sqrt(disc))/(2*A);\n\t\t\tx2=(-B - (int)Math.sqrt(disc))/(2*A);\n\t\t\t\n\t\t\tSystem.out.println(\"Les solutions sont : x1 = \"+x1+ \" et x2 = \"+x2);\n\n\t\t\t\n\t\t}\n\t}",
"public void solveSingleSolution() {\n SPL M1 = this;\n\n int counter = 1;\n\n for(int i=0; i < this.NBrsEff; i++) {\n System.out.println(\"x\" + counter + \" = \" + M1.M[i][this.NKolEff-1]);\n this.Solusi += \"x\" + counter + \" = \" + M1.M[i][this.NKolEff-1];\n counter += 1;\n this.Solusi += \"\\n\";\n } \n }",
"public void solve() {\r\n\t\t//This needs to be overloaded by a child Class\r\n\t\t//By default, assume a point to line projection, which is essentially an intersection violation\r\n\t\t//\tsolve.\r\n\t\tVec2 norm;\r\n\t\tif (refB != null) {\r\n\t\t\t//Position to Line constraint to solve\r\n\t\t\tnorm = Vec2.perpendicularNormal(refA, refB);\r\n\t\t\t//Commenting out the below -- this will need a more thorough analysis, such by\r\n\t\t\t//\tadding the reference objects center (origin) to determine which side of a line is the\r\n\t\t\t//\tmost appropriate normal vector for separation.\r\n\t\t\t/*if (Vec2.dot(norm, inc) > 0) {\r\n\t\t\t\t//Flip signs to ensure the normal is the direction the reference object needs to move along.\r\n\t\t\t\tnorm.x *= -1.0;\r\n\t\t\t\tnorm.y *= -1.0;\r\n\t\t\t}*/\r\n\t\t\t//Get the violation from the incident point to the reference line (just a point to plane distance problem).\r\n\t\t\tdouble violation = Vec2.dot(norm, new Vec2(inc.x - refA.x, inc.y - refA.y));// - 5.0;\r\n\t\t\tdouble jWeight = incMass + refMass;\r\n\t\t\tdouble j = incMass / jWeight;\r\n\t\t\t//Not worrying about solving this a linear complementary problem, just enforcing positive change\r\n\t\t\tif (violation <= 0.03)return;\r\n\t\t\tinc.x -= (violation * norm.x) * j;\r\n\t\t\tinc.y -= (violation * norm.y) * j;\r\n\t\t\tif (refMass != 0.0) {\r\n\t\t\t\t//Ignore the reference positions if it has infinite mass\r\n\t\t\t\tj = -refMass / jWeight;//negated because the normal is currently representing the solve direction for inc not ref\r\n\t\t\t\t//need to distribute the solve between the two positions, check via barycentric coordinates\r\n\t\t\t\t//Not implementing here, only worried about getting the basic dynamic versus static object test working against gravity.\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//Position to Position constraint to solve\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n \r\n Scanner sc = new Scanner(System.in);\r\n while (sc.hasNext()) {\r\n sc.nextInt();\r\n Y = sc.nextInt();\r\n x = 1 - sc.nextDouble();\r\n N = sc.nextInt();\r\n solve1();\r\n// solve2();\r\n }\r\n sc.close();\r\n }",
"public boolean solve(){\n\t\treturn solve(0,0);\n\t}",
"public double[] calcSolution() {\n\t\t\n\t// Call CostFunction object\n\t\tcostFunction.function(position);\n\t\t\n\t\treturn solution;\n\t\t\n\t}",
"@Test\n public void test11() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, 0.0);\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve((-1144), (UnivariateRealFunction) null, 0.0, 0.0, 0.0);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n a = iia(n);\n int from[] = new int[n - 1];\n int to[] = new int[n - 1];\n for (int i = 0; i < n - 1; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, n - 1);\n int[][] pars = parents3(g, 0);\n par = pars[0];\n int[] ord = pars[1];\n dep = pars[2];\n spar = logstepParents(par);\n subTree = new int[n];\n dfs(0, -1);\n pointer = 1;\n baseArray = new int[n + 1];\n chainNo = 0;\n chainInHead = new int[n];\n Arrays.fill(chainInHead, -1);\n posInBase = new int[n];\n chainInInd = new int[n];\n HLD(0, -1);\n makeTree();\n out.println(Arrays.toString(baseArray));\n out.println(Arrays.toString(a));\n for (int q = 0; q < m; q++) {\n int type = ii();\n if (type == 1) {\n int u = ii() - 1, v = ii() - 1;\n query(u, v);\n out.println(\"DONE\");\n } else {\n int u = ii(), v = ii();\n // update\n }\n }\n }",
"public void solver(){\n\n tohSolver(noDisks,1,3,2);\n\n }",
"public void calcInc(int np)\n\t{\n \n findSpecEq();\n int nofc=numberOfComponents;\n fvec.timesEquals(0.0);\n fvec.set(nofc+1,0,1.0);\n Matrix dxds=Jac.solve(fvec);\n if (np<5)\n {\n double dp=0.01;\n ds=dp/dxds.get(nofc+1,0);\n Xgij.setMatrix(0,nofc+1,np-1,np-1,u);\n dxds.timesEquals(ds);\n // dxds.print(0,10);\n u.plusEquals(dxds);\n // Xgij.print(0,10);\n// u.print(0,10);\n }\n else\n {\n //System.out.println(\"iter \" +iter + \" np \" + np);\n if (iter>6)\n { \n ds *= 0.5;\n System.out.println(\"ds > 6\");\n }\n \n else\n {\n if (iter<3) {\n ds *= 1.5;\n }\n if (iter==3) {\n ds *= 1.1;\n }\n if (iter==4) {\n ds *= 1.0;\n }\n if (iter>4) {\n ds *= 0.5;\n }\n \n// Now we check wheater this ds is greater than dTmax and dPmax.\n if(Math.abs(system.getTemperature()*dxds.get(nofc,0)*ds)>dTmax){\n // System.out.println(\"true T\");\n ds=sign(dTmax/system.getTemperature()/Math.abs(dxds.get(nofc,0)),ds);\n }\n \n if(Math.abs(system.getPressure()*dxds.get(nofc+1,0)*ds)>dPmax)\n {\n ds=sign(dPmax/system.getPressure()/Math.abs(dxds.get(nofc+1,0)),ds);\n // System.out.println(\"true P\");\n }\n if (etterCP2) {\n etterCP2=false;\n ds = 0.5*ds;\n }\n \n Xgij.setMatrix(0,nofc+1,0,2,Xgij.getMatrix(0,nofc+1,1,3)); \n Xgij.setMatrix(0,nofc+1,3,3,u);\n s.setMatrix(0,0,0,3,Xgij.getMatrix(speceq,speceq,0,3));\n // s.print(0,10);\n // System.out.println(\"ds1 : \" + ds);\n calcInc2(np);\n // System.out.println(\"ds2 : \" + ds);\n \n// Here we find the next point from the polynomial.\n \n }\n }\n }",
"public void solveSA() {\r\n initState();\r\n for (int ab = 0; ab < Config.NumberOfMetropolisResets; ab++) {\r\n LogTool.print(\"==================== INACTIVE: START CALC FOR OUTER ROUND \" + ab + \"=========================\",\"notification\");\r\n\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\");\r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n setCur_cost(costCURsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"CUR COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n /* [Newstate] with random dwelltimes */\r\n New_state = newstater(); \r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW STATE \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n// newstater();\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New State before Metropolis: A)\" + New_state[0] + \" B) \" + New_state[1] + \" C) \" + New_state[2],\"notification\");\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New Cost : \" + New_cost,\"notification\");\r\n }\r\n\r\n /**\r\n * MetropolisLoop\r\n * @param Config.NumberOfMetropolisRounds\r\n */\r\n\r\n for(int x=0;x<Config.NumberOfMetropolisRounds;x++) { \r\n LogTool.print(\"SolveSA Iteration \" + x + \" Curcost \" + Cur_cost + \" Newcost \" + New_cost,\"notification\");\r\n if ((Cur_cost - New_cost)>0) { // ? die Kosten\r\n \r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 START\",\"notification\");\r\n }\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA Cost delta \" + (Cur_cost - New_cost) + \" \",\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C1 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 STOP \",\"notification\");\r\n }\r\n } else if (Math.exp(-(New_cost - Cur_cost)/temperature)> RandGenerator.randDouble(0.01, 0.99)) {\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 START: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 before set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 STOP: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n } else {\r\n New_state = newstater();\r\n }\r\n temperature = temperature-1;\r\n if (temperature==0) {\r\n break;\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal());\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n//</editor-fold>\r\n if ((x==58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n if ((Cur_cost - New_cost)>0) {\r\n Cur_state = New_state;\r\n Cur_cost = New_cost; \r\n }\r\n }\r\n if ((x>58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n }\r\n }\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Auskommentierter GLowestState Object Class\">\r\n// if (ab==9) {\r\n// double diff=0;\r\n// }\r\n \r\n // Hier wird kontrolliert, ob das minimalergebnis des aktuellen\r\n // Metropolisloops kleiner ist als das bsiher kleinste\r\n \r\n// if (Cur_cost<Global_lowest_cost) {\r\n// this.setGlobal_lowest_cost(Cur_cost);\r\n// GlobalState GLowestState = new GlobalState(this.Cur_state);\r\n// String rGLSOvalue = GLowestState.getGlobal_Lowest_state_string();\r\n// LogTool.print(\"GLS DEDICATED OBJECT STATE OUTPUT -- \" + GLowestState.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(GLowestState.getDwelltimes());\r\n // LogTool.print(\"READ FROM OBJECT OUTPUT -- \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// LogTool.print(\"DEBUG: CurCost direct : \" + this.getCur_cost(),\"notification\"); \r\n// LogTool.print(\"Debug: Cur<global CurState get : \" + this.getCur_state_string(),\"notification\");\r\n// LogTool.print(\"Debug: Cur<global GLS get : \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(this.getCur_state(Cur_state));\r\n// LogTool.print(\"Debug: Cur<global GLS get after set : \" + this.getGlobal_Lowest_state_string(),\"notification\"); \r\n// }\r\n //</editor-fold>\r\n LogTool.print(\"SolveSA: Outer Iteration : \" + ab,\"notification\");\r\n LogTool.print(\"SolveSA: Last Calculated New State/Possible state inner loop (i.e. 99) : \" + this.getNew_state_string(),\"notification\");\r\n// LogTool.print(\"SolveSA: Best Solution : \" + this.getCur_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: GLS after all loops: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: LastNewCost, unchecked : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: CurCost : \" + this.getCur_cost() + \"i.e. lowest State of this round\",\"notification\"); \r\n }\r\n // return GLowestState;\r\n }",
"private void m1247a(LinearSystem eVar, boolean z, SolverVariable hVar, SolverVariable hVar2, EnumC0282a aVar, boolean z2, ConstraintAnchor eVar2, ConstraintAnchor eVar3, int i, int i2, int i3, int i4, float f, boolean z3, boolean z4, int i5, int i6, int i7, float f2, boolean z5) {\n SolverVariable hVar3;\n boolean z6;\n int i8;\n int i9;\n SolverVariable hVar4;\n SolverVariable hVar5;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n SolverVariable hVar6;\n boolean z7;\n int i15;\n SolverVariable hVar7;\n boolean z8;\n boolean z9;\n SolverVariable hVar8;\n SolverVariable hVar9;\n int i16;\n int i17;\n boolean z10;\n int i18;\n boolean z11;\n int i19;\n int i20;\n int i21;\n int i22;\n int i23;\n boolean z12;\n int i24;\n int i25;\n SolverVariable hVar10;\n SolverVariable hVar11;\n int i26;\n SolverVariable a = eVar.mo3927a(eVar2);\n SolverVariable a2 = eVar.mo3927a(eVar3);\n SolverVariable a3 = eVar.mo3927a(eVar2.mo3761g());\n SolverVariable a4 = eVar.mo3927a(eVar3.mo3761g());\n if (eVar.f1585c && eVar2.mo3751a().f1561i == 1 && eVar3.mo3751a().f1561i == 1) {\n if (LinearSystem.m1445a() != null) {\n LinearSystem.m1445a().f1621s++;\n }\n eVar2.mo3751a().mo3877a(eVar);\n eVar3.mo3751a().mo3877a(eVar);\n if (!z4 && z) {\n eVar.mo3935a(hVar2, a2, 0, 6);\n return;\n }\n return;\n }\n if (LinearSystem.m1445a() != null) {\n hVar3 = a4;\n LinearSystem.m1445a().f1600B++;\n } else {\n hVar3 = a4;\n }\n boolean j = eVar2.mo3764j();\n boolean j2 = eVar3.mo3764j();\n boolean j3 = this.f1497z.mo3764j();\n int i27 = j ? 1 : 0;\n if (j2) {\n i27++;\n }\n if (j3) {\n i27++;\n }\n int i28 = z3 ? 3 : i5;\n switch (aVar) {\n case FIXED:\n z6 = false;\n break;\n case WRAP_CONTENT:\n z6 = false;\n break;\n case MATCH_PARENT:\n z6 = false;\n break;\n case MATCH_CONSTRAINT:\n if (i28 != 4) {\n z6 = true;\n break;\n } else {\n z6 = false;\n break;\n }\n default:\n z6 = false;\n break;\n }\n if (this.f1470as == 8) {\n i8 = 0;\n z6 = false;\n } else {\n i8 = i2;\n }\n if (z5) {\n if (!j && !j2 && !j3) {\n eVar.mo3933a(a, i);\n } else if (j && !j2) {\n eVar.mo3943c(a, a3, eVar2.mo3759e(), 6);\n }\n }\n if (!z6) {\n if (z2) {\n eVar.mo3943c(a2, a, 0, 3);\n if (i3 > 0) {\n i26 = 6;\n eVar.mo3935a(a2, a, i3, 6);\n } else {\n i26 = 6;\n }\n if (i4 < Integer.MAX_VALUE) {\n eVar.mo3940b(a2, a, i4, i26);\n }\n } else {\n eVar.mo3943c(a2, a, i8, 6);\n }\n i11 = i6;\n i9 = i28;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i7;\n } else {\n if (i6 == -2) {\n i20 = i7;\n i21 = i8;\n } else {\n i21 = i6;\n i20 = i7;\n }\n if (i20 == -2) {\n i20 = i8;\n }\n if (i21 > 0) {\n i22 = 6;\n eVar.mo3935a(a2, a, i21, 6);\n i8 = Math.max(i8, i21);\n } else {\n i22 = 6;\n }\n if (i20 > 0) {\n eVar.mo3940b(a2, a, i20, i22);\n i8 = Math.min(i8, i20);\n i23 = 1;\n } else {\n i23 = 1;\n }\n if (i28 == i23) {\n if (z) {\n eVar.mo3943c(a2, a, i8, 6);\n i9 = i28;\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n } else if (z4) {\n eVar.mo3943c(a2, a, i8, 4);\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n i9 = i28;\n } else {\n eVar.mo3943c(a2, a, i8, 1);\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n i9 = i28;\n }\n } else if (i28 == 2) {\n if (eVar2.mo3758d() == ConstraintAnchor.EnumC0280c.TOP || eVar2.mo3758d() == ConstraintAnchor.EnumC0280c.BOTTOM) {\n hVar10 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.TOP));\n hVar11 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.BOTTOM));\n } else {\n hVar10 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.LEFT));\n hVar11 = eVar.mo3927a(this.f1429D.mo3776a(ConstraintAnchor.EnumC0280c.RIGHT));\n }\n i11 = i21;\n i24 = i8;\n hVar5 = a3;\n i12 = i20;\n i9 = i28;\n i10 = i27;\n hVar4 = hVar3;\n eVar.mo3929a(eVar.mo3942c().mo3906a(a2, a, hVar11, hVar10, f2));\n z12 = false;\n if (z12 || i10 == 2 || z3) {\n z6 = z12;\n } else {\n int max = Math.max(i11, i24);\n if (i12 > 0) {\n max = Math.min(i12, max);\n i25 = 6;\n } else {\n i25 = 6;\n }\n eVar.mo3943c(a2, a, max, i25);\n z6 = false;\n }\n } else {\n i11 = i21;\n i24 = i8;\n i10 = i27;\n hVar5 = a3;\n hVar4 = hVar3;\n i12 = i20;\n i9 = i28;\n }\n z12 = z6;\n if (z12) {\n }\n z6 = z12;\n }\n if (z5 && !z4) {\n if (j || j2 || j3) {\n if (!j || j2) {\n if (!j && j2) {\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), 6);\n if (z) {\n eVar.mo3935a(a, hVar, 0, 5);\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n }\n } else if (!j || !j2) {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n if (z6) {\n if (z && i3 == 0) {\n eVar.mo3935a(a2, a, 0, 6);\n }\n if (i9 == 0) {\n if (i12 > 0 || i11 > 0) {\n i19 = 4;\n z11 = true;\n } else {\n i19 = 6;\n z11 = false;\n }\n hVar7 = hVar5;\n eVar.mo3943c(a, hVar7, eVar2.mo3759e(), i19);\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), i19);\n z8 = i12 > 0 || i11 > 0;\n z7 = z11;\n i15 = 5;\n } else {\n hVar7 = hVar5;\n if (i9 == 1) {\n z8 = true;\n i15 = 6;\n z7 = true;\n } else if (i9 == 3) {\n if (!z3) {\n if (this.f1487p != -1 && i12 <= 0) {\n i18 = 6;\n eVar.mo3943c(a, hVar7, eVar2.mo3759e(), i18);\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), i18);\n z8 = true;\n i15 = 5;\n z7 = true;\n }\n }\n i18 = 4;\n eVar.mo3943c(a, hVar7, eVar2.mo3759e(), i18);\n eVar.mo3943c(a2, hVar4, -eVar3.mo3759e(), i18);\n z8 = true;\n i15 = 5;\n z7 = true;\n } else {\n z8 = false;\n i15 = 5;\n z7 = false;\n }\n }\n } else {\n hVar7 = hVar5;\n z8 = true;\n i15 = 5;\n z7 = false;\n }\n if (z8) {\n hVar9 = hVar4;\n hVar8 = hVar7;\n hVar6 = a2;\n eVar.mo3934a(a, hVar7, eVar2.mo3759e(), f, hVar4, a2, eVar3.mo3759e(), i15);\n boolean z13 = eVar2.f1416c.f1414a instanceof Barrier;\n boolean z14 = eVar3.f1416c.f1414a instanceof Barrier;\n if (z13 && !z14) {\n z9 = z;\n z10 = true;\n i17 = 5;\n i16 = 6;\n if (z7) {\n }\n eVar.mo3935a(a, hVar8, eVar2.mo3759e(), i17);\n eVar.mo3940b(hVar6, hVar9, -eVar3.mo3759e(), i16);\n if (z) {\n }\n } else if (!z13 && z14) {\n z10 = z;\n i17 = 6;\n i16 = 5;\n z9 = true;\n if (z7) {\n i17 = 6;\n i16 = 6;\n }\n if ((!z6 && z9) || z7) {\n eVar.mo3935a(a, hVar8, eVar2.mo3759e(), i17);\n }\n if ((!z6 && z10) || z7) {\n eVar.mo3940b(hVar6, hVar9, -eVar3.mo3759e(), i16);\n }\n if (z) {\n i14 = 0;\n i13 = 6;\n eVar.mo3935a(a, hVar, 0, 6);\n } else {\n i14 = 0;\n i13 = 6;\n }\n }\n } else {\n hVar8 = hVar7;\n hVar9 = hVar4;\n hVar6 = a2;\n }\n z10 = z;\n z9 = z10;\n i17 = 5;\n i16 = 5;\n if (z7) {\n }\n eVar.mo3935a(a, hVar8, eVar2.mo3759e(), i17);\n eVar.mo3940b(hVar6, hVar9, -eVar3.mo3759e(), i16);\n if (z) {\n }\n }\n } else if (z) {\n eVar.mo3935a(hVar2, a2, 0, 5);\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n }\n } else if (z) {\n eVar.mo3935a(hVar2, a2, 0, 5);\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n } else {\n hVar6 = a2;\n i14 = 0;\n i13 = 6;\n }\n if (z) {\n eVar.mo3935a(hVar2, hVar6, i14, i13);\n }\n } else if (i10 < 2 && z) {\n eVar.mo3935a(a, hVar, 0, 6);\n eVar.mo3935a(hVar2, a2, 0, 6);\n }\n }",
"@Test\n public void t1()\n {\n \tFormula f1;\n \tEnvironment retenv;\n \tClause clause1,clause2,clause3;\n \tclause1 = make (na);\n\n \tf1=new Formula(clause1);\n \tSystem.out.println(\"---\");\n \tSystem.out.println(f1);\n \tretenv=SATSolver.solve(f1);\n \tSystem.out.println(\"Solution: \"+retenv);\n \t\n \tassertTrue(Boolean.TRUE);\n }",
"public Polynomial(int n, double[] x, double[] y) {\n\t int np1 = n + 1;\n\t // double[] parameters = new double[np1];\n\t // setParameters(parameters);\n\t double X[][] = new double[x.length][np1];\n\t for (int i = 0; i < x.length; i++) {\n\t\tdouble xi = x[i];\n\t\tdouble prod = 1.0;\n\t\tfor (int j = 0; j < np1; j++) {\n\t\t X[i][j] = prod;\n\t\t prod *= xi;\n\t\t}\n\t }\n\t double[] tmp = new double[np1];\n\t double[][] H = new double[np1][np1];\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int j = 0; j < np1; j++) {\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t tmp[j] += X[i][j]*y[i];\n\t\t}\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t state.c = 0.0;\n\t\t state.total = 0.0;\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble yy = (X[k][i]*X[k][j]) - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\n\t /*\n\t TriangularDecomp decomp = new CholeskyDecomp(H, H);\n\t setDecomp(decomp);\n\t decomp.solve(parameters, tmp);\n\t */\n\t setDecomp(H);\n\t QRDecomp qr = new QRDecomp(X);\n\t setParameters(qr.solve(y));\n\t if (x.length == np1) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tdouble sumsq = LeastSquaresFit.sumOfSquares(this, x, y);\n\t\tdouble variance = sumsq / (x.length - np1);\n\t\t// Chi-square is sumsq divided by the variance because\n\t\t// the sigmas all have the same value, but that just\n\t\t// gives x.length - np1. This happens because we don't have\n\t\t// an independent estimate of the variance, so we are\n\t\t// implicitly assuming we have the right fit.\n\t\tsetChiSquare(x.length - np1);\n\t\tsetDegreesOfFreedom(x.length - np1);\n\t\t// reducedChiSquare = ChiSquare divided by the degrees \n\t\t// of freedom.\n\t\tsetReducedChiSquare(1.0);\n\t\t// the H matrix used sigma=1, so we should have divided it by\n\t\t// the variance, which we didn't know. The covariance is the\n\t\t// inverse of H, so we should multiply it by the variance to\n\t\t// get the right value.\n\t\tsetVariance(variance);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] *= variance;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}",
"private void polySubSolve() {\n double a, b, c, d, y1, x1, x2, x3;\n a = this.asub;\n b = this.bsub;\n c = this.csub;\n d = this.dsub;\n y1 = this.ysub;\n if (a != 0) {\n this.subdegree = 3;\n d = d - y1;\n double e, f, g, h, j, t, y, b2, c2, im, re, disc;\n e = ((-Math.pow(b, 3)) / (27 * Math.pow(a, 3)))\n + ((b * c) / (6 * Math.pow(a, 2))) - (d / (2 * a));\n f = (c / (3 * a)) - ((Math.pow(b, 2)) / (9 * Math.pow(a, 2)));\n g = (-b / (3 * a));\n h = Math.pow(e, 2) + Math.pow(f, 3);\n\n if (h < 0) {\n re = e;\n im = Math.sqrt(-h);\n Complex root1 = new Complex(re, im);\n Complex root2 = new Complex(re, -im);\n\n j = root1.getRealRoot(3) + root2.getRealRoot(3);\n x1 = j + g;\n this.x1sub = x1;\n this.x3realsub = \"x1 = \" + this.x1sub;\n b2 = a * x1 + b;\n c2 = x1 * b2 + c;\n disc = Math.pow(b2, 2) - 4 * a * c2;\n if (disc < 0) {\n this.subreal = false;\n double r, i;\n r = -b2 / (2 * a);\n i = Math.sqrt(-disc) / (2 * a);\n this.x1resub = r;\n this.x2resub = r;\n this.x1imsub = i;\n this.x2imsub = -i;\n this.x1compsub = \"x1= \" + r + \"+\" + i + \"i ; \";\n this.x2compsub = \"x2= \" + r + \"-\" + i + \"i ; \";\n\n } else {\n this.subreal = true;\n x2 = (-b2 + Math.sqrt(disc)) / (2 * a);\n x3 = (-b2 - Math.sqrt(disc)) / (2 * a);\n this.x2sub = x2;\n this.x3sub = x3;\n this.x1realsub = \"x1= \" + this.x2 + \" ; \";\n this.x2realsub = \"x2= \" + this.x3 + \" ; \";\n }\n\n } else {\n double t2, y2, j2;\n t = e + Math.sqrt(h);\n y = e - Math.sqrt(h);\n y2 = Math.pow(y, 1.0 / 3.0);\n t2 = Math.pow(t, 1.0 / 3.0);\n j2 = y2 + t2;\n x1 = j2 + g;\n this.x1sub = x1;\n this.x3realsub = \"x1 = \" + this.x1sub;\n b2 = a * x1 + b;\n c2 = x1 * b2 + c;\n disc = Math.pow(b2, 2) - 4 * a * c2;\n if (disc < 0) {\n this.subreal = false;\n double r, i;\n r = -b2 / (2 * a);\n i = Math.sqrt(-disc) / (2 * a);\n this.x1resub = r;\n this.x2resub = r;\n this.x1imsub = i;\n this.x2imsub = -i;\n this.x1compsub = \"x1= \" + r + \"+\" + i + \"i ; \";\n this.x2compsub = \"x2= \" + r + \"-\" + i + \"i ; \";\n this.x1realsub = \"false\";\n this.x2realsub = \"false\";\n\n } else {\n x2 = (-b2 + Math.sqrt(disc)) / (2 * a);\n x3 = (-b2 - Math.sqrt(disc)) / (2 * a);\n this.x2sub = x2;\n this.x3sub = x3;\n this.x1realsub = \"x1= \" + this.x2sub + \" ; \";\n this.x2realsub = \"x2= \" + this.x3sub + \" ; \";\n }\n\n }\n\n }\n if (a == 0 && b != 0) {\n this.subdegree = 2;\n d = d - y1;\n double disc, r, i;\n disc = Math.pow(c, 2) - 4 * b * d;\n if (disc < 0) {\n this.subreal = false;\n r = -c / (2 * b);\n i = Math.sqrt(-disc) / (2 * b);\n this.x1resub = r;\n this.x2resub = r;\n this.x1imsub = i;\n this.x2imsub = -i;\n this.x1compsub = \"x1= \" + r + \"+\" + i + \"i\";\n this.x2compsub = \"x2= \" + r + \"-\" + i + \"i\";\n this.x1realsub = \"false\";\n this.x2realsub = \"false\";\n\n } else {\n this.subreal = true;\n x1 = (-c + Math.sqrt(disc)) / (2 * b);\n x2 = (-c + Math.sqrt(disc)) / (2 * b);\n this.x1sub = x1;\n this.x2sub = x2;\n\n this.x1realsub = \"x1= \" + this.x1sub + \" ; \";\n this.x2realsub = \"x2= \" + this.x2sub + \" ; \";\n }\n }\n if (a == 0 && b == 0 && c != 0) {\n this.subdegree = 1;\n this.x1sub = (y1 - d) / c;\n this.x1realsub = \"x1= \" + this.x1sub;\n }\n if (a == 0 && b == 0 && c == 0) {\n this.subdegree = 0;\n\n if (d == y1) {\n this.x1realsub = \"Identity: \" + d + \" = \" + y1;\n\n } else {\n this.x1realsub = \"Contradiction: \" + d + \" is not equal to \" + y1;\n\n }\n }\n\n }",
"@Test\n public void test10() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(1601.9);\n Acos acos0 = new Acos();\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(1023, (UnivariateRealFunction) acos0, (double) 1023, (double) 1023, 0.0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [1,023, 1,023]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"public String getEquation() {\n this.tanSolve();\n return this.equation;\n }",
"public static void run(){\n\t\t\n\t\tMatrix A = null;\n\t\tVector b = null;\n\t\tVector c = null;\n\t\t\n\t\tfor (int n= 3; n<=11; n+=2 )\n\t\t{\n\t\t\tk=n-2;\n\t\t\tA = createConstraint(n, k) ;\n\t\t\tb = create_b(k, 0.5);\n\t\t\tc = create_c(n);\n\t\t\ttable = new SimplexTable(A, b, c, SimplexTable.MODE.EQUALITY);\n\t\t table.solve(); \n\t\t\tp(\"q_n( n=\"+n+\")= \" + (double) table.getMaxValue()); //(Math.round() / 100000);\n\t\t}\n\t\t\n\t}",
"@Test\n public void test08() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(152.236924);\n Sinc sinc0 = new Sinc();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(3, (UnivariateRealFunction) sinc0, 152.236924, 152.236924, 0.0, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // endpoints do not specify an interval: [152.237, 152.237]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }",
"@Test\n public void test03() throws Throwable {\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = (-752.3);\n doubleArray0[1] = (-3311.34);\n doubleArray0[2] = (-1.0);\n doubleArray0[4] = (-3693.989241);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n double double0 = UnivariateRealSolverUtils.solve((UnivariateRealFunction) polynomialFunctionLagrangeForm0, (-628.8590785579964), 32.3197224);\n assertEquals(0.0, double0, 0.01D);\n }",
"protected void virtual_n_squared() {\n\t\tint ns_i, ns_j, di, edge;\n\t\tint[] num_inters = new int[2];\n\t\t// NOTE: These were long-double, which is not accessible in java.\n\t\t// These may not have been doing anything on a given platform anyway.\n\t\tdouble eonn,ijsepsqrd, ije6, ije12, newe6, newe12;\n\t\tdouble denn, nnprb, ijlatsepsqrd, dl[] = new double[3], dp[] = new double[3], gstot;\n\t\tdouble truncEtot, fullEtot, dennOLD;\n\t\t// ANJ End of long-doubles.\n\t\tdouble max_circ_trunc2;\n\t\tdouble ijunscaledsepsqrd, unscaled_boxsqrd = 0.0;\n\t\t\n\t\t// Using a spherical truncation as big as the cell:\n\t\t// It implements a _fixed_length_ cut-off, and so the unscaled cell is used later:\n\t\tmax_circ_trunc2 = Math.pow((double)lsize[0][2]*0.5*(Math.sqrt(2.0/3.0)),2.0);\n\t\t\n\t\t// count the number of interactions included:\n\t\tnum_inters[0] = 0;\n\t\tnum_inters[1] = 0;\n\t\t\n\t\tnewe6 = 0.0; newe12 = 0.0; gstot = 0.0;\n\t\ttruncEtot = 0.0; fullEtot = 0.0;\n\t\tfor( ns_i = 0; ns_i < n; ns_i++ ) {\n\t\t\tfor( ns_j = ns_i; ns_j < n; ns_j++ ) {\n\t\t\t\tif( ns_i != ns_j) {\n\t\t\t\t\t\n\t\t\t\t\t// Calc relative lattice position:\n\t\t\t\t\tdl[0] = latt[c_lat][ns_j].x - latt[c_lat][ns_i].x;\n\t\t\t\t\tdl[1] = latt[c_lat][ns_j].y - latt[c_lat][ns_i].y;\n\t\t\t\t\tdl[2] = latt[c_lat][ns_j].z - latt[c_lat][ns_i].z;\n\t\t\t\t\t\n\t\t\t\t\t// Calc relative particle position:\n\t\t\t\t\tdp[0]=(latt[c_lat][ns_j].x+disp[ns_j].x)-(latt[c_lat][ns_i].x+disp[ns_i].x);\n\t\t\t\t\tdp[1]=(latt[c_lat][ns_j].y+disp[ns_j].y)-(latt[c_lat][ns_i].y+disp[ns_i].y);\n\t\t\t\t\tdp[2]=(latt[c_lat][ns_j].z+disp[ns_j].z)-(latt[c_lat][ns_i].z+disp[ns_i].z);\n\t\t\t\t\t\n\t\t\t\t\t// Shift particle to nearest image of the LATTICE SITE!\n\t\t\t\t\t// ...while also building up the square of the latt and particle displmt.\n\t\t\t\t\tijsepsqrd = 0.0; ijlatsepsqrd = 0.0;\n\t\t\t\t\tijunscaledsepsqrd = 0.0;\n\t\t\t\t\tedge = 0;\n\t\t\t\t\tfor( di = 0; di < 3; di++ ) {\n\t\t\t\t\t\tif( dl[di] < -0.5-NN_INC_TOL ) {\n\t\t\t\t\t\t\tdl[di] += 1.0;\n\t\t\t\t\t\t\tdp[di] += 1.0;\n\t\t\t\t\t\t} else if( dl[di] > 0.5-NN_INC_TOL ) {\n\t\t\t\t\t\t\tdl[di] -= 1.0;\n\t\t\t\t\t\t\tdp[di] -= 1.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tijsepsqrd += dp[di]*dp[di]*box2[c_lat][di];\n\t\t\t\t\t\tijlatsepsqrd += dl[di]*dl[di]*box2[c_lat][di];\n\t\t\t\t\t\tif( di == 0 ) unscaled_boxsqrd = init_boxes[c_lat].x*init_boxes[c_lat].x;\n\t\t\t\t\t\tif( di == 1 ) unscaled_boxsqrd = init_boxes[c_lat].y*init_boxes[c_lat].y;\n\t\t\t\t\t\tif( di == 2 ) unscaled_boxsqrd = init_boxes[c_lat].z*init_boxes[c_lat].z;\n\t\t\t\t\t\tijunscaledsepsqrd += dl[di]*dl[di]*unscaled_boxsqrd;\n\t\t\t\t\t\tif( Math.abs(Math.abs(dl[di])-0.5) < NN_INC_TOL ) {\n\t\t\t\t\t\t\tedge = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( edge == 0 ) {\n\t\t\t\t\t\t// particle-particle interaction:\n\t\t\t\t\t\tije6 = ij_inter_pow(ijsepsqrd,3.0); ije12 = ij_inter_pow(ijsepsqrd,6.0);\n\t\t\t\t\t\tnewe6 += ije6; newe12 += ije12;\n\t\t\t\t\t\t//System.out.printf(\"ES %i %i %g %g %g %g\\n\",ns_i,ns_j,sqrt(ijsepsqrd),ije6,ije12,lj_eta*(ije12-ije6));\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_circ_trunc2 ) {\n\t\t\t\t\t\t\tfullEtot += lj_eta*(ije12 - ije6);\n\t\t\t\t\t\t\tnum_inters[0]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_dr2 ) {\n\t\t\t\t\t\t\ttruncEtot += lj_eta*(ije12 - ije6);\n\t\t\t\t\t\t\tnum_inters[1]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// site-site interaction:\n\t\t\t\t\t\tijsepsqrd = ijlatsepsqrd;\n\t\t\t\t\t\tije6 = ij_inter_pow(ijsepsqrd,3.0); ije12 = ij_inter_pow(ijsepsqrd,6.0);\n\t\t\t\t\t\t//System.out.printf(\"GS %i %i %g %g %g %g\\n\",ns_i,ns_j,sqrt(ijsepsqrd),ije6,ije12,lj_eta*(ije12-ije6));\n\t\t\t\t\t\tnewe6 -= ije6; newe12 -= ije12;\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_circ_trunc2 ) fullEtot -= lj_eta*(ije12 - ije6);\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_dr2 ) truncEtot -= lj_eta*(ije12 - ije6);\n\t\t\t\t\t\t\n\t\t\t\t\t\tgstot += 4.0*(ije12-ije6);\n\t\t\t\t\t\t//System.out.printf(\"TOT %i,%i %e %e %e\\n\",ns_i,ns_j,newe6,newe12,newe12-newe6);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\teonn = lj_eta*(newe12 - newe6) + EN_SHIFT;\n//\t\tdennOLD = (eonn - calc_e_from_scratch(c_lat) );\n\t\tdennOLD = (eonn - truncEtot);\n\t\tdenn = fullEtot - truncEtot;\n\t\tnnprb = Math.exp(-denn);\n\t\tSystem.out.println(\" NN2 \"+dennOLD+\" \"+denn+\" \"+nnprb+\" \"+truncEtot+\" \"+fullEtot);\n\t\tif( !init_nncalc ) {\n\t\t\tSystem.out.println(\" NNTEST \"+Math.sqrt(max_circ_trunc2)+\" \"+ \n\t\t\t\t\t2.0*num_inters[0]/216.0+\" \"+ 2.0*num_inters[1]/216.0);\n\t\t\tinit_nncalc = true;\n\t\t}\n\t\treturn;\n\t}",
"@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }",
"public static double solve(UnivariateFunction function, double x0, double x1, double absoluteAccuracy)\r\n/* 23: */ {\r\n/* 24: 73 */ if (function == null) {\r\n/* 25: 74 */ throw new NullArgumentException(LocalizedFormats.FUNCTION, new Object[0]);\r\n/* 26: */ }\r\n/* 27: 76 */ UnivariateSolver solver = new BrentSolver(absoluteAccuracy);\r\n/* 28: 77 */ return solver.solve(2147483647, function, x0, x1);\r\n/* 29: */ }",
"public double costNEX() {\r\n double diff=0;\r\n double intensity=0;\r\n \r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n\r\n this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n intensity = this.body2[x][y][z].radiationIntensity(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (intensity>0) {\r\n// LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n this.body2[x][y][z].addCurrentDosis(intensity);\r\n } \r\n diff += Math.pow((this.body2[x][y][z].getGoalDosis()-this.body2[x][y][z].getCurrentDosis()),2);\r\n// LogTool.print(\" diffdose \" + (Looper.body2[x][y][z].getGoalDosis()-Looper.body2[x][y][z].getCurrentDosis()),\"notification\");\r\n } \r\n }\r\n }\r\n return Math.sqrt(diff);\r\n// return Math.random();\r\n }",
"public double getBestSolutionEvaluation();",
"public int perform_LMVM() {\n if (_inequality_width > 0) {\n int nvars = _fb.Size() * 2;\n double[] x = new double[nvars];\n \n // INITIAL POINT\n for (int i = 0; i < nvars / 2; i++) {\n x[i] = _va.get(i);\n x[i + _fb.Size()] = _vb.get(i);\n }\n \n // int info = BLMVMSolve(x, nvars);\n \n for (int i = 0; i < nvars / 2; i++) {\n _va.set(i, x[i]);\n _vb.set(i, x[i + _fb.Size()]);\n _vl.set(i, _va.get(i) - _vb.get(i));\n }\n \n return 0;\n } else {\n \n int nvars = _fb.Size();\n double[] x = new double[nvars];\n \n // INITIAL POINT\n for (int i = 0; i < nvars; i++) {\n x[i] = _vl.get(i);\n }\n \n // int info = BLMVMSolve(x, nvars);\n \n for (int i = 0; i < nvars; i++) {\n _vl.set(i, x[i]);\n }\n \n return 0;\n }\n }",
"public SASolution getNeighborSolution();",
"public double[] calcEquation(List<List<String>> equations, double[] values, List<List<String>> queries) {\n Map<String, Map<String, Double>> g = new HashMap<>(); // Wrighted Directed Graph (WDG)\n \n // build WDG\n for (int i = 0; i < equations.size(); i++) {\n String x = equations.get(i).get(0);\n String y = equations.get(i).get(1);\n double v = values[i];\n if (!g.containsKey(x)) g.put(x, new HashMap<>()); // g.putIfAbsent(x, new HashMap<>());\n g.get(x).put(y, v);\n if (!g.containsKey(y)) g.put(y, new HashMap<>());\n g.get(y).put(x, 1.0 / v);\n // g.get(a).put(a, 1.0); // not necessary, a/a = a/b * b/c * c/a\n // g.get(b).put(b, 1.0);\n }\n \n double[] ans = new double[queries.size()];\n for (int i = 0; i < queries.size(); i++) {\n String x = queries.get(i).get(0);\n String y = queries.get(i).get(1);\n ans[i] = dfs(g, x, y, new HashSet<String>());\n }\n return ans;\n }",
"public String getSolStr() {\n this.tanSolve();\n return \"x = \" + this.x;\n }",
"private void solveEquation( \tVectorStack<Integer> numbers,\t\t//If the vector stacks aren't referencing the original addresses correctly,\r\n\t\t\t\t\t\t\t\t\tVectorStack<Character> operands )\t//convert this method to return an int, being fed the parameters of two\r\n\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//popped ints and one popped operand char\r\n\t\tint rightValue = \tnumbers.pop();\r\n\t\tint leftValue = \tnumbers.pop();\r\n\t\tchar operand = \t\toperands.pop();\r\n\t\t\r\n\t\tswitch ( operand )\r\n\t\t{\r\n\t\t\tcase '*': \tnumbers.push( leftValue * rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '/':\tnumbers.push( leftValue / rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '+':\tnumbers.push( leftValue + rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '-':\tnumbers.push( leftValue - rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '(':\r\n\t\t\tcase ')':\tSystem.out.println( \"solveEquation called improperly.\"\r\n\t\t\t\t\t\t+ \"Parantheses should be peeked and solveEquation not called on them\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tdefault:\tSystem.out.println( \"Invalid character in operands stack.\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t}//end switch\r\n\t}"
] |
[
"0.6291821",
"0.6204254",
"0.61943144",
"0.6158727",
"0.60347396",
"0.6010942",
"0.59580135",
"0.59397876",
"0.592386",
"0.5904346",
"0.58901274",
"0.58736855",
"0.5872556",
"0.58709455",
"0.58417344",
"0.582979",
"0.58281106",
"0.58271533",
"0.57841045",
"0.5755592",
"0.575253",
"0.57418615",
"0.57279694",
"0.5717528",
"0.57051873",
"0.56920403",
"0.56881243",
"0.56844217",
"0.5661682",
"0.56448376",
"0.558942",
"0.5588436",
"0.5588382",
"0.55577296",
"0.55537355",
"0.55471766",
"0.5538849",
"0.5484056",
"0.5481735",
"0.5473603",
"0.5462285",
"0.54511386",
"0.5434106",
"0.5432581",
"0.5431618",
"0.54294175",
"0.54259133",
"0.5424065",
"0.54194707",
"0.5411578",
"0.54108924",
"0.54026824",
"0.53979564",
"0.53903043",
"0.53866464",
"0.5383574",
"0.53790855",
"0.53767896",
"0.5367311",
"0.5351978",
"0.5346343",
"0.5338919",
"0.53376067",
"0.5306053",
"0.52905476",
"0.5290044",
"0.5284128",
"0.52830994",
"0.52801335",
"0.5270351",
"0.52680254",
"0.52492845",
"0.52386373",
"0.5232135",
"0.5225604",
"0.5218997",
"0.5209011",
"0.5202578",
"0.51997876",
"0.5195313",
"0.5189691",
"0.5189217",
"0.51855624",
"0.5182803",
"0.5182308",
"0.5164227",
"0.5157376",
"0.5156981",
"0.5154306",
"0.5147615",
"0.51423806",
"0.51185715",
"0.5118341",
"0.5114181",
"0.5113301",
"0.5100118",
"0.5097287",
"0.5092691",
"0.5092065",
"0.5089161",
"0.50854874"
] |
0.0
|
-1
|
calculate Logarithm of the max norm of a A
|
public static double [] logarithm (double [][]x){
double [] log=new double [x.length-1];
for(int i=0; i<x.length-1;i++){
double[] xk1=x[i+1];
double[] xk=x[i];
log[i]=Math.log10(Math.max( Math.abs(xk1[0] - xk[0]), Math.abs(xk1[1] - xk[1]) ));
}
return log;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static double log(double a){ \n // migrated from jWMMG - the origin of the algorithm is not known.\n if (Double.isNaN(a) || a < 0) {\n return Double.NaN;\n } else if (a == Double.POSITIVE_INFINITY) {\n return Double.POSITIVE_INFINITY;\n } else if (a == 0) {\n return Double.NEGATIVE_INFINITY;\n }\n \n long lx;\n if (a > 1) {\n lx = (long)(0.75*a); // 3/4*x\n } else {\n lx = (long)(0.6666666666666666666666666666666/a); // 2/3/x\n }\n \n int ix;\n int power;\n if (lx > Integer.MAX_VALUE) {\n ix = (int) (lx >> 31);\n power = 31;\n } else {\n ix = (int) lx;\n power = 0;\n }\n \n while (ix != 0) {\n ix >>= 1;\n power++;\n }\n \n double ret;\n if (a > 1) {\n ret = lnInternal(a / ((long) 1<<power)) + power * LN_2;\n } else {\n ret = lnInternal(a * ((long) 1<<power)) - power * LN_2;\n }\n return ret;\n }",
"float norm();",
"public double elementMaxAbs() {\n return ops.elementMaxAbs(mat);\n }",
"public double oneNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}",
"public static double log(double x)\n\t{\n\t if (x < 1.0)\n\t return -log(1.0/x);\n\t \n\t double m=0.0;\n\t double p=1.0;\n\t while (p <= x) {\n\t m++;\n\t p=p*2;\n\t }\n\t \n\t m = m - 1;\n\t double z = x/(p/2);\n\t \n\t double zeta = (1.0 - z)/(1.0 + z);\n\t double n=zeta;\n\t double ln=zeta;\n\t double zetasup = zeta * zeta;\n\t \n\t for (int j=1; true; j++)\n\t {\n\t n = n * zetasup;\n\t double newln = ln + n / (2 * j + 1);\n\t double term = ln/newln;\n\t if (term >= LOWER_BOUND && term <= UPPER_BOUND)\n\t return m * ln2 - 2 * ln;\n\t ln = newln;\n\t }\n\t}",
"private static double lg(double x) {\n return Math.log(x) / Math.log(2.0);\n }",
"static double[] normalizeLogP(double[] lnP){\n double[] p = new double[lnP.length];\n \n // find the maximum\n double maxLnP = lnP[0];\n for (int i=1 ; i<p.length ; ++i){\n if (lnP[i] > maxLnP){\n maxLnP = lnP[i];\n }\n }\n \n // subtract the maximum and exponentiate\n // sum is guaranted to be >= 1.0;\n double sum = 0.0;\n for (int i=0 ; i<p.length ; ++i){\n p[i] = Math.exp(lnP[i] - maxLnP);\n if (!Double.isFinite(p[i])){\n p[i] = 0.0;\n }\n sum = sum + p[i];\n }\n \n // normalize sum to 1\n for (int i=0 ; i<p.length ; ++i){\n p[i] = p[i]/sum;\n }\n return p;\n }",
"public double logDeterminant(){\r\n \tint n = this.nrow;\r\n \tif(n!=this.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble det = 0.0D;\r\n \tMatrix ludmat = this.luDecomp();\r\n\r\n\t \tdet = ludmat.dswap;\r\n\t \tdet=Math.log(det);\r\n \tfor(int j=0; j<n; j++){\r\n \t\tdet += Math.log(ludmat.matrix[j][j]);\r\n \t}\r\n \treturn det;\r\n \t}",
"public double maxOfAbsoluteValues(double[] arr) {\n return 0;\n }",
"public double infinityNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}",
"public static double lg(double x) {\n return Math.log(x) / Math.log(2);\n }",
"public static double sumInLogDomain(double[] logs) {\n\t\tdouble maxLog = logs[0];\n\t\tint idxMax = 0;\n\t\tfor (int i = 1; i < logs.length; i++) {\n\t\t\tif (maxLog < logs[i]) {\n\t\t\t\tmaxLog = logs[i];\n\t\t\t\tidxMax = i;\n\t\t\t}\n\t\t}\n\t\t// now calculate sum of exponent of differences\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < logs.length; i++) {\n\t\t\tif (i == idxMax) {\n\t\t\t\tsum++;\n\t\t\t} else {\n\t\t\t\tsum += Math.exp(logs[i] - maxLog);\n\t\t\t}\n\t\t}\n\t\t// and return log of sum\n\t\treturn maxLog + Math.log(sum);\n\t}",
"private double logSumExp(double x[]) {\n double maxx = Double.NEGATIVE_INFINITY;\n for (double d : x) {\n if (d > maxx) { maxx = d; }\n }\n double sum = 0.0;\n for (double d : x) {\n sum += Math.exp(d-maxx);\n }\n return maxx + Math.log(sum);\n }",
"public static native double norm(double a[]);",
"public static double logDeterminant(Matrix amat){\r\n \tint n = amat.nrow;\r\n \tif(n!=amat.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble det = 0.0D;\r\n \tMatrix ludmat = amat.luDecomp();\r\n\r\n\t \tdet = ludmat.dswap;\r\n\t \tdet=Math.log(det);\r\n \tfor(int j=0; j<n; j++){\r\n \t\tdet += Math.log(ludmat.matrix[j][j]);\r\n \t}\r\n \t\treturn det;\r\n \t}",
"float norm2();",
"public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }",
"private static void normalizeFromLog10(double[] array) {\n double maxValue = findMaxEntry(array).first;\n for (int i = 0; i < array.length; i++)\n array[i] = Math.pow(10, array[i] - maxValue);\n \n // normalize\n double sum = 0.0;\n for (int i = 0; i < array.length; i++)\n sum += array[i];\n for (int i = 0; i < array.length; i++)\n array[i] /= sum;\n }",
"public static Vector<Double> norm(Vector<Double> a) {\n\t\tdouble x = TransEInitializer.vec_len(a);\n\t\tif (x > 1){\n\t\t\t\n\t\t\tfor (int ii = 0; ii < a.size(); ii++)\n\t\t\t\ta.set(ii, a.get(ii) / x);\n\t\t\n\n\t\t}\n\n//\t\tif(x > 1)\n//\t\t\treturn true;\n//\t\treturn false;\n\t\treturn a;\n\t}",
"public double l1_norm()\r\n {\r\n double sum = 0.0;\r\n for (Double c : this.values())\r\n sum += Math.abs(c);\r\n\r\n return sum;\r\n }",
"private double calculaz(double v) { //funcion de densidad de probabilidad normal\n double N = Math.exp(-Math.pow(v, 2) / 2) / Math.sqrt(2 * Math.PI);\n return N;\n }",
"public static double logarit(double value, double base) {\n\t\tif (base == Math.E)\n\t\t\treturn Math.log(value);\n\t\telse if (base == 10)\n\t\t\treturn Math.log10(value);\n\t\telse\n\t\t\treturn Double.NaN;\n\t\t\t\n\t}",
"public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}",
"public static Matrix logN(Matrix matrix, double base)\n {\n double b = 1.0;\n double[][] temp = matrix.getArray();\n int row = matrix.getRowDimension();\n int col = matrix.getColumnDimension();\n double[][] result = new double[row][col];\n if (base <= 0)\n {\n throw new IllegalArgumentException(\n \"logN : Negative or zero base result in a Complex Number or negative Infinity.\");\n }\n\n b = Math.log(base);\n for (int i = 0; i < row; i++)\n {\n for (int j = 0; j < col; j++)\n {\n if (temp[i][j] == 0.0)\n {\n result[i][j] = Double.NEGATIVE_INFINITY;\n }\n else if (temp[i][j] < 0.0)\n {\n result[i][j] = Double.NaN;\n }\n else\n {\n result[i][j] = Math.log(temp[i][j]) / b;\n }\n }// end for\n }// end for\n return new Matrix(result);\n }",
"static public int logaritam2(int x) {\r\n\t\tint lg = 0;\r\n\t\twhile(x != 1) {\r\n\t\t\tx /= 2;\r\n\t\t\tlg++;\r\n\t\t}\r\n\t\treturn lg;\r\n\t}",
"public double logZero(double x);",
"private static double entropy(Comparable[] a) {\n Arrays.sort(a);\n \n int N = a.length;\n int f = 1;\n double H = 0.0;\n \n for (int i = 1; i < N; i++) {\n if (a[i].compareTo(a[i-1]) == 0) {\n f++;\n }\n else {\n H = H + 1.0 * f/N * lg(1.0 * f/N);\n f = 1;\n }\n }\n H = H + 1.0 * f/N * lg(1.0 * f/N);\n H = H/lg(N);\n return (H < 0.0) ? -H : H; //Conditional operator \"?\"\n }",
"public static float nlog(float x) {\n if (x == 1) return 0;\n\n float agm = 1f;\n float g1 = 1 / (x * (1 << (DEFAULT_ACCURACY - 2)));\n float arithmetic;\n float geometric;\n\n for (int i = 0; i < 5; i++) {\n arithmetic = (agm + g1) / 2f;\n geometric = BAKSH_sqrt(agm * g1);\n agm = arithmetic;\n g1 = geometric;\n }\n\n return (PI / 2f) * (1 / agm) - DEFAULT_ACCURACY * LN2;\n }",
"public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}",
"public double calculateMaximumAverageDegree(double gamma, int max_dist_length)\n\t{\n\t\tdouble ak = zeta(gamma-1,1)/zeta(gamma,1);\n\t\t\n\t\t ak = (zeta(gamma-1,max_dist_length)-1)/(zeta(gamma,max_dist_length)-1);\n\t\treturn ak;\n\t}",
"public double log2Prior(Vector[] betas) {\n double log2Prior = 0.0;\n for (Vector beta : betas)\n log2Prior += log2Prior(beta);\n return log2Prior;\n }",
"public static double sumLogProb (double a, double b)\n\t{\n\t\tif (a == Double.NEGATIVE_INFINITY) {\n\t\t\tif (b == Double.NEGATIVE_INFINITY)\n\t\t\t\treturn Double.NEGATIVE_INFINITY;\n return b;\n\t\t}\n\t\telse if (b == Double.NEGATIVE_INFINITY)\n\t\t\treturn a;\n\t\telse if (a > b)\n\t\t\treturn a + Math.log (1 + Math.exp(b-a));\n\t\telse\n\t\t\treturn b + Math.log (1 + Math.exp(a-b));\n\t}",
"@Override\n public int iamax(INDArray x) {\n return NativeBlas.isamax(x.length(), x.data(), x.offset(), x.stride()[0]) - 1;\n }",
"private long getAbsMax() {\n return Math.max(Math.abs(Visualizer.getLowerBound().get()),\n Visualizer.getUpperBound().get());\n }",
"public double norm2();",
"private static double lnInternal(double x){\n double a = 1 - x;\n double s = -a;\n double t = a;\n \n for (int i = 2; i < 25; i++){\n t = t*a;\n s -= t/i;\n }\n return s;\n }",
"public static double fro(Zmat A) {\n return Norm.fro(A, 1, A.nr, 1, A.nc);\n }",
"@SuppressWarnings(\"deprecation\")\n\t@Override\n public double calculateLogP() {\n logP = 0.0;\n // jeffreys Prior!\n if (jeffreys) {\n logP += -Math.log(getChainValue(0));\n }\n for (int i = 1; i < chainParameter.getDimension(); i++) {\n final double mean = getChainValue(i - 1);\n final double x = getChainValue(i);\n\n if (useLogNormal) {\n\t final double sigma = 1.0 / shape; // shape = precision\n\t // convert mean to log space\n\t final double M = Math.log(mean) - (0.5 * sigma * sigma);\n\t logNormal.setMeanAndStdDev(M, sigma);\n\t logP += logNormal.logDensity(x);\n } else {\n final double scale = mean / shape;\n gamma.setBeta(scale);\n logP += gamma.logDensity(x);\n }\n }\n return logP;\n }",
"public double getLogProbBestPath(float[][] sequence) {\n\t\t// cache log. transitions\n\t\tif (trans_log == null) {\n\t\t\ttrans_log = new double[N][N];\n\t\t\tfor (int i = 0; i < N; ++i) {\n\t\t\t\tfor (int j = 0; j < N; ++j) {\n\t\t\t\t\ttrans_log[i][j] = Math.log(FLOAT_MIN_VALUE + trans[i][j]);\n\t\t\t\t\tassert trans_log[i][j] < 1e-3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdouble[] max_log_prob = new double[N];\n\n\t\tfor (int i = 0, sequence_last = sequence.length - 1; i < N; ++i)\n\t\t\tmax_log_prob[i] = dist[i].getLogProb(sequence[sequence_last]);\n\n\t\tfor (int r = sequence.length - 2; r >= 0; --r) {\n\t\t\tdouble[] max_log_prob_new = new double[N];\n\t\t\tfloat[] vector = sequence[r];\n\n\t\t\tfor (int i = 0; i < N; ++i) {\n\t\t\t\tmax_log_prob_new[i] = dist[i].getLogProb(vector);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < N; ++i) {\n\t\t\t\tdouble best_path = Double.NEGATIVE_INFINITY;\n\t\t\t\tdouble[] trans_log_i = trans_log[i];\n\t\t\t\tfor (int j = 0; j < N; ++j)\n\t\t\t\t\tbest_path = Math.max(\n\t\t\t\t\t\t\tbest_path,\n\t\t\t\t\t\t\ttrans_log_i[j] + max_log_prob[j]);\n\n\t\t\t\tassert!Double.isNaN(best_path);\n\t\t\t\tassert!Double.isInfinite(best_path);\n\n\t\t\t\tmax_log_prob_new[i] += best_path;\n\t\t\t}\n\n\t\t\tmax_log_prob = max_log_prob_new;\n\t\t}\n\n\t\tif (init != null) {\n\t\t\tfor (int i = 0; i < N; ++i)\n\t\t\t\tmax_log_prob[i] += Math.log(init[i]);\n\t\t}\n\n\t\t// find and return maximium\n\t\treturn Function.max(max_log_prob);\n\t}",
"public double logResult(double f) {\n double r;\n try {\n r = 20 * Math.log10(result(f));\n } catch (Exception e) {\n r = -100;\n }\n if (Double.isInfinite(r) || Double.isNaN(r)) {\n r = -100;\n }\n return r;\n }",
"static private float exact_log(float x) {\n \t\tif (!(x > 0f)) {\n \t\t\treturn Float.NaN;\n \t\t}\n \t\t//\n \t\tfloat f = 0f;\n \t\t//\n \t\tint appendix = 0;\n \t\twhile ((x > 0f) && (x <= 1f)) {\n \t\t\tx *= 2f;\n \t\t\tappendix++;\n \t\t}\n \t\t//\n \t\tx /= 2f;\n \t\tappendix--;\n \t\t//\n \t\tfloat y1 = x - 1f;\n \t\tfloat y2 = x + 1f;\n \t\tfloat y = y1 / y2;\n \t\t//\n \t\tfloat k = y;\n \t\ty2 = k * y;\n \t\t//\n \t\tfor (long i = 1; i < 50; i += 2) {\n \t\t\tf += k / i;\n \t\t\tk *= y2;\n \t\t}\n \t\t//\n \t\tf *= 2f;\n \t\tfor (int i = 0; i < appendix; i++) {\n \t\t\tf += FLOAT_LOGFDIV2;\n \t\t}\n \t\t//\n //\t\tlogger.info(\"exit _log\" + f);\n \t\treturn f;\n \t}",
"double getMax();",
"double getMax();",
"public static int argmax(double[] array) {\n\t\tdouble max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"public static double max(double[] array) {\n\t\tif (array.length==0) return Double.NEGATIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.max(re, array[i]);\n\t\treturn re;\n\t}",
"public double getMaxGradientMagnitude() {\r\n if (maxmag >= 0) {\r\n return maxmag;\r\n } else {\r\n double magnitude = data[0].mag;\r\n for (int i = 0; i < data.length; i++) {\r\n magnitude = data[i].mag > magnitude ? data[i].mag : magnitude;\r\n }\r\n maxmag = magnitude;\r\n return magnitude;\r\n }\r\n }",
"public static float log(float base, float arg) {\n return (nlog(arg)) / nlog(base);\n }",
"public double getAltMax() {\n\t\treturn altMax;\n\t}",
"public final double getMax() {\r\n\t\treturn this.m_max;\r\n\t}",
"public static Matrix logN(double base, Matrix matrix)\n {\n Matrix result = null;\n try\n {\n result = logN(matrix, base);\n }\n catch (Exception ex)\n {\n }\n return result;\n }",
"private void calculateMaxTemperatureNormalisation() {\n maxTemperatureNormalisation = (temperatureMax - temperatureMin) / 2;\n }",
"public static double logBase2(double x){\n return Math.log(x)/Math.log(2);\n }",
"public float nextLog ()\n {\n // Generate a non-zero uniformly-distributed random value.\n float u;\n while ((u = GENERATOR.nextFloat ()) == 0)\n {\n // try again if 0\n }\n\n return (float) (-m_fMean * Math.log (u));\n }",
"private static double minMaxNormalization(final double value) {\n return (((value - Configuration.ACTUAL_MIN) / (Configuration.ACTUAL_MAX - Configuration.ACTUAL_MIN)) * (Configuration.NORMALIZED_MAX - Configuration.NORMALIZED_MIN)) + Configuration.NORMALIZED_MIN;\n }",
"public double getMaximumScale() {\n\t\treturn 0;\n\t}",
"public double getMaxDoubleValue();",
"public static double max(double a, double... vals) {\n\t\tdouble maxVal = a;\n\t\tfor (double v : vals) {\n\t\t\tif (v > maxVal) {\n\t\t\t\tmaxVal = v;\n\t\t\t}\n\t\t}\n\t\treturn maxVal;\n\t}",
"private double lnGamma(double x) \n\t{\n\t\tdouble f = 0.0, z;\n\t\tif (x < 7) \n\t\t{\n\t\t\tf = 1;\n\t\t\tz = x - 1;\n\t\t\twhile (++z < 7)\n\t\t\t{\n\t\t\t\tf *= z;\n\t\t\t}\n\t\t\tx = z;\n\t\t\tf = -Math.log(f);\n\t\t}\n\t\tz = 1 / (x * x);\n\t\treturn\tf + (x - 0.5) * Math.log(x) - x + 0.918938533204673 +\n\t\t\t\t( ( ( -0.000595238095238 * z + 0.000793650793651 ) * z \n\t\t\t\t\t -0.002777777777778) * z + 0.083333333333333 ) / x;\n\t}",
"public static double getMax(double[] arr) \n { \n double max = arr[0]; \n for(int i=1;i<arr.length;i++) \n { \n if(arr[i]>max) \n max = arr[i]; \n } \n return max; \n }",
"static void normalize(double[][] plane) {\n int rows = plane.length;\n int cols = plane[0].length;\n\n //Begin by converting all negative values to positive\n // values. This is equivalent to the computation of\n // the magnitude for purely real data.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] < 0) {\n plane[row][col] = -plane[row][col];\n }//end if\n }//end inner loop\n }//end outer loop\n\n //Convert the values to log base 10 to preserve the\n // dynamic range of the plotting system. Set negative\n // values to 0.\n\n //First eliminate or change any values that are\n // incompatible with log10 method.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] == 0.0) {\n plane[row][col] = 0.0000001;\n } else if (plane[row][col] == Double.NaN) {\n plane[row][col] = 0.0000001;\n } else if (plane[row][col] ==\n Double.POSITIVE_INFINITY) {\n plane[row][col] = 9999999999.0;\n }//end else\n }//end inner loop\n }//end outer loop\n\n //Now convert the data to log base 10 setting all\n // negative results to 0.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n plane[row][col] = log10(plane[row][col]);\n if (plane[row][col] < 0) {\n plane[row][col] = 0;\n }//end if\n }//end inner loop\n }//end outer loop\n\n\n //Now set everything below X-percent of the maximum\n // value to X-percent of the maximum value where X is\n // determined by the value of scale.\n double scale = 1.0 / 7.0;\n //First find the maximum value.\n double max = Double.MIN_VALUE;\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] > max) {\n max = plane[row][col];\n }//end if\n }//end inner loop\n }//end outer loop\n\n //Now set everything below X-percent of the maximum to\n // X-percent of the maximum value and slide\n // everything down to cause the new minimum to be\n // at 0.0\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] < scale * max) {\n plane[row][col] = scale * max;\n }//end if\n plane[row][col] -= scale * max;\n }//end inner loop\n }//end outer loop\n\n //Now scale the data so that the maximum value is 255.\n\n //First find the maximum value\n max = Double.MIN_VALUE;\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] > max) {\n max = plane[row][col];\n }//end if\n }//end inner loop\n }//end outer loop\n //Now scale the data.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n plane[row][col] = plane[row][col] * 255.0 / max;\n }//end inner loop\n }//end outer loop\n\n }",
"public double frobeniusNorm(){\r\n \tdouble norm=0.0D;\r\n \tfor(int i=0; i<this.ncol; i++){\r\n \t\tfor(int j=0; j<this.nrow; j++){\r\n \t\tnorm=hypot(norm, Math.abs(matrix[i][j]));\r\n \t\t}\r\n \t}\r\n \treturn norm;\r\n \t}",
"public int maxWidthRamp(int[] A) {\r\n int n = A.length, res = 0;\r\n Stack<Integer> s = new Stack<Integer>();\r\n for (int i = 0; i < n; i++)\r\n if (s.isEmpty() || A[s.peek()] > A[i])\r\n s.push(i);\r\n for (int i = n - 1; i > res; i--)\r\n while (!s.isEmpty() && A[s.peek()] <= A[i])\r\n res = Math.max(res, i - s.pop());\r\n return res;\r\n }",
"Double getMaximumValue();",
"private static double db2(double r, double i, double maxSquared) {\n return 5.0 * Math.log10((r * r + i * i) / maxSquared);\n }",
"public double max() {\n\t\tif (count() > 0) {\n\t\t\treturn _max.get();\n\t\t}\n\t\treturn 0.0;\n\t}",
"@Override\n public int iamax(IComplexNDArray x) {\n return NativeBlas.icamax(x.length(), x.data(), x.offset(), 1) - 1;\n }",
"public double getLogProb(double value) {\n checkHasParams();\n if (value < 0) {\n return Double.NEGATIVE_INFINITY;\n } else {\n return logLambda - lambda * value;\n }\n }",
"public double getMaximumDistance() {\n double l = 0;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.max(l, distances[i]);\n }\n\n return l;\n }",
"public static int secondaryArgmax(double[] a) {\n\t\tint mi = argmax(a);\n\t\t// scan left until increasing\n\t\tint i;\n\t\tfor (i=mi-1; i>=0 && a[i]<=a[i+1]; i--);\n\t\tint l = argmax(a,0,i+1);\n\t\tfor (i=mi+1; i<a.length && a[i]<=a[i-1]; i++);\n\t\tint r = argmax(a,i,a.length);\n\t\tif (l==-1) return r;\n\t\tif (r==-1) return l;\n\t\treturn a[l]>=a[r]?l:r;\n\t}",
"public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}",
"public static int LIS(int[] A) {\n // TODO\n if(A.length == 0){\n return 0;\n }\n int[] DP = new int[A.length];\n for(int i = 0; i < A.length; i++){\n DP[i] = -1;\n }\n int max = 1;\n for(int j = A.length - 1; j >= 0; j--){\n int length = LIShelper(A,j,DP);\n if (length > max){\n max = length;\n }\n }\n return max;\n }",
"double getRight(double max);",
"private double log2(double number){\n return (Math.log(number) / Math.log(2));\n }",
"public double max() {\n return max(0.0);\n }",
"public static double denormalise(double out, double min, double max) {\n if (out < 0.0) {\n return min;\n } else if (out > 1.0) {\n return max;\n } else {\n return (min == max) ? min : out * (max - min) + min;\n }\n }",
"public float calculateRLogF(Vector<String> words) {\n\t\tdouble targetExtractedCount = 0;\n\t\tfor (String word : words) {\n\t\t\tdouble count = ObjectInfoWrapper.getCount(\n\t\t\t\t\tthis.wordCountWrappers, word);\n\t\t\ttargetExtractedCount += count;\n\t\t}\n\t\tdouble score = (targetExtractedCount / this.totalWordCount)\n\t\t\t\t* Math.log(targetExtractedCount);\n\t\treturn new Float(score).floatValue();\n\t}",
"private static double log2(double x) {\n return Math.log(x) / Math.log(2);\n }",
"static double getMax(double[] array) {\n\t\tif (array.length < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Arrays start from index 0\");\n\t\t}\n\t\tdouble max = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (max < array[i]) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public static double standardNormDensity(double x) {\r\n\t\t// return standardNormDistribution.density(x);\r\n\t\treturn Math.exp(-x * x / 2) / Math.sqrt(2 * Math.PI);\r\n\t}",
"double getMax() {\n\t\t\treturn value_max;\n\t\t}",
"public int maxProduct(int[] A) {\n if(A == null || A.length == 0){\n return 0;\n }\n int maxLocal = A[0];\n int minLocal = A[0];\n int maxGlobal = A[0];\n for(int i=1; i<A.length; i++){\n int temp = maxLocal;\n maxLocal = Math.max(A[i], Math.max(maxLocal*A[i], minLocal*A[i]));\n minLocal = Math.min(A[i], Math.min(temp*A[i], minLocal*A[i]));\n maxGlobal = Math.max(maxGlobal, maxLocal);\n }\n return maxGlobal;\n }",
"public double log(double d){\r\n\r\n\t\tif(d == 0){\r\n\t\t\treturn 0.0;\r\n\t\t} else {\r\n\t\t\treturn Math.log(d)/Math.log(2);\r\n\t\t}\r\n\r\n\t}",
"private double entropy(double[][] beliefs) {\n\t\tdouble sum = 0;\n\t\tdouble log2 = Math.log(2);\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tif (beliefs[x][y] > 0) // because we can't take log of 0 (but we can skit around it because we would be multiplying it by 0 anyway so even if it existed it wouldn't contribute to the sum)\n\t\t\t\t\tsum += beliefs[x][y] * (Math.log(beliefs[x][y])/log2); // because logb(n) = log(n)/log(b)\n\t\t\t}\n\t\t}\n\n\t\treturn -sum;\n\t}",
"public static double getArrayListDoubleMax(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"public double getApproxEmax() {\n try {\n return computeE(getTmax());\n }\n catch (Exception e) {\n return 0x0.0p0;\n }\n }",
"public double getMaxVal() {\n return maxVal;\n }",
"public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}",
"public static double exp(double a)\n\t{\n\t boolean neg = a < 0 ? true : false;\n\t if (a < 0)\n a = -a;\n int fac = 1;\n \t double term = a;\n \t double sum = 0;\n \t double oldsum = 0;\n \t double end;\n\n \t do {\n \t oldsum = sum;\n \t sum += term;\n \n \t fac++;\n \n \t term *= a/fac;\n\t end = sum/oldsum;\n \t } while (end < LOWER_BOUND || end > UPPER_BOUND);\n\n sum += 1.0f;\n \n\t return neg ? 1.0f/sum : sum;\n\t}",
"private static final int calcLog (int value)\n {\n // Shortcut for uncached_data_length\n if (value <= 1023 )\n {\n return MIN_CACHE;\n }\n else\n {\n return (int)(Math.floor (Math.log (value) / LOG2));\n }\n }",
"public double max() {\n/* 323 */ Preconditions.checkState((this.count != 0L));\n/* 324 */ return this.max;\n/* */ }",
"public static double getMax(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i])\r\n\t\t\t\tmax = array[i];\r\n\t\treturn max;\r\n\t}",
"public static float norm(float[] array) {\n float retval = 0;\n for (int i = 0; i < array.length; i++) {\n retval += array[i] * array[i];\n }\n return (float) Math.sqrt(retval);\n }",
"public abstract double log2Prior(double betaForDimension, int dimension);",
"public double getMaximumDouble() {\n/* 255 */ return this.max;\n/* */ }",
"public static Matrix log(Matrix matrix)\n {\n double base = Math.exp(1.0);\n return logN(base, matrix);\n }",
"public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }",
"double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}",
"public static double ludcmp(double a[][], int indx[])\n\t\t\t{\n\tint n = a.length;\n\tint i = 0, imax = 0, j = 0, k = 0;\n\tdouble big, dum, sum, temp;\n\tdouble d = 1.0;\n\tdouble vv[] = new double[n];\n\tfor (i = 0; i < n; i++) {\n big = 0.0;\n for (j = 0; j < n; j++)\n if ((temp = Math.abs(a[i][j])) > big)\n\t\tbig = temp;\n\n\tif (big == 0.0) {\n try {\n // no non-zero largest element\n\n throw new NRException(\"Error: Singular linearized system. Computation cannot proceed.\");\n } catch (NRException ex) {\n ex.printStackTrace();\n }\n\n\t}\n\tvv[i] = 1.0 / big;\n }\n\n for (j = 0; j < n; j++) {\n\tfor (i = 0; i < j; i++) {\n sum = a[i][j];\n for (k = 0; k < i; k++)\n sum -= (a[i][k] * a[k][j]);\n a[i][j] = sum;\n\t}\n\tbig = 0.0;\n\tfor (i = j; i < n; i++) {\n sum = a[i][j];\n for (k = 0; k < j; k++)\n sum -= (a[i][k] * a[k][j]);\n a[i][j] = sum;\n\t\n if ((dum = vv[i] * Math.abs(sum)) >= big) {\n\t\tbig = dum;\n\t\timax = i;\n\t\t}\n\t}\n\tif (j != imax) {\n\t\tfor (k = 0; k < n; k++) {\n\t\tdum = a[imax][k];\n\t\ta[imax][k] = a[j][k];\n\t\ta[j][k] = dum;\n }\n d = -d;\n vv[imax] = vv[j];\n }\n\tindx[j] = imax;\n\t// replace zero values with a nigh zero value so that\n\t// we don't get any divisions by zero.\n if (a[j][j] == 0.0)\n\t a[j][j] = TINY;\n\n\tif (j != n-1) {\n\tdum = 1.0 / (a[j][j]);\n\tfor (i = j + 1; i < n; i++)\n\t a[i][j] *= dum;\n\t}\n }\n\treturn d;\n\t}",
"Double maxOfDisplacements(ArrayList<Double> dispA){\r\n\t\tObject minvalobj = Collections.min(dispA);\r\n\t\tObject maxvalobj = Collections.max(dispA);\r\n\t\tIJ.log(\"Max displacement\" + maxvalobj);\r\n\t\tIJ.log(\"Min displacement\" + minvalobj);\r\n\t\tdouble minval = (Double) minvalobj;\r\n\t\tdouble maxval = (Double) maxvalobj;\t\t\r\n\t\tdouble maxdisp = maxval;\r\n\t\tif (Math.abs(maxval) < Math.abs(minval)) \r\n\t\t\tmaxdisp = minval;\r\n\t\telse\r\n\t\t\tmaxdisp = maxval;\t\t\r\n\t\treturn maxdisp;\r\n\t}",
"public DoubleMatrix1D getDeltaMax() { return deltaMax_; }"
] |
[
"0.6744831",
"0.6000833",
"0.59893006",
"0.59658045",
"0.59643906",
"0.59132344",
"0.5851904",
"0.5783178",
"0.5773512",
"0.5771717",
"0.57579565",
"0.5685206",
"0.56455153",
"0.56050277",
"0.5591484",
"0.5581837",
"0.55750835",
"0.55261666",
"0.5522809",
"0.55208373",
"0.55129373",
"0.5511876",
"0.53879726",
"0.5371839",
"0.5346894",
"0.5344466",
"0.5342494",
"0.5334931",
"0.53309053",
"0.53280437",
"0.5304431",
"0.5280193",
"0.52723044",
"0.5268594",
"0.5262743",
"0.5234018",
"0.52294683",
"0.52243906",
"0.522342",
"0.52023524",
"0.51935446",
"0.51788926",
"0.51788926",
"0.51770926",
"0.5168702",
"0.5164356",
"0.5163733",
"0.51599866",
"0.51546115",
"0.51532525",
"0.51427877",
"0.5128308",
"0.5124672",
"0.51223576",
"0.5118117",
"0.5109052",
"0.51053566",
"0.51033545",
"0.50965345",
"0.50956583",
"0.50921184",
"0.50897455",
"0.5086676",
"0.50865257",
"0.50850475",
"0.50811535",
"0.5076733",
"0.50720805",
"0.5062992",
"0.5057156",
"0.5055108",
"0.5054571",
"0.50513405",
"0.5047645",
"0.50412464",
"0.5039556",
"0.5038841",
"0.50380564",
"0.5036805",
"0.50345725",
"0.5028093",
"0.5027801",
"0.5027078",
"0.5021888",
"0.50196373",
"0.5015874",
"0.50149673",
"0.5013965",
"0.50109273",
"0.50079805",
"0.50040334",
"0.4997426",
"0.4994343",
"0.49867642",
"0.4986209",
"0.49838987",
"0.49780673",
"0.49780566",
"0.4977691",
"0.49743286"
] |
0.5848683
|
7
|
Lectura del fitxer de text.
|
public Vector<String> LecturaFitxer()
{
Vector<String> filas= new Vector<String>();
if (this.ftxt.GetFile().exists())
{
try
{
BufferedReader br=this.ftxt.ObrirFitxerLectura();
while (br.ready())
{
filas.add(br.readLine());
}
this.ftxt.TancarFitxerDeLectura(br);
}
catch (IOException e)
{
GestorDiscConstants.PS(GestorDiscConstants.ERROR_IO);
}
}
return filas;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static String textInicial(){\n\t\treturn \"******** Joc del SENKU ********\\n\"\n\t\t\t\t+ \"Es tracta d'eliminar totes les fitxes 'X' del taulell menys una.\\n\"\n\t\t\t\t+ \"Per fer-ho qualsevol fitxa pot saltar una altra fitxa i col·locar/-se a una posició buida.\\n\"\n\t\t\t\t+ \"La fitxa saltada s'elimina del taulell.\\n\"\n\t\t\t\t+ \"Els moviments només poden ser horitzontals o verticals, mai diagonals.\\n\";\n\t}",
"private void LoadContent() {\n\t\ttry { // Récupération de la police d'écriture\n\t\t\tfont1 = Font.createFont(Font.TRUETYPE_FONT, new File(\"res/polices/Coalition.ttf\"));\n\t\t\tfont2 = Font.createFont(Font.TRUETYPE_FONT, new File(\"res/polices/13_Misa.ttf\"));\n\t\t} catch (final Exception err) {\n\t\t\tSystem.err.println(\"Police(s) d'écriture introuvable(s) !\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public Fuentes () {\n File filearcade = new File (RUTA_ARCADE_FONT);\n File filechess = new File (RUTA_CHESS_FONT);\n File fileinvaders = new File (RUTA_INVADERS_FONT);\n File filesafety = new File (RUTA_SAFETY_FONT);\n\n try {\n setArcadeFont (Font.createFont (Font.TRUETYPE_FONT, filearcade));\n setChessFont (Font.createFont (Font.TRUETYPE_FONT, filechess));\n setInvadersFont (Font.createFont (Font.TRUETYPE_FONT, fileinvaders));\n setSafetyFont (Font.createFont (Font.TRUETYPE_FONT, filesafety));\n\n } catch (FontFormatException | IOException e) {\n e.printStackTrace ();\n }\n }",
"public void leseTextEin()\r\n\t{\n\t\tif( this.text != \"\" )\r\n\t\t\treturn;\r\n\t\t\r\n\t StringBuffer buffer = new StringBuffer();\r\n\t BufferedReader input = null;\r\n\t \r\n\t try \r\n\t {\r\n\t \tinput = new BufferedReader( new FileReader(this.dateipfad) );\r\n\t \tString line = null; \r\n\t \twhile ((line=input.readLine()) != null)\r\n\t \t{\r\n\t \t\tbuffer.append(line); \r\n\t \t\tbuffer.append(System.getProperty(\"line.separator\"));\r\n\t \t}\r\n\t }\r\n\t catch (IOException ex)\r\n\t { ex.printStackTrace(); }\r\n\t finally \r\n\t {\r\n\t \ttry\r\n\t \t{\r\n\t \t\tif (input!= null) \r\n\t \t\t\tinput.close();\r\n\t \t}\r\n\t \tcatch (IOException ex)\r\n\t \t{ ex.printStackTrace(); }\r\n\t }\r\n\t this.text = buffer.toString();\r\n\t}",
"private void get_text() {\n InputStream inputStream = JsonUtil.class.getClassLoader().getResourceAsStream(\"data.txt\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n StringBuilder sb = new StringBuilder();\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n this.text = sb.toString().trim();\n }",
"public InstrutorCadastrarTela() {\n initComponents();\n //Limite de caracateres e apenas caracteres permitidos\n jTextFieldNome.setDocument(new classesBasicas.CaracterLimitePermitido(60));\n //Limitando os caracteres para (N), independende de ser numero ou letras\n jTextFieldRg.setDocument(new classesBasicas.JTextFieldLimite(20)); \n }",
"private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\"));\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n TextureRegion region = new TextureRegion(texture);\n display = new BitmapFont(Gdx.files.internal(\"Text/item.fnt\"), region, false);\n display.setUseIntegerPositions(false);\n display.setColor(Color.BLACK);\n }",
"public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"public Lectura(String libro) {\n this.libro = libro;\n }",
"public interface Text {\n\n String HELP = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP = \"Lasst euch weiterhin feiern! \";\n String FALLBACK = \"Leider konnte der Herr dich nicht verstehen \";\n\n String PICOLO_START = \"Willkommen bei Picolo! Möchtest du ein neues Spiel starten? \";\n String[] ANZAHL_SPIELER = {\n \"Wie viele Spieler spielen mit?\",\n \"Nenne mir die Anzahl der teilnehmenden Spieler\",\n \"Wie viele Spieler gibt es heute?\"\n };\n String[] SPIELER_NAME_FRAGEN = {\n \"Nenne mir deinen Namen Spieler \",\n \"Bitte sage mir deinen Namen Spieler \",\n \"Sag mir bitte deinen Namen Spieler \"\n };\n String NAECHSTE_AUFGABE = \"Wollt ihr die nächste Aufgabe Wissen? \";\n String ERSTE_ANWEISUNG = \"Alles klar, Los geht´s! \";\n String WIEDERHOLEN_FEHLER = \"Das Spiel wurde noch nicht gestartet. Deswegen kann ich nichts wiederholen. Bitte starte vorher das Spiel. \";\n\n //SSML Aussprache\n\n /**TODO\n * SSML Text bearbeiten\n */\n String HELP_SSML = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP_SSML = \"Lasst euch weiterhin feiern! \";\n String FALLBACK_SSML = \"Ich habe dich leider nicht verstanden. \";\n}",
"public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}",
"Text createText();",
"@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 선생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"과목 : \" + text);\r\n\t}",
"public TextBook() {\n\t\tsuper();\n\t\ttype = \"TEXTBOOK\";\n\t}",
"public String afficherInfoFichierTexte(){\n\t\tString fichierComplet = \"\";\n\t\tfor (Joueur j: ListJoueur) {\n\t\t\tfichierComplet += j.afficherFichierTexte();\n\t\t}\n\t\treturn fichierComplet;\n\t}",
"public static String sLlegirText(String Text){\r\n Scanner sc = new Scanner(System.in);\r\n \r\n String sLectura;\r\n \r\n System.out.print(Text);\r\n sLectura = sc.nextLine();\r\n \r\n return sLectura;\r\n }",
"@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }",
"public void setarText() {\n txdata2 = (TextView) findViewById(R.id.txdata2);\n txdata1 = (TextView) findViewById(R.id.txdata3);\n txCpf = (TextView) findViewById(R.id.cpf1);\n txRenda = (TextView) findViewById(R.id.renda1);\n txCpf.setText(cpf3);\n txRenda.setText(renda.toString());\n txdata1.setText(data);\n txdata2.setText(data2);\n\n\n }",
"public String saveText() {\n\n return \"!Základ!\\n\\n\" + \"Hrubá mzda : \" + wage + \"Kč\\n\" + \"Sleva poplatníka : \" + saveTextChoose + \"\\nSuperhrubá mzda : \" + calc.superGrossWage(wage) + \" Kč\\n\" + \"\\n!Zaměstnavatel odvody z mzdy!\\n\\n\" + \"Socialní pojištění : \" + calc.socialInsuranceEmployer(wage) + \" Kč\\n\" + \"Zdravotní pojištění: \" + calc.healthInsuranceEmployer(wage) + \" Kč\\n\" +\n \"\\n!Zaměstnanec odvody z mzdy!\\n\" + \"\\nSocialní pojištění : \" + calc.socialInsuranceEmployee(wage) + \" Kč\\n\" + \"Zdravotní pojištění : \" + calc.healthInsuranceEmployee(wage) + \" Kč\\n\" +\n \"\\n!Daň ze závislé činnosti!\\n\" + \"\\nZáklad daní :\" + calc.round(wage) + \" Kč\\n\" + \"Daň : \" + calc.tax(wage) + \" Kč \\n\" + \"Daň po odpoču slevy : \" + calc.afterDeductionOfDiscounts(wage, choose) + \" Kč\\n\" +\n \"\\nČistá mzda : \" + calc.netWage(wage, choose) + \" Kč\";\n }",
"@Override\n public String getDescription() {\n return \"Text documents (*.xml)\";\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"private void loadText() {\n\t\ttext1 = app.loadStrings(\"./data/imports/TXT 1.txt\");\n\t\ttext2 = app.loadStrings(\"./data/imports/TXT 2.txt\");\n\t}",
"public String getTxt_modelo() {\r\n\t\treturn txt_modelo.getText();\r\n\t}",
"private void initializeAnimalIText() {\r\n\t\tiText = lang.newText(new Offset(0, 178, rowText, AnimalScript.DIRECTION_SW), \"\", \"iText\", null);\r\n\t\tiText.hide();\r\n\t}",
"public String text();",
"private void load() {\n try {\n StringBuilder sb = new StringBuilder();\n InputStreamReader isr = new InputStreamReader(SpellCheckerDemo.class.getResourceAsStream(\"/org/jdesktop/swingx/demo/JuliusCaesar.txt\"));\n BufferedReader br = new BufferedReader(isr);\n String str;\n while((str = br.readLine()) != null) {\n sb.append(str);\n sb.append(\"\\n\");\n }\n str = sb.toString();\n textArea.setText(str);\n } catch (Throwable t) {\n logger.log(Level.SEVERE,\"Unable to load the text.\",t);\n }\n }",
"@Override\r\n\tpublic void frases() {\n\t\t\r\n\t\tthis.frase.add(\"Não há que ser forte. Há que ser flexível.\");\r\n this.frase.add(\"Gente todo dia arruma os cabelos, por que não o coração?\");\r\n this.frase.add(\"Há três coisas que jamais voltam; a flecha lançada, a palavra dita e a oportunidade perdida.\");\r\n this.frase.add(\"Melhor pensar alto do que não pensar nada.\");\r\n this.frase.add(\"A juventude não é uma época da vida, é um estado de espírito.\");\r\n this.frase.add(\" Podemos escolher o que semear, mas somos obrigados a colher o que plantamos.\");\r\n this.frase.add(\"Dê toda a atenção para a formação dos teus filhos, sobretudo por exemplos de tua própria vida.\");\r\n \r\n\t\t\r\n\t}",
"private void txt() {\n\n\t}",
"public String getTextSchluessel() throws RemoteException;",
"public String getAboutBoxText();",
"public String getDescription() {\n return \"Text file (.text)\";\n }",
"@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la langue dans une variable lang\n\t\t\ttext.setLang(identifyLanguage(text.getCorpText()));\n\t\t\t//Ajoute le fichier traité dans la Base\n\t\t\tajouterTexte(text);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"fichier texte non trouvé\");\n\t e.printStackTrace();\n\t\t}\n\t}",
"public String getTexto() {\n return texto;\n }",
"public RenovarLicencia() {\n //borrar todo cuando este listo el metodo de abajo\n initComponents();\n setTitle(\"Renovar Licencia\");\n setLocationRelativeTo(null);\n //se pide al gestor y se muestra por pantalla los datos del administrativo registrado\n txt_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getUsername());\n txt_nombre_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getNombre() + \" \" + GestorAdministrativo.getInstance().getAdministrativo().getApellido());\n //borrar hasta aca\n }",
"public String textHelp() {\t\t\n\t\tString s = \"RUN: Ejecuta todas las instrucciones\";\n\t\treturn s;\n\t}",
"private void createContents() {\n // シェル\n super.createContents(this.parent, SWT.CLOSE | SWT.TITLE, false);\n this.getShell().setText(\"つぶやく\");\n this.shell = this.getShell();\n\n // レイアウト\n GridLayout glShell = new GridLayout(3, false);\n // glShell.horizontalSpacing = 1;\n glShell.marginHeight = 10;\n glShell.marginWidth = 10;\n // glShell.verticalSpacing = 1;\n this.shell.setLayout(glShell);\n\n Label thumnail = new Label(this.shell, SWT.NONE);\n GridData gdThumnail = new GridData(SWT.CENTER, SWT.CENTER, false, false, 3, 1);\n thumnail.setLayoutData(gdThumnail);\n try {\n Image orig = SwtUtils.makeImage(this.imageFile);\n thumnail.setImage(SwtUtils.scaleToFit(orig, 400, 300));\n orig.dispose();\n } catch (IOException e2) {\n SwtUtils.errorDialog(e2, TweetDialog.this.shell);\n }\n\n final Text text = new Text(this.shell, SWT.MULTI | SWT.BORDER | SWT.WRAP);\n GridData gdText = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1);\n gdText.widthHint = SwtUtils.DPIAwareWidth(300);\n gdText.heightHint = SwtUtils.DPIAwareHeight(80);\n text.setLayoutData(gdText);\n\n Label userName = new Label(this.shell, SWT.NONE);\n userName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n try {\n userName.setText(TwitterClient.getInstance().getUser().getScreenName());\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n\n final Label remainChars = new Label(this.shell, SWT.NONE);\n remainChars.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n text.addModifyListener(new ModifyListener() {\n\n @Override\n public void modifyText(ModifyEvent e) {\n int remain = 117 - text.getText().length();\n remainChars.setText(String.valueOf(remain));\n }\n });\n text.setText(\"\");\n\n Button tweet = new Button(this.shell, SWT.NONE);\n GridData gdTweet = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n gdTweet.widthHint = SwtUtils.DPIAwareWidth(100);\n tweet.setLayoutData(gdTweet);\n tweet.setText(\"つぶやく\");\n tweet.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n try {\n TwitterClient.getInstance().tweet(\n TweetDialog.this, text.getText(), TweetDialog.this.imageFile);\n TweetDialog.this.shell.close();\n ApplicationMain.logPrint(\"つぶやきました\");\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n }\n });\n\n this.shell.pack();\n }",
"public APropos() {\r\n\t\tpanap.setBackground(Color.LIGHT_GRAY);\r\n\r\n\t\t// mise en forme du texte dans le JTextPane\r\n\t\tStyledDocument doc = zoneAPropos.getStyledDocument();\r\n\t\tMutableAttributeSet centrer = new SimpleAttributeSet();\r\n\t\tStyleConstants.setAlignment(centrer, StyleConstants.ALIGN_CENTER);\r\n\t\tdoc.setParagraphAttributes(0, 0, centrer, false);\r\n\r\n\t\t// mise en place du texte dans le JTextPane\r\n\t\tzoneAPropos.setText(\"Calculatrice en NPI réalisée par :\\n \\nCamille SAMAIN\\nEMACS 166\\nEcole des Mines d'Alès\");\r\n\t\tzoneAPropos.setEditable(false);\r\n\r\n\t\t// mise en forme JTextPane\r\n\t\tzoneAPropos.setBackground(Color.LIGHT_GRAY);\r\n\t\tzoneAPropos.setForeground(Color.DARK_GRAY);\r\n\t\tzoneAPropos.setFont(police);\r\n\r\n\t\t// ajout du JtextPane dans le panel\r\n\t\tpanap.add(zoneAPropos);\r\n\t}",
"public String getText() {\n if (Language.isEnglish()) {\n return textEn;\n } else {\n return textFr;\n }\n }",
"@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn text.toString();\r\n\t}",
"private void initText() {\n// urlText.setText(jPAConfig.getUrl());\n// userText.setText(jPAConfig.getUser());\n// dbNameText.setText(jPAConfig.getDbName());\n// portText.setText(jPAConfig.getPort());\n// passText.setText(jPAConfig.getPassword());\n }",
"public ExtractTextByArea() throws IOException {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public void ach_doc_type_txt_test () {\n\t\t\n\t}",
"public String readtexto() {\n String texto=\"\";\n try\n {\n BufferedReader fin =\n new BufferedReader(\n new InputStreamReader(\n openFileInput(\"datos.json\")));\n\n texto = fin.readLine();\n fin.close();\n }\n catch (Exception ex)\n {\n Log.e(\"Ficheros\", \"Error al leer fichero desde memoria interna\");\n }\n\n\n\n return texto;\n }",
"public String getTxt_potencia() {\r\n\t\treturn txt_potencia.getText();\r\n\t}",
"public abstract String text();",
"public abstract String text();",
"public void initializeText(){\n\t\tfont = new BitmapFont();\n\t\tfont1 = new BitmapFont();\n\t\tfont1.setColor(Color.BLUE);\n\t\tfont2 = new BitmapFont();\n\t\tfont2.setColor(Color.BLACK);\n\t}",
"private Text insertarComentario(final Composite parent, final String texto) {\n\t \tText comentario = null;\n\n\t \tfinal int ancho = this.comentariosScroll.getClientArea().x;\n\n\t if ((texto != null) && !texto.isEmpty()) {\n\t comentario = new Text(parent, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP);\n\n\t comentario.setText(texto);\n\n\t final GridData gridData = new GridData();\n\t gridData.horizontalAlignment = SWT.FILL;\n\t gridData.grabExcessHorizontalSpace = true;\n\n\t // XXX se da un tamaño o las lineas que ocupe el texo????\n\t gridData.heightHint = ALTO_COMENTARIO;\n\t gridData.widthHint = ancho;\n\n\t comentario.setEditable(false);\n\t comentario.setLayoutData(gridData);\n\n\t } else {\n\n\t comentario = new Text(parent, SWT.MULTI | SWT.BORDER | SWT.WRAP);\n\n\t final GridData gridData = new GridData();\n\t gridData.horizontalAlignment = SWT.FILL;\n\t gridData.grabExcessHorizontalSpace = true;\n\t gridData.heightHint = ALTO_COMENTARIO;\n\t gridData.widthHint = ancho;\n\n\t comentario.setLayoutData(gridData);\n\t }\n\n//\t comentario.addListener(SWT.MouseWheel, new RuedaRatonListener());\n\n\t final GridData data = (GridData)this.comentariosScroll.getLayoutData();\n\t data.heightHint = calcularMaxTamScroll(this.contComentarios);\n\n\t this.comentariosScroll.setMinSize(this.comentariosScrollContent.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t this.contComentarios++;\n\n\t parent.layout();\n\t return comentario;\n\t }",
"private void setTexto() {\n textViewPolitica.setText(Html.fromHtml(politica));\n }",
"public String getTxtKondektur() {\n return txtKondektur.getText();\n }",
"protected Text getText() {\n \t\treturn text;\n \t}",
"public DescricaoFrame() {\n initComponents();\n setResizable(false);\n txtDescricao.setText(Filme.descricao);\n }",
"public Elya() {\n\n estado=PersonajeEstado.quieto;\n cargarText(\"Personajes/ElyaQuieta.png\",1,0);\n cargarText(\"Personajes/ElyaRunning2.png\", 24, 1);\n cargarText(\"Personajes/ElyaAtack2.png\", 24, 2);\n cargarText(\"Personajes/ElyaDead.png\", 1, 3);\n\n }",
"public FrameBodyTPOS(byte textEncoding, String text)\n {\n setObjectValue(DataTypes.OBJ_TEXT_ENCODING, textEncoding);\n setObjectValue(DataTypes.OBJ_TEXT, new PartOfSet.PartOfSetValue(text));\n }",
"@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}",
"public Text(java.awt.Frame parent, boolean modal, int x1, int y1) {\n super(parent, modal);\n x = x1; /*FAULT:: x = y1; */\n y = y1;\n\n this.setTitle(\"Text\");\n\n\n this.setSize(375, 50);\n initComponents();\n addSizes();\n addFamilies();\n families.setSelectedIndex(letterTool.currentFont);\n underline.setSelected(letterTool.underlineness);\n bold.setSelected(letterTool.boldness);\n italics.setSelected(letterTool.italicness);\n size.setSelectedIndex(letterTool.currentSize);\n\n ok_action = false;\n }",
"public void setMainText(String s) throws SQLException{\n\t\tReadTextFromFile r = new ReadTextFromFile();\r\n\t\t//r.load(index) this is how it should work at some point\r\n\t\tString readText = r.loadMainText(s);\r\n\t\tJPanel textPanel = new GeneralPanel();\r\n\t\ttextPanel.setLayout(new GridBagLayout());\r\n\t\tJLabel l = new JLabel(\"<html><p style=\\\"width:100px\\\">\"+readText+\"</p></html>\", SwingConstants.CENTER);\r\n\t\t\r\n\t\tGridBagConstraints c = new GridBagConstraints ();\r\n\t\tc.gridy = 1;\r\n\t\tc.insets = new Insets (5, 0, 0, 0);\r\n \r\n\t\ttextPanel.add(l , c);\r\n\t\tadd(textPanel, BorderLayout.CENTER);\r\n\t}",
"protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}",
"@Override\n public String loadTextWidget() {\n /* Get the complete E19 text and display it. */\n String text = getText(E19_ALLPAGES);\n text = text.replace(\"null\", \"\");\n\n return text;\n }",
"public void setTamilText(TextView textName, int id) {\r\n if (GlobalAppState.language.equalsIgnoreCase(\"hi\")) {\r\n Typeface tfBamini = Typeface.createFromAsset(ct.getAssets(), \"fonts/Bamini.ttf\");\r\n textName.setTypeface(tfBamini, Typeface.BOLD);\r\n textName.setText(TamilUtil.convertToTamil(TamilUtil.BAMINI, ct.getString(id)));\r\n } else {\r\n textName.setText(ct.getString(id));\r\n }\r\n }",
"private void setHeaderText()\n {\n AssetManager am = getApplicationContext().getAssets();\n typeface = Typeface.createFromAsset(am,\n String.format(Locale.US, \"fonts/%s\", \"ConcursoItalian_BTN.ttf\"));\n headerText = (TextView) findViewById(R.id.headerText);\n headerSubText = (TextView) findViewById(R.id.headerSubText);\n headerText.setTypeface(typeface);\n headerSubText.setTypeface(typeface);\n }",
"public TextoCifrado(String textoCifrado) {\r\n\t\tthis.textoCifrado = new String(textoCifrado);\r\n\t}",
"public String text() { return text; }",
"public Text()\n {\n super();\n initialize();\n }",
"public void leerDeFichero() {\n try\n {\n Scanner sc = new Scanner(new File(\"texto.txt\"));\n while (sc.hasNextLine() && !textoCompleto())\n addFrase(sc.nextLine());\n sc.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"private void aplicarTextPrompt() {\n TextPrompt textPrompt = new TextPrompt(\"jdbc:mysql://localhost:3306/mydb\", urlJTF);\n TextPrompt textPrompt1 = new TextPrompt(\"root\", usernameJTF);\n TextPrompt textPrompt2 = new TextPrompt(\"*********\", passwordJPF);\n }",
"private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}",
"public VistaProducir(ImageIcon[] imagenes,String[] textos){\n setSize(250, 700);\n setVisible(true);\n this.imagenes = imagenes;\n this.textos = textos;\n colocar();\n revalidate();\n }",
"public MarcoAreaTexto() {\r\n \r\n super(\"Demostración JTextArea\");\r\n Box cuadro = Box.createHorizontalBox();\r\n String demo = \"Texto de ejemplo\\npara mostrar como\\n\" +\r\n \"se copia texto por\\neventoexterno (Salu2)\";\r\n \r\n areaTexto1 = new JTextArea(demo, 10, 15); \r\n cuadro.add(new JScrollPane(areaTexto1) );\r\n copiar = new JButton(\"Copiar >>> \");\r\n cuadro.add(copiar);\r\n copiar.addActionListener(\r\n \r\n new ActionListener() {\r\n \r\n public void actionPerformed(ActionEvent event) {\r\n \r\n areaTexto2.setText(areaTexto1.getSelectedText() );\r\n } //Fin del método actionPerformed\r\n } //Clase interna anónima\r\n ); //Clase interna anónima\r\n \r\n areaTexto2 = new JTextArea(10, 15);\r\n areaTexto2.setEditable(false);\r\n cuadro.add(new JScrollPane(areaTexto2) );\r\n add(cuadro);\r\n }",
"public void setText(String text){\n String _text = dcode.enCode(new String[] { encodeType, title, passWd, text });\n if(statusKey == ALRIGHT){\n setFileText(/*ccode == null ? */_text/* : ccode.enCrype(_text)*/);\n } else{\n System.err.println(\"You can't writes this file.\");\n System.err.println(\"This file contains unknown encode or is encrypted.\");\n }\n }",
"public Ventana() {\n initComponents();\n this.tipos.add(GD_C);\n this.tipos.add(GD_S);\n this.tipos.add(GND_C);\n this.tipos.add(GND_S);\n this.panel.setArea_text(text);\n\n }",
"public void realtorioCli() throws ClassNotFoundException, FileNotFoundException, DocumentException, SQLException {\r\n ContCli cocli = new ContCli();\r\n \r\n\r\n //Instancia um novo documento\r\n Document doc = new Document();\r\n \r\n //Define o local do documento\r\n PdfWriter objpdf = PdfWriter.getInstance(doc, new FileOutputStream(\"relatorioClientes.pdf\"));\r\n doc.open();\r\n PdfPTable tb = new PdfPTable(1);\r\n tb.setWidthPercentage(50);\r\n tb.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n tb.setSpacingAfter(10f);\r\n tb.setSpacingBefore(10f);\r\n \r\n PdfPCell cel = new PdfPCell(new Paragraph(\"Relatório Clientes.\"));\r\n cel.setBorderColor(BaseColor.BLACK);\r\n cel.setPaddingLeft(10);\r\n cel.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n cel.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n tb.addCell(cel);\r\n\r\n doc.add(tb);\r\n\r\n try {\r\n PdfPTable tabela = new PdfPTable(4); // 4 colunas.\r\n tabela.setWidthPercentage(100); //largura 100%\r\n tabela.setSpacingBefore(10f); //espaços antes da tabela\r\n tabela.setSpacingAfter(10f); //espaços antes da tabela\r\n\r\n float[] larguraColuna = {1f, 1f, 1f, 1f};\r\n tabela.setWidths(larguraColuna);\r\n\r\n PdfPCell celula01 = new PdfPCell(new Paragraph(\"Código\"));\r\n celula01.setBorderColor(BaseColor.BLACK);\r\n celula01.setPaddingLeft(10);\r\n celula01.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula01.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n PdfPCell celula02 = new PdfPCell(new Paragraph(\"Nome\"));\r\n celula02.setBorderColor(BaseColor.BLACK);\r\n celula02.setPaddingLeft(10);\r\n celula02.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula02.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n PdfPCell celula03 = new PdfPCell(new Paragraph(\"CPF\"));\r\n celula03.setBorderColor(BaseColor.BLACK);\r\n celula03.setPaddingLeft(10);\r\n celula03.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula03.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n PdfPCell celula04 = new PdfPCell(new Paragraph(\"Divida\"));\r\n celula04.setBorderColor(BaseColor.BLACK);\r\n celula04.setPaddingLeft(10);\r\n celula04.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula04.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n tabela.addCell(celula01);\r\n tabela.addCell(celula02);\r\n tabela.addCell(celula03);\r\n tabela.addCell(celula04);\r\n for (Cliente cli : cocli.selecCli()) {\r\n\r\n //Set Column widths\r\n //Para evitar que a borda da célula e o conteúdo se sobreponham, \r\n //se você tiver tendo bordas de células grossas\r\n //celula01.setUserBorderPadding(true);\r\n //celula02.setUserBorderPadding(true);\r\n //celula03.setUserBorderPadding(true);\r\n doc.add(new Paragraph());\r\n\r\n celula01 = new PdfPCell(new Paragraph(\"\" + cli.getCod()));\r\n celula01.setBorderColor(BaseColor.BLACK);\r\n celula01.setPaddingLeft(10);\r\n celula01.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula01.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n celula02 = new PdfPCell(new Paragraph(cli.getNome()));\r\n celula02.setBorderColor(BaseColor.BLACK);\r\n celula02.setPaddingLeft(10);\r\n celula02.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula02.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n celula03 = new PdfPCell(new Paragraph(cli.getCpf()));\r\n celula03.setBorderColor(BaseColor.BLACK);\r\n celula03.setPaddingLeft(10);\r\n celula03.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula03.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n celula04 = new PdfPCell(new Paragraph(\"R$\" + cli.getDiv()));\r\n celula04.setBorderColor(BaseColor.BLACK);\r\n celula04.setPaddingLeft(10);\r\n celula04.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula04.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n tabela.addCell(celula01);\r\n tabela.addCell(celula02);\r\n tabela.addCell(celula03);\r\n tabela.addCell(celula04);\r\n\r\n// String linha = \"\";\r\n// linha += (\"Codigo: \" + contatos.getCodigoContato());\r\n// linha += (\" Nome: \" + contatos.getNomeContato());\r\n// linha += (\" Celular: \" + contatos.getNumCelular());\r\n// linha += (\" Fixo: \" + contatos.getNumFixo());\r\n// documento.add(new Paragraph(linha));\r\n }\r\n doc.add(tabela);\r\n\r\n doc.close();\r\n objpdf.close();\r\n doc.close();\r\n objpdf.close();\r\n } catch (DocumentException e) {\r\n e.printStackTrace();\r\n }\r\n PDF pd = new PDF();\r\n pd.abreArquivoPdf(\"relatorioClientes.pdf\");\r\n }",
"@Test\n public void main() throws IOException {\n currentArticle = null;\n\n for(String line: FileUtils.readLines(new File(\"D:\\\\projects\\\\вёрстка томов ИИ\\\\9 том\\\\термины.txt\"))) {\n\n Matcher matcher = compile(\"\\\\|([^\\\\|]+)\\\\|\\\\s[–\\\\-—]\\\\s(.+)\").matcher(line);\n if (matcher.find()) {\n if (currentArticle != null) {\n saveItem();\n currentArticle = null;\n }\n String term = matcher.group(1);\n String body = matcher.group(2);\n if(body.indexOf(\"см. \") != 0) {\n currentArticle = new Article(term, body);\n } /*else {\n String alias = body.replace(\"см. \", \"\").replace(\"«\", \"\").replace(\"»\", \"\").replace(\".\", \"\");\n saveAliases(alias, term);\n }*/\n } else if (currentArticle != null) {\n currentArticle.setContent(currentArticle.getContent() + \"<br/>\"+line);\n }\n }\n if (currentArticle != null) {\n saveItem();\n }\n }",
"public static void oralOutput(String text)\n\t{\n\t\tSystem.setProperty(\"mbrola.base\",\"E:\\\\Automation\\\\mbrola\");\n\t\tVoiceManager vm=VoiceManager.getInstance();\n\t\tVoice v=vm.getVoice(\"mbrola_us1\"); //or kevin16\n\t\tv.allocate();\n\t\tv.speak(text);\n\t\tv.deallocate();\n\t}",
"public FrameBodyTPOS()\n {\n setObjectValue(DataTypes.OBJ_TEXT_ENCODING, TextEncoding.ISO_8859_1);\n setObjectValue(DataTypes.OBJ_TEXT, new PartOfSet.PartOfSetValue());\n }",
"public n501070324_PedidosAssistencia() {\n super(\"Pedidos.txt\");\n }",
"private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }",
"public void TesteCompleto() {\n\n\n TectoySunmiPrint.getInstance().initPrinter();\n TectoySunmiPrint.getInstance().setSize(24);\n\n // Alinhamento do texto\n\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Alinhamento\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n\n // Formas de impressão\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Formas de Impressão\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setSize(28);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printStyleBold(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleAntiWhite(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleDoubleHeight(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleDoubleWidth(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleInvert(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleItalic(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleStrikethRough(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleUnderLine(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\", 35);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\", 28);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\",50);\n // TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setSize(24);\n\n\n // Impressão de BarCode\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime BarCode\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_INFORME_UM_TEXTO);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ABAIXO_DO_CODIGO_DE_BARRAS);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ACIMA_DO_CODIGO_DE_BARRAS_BARCODE);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ACIMA_E_ABAIXO_DO_CODIGO_DE_BARRAS);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n // Impressão de BarCode\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime QrCode\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printDoubleQRCode(\"www.tectoysunmi.com.br\",\"tectoysunmi\", 7, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n\n\n // Impresão Imagem\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime Imagem\\n\");\n TectoySunmiPrint.getInstance().printText(\"-------------------------------\\n\");\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inTargetDensity = 160;\n options.inDensity = 160;\n Bitmap bitmap1 = null;\n Bitmap bitmap = null;\n if (bitmap == null) {\n bitmap = BitmapFactory.decodeResource(getResources(), test, options);\n }\n if (bitmap1 == null) {\n bitmap1 = BitmapFactory.decodeResource(getResources(), test1, options);\n bitmap1 = scaleImage(bitmap1);\n }\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime Tabela\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n\n String[] prod = new String[3];\n int[] width = new int[3];\n int[] align = new int[3];\n\n width[0] = 100;\n width[1] = 50;\n width[2] = 50;\n\n align[0] = TectoySunmiPrint.Alignment_LEFT;\n align[1] = TectoySunmiPrint.Alignment_CENTER;\n align[2] = TectoySunmiPrint.Alignment_RIGTH;\n\n prod[0] = \"Produto 001\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 002\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 003\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 004\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 005\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 006\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().openCashBox();\n TectoySunmiPrint.getInstance().cutpaper();\n\n }",
"@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}",
"@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}",
"public String getText(){\r\n\t\treturn text;\r\n\t}",
"public Vista_GeneradorQR(String texto) {\n \tthis.texto=texto;\n initComponents();\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n }",
"String getToText();",
"public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }",
"public void empSlotText(SpriteBatch batch){\n batch.setProjectionMatrix(textCam.combined);\n String text = \"\"+manager.getEmployees()+\"/\"+manager.getEmployeeSlots();\n batch.begin();\n font2.draw(batch,text, 730, 370);\n batch.end();\n }",
"public abstract String getTextToPrint(JCas aJCas);",
"public String getContent() {\r\n \r\n return text;\r\n }",
"public TextlineModel() {\n\t\tobox = new OrientedBox(0,0,0,0,0);\n\t\tocclusions = new ArrayList();\n\t\twordOffsets = new ArrayList();\n\t\tsetText(\"\");\n\t\ttextPointer = null;\n\t}",
"@Override\n public String toString() {\n return text;\n }",
"public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}",
"private void yas(){\n System.out.println(namn);\n \n try{\n String fraga = \"SELECT TEXT FROM INLAGG WHERE RUBRIK = 'Borttappad strumpa'\";\n String XD = db.fetchSingle(fraga);\n System.out.println(XD);\n txtInlagg.append(XD);\n }\n catch(InfException e){\n JOptionPane.showMessageDialog(null, \"Kunde ej hämta inlägg\");\n }\n }",
"public static void designTextEditor() {\n\t\t\n\t}",
"public String getTxt_marca() {\r\n\t\treturn txt_marca.getText();\r\n\t}",
"@Override\n\tpublic String type() {\n\t\treturn \"TEXT\";\n\t}",
"public String getInfoText();",
"public String getViewText() {\n \t\treturn \"featured-partner-view_text_t\";\n \t}",
"public void ConfiguracionTexto(String szDefecto, int defecto, int normal)\n {\n // Establecemos el texto por defecto\n m_szTextoDefecto = szDefecto;\n this.setText(m_szTextoDefecto);\n\n // Establecemos los valores por defecto\n m_ColorTextoDef = defecto;\n m_ColorTextoNor = normal;\n\n // Establecemos el color del texto por defecto, si esta establecido\n if (defecto != Color.TRANSPARENT)\n setTextColor(m_ColorTextoDef);\n }",
"private void pirateRecipe(String text) {\n if (\"excitedze\".equals(text)) {\n LanguageManager languagemanager = this.mc.getLanguageManager();\n Language language = languagemanager.getLanguage(\"en_pt\");\n if (languagemanager.getCurrentLanguage().compareTo(language) == 0) {\n return;\n }\n\n languagemanager.setCurrentLanguage(language);\n this.mc.gameSettings.language = language.getCode();\n net.minecraftforge.client.ForgeHooksClient.refreshResources(this.mc, net.minecraftforge.resource.VanillaResourceType.LANGUAGES);\n this.mc.gameSettings.saveOptions();\n }\n\n }"
] |
[
"0.6438193",
"0.6373671",
"0.6184843",
"0.61228323",
"0.60309577",
"0.59137034",
"0.58483034",
"0.580064",
"0.5798268",
"0.5795023",
"0.5786072",
"0.5770802",
"0.5752071",
"0.57457024",
"0.5743801",
"0.5742821",
"0.5730219",
"0.57085836",
"0.57021695",
"0.56999886",
"0.56914824",
"0.5663124",
"0.5661779",
"0.56420225",
"0.5635318",
"0.5634647",
"0.56282014",
"0.5606238",
"0.55908996",
"0.55787283",
"0.5555226",
"0.5549084",
"0.5548184",
"0.5539563",
"0.5537739",
"0.55355084",
"0.5522028",
"0.55063564",
"0.55061936",
"0.5502599",
"0.54976285",
"0.54970247",
"0.5488682",
"0.54866815",
"0.5486453",
"0.54805976",
"0.54744476",
"0.54744476",
"0.546839",
"0.5463344",
"0.5456024",
"0.54540086",
"0.5442923",
"0.54336905",
"0.54306895",
"0.5429377",
"0.54272765",
"0.54239404",
"0.54179776",
"0.541383",
"0.5412233",
"0.5411477",
"0.54093266",
"0.54028636",
"0.5398009",
"0.5396961",
"0.5388753",
"0.5382867",
"0.5373839",
"0.537006",
"0.53674275",
"0.5362171",
"0.53517026",
"0.53513545",
"0.53502524",
"0.5347652",
"0.5346245",
"0.53458375",
"0.5338449",
"0.5333021",
"0.5330813",
"0.5323541",
"0.531819",
"0.531561",
"0.53143877",
"0.5313868",
"0.53115034",
"0.5311378",
"0.5306201",
"0.5306154",
"0.53016126",
"0.5293491",
"0.5291684",
"0.52912",
"0.52905756",
"0.5287608",
"0.5287193",
"0.52871037",
"0.5286553",
"0.528114"
] |
0.5997277
|
5
|
Create a bunch of thing just for kicks
|
@Test
// TODO: Fix this test
@Disabled
public void getActuatorPrometheusData() throws Exception {
createABunchOfThings(10, true); // OK results
createABunchOfThings(5, false); // Failed results
// Now get Metrics
LOGGER.info(RUNNING_CHAR + "Getting prometheus data /actuator/prometheus GET");
CompletionStage<GetMetricsGrpcResponse> mockMetricsResponse = CompletableFuture.supplyAsync(() ->
GetMetricsGrpcResponse.newBuilder()
.setTotalmessagesreceived(20L)
.setAveragemessageage(1000L)
.setCount(42L)
.build());
Mockito.when(client.getMetrics(any())).thenReturn(mockMetricsResponse);
MvcResult mvcResult = mockMvc.perform(get("/actuator/prometheus").contentType(MediaType.APPLICATION_JSON)
.accept(MediaType.ALL_VALUE))
.andExpect(status().isOk())
.andReturn();
String responseData = mvcResult.getResponse().getContentAsString();
System.out.println(responseData);
assertTrue(responseData.contains("thingverse_active_thing_count"), FAILURE_CHAR + "Response did not contain expected string");
assertTrue(responseData.contains("thingverse_average_message_age"), FAILURE_CHAR + "Response did not contain expected string");
assertTrue(responseData.contains("thingverse_total_messages_received"), FAILURE_CHAR + "Response did not contain expected string");
assertTrue(responseData.contains("thingverse_http_server_request"), FAILURE_CHAR + "Response did not contain expected string");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }",
"public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}",
"public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }",
"Thing createThing();",
"private void createPlayers() {\n\t\t//Randomize roles\n\t\tArrayList<AdventurerEnum> randomisedRoles = getRandomisedRoles();\n\t\tfor(int i=0; i<numPlayers; i++) \n\t\t\tcreateOnePlayer(randomisedRoles.get(i), i+1);\n\t}",
"public static void createDummys(String type, int quantity){\n\t\tString name=\"\";\n\t\tString surname=\"\";\n\t\tString karma=\"\";\n\t\t\n switch(type){\n\n case \"admin\":\n //For to add Admin Dummy's to Singleton.adm\n for (int i=1;i<=quantity;i++){\n name=Funct_Dummy.RandomName();\n surname=Funct_Dummy.RandomSurname();\n\n Singleton_admin.adm.add(new Admin_class(/*card+idcard*/Funct_Dummy.nif(Funct_Dummy.randomDni()),name,surname,Funct_Dummy.randomBirth(),\n Funct_Dummy.randomMobile(),Funct_Dummy.randomEmail(name,surname),name+Funct_Dummy.randomusername(),Funct_Dummy.generatePasswd(),\n Singleton_admin.defaultavatar.toString(),Funct_Dummy.randmoboolean(),Funct_Dummy.randomAfter98(),5));\n }\n break;\n case \"client\":\n //For to add Client Dummy's to Singleton.cli\n for (int i=1;i<=quantity;i++){\n name=Funct_Dummy.RandomName();\n surname=Funct_Dummy.RandomSurname();\n\n Singleton_client.cli.add(new Client_class(Funct_Dummy.nif(Funct_Dummy.randomDni()),name,surname,Funct_Dummy.randomBirth(),\n Funct_Dummy.randomMobile(),Funct_Dummy.randomEmail(name,surname),name+Funct_Dummy.randomusername(),Funct_Dummy.generatePasswd(),\n Singleton_client.defaultavatar.toString(),Funct_Dummy.randmoboolean(),Funct_Dummy.randomAfter98(),Funct_Dummy.randomShopping(),Funct_Dummy.randmoboolean(),\"Type\"));\n }\n break;\n case \"ruser\":\n //For to add Registered User Dummy's to Singleton.rus\n for (int i=1;i<=quantity;i++){\n name=Funct_Dummy.RandomName();\n surname=Funct_Dummy.RandomSurname();\n\n Singleton_ruser.rus.add(new Reg_user_class(Funct_Dummy.nif(Funct_Dummy.randomDni()),name,surname,Funct_Dummy.randomBirth(),\n Funct_Dummy.randomMobile(),Funct_Dummy.randomEmail(name,surname),name+Funct_Dummy.randomusername(),Funct_Dummy.generatePasswd(),\n Singleton_ruser.defaultavatar.toString(),Funct_Dummy.randmoboolean(),Funct_Dummy.randomActivity(),karma));\n }\n break;\n }\n\t}",
"protected void setupAdditions(int amount) {\n\n\n for (int i = 1; i != amount; i++) {\n int runTime = ((i * i) + 90);\n MovieList.addMovie(\"title \" + i, i + 1000, runTime, \"Plot \" + i, \"imgUrl \" + i);\n ActorList.addActor(\"name\" + i, i + 10, \"gender\" + i, \"nationality\" + i);\n\n\n }\n\n }",
"public void make();",
"public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Starting with \" + ContadorDeInstancias.getCount());\n\t\tfor (int i = 0;i<300;i++) {\n\t\t\tnew ContadorDeInstancias();\n\t\t\tSystem.out.println(\"Created \"+ ContadorDeInstancias.getCount());\n\t\t}\n\n\t}",
"private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }",
"void makeDragon() {\n new BukkitRunnable() {\n int i = 555;\n\n @Override\n public void run() {\n Set<BlockData> set = create.get(i);\n for (BlockData blockData : set) {\n blockData.setBlock();\n }\n\n i++;\n if (i > 734) {\n cancel();\n }\n }\n }.runTaskTimer(Main.plugin, 0, 2);\n // Location end = new Location(Bukkit.getWorld(\"world\"), 3, 254, 733);\n }",
"private void makeDummies()\n {\n \n MessagePost messagePost1;\n MessagePost messagePost2;\n PhotoPost photoPost1;\n PhotoPost photoPost2;\n EventPost eventPost1;\n \n //Making 2 message posts and 2 photo posts.\n messagePost1 = new MessagePost(\"kniven\",\"Jeg er skarp idag\");\n messagePost2 = new MessagePost(\"Oscar\", \"I dag er livet verdt å leve\");\n photoPost1 = new PhotoPost(\"Eirik\", \"sol.jpg\", \"Sola skinner fint idag\");\n photoPost2 = new PhotoPost(\"Ole Martin\", \"noSkjeg.jpg\", \"Tatt skjegget\");\n eventPost1 = new EventPost(\"Ole Martin\", \"Ole Martin has joined Solider of Are og Odin\");\n \n //Adding posts to the newsfeed\n newsFeed.addPost(messagePost1);\n newsFeed.addPost(messagePost2);\n newsFeed.addPost(photoPost1);\n newsFeed.addPost(photoPost2);\n newsFeed.addPost(eventPost1);\n newsFeed.addComment(messagePost1, \"Skarping as\");\n newsFeed.addComment(messagePost2, \"Så flott!\");\n newsFeed.addComment(messagePost2, \"Like, Betyr likar\");\n newsFeed.addComment(photoPost1, \"Deilig med sol\");\n newsFeed.addComment(photoPost2, \"Neeeeeeeeeeeeeeeeei! :'(\");\n \n }",
"public static void main(String[] args) {\n\t\tSquarelotron test = makeSquarelotron(new int[] {0,1,2,101});\n\t\tSystem.out.println(test.toString());\n\t\t//tests one that should be created\n\t\tSquarelotron test2 = makeSquarelotron(new int[] {0,1,2,3});\n\t\tSystem.out.println(test2.toString());\n\t\t//tests for too long\n\t\tSquarelotron test3 = makeSquarelotron(new int[] {0,1,2,3,5});\n\t\tSystem.out.println(test3.toString());\n\t\t\n\t}",
"public static void createCreationEntries() {\n/* 60 */ long start = System.nanoTime();\n/* */ \n/* 62 */ createSimpleEntry(1005, 24, 9, 22, false, true, 100.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 64 */ createSimpleEntry(1005, 7, 9, 860, false, true, 15.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 66 */ createSimpleEntry(1005, 8, 9, 23, false, true, 100.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 68 */ createSimpleEntry(1005, 685, 688, 691, false, true, 100.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 70 */ createSimpleEntry(1005, 8, 688, 691, false, true, 100.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 72 */ createSimpleEntry(1005, 8, 9, 711, false, true, 100.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* */ \n/* 75 */ createSimpleEntry(1031, 8, 9, 459, false, true, 100.0F, false, false, CreationCategories.BOWS);\n/* */ \n/* 77 */ createSimpleEntry(1031, 8, 9, 461, false, true, 100.0F, false, false, CreationCategories.BOWS);\n/* */ \n/* 79 */ createSimpleEntry(1031, 8, 9, 460, false, true, 100.0F, false, false, CreationCategories.BOWS);\n/* */ \n/* */ \n/* 82 */ createSimpleEntry(1031, 685, 9, 459, false, true, 200.0F, false, false, CreationCategories.BOWS);\n/* */ \n/* 84 */ createSimpleEntry(1031, 685, 9, 461, false, true, 200.0F, false, false, CreationCategories.BOWS);\n/* */ \n/* 86 */ createSimpleEntry(1031, 685, 9, 460, false, true, 200.0F, false, false, CreationCategories.BOWS);\n/* */ \n/* 88 */ createSimpleEntry(1007, 8, 9, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 90 */ createSimpleEntry(1007, 685, 9, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 92 */ createSimpleEntry(1007, 24, 9, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 94 */ createSimpleEntry(1007, 87, 9, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 96 */ createSimpleEntry(1007, 3, 9, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 98 */ createSimpleEntry(1007, 90, 9, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 100 */ createSimpleEntry(1007, 8, 169, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 102 */ createSimpleEntry(1007, 8, 22, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 104 */ createSimpleEntry(1007, 685, 169, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 106 */ createSimpleEntry(1007, 24, 169, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 108 */ createSimpleEntry(1007, 87, 169, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 110 */ createSimpleEntry(1007, 3, 169, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 112 */ createSimpleEntry(1007, 90, 169, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 114 */ createSimpleEntry(1007, 7, 9, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 116 */ createSimpleEntry(1007, 7, 169, 36, false, true, 0.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* */ \n/* 119 */ createSimpleEntry(1007, 24, 22, 790, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 122 */ createSimpleEntry(1010, 143, 36, 37, false, true, 0.0F, false, true, CreationCategories.FIRE);\n/* */ \n/* */ \n/* 125 */ createSimpleEntry(1010, 169, 36, 37, true, true, 0.0F, false, true, CreationCategories.FIRE);\n/* */ \n/* 127 */ createSimpleEntry(1011, 14, 130, 181, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 129 */ createSimpleEntry(1011, 14, 130, 182, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 131 */ createSimpleEntry(1011, 14, 130, 183, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 133 */ createSimpleEntry(1011, 14, 130, 769, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 135 */ createSimpleEntry(1011, 14, 130, 777, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 137 */ createSimpleEntry(1011, 14, 130, 789, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 139 */ if (Features.Feature.AMPHORA.isEnabled()) {\n/* */ \n/* 141 */ createSimpleEntry(1011, 14, 130, 1019, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 143 */ createSimpleEntry(1011, 14, 130, 1021, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ } \n/* */ \n/* */ \n/* 147 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 149 */ createMetallicEntries(10015, 63, 46, 64, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 151 */ createMetallicEntries(10015, 62, 46, 64, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 154 */ createMetallicEntries(10010, 185, 46, 148, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 156 */ createMetallicEntries(10010, 64, 46, 147, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 158 */ createMetallicEntries(10010, 185, 46, 149, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 160 */ createMetallicEntries(10010, 185, 46, 269, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 162 */ createMetallicEntries(10010, 185, 46, 270, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 165 */ createMetallicEntries(10011, 64, 46, 89, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 167 */ createMetallicEntries(10011, 64, 46, 523, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 169 */ createMetallicEntries(10011, 185, 46, 91, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 171 */ createMetallicEntries(10011, 185, 46, 88, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 173 */ createMetallicEntries(10011, 185, 46, 293, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 175 */ createMetallicEntries(10011, 185, 46, 295, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 177 */ createMetallicEntries(10011, 185, 46, 294, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 179 */ createMetallicEntries(10011, 185, 46, 708, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 184 */ createSimpleEntry(10015, 63, 46, 64, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 186 */ createSimpleEntry(10015, 62, 46, 64, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 189 */ createSimpleEntry(10010, 185, 46, 148, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 191 */ createSimpleEntry(10010, 64, 46, 147, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 193 */ createSimpleEntry(10010, 185, 694, 148, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 195 */ createSimpleEntry(10010, 64, 694, 147, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 197 */ createSimpleEntry(10010, 185, 837, 148, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 199 */ createSimpleEntry(10010, 64, 837, 147, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 201 */ createSimpleEntry(10010, 185, 698, 148, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 203 */ createSimpleEntry(10010, 64, 698, 147, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 205 */ createSimpleEntry(10010, 185, 205, 148, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 207 */ createSimpleEntry(10010, 64, 205, 147, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 209 */ createSimpleEntry(10010, 185, 694, 149, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 211 */ createSimpleEntry(10010, 185, 837, 149, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 213 */ createSimpleEntry(10010, 185, 698, 149, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 215 */ createSimpleEntry(10010, 185, 46, 149, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 217 */ createSimpleEntry(10010, 185, 205, 149, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 219 */ createSimpleEntry(10010, 185, 46, 269, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 221 */ createSimpleEntry(10010, 185, 46, 270, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 223 */ createSimpleEntry(10010, 185, 698, 270, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 225 */ createSimpleEntry(10010, 185, 205, 270, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 227 */ createSimpleEntry(10010, 185, 694, 270, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 229 */ createSimpleEntry(10010, 185, 837, 270, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 232 */ createSimpleEntry(10011, 64, 46, 89, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 234 */ createSimpleEntry(10011, 64, 46, 523, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 236 */ createSimpleEntry(10011, 185, 46, 91, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 238 */ createSimpleEntry(10011, 185, 46, 88, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 240 */ createSimpleEntry(10011, 185, 46, 293, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 242 */ createSimpleEntry(10011, 185, 46, 295, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 244 */ createSimpleEntry(10011, 185, 46, 294, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 246 */ createSimpleEntry(10011, 185, 46, 708, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 248 */ createSimpleEntry(10011, 64, 694, 89, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 250 */ createSimpleEntry(10011, 64, 694, 523, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 252 */ createSimpleEntry(10011, 185, 694, 91, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 254 */ createSimpleEntry(10011, 185, 694, 88, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 256 */ createSimpleEntry(10011, 185, 694, 293, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 258 */ createSimpleEntry(10011, 185, 694, 295, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 260 */ createSimpleEntry(10011, 185, 694, 294, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 262 */ createSimpleEntry(10011, 185, 694, 708, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 264 */ createSimpleEntry(10011, 64, 837, 89, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 266 */ createSimpleEntry(10011, 64, 837, 523, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 268 */ createSimpleEntry(10011, 185, 837, 91, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 270 */ createSimpleEntry(10011, 185, 837, 88, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 272 */ createSimpleEntry(10011, 185, 837, 293, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 274 */ createSimpleEntry(10011, 185, 837, 295, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 276 */ createSimpleEntry(10011, 185, 837, 294, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 278 */ createSimpleEntry(10011, 185, 837, 708, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 280 */ createSimpleEntry(10011, 64, 205, 89, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 282 */ createSimpleEntry(10011, 64, 205, 523, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 284 */ createSimpleEntry(10011, 185, 205, 91, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 286 */ createSimpleEntry(10011, 185, 205, 88, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 288 */ createSimpleEntry(10011, 185, 205, 293, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 290 */ createSimpleEntry(10011, 185, 205, 295, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 292 */ createSimpleEntry(10011, 185, 205, 294, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 294 */ createSimpleEntry(10011, 185, 205, 708, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 296 */ createSimpleEntry(10011, 64, 698, 89, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 298 */ createSimpleEntry(10011, 64, 698, 523, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 300 */ createSimpleEntry(10011, 185, 698, 91, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 302 */ createSimpleEntry(10011, 185, 698, 88, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 304 */ createSimpleEntry(10011, 185, 698, 293, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 306 */ createSimpleEntry(10011, 185, 698, 295, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 308 */ createSimpleEntry(10011, 185, 698, 294, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 310 */ createSimpleEntry(10011, 185, 698, 708, false, true, 0.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ } \n/* */ \n/* */ \n/* 314 */ createSimpleEntry(1005, 8, 23, 99, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 316 */ createSimpleEntry(1005, 8, 23, 862, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 318 */ createSimpleEntry(1005, 8, 23, 561, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 320 */ createSimpleEntry(1005, 8, 23, 397, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 322 */ createSimpleEntry(1005, 8, 23, 396, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 324 */ createSimpleEntry(1005, 685, 23, 99, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 326 */ createSimpleEntry(1005, 685, 23, 561, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 328 */ createSimpleEntry(1005, 685, 23, 397, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 330 */ createSimpleEntry(1005, 685, 23, 396, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 333 */ createSimpleEntry(1032, 685, 23, 454, false, true, 0.0F, false, false, CreationCategories.FLETCHING);\n/* */ \n/* 335 */ createSimpleEntry(1032, 8, 23, 454, false, true, 0.0F, false, false, CreationCategories.FLETCHING);\n/* */ \n/* 337 */ createSimpleEntry(1032, 451, 454, 455, true, true, 0.0F, false, false, CreationCategories.FLETCHING);\n/* */ \n/* 339 */ createSimpleEntry(1032, 452, 454, 456, true, true, 0.0F, false, false, CreationCategories.FLETCHING);\n/* */ \n/* */ \n/* 342 */ createSimpleEntry(1016, 99, 148, 21, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 344 */ createSimpleEntry(1016, 99, 147, 80, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 346 */ createSimpleEntry(1016, 99, 149, 81, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 348 */ createSimpleEntry(1016, 99, 269, 267, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 350 */ createSimpleEntry(1016, 709, 711, 705, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 352 */ createSimpleEntry(1016, 710, 709, 707, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 354 */ createSimpleEntry(1016, 711, 708, 706, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 356 */ createSimpleEntry(1016, 23, 89, 3, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 358 */ createSimpleEntry(1016, 23, 91, 90, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 360 */ createSimpleEntry(1016, 23, 88, 87, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 362 */ createSimpleEntry(1016, 23, 270, 268, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 365 */ createSimpleEntry(1016, 23, 293, 290, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 367 */ createSimpleEntry(1016, 23, 295, 292, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 369 */ createSimpleEntry(1016, 23, 294, 291, true, true, 0.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 371 */ createSimpleEntry(1005, 8, 9, 139, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 373 */ createSimpleEntry(1005, 685, 9, 139, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 376 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 378 */ createMetallicEntries(1016, 185, 205, 710, false, true, 10.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 380 */ createMetallicEntries(10015, 64, 46, 215, false, true, 400.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 382 */ createMetallicEntries(10015, 64, 46, 259, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 384 */ createMetallicEntries(10015, 64, 46, 257, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 386 */ createMetallicEntries(10015, 64, 46, 258, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 391 */ createSimpleEntry(1016, 185, 205, 710, false, true, 10.0F, false, false, CreationCategories.WEAPONS);\n/* */ \n/* 393 */ createSimpleEntry(10015, 64, 46, 215, false, true, 400.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 395 */ createSimpleEntry(10015, 64, 46, 259, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 397 */ createSimpleEntry(10015, 64, 46, 257, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 399 */ createSimpleEntry(10015, 64, 46, 258, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 401 */ createSimpleEntry(10015, 64, 45, 259, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 403 */ createSimpleEntry(10015, 64, 45, 257, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 405 */ createSimpleEntry(10015, 64, 45, 258, false, true, 10.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 407 */ createSimpleEntry(10015, 64, 47, 216, false, true, 400.0F, false, false, CreationCategories.TOOLS);\n/* */ } \n/* */ \n/* 410 */ createSimpleEntry(10015, 185, 46, 681, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 412 */ createSimpleEntry(10015, 446, 205, 143, true, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 414 */ createSimpleEntry(10015, 64, 47, 772, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 417 */ createSimpleEntry(10015, 64, 46, 773, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 420 */ createSimpleEntry(10015, 64, 220, 1298, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 422 */ createSimpleEntry(10015, 64, 49, 1299, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 425 */ createSimpleEntry(10015, 64, 205, 597, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 428 */ createSimpleEntry(10015, 64, 44, 599, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 430 */ createSimpleEntry(10015, 64, 45, 598, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 432 */ createSimpleEntry(10015, 185, 47, 838, false, true, 0.0F, false, false, 20, 30.0D, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* */ \n/* 436 */ createSimpleEntry(10091, 128, 169, 1270, false, true, 0.0F, true, false, CreationCategories.WRITING);\n/* */ \n/* 438 */ createSimpleEntry(10091, 747, 745, 748, false, true, 0.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* 440 */ createSimpleEntry(10091, 747, 1270, 1272, false, true, 0.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* 442 */ createSimpleEntry(10092, 774, 743, 756, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 444 */ createSimpleEntry(10092, 774, 620, 756, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 447 */ createSimpleEntry(10007, 8, 743, 749, false, true, 0.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* */ \n/* 450 */ createSimpleEntry(10016, 216, 213, 113, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 452 */ createSimpleEntry(10016, 215, 213, 113, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 454 */ createSimpleEntry(10016, 216, 213, 109, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 456 */ createSimpleEntry(10016, 215, 213, 109, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 458 */ createSimpleEntry(10016, 216, 213, 1427, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 460 */ createSimpleEntry(10016, 215, 213, 1427, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 462 */ createSimpleEntry(10016, 215, 213, 704, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 464 */ createSimpleEntry(10016, 216, 213, 704, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 466 */ createSimpleEntry(10016, 215, 213, 1425, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 468 */ createSimpleEntry(10016, 216, 213, 1425, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 471 */ createSimpleEntry(10016, 216, 213, 486, false, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 473 */ createSimpleEntry(10016, 215, 213, 486, false, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* */ \n/* 476 */ createSimpleEntry(10016, 216, 213, 110, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 478 */ createSimpleEntry(10016, 215, 213, 110, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 480 */ createSimpleEntry(10016, 216, 213, 114, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 482 */ createSimpleEntry(10016, 215, 213, 114, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 484 */ createSimpleEntry(10016, 216, 213, 1426, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 486 */ createSimpleEntry(10016, 215, 213, 1426, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 488 */ createSimpleEntry(10016, 215, 213, 2, false, true, 0.0F, false, false, CreationCategories.BAGS);\n/* */ \n/* */ \n/* 491 */ createSimpleEntry(10016, 215, 213, 555, false, true, 0.0F, false, false, CreationCategories.SAILS);\n/* */ \n/* 493 */ createSimpleEntry(10016, 215, 213, 591, false, true, 0.0F, false, false, CreationCategories.SAILS);\n/* */ \n/* 495 */ createSimpleEntry(10016, 215, 213, 554, false, true, 0.0F, false, false, CreationCategories.SAILS);\n/* */ \n/* */ \n/* 498 */ createSimpleEntry(10016, 216, 213, 555, false, true, 0.0F, false, false, CreationCategories.SAILS);\n/* */ \n/* 500 */ createSimpleEntry(10016, 216, 213, 591, false, true, 0.0F, false, false, CreationCategories.SAILS);\n/* */ \n/* 502 */ createSimpleEntry(10016, 216, 213, 554, false, true, 0.0F, false, false, CreationCategories.SAILS);\n/* */ \n/* 504 */ createSimpleEntry(10016, 215, 213, 831, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 506 */ createSimpleEntry(10016, 216, 213, 831, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 509 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 511 */ createMetallicEntries(10015, 185, 46, 627, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 513 */ createMetallicEntries(10015, 185, 46, 623, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* */ \n/* 516 */ createMetallicEntries(10015, 64, 46, 127, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 518 */ createMetallicEntries(10010, 64, 46, 154, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 520 */ createMetallicEntries(10010, 64, 46, 389, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 522 */ createMetallicEntries(10010, 64, 46, 494, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 524 */ createMetallicEntries(10010, 64, 46, 709, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 526 */ createMetallicEntries(10010, 64, 46, 391, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 528 */ createMetallicEntries(10010, 64, 46, 393, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 530 */ createMetallicEntries(10010, 64, 46, 395, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 532 */ createMetallicEntries(10010, 64, 46, 125, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 534 */ createMetallicEntries(10010, 64, 46, 126, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 537 */ createMetallicEntries(10015, 185, 46, 75, false, true, 0.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 539 */ createMetallicEntries(10015, 185, 46, 351, false, true, 0.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 541 */ createMetallicEntries(10015, 64, 46, 734, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 543 */ createMetallicEntries(10015, 64, 46, 720, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 545 */ createMetallicEntries(10015, 185, 46, 721, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 547 */ createMetallicEntries(10015, 64, 46, 735, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 549 */ createMetallicEntries(10015, 185, 46, 350, false, true, 0.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 554 */ createSimpleEntry(10015, 185, 46, 627, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 556 */ createSimpleEntry(10015, 185, 46, 623, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 558 */ createSimpleEntry(10015, 185, 205, 627, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 560 */ createSimpleEntry(10015, 185, 205, 623, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 562 */ createSimpleEntry(10043, 185, 44, 623, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 564 */ createSimpleEntry(10043, 185, 45, 623, false, true, 0.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* */ \n/* 567 */ createSimpleEntry(10015, 64, 46, 127, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 569 */ createSimpleEntry(10010, 64, 46, 154, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 571 */ createSimpleEntry(10010, 64, 46, 389, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 573 */ createSimpleEntry(10010, 64, 46, 494, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 575 */ createSimpleEntry(10010, 64, 46, 709, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 577 */ createSimpleEntry(10010, 64, 205, 709, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 579 */ createSimpleEntry(10010, 64, 698, 709, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 581 */ createSimpleEntry(10010, 64, 694, 709, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 583 */ createSimpleEntry(10010, 64, 837, 709, false, true, 0.0F, false, false, CreationCategories.BLADES);\n/* */ \n/* 585 */ createSimpleEntry(10010, 64, 46, 391, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 587 */ createSimpleEntry(10010, 64, 46, 393, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 589 */ createSimpleEntry(10010, 64, 205, 393, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 591 */ createSimpleEntry(10010, 64, 694, 393, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 593 */ createSimpleEntry(10010, 64, 837, 393, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 595 */ createSimpleEntry(10010, 64, 698, 393, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 597 */ createSimpleEntry(10010, 64, 46, 395, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 599 */ createSimpleEntry(10015, 185, 46, 75, false, true, 0.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 601 */ createSimpleEntry(10015, 185, 46, 351, false, true, 0.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* 603 */ createSimpleEntry(10015, 64, 46, 734, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 605 */ createSimpleEntry(10015, 64, 221, 720, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 607 */ createSimpleEntry(10015, 185, 223, 721, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 609 */ createSimpleEntry(10015, 64, 46, 735, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 611 */ createSimpleEntry(10015, 185, 46, 350, false, true, 0.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* */ \n/* 614 */ createSimpleEntry(10010, 64, 46, 125, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 616 */ createSimpleEntry(10010, 64, 46, 126, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 618 */ createSimpleEntry(10010, 64, 205, 126, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 620 */ createSimpleEntry(10010, 64, 698, 126, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 622 */ createSimpleEntry(10010, 64, 694, 126, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 624 */ createSimpleEntry(10010, 64, 837, 126, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ } \n/* */ \n/* */ \n/* 628 */ createSimpleEntry(10015, 99, 393, 392, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 630 */ createSimpleEntry(10015, 395, 395, 394, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 632 */ createSimpleEntry(10015, 185, 205, 582, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 634 */ createSimpleEntry(10015, 99, 154, 97, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 636 */ createSimpleEntry(10015, 99, 389, 388, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 638 */ createSimpleEntry(10015, 99, 494, 493, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 640 */ createSimpleEntry(10015, 99, 391, 390, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 642 */ createSimpleEntry(10015, 23, 127, 62, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 644 */ createSimpleEntry(10010, 64, 45, 793, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 647 */ createSimpleEntry(10042, 128, 141, 73, true, true, 0.0F, false, false, CreationCategories.ALCHEMY);\n/* */ \n/* 649 */ createSimpleEntry(10042, 128, 436, 437, true, true, 0.0F, false, false, CreationCategories.ALCHEMY);\n/* */ \n/* 651 */ createSimpleEntry(10042, 437, 46, 431, true, true, 0.0F, false, false, CreationCategories.DYES);\n/* */ \n/* 653 */ createSimpleEntry(10042, 128, 48, 432, true, true, 0.0F, false, false, CreationCategories.DYES);\n/* */ \n/* 655 */ createSimpleEntry(10042, 128, 47, 435, true, true, 0.0F, false, false, CreationCategories.DYES);\n/* */ \n/* 657 */ createSimpleEntry(10042, 128, 439, 433, true, true, 0.0F, false, false, CreationCategories.DYES);\n/* */ \n/* 659 */ createSimpleEntry(10042, 128, 440, 434, true, true, 0.0F, false, false, CreationCategories.DYES);\n/* */ \n/* 661 */ createSimpleEntry(10042, 140, 214, 133, true, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 663 */ createSimpleEntry(10042, 356, 140, 650, true, true, 0.0F, false, false, CreationCategories.HEALING);\n/* */ \n/* 665 */ createSimpleEntry(10042, 1254, 214, 133, true, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* */ \n/* 668 */ createSimpleEntry(1013, 130, 298, 492, true, true, 0.0F, true, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* */ \n/* 672 */ createSimpleEntry(1016, 99, 125, 93, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 674 */ createSimpleEntry(1016, 99, 126, 8, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 705 */ createSimpleEntry(1005, 24, 9, 632, false, true, 0.0F, false, false, CreationCategories.CART_PARTS);\n/* */ \n/* 707 */ createSimpleEntry(10016, 139, 144, 214, false, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 709 */ createSimpleEntry(10016, 139, 171, 214, false, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 711 */ createSimpleEntry(10016, 226, 214, 213, false, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 713 */ createSimpleEntry(10016, 226, 214, 646, false, true, 0.0F, false, false, CreationCategories.RUGS);\n/* */ \n/* 715 */ createSimpleEntry(10016, 226, 214, 645, false, true, 0.0F, false, false, CreationCategories.RUGS);\n/* */ \n/* 717 */ createSimpleEntry(10016, 226, 214, 644, false, true, 0.0F, false, false, CreationCategories.RUGS);\n/* */ \n/* 719 */ createSimpleEntry(10016, 226, 214, 639, false, true, 0.0F, false, false, CreationCategories.RUGS);\n/* */ \n/* 721 */ createSimpleEntry(10016, 213, 23, 487, true, true, 0.0F, false, false, CreationCategories.FLAGS);\n/* */ \n/* 723 */ createSimpleEntry(10016, 213, 23, 577, true, true, 0.0F, false, false, CreationCategories.FLAGS);\n/* */ \n/* 725 */ createSimpleEntry(10016, 213, 23, 579, true, true, 0.0F, false, false, CreationCategories.FLAGS);\n/* */ \n/* 727 */ createSimpleEntry(10016, 213, 23, 578, true, true, 0.0F, false, false, CreationCategories.FLAGS);\n/* */ \n/* 729 */ createSimpleEntry(10016, 213, 23, 999, true, true, 0.0F, false, false, 10, 35.0D, CreationCategories.FLAGS);\n/* */ \n/* */ \n/* 732 */ createSimpleEntry(1005, 685, 23, 862, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 735 */ createSimpleEntry(1020, 169, 385, 652, true, true, 0.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 738 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 740 */ createMetallicEntries(10013, 185, 46, 284, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 742 */ createMetallicEntries(10013, 185, 46, 280, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 744 */ createMetallicEntries(10013, 185, 46, 281, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 746 */ createMetallicEntries(10013, 185, 46, 282, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 748 */ createMetallicEntries(10013, 185, 46, 283, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 750 */ createMetallicEntries(10013, 185, 46, 285, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 752 */ createMetallicEntries(10013, 185, 46, 286, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 754 */ createMetallicEntries(10013, 185, 46, 287, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 757 */ createMetallicEntries(10012, 185, 46, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* */ \n/* 760 */ createMetallicEntries(10043, 185, 46, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 765 */ createSimpleEntry(10013, 185, 205, 284, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 767 */ createSimpleEntry(10013, 185, 205, 280, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 769 */ createSimpleEntry(10013, 185, 205, 281, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 771 */ createSimpleEntry(10013, 185, 205, 282, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 773 */ createSimpleEntry(10013, 185, 205, 283, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 775 */ createSimpleEntry(10013, 185, 205, 285, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 777 */ createSimpleEntry(10013, 185, 205, 286, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 779 */ createSimpleEntry(10013, 185, 205, 287, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 782 */ createSimpleEntry(10013, 185, 698, 284, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 784 */ createSimpleEntry(10013, 185, 698, 280, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 786 */ createSimpleEntry(10013, 185, 698, 281, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 788 */ createSimpleEntry(10013, 185, 698, 282, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 790 */ createSimpleEntry(10013, 185, 698, 283, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 792 */ createSimpleEntry(10013, 185, 698, 285, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 794 */ createSimpleEntry(10013, 185, 698, 286, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 796 */ createSimpleEntry(10013, 185, 698, 287, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 799 */ createSimpleEntry(10013, 185, 694, 284, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 801 */ createSimpleEntry(10013, 185, 694, 280, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 803 */ createSimpleEntry(10013, 185, 694, 281, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 805 */ createSimpleEntry(10013, 185, 694, 282, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 807 */ createSimpleEntry(10013, 185, 694, 283, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 809 */ createSimpleEntry(10013, 185, 694, 285, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 811 */ createSimpleEntry(10013, 185, 694, 286, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 813 */ createSimpleEntry(10013, 185, 694, 287, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 816 */ createSimpleEntry(10013, 185, 837, 284, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 818 */ createSimpleEntry(10013, 185, 837, 280, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 820 */ createSimpleEntry(10013, 185, 837, 281, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 822 */ createSimpleEntry(10013, 185, 837, 282, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 824 */ createSimpleEntry(10013, 185, 837, 283, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 826 */ createSimpleEntry(10013, 185, 837, 285, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 828 */ createSimpleEntry(10013, 185, 837, 286, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 830 */ createSimpleEntry(10013, 185, 837, 287, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 833 */ createSimpleEntry(10013, 185, 46, 284, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 835 */ createSimpleEntry(10013, 185, 46, 280, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 837 */ createSimpleEntry(10013, 185, 46, 281, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 839 */ createSimpleEntry(10013, 185, 46, 282, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 841 */ createSimpleEntry(10013, 185, 46, 283, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 843 */ createSimpleEntry(10013, 185, 46, 285, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 845 */ createSimpleEntry(10013, 185, 46, 286, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 847 */ createSimpleEntry(10013, 185, 46, 287, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 850 */ createSimpleEntry(10012, 185, 205, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 852 */ createSimpleEntry(10012, 185, 46, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 854 */ createSimpleEntry(10012, 185, 694, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 856 */ createSimpleEntry(10012, 185, 837, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 858 */ createSimpleEntry(10012, 185, 698, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 860 */ createSimpleEntry(10012, 185, 47, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 862 */ createSimpleEntry(10012, 185, 223, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 864 */ createSimpleEntry(10012, 185, 45, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 866 */ createSimpleEntry(10012, 185, 44, 288, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* */ \n/* 869 */ createSimpleEntry(10043, 185, 205, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 871 */ createSimpleEntry(10043, 185, 46, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 873 */ createSimpleEntry(10043, 185, 47, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 875 */ createSimpleEntry(10043, 185, 223, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 877 */ createSimpleEntry(10043, 185, 45, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 879 */ createSimpleEntry(10043, 185, 44, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 881 */ createSimpleEntry(10043, 185, 694, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 883 */ createSimpleEntry(10043, 185, 837, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 885 */ createSimpleEntry(10043, 185, 698, 326, false, true, 10.0F, false, false, CreationCategories.DECORATION);\n/* */ } \n/* */ \n/* */ \n/* 889 */ createSimpleEntry(10013, 185, 372, 478, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 891 */ createSimpleEntry(10013, 185, 372, 474, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 893 */ createSimpleEntry(10013, 185, 372, 475, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 895 */ createSimpleEntry(10013, 185, 372, 476, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 897 */ createSimpleEntry(10013, 185, 372, 477, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 900 */ createSimpleEntry(10012, 185, 288, 274, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 902 */ createSimpleEntry(10012, 185, 288, 279, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 904 */ createSimpleEntry(10012, 185, 288, 278, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 906 */ createSimpleEntry(10012, 185, 288, 275, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 908 */ createSimpleEntry(10012, 185, 288, 276, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 910 */ createSimpleEntry(10012, 185, 288, 277, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 912 */ createSimpleEntry(10012, 185, 288, 703, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* */ \n/* 915 */ createSimpleEntry(10017, 73, 71, 72, true, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 917 */ createSimpleEntry(10017, 215, 172, 72, false, true, 50.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 923 */ createSimpleEntry(10017, 215, 72, 105, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 925 */ createSimpleEntry(10017, 215, 72, 107, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 927 */ createSimpleEntry(10017, 215, 72, 103, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 929 */ createSimpleEntry(10017, 215, 72, 108, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 931 */ createSimpleEntry(10017, 215, 72, 104, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 933 */ createSimpleEntry(10017, 215, 72, 106, false, true, 10.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 935 */ createSimpleEntry(10017, 215, 72, 102, false, true, 10.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 937 */ createSimpleEntry(10017, 394, 72, 100, false, true, 10.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 939 */ createSimpleEntry(10017, 215, 371, 469, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 941 */ createSimpleEntry(10017, 215, 371, 470, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 943 */ createSimpleEntry(10017, 215, 371, 472, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 945 */ createSimpleEntry(10017, 215, 371, 471, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 947 */ createSimpleEntry(10017, 215, 371, 473, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 949 */ createSimpleEntry(10017, 215, 371, 468, false, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 952 */ createSimpleEntry(10017, 215, 72, 79, false, true, 10.0F, false, false, CreationCategories.BAGS);\n/* */ \n/* 954 */ createSimpleEntry(10017, 215, 72, 1, false, true, 10.0F, false, false, CreationCategories.BAGS);\n/* */ \n/* 956 */ createSimpleEntry(10017, 215, 72, 462, false, true, 10.0F, false, false, CreationCategories.BAGS);\n/* */ \n/* */ \n/* 959 */ createSimpleEntry(10017, 215, 72, 629, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 961 */ createSimpleEntry(10017, 215, 72, 630, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 963 */ createSimpleEntry(10017, 215, 72, 628, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 965 */ createSimpleEntry(10017, 215, 72, 631, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 967 */ createSimpleEntry(10017, 215, 72, 625, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* 969 */ createSimpleEntry(10017, 215, 72, 626, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* */ \n/* 972 */ createSimpleEntry(10017, 215, 72, 1332, false, true, 10.0F, false, false, CreationCategories.ANIMAL_EQUIPMENT_PART);\n/* */ \n/* */ \n/* 975 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 977 */ createMetallicEntries(10015, 64, 46, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 979 */ createMetallicEntries(10015, 64, 46, 517, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 981 */ createMetallicEntries(10015, 64, 46, 444, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 984 */ createMetallicEntries(10011, 64, 46, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 986 */ createMetallicEntries(10011, 64, 46, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* */ \n/* 989 */ createMetallicEntries(10015, 185, 46, 135, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 991 */ createMetallicEntries(10015, 185, 46, 497, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 993 */ createMetallicEntries(10015, 185, 46, 675, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 995 */ createMetallicEntries(10015, 185, 46, 660, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 997 */ createMetallicEntries(10015, 185, 46, 674, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* */ \n/* 1000 */ createMetallicEntries(10011, 64, 46, 123, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 1003 */ createMetallicEntries(10015, 64, 46, 219, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1005 */ createMetallicEntries(10015, 64, 46, 701, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1007 */ createMetallicEntries(10015, 64, 46, 124, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1009 */ createMetallicEntries(10015, 64, 46, 24, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 1014 */ createSimpleEntry(10015, 64, 46, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1016 */ createSimpleEntry(10015, 64, 205, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1018 */ createSimpleEntry(10015, 64, 47, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1020 */ createSimpleEntry(10015, 64, 45, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1022 */ createSimpleEntry(10015, 64, 44, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1024 */ createSimpleEntry(10015, 64, 223, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1026 */ createSimpleEntry(10015, 64, 694, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1028 */ createSimpleEntry(10015, 64, 837, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1030 */ createSimpleEntry(10015, 64, 698, 131, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 1033 */ createSimpleEntry(10015, 64, 46, 517, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1035 */ createSimpleEntry(10015, 64, 205, 517, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1037 */ createSimpleEntry(10015, 64, 47, 517, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1039 */ createSimpleEntry(10015, 64, 45, 517, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1041 */ createSimpleEntry(10015, 64, 44, 517, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1043 */ createSimpleEntry(10015, 64, 223, 517, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 1046 */ createSimpleEntry(10015, 64, 46, 444, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1048 */ createSimpleEntry(10015, 64, 205, 444, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1050 */ createSimpleEntry(10015, 64, 47, 444, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1052 */ createSimpleEntry(10015, 64, 45, 444, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1054 */ createSimpleEntry(10015, 64, 44, 444, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1056 */ createSimpleEntry(10015, 64, 223, 444, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 1059 */ createSimpleEntry(10011, 64, 46, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1061 */ createSimpleEntry(10011, 64, 698, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1063 */ createSimpleEntry(10011, 64, 694, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1065 */ createSimpleEntry(10011, 64, 837, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1067 */ createSimpleEntry(10011, 64, 205, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1069 */ createSimpleEntry(10011, 64, 47, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1071 */ createSimpleEntry(10011, 64, 45, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1073 */ createSimpleEntry(10011, 64, 44, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1075 */ createSimpleEntry(10011, 64, 223, 451, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1077 */ createSimpleEntry(10011, 64, 46, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1079 */ createSimpleEntry(10011, 64, 698, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1081 */ createSimpleEntry(10011, 64, 694, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1083 */ createSimpleEntry(10011, 64, 837, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1085 */ createSimpleEntry(10011, 64, 205, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1087 */ createSimpleEntry(10011, 64, 47, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1089 */ createSimpleEntry(10011, 64, 45, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1091 */ createSimpleEntry(10011, 64, 44, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 1093 */ createSimpleEntry(10011, 64, 223, 452, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* */ \n/* 1096 */ createSimpleEntry(10015, 185, 46, 135, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1098 */ createSimpleEntry(10015, 185, 46, 497, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1100 */ createSimpleEntry(10015, 185, 221, 497, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1102 */ createSimpleEntry(10015, 185, 46, 675, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1104 */ createSimpleEntry(10015, 185, 46, 660, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* */ \n/* 1107 */ createSimpleEntry(10015, 185, 47, 674, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1109 */ createSimpleEntry(10015, 185, 223, 674, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1111 */ createSimpleEntry(10015, 185, 221, 674, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1113 */ createSimpleEntry(10015, 185, 44, 674, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1115 */ createSimpleEntry(10015, 185, 45, 674, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* */ \n/* 1118 */ createSimpleEntry(10011, 64, 46, 123, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1120 */ createSimpleEntry(10011, 64, 205, 123, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1122 */ createSimpleEntry(10011, 64, 694, 123, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1124 */ createSimpleEntry(10011, 64, 837, 123, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1126 */ createSimpleEntry(10011, 64, 698, 123, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 1129 */ createSimpleEntry(10015, 64, 46, 219, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1131 */ createSimpleEntry(10015, 64, 46, 701, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1133 */ createSimpleEntry(10015, 64, 46, 124, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1135 */ createSimpleEntry(10015, 64, 46, 24, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ } \n/* */ \n/* */ \n/* 1139 */ createSimpleEntry(10015, 64, 46, 217, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1141 */ createSimpleEntry(10015, 64, 46, 218, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1143 */ createSimpleEntry(10015, 23, 444, 441, true, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1145 */ createSimpleEntry(1005, 318, 23, 647, true, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 1148 */ createSimpleEntry(10017, 131, 105, 116, true, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 1150 */ createSimpleEntry(10017, 131, 107, 117, true, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 1152 */ createSimpleEntry(10017, 131, 103, 119, true, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 1154 */ createSimpleEntry(10017, 131, 108, 118, true, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 1156 */ createSimpleEntry(10017, 131, 104, 120, true, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* 1158 */ createSimpleEntry(10017, 131, 106, 115, true, true, 0.0F, false, false, CreationCategories.ARMOUR);\n/* */ \n/* */ \n/* 1161 */ createSimpleEntry(1005, 23, 156, 63, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1163 */ createSimpleEntry(1005, 8, 23, 156, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1165 */ createSimpleEntry(1005, 685, 23, 156, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1167 */ createSimpleEntry(10015, 185, 205, 609, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1169 */ createSimpleEntry(10015, 23, 523, 7, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 1172 */ createSimpleEntry(10017, 100, 99, 101, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 1175 */ createSimpleEntry(10015, 9, 497, 496, true, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1177 */ createSimpleEntry(10015, 9, 660, 657, true, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1179 */ createSimpleEntry(10015, 9, 674, 658, true, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1181 */ createSimpleEntry(10015, 185, 221, 136, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1183 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 1185 */ for (int sourceTemplateId : ItemFactory.metalLumpList)\n/* */ {\n/* */ \n/* */ try {\n/* 1189 */ ItemTemplate lump = ItemTemplateFactory.getInstance().getTemplate(sourceTemplateId);\n/* 1190 */ CreationEntry temp = createSimpleEntry(10015, sourceTemplateId, 675, 659, true, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1192 */ temp.objectTargetMaterial = lump.getMaterial();\n/* */ }\n/* 1194 */ catch (NoSuchTemplateException noSuchTemplateException) {}\n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 1202 */ createSimpleEntry(10015, 46, 675, 659, true, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ } \n/* */ \n/* */ \n/* 1206 */ createSimpleEntry(10015, 23, 123, 20, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1208 */ createSimpleEntry(10015, 735, 721, 718, true, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1210 */ createSimpleEntry(10015, 23, 686, 687, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1212 */ createSimpleEntry(10015, 691, 686, 687, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 1215 */ createSimpleEntry(10015, 23, 1010, 1011, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1217 */ createSimpleEntry(10015, 691, 1010, 1011, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1219 */ createSimpleEntry(10015, 23, 124, 27, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 1222 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 1224 */ createMetallicEntries(10014, 185, 46, 86, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1226 */ createMetallicEntries(10014, 185, 46, 4, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1228 */ createMetallicEntries(10014, 185, 46, 83, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* */ \n/* 1231 */ createMetallicEntries(10015, 185, 46, 121, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 1234 */ createMetallicEntries(10043, 64, 46, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1236 */ createMetallicEntries(10043, 64, 46, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1238 */ createMetallicEntries(10043, 64, 46, 229, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 1243 */ createSimpleEntry(10014, 185, 46, 86, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1245 */ createSimpleEntry(10014, 185, 46, 4, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1247 */ createSimpleEntry(10014, 185, 46, 83, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1249 */ createSimpleEntry(10014, 185, 698, 86, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1251 */ createSimpleEntry(10014, 185, 698, 4, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1253 */ createSimpleEntry(10014, 185, 698, 83, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1255 */ createSimpleEntry(10014, 185, 205, 86, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1257 */ createSimpleEntry(10014, 185, 205, 4, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1259 */ createSimpleEntry(10014, 185, 205, 83, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1261 */ createSimpleEntry(10014, 185, 694, 86, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1263 */ createSimpleEntry(10014, 185, 694, 4, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1265 */ createSimpleEntry(10014, 185, 694, 83, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1267 */ createSimpleEntry(10014, 185, 837, 86, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1269 */ createSimpleEntry(10014, 185, 837, 4, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* 1271 */ createSimpleEntry(10014, 185, 837, 83, false, true, 0.0F, false, false, CreationCategories.SHIELDS);\n/* */ \n/* */ \n/* 1274 */ createSimpleEntry(10015, 185, 46, 121, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1276 */ createSimpleEntry(10015, 185, 205, 121, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1278 */ createSimpleEntry(10015, 185, 698, 121, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1280 */ createSimpleEntry(10015, 185, 694, 121, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1282 */ createSimpleEntry(10015, 185, 837, 121, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 1285 */ createSimpleEntry(10043, 64, 44, 229, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1287 */ createSimpleEntry(10043, 64, 45, 229, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* */ \n/* 1290 */ createSimpleEntry(10043, 64, 44, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1292 */ createSimpleEntry(10043, 64, 45, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1294 */ createSimpleEntry(10043, 64, 46, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1296 */ createSimpleEntry(10043, 64, 698, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1298 */ createSimpleEntry(10043, 64, 694, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1300 */ createSimpleEntry(10043, 64, 837, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1302 */ createSimpleEntry(10043, 64, 47, 228, false, true, 0.0F, false, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1304 */ createSimpleEntry(10043, 64, 44, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1306 */ createSimpleEntry(10043, 64, 45, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1308 */ createSimpleEntry(10043, 64, 46, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1310 */ createSimpleEntry(10043, 64, 47, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1312 */ createSimpleEntry(10043, 64, 223, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1314 */ createSimpleEntry(10043, 64, 221, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1316 */ createSimpleEntry(10043, 64, 49, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1318 */ createSimpleEntry(10043, 64, 205, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1320 */ createSimpleEntry(10043, 64, 694, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1322 */ createSimpleEntry(10043, 64, 837, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1324 */ createSimpleEntry(10043, 64, 698, 232, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ } \n/* */ \n/* */ \n/* 1328 */ createSimpleEntry(10015, 185, 46, 188, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1330 */ createSimpleEntry(10015, 23, 121, 25, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1332 */ createSimpleEntry(1005, 23, 689, 690, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1334 */ createSimpleEntry(1005, 691, 689, 690, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1336 */ createSimpleEntry(10041, 204, 46, 205, true, true, 0.0F, true, false, CreationCategories.RESOURCES);\n/* */ \n/* 1338 */ createSimpleEntry(10041, 220, 47, 223, true, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 1340 */ createSimpleEntry(10041, 48, 47, 221, true, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 1342 */ createSimpleEntry(10043, 64, 44, 227, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1344 */ createSimpleEntry(10043, 64, 45, 227, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1346 */ createSimpleEntry(10043, 64, 1411, 227, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1348 */ createSimpleEntry(10043, 64, 44, 505, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1350 */ createSimpleEntry(10043, 64, 45, 505, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1352 */ createSimpleEntry(10043, 64, 1411, 505, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1354 */ createSimpleEntry(10043, 64, 44, 506, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1356 */ createSimpleEntry(10043, 64, 45, 506, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1358 */ createSimpleEntry(10043, 64, 1411, 506, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1360 */ createSimpleEntry(10043, 64, 44, 507, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1362 */ createSimpleEntry(10043, 64, 45, 507, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1364 */ createSimpleEntry(10043, 64, 1411, 507, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1366 */ createSimpleEntry(10043, 64, 44, 508, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1368 */ createSimpleEntry(10043, 64, 45, 508, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1370 */ createSimpleEntry(10043, 64, 1411, 508, false, true, 0.0F, false, false, CreationCategories.STATUETTES);\n/* */ \n/* 1372 */ createSimpleEntry(10043, 64, 44, 230, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1374 */ createSimpleEntry(10043, 64, 45, 230, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1376 */ createSimpleEntry(10043, 64, 1411, 230, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1378 */ createSimpleEntry(10043, 64, 44, 231, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1380 */ createSimpleEntry(10043, 64, 45, 231, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1382 */ createSimpleEntry(10043, 64, 1411, 231, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1384 */ createSimpleEntry(10043, 64, 694, 231, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1386 */ createSimpleEntry(10043, 64, 837, 231, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1388 */ createSimpleEntry(10043, 64, 698, 231, false, true, 0.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1390 */ createSimpleEntry(10043, 64, 44, 297, false, true, 100.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1392 */ createSimpleEntry(10043, 64, 45, 297, false, true, 100.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1394 */ createSimpleEntry(10043, 64, 1411, 297, false, true, 100.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1396 */ createSimpleEntry(10043, 64, 698, 297, false, true, 100.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1398 */ createSimpleEntry(10043, 64, 694, 297, false, true, 100.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1400 */ createSimpleEntry(10043, 64, 837, 297, false, true, 100.0F, false, false, CreationCategories.JEWELRY);\n/* */ \n/* 1402 */ createSimpleEntry(10043, 229, 232, 233, true, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1404 */ createSimpleEntry(10043, 185, 47, 839, false, true, 0.0F, false, false, 20, 30.0D, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1406 */ createSimpleEntry(10043, 185, 44, 840, false, true, 0.0F, false, false, 20, 30.0D, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 1409 */ createSimpleEntry(10051, 214, 23, 271, true, true, 100.0F, false, false, CreationCategories.TOYS);\n/* */ \n/* 1411 */ createSimpleEntry(10074, 97, 146, 132, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1413 */ createSimpleEntry(10074, 97, 146, 1122, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1415 */ createSimpleEntry(10074, 97, 785, 786, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1417 */ createSimpleEntry(10074, 97, 770, 784, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1419 */ createSimpleEntry(10074, 97, 146, 519, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1421 */ createSimpleEntry(10074, 97, 1116, 1121, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1423 */ createSimpleEntry(10074, 97, 770, 1123, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 1426 */ createSimpleEntry(10074, 97, 146, 202, false, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1428 */ createSimpleEntry(10074, 97, 146, 296, false, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1430 */ createSimpleEntry(10074, 97, 146, 402, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1432 */ createSimpleEntry(10074, 97, 146, 399, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1434 */ createSimpleEntry(10074, 97, 146, 400, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1436 */ createSimpleEntry(10074, 97, 146, 403, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1438 */ createSimpleEntry(10074, 97, 146, 398, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1440 */ createSimpleEntry(10074, 97, 146, 401, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1442 */ createSimpleEntry(10074, 97, 146, 406, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1444 */ createSimpleEntry(10074, 97, 785, 787, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1446 */ createSimpleEntry(10074, 97, 1116, 1124, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1448 */ createSimpleEntry(10074, 97, 770, 771, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1450 */ createSimpleEntry(10074, 97, 146, 905, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1452 */ createSimpleEntry(10074, 97, 785, 906, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1454 */ createSimpleEntry(10074, 97, 770, 1302, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1456 */ createSimpleEntry(10074, 97, 1116, 1305, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1458 */ createSimpleEntry(1011, 14, 130, 1303, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1460 */ createSimpleEntry(10074, 97, 146, 408, false, true, 10.0F, false, true, CreationCategories.FOUNTAINS_AND_WELLS);\n/* */ \n/* 1462 */ createSimpleEntry(10074, 97, 146, 635, false, true, 10.0F, false, true, CreationCategories.FOUNTAINS_AND_WELLS);\n/* */ \n/* 1464 */ createSimpleEntry(10074, 97, 146, 405, false, true, 10.0F, false, true, CreationCategories.FOUNTAINS_AND_WELLS);\n/* */ \n/* 1466 */ createSimpleEntry(10074, 97, 146, 593, false, true, 10.0F, false, true, CreationCategories.MINE_DOORS);\n/* */ \n/* 1468 */ createSimpleEntry(10074, 684, 146, 685, true, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1470 */ createSimpleEntry(10074, 685, 146, 686, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1472 */ createSimpleEntry(10074, 685, 146, 689, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1474 */ createSimpleEntry(10074, 685, 146, 1010, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1476 */ createSimpleEntry(10074, 97, 146, 686, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1478 */ createSimpleEntry(10074, 97, 146, 689, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1480 */ createSimpleEntry(10074, 97, 146, 1010, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1482 */ createSimpleEntry(1005, 685, 688, 36, false, true, 10.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 1484 */ createSimpleEntry(1005, 8, 688, 36, false, true, 10.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 1486 */ createSimpleEntry(1005, 93, 688, 36, false, true, 10.0F, false, false, CreationCategories.KINDLINGS);\n/* */ \n/* 1488 */ createSimpleEntry(1005, 685, 688, 23, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1490 */ createSimpleEntry(1005, 8, 688, 23, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1492 */ createSimpleEntry(1005, 93, 688, 23, false, true, 10.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 1495 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 1497 */ createMetallicEntries(10034, 64, 46, 167, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1499 */ createMetallicEntries(10034, 64, 46, 194, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1501 */ createMetallicEntries(10034, 64, 46, 193, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1503 */ createMetallicEntries(10034, 64, 46, 463, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* 1505 */ createMetallicEntries(10034, 185, 46, 252, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1507 */ createMetallicEntries(10034, 185, 46, 568, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* */ \n/* 1510 */ createMetallicEntries(10015, 64, 46, 185, false, true, 0.0F, false, true, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 1513 */ createMetallicEntries(10015, 185, 46, 547, false, true, 0.0F, false, true, CreationCategories.SHIPBUILDING);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 1518 */ createSimpleEntry(10034, 64, 46, 167, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1520 */ createSimpleEntry(10034, 64, 46, 194, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1522 */ createSimpleEntry(10034, 64, 46, 193, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1524 */ createSimpleEntry(10034, 64, 694, 167, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1526 */ createSimpleEntry(10034, 64, 694, 194, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1528 */ createSimpleEntry(10034, 64, 694, 193, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1530 */ createSimpleEntry(10034, 64, 837, 167, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1532 */ createSimpleEntry(10034, 64, 837, 194, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1534 */ createSimpleEntry(10034, 64, 837, 193, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1536 */ createSimpleEntry(10034, 64, 698, 167, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1538 */ createSimpleEntry(10034, 64, 698, 194, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1540 */ createSimpleEntry(10034, 64, 698, 193, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1542 */ createSimpleEntry(10034, 64, 46, 463, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* 1544 */ createSimpleEntry(10034, 64, 205, 463, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* 1546 */ createSimpleEntry(10034, 64, 694, 463, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* 1548 */ createSimpleEntry(10034, 64, 837, 463, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* 1550 */ createSimpleEntry(10034, 64, 698, 463, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* 1552 */ createSimpleEntry(10034, 64, 47, 463, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* 1554 */ createSimpleEntry(10034, 185, 46, 252, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1556 */ createSimpleEntry(10034, 185, 46, 568, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* */ \n/* 1559 */ createSimpleEntry(10015, 64, 46, 185, false, true, 0.0F, false, true, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 1562 */ createSimpleEntry(10015, 185, 49, 547, false, true, 0.0F, false, true, CreationCategories.SHIPBUILDING);\n/* */ } \n/* */ \n/* */ \n/* 1566 */ createSimpleEntry(10034, 168, 130, 342, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1568 */ createSimpleEntry(10034, 343, 47, 341, false, true, 0.0F, false, false, CreationCategories.LOCKS);\n/* */ \n/* 1570 */ createSimpleEntry(10034, 341, 130, 342, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 1573 */ createSimpleEntry(1014, 320, 318, 319, false, true, 30.0F, false, false, CreationCategories.ROPES);\n/* */ \n/* 1575 */ createSimpleEntry(1014, 320, 318, 557, false, true, 30.0F, false, false, CreationCategories.ROPES);\n/* */ \n/* 1577 */ createSimpleEntry(1014, 320, 318, 559, false, true, 30.0F, false, false, CreationCategories.ROPES);\n/* */ \n/* 1579 */ createSimpleEntry(1014, 320, 318, 558, false, true, 30.0F, false, false, CreationCategories.ROPES);\n/* */ \n/* 1581 */ createSimpleEntry(1014, 320, 318, 457, false, true, 30.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1583 */ createSimpleEntry(10039, 428, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* 1585 */ createSimpleEntry(10039, 66, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* 1587 */ createSimpleEntry(10039, 68, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* 1589 */ createSimpleEntry(10039, 69, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* 1591 */ createSimpleEntry(10039, 67, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* 1593 */ createSimpleEntry(10039, 415, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* 1595 */ createSimpleEntry(10039, 70, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* 1597 */ createSimpleEntry(10039, 464, 203, 488, true, true, 0.0F, false, false, CreationCategories.FOOD);\n/* */ \n/* */ \n/* 1600 */ createSimpleEntry(10042, 413, 752, 753, false, true, 50.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* */ \n/* 1603 */ createSimpleEntry(1018, 8, 33, 522, false, true, 0.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 1605 */ createSimpleEntry(1018, 685, 33, 522, false, true, 0.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 1608 */ createSimpleEntry(10043, 185, 45, 325, false, true, 0.0F, false, true, CreationCategories.ALTAR);\n/* */ \n/* 1610 */ createSimpleEntry(10043, 185, 44, 324, false, true, 0.0F, false, true, CreationCategories.ALTAR);\n/* */ \n/* */ \n/* 1613 */ createSimpleEntry(10082, 24, 9, 556, false, true, 60.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1615 */ createSimpleEntry(10082, 24, 9, 545, false, true, 20.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1617 */ createSimpleEntry(10082, 8, 9, 550, false, true, 30.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1619 */ createSimpleEntry(10082, 8, 9, 549, false, true, 30.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1621 */ createSimpleEntry(10082, 8, 23, 567, false, true, 30.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* */ \n/* 1624 */ createSimpleEntry(10082, 8, 9, 551, false, true, 40.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1626 */ createSimpleEntry(10082, 24, 9, 546, false, true, 0.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1628 */ createSimpleEntry(10082, 24, 9, 566, false, true, 40.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1630 */ createSimpleEntry(10082, 7, 385, 552, false, true, 20.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1632 */ createSimpleEntry(10082, 7, 385, 588, false, true, 20.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1634 */ createSimpleEntry(10082, 7, 385, 590, false, true, 20.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1636 */ createSimpleEntry(10082, 7, 385, 589, false, true, 20.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* */ \n/* 1639 */ createSimpleEntry(10082, 7, 385, 560, false, true, 50.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1641 */ createSimpleEntry(1020, 558, 547, 565, true, true, 0.0F, false, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* */ \n/* 1644 */ createSimpleEntry(10042, 73, 492, 782, true, true, 0.0F, true, false, CreationCategories.RESOURCES);\n/* */ \n/* 1646 */ createSimpleEntry(10074, 97, 146, 811, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* */ \n/* 1649 */ createSimpleEntry(10015, 185, 46, 859, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 1652 */ createSimpleEntry(10042, 383, 711, 825, true, true, 0.0F, false, false, CreationCategories.MAGIC);\n/* */ \n/* 1654 */ createSimpleEntry(10042, 377, 711, 826, true, true, 0.0F, false, false, CreationCategories.MAGIC);\n/* */ \n/* 1656 */ createSimpleEntry(10042, 381, 711, 827, true, true, 0.0F, false, false, CreationCategories.MAGIC);\n/* */ \n/* 1658 */ createSimpleEntry(10042, 379, 711, 828, true, true, 0.0F, false, false, CreationCategories.MAGIC);\n/* */ \n/* 1660 */ createSimpleEntry(10042, 375, 711, 829, true, true, 0.0F, false, false, CreationCategories.MAGIC);\n/* */ \n/* 1662 */ createSimpleEntry(1011, 14, 130, 812, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 1664 */ createSimpleEntry(10074, 97, 146, 821, false, true, 0.0F, false, false, CreationCategories.DECORATION);\n/* */ \n/* 1666 */ createSimpleEntry(10015, 64, 221, 902, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1668 */ createSimpleEntry(10015, 64, 223, 904, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* 1670 */ createSimpleEntry(10016, 922, 921, 925, false, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* 1672 */ createSimpleEntry(10016, 226, 925, 926, false, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* */ \n/* 1675 */ createSimpleEntry(10016, 215, 926, 943, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 1678 */ createSimpleEntry(10016, 216, 926, 943, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* */ \n/* 1682 */ createSimpleEntry(10016, 215, 926, 954, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 1685 */ createSimpleEntry(10016, 216, 926, 954, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* */ \n/* 1689 */ createSimpleEntry(10017, 926, 847, 959, true, true, 0.0F, false, false, CreationCategories.ARMOUR)\n/* 1690 */ .setFinalMaterial((byte)16);\n/* 1691 */ createSimpleEntry(10017, 215, 72, 960, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* */ \n/* 1695 */ createSimpleEntry(10016, 215, 926, 961, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 1698 */ createSimpleEntry(10016, 216, 926, 961, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* */ \n/* 1702 */ createSimpleEntry(10016, 226, 214, 908, false, true, 0.0F, false, false, 0, 20.0D, CreationCategories.RUGS)\n/* */ \n/* 1704 */ .setDepleteFromTarget(3000);\n/* */ \n/* 1706 */ createSimpleEntry(10016, 226, 214, 909, false, true, 0.0F, false, false, 0, 30.0D, CreationCategories.RUGS)\n/* */ \n/* 1708 */ .setDepleteFromTarget(4000);\n/* */ \n/* 1710 */ createSimpleEntry(10016, 226, 214, 910, false, true, 0.0F, false, false, 0, 40.0D, CreationCategories.RUGS)\n/* */ \n/* 1712 */ .setDepleteFromTarget(5000);\n/* */ \n/* */ \n/* 1715 */ createSimpleEntry(10074, 97, 785, 402, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1717 */ createSimpleEntry(10074, 97, 785, 403, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1719 */ createSimpleEntry(10074, 97, 785, 398, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1721 */ createSimpleEntry(10074, 97, 785, 401, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* 1723 */ createSimpleEntry(10074, 97, 785, 811, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* */ \n/* 1726 */ createSimpleEntry(1011, 14, 130, 1160, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 1728 */ createSimpleEntry(1011, 14, 130, 1164, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 1730 */ createSimpleEntry(1011, 14, 130, 1168, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 1732 */ createSimpleEntry(1011, 14, 130, 1171, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 1734 */ createSimpleEntry(1011, 14, 130, 1251, false, true, 0.0F, false, false, CreationCategories.POTTERY);\n/* */ \n/* 1736 */ createSimpleEntry(10015, 64, 220, 1166, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1738 */ createSimpleEntry(10074, 97, 785, 1167, false, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1740 */ createSimpleEntry(10074, 97, 785, 1237, false, true, 10.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* 1742 */ createSimpleEntry(1005, 8, 9, 1173, false, true, 0.0F, false, false, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* */ \n/* */ \n/* 1746 */ int[] metalTypes = { 221, 223, 220, 694, 698, 44, 45, 205, 47, 46, 49, 48, 837 };\n/* */ \n/* */ \n/* 1749 */ int[] runeTypes = { 1290, 1293, 1292, 1289, 1291 };\n/* 1750 */ for (int metal : metalTypes) {\n/* */ \n/* 1752 */ for (int rune : runeTypes) {\n/* */ \n/* 1754 */ createSimpleEntry(10074, 1102, metal, rune, true, true, 0.0F, false, false, CreationCategories.MAGIC)\n/* */ \n/* 1756 */ .setDepleteFromTarget(200);\n/* 1757 */ createSimpleEntry(10043, 1103, metal, rune, true, true, 0.0F, false, false, CreationCategories.MAGIC)\n/* */ \n/* 1759 */ .setDepleteFromTarget(200);\n/* 1760 */ createSimpleEntry(10044, 1104, metal, rune, true, true, 0.0F, false, false, CreationCategories.MAGIC)\n/* */ \n/* 1762 */ .setDepleteFromTarget(200);\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1768 */ createSimpleEntry(10074, 1102, 1411, 1290, true, true, 0.0F, false, false, CreationCategories.MAGIC)\n/* */ \n/* 1770 */ .setDepleteFromTarget(200);\n/* 1771 */ createSimpleEntry(10043, 1103, 1411, 1290, true, true, 0.0F, false, false, CreationCategories.MAGIC)\n/* */ \n/* 1773 */ .setDepleteFromTarget(200);\n/* 1774 */ createSimpleEntry(10044, 1104, 1411, 1290, true, true, 0.0F, false, false, CreationCategories.MAGIC)\n/* */ \n/* 1776 */ .setDepleteFromTarget(200);\n/* */ \n/* */ \n/* 1779 */ createSimpleEntry(10041, 44, 45, 1411, true, true, 0.0F, false, false, CreationCategories.RESOURCES);\n/* */ \n/* */ \n/* 1782 */ createSimpleEntry(10074, 97, 785, 1430, false, true, 10.0F, false, true, CreationCategories.STATUES);\n/* */ \n/* */ \n/* */ \n/* 1786 */ CreationEntry brownBearRug = createSimpleEntry(10017, 302, 349, 847, true, true, 0.0F, false, false, 0, 30.0D, CreationCategories.RUGS);\n/* */ \n/* 1788 */ brownBearRug.setDepleteFromSource(3000);\n/* 1789 */ brownBearRug.setDepleteFromTarget(1);\n/* */ \n/* 1791 */ CreationEntry blackBearRug = createSimpleEntry(10017, 302, 349, 846, true, true, 0.0F, false, false, 0, 30.0D, CreationCategories.RUGS);\n/* */ \n/* 1793 */ blackBearRug.setDepleteFromSource(3000);\n/* 1794 */ blackBearRug.setDepleteFromTarget(1);\n/* */ \n/* 1796 */ CreationEntry mountainLionRug = createSimpleEntry(10017, 313, 349, 848, true, true, 0.0F, false, false, 0, 30.0D, CreationCategories.RUGS);\n/* */ \n/* 1798 */ mountainLionRug.setDepleteFromSource(300);\n/* 1799 */ mountainLionRug.setDepleteFromTarget(1);\n/* */ \n/* 1801 */ CreationEntry blackWolfRug = createSimpleEntry(10017, 302, 349, 849, true, true, 0.0F, false, false, 0, 30.0D, CreationCategories.RUGS);\n/* */ \n/* 1803 */ blackWolfRug.setDepleteFromSource(3000);\n/* 1804 */ blackWolfRug.setDepleteFromTarget(1);\n/* */ \n/* 1806 */ AdvancedCreationEntry lRudder = createAdvancedEntry(10082, 23, 22, 544, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1808 */ lRudder.addRequirement(new CreationRequirement(1, 22, 5, true));\n/* */ \n/* 1810 */ AdvancedCreationEntry bellCot = createAdvancedEntry(1005, 217, 22, 723, false, false, 0.0F, true, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 1812 */ bellCot.addRequirement(new CreationRequirement(1, 22, 25, true));\n/* 1813 */ bellCot.addRequirement(new CreationRequirement(2, 9, 4, true));\n/* */ \n/* 1815 */ AdvancedCreationEntry bellTower = createAdvancedEntry(1005, 718, 723, 722, false, false, 0.0F, true, false, CreationCategories.DECORATION);\n/* */ \n/* 1817 */ bellTower.addRequirement(new CreationRequirement(1, 319, 1, true));\n/* */ \n/* 1819 */ AdvancedCreationEntry bellSmall = createAdvancedEntry(10015, 734, 720, 719, false, false, 0.0F, true, false, CreationCategories.TOYS);\n/* */ \n/* 1821 */ bellSmall.addRequirement(new CreationRequirement(1, 99, 1, true));\n/* */ \n/* 1823 */ AdvancedCreationEntry lHelm = createAdvancedEntry(10082, 23, 22, 548, false, false, 0.0F, true, true, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1825 */ lHelm.addRequirement(new CreationRequirement(1, 23, 5, true));\n/* 1826 */ lHelm.addRequirement(new CreationRequirement(2, 22, 4, true));\n/* 1827 */ lHelm.addRequirement(new CreationRequirement(3, 561, 8, true));\n/* */ \n/* 1829 */ AdvancedCreationEntry well = createAdvancedEntry(1013, 132, 130, 608, false, false, 0.0F, true, true, CreationCategories.FOUNTAINS_AND_WELLS);\n/* */ \n/* 1831 */ well.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 1832 */ well.addRequirement(new CreationRequirement(2, 130, 10, true));\n/* 1833 */ well.addRequirement(new CreationRequirement(3, 319, 1, true));\n/* 1834 */ well.addRequirement(new CreationRequirement(4, 421, 1, true));\n/* */ \n/* 1836 */ AdvancedCreationEntry lStern = createAdvancedEntry(10082, 551, 546, 553, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1838 */ lStern.addRequirement(new CreationRequirement(1, 546, 10, true));\n/* 1839 */ lStern.addRequirement(new CreationRequirement(2, 551, 9, true));\n/* 1840 */ lStern.addRequirement(new CreationRequirement(3, 561, 20, true));\n/* */ \n/* 1842 */ AdvancedCreationEntry lRigS = createAdvancedEntry(10082, 589, 555, 564, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1844 */ lRigS.addRequirement(new CreationRequirement(1, 559, 4, true));\n/* 1845 */ lRigS.addRequirement(new CreationRequirement(2, 549, 2, true));\n/* 1846 */ lRigS.addRequirement(new CreationRequirement(3, 550, 2, true));\n/* */ \n/* 1848 */ AdvancedCreationEntry lRigT = createAdvancedEntry(10082, 588, 554, 563, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1850 */ lRigT.addRequirement(new CreationRequirement(1, 559, 2, true));\n/* 1851 */ lRigT.addRequirement(new CreationRequirement(2, 549, 2, true));\n/* */ \n/* 1853 */ AdvancedCreationEntry spinRigT = createAdvancedEntry(10082, 588, 591, 584, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1855 */ spinRigT.addRequirement(new CreationRequirement(1, 559, 2, true));\n/* 1856 */ spinRigT.addRequirement(new CreationRequirement(2, 549, 2, true));\n/* */ \n/* 1858 */ AdvancedCreationEntry lRigCrows = createAdvancedEntry(10082, 590, 555, 585, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1860 */ lRigCrows.addRequirement(new CreationRequirement(1, 559, 8, true));\n/* 1861 */ lRigCrows.addRequirement(new CreationRequirement(2, 583, 1, true));\n/* 1862 */ lRigCrows.addRequirement(new CreationRequirement(3, 550, 4, true));\n/* 1863 */ lRigCrows.addRequirement(new CreationRequirement(4, 549, 2, true));\n/* */ \n/* 1865 */ AdvancedCreationEntry tRigCrows = createAdvancedEntry(10082, 552, 555, 587, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1867 */ tRigCrows.addRequirement(new CreationRequirement(1, 559, 16, true));\n/* 1868 */ tRigCrows.addRequirement(new CreationRequirement(2, 583, 1, true));\n/* 1869 */ tRigCrows.addRequirement(new CreationRequirement(3, 555, 5, true));\n/* 1870 */ tRigCrows.addRequirement(new CreationRequirement(4, 550, 8, true));\n/* 1871 */ tRigCrows.addRequirement(new CreationRequirement(5, 549, 4, true));\n/* */ \n/* 1873 */ AdvancedCreationEntry lRigSqY = createAdvancedEntry(10082, 552, 555, 586, false, false, 0.0F, true, false, CreationCategories.SHIPBUILDING);\n/* */ \n/* 1875 */ lRigSqY.addRequirement(new CreationRequirement(1, 559, 12, true));\n/* 1876 */ lRigSqY.addRequirement(new CreationRequirement(2, 555, 3, true));\n/* 1877 */ lRigSqY.addRequirement(new CreationRequirement(3, 550, 6, true));\n/* */ \n/* 1879 */ AdvancedCreationEntry bardingLeather = createAdvancedEntry(10017, 131, 72, 702, false, false, 0.0F, true, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 1881 */ bardingLeather.addRequirement(new CreationRequirement(1, 72, 4, true));\n/* 1882 */ bardingLeather.addRequirement(new CreationRequirement(2, 131, 50, true));\n/* */ \n/* 1884 */ AdvancedCreationEntry bridle = createAdvancedEntry(10017, 627, 631, 624, false, false, 0.0F, true, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 1886 */ bridle.addRequirement(new CreationRequirement(1, 628, 1, true));\n/* */ \n/* 1888 */ AdvancedCreationEntry saddle = createAdvancedEntry(10017, 625, 629, 621, false, false, 0.0F, true, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 1890 */ saddle.addRequirement(new CreationRequirement(1, 626, 1, true));\n/* */ \n/* 1892 */ AdvancedCreationEntry saddleL = createAdvancedEntry(10017, 625, 630, 622, false, false, 0.0F, true, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* */ \n/* 1895 */ saddleL.addRequirement(new CreationRequirement(1, 626, 1, true));\n/* */ \n/* 1897 */ AdvancedCreationEntry saddleBag = createAdvancedEntry(10017, 1332, 102, 1333, false, false, 0.0F, true, false, CreationCategories.ANIMAL_EQUIPMENT);\n/* */ \n/* 1899 */ saddleBag.addRequirement(new CreationRequirement(1, 102, 1, true));\n/* 1900 */ saddleBag.addRequirement(new CreationRequirement(2, 1332, 1, true));\n/* */ \n/* 1902 */ AdvancedCreationEntry birdcage = createAdvancedEntry(10043, 897, 444, 1025, false, false, 0.0F, true, false, CreationCategories.DECORATION);\n/* */ \n/* 1904 */ birdcage.addRequirement(new CreationRequirement(1, 897, 1, true));\n/* 1905 */ birdcage.addRequirement(new CreationRequirement(2, 131, 10, true));\n/* 1906 */ birdcage.addRequirement(new CreationRequirement(3, 444, 4, true));\n/* 1907 */ birdcage.addRequirement(new CreationRequirement(4, 326, 1, true));\n/* 1908 */ birdcage.addRequirement(new CreationRequirement(5, 221, 10, true));\n/* 1909 */ birdcage.addRequirement(new CreationRequirement(6, 464, 1, true));\n/* 1910 */ birdcage.setIsEpicBuildMissionTarget(false);\n/* */ \n/* */ \n/* */ \n/* 1914 */ createBoatEntries();\n/* */ \n/* */ \n/* 1917 */ AdvancedCreationEntry sacknife = createAdvancedEntry(1016, 101, 793, 792, false, false, 0.0F, true, false, CreationCategories.WEAPONS);\n/* */ \n/* */ \n/* 1920 */ sacknife.addRequirement(new CreationRequirement(1, 376, 3, true));\n/* 1921 */ sacknife.addRequirement(new CreationRequirement(2, 382, 3, true));\n/* 1922 */ sacknife.addRequirement(new CreationRequirement(3, 380, 1, true));\n/* */ \n/* 1924 */ AdvancedCreationEntry torch = createAdvancedEntry(1010, 153, 23, 138, false, false, 0.0F, true, false, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* 1926 */ torch.addRequirement(new CreationRequirement(1, 479, 1, true));\n/* */ \n/* 1928 */ AdvancedCreationEntry oven = createAdvancedEntry(1013, 132, 130, 178, false, false, 0.0F, true, true, CreationCategories.FIRE);\n/* */ \n/* 1930 */ oven.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 1931 */ oven.addRequirement(new CreationRequirement(2, 130, 10, true));\n/* */ \n/* 1933 */ AdvancedCreationEntry forge = createAdvancedEntry(1013, 132, 130, 180, false, false, 0.0F, true, true, CreationCategories.FIRE);\n/* */ \n/* 1935 */ forge.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 1936 */ forge.addRequirement(new CreationRequirement(2, 130, 10, true));\n/* */ \n/* 1938 */ AdvancedCreationEntry colossus = createAdvancedEntry(1013, 519, 130, 518, false, false, 0.0F, true, true, CreationCategories.STATUES);\n/* */ \n/* 1940 */ colossus.addRequirement(new CreationRequirement(1, 519, 1999, true));\n/* 1941 */ colossus.addRequirement(new CreationRequirement(2, 130, 1999, true));\n/* 1942 */ colossus.setIsEpicBuildMissionTarget(false);\n/* */ \n/* 1944 */ AdvancedCreationEntry pylon = createAdvancedEntry(1013, 406, 130, 713, false, false, 0.0F, true, true, CreationCategories.EPIC);\n/* */ \n/* 1946 */ pylon.addRequirement(new CreationRequirement(1, 406, 100, true));\n/* 1947 */ pylon.addRequirement(new CreationRequirement(2, 130, 1999, true));\n/* 1948 */ pylon.addRequirement(new CreationRequirement(3, 132, 1000, true));\n/* 1949 */ pylon.addRequirement(new CreationRequirement(4, 221, 1000, true));\n/* 1950 */ pylon.isOnlyCreateEpicTargetMission = true;\n/* */ \n/* 1952 */ AdvancedCreationEntry shrine = createAdvancedEntry(1005, 406, 130, 712, false, false, 0.0F, true, true, CreationCategories.EPIC);\n/* */ \n/* 1954 */ shrine.addRequirement(new CreationRequirement(1, 406, 10, true));\n/* 1955 */ shrine.addRequirement(new CreationRequirement(2, 22, 100, true));\n/* 1956 */ shrine.addRequirement(new CreationRequirement(3, 218, 10, true));\n/* 1957 */ shrine.addRequirement(new CreationRequirement(4, 221, 100, true));\n/* 1958 */ shrine.addRequirement(new CreationRequirement(5, 502, 10, true));\n/* 1959 */ shrine.isOnlyCreateEpicTargetMission = true;\n/* */ \n/* 1961 */ AdvancedCreationEntry temple = createAdvancedEntry(1013, 406, 130, 715, false, false, 0.0F, true, true, CreationCategories.EPIC);\n/* */ \n/* 1963 */ temple.addRequirement(new CreationRequirement(1, 406, 10, true));\n/* 1964 */ temple.addRequirement(new CreationRequirement(2, 130, 100, true));\n/* 1965 */ temple.addRequirement(new CreationRequirement(3, 132, 1000, true));\n/* 1966 */ temple.addRequirement(new CreationRequirement(4, 223, 100, true));\n/* 1967 */ temple.addRequirement(new CreationRequirement(5, 504, 10, true));\n/* 1968 */ temple.isOnlyCreateEpicTargetMission = true;\n/* */ \n/* 1970 */ AdvancedCreationEntry obelisk = createAdvancedEntry(1013, 132, 130, 714, false, false, 0.0F, true, true, CreationCategories.EPIC);\n/* */ \n/* 1972 */ obelisk.addRequirement(new CreationRequirement(1, 132, 1000, true));\n/* 1973 */ obelisk.addRequirement(new CreationRequirement(2, 130, 1000, true));\n/* 1974 */ obelisk.addRequirement(new CreationRequirement(3, 223, 100, true));\n/* 1975 */ obelisk.isOnlyCreateEpicTargetMission = true;\n/* */ \n/* 1977 */ AdvancedCreationEntry pillarDecoration = createAdvancedEntry(1013, 132, 130, 736, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 1979 */ pillarDecoration.addRequirement(new CreationRequirement(1, 132, 50, true));\n/* 1980 */ pillarDecoration.addRequirement(new CreationRequirement(2, 130, 50, true));\n/* */ \n/* 1982 */ AdvancedCreationEntry pillar = createAdvancedEntry(1013, 132, 130, 717, false, false, 0.0F, true, true, CreationCategories.EPIC);\n/* */ \n/* 1984 */ pillar.addRequirement(new CreationRequirement(1, 132, 100, true));\n/* 1985 */ pillar.addRequirement(new CreationRequirement(2, 130, 100, true));\n/* 1986 */ pillar.addRequirement(new CreationRequirement(3, 439, 10, true));\n/* 1987 */ pillar.isOnlyCreateEpicTargetMission = true;\n/* */ \n/* 1989 */ AdvancedCreationEntry spiritgate = createAdvancedEntry(1013, 132, 130, 716, false, false, 0.0F, true, true, CreationCategories.EPIC);\n/* */ \n/* 1991 */ spiritgate.addRequirement(new CreationRequirement(1, 132, 1000, true));\n/* 1992 */ spiritgate.addRequirement(new CreationRequirement(2, 130, 1000, true));\n/* 1993 */ spiritgate.addRequirement(new CreationRequirement(3, 44, 1000, true));\n/* 1994 */ spiritgate.isOnlyCreateEpicTargetMission = true;\n/* */ \n/* 1996 */ AdvancedCreationEntry sbench = createAdvancedEntry(1013, 132, 406, 404, false, false, 0.0F, true, true, CreationCategories.FURNITURE);\n/* */ \n/* 1998 */ sbench.addRequirement(new CreationRequirement(1, 132, 1, true));\n/* 1999 */ sbench.addRequirement(new CreationRequirement(2, 130, 2, true));\n/* */ \n/* 2001 */ AdvancedCreationEntry coff = createAdvancedEntry(1013, 132, 406, 407, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2003 */ coff.addRequirement(new CreationRequirement(1, 132, 4, true));\n/* 2004 */ coff.addRequirement(new CreationRequirement(2, 130, 4, true));\n/* 2005 */ coff.addRequirement(new CreationRequirement(3, 406, 3, true));\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2012 */ AdvancedCreationEntry ropetool = createAdvancedEntry(10044, 22, 23, 320, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2014 */ ropetool.addRequirement(new CreationRequirement(1, 217, 3, true));\n/* */ \n/* 2016 */ AdvancedCreationEntry wheelSmall = createAdvancedEntry(10044, 22, 23, 187, false, false, 0.0F, true, false, CreationCategories.CART_PARTS);\n/* */ \n/* 2018 */ wheelSmall.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2019 */ wheelSmall.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* */ \n/* 2021 */ AdvancedCreationEntry wheelAxlSmall = createAdvancedEntry(10044, 23, 187, 191, false, true, 0.0F, true, false, CreationCategories.CART_PARTS);\n/* */ \n/* 2023 */ wheelAxlSmall.addRequirement(new CreationRequirement(1, 187, 1, true));\n/* */ \n/* 2025 */ AdvancedCreationEntry cartSmall = createAdvancedEntry(10044, 22, 191, 186, false, false, 0.0F, true, true, CreationCategories.CARTS);\n/* */ \n/* 2027 */ cartSmall.addRequirement(new CreationRequirement(1, 22, 5, true));\n/* 2028 */ cartSmall.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* 2029 */ cartSmall.addRequirement(new CreationRequirement(3, 218, 2, true));\n/* */ \n/* 2031 */ AdvancedCreationEntry cartLarge = createAdvancedEntry(10044, 22, 191, 539, false, false, 0.0F, true, true, CreationCategories.CARTS);\n/* */ \n/* 2033 */ cartLarge.addRequirement(new CreationRequirement(1, 22, 15, true));\n/* 2034 */ cartLarge.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* 2035 */ cartLarge.addRequirement(new CreationRequirement(3, 218, 4, true));\n/* 2036 */ cartLarge.addRequirement(new CreationRequirement(4, 632, 1, true));\n/* */ \n/* 2038 */ AdvancedCreationEntry catapultSmall = createAdvancedEntry(10044, 23, 9, 445, false, false, 0.0F, true, true, CreationCategories.WARMACHINES);\n/* */ \n/* 2040 */ catapultSmall.addRequirement(new CreationRequirement(1, 319, 5, true));\n/* 2041 */ catapultSmall.addRequirement(new CreationRequirement(2, 191, 2, true));\n/* 2042 */ catapultSmall.addRequirement(new CreationRequirement(3, 9, 6, true));\n/* */ \n/* 2044 */ createSimpleEntry(10011, 64, 46, 1126, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* */ \n/* 2047 */ AdvancedCreationEntry batteringRam = createAdvancedEntry(10044, 860, 217, 1125, false, false, 0.0F, true, true, CreationCategories.WARMACHINES);\n/* */ \n/* 2049 */ batteringRam.addRequirement(new CreationRequirement(1, 860, 9, true));\n/* 2050 */ batteringRam.addRequirement(new CreationRequirement(2, 217, 4, true));\n/* 2051 */ batteringRam.addRequirement(new CreationRequirement(3, 319, 2, true));\n/* 2052 */ batteringRam.addRequirement(new CreationRequirement(4, 191, 2, true));\n/* 2053 */ batteringRam.addRequirement(new CreationRequirement(5, 9, 3, true));\n/* 2054 */ batteringRam.addRequirement(new CreationRequirement(6, 1126, 1, true));\n/* */ \n/* 2056 */ AdvancedCreationEntry joist = createAdvancedEntry(1005, 23, 9, 429, false, false, 0.0F, true, true, CreationCategories.MINE_DOORS);\n/* */ \n/* 2058 */ joist.addRequirement(new CreationRequirement(1, 188, 2, true));\n/* 2059 */ joist.addRequirement(new CreationRequirement(2, 9, 1, true));\n/* 2060 */ joist.addRequirement(new CreationRequirement(3, 23, 3, true));\n/* */ \n/* 2062 */ AdvancedCreationEntry floor = createAdvancedEntry(1005, 217, 22, 495, false, false, 0.0F, true, true, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 2064 */ floor.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* */ \n/* 2066 */ AdvancedCreationEntry minedoor = createAdvancedEntry(1005, 217, 22, 592, false, false, 0.0F, true, true, CreationCategories.MINE_DOORS);\n/* */ \n/* 2068 */ minedoor.addRequirement(new CreationRequirement(1, 22, 20, true));\n/* 2069 */ minedoor.addRequirement(new CreationRequirement(2, 217, 1, true));\n/* 2070 */ minedoor.addRequirement(new CreationRequirement(3, 167, 1, true));\n/* */ \n/* 2072 */ AdvancedCreationEntry minedoorst = createAdvancedEntry(10015, 167, 597, 596, false, false, 0.0F, true, true, CreationCategories.MINE_DOORS);\n/* */ \n/* 2074 */ minedoorst.addRequirement(new CreationRequirement(1, 597, 9, true));\n/* 2075 */ minedoorst.addRequirement(new CreationRequirement(2, 131, 50, true));\n/* */ \n/* 2077 */ AdvancedCreationEntry minedoors = createAdvancedEntry(10015, 167, 598, 595, false, false, 0.0F, true, true, CreationCategories.MINE_DOORS);\n/* */ \n/* 2079 */ minedoors.addRequirement(new CreationRequirement(1, 598, 11, true));\n/* 2080 */ minedoors.addRequirement(new CreationRequirement(2, 131, 50, true));\n/* */ \n/* 2082 */ AdvancedCreationEntry minedoorg = createAdvancedEntry(10015, 167, 599, 594, false, false, 0.0F, true, true, CreationCategories.MINE_DOORS);\n/* */ \n/* 2084 */ minedoorg.addRequirement(new CreationRequirement(1, 599, 11, true));\n/* 2085 */ minedoorg.addRequirement(new CreationRequirement(2, 131, 50, true));\n/* */ \n/* 2087 */ AdvancedCreationEntry cheeseDrill = createAdvancedEntry(10044, 309, 23, 65, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2089 */ cheeseDrill.addRequirement(new CreationRequirement(1, 22, 5, true));\n/* 2090 */ cheeseDrill.addRequirement(new CreationRequirement(2, 266, 2, true));\n/* 2091 */ cheeseDrill.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 2093 */ AdvancedCreationEntry fruitPress = createAdvancedEntry(10044, 23, 22, 413, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2095 */ fruitPress.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2096 */ fruitPress.addRequirement(new CreationRequirement(2, 266, 2, true));\n/* 2097 */ fruitPress.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 2099 */ AdvancedCreationEntry papyrusPress = createAdvancedEntry(10044, 23, 22, 747, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2101 */ papyrusPress.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2102 */ papyrusPress.addRequirement(new CreationRequirement(2, 188, 2, true));\n/* 2103 */ papyrusPress.addRequirement(new CreationRequirement(3, 218, 2, true));\n/* */ \n/* 2105 */ AdvancedCreationEntry raftSmall = createAdvancedEntry(10082, 217, 22, 289, false, false, 0.0F, true, true, CreationCategories.SHIPBUILDING);\n/* */ \n/* 2107 */ raftSmall.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2108 */ raftSmall.addRequirement(new CreationRequirement(2, 9, 4, true));\n/* 2109 */ raftSmall.addRequirement(new CreationRequirement(3, 217, 7, true));\n/* */ \n/* 2111 */ AdvancedCreationEntry archeryTarg = createAdvancedEntry(1005, 23, 23, 458, false, false, 0.0F, true, true, CreationCategories.COMBAT_TRAINING);\n/* */ \n/* 2113 */ archeryTarg.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2114 */ archeryTarg.addRequirement(new CreationRequirement(2, 620, 4, true));\n/* 2115 */ archeryTarg.addRequirement(new CreationRequirement(3, 217, 7, true));\n/* 2116 */ archeryTarg.addRequirement(new CreationRequirement(4, 319, 1, true));\n/* */ \n/* 2118 */ AdvancedCreationEntry buildmarker = createAdvancedEntry(1005, 23, 23, 679, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 2120 */ buildmarker.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2121 */ buildmarker.addRequirement(new CreationRequirement(2, 217, 1, true));\n/* */ \n/* 2123 */ AdvancedCreationEntry doll = createAdvancedEntry(1005, 217, 23, 321, false, false, 0.0F, true, false, CreationCategories.COMBAT_TRAINING);\n/* */ \n/* 2125 */ doll.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2126 */ doll.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* 2127 */ doll.addRequirement(new CreationRequirement(3, 33, 1, true));\n/* */ \n/* 2129 */ AdvancedCreationEntry barrell = createAdvancedEntry(10044, 188, 22, 190, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2131 */ barrell.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2132 */ barrell.addRequirement(new CreationRequirement(2, 188, 1, true));\n/* */ \n/* 2134 */ AdvancedCreationEntry hbarrell = createAdvancedEntry(10044, 188, 22, 576, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2136 */ hbarrell.addRequirement(new CreationRequirement(1, 22, 24, true));\n/* 2137 */ hbarrell.addRequirement(new CreationRequirement(2, 188, 3, true));\n/* */ \n/* 2139 */ AdvancedCreationEntry oilbarrell = createAdvancedEntry(10044, 188, 22, 757, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2141 */ oilbarrell.addRequirement(new CreationRequirement(1, 22, 24, true));\n/* 2142 */ oilbarrell.addRequirement(new CreationRequirement(2, 188, 3, true));\n/* */ \n/* 2144 */ AdvancedCreationEntry grains = createAdvancedEntry(1005, 188, 22, 661, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2146 */ grains.addRequirement(new CreationRequirement(1, 22, 24, true));\n/* 2147 */ grains.addRequirement(new CreationRequirement(2, 217, 4, true));\n/* */ \n/* 2149 */ AdvancedCreationEntry bulks = createAdvancedEntry(1005, 188, 22, 662, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2151 */ bulks.addRequirement(new CreationRequirement(1, 22, 24, true));\n/* 2152 */ bulks.addRequirement(new CreationRequirement(2, 217, 4, true));\n/* */ \n/* 2154 */ AdvancedCreationEntry trash = createAdvancedEntry(1005, 188, 22, 670, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2156 */ trash.addRequirement(new CreationRequirement(1, 22, 10, true));\n/* 2157 */ trash.addRequirement(new CreationRequirement(2, 218, 2, true));\n/* */ \n/* 2159 */ AdvancedCreationEntry barrels = createAdvancedEntry(10044, 218, 22, 189, false, false, 0.0F, true, false, CreationCategories.STORAGE);\n/* */ \n/* 2161 */ barrels.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* */ \n/* 2163 */ AdvancedCreationEntry wineBarrel = createAdvancedEntry(10044, 218, 22, 768, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2165 */ wineBarrel.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2166 */ wineBarrel.addRequirement(new CreationRequirement(2, 188, 1, true));\n/* */ \n/* 2168 */ AdvancedCreationEntry buckets = createAdvancedEntry(10044, 218, 22, 421, false, false, 0.0F, true, false, CreationCategories.STORAGE);\n/* */ \n/* 2170 */ buckets.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* */ \n/* 2172 */ AdvancedCreationEntry dredge = createAdvancedEntry(10015, 213, 319, 581, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2174 */ dredge.addRequirement(new CreationRequirement(1, 582, 4, true));\n/* */ \n/* 2176 */ AdvancedCreationEntry crows = createAdvancedEntry(10044, 188, 22, 583, false, false, 0.0F, true, true, CreationCategories.SHIPBUILDING);\n/* */ \n/* 2178 */ crows.addRequirement(new CreationRequirement(1, 22, 12, true));\n/* 2179 */ crows.addRequirement(new CreationRequirement(2, 188, 3, true));\n/* */ \n/* 2181 */ AdvancedCreationEntry chests = createAdvancedEntry(10044, 218, 22, 192, false, false, 0.0F, true, false, CreationCategories.STORAGE);\n/* */ \n/* 2183 */ chests.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* */ \n/* 2185 */ AdvancedCreationEntry signp = createAdvancedEntry(10044, 218, 22, 208, false, false, 0.0F, true, false, CreationCategories.SIGNS);\n/* */ \n/* 2187 */ signp.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* */ \n/* 2189 */ AdvancedCreationEntry signl = createAdvancedEntry(10044, 218, 22, 209, false, false, 0.0F, true, false, CreationCategories.SIGNS);\n/* */ \n/* 2191 */ signl.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* 2192 */ signl.addRequirement(new CreationRequirement(2, 22, 1, true));\n/* */ \n/* 2194 */ AdvancedCreationEntry signshop = createAdvancedEntry(10044, 218, 22, 656, false, false, 0.0F, true, false, CreationCategories.SIGNS);\n/* */ \n/* 2196 */ signshop.addRequirement(new CreationRequirement(1, 23, 2, true));\n/* 2197 */ signshop.addRequirement(new CreationRequirement(2, 22, 2, true));\n/* */ \n/* 2199 */ AdvancedCreationEntry signs = createAdvancedEntry(10044, 218, 22, 210, false, false, 0.0F, true, false, CreationCategories.SIGNS);\n/* */ \n/* 2201 */ signs.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* */ \n/* 2203 */ AdvancedCreationEntry dale = createAdvancedEntry(10036, 36, 9, 74, false, false, 0.0F, true, true, CreationCategories.PRODUCTION);\n/* */ \n/* 2205 */ dale.addRequirement(new CreationRequirement(1, 9, 20, true));\n/* 2206 */ dale.addRequirement(new CreationRequirement(2, 26, 2, true));\n/* */ \n/* 2208 */ AdvancedCreationEntry loom = createAdvancedEntry(10044, 218, 22, 226, false, false, 0.0F, true, true, CreationCategories.TOOLS);\n/* */ \n/* 2210 */ loom.addRequirement(new CreationRequirement(1, 23, 10, true));\n/* 2211 */ loom.addRequirement(new CreationRequirement(2, 214, 10, true));\n/* 2212 */ loom.addRequirement(new CreationRequirement(3, 22, 2, true));\n/* */ \n/* 2214 */ AdvancedCreationEntry marketstall = createAdvancedEntry(10044, 217, 22, 580, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 2216 */ marketstall.addRequirement(new CreationRequirement(1, 22, 20, true));\n/* 2217 */ marketstall.addRequirement(new CreationRequirement(2, 213, 4, true));\n/* 2218 */ marketstall.addRequirement(new CreationRequirement(3, 23, 4, true));\n/* */ \n/* 2220 */ AdvancedCreationEntry squareTable = createAdvancedEntry(10044, 23, 22, 262, false, false, 0.0F, true, true, CreationCategories.FURNITURE);\n/* */ \n/* 2222 */ squareTable.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2223 */ squareTable.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* */ \n/* 2225 */ AdvancedCreationEntry roundTable = createAdvancedEntry(10044, 23, 22, 260, false, false, 0.0F, true, true, CreationCategories.FURNITURE);\n/* */ \n/* 2227 */ roundTable.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2228 */ roundTable.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* */ \n/* 2230 */ AdvancedCreationEntry diningTable = createAdvancedEntry(10044, 23, 22, 264, false, false, 0.0F, true, true, CreationCategories.FURNITURE);\n/* */ \n/* 2232 */ diningTable.addRequirement(new CreationRequirement(1, 22, 6, true));\n/* 2233 */ diningTable.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* */ \n/* 2235 */ AdvancedCreationEntry stoolRound = createAdvancedEntry(10044, 23, 22, 261, false, false, 0.0F, true, false, CreationCategories.FURNITURE);\n/* */ \n/* 2237 */ stoolRound.addRequirement(new CreationRequirement(1, 22, 1, true));\n/* 2238 */ stoolRound.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* */ \n/* 2240 */ AdvancedCreationEntry chair = createAdvancedEntry(10044, 22, 23, 263, false, false, 0.0F, true, true, CreationCategories.FURNITURE);\n/* */ \n/* 2242 */ chair.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2243 */ chair.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* */ \n/* 2245 */ AdvancedCreationEntry armchair = createAdvancedEntry(10044, 23, 22, 265, false, false, 0.0F, true, true, CreationCategories.FURNITURE);\n/* */ \n/* 2247 */ armchair.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2248 */ armchair.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* 2249 */ armchair.addRequirement(new CreationRequirement(3, 213, 1, true));\n/* */ \n/* 2251 */ AdvancedCreationEntry bed = createAdvancedEntry(10044, 482, 483, 484, false, false, 0.0F, true, true, CreationCategories.FURNITURE);\n/* */ \n/* 2253 */ bed.addRequirement(new CreationRequirement(1, 485, 1, true));\n/* 2254 */ bed.addRequirement(new CreationRequirement(2, 486, 2, true));\n/* 2255 */ bed.addRequirement(new CreationRequirement(3, 302, 3, true));\n/* 2256 */ AdvancedCreationEntry tentExplorer = createAdvancedEntry(10044, 23, 213, 863, false, false, 0.0F, true, true, CreationCategories.TENTS);\n/* */ \n/* 2258 */ tentExplorer.addRequirement(new CreationRequirement(1, 23, 8, true));\n/* 2259 */ tentExplorer.addRequirement(new CreationRequirement(2, 213, 8, true));\n/* 2260 */ tentExplorer.addRequirement(new CreationRequirement(3, 559, 6, true));\n/* 2261 */ tentExplorer.addRequirement(new CreationRequirement(4, 561, 6, true));\n/* */ \n/* 2263 */ AdvancedCreationEntry tentMilitary = createAdvancedEntry(10044, 23, 213, 864, false, false, 0.0F, true, true, CreationCategories.TENTS);\n/* */ \n/* 2265 */ tentMilitary.addRequirement(new CreationRequirement(1, 23, 10, true));\n/* 2266 */ tentMilitary.addRequirement(new CreationRequirement(2, 213, 12, true));\n/* 2267 */ tentMilitary.addRequirement(new CreationRequirement(3, 559, 10, true));\n/* 2268 */ tentMilitary.addRequirement(new CreationRequirement(4, 561, 10, true));\n/* */ \n/* 2270 */ AdvancedCreationEntry pavilion = createAdvancedEntry(10044, 23, 213, 865, false, false, 0.0F, true, true, CreationCategories.TENTS);\n/* */ \n/* 2272 */ pavilion.addRequirement(new CreationRequirement(1, 23, 10, true));\n/* 2273 */ pavilion.addRequirement(new CreationRequirement(2, 213, 6, true));\n/* 2274 */ pavilion.addRequirement(new CreationRequirement(3, 559, 10, true));\n/* 2275 */ pavilion.addRequirement(new CreationRequirement(4, 561, 10, true));\n/* */ \n/* 2277 */ AdvancedCreationEntry bedframe = createAdvancedEntry(10044, 217, 22, 483, false, false, 0.0F, true, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 2279 */ bedframe.addRequirement(new CreationRequirement(1, 22, 9, true));\n/* */ \n/* 2281 */ AdvancedCreationEntry bedheadboard = createAdvancedEntry(10044, 218, 22, 482, false, false, 0.0F, true, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 2283 */ bedheadboard.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2284 */ bedheadboard.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* */ \n/* 2286 */ AdvancedCreationEntry bedfootboard = createAdvancedEntry(10044, 218, 22, 485, false, false, 0.0F, true, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* 2288 */ bedfootboard.addRequirement(new CreationRequirement(1, 22, 1, true));\n/* 2289 */ bedfootboard.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* */ \n/* 2291 */ AdvancedCreationEntry altarwood = createAdvancedEntry(10044, 218, 22, 322, false, false, 0.0F, true, true, CreationCategories.ALTAR);\n/* */ \n/* 2293 */ altarwood.addRequirement(new CreationRequirement(1, 22, 8, true));\n/* 2294 */ altarwood.addRequirement(new CreationRequirement(2, 213, 2, true));\n/* 2295 */ altarwood.addRequirement(new CreationRequirement(3, 326, 1, true));\n/* */ \n/* 2297 */ AdvancedCreationEntry altarStone = createAdvancedEntry(1013, 130, 132, 323, false, false, 0.0F, true, true, CreationCategories.ALTAR);\n/* */ \n/* 2299 */ altarStone.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 2300 */ altarStone.addRequirement(new CreationRequirement(2, 130, 10, true));\n/* 2301 */ altarStone.addRequirement(new CreationRequirement(3, 326, 1, true));\n/* */ \n/* 2303 */ AdvancedCreationEntry chestl = createAdvancedEntry(10044, 188, 22, 184, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 2305 */ chestl.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2306 */ chestl.addRequirement(new CreationRequirement(2, 188, 2, true));\n/* 2307 */ chestl.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 2309 */ AdvancedCreationEntry shieldsm = createAdvancedEntry(10014, 218, 22, 82, false, false, 0.0F, true, false, CreationCategories.SHIELDS);\n/* */ \n/* 2311 */ shieldsm.addRequirement(new CreationRequirement(1, 188, 1, true));\n/* */ \n/* 2313 */ AdvancedCreationEntry shieldTurtle = createAdvancedEntry(10014, 218, 898, 899, false, false, 0.0F, true, false, CreationCategories.SHIELDS);\n/* */ \n/* 2315 */ shieldTurtle.addRequirement(new CreationRequirement(1, 100, 2, true));\n/* */ \n/* 2317 */ AdvancedCreationEntry shieldmed = createAdvancedEntry(10014, 218, 22, 84, false, false, 0.0F, true, false, CreationCategories.SHIELDS);\n/* */ \n/* 2319 */ shieldmed.addRequirement(new CreationRequirement(1, 22, 1, true));\n/* 2320 */ shieldmed.addRequirement(new CreationRequirement(2, 188, 1, true));\n/* */ \n/* 2322 */ AdvancedCreationEntry shieldla = createAdvancedEntry(10014, 218, 22, 85, false, false, 0.0F, true, false, CreationCategories.SHIELDS);\n/* */ \n/* 2324 */ shieldla.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2325 */ shieldla.addRequirement(new CreationRequirement(2, 188, 1, true));\n/* */ \n/* 2327 */ AdvancedCreationEntry towerStone = createAdvancedEntry(1013, 132, 130, 384, false, false, 0.0F, true, true, CreationCategories.TOWERS);\n/* */ \n/* 2329 */ towerStone.addRequirement(new CreationRequirement(1, 132, 500, true));\n/* 2330 */ towerStone.addRequirement(new CreationRequirement(2, 130, 500, true));\n/* 2331 */ towerStone.addRequirement(new CreationRequirement(3, 22, 100, true));\n/* */ \n/* 2333 */ AdvancedCreationEntry compass = createAdvancedEntry(1020, 418, 76, 480, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2335 */ compass.addRequirement(new CreationRequirement(1, 215, 1, true));\n/* */ \n/* 2337 */ AdvancedCreationEntry puppetFo = createAdvancedEntry(10051, 215, 214, 640, false, true, 0.0F, false, false, CreationCategories.TOYS);\n/* */ \n/* 2339 */ puppetFo.addRequirement(new CreationRequirement(1, 213, 1, true));\n/* 2340 */ puppetFo.addRequirement(new CreationRequirement(2, 436, 1, true));\n/* 2341 */ puppetFo.addRequirement(new CreationRequirement(3, 23, 1, true));\n/* */ \n/* 2343 */ AdvancedCreationEntry puppetVynora = createAdvancedEntry(10051, 215, 214, 642, false, true, 0.0F, false, false, CreationCategories.TOYS);\n/* */ \n/* 2345 */ puppetVynora.addRequirement(new CreationRequirement(1, 213, 1, true));\n/* 2346 */ puppetVynora.addRequirement(new CreationRequirement(2, 364, 1, true));\n/* 2347 */ puppetVynora.addRequirement(new CreationRequirement(3, 23, 1, true));\n/* */ \n/* 2349 */ AdvancedCreationEntry puppetLibila = createAdvancedEntry(10051, 215, 214, 643, false, true, 0.0F, false, false, CreationCategories.TOYS);\n/* */ \n/* 2351 */ puppetLibila.addRequirement(new CreationRequirement(1, 213, 1, true));\n/* 2352 */ puppetLibila.addRequirement(new CreationRequirement(2, 204, 1, true));\n/* 2353 */ puppetLibila.addRequirement(new CreationRequirement(3, 23, 1, true));\n/* */ \n/* 2355 */ AdvancedCreationEntry puppetMagranon = createAdvancedEntry(10051, 215, 214, 641, false, true, 0.0F, false, false, CreationCategories.TOYS);\n/* */ \n/* 2357 */ puppetMagranon.addRequirement(new CreationRequirement(1, 213, 1, true));\n/* 2358 */ puppetMagranon.addRequirement(new CreationRequirement(2, 439, 1, true));\n/* 2359 */ puppetMagranon.addRequirement(new CreationRequirement(3, 23, 1, true));\n/* */ \n/* 2361 */ AdvancedCreationEntry epicPortal = createAdvancedEntry(1013, 9, 132, 732, false, false, 0.0F, true, true, CreationCategories.EPIC);\n/* */ \n/* 2363 */ epicPortal.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 2364 */ epicPortal.addRequirement(new CreationRequirement(2, 9, 3, true));\n/* */ \n/* 2366 */ AdvancedCreationEntry mailboxStone = createAdvancedEntry(1013, 132, 130, 511, false, false, 0.0F, true, true, CreationCategories.MAILBOXES);\n/* */ \n/* 2368 */ mailboxStone.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 2369 */ mailboxStone.addRequirement(new CreationRequirement(2, 130, 10, true));\n/* */ \n/* 2371 */ AdvancedCreationEntry mailboxStone2 = createAdvancedEntry(1013, 132, 130, 513, false, false, 0.0F, true, true, CreationCategories.MAILBOXES);\n/* */ \n/* 2373 */ mailboxStone2.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 2374 */ mailboxStone2.addRequirement(new CreationRequirement(2, 130, 10, true));\n/* 2375 */ mailboxStone2.addRequirement(new CreationRequirement(3, 213, 2, true));\n/* */ \n/* 2377 */ AdvancedCreationEntry mailboxWood = createAdvancedEntry(10044, 218, 22, 510, false, false, 0.0F, true, true, CreationCategories.MAILBOXES);\n/* */ \n/* 2379 */ mailboxWood.addRequirement(new CreationRequirement(1, 22, 8, true));\n/* 2380 */ mailboxWood.addRequirement(new CreationRequirement(2, 218, 2, true));\n/* */ \n/* 2382 */ AdvancedCreationEntry mailboxWood2 = createAdvancedEntry(10044, 218, 22, 512, false, false, 0.0F, true, true, CreationCategories.MAILBOXES);\n/* */ \n/* 2384 */ mailboxWood2.addRequirement(new CreationRequirement(1, 22, 8, true));\n/* 2385 */ mailboxWood2.addRequirement(new CreationRequirement(2, 218, 2, true));\n/* 2386 */ mailboxWood2.addRequirement(new CreationRequirement(3, 213, 2, true));\n/* */ \n/* 2388 */ AdvancedCreationEntry toolbelt = createAdvancedEntry(10017, 517, 102, 516, false, false, 0.0F, true, false, CreationCategories.CLOTHES);\n/* */ \n/* 2390 */ toolbelt.addRequirement(new CreationRequirement(1, 72, 1, true));\n/* 2391 */ toolbelt.addRequirement(new CreationRequirement(2, 213, 1, true));\n/* */ \n/* 2393 */ AdvancedCreationEntry trapSticks = createAdvancedEntry(1005, 217, 22, 610, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2395 */ trapSticks.addRequirement(new CreationRequirement(1, 99, 10, true));\n/* 2396 */ trapSticks.addRequirement(new CreationRequirement(2, 22, 4, true));\n/* */ \n/* 2398 */ AdvancedCreationEntry trapPole = createAdvancedEntry(1005, 217, 22, 611, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2400 */ trapPole.addRequirement(new CreationRequirement(1, 9, 1, true));\n/* 2401 */ trapPole.addRequirement(new CreationRequirement(2, 22, 4, true));\n/* 2402 */ trapPole.addRequirement(new CreationRequirement(3, 319, 1, true));\n/* */ \n/* 2404 */ AdvancedCreationEntry trapCorrosion = createAdvancedEntry(1011, 217, 22, 612, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2406 */ trapCorrosion.addRequirement(new CreationRequirement(1, 78, 10, true));\n/* 2407 */ trapCorrosion.addRequirement(new CreationRequirement(2, 73, 4, true));\n/* 2408 */ trapCorrosion.addRequirement(new CreationRequirement(3, 457, 1, true));\n/* */ \n/* 2410 */ AdvancedCreationEntry trapAxe = createAdvancedEntry(1005, 217, 22, 613, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2412 */ trapAxe.addRequirement(new CreationRequirement(1, 90, 1, true));\n/* 2413 */ trapAxe.addRequirement(new CreationRequirement(2, 22, 4, true));\n/* 2414 */ trapAxe.addRequirement(new CreationRequirement(3, 457, 1, true));\n/* 2415 */ trapAxe.addRequirement(new CreationRequirement(4, 609, 1, true));\n/* */ \n/* 2417 */ AdvancedCreationEntry trapDagger = createAdvancedEntry(1005, 217, 22, 614, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2419 */ trapDagger.addRequirement(new CreationRequirement(1, 126, 10, true));\n/* 2420 */ trapDagger.addRequirement(new CreationRequirement(2, 22, 4, true));\n/* */ \n/* 2422 */ AdvancedCreationEntry trapNet = createAdvancedEntry(1014, 319, 319, 615, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2424 */ trapNet.addRequirement(new CreationRequirement(1, 559, 5, true));\n/* 2425 */ trapNet.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* */ \n/* 2427 */ AdvancedCreationEntry trapScythe = createAdvancedEntry(1013, 132, 130, 616, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2429 */ trapScythe.addRequirement(new CreationRequirement(1, 132, 10, true));\n/* 2430 */ trapScythe.addRequirement(new CreationRequirement(2, 130, 10, true));\n/* 2431 */ trapScythe.addRequirement(new CreationRequirement(3, 270, 1, true));\n/* 2432 */ trapScythe.addRequirement(new CreationRequirement(4, 609, 1, true));\n/* */ \n/* 2434 */ AdvancedCreationEntry trapMan = createAdvancedEntry(10015, 582, 582, 617, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2436 */ trapMan.addRequirement(new CreationRequirement(1, 609, 1, true));\n/* */ \n/* 2438 */ AdvancedCreationEntry trapBow = createAdvancedEntry(1005, 217, 22, 618, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2440 */ trapBow.addRequirement(new CreationRequirement(1, 22, 1, true));\n/* 2441 */ trapBow.addRequirement(new CreationRequirement(2, 447, 1, true));\n/* 2442 */ trapBow.addRequirement(new CreationRequirement(3, 457, 1, true));\n/* 2443 */ trapBow.addRequirement(new CreationRequirement(4, 456, 1, true));\n/* */ \n/* 2445 */ AdvancedCreationEntry trapRope = createAdvancedEntry(1014, 319, 559, 619, false, false, 0.0F, true, false, CreationCategories.TRAPS);\n/* */ \n/* 2447 */ trapRope.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* 2448 */ trapRope.addRequirement(new CreationRequirement(2, 457, 1, true));\n/* */ \n/* 2450 */ AdvancedCreationEntry villageBoard = createAdvancedEntry(1005, 23, 22, 835, false, false, 0.0F, true, true, CreationCategories.SIGNS);\n/* */ \n/* 2452 */ villageBoard.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2453 */ villageBoard.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* 2454 */ villageBoard.addRequirement(new CreationRequirement(3, 218, 3, true));\n/* */ \n/* 2456 */ AdvancedCreationEntry copperBrazier = createAdvancedEntry(10015, 838, 839, 841, false, false, 0.0F, true, true, 20, 30.0D, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* */ \n/* 2459 */ copperBrazier.addRequirement(new CreationRequirement(1, 838, 2, true));\n/* */ \n/* 2461 */ AdvancedCreationEntry marbleBrazierPillar = createAdvancedEntry(1013, 786, 492, 842, false, false, 0.0F, true, true, 20, 30.0D, CreationCategories.LIGHTS_AND_LAMPS);\n/* */ \n/* */ \n/* 2464 */ marbleBrazierPillar.addRequirement(new CreationRequirement(1, 786, 49, true));\n/* 2465 */ marbleBrazierPillar.addRequirement(new CreationRequirement(2, 492, 49, true));\n/* 2466 */ marbleBrazierPillar.addRequirement(new CreationRequirement(3, 840, 1, true));\n/* */ \n/* 2468 */ AdvancedCreationEntry wagon = createAdvancedEntry(10044, 22, 191, 850, false, false, 0.0F, true, true, 0, 40.0D, CreationCategories.CARTS);\n/* */ \n/* 2470 */ wagon.addRequirement(new CreationRequirement(1, 191, 1, true));\n/* 2471 */ wagon.addRequirement(new CreationRequirement(2, 22, 20, true));\n/* 2472 */ wagon.addRequirement(new CreationRequirement(3, 23, 4, true));\n/* 2473 */ wagon.addRequirement(new CreationRequirement(4, 218, 10, true));\n/* 2474 */ wagon.addRequirement(new CreationRequirement(5, 632, 2, true));\n/* 2475 */ wagon.addRequirement(new CreationRequirement(6, 486, 2, true));\n/* 2476 */ wagon.setIsEpicBuildMissionTarget(false);\n/* */ \n/* 2478 */ AdvancedCreationEntry smallCrate = createAdvancedEntry(1005, 22, 217, 851, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.STORAGE);\n/* */ \n/* 2480 */ smallCrate.addRequirement(new CreationRequirement(1, 22, 10, true));\n/* */ \n/* 2482 */ AdvancedCreationEntry largeCrate = createAdvancedEntry(1005, 22, 217, 852, false, false, 0.0F, true, true, 0, 60.0D, CreationCategories.STORAGE);\n/* */ \n/* 2484 */ largeCrate.addRequirement(new CreationRequirement(1, 22, 15, true));\n/* */ \n/* 2486 */ AdvancedCreationEntry shipCarrier = createAdvancedEntry(10044, 22, 191, 853, false, false, 0.0F, true, true, 0, 15.0D, CreationCategories.CARTS);\n/* */ \n/* 2488 */ shipCarrier.addRequirement(new CreationRequirement(1, 191, 1, true));\n/* 2489 */ shipCarrier.addRequirement(new CreationRequirement(2, 22, 9, true));\n/* 2490 */ shipCarrier.addRequirement(new CreationRequirement(3, 23, 4, true));\n/* 2491 */ shipCarrier.addRequirement(new CreationRequirement(4, 218, 4, true));\n/* 2492 */ shipCarrier.addRequirement(new CreationRequirement(5, 632, 1, true));\n/* 2493 */ shipCarrier.addRequirement(new CreationRequirement(6, 9, 2, true));\n/* */ \n/* 2495 */ AdvancedCreationEntry creatureCarrier = createAdvancedEntry(10044, 22, 191, 1410, false, false, 0.0F, true, true, 0, 25.0D, CreationCategories.CARTS);\n/* */ \n/* 2497 */ creatureCarrier.addRequirement(new CreationRequirement(1, 191, 1, true));\n/* 2498 */ creatureCarrier.addRequirement(new CreationRequirement(2, 22, 9, true));\n/* 2499 */ creatureCarrier.addRequirement(new CreationRequirement(3, 23, 4, true));\n/* 2500 */ creatureCarrier.addRequirement(new CreationRequirement(4, 218, 4, true));\n/* 2501 */ creatureCarrier.addRequirement(new CreationRequirement(5, 632, 1, true));\n/* 2502 */ creatureCarrier.addRequirement(new CreationRequirement(6, 9, 2, true));\n/* */ \n/* 2504 */ AdvancedCreationEntry colossusOfVynora = createAdvancedEntry(1013, 519, 130, 869, false, false, 0.0F, true, true, CreationCategories.STATUES);\n/* */ \n/* */ \n/* 2507 */ colossusOfVynora.setDeityRestriction(3);\n/* 2508 */ colossusOfVynora.addRequirement(new CreationRequirement(1, 519, 1999, true));\n/* 2509 */ colossusOfVynora.addRequirement(new CreationRequirement(2, 130, 1999, true));\n/* 2510 */ colossusOfVynora.addRequirement(new CreationRequirement(3, 599, 10, true));\n/* 2511 */ colossusOfVynora.setIsEpicBuildMissionTarget(false);\n/* */ \n/* 2513 */ AdvancedCreationEntry colossusOfMagranon = createAdvancedEntry(1013, 519, 130, 870, false, false, 0.0F, true, true, CreationCategories.STATUES);\n/* */ \n/* */ \n/* 2516 */ colossusOfMagranon.setDeityRestriction(2);\n/* 2517 */ colossusOfMagranon.addRequirement(new CreationRequirement(1, 519, 1999, true));\n/* 2518 */ colossusOfMagranon.addRequirement(new CreationRequirement(2, 130, 1999, true));\n/* 2519 */ colossusOfMagranon.addRequirement(new CreationRequirement(3, 598, 10, true));\n/* 2520 */ colossusOfMagranon.setIsEpicBuildMissionTarget(false);\n/* */ \n/* 2522 */ AdvancedCreationEntry bedsideTable = createAdvancedEntry(10044, 23, 22, 885, false, false, 0.0F, true, true, 0, 25.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2525 */ bedsideTable.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2526 */ bedsideTable.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* 2527 */ bedsideTable.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 2529 */ AdvancedCreationEntry colossusOfFo = createAdvancedEntry(1013, 519, 130, 907, false, false, 0.0F, true, true, CreationCategories.STATUES);\n/* */ \n/* */ \n/* 2532 */ colossusOfFo.setDeityRestriction(1);\n/* 2533 */ colossusOfFo.addRequirement(new CreationRequirement(1, 519, 1999, true));\n/* 2534 */ colossusOfFo.addRequirement(new CreationRequirement(2, 130, 1999, true));\n/* 2535 */ colossusOfFo.addRequirement(new CreationRequirement(3, 598, 10, true));\n/* 2536 */ colossusOfFo.setIsEpicBuildMissionTarget(false);\n/* */ \n/* 2538 */ AdvancedCreationEntry colossusOfLibila = createAdvancedEntry(1013, 519, 130, 916, false, false, 0.0F, true, true, CreationCategories.STATUES);\n/* */ \n/* */ \n/* 2541 */ colossusOfLibila.setDeityRestriction(4);\n/* 2542 */ colossusOfLibila.addRequirement(new CreationRequirement(1, 519, 1999, true));\n/* 2543 */ colossusOfLibila.addRequirement(new CreationRequirement(2, 130, 1999, true));\n/* 2544 */ colossusOfLibila.addRequirement(new CreationRequirement(3, 772, 10, true));\n/* 2545 */ colossusOfLibila.setIsEpicBuildMissionTarget(false);\n/* */ \n/* 2547 */ createSimpleEntry(10015, 185, 221, 897, false, true, 0.0F, false, false, CreationCategories.CONSTRUCTION_MATERIAL);\n/* */ \n/* */ \n/* 2550 */ AdvancedCreationEntry openFireplace = createAdvancedEntry(1013, 492, 132, 889, false, false, 0.0F, true, true, 0, 35.0D, CreationCategories.FIRE);\n/* */ \n/* */ \n/* 2553 */ openFireplace.addRequirement(new CreationRequirement(1, 132, 9, true));\n/* 2554 */ openFireplace.addRequirement(new CreationRequirement(2, 492, 9, true));\n/* 2555 */ openFireplace.addRequirement(new CreationRequirement(3, 22, 2, true));\n/* */ \n/* 2557 */ AdvancedCreationEntry canopyBed = createAdvancedEntry(10044, 482, 483, 890, false, false, 0.0F, true, true, 0, 65.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2560 */ canopyBed.addRequirement(new CreationRequirement(1, 485, 1, true));\n/* 2561 */ canopyBed.addRequirement(new CreationRequirement(2, 22, 10, true));\n/* 2562 */ canopyBed.addRequirement(new CreationRequirement(3, 486, 8, true));\n/* 2563 */ canopyBed.addRequirement(new CreationRequirement(4, 302, 8, true));\n/* 2564 */ canopyBed.addRequirement(new CreationRequirement(5, 217, 2, true));\n/* 2565 */ canopyBed.addRequirement(new CreationRequirement(6, 218, 2, true));\n/* */ \n/* 2567 */ AdvancedCreationEntry woodenBench = createAdvancedEntry(10044, 218, 22, 891, false, false, 0.0F, true, true, 0, 35.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2570 */ woodenBench.addRequirement(new CreationRequirement(1, 22, 7, true));\n/* 2571 */ woodenBench.addRequirement(new CreationRequirement(2, 218, 3, true));\n/* 2572 */ woodenBench.addRequirement(new CreationRequirement(3, 23, 4, true));\n/* 2573 */ woodenBench.addRequirement(new CreationRequirement(4, 188, 2, true));\n/* */ \n/* 2575 */ AdvancedCreationEntry wardrobe = createAdvancedEntry(10044, 217, 22, 892, false, false, 0.0F, true, true, 0, 55.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2578 */ wardrobe.addRequirement(new CreationRequirement(1, 22, 11, true));\n/* 2579 */ wardrobe.addRequirement(new CreationRequirement(2, 23, 4, true));\n/* 2580 */ wardrobe.addRequirement(new CreationRequirement(3, 217, 3, true));\n/* 2581 */ wardrobe.addRequirement(new CreationRequirement(4, 218, 2, true));\n/* */ \n/* 2583 */ AdvancedCreationEntry woodenCoffer = createAdvancedEntry(10044, 218, 22, 893, false, false, 0.0F, true, true, 0, 24.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2586 */ woodenCoffer.addRequirement(new CreationRequirement(1, 22, 5, true));\n/* 2587 */ woodenCoffer.addRequirement(new CreationRequirement(2, 218, 2, true));\n/* */ \n/* 2589 */ AdvancedCreationEntry royalThrone = createAdvancedEntry(10044, 217, 22, 894, false, false, 0.0F, true, true, 0, 70.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2592 */ royalThrone.addRequirement(new CreationRequirement(1, 22, 7, true));\n/* 2593 */ royalThrone.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* 2594 */ royalThrone.addRequirement(new CreationRequirement(3, 217, 3, true));\n/* 2595 */ royalThrone.addRequirement(new CreationRequirement(4, 218, 6, true));\n/* */ \n/* 2597 */ AdvancedCreationEntry washingBowl = createAdvancedEntry(10015, 64, 221, 895, false, true, 0.0F, false, true, 0, 30.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2600 */ washingBowl.setDepleteFromTarget(1500);\n/* 2601 */ washingBowl.addRequirement(new CreationRequirement(1, 897, 3, true));\n/* 2602 */ washingBowl.addRequirement(new CreationRequirement(2, 77, 1, true));\n/* */ \n/* 2604 */ AdvancedCreationEntry tripodTableSmall = createAdvancedEntry(10044, 22, 23, 896, false, false, 0.0F, true, true, 0, 30.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2607 */ tripodTableSmall.addRequirement(new CreationRequirement(1, 22, 1, true));\n/* 2608 */ tripodTableSmall.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* 2609 */ tripodTableSmall.addRequirement(new CreationRequirement(3, 218, 2, true));\n/* */ \n/* 2611 */ AdvancedCreationEntry highBookshelf = createAdvancedEntry(10044, 217, 22, 911, false, false, 0.0F, true, true, 0, 35.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2614 */ highBookshelf.addRequirement(new CreationRequirement(1, 22, 7, true));\n/* 2615 */ highBookshelf.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* 2616 */ highBookshelf.addRequirement(new CreationRequirement(3, 217, 3, true));\n/* */ \n/* 2618 */ AdvancedCreationEntry lowBookshelf = createAdvancedEntry(10044, 217, 22, 912, false, false, 0.0F, true, true, 0, 25.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2621 */ lowBookshelf.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2622 */ lowBookshelf.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* 2623 */ lowBookshelf.addRequirement(new CreationRequirement(3, 217, 1, true));\n/* */ \n/* 2625 */ AdvancedCreationEntry emptyHighBookshelf = createAdvancedEntry(10044, 217, 22, 1401, false, false, 0.0F, true, true, 0, 35.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2628 */ emptyHighBookshelf.addRequirement(new CreationRequirement(1, 22, 7, true));\n/* 2629 */ emptyHighBookshelf.addRequirement(new CreationRequirement(2, 23, 2, true));\n/* 2630 */ emptyHighBookshelf.addRequirement(new CreationRequirement(3, 217, 3, true));\n/* */ \n/* 2632 */ AdvancedCreationEntry emptyLowBookshelf = createAdvancedEntry(10044, 217, 22, 1400, false, false, 0.0F, true, true, 0, 25.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2635 */ emptyLowBookshelf.addRequirement(new CreationRequirement(1, 22, 3, true));\n/* 2636 */ emptyLowBookshelf.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* 2637 */ emptyLowBookshelf.addRequirement(new CreationRequirement(3, 217, 1, true));\n/* */ \n/* 2639 */ AdvancedCreationEntry barTable = createAdvancedEntry(10044, 218, 22, 1402, false, false, 0.0F, true, true, 0, 25.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2642 */ barTable.addRequirement(new CreationRequirement(1, 22, 14, true));\n/* 2643 */ barTable.addRequirement(new CreationRequirement(2, 188, 2, true));\n/* 2644 */ barTable.addRequirement(new CreationRequirement(3, 218, 4, true));\n/* */ \n/* 2646 */ AdvancedCreationEntry fineHighChair = createAdvancedEntry(10044, 218, 22, 913, false, false, 0.0F, true, true, 0, 60.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2649 */ fineHighChair.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2650 */ fineHighChair.addRequirement(new CreationRequirement(2, 213, 2, true));\n/* 2651 */ fineHighChair.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 2653 */ AdvancedCreationEntry highChair = createAdvancedEntry(10044, 218, 22, 914, false, false, 0.0F, true, true, 0, 50.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2656 */ highChair.addRequirement(new CreationRequirement(1, 22, 2, true));\n/* 2657 */ highChair.addRequirement(new CreationRequirement(2, 188, 2, true));\n/* 2658 */ highChair.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 2660 */ AdvancedCreationEntry pauperHighChair = createAdvancedEntry(10044, 218, 22, 915, false, false, 0.0F, true, true, 0, 40.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2663 */ pauperHighChair.addRequirement(new CreationRequirement(1, 22, 1, true));\n/* 2664 */ pauperHighChair.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* 2665 */ pauperHighChair.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 2667 */ if (Features.Feature.AMPHORA.isEnabled()) {\n/* */ \n/* 2669 */ AdvancedCreationEntry kiln = createAdvancedEntry(1013, 132, 132, 1023, false, false, 0.0F, true, true, CreationCategories.FIRE);\n/* */ \n/* 2671 */ kiln.addRequirement(new CreationRequirement(1, 132, 18, true));\n/* 2672 */ kiln.addRequirement(new CreationRequirement(2, 130, 20, true));\n/* 2673 */ kiln.addRequirement(new CreationRequirement(3, 26, 2, true));\n/* */ } \n/* */ \n/* 2676 */ AdvancedCreationEntry smelter = createAdvancedEntry(1013, 132, 132, 1028, false, false, 0.0F, true, true, 0, 50.0D, CreationCategories.FIRE);\n/* */ \n/* 2678 */ smelter.addRequirement(new CreationRequirement(1, 132, 48, true));\n/* 2679 */ smelter.addRequirement(new CreationRequirement(2, 130, 50, true));\n/* 2680 */ smelter.addRequirement(new CreationRequirement(3, 298, 5, true));\n/* */ \n/* 2682 */ AdvancedCreationEntry simpleDioptra = createAdvancedEntry(10015, 902, 904, 903, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2684 */ simpleDioptra.addRequirement(new CreationRequirement(1, 480, 1, true));\n/* 2685 */ simpleDioptra.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* */ \n/* 2687 */ AdvancedCreationEntry rangePole = createAdvancedEntry(1005, 711, 213, 901, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 2689 */ rangePole.addRequirement(new CreationRequirement(1, 213, 3, true));\n/* 2690 */ rangePole.addRequirement(new CreationRequirement(2, 439, 8, true));\n/* */ \n/* 2692 */ AdvancedCreationEntry pewpewdie = createAdvancedEntry(10044, 217, 22, 934, false, false, 0.0F, true, true, 0, 40.0D, CreationCategories.WARMACHINES);\n/* */ \n/* */ \n/* 2695 */ pewpewdie.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2696 */ pewpewdie.addRequirement(new CreationRequirement(2, 9, 1, true));\n/* 2697 */ pewpewdie.addRequirement(new CreationRequirement(3, 859, 3, true));\n/* 2698 */ pewpewdie.addRequirement(new CreationRequirement(4, 188, 2, true));\n/* */ \n/* 2700 */ AdvancedCreationEntry siegeShield = createAdvancedEntry(1005, 217, 22, 931, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.WARMACHINES);\n/* */ \n/* */ \n/* 2703 */ siegeShield.addRequirement(new CreationRequirement(1, 22, 20, true));\n/* 2704 */ siegeShield.addRequirement(new CreationRequirement(2, 9, 2, true));\n/* */ \n/* 2706 */ AdvancedCreationEntry ballistaMount = createAdvancedEntry(10044, 217, 9, 933, false, false, 0.0F, true, true, 0, 60.0D, CreationCategories.WARMACHINES);\n/* */ \n/* */ \n/* 2709 */ ballistaMount.addRequirement(new CreationRequirement(1, 22, 8, true));\n/* */ \n/* 2711 */ AdvancedCreationEntry barrier = createAdvancedEntry(1005, 217, 9, 938, false, false, 0.0F, true, true, 0, 5.0D, CreationCategories.WARMACHINES);\n/* */ \n/* */ \n/* 2714 */ barrier.addRequirement(new CreationRequirement(1, 23, 21, true));\n/* */ \n/* 2716 */ createSimpleEntry(1032, 935, 23, 932, true, true, 0.0F, false, false, CreationCategories.FLETCHING);\n/* */ \n/* 2718 */ if (Features.Feature.METALLIC_ITEMS.isEnabled()) {\n/* */ \n/* 2720 */ createMetallicEntries(10011, 64, 698, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2722 */ createMetallicEntries(10015, 185, 205, 1115, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 2727 */ createSimpleEntry(10011, 64, 698, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2729 */ createSimpleEntry(10011, 64, 694, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2731 */ createSimpleEntry(10011, 64, 837, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2733 */ createSimpleEntry(10011, 64, 205, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2735 */ createSimpleEntry(10011, 64, 47, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2737 */ createSimpleEntry(10011, 64, 45, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2739 */ createSimpleEntry(10011, 64, 44, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2741 */ createSimpleEntry(10011, 64, 223, 935, false, true, 10.0F, false, false, CreationCategories.WEAPON_HEADS);\n/* */ \n/* 2743 */ createSimpleEntry(10015, 185, 205, 1115, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ } \n/* */ \n/* */ \n/* 2747 */ AdvancedCreationEntry ballista = createAdvancedEntry(10044, 933, 22, 936, false, false, 0.0F, true, true, 0, 60.0D, CreationCategories.WARMACHINES);\n/* */ \n/* 2749 */ ballista.addRequirement(new CreationRequirement(1, 559, 4, true));\n/* 2750 */ ballista.addRequirement(new CreationRequirement(2, 897, 2, true));\n/* 2751 */ ballista.addRequirement(new CreationRequirement(3, 22, 4, true));\n/* 2752 */ ballista.addRequirement(new CreationRequirement(4, 218, 1, true));\n/* 2753 */ ballista.addRequirement(new CreationRequirement(5, 23, 1, true));\n/* */ \n/* 2755 */ AdvancedCreationEntry trebuchet = createAdvancedEntry(10044, 9, 9, 937, false, false, 0.0F, true, true, 0, 80.0D, CreationCategories.WARMACHINES);\n/* */ \n/* 2757 */ trebuchet.addRequirement(new CreationRequirement(1, 9, 20, true));\n/* 2758 */ trebuchet.addRequirement(new CreationRequirement(2, 319, 5, true));\n/* 2759 */ trebuchet.addRequirement(new CreationRequirement(3, 191, 2, true));\n/* 2760 */ trebuchet.addRequirement(new CreationRequirement(4, 22, 40, true));\n/* */ \n/* 2762 */ AdvancedCreationEntry archeryTower = createAdvancedEntry(10044, 217, 22, 939, false, false, 0.0F, true, true, 0, 40.0D, CreationCategories.WARMACHINES);\n/* */ \n/* */ \n/* 2765 */ archeryTower.addRequirement(new CreationRequirement(1, 22, 200, true));\n/* 2766 */ archeryTower.addRequirement(new CreationRequirement(2, 9, 20, true));\n/* 2767 */ archeryTower.addRequirement(new CreationRequirement(3, 860, 20, true));\n/* 2768 */ archeryTower.addRequirement(new CreationRequirement(4, 217, 6, true));\n/* */ \n/* 2770 */ AdvancedCreationEntry spinningWheel = createAdvancedEntry(10044, 187, 23, 922, false, false, 0.0F, true, true, 0, 30.0D, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 2773 */ spinningWheel.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* 2774 */ spinningWheel.addRequirement(new CreationRequirement(2, 22, 3, true));\n/* 2775 */ spinningWheel.addRequirement(new CreationRequirement(3, 218, 2, true));\n/* 2776 */ spinningWheel.addRequirement(new CreationRequirement(4, 153, 2, true));\n/* */ \n/* 2778 */ AdvancedCreationEntry loungeChair = createAdvancedEntry(10044, 22, 23, 923, false, false, 0.0F, true, true, 0, 40.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2781 */ loungeChair.addRequirement(new CreationRequirement(1, 22, 5, true));\n/* 2782 */ loungeChair.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* 2783 */ loungeChair.addRequirement(new CreationRequirement(3, 218, 2, true));\n/* 2784 */ loungeChair.addRequirement(new CreationRequirement(4, 153, 4, true));\n/* */ \n/* 2786 */ AdvancedCreationEntry royalLoungeChaise = createAdvancedEntry(10044, 22, 23, 924, false, false, 0.0F, true, true, 0, 70.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2789 */ royalLoungeChaise.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2790 */ royalLoungeChaise.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* 2791 */ royalLoungeChaise.addRequirement(new CreationRequirement(3, 218, 6, true));\n/* 2792 */ royalLoungeChaise.addRequirement(new CreationRequirement(4, 926, 10, true));\n/* 2793 */ royalLoungeChaise.addRequirement(new CreationRequirement(5, 925, 4, true));\n/* */ \n/* 2795 */ AdvancedCreationEntry woodCupboard = createAdvancedEntry(10044, 218, 22, 927, false, false, 0.0F, true, true, 0, 40.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2798 */ woodCupboard.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* 2799 */ woodCupboard.addRequirement(new CreationRequirement(2, 218, 2, true));\n/* 2800 */ woodCupboard.addRequirement(new CreationRequirement(3, 23, 2, true));\n/* 2801 */ woodCupboard.addRequirement(new CreationRequirement(4, 153, 2, true));\n/* */ \n/* 2803 */ AdvancedCreationEntry alchemyCupboard = createAdvancedEntry(10044, 218, 22, 1117, false, false, 0.0F, true, true, 0, 20.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2806 */ alchemyCupboard.addRequirement(new CreationRequirement(1, 22, 5, true));\n/* 2807 */ alchemyCupboard.addRequirement(new CreationRequirement(2, 218, 2, true));\n/* 2808 */ alchemyCupboard.addRequirement(new CreationRequirement(3, 23, 2, true));\n/* 2809 */ alchemyCupboard.addRequirement(new CreationRequirement(4, 1254, 5, true));\n/* 2810 */ alchemyCupboard.addRequirement(new CreationRequirement(5, 76, 10, true));\n/* */ \n/* 2812 */ AdvancedCreationEntry storageUnit = createAdvancedEntry(1005, 217, 22, 1119, false, false, 0.0F, true, true, 0, 30.0D, CreationCategories.STORAGE);\n/* */ \n/* */ \n/* 2815 */ storageUnit.addRequirement(new CreationRequirement(1, 22, 14, true));\n/* 2816 */ storageUnit.addRequirement(new CreationRequirement(2, 217, 3, true));\n/* 2817 */ storageUnit.addRequirement(new CreationRequirement(3, 188, 4, true));\n/* 2818 */ storageUnit.addRequirement(new CreationRequirement(4, 561, 10, true));\n/* 2819 */ storageUnit.addRequirement(new CreationRequirement(5, 289, 3, true));\n/* */ \n/* 2821 */ AdvancedCreationEntry roundMarbleTable = createAdvancedEntry(10074, 787, 130, 928, false, false, 0.0F, true, true, 0, 60.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2824 */ roundMarbleTable.addRequirement(new CreationRequirement(1, 787, 1, true));\n/* 2825 */ roundMarbleTable.addRequirement(new CreationRequirement(2, 130, 3, true));\n/* */ \n/* 2827 */ AdvancedCreationEntry rectagularMarbleTable = createAdvancedEntry(10074, 787, 130, 929, false, false, 0.0F, true, true, 0, 50.0D, CreationCategories.FURNITURE);\n/* */ \n/* */ \n/* 2830 */ rectagularMarbleTable.addRequirement(new CreationRequirement(1, 787, 1, true));\n/* 2831 */ rectagularMarbleTable.addRequirement(new CreationRequirement(2, 130, 4, true));\n/* */ \n/* 2833 */ AdvancedCreationEntry yellowWoolCap = createAdvancedEntry(10016, 128, 943, 944, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2836 */ yellowWoolCap.setUseTemplateWeight(true);\n/* 2837 */ yellowWoolCap.setColouringCreation(true);\n/* 2838 */ yellowWoolCap.addRequirement(new CreationRequirement(1, 47, 1, true));\n/* 2839 */ yellowWoolCap.addRequirement(new CreationRequirement(2, 128, 1, true));\n/* 2840 */ yellowWoolCap.addRequirement(new CreationRequirement(3, 439, 3, true));\n/* */ \n/* 2842 */ AdvancedCreationEntry greenWoolCap = createAdvancedEntry(10016, 128, 943, 945, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2845 */ greenWoolCap.setUseTemplateWeight(true);\n/* 2846 */ greenWoolCap.setColouringCreation(true);\n/* 2847 */ greenWoolCap.addRequirement(new CreationRequirement(1, 47, 1, true));\n/* */ \n/* 2849 */ AdvancedCreationEntry redWoolCap = createAdvancedEntry(10016, 128, 943, 946, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2852 */ redWoolCap.setUseTemplateWeight(true);\n/* 2853 */ redWoolCap.setColouringCreation(true);\n/* 2854 */ redWoolCap.addRequirement(new CreationRequirement(1, 439, 2, true));\n/* */ \n/* 2856 */ AdvancedCreationEntry blueWoolCap = createAdvancedEntry(10016, 128, 943, 947, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2859 */ blueWoolCap.setUseTemplateWeight(true);\n/* 2860 */ blueWoolCap.setColouringCreation(true);\n/* 2861 */ blueWoolCap.addRequirement(new CreationRequirement(1, 440, 2, true));\n/* */ \n/* 2863 */ AdvancedCreationEntry NIcoomonWoolHat = createAdvancedEntry(10016, 215, 926, 948, true, false, 5.0F, false, false, 0, 5.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2866 */ NIcoomonWoolHat.depleteSource = false;\n/* 2867 */ NIcoomonWoolHat.setDepleteFromTarget(200);\n/* 2868 */ NIcoomonWoolHat.addRequirement(new CreationRequirement(1, 925, 1, true));\n/* */ \n/* 2870 */ AdvancedCreationEntry CIcoomonWoolHat = createAdvancedEntry(10016, 216, 926, 948, true, false, 5.0F, false, false, 0, 5.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2873 */ CIcoomonWoolHat.depleteSource = false;\n/* 2874 */ CIcoomonWoolHat.setDepleteFromTarget(200);\n/* 2875 */ CIcoomonWoolHat.addRequirement(new CreationRequirement(1, 925, 1, true));\n/* */ \n/* 2877 */ AdvancedCreationEntry coomonWoolHatDark = createAdvancedEntry(10016, 128, 948, 949, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2880 */ coomonWoolHatDark.setUseTemplateWeight(true);\n/* 2881 */ coomonWoolHatDark.setColouringCreation(true);\n/* 2882 */ coomonWoolHatDark.addRequirement(new CreationRequirement(1, 46, 1, true));\n/* 2883 */ coomonWoolHatDark.addRequirement(new CreationRequirement(2, 437, 1, true));\n/* */ \n/* 2885 */ AdvancedCreationEntry coomonWoolHatBrown = createAdvancedEntry(10016, 128, 948, 950, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2888 */ coomonWoolHatBrown.setUseTemplateWeight(true);\n/* 2889 */ coomonWoolHatBrown.setColouringCreation(true);\n/* 2890 */ coomonWoolHatBrown.addRequirement(new CreationRequirement(1, 439, 3, true));\n/* 2891 */ coomonWoolHatBrown.addRequirement(new CreationRequirement(2, 47, 2, true));\n/* 2892 */ coomonWoolHatBrown.addRequirement(new CreationRequirement(3, 440, 1, true));\n/* 2893 */ coomonWoolHatBrown.addRequirement(new CreationRequirement(4, 128, 2, true));\n/* */ \n/* 2895 */ AdvancedCreationEntry coomonWoolHatGreen = createAdvancedEntry(10016, 128, 948, 951, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2898 */ coomonWoolHatGreen.setUseTemplateWeight(true);\n/* 2899 */ coomonWoolHatGreen.setColouringCreation(true);\n/* 2900 */ coomonWoolHatGreen.addRequirement(new CreationRequirement(1, 47, 1, true));\n/* 2901 */ coomonWoolHatGreen.addRequirement(new CreationRequirement(2, 128, 1, true));\n/* */ \n/* 2903 */ AdvancedCreationEntry coomonWoolHatRed = createAdvancedEntry(10016, 128, 948, 952, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2906 */ coomonWoolHatRed.setUseTemplateWeight(true);\n/* 2907 */ coomonWoolHatRed.setColouringCreation(true);\n/* 2908 */ coomonWoolHatRed.addRequirement(new CreationRequirement(1, 439, 2, true));\n/* 2909 */ coomonWoolHatRed.addRequirement(new CreationRequirement(2, 128, 2, true));\n/* */ \n/* 2911 */ AdvancedCreationEntry coomonWoolHatBlue = createAdvancedEntry(10016, 128, 948, 953, true, false, 0.0F, true, false, 0, 20.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2914 */ coomonWoolHatBlue.setUseTemplateWeight(true);\n/* 2915 */ coomonWoolHatBlue.setColouringCreation(true);\n/* 2916 */ coomonWoolHatBlue.addRequirement(new CreationRequirement(1, 440, 2, true));\n/* 2917 */ coomonWoolHatBlue.addRequirement(new CreationRequirement(2, 128, 2, true));\n/* */ \n/* 2919 */ AdvancedCreationEntry foresterWoolHatGreen = createAdvancedEntry(10016, 128, 954, 955, true, false, 0.0F, true, false, 0, 10.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2922 */ foresterWoolHatGreen.setUseTemplateWeight(true);\n/* 2923 */ foresterWoolHatGreen.setColouringCreation(true);\n/* 2924 */ foresterWoolHatGreen.addRequirement(new CreationRequirement(1, 47, 1, true));\n/* */ \n/* 2926 */ AdvancedCreationEntry foresterWoolHatDark = createAdvancedEntry(10016, 128, 954, 956, true, false, 0.0F, true, false, 0, 10.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2929 */ foresterWoolHatDark.setUseTemplateWeight(true);\n/* 2930 */ foresterWoolHatDark.setColouringCreation(true);\n/* 2931 */ foresterWoolHatDark.addRequirement(new CreationRequirement(1, 46, 1, true));\n/* 2932 */ foresterWoolHatDark.addRequirement(new CreationRequirement(2, 437, 1, true));\n/* */ \n/* 2934 */ AdvancedCreationEntry foresterWoolHatBlue = createAdvancedEntry(10016, 128, 954, 957, true, false, 0.0F, true, false, 0, 10.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2937 */ foresterWoolHatBlue.setUseTemplateWeight(true);\n/* 2938 */ foresterWoolHatBlue.setColouringCreation(true);\n/* 2939 */ foresterWoolHatBlue.addRequirement(new CreationRequirement(1, 440, 2, true));\n/* */ \n/* 2941 */ AdvancedCreationEntry foresterWoolHatRed = createAdvancedEntry(10016, 128, 954, 958, true, false, 0.0F, true, false, 0, 10.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2944 */ foresterWoolHatRed.setUseTemplateWeight(true);\n/* 2945 */ foresterWoolHatRed.setColouringCreation(true);\n/* 2946 */ foresterWoolHatRed.addRequirement(new CreationRequirement(1, 439, 2, true));\n/* */ \n/* 2948 */ AdvancedCreationEntry squireWoolCapGreen = createAdvancedEntry(10016, 128, 961, 962, true, false, 0.0F, true, false, 0, 25.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2951 */ squireWoolCapGreen.setUseTemplateWeight(true);\n/* 2952 */ squireWoolCapGreen.setColouringCreation(true);\n/* 2953 */ squireWoolCapGreen.addRequirement(new CreationRequirement(1, 47, 1, true));\n/* */ \n/* 2955 */ AdvancedCreationEntry squireWoolCapBlue = createAdvancedEntry(10016, 128, 961, 963, true, false, 0.0F, true, false, 0, 25.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2958 */ squireWoolCapBlue.setUseTemplateWeight(true);\n/* 2959 */ squireWoolCapBlue.setColouringCreation(true);\n/* 2960 */ squireWoolCapBlue.addRequirement(new CreationRequirement(1, 440, 2, true));\n/* */ \n/* 2962 */ AdvancedCreationEntry squireWoolCapBlack = createAdvancedEntry(10016, 128, 961, 964, true, false, 0.0F, true, false, 0, 25.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2965 */ squireWoolCapBlack.setUseTemplateWeight(true);\n/* 2966 */ squireWoolCapBlack.setColouringCreation(true);\n/* 2967 */ squireWoolCapBlack.addRequirement(new CreationRequirement(1, 46, 1, true));\n/* 2968 */ squireWoolCapBlack.addRequirement(new CreationRequirement(2, 437, 1, true));\n/* */ \n/* 2970 */ AdvancedCreationEntry squireWoolCapRed = createAdvancedEntry(10016, 128, 961, 965, true, false, 0.0F, true, false, 0, 25.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2973 */ squireWoolCapRed.setUseTemplateWeight(true);\n/* 2974 */ squireWoolCapRed.setColouringCreation(true);\n/* 2975 */ squireWoolCapRed.addRequirement(new CreationRequirement(1, 439, 2, true));\n/* */ \n/* 2977 */ AdvancedCreationEntry squireWoolCapYellow = createAdvancedEntry(10016, 128, 961, 966, true, false, 0.0F, true, false, 0, 25.0D, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 2980 */ squireWoolCapYellow.setUseTemplateWeight(true);\n/* 2981 */ squireWoolCapYellow.setColouringCreation(true);\n/* 2982 */ squireWoolCapYellow.addRequirement(new CreationRequirement(1, 47, 1, true));\n/* 2983 */ squireWoolCapYellow.addRequirement(new CreationRequirement(2, 128, 1, true));\n/* 2984 */ squireWoolCapYellow.addRequirement(new CreationRequirement(3, 439, 2, true));\n/* */ \n/* 2986 */ AdvancedCreationEntry grapeTrellis = createAdvancedEntry(10045, 918, 23, 920, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 2989 */ grapeTrellis.addRequirement(new CreationRequirement(1, 23, 5, true));\n/* 2990 */ grapeTrellis.addRequirement(new CreationRequirement(2, 218, 1, true));\n/* */ \n/* 2992 */ AdvancedCreationEntry grapeTrellis1 = createAdvancedEntry(10045, 266, 23, 920, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 2995 */ grapeTrellis1.setObjectSourceMaterial((byte)49);\n/* 2996 */ grapeTrellis1.addRequirement(new CreationRequirement(1, 23, 5, true));\n/* 2997 */ grapeTrellis1.addRequirement(new CreationRequirement(2, 218, 1, true));\n/* */ \n/* 2999 */ AdvancedCreationEntry ivyTrellis = createAdvancedEntry(10045, 917, 23, 919, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3002 */ ivyTrellis.addRequirement(new CreationRequirement(1, 23, 5, true));\n/* 3003 */ ivyTrellis.addRequirement(new CreationRequirement(2, 218, 1, true));\n/* */ \n/* 3005 */ AdvancedCreationEntry roseTrellis = createAdvancedEntry(10045, 1017, 23, 1018, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3008 */ roseTrellis.addRequirement(new CreationRequirement(1, 23, 5, true));\n/* 3009 */ roseTrellis.addRequirement(new CreationRequirement(2, 218, 1, true));\n/* */ \n/* 3011 */ AdvancedCreationEntry roseTrellis1 = createAdvancedEntry(10045, 266, 23, 1018, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3014 */ roseTrellis1.setObjectSourceMaterial((byte)47);\n/* 3015 */ roseTrellis1.addRequirement(new CreationRequirement(1, 23, 5, true));\n/* 3016 */ roseTrellis1.addRequirement(new CreationRequirement(2, 218, 1, true));\n/* */ \n/* 3018 */ AdvancedCreationEntry hopsTrellis = createAdvancedEntry(10045, 1275, 23, 1274, false, false, 0.0F, true, true, 0, 10.0D, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3021 */ hopsTrellis.addRequirement(new CreationRequirement(1, 23, 5, true));\n/* 3022 */ hopsTrellis.addRequirement(new CreationRequirement(2, 218, 1, true));\n/* */ \n/* 3024 */ AdvancedCreationEntry tapestryStand = createAdvancedEntry(10044, 22, 23, 987, false, false, 0.0F, true, true, CreationCategories.RESOURCES);\n/* */ \n/* 3026 */ tapestryStand.addRequirement(new CreationRequirement(1, 23, 3, true));\n/* 3027 */ tapestryStand.addRequirement(new CreationRequirement(2, 218, 2, true));\n/* */ \n/* 3029 */ AdvancedCreationEntry tapestryP1 = createAdvancedEntry(10016, 926, 987, 988, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 3031 */ tapestryP1.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3032 */ tapestryP1.addRequirement(new CreationRequirement(2, 925, 2, true));\n/* */ \n/* 3034 */ AdvancedCreationEntry tapestryP2 = createAdvancedEntry(10016, 926, 987, 989, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 3036 */ tapestryP2.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3037 */ tapestryP2.addRequirement(new CreationRequirement(2, 925, 2, true));\n/* */ \n/* 3039 */ AdvancedCreationEntry tapestryP3 = createAdvancedEntry(10016, 926, 987, 990, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 3041 */ tapestryP3.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3042 */ tapestryP3.addRequirement(new CreationRequirement(2, 925, 2, true));\n/* */ \n/* 3044 */ AdvancedCreationEntry tapestryM1 = createAdvancedEntry(10016, 926, 987, 991, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 3046 */ tapestryM1.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3047 */ tapestryM1.addRequirement(new CreationRequirement(2, 925, 6, true));\n/* */ \n/* 3049 */ AdvancedCreationEntry tapestryM2 = createAdvancedEntry(10016, 926, 987, 992, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3052 */ tapestryM2.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3053 */ tapestryM2.addRequirement(new CreationRequirement(2, 925, 6, true));\n/* */ \n/* 3055 */ AdvancedCreationEntry tapestryM3 = createAdvancedEntry(10016, 926, 987, 993, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3058 */ tapestryM3.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3059 */ tapestryM3.addRequirement(new CreationRequirement(2, 925, 6, true));\n/* */ \n/* 3061 */ AdvancedCreationEntry tapestryFaeldray = createAdvancedEntry(10016, 926, 987, 994, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3064 */ tapestryFaeldray.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3065 */ tapestryFaeldray.addRequirement(new CreationRequirement(2, 925, 6, true));\n/* */ \n/* */ \n/* 3068 */ AdvancedCreationEntry swordDisplay = createAdvancedEntry(10044, 987, 21, 1030, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3071 */ swordDisplay.addRequirement(new CreationRequirement(1, 21, 1, true));\n/* 3072 */ swordDisplay.addRequirement(new CreationRequirement(2, 86, 1, true));\n/* */ \n/* 3074 */ AdvancedCreationEntry axeDisplay = createAdvancedEntry(10044, 987, 90, 1031, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3077 */ axeDisplay.addRequirement(new CreationRequirement(1, 90, 1, true));\n/* 3078 */ axeDisplay.addRequirement(new CreationRequirement(2, 86, 1, true));\n/* */ \n/* 3080 */ AdvancedCreationEntry marblePlanter = createAdvancedEntry(10074, 786, 786, 1001, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3083 */ marblePlanter.addRequirement(new CreationRequirement(1, 786, 4, true));\n/* */ \n/* 3085 */ AdvancedCreationEntry bunchOfRopes = createAdvancedEntry(1014, 319, 319, 1029, false, false, 0.0F, true, false, CreationCategories.ROPES);\n/* */ \n/* 3087 */ bunchOfRopes.addRequirement(new CreationRequirement(1, 319, 2, true));\n/* */ \n/* 3089 */ createSimpleEntry(10016, 216, 926, 1071, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 3091 */ createSimpleEntry(10016, 215, 926, 1071, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 3093 */ createSimpleEntry(10016, 216, 213, 1107, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 3095 */ createSimpleEntry(10016, 215, 213, 1107, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 3097 */ createSimpleEntry(10016, 216, 213, 1106, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* 3099 */ createSimpleEntry(10016, 215, 213, 1106, false, true, 0.0F, false, false, CreationCategories.CLOTHES);\n/* */ \n/* */ \n/* 3102 */ createNewClothing(1067, 110, 128, new int[] { 47, 439, 102 });\n/* 3103 */ createNewClothing(1068, 110, 128, new int[] { 46, 437, 102 });\n/* 3104 */ createNewClothing(1069, 110, 128, new int[] { 439, 100, 102 });\n/* 3105 */ createNewClothing(1070, 1107, 128, new int[] { 439, 47, 440 });\n/* 3106 */ createNewClothing(1072, 1107, 128, new int[] { 46, 437 });\n/* 3107 */ createNewClothing(1073, 1107, 128, new int[] { 47 });\n/* 3108 */ createNewClothing(1074, 1106, 128, new int[] { 47, 439, 100 });\n/* 3109 */ createNewClothing(1105, 1106, 128, new int[] { 46, 437, 100 });\n/* 3110 */ createNewClothing(1075, 1106, 128, new int[] { 439, 100 });\n/* 3111 */ createNewClothing(779, 1425, 128, new int[] { 440 });\n/* 3112 */ createNewClothing(111, 1426, 128, new int[] { 439 });\n/* 3113 */ createNewClothing(112, 1427, 128, new int[] { 439 });\n/* */ \n/* */ \n/* 3116 */ AdvancedCreationEntry beeSmoker = createAdvancedEntry(10015, 188, 46, 1243, false, false, 0.0F, true, false, 0, 30.0D, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* */ \n/* 3120 */ beeSmoker.addRequirement(new CreationRequirement(1, 188, 1, true));\n/* 3121 */ beeSmoker.addRequirement(new CreationRequirement(2, 72, 1, true));\n/* */ \n/* 3123 */ AdvancedCreationEntry hive = createAdvancedEntry(10044, 23, 22, 1175, false, false, 0.0F, true, true, 0, 25.0D, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 3126 */ hive.addRequirement(new CreationRequirement(1, 22, 10, true));\n/* 3127 */ hive.addRequirement(new CreationRequirement(2, 23, 3, true));\n/* 3128 */ hive.addRequirement(new CreationRequirement(3, 218, 1, true));\n/* */ \n/* 3130 */ AdvancedCreationEntry waxkit = createAdvancedEntry(10091, 213, 1254, 1255, false, false, 0.0F, true, false, 0, 21.0D, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* */ \n/* 3133 */ waxkit.addRequirement(new CreationRequirement(1, 1269, 1, true));\n/* 3134 */ waxkit.addRequirement(new CreationRequirement(2, 214, 1, true));\n/* */ \n/* 3136 */ AdvancedCreationEntry skullMug = createAdvancedEntry(1012, 390, 1250, 1253, false, true, 0.0F, false, false, 0, 25.0D, CreationCategories.COOKING_UTENSILS);\n/* */ \n/* */ \n/* 3139 */ skullMug.addRequirement(new CreationRequirement(1, 444, 2, true));\n/* 3140 */ skullMug.addRequirement(new CreationRequirement(2, 1254, 2, true));\n/* 3141 */ skullMug.setIsEpicBuildMissionTarget(false);\n/* */ \n/* 3143 */ AdvancedCreationEntry messageBoard = createAdvancedEntry(1005, 23, 22, 1271, false, false, 0.0F, true, true, CreationCategories.SIGNS);\n/* */ \n/* 3145 */ messageBoard.addRequirement(new CreationRequirement(1, 22, 5, true));\n/* 3146 */ messageBoard.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* 3147 */ messageBoard.addRequirement(new CreationRequirement(3, 218, 3, true));\n/* */ \n/* 3149 */ AdvancedCreationEntry still = createAdvancedEntry(10015, 772, 772, 1178, false, false, 0.0F, true, true, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 3152 */ still.addRequirement(new CreationRequirement(1, 772, 5, true));\n/* 3153 */ still.addRequirement(new CreationRequirement(2, 131, 25, true));\n/* 3154 */ still.addRequirement(new CreationRequirement(3, 22, 1, true));\n/* 3155 */ still.addRequirement(new CreationRequirement(4, 188, 2, true));\n/* */ \n/* 3157 */ AdvancedCreationEntry larder = createAdvancedEntry(10044, 22, 23, 1277, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* 3159 */ larder.addRequirement(new CreationRequirement(1, 22, 19, true));\n/* 3160 */ larder.addRequirement(new CreationRequirement(2, 218, 3, true));\n/* 3161 */ larder.addRequirement(new CreationRequirement(3, 49, 5, true));\n/* 3162 */ larder.addRequirement(new CreationRequirement(4, 188, 2, true));\n/* 3163 */ larder.addRequirement(new CreationRequirement(5, 23, 3, true));\n/* */ \n/* 3165 */ createAdvancedEntry(10015, 1298, 1299, 1296, false, false, 0.0F, true, false, CreationCategories.CONTAINER)\n/* */ \n/* 3167 */ .addRequirement(new CreationRequirement(1, 76, 1, true))\n/* 3168 */ .addRequirement(new CreationRequirement(2, 131, 6, true))\n/* 3169 */ .addRequirement(new CreationRequirement(3, 444, 1, true))\n/* 3170 */ .addRequirement(new CreationRequirement(4, 100, 2, true))\n/* 3171 */ .addRequirement(new CreationRequirement(5, 1298, 2, true));\n/* */ \n/* 3173 */ AdvancedCreationEntry weaponsRackS = createAdvancedEntry(10044, 218, 22, 724, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 3175 */ weaponsRackS.addRequirement(new CreationRequirement(1, 561, 7, true));\n/* 3176 */ weaponsRackS.addRequirement(new CreationRequirement(2, 22, 9, true));\n/* */ \n/* 3178 */ AdvancedCreationEntry weaponsRackP = createAdvancedEntry(10044, 218, 22, 725, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 3180 */ weaponsRackP.addRequirement(new CreationRequirement(1, 561, 7, true));\n/* 3181 */ weaponsRackP.addRequirement(new CreationRequirement(2, 22, 9, true));\n/* */ \n/* 3183 */ AdvancedCreationEntry armourStand = createAdvancedEntry(10044, 218, 22, 759, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 3185 */ armourStand.addRequirement(new CreationRequirement(1, 561, 7, true));\n/* 3186 */ armourStand.addRequirement(new CreationRequirement(2, 22, 12, true));\n/* 3187 */ armourStand.addRequirement(new CreationRequirement(3, 23, 6, true));\n/* */ \n/* 3189 */ AdvancedCreationEntry weaponsRackB = createAdvancedEntry(10044, 218, 22, 758, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 3191 */ weaponsRackB.addRequirement(new CreationRequirement(1, 561, 7, true));\n/* 3192 */ weaponsRackB.addRequirement(new CreationRequirement(2, 22, 9, true));\n/* */ \n/* 3194 */ AdvancedCreationEntry thatchingTool = createAdvancedEntry(10044, 217, 22, 774, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 3196 */ thatchingTool.addRequirement(new CreationRequirement(1, 217, 6, true));\n/* 3197 */ thatchingTool.addRequirement(new CreationRequirement(2, 23, 1, true));\n/* */ \n/* 3199 */ AdvancedCreationEntry wineBarrelRack = createAdvancedEntry(1005, 217, 860, 1108, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* */ \n/* 3202 */ wineBarrelRack.addRequirement(new CreationRequirement(1, 860, 1, true));\n/* */ \n/* 3204 */ AdvancedCreationEntry smallBarrelRack = createAdvancedEntry(1005, 217, 860, 1109, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* */ \n/* 3207 */ smallBarrelRack.addRequirement(new CreationRequirement(1, 860, 1, true));\n/* */ \n/* 3209 */ AdvancedCreationEntry planterRack = createAdvancedEntry(1005, 217, 860, 1110, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* */ \n/* 3212 */ planterRack.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* */ \n/* 3214 */ AdvancedCreationEntry amphoraRack = createAdvancedEntry(1005, 217, 860, 1111, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* */ \n/* 3217 */ amphoraRack.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* */ \n/* 3219 */ AdvancedCreationEntry emptyShelf = createAdvancedEntry(1005, 217, 860, 1412, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3222 */ emptyShelf.addRequirement(new CreationRequirement(1, 22, 4, true));\n/* */ \n/* 3224 */ createSimpleEntry(10091, 394, 748, 1269, false, true, 0.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* */ \n/* 3227 */ createSimpleEntry(10091, 394, 1272, 1269, false, true, 0.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* */ \n/* */ \n/* 3231 */ if (Features.Feature.HIGHWAYS.isEnabled()) {\n/* */ \n/* 3233 */ createSimpleEntry(10031, 97, 146, 1113, false, true, 10.0F, false, false, CreationCategories.HIGHWAY);\n/* */ \n/* 3235 */ createSimpleEntry(10031, 308, 1113, 1114, true, true, 0.0F, false, false, CreationCategories.HIGHWAY);\n/* */ \n/* */ \n/* 3238 */ AdvancedCreationEntry waystone = createAdvancedEntry(10031, 97, 146, 1112, false, false, 10.0F, false, false, 0, 21.0D, CreationCategories.HIGHWAY);\n/* */ \n/* 3240 */ waystone.setDepleteFromTarget(5000);\n/* 3241 */ waystone.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* 3242 */ waystone.addRequirement(new CreationRequirement(2, 480, 1, true));\n/* */ } \n/* */ \n/* 3245 */ createSimpleEntry(10091, 748, 214, 1409, true, true, 0.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* 3247 */ createSimpleEntry(10091, 1272, 214, 1409, true, true, 0.0F, false, false, CreationCategories.WRITING);\n/* */ \n/* */ \n/* 3250 */ AdvancedCreationEntry archJournal = createAdvancedEntry(10017, 1409, 100, 1404, false, false, 0.0F, true, false, CreationCategories.WRITING);\n/* */ \n/* 3252 */ archJournal.addRequirement(new CreationRequirement(1, 100, 2, true));\n/* 3253 */ AdvancedCreationEntry almanac = createAdvancedEntry(10017, 1409, 100, 1127, false, false, 0.0F, true, false, CreationCategories.WRITING);\n/* */ \n/* 3255 */ almanac.addRequirement(new CreationRequirement(1, 100, 2, true));\n/* */ \n/* 3257 */ if (Features.Feature.WAGONER.isEnabled()) {\n/* */ \n/* 3259 */ AdvancedCreationEntry wagonerContainer = createAdvancedEntry(1005, 217, 860, 1309, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* 3261 */ wagonerContainer.addRequirement(new CreationRequirement(1, 860, 1, true));\n/* */ } \n/* */ \n/* 3264 */ AdvancedCreationEntry crateRack = createAdvancedEntry(1005, 217, 860, 1312, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* 3266 */ crateRack.addRequirement(new CreationRequirement(1, 860, 1, true));\n/* 3267 */ crateRack.addRequirement(new CreationRequirement(2, 22, 6, true));\n/* */ \n/* 3269 */ AdvancedCreationEntry bsbRack = createAdvancedEntry(1005, 217, 860, 1315, false, false, 0.0F, true, true, CreationCategories.CONTAINER);\n/* */ \n/* 3271 */ bsbRack.addRequirement(new CreationRequirement(1, 860, 1, true));\n/* 3272 */ bsbRack.addRequirement(new CreationRequirement(2, 22, 6, true));\n/* */ \n/* 3274 */ AdvancedCreationEntry bcu = createAdvancedEntry(10044, 217, 860, 1316, false, false, 0.0F, true, true, 35, 50.0D, CreationCategories.CONTAINER);\n/* */ \n/* 3276 */ bcu.addRequirement(new CreationRequirement(1, 860, 2, true));\n/* 3277 */ bcu.addRequirement(new CreationRequirement(2, 22, 6, true));\n/* 3278 */ bcu.addRequirement(new CreationRequirement(3, 662, 4, true));\n/* */ \n/* */ \n/* 3281 */ if (Features.Feature.TRANSPORTABLE_CREATURES.isEnabled()) {\n/* */ \n/* 3283 */ AdvancedCreationEntry creatureCrate = createAdvancedEntry(1005, 22, 217, 1311, false, false, 0.0F, true, true, 0, 60.0D, CreationCategories.STORAGE);\n/* */ \n/* 3285 */ creatureCrate.addRequirement(new CreationRequirement(1, 22, 24, true));\n/* 3286 */ creatureCrate.addRequirement(new CreationRequirement(2, 681, 6, true));\n/* 3287 */ creatureCrate.addRequirement(new CreationRequirement(3, 217, 16, true));\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 3292 */ AdvancedCreationEntry tapestryEvening = createAdvancedEntry(10016, 926, 987, 1318, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3295 */ tapestryEvening.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3296 */ tapestryEvening.addRequirement(new CreationRequirement(2, 925, 6, true));\n/* */ \n/* 3298 */ AdvancedCreationEntry tapestryMclavin = createAdvancedEntry(10016, 926, 987, 1319, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3301 */ tapestryMclavin.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3302 */ tapestryMclavin.addRequirement(new CreationRequirement(2, 925, 6, true));\n/* */ \n/* 3304 */ AdvancedCreationEntry tapestryEhizellbob = createAdvancedEntry(10016, 926, 987, 1320, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* */ \n/* 3307 */ tapestryEhizellbob.addRequirement(new CreationRequirement(1, 926, 7, true));\n/* 3308 */ tapestryEhizellbob.addRequirement(new CreationRequirement(2, 925, 6, true));\n/* */ \n/* */ \n/* 3311 */ createAdvancedMetalicEntry(10015, 64, 220, 1341, false, true, 0.0F, false, false, CreationCategories.TOOLS, new CreationRequirement[] { new CreationRequirement(1, 790, 3, true), new CreationRequirement(2, 100, 1, true) });\n/* */ \n/* */ \n/* */ \n/* */ \n/* 3316 */ AdvancedCreationEntry keepNet = createAdvancedEntry(1014, 188, 319, 1342, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* 3318 */ keepNet.addRequirement(new CreationRequirement(1, 188, 1, true));\n/* 3319 */ keepNet.addRequirement(new CreationRequirement(2, 214, 2, true));\n/* 3320 */ keepNet.addRequirement(new CreationRequirement(3, 23, 2, true));\n/* */ \n/* 3322 */ AdvancedCreationEntry fishingNet = createAdvancedEntry(10016, 214, 214, 1343, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 3325 */ fishingNet.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* 3326 */ fishingNet.addRequirement(new CreationRequirement(2, 319, 1, true));\n/* */ \n/* 3328 */ createSimpleEntry(1005, 8, 23, 1344, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 3331 */ createSimpleEntry(1005, 685, 23, 1344, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 3334 */ createMetallicEntries(10043, 64, 46, 1345, false, true, 0.0F, false, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 3337 */ AdvancedCreationEntry fishingRod = createAdvancedEntry(10044, 1344, 23, 1346, false, false, 0.0F, true, false, CreationCategories.TOOLS);\n/* */ \n/* */ \n/* 3340 */ fishingRod.addRequirement(new CreationRequirement(1, 1345, 3, true));\n/* */ \n/* 3342 */ createSimpleEntry(10016, 14, 214, 1347, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3345 */ createSimpleEntry(10016, 922, 1347, 1348, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3348 */ createSimpleEntry(1014, 320, 1348, 1349, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3351 */ createSimpleEntry(10016, 922, 1349, 1350, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3354 */ createSimpleEntry(1014, 320, 1350, 1351, false, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3357 */ createSimpleEntry(1005, 8, 9, 1356, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3360 */ createSimpleEntry(1005, 685, 9, 1356, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3363 */ createMetallicEntries(10015, 64, 46, 1357, false, true, 1000.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3366 */ createSimpleEntry(1020, 8, 1250, 1358, false, true, 900.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3369 */ createSimpleEntry(10044, 8, 23, 1367, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3372 */ createMetallicEntries(10043, 64, 46, 1368, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3375 */ createSimpleEntry(10043, 64, 205, 1369, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3378 */ createSimpleEntry(10043, 64, 837, 1369, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3381 */ createSimpleEntry(10043, 64, 694, 1369, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3384 */ createSimpleEntry(10043, 64, 698, 1369, false, true, 10.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3387 */ createSimpleEntry(10015, 101, 444, 1370, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3390 */ createSimpleEntry(10016, 1370, 213, 1371, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3393 */ createSimpleEntry(10016, 1370, 926, 1371, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3396 */ createSimpleEntry(1005, 99, 1367, 1372, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3399 */ createSimpleEntry(10044, 101, 1367, 1373, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3402 */ createSimpleEntry(10015, 1370, 1368, 1374, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3405 */ createSimpleEntry(10043, 1371, 1369, 1375, true, true, 0.0F, false, false, CreationCategories.TOOL_PARTS);\n/* */ \n/* */ \n/* 3408 */ AdvancedCreationEntry rackRods = createAdvancedEntry(1005, 218, 22, 1393, false, false, 0.0F, true, true, CreationCategories.STORAGE);\n/* */ \n/* 3410 */ rackRods.addRequirement(new CreationRequirement(1, 561, 7, true));\n/* 3411 */ rackRods.addRequirement(new CreationRequirement(2, 22, 9, true));\n/* */ \n/* */ \n/* */ \n/* */ \n/* 3416 */ AdvancedCreationEntry bouy = createAdvancedEntry(1005, 189, 565, 1396, false, false, 0.0F, true, true, CreationCategories.DECORATION);\n/* */ \n/* 3418 */ bouy.addRequirement(new CreationRequirement(1, 23, 1, true));\n/* 3419 */ bouy.addRequirement(new CreationRequirement(2, 497, 1, true));\n/* */ \n/* 3421 */ AdvancedCreationEntry pearlNecklace = createAdvancedEntry(10043, 214, 1397, 1399, false, false, 0.0F, true, false, CreationCategories.DECORATION);\n/* */ \n/* 3423 */ pearlNecklace.addRequirement(new CreationRequirement(1, 1397, 9, true));\n/* 3424 */ pearlNecklace.addRequirement(new CreationRequirement(2, 1398, 1, true));\n/* */ \n/* 3426 */ if (Features.Feature.CHICKEN_COOPS.isEnabled()) {\n/* */ \n/* 3428 */ AdvancedCreationEntry chickenCoop = createAdvancedEntry(10044, 22, 217, 1432, false, false, 0.0F, true, true, 0, 50.0D, CreationCategories.STORAGE);\n/* */ \n/* */ \n/* */ \n/* 3432 */ chickenCoop.addRequirement(new CreationRequirement(1, 217, 4, true));\n/* 3433 */ chickenCoop.addRequirement(new CreationRequirement(2, 22, 24, true));\n/* 3434 */ chickenCoop.addRequirement(new CreationRequirement(3, 23, 8, true));\n/* */ \n/* 3436 */ chickenCoop.addRequirement(new CreationRequirement(4, 189, 1, true));\n/* */ } \n/* */ \n/* 3439 */ logger.info(\"Initialising the CreationEntries took \" + ((float)(System.nanoTime() - start) / 1000000.0F) + \" millis.\");\n/* */ }",
"public static void createArmy() {\n Unit unitOne = new Unit(\"Unit One\");\n Unit unitTwo = new Unit(\"Unit Two\");\n Unit unitThree = new Unit(\"Unit Three\");\n Unit unitFour = new Unit(\"Unit Four\");\n Unit unitFive = new Unit(\"Unit Five\");\n\n Knight knightOne = new Knight(\"Knight One\");\n Knight knightTwo = new Knight(\"Knight Two\");\n Knight knightThree = new Knight(\"Knight Three\");\n\n General general = new General(\"General\");\n Doctor doctor = new Doctor(\"Doctor\");\n }",
"public void create() {\n\t\t\n\t}",
"public void instantiateTomes(){\n for (String tomeKey : this.getConfig().getConfigurationSection(\"tomes\").getKeys(false)){\n\n if (this.getConfig().getBoolean(\"tomes.\" + tomeKey + \".enabled\") == false){\n continue;\n }\n\n ArrayList<IQuest> questsToAddToTome = new ArrayList<IQuest>();\n for (String questKey : this.getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".quests\").getKeys(false)){\n for (IQuest quest : quests){\n if (questKey.equalsIgnoreCase(quest.getQuestName())){\n questsToAddToTome.add(quest);\n }\n }\n }\n\n //Fetch rewards of each tome\n ConfigurationSection itemsSection = Tomes.getInstance().getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".rewards.items\");\n ConfigurationSection weightsSection = Tomes.getInstance().getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".rewards.weights\");\n\n ArrayList<ItemStack> rewardsArray = new ArrayList<ItemStack>();\n\n if (itemsSection != null) {\n for (String key : itemsSection.getKeys(false)) {\n ItemStack item = itemsSection.getItemStack(key);\n\n for (int i = 0; i < Integer.parseInt(weightsSection.getString(key)); i++) {\n rewardsArray.add(item);\n }\n }\n }\n\n ConfigurationSection tomeConfig = this.getConfig().getConfigurationSection(\"tomes.\" + tomeKey);\n tomes.add(new Tome(\n tomeKey,\n tomeConfig.getString(\"displayName\"),\n tomeConfig.getInt(\"numberOfQuests\"),\n tomeConfig.getInt(\"cost\"),\n questsToAddToTome,\n rewardsArray\n ));\n\n\n }\n }",
"private void createAllGames() {\n\t\t// Create a melee game for each melee arena\n\t\tmeleeArenaManager.loadArenas();\n\t\tmeleeArenaManager.getArenas().forEach(meleeArena -> {\n\t\t\tMeleeGame game = new MeleeGame(meleeArena);\n\t\t\tmeleeGameManager.addGame(meleeArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.MELEE_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Create a rabbit game for each rabbit arena\n\t\trabbitArenaManager.loadArenas();\n\t\trabbitArenaManager.getArenas().forEach(rabbitArena -> {\n\t\t\tRabbitGame game = new RabbitGame(rabbitArena);\n\t\t\trabbitGameManager.addGame(rabbitArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.RABBIT_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Log out what games were created\n\t\tString meleeGamesList = meleeGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Melee Games for arenas : \" + meleeGamesList);\n\n\t\tString rabbitGamesList = rabbitGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Rabbit Games for arenas : \" + rabbitGamesList);\n\t}",
"private void spawnStart() {\n\t\tswitch (gameType) {\n\t\t\n\t\t}\n\t\tspawnCloud(10,1,0,0); //spawns base cloud\n\t\tspawnCloud(rng(7,10),6,rng(1,2),rng(2,3)); //spawns first clouds\n\t\tspawnCloud(rng(9,12),6,rng(1,2),rng(2,3));\n\t\t//spawnCloud(10,6,16,0);\n\t}",
"public static void createPlayers() {\n\t\tcomputer1 = new ComputerSpeler();\n\t\tspeler = new PersoonSpeler();\n//\t\tif (Main.getNumberOfPlayers() >= 3) { \n//\t\t\tSpeler computer2 = new ComputerSpeler();\n//\t\t}\n//\t\tif (Main.getNumberOfPlayers() == 4) {\n//\t\t\tSpeler computer3 = new ComputerSpeler();\n//\t\t}\n\n\n\t}",
"protected abstract void composeKicks(final Phrase kicks);",
"public void makeTea(){\n size();\n temp();\n type();\n additives();\n }",
"void createWorld(Scanner console){\r\n\t\tRandom r = new Random();\r\n\t // System.out.println(\"Welcome to Sushi Time!\");\r\n\t\t//System.out.println(\"Number of fish: \"); \r\n\t\tint fish = r.nextInt(40)+1;\r\n\t\t//System.out.println(\"Number of sharks: \"); \r\n\t\tint shark = r.nextInt(10)+1;\r\n\t\t//create random int for creating random number of seaweed\r\n\t\tint seaweed=r.nextInt(3)+1;\r\n\t\t//create fish, sharks, seaweed, net and sushibar, add them to GameCollection\r\n\t\tSystem.out.println(\"Creating \"+fish+\" fish\");\r\n\t\tfor(int i=0; i<fish; i++){\r\n\t\t\tSystem.out.println(\"Creating fish\");\r\n\t\t\tFish f = new Fish(this);\r\n\t\t\taddToWorldList(f);\r\n\t\t}\r\n\t\tSystem.out.println(\"Creating \"+shark+\" sharks\");\r\n\t\tfor(int i=0; i<shark; i++){\r\n\t\t\tSystem.out.println(\"Creating shark\");\r\n\t\t\tShark s = new Shark(this);\r\n\t\t\taddToWorldList(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"Creating \"+seaweed+\" seaweed\");\r\n\t\tfor(int i=0; i<seaweed; i++){\r\n\t\t\tSystem.out.println(\"Creating seaweed\");\r\n\t\t\tSeaweed sw=new Seaweed(this);\r\n\t\t\taddToWorldList(sw);\r\n\t\t}\r\n\t\tSystem.out.println(\"Creating net\");\r\n\t\t\tNet n = new Net();\r\n\t\t\taddToWorldList(n);\r\n\t\tSystem.out.println(\"Creating sushibar\");\r\n\t\t Sushibar sb = new Sushibar();\r\n\t\t\taddToWorldList(sb);\r\n\t }",
"public void createPhilosophers() {\n\t\tphil1 = new Philosopher(1,stick1,stick2);\n\t\tphil2 = new Philosopher(2,stick2,stick3);\n\t\tphil3 = new Philosopher(3,stick3,stick4);\n\t\tphil4 = new Philosopher(4,stick4,stick5);\n\t\tphil5 = new Philosopher(5,stick5,stick1);\n\t}",
"void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }",
"@Override\n\tpublic void create() {\n\t\t f=new crazyfail(this);\n\t cfg=new crazyFirstGame(this);\n\t \n\t \t setScreen(cfg);\n\t \n\t\t\n\t}",
"private void createPlayers() {\n // create human player first\n Player human = new Player(\"Player 1\", true);\n players.add(human);\n \n // create remaining AI Players\n for (int i = 0; i < numAIPlayers; i++) {\n Player AI = new Player(\"AI \" + (i + 1), false);\n players.add(AI);\n }\n }",
"Run createRun();",
"private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }",
"private void createWalls(){\n\t \tfloat wallWidth = GameRenderer.BOARD_WIDTH ;\n\t \tfloat wallHeight = GameRenderer.BOARD_HEIGHT ;\n\t \tint offset = -2;\n\t \tint actionBaOffset = 2;\n\t \t\n\t \t//Left Wall\n\t \tnew SpriteWall(0, actionBaOffset, 0, wallHeight+offset);\n\t \t\n\t \t//Right Wall\n\t \tnew SpriteWall(wallWidth+offset, actionBaOffset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t \t//Top Wall\n\t \tnew SpriteWall(0, actionBaOffset, wallWidth+offset, actionBaOffset);\n\t \t\n\t \t//Bottom Wall\n\t \tnew SpriteWall(0, wallHeight+offset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t }",
"private void createBasicEnemies() {\n\t\tint xTemp1 = (int) app.random(60, 500);\n\t\tint xTemp2 = (int) app.random(650, 1140);\n\t\tint yTemp = -60;\n\t\t\n\t\t//Contador para crear enemigo cada cierto tiempo\n\t\tapp.frameRate(80);\n\t\t\n\t\t//Agregar enemigos basicos\n\t\tif (app.frameCount%120 == 0) {\n\t\t\tbasicEnemies1.add(new BasicEnemy(app, xTemp1, yTemp));\n\t\t\tbasicEnemies2.add(new BasicEnemy(app, xTemp2, yTemp));\n\t\t}\n\t\t\n\t\t//Agregar enemigos que disparan\t\t\n\t\tif (app.frameCount%250 == 0) {\n\t\t\thardEnemies1.add(new HardEnemy(app, xTemp1, yTemp));\n\t\t\thardEnemies2.add(new HardEnemy(app, xTemp2, yTemp));\n\t\t}\n\t}",
"public void createRepeatingPayloads(){\n\t\tthis.sets = generateRepeatingPayload();\n\t}",
"public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}",
"public Main()\n {\n createUsers();\n createFriendships();\n createMessages();\n\n }",
"public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}",
"static void test2() {\n\n System.out.println( \"Begin test2. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write a more involved test here.\" );\n //\n // Create a GremlinsBridge of capacity 3.\n // Set an OPTIONAL, test delay to stagger the start of each mogwai.\n // Create the Mogwais and store them in an array.\n // Run them by calling their start() method.\n // Now, the test must give the mogwai time to finish their crossings.\n //\n System.out.println( \"TODO: follow the pattern of the example tests.\" );\n System.out.println( \"\\n=============================== End test2.\" );\n }",
"private static void createPlayfulSet() {\n\n\t\trandomKeys = new ArrayList<>();\n\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT1);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT2);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT3);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT4);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT5);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT6);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT7);\n\t\trandomKeys.add(GuessRevealerConstants.END);\n\n\t\trandomCount = randomKeys.size();\n\n\t}",
"public static void create(int steps) {\n\t\tlocalPlaces = 40;\n\t\toutPlaces = 3;\n\n\t\t// Initial marking: \n\t\tinitPlaces = new int[] {0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0};\n\t\ttileInitPlaces = 20;\n\n\t\t// Output mapping:\n\t\tint offs = 0;\n\t\ttOutMap = new OutMap[outPlaces];\n\t\ttOutMap[offs++] = new OutMap(-1, 37);\n\t\ttOutMap[offs++] = new OutMap(-1, 35);\n\t\ttOutMap[offs++] = new OutMap(1, 0);\n\n\t\t// Transitions:\n\t\toffs = 0;\n\t\ttransitions = 24; // (12 aligned to 4) x 2 steps\n\t\ttmap = new Transition[transitions];\n\n\t\t// {0xoi, inp-s, outp-s}\n\t\ttmap[offs++] = new Transition(0x22, 4, 1, 41 /* out */ , 40 /* out */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 4, 12, 9, 5); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 0, 1, 4); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 10, 11, 3); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 7, 10, 2, 8); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 9, 6, 8, 7); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 2, 4, 12); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 13, 20 /* next */ , 18, 14); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 11, 3, 5, 6); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 11, 16, 17, 19); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 18, 16, 11); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 14, 19, 15, 13); // 11: cw_start_eating\n\n\t\ttmap[offs++] = new Transition(0x22, 24, 21, 15 /* prev */ , 17 /* prev */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 24, 32, 29, 25); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 20, 21, 24); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 30, 31, 23); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 27, 30, 22, 28); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 29, 26, 28, 27); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 22, 24, 32); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 33, 42 /* out */ , 38, 34); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 31, 23, 25, 26); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 31, 36, 37, 39); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 38, 36, 31); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 34, 39, 35, 33); // 11: cw_start_eating\n\n\t\tif(PPNDevice.logMessages)\n\t\t\tSystem.out.printf(\"localPlaces: %d\\ntransitions: %d\\n\", localPlaces, transitions);\n\t}",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"private void createApple() {\r\n Random rnd = new Random();\r\n do {\r\n apple = new Coordinates(rnd.nextInt(gridWidth), rnd.nextInt(gridHeight));\r\n } while (isSnakeAt(apple));\r\n }",
"private void initialSetup() {\n\t\tplaceNewPiece('a', 1, new Rook(board, Color.WHITE));\n placeNewPiece('b', 1, new Knight(board, Color.WHITE));\n placeNewPiece('c', 1, new Bishop(board, Color.WHITE));\n placeNewPiece('d', 1, new Queen(board, Color.WHITE));\n placeNewPiece('e', 1, new King(board, Color.WHITE, this)); // 'this' refere-se a esta jogada\n placeNewPiece('f', 1, new Bishop(board, Color.WHITE));\n placeNewPiece('g', 1, new Knight(board, Color.WHITE));\n placeNewPiece('h', 1, new Rook(board, Color.WHITE));\n placeNewPiece('a', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('b', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('c', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('d', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('e', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('f', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('g', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('h', 2, new Pawn(board, Color.WHITE, this));\n\n placeNewPiece('a', 8, new Rook(board, Color.BLACK));\n placeNewPiece('b', 8, new Knight(board, Color.BLACK));\n placeNewPiece('c', 8, new Bishop(board, Color.BLACK));\n placeNewPiece('d', 8, new Queen(board, Color.BLACK));\n placeNewPiece('e', 8, new King(board, Color.BLACK, this));\n placeNewPiece('f', 8, new Bishop(board, Color.BLACK));\n placeNewPiece('g', 8, new Knight(board, Color.BLACK));\n placeNewPiece('h', 8, new Rook(board, Color.BLACK));\n placeNewPiece('a', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('b', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('c', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('d', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('e', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('f', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('g', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('h', 7, new Pawn(board, Color.BLACK, this));\n\t}",
"public static void main(String[] args) {\n\t\tList<Horse>horses=new ArrayList<>();\n\t\tfor(int i=0;i<8;i++){\nHorse h =new Horse();\nhorses.add(h);\nh.start();\n\t}\n\n}",
"public static void main(String[] args) {\n Toy ironMan = ToyFactory.createToy(\"Hero\", \"Iron Man\", \" I am Iron man!\", 75, null);\n Toy thanos = ToyFactory.createToy(\"Villian\", \"Thanos\", \"I am inevitable!\" , 85, \"Infinity Gaunlet\");\n // Toy redHulk = ToyFactory.createToy(\"Villian\", \"Red Hulk\", \"It culmnber time\", 50, \"cars\");\n // Toy joker = ToyFactory.createToy(\"Villian\", \"Put a smile on that face!\", \"Joker\", 75, \"Knife\");\n // System.out.println(thanos.getWeapon());\n // redHulk.another();\n\n System.out.println(ironMan.getWeapon());\n\n // ironMan.sayCatchPhrase();\n }",
"Stone create();",
"private Brick generateBricks() {\n\t\tBrick randomBrick = null;\n\t\tRandom rand = new Random();\n\t\tint a = rand.nextInt(7);\n\t\tswitch (a) {\n\t\tcase 1:\n\t\t\trandomBrick = new LineBrick();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\trandomBrick = new LBrick();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trandomBrick = new RLBrick();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\trandomBrick = new TBrick();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\trandomBrick = new SBrick();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\trandomBrick = new RSBrick();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\trandomBrick = new Square();\n\t\t\tbreak;\n\t\t}\n\t\tbrickgc.setFill(randomBrick.getColor());\n\t\treturn randomBrick;\n\t}",
"public void setupGame() {\n\t\t// Re-spawn the appropriate number of sheep\n\t\tint numSheep = 31;\n\t\t\n\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\tnumSheep = 1;\n\t\t}\n\t\t\n\t\t// It takes half the sheep to win.\n\t\t_scoreToWin = numSheep / 2;\n\t\tp(\"It takes \" + _scoreToWin + \" sheep to win.\");\n\t\t\n\t\t_hasBeenWon = false;\n\t\t\n\t\t// Non-infrastructural entities.\n\t\t//////////////////////////\n\t\t\n\t\t// Don't create this stuff if I'm replaying.\n\t\tint mod = 1;\n\t\tfor (int i = 0; i < numSheep; i++) {\n\t\t\t//int x = _generator.nextInt(40) - 20;\n\t\t\t//int z = _generator.nextInt(80) - 40;\n\t\t\tmod *= -1;\n\t\t\tint x = i/2 * mod;\n\t\t\tint z = 0;\n\n\t\t\tSheep s = new Sheep(\"sheep-\" + i + \"[\" + _sheepID + \"]\", x, 2, z);\n\t\t\t\n\t\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\t\ts.setBehaviorActive(false);\n\t\t\t}\n\t\t\t\n\t\t\t_sheepID++;\n\t\t}\n\t\t\n\t\t// Add a wubble for testing.\n\t\tif (!_isJimboSpawned && !SheepPhysicsState.PRODUCTION) {\n\t\t\tSystem.out.println(\"Adding Jimbo.\");\n\t\t\t_isJimboSpawned = true;\n\t\t\taddWubble(\"Jimbo\", (short)100, (Integer)1);\n\t\t\taddSidekick(\"Jimbo\");\n\t\t\t//addWubble(\"Bimbo\", (short)101, (Integer)0);\n\t\t}\n\t\t\n\t\t//////////////////////////\n\n\t\t// Add some wrenches in the appropriate spots.\n\t\tnew Wrench(\"blueWrench1\", -8, 5, -20);\n\t\tnew Wrench(\"blueWrench2\", 8, 5, -20);\n\t\tnew Wrench(\"redWrench1\", -8, 5, 20);\n\t\tnew Wrench(\"redWrench2\", 8, 5, 20);\n\t\t\n\t\t// Save the start of the me.\n\t\t_gameStart = System.currentTimeMillis();\n\t\tSystem.out.println(\"Started game at \" + _gameStart);\n\t\t\n\t\t// Make some predicates.\n\t\t//Predicate p = new Predicate(\"baseClassPred\");\n\t\t//GoPred g = new GoPred(\"derivedGoClass\", 1);\n\t\t\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.SPEEDY, new Vector3f(0, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpE\", -1, PowerUpInfo.PowerUpType.EATER, new Vector3f(2, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.STICKY, new Vector3f(2, 0.4f, 2));\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\tAnimal animal=new Animal();\n\t\tanimal.makeNoice();\n\t\t\n\t\tHorse horse= new Horse();\n\t\thorse.makeNoice();\n\t\t\n\t\tDog dog= new Dog();\n\t\tdog.makeNoice();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void makeCoffee(){\n size();\n temp();\n type();\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tDogAndCat dac=new DogAndCat();\r\n\t\tfor(int i=0;i<10;i++) {\r\n\t\t\tint c=(int) (Math.random()*100);\r\n\t\t\tif(c<50) {\r\n\t\t\t\tdac.add(new Dog());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tdac.add(new Cat());\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!dac.isEmpty()) {\r\n\t\t\tSystem.out.print(dac.pollAll().getType()+\" \");\r\n\t\t}\r\n\r\n\t}",
"static void test0() {\n\n System.out.println( \"Begin test0. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gremlinBridge = new GremlinsBridge( 3 );\n\n // Set an optional, test delay to stagger the start of each mogwai.\n int delay = 4000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gremlinBridge ),\n new Mogwai( \"Bob\", 4, SIDE_TWO, gremlinBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay );\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join();\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n System.out.println( \"\\n=============================== End test0.\" );\n return;\n }",
"public void createBike(){\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }",
"public void createNewGame() {\n\t\tfor(int n = 0; n < 8; n++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif ( n % 2 == j % BLACK_PAWN ) {\n\t\t\t\t\tif (n < 3)\n\t\t\t\t\t\tarr[n][j] = RED_PAWN;\n\t\t\t\t\telse if (n > 4)\n\t\t\t\t\t\tarr[n][j] = BLACK_PAWN;\n\t\t\t\t\telse\n\t\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t } \n\t\t\t\telse\n\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t\t}\n\t\t}\n\t}",
"public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }",
"public void addGameObjects() {\n\t\tint baseObject = 4 + random.nextInt(5);\n\t\tint energyDroneObject = 2+ random.nextInt(5);\n\t\t\n\t\tfor (int i = 1; i < baseObject; i++) {\n\t\t\tgameObjects.add(new Bases(i));\n\t\t\t baseCount++;\n\t\t}\n\t\tfor (int i = 0; i < energyDroneObject; i++) {\n\t\t\tgameObjects.add(new EnergyStation());\n\t\t\tenergyStationCount++;\n\t\t}\n\t\tfor (int i = 0; i < energyDroneObject ; i++) {\n\t\t\tgameObjects.add(new Drone());\n\t\t\tdroneCount++;\n\t\t}\n\t\tgameObjects.add(new Cyborg());\n\t\tcyborgCount++;\n\t}",
"Faucet startWashingHands(String person);",
"private void creationLooper(String meal_id, String[] r_ids) throws InterruptedException {\n int count = 1;\n for(String recipe : r_ids) {\n Thread.sleep(500);\n createMeal(meal_id,recipe,count);\n count++;\n }\n }",
"public void makeNow() {\n makeNow(0);\n }",
"public static void main(String[] args) {\n\n List<Monkey> monkeyList = new LinkedList<Monkey>();\n\n int start = getStartingMonkeyNum(args);\n Monkey tmpMonkey;\n Banana b1 = new Banana();\n MonkeyWatcher mw = new MonkeyWatcher();\n\n for (int j = 0; j < start + 1; j++) {\n tmpMonkey = new Monkey();\n monkeyList.add(tmpMonkey);\n }\n monkeyList.get(start).throwBananaTo(b1);\n\n int numRounds = runSimulation(monkeyList, mw);\n System.out.println(\"Completed in \" + numRounds + \" rounds.\");\n\n //Run the simulation passing to prime monkeys\n isPrimeSim = true;\n System.out.println(\"\\nStarting Again...\");\n MonkeyWatcher mwPrime = new MonkeyWatcher();\n\n //Get rid of the banana that the first monkey has from the previous game\n getFirstMonkey(monkeyList).throwBananaFrom();\n monkeyList.get(start).throwBananaTo(b1);\n\n numRounds = runSimulation(monkeyList, mwPrime);\n System.out.println(\"Completed in \" + numRounds + \" rounds.\");\n }",
"public static void main(String[] args) {\n System.out.println(\"=== Bodyguard ===\");\n HumanFactory factory = HumanFactory.getFactory(\"gof.creational.abstractfactory.factory.BodyguardFactory\");\n Weapon weapon = factory.createWeapon();\n weapon.attack();\n Vehicle vehicle = factory.createVehicle();\n vehicle.saySpeed();\n\n // Create knight's weapon and vehicle.\n System.out.println(\"=== Knight ===\");\n factory = HumanFactory.getFactory(\"gof.creational.abstractfactory.factory.KnightFactory\");\n weapon = factory.createWeapon();\n weapon.attack();\n vehicle = factory.createVehicle();\n vehicle.saySpeed();\n\n // Create millennial generation's weapon and vehicle.\n System.out.println(\"=== Millennial Generation ===\");\n factory = HumanFactory.getFactory(\"gof.creational.abstractfactory.factory.MillennialFactory\");\n weapon = factory.createWeapon();\n weapon.attack();\n vehicle = factory.createVehicle();\n vehicle.saySpeed();\n\n }",
"public void createBike() {\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }",
"public static void main(String[] args) {\n\n\n\n for (int i = 1; i < 6; i++) {\n Car randomCar = randomCar();\n System.out.println(\"Car #\" + i + \"\\n\" + randomCar.accelerate() + \"\\n\"\n + randomCar.startEngine() + \"\\n\");\n\n }\n\n }",
"void generateNewBoard() {\n createAvailableDice();\n\n // Add them to board\n generateBoardLayout();\n }",
"private static void randomizedEntry() {\r\n\t\tfor (int i = 0; i < shops.length; i++) {\r\n\t\t\tshops[i] = new Shop();\r\n\t\t}\r\n\t}",
"public void create(){}",
"protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }",
"private void startingSetup(boolean shelter) {\r\n\t\tArrayList<Card> startDeck = new ArrayList<Card>();\r\n\t\twhile(startDeck.size() < 7) {\r\n\t\t\tstartDeck.add(new Copper());\r\n\t\t}\r\n\t\tif(shelter) {\r\n\t\t\tstartDeck.add(new OvergrownEstate());\r\n\t\t\tstartDeck.add(new Hovel());\r\n\t\t\tstartDeck.add(new Necropolis());\r\n\t\t}\r\n\t\telse {\r\n\t\t\twhile(startDeck.size() < 10) {\r\n\t\t\t\tstartDeck.add(new Estate());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\tdeck = new Deck(access.random, startDeck, access, this);\r\n\t\tdeck.cleanUp();\r\n\t\tactions = 1;\r\n\t\tbuys = 1;\r\n\t\ttreasure = 0;\r\n\t\tpotion = 0;\r\n\t}",
"private void createWalls() {\n int environmentWidth = config.getEnvironmentWidth();\n int environmentHeight = config.getEnvironmentHeight();\n // Left\n Double2D pos = new Double2D(0, environmentHeight / 2.0);\n Double2D v1 = new Double2D(0, -pos.y);\n Double2D v2 = new Double2D(0, pos.y);\n WallObject wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Right\n pos = new Double2D(environmentWidth, environmentHeight / 2.0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Top\n pos = new Double2D(environmentWidth / 2.0, 0);\n v1 = new Double2D(-pos.x, 0);\n v2 = new Double2D(pos.x, 0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Bottom\n pos = new Double2D(environmentWidth / 2.0, environmentHeight);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n }",
"private void createWeapons()\n {\n woodSword = new Weapon(\"wood sword\", \" | does 12 damage\", 10, true); \n rustedSword = new Weapon(\"rusted sword\", \" | does 17 damage\", 15, true);\n silverSword = new Weapon(\"silver sword\", \" | does 32 damage\", 30, true);\n goldSword = new Weapon(\"gold sword\", \" | does 22 damage\", 20, true);\n titaniumSword = new Weapon(\"titanium sword\", \" | does 52 damage\", 50, true);\n silverSpear = new Weapon(\"silver spear\", \" | does 25 damage\", 23, true);\n infantryBow = new Weapon(\"infantry bow\", \" | does 30 damage\", 28, true);\n }",
"private static ArrayList<Quest> createQuests() {\n ArrayList<Quest> quests = new ArrayList();\n //Create Cooks assistant and imp catcher;\n\n //Imp Catcher\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Yellow Bead\");\n itemReqs.add(\"Red Bead\");\n itemReqs.add(\"Black Bead\");\n itemReqs.add(\"While Bead\");\n QuestStep qs1 = new QuestStep(1, \"Hand in beads to wizard\", itemReqs,12337);\n ArrayList<QuestStep> questSteps = new ArrayList();\n questSteps.add(qs1);\n\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n for (int i = 0; i < Constant.NUMBER_OF_Skills; i++) {\n skillReqs[i] = 0;\n }\n ArrayList<String> questReqs = new ArrayList();\n Quest q1 = new Quest(\"Imp Catcher\", questSteps,12337, skillReqs, 0, questReqs);\n quests.add(q1);\n\n //Cooks assistant\n itemReqs = new ArrayList();\n itemReqs.add(\"Pot of Flour\");\n itemReqs.add(\"Egg\");\n itemReqs.add(\"Bucket of Milk\");\n qs1 = new QuestStep(1, \"Hand in ingredients to chef\", itemReqs,12850);\n questSteps = new ArrayList();\n questSteps.add(qs1);\n\n\n Quest q2 = new Quest(\"Cooks Assistant\", questSteps,12850, skillReqs, 0, questReqs);\n quests.add(q2);\n return quests;\n }",
"private void startSpawning()\n {\n MAUtils.setSpawnFlags(plugin, world, 1, allowMonsters, allowAnimals);\n \n // Start the spawnThread.\n spawnThread = new MASpawnThread(plugin, this);\n spawnTaskId = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, spawnThread, waveDelay, (!waveClear) ? waveInterval : 60);\n }",
"public void generate(int i) {\n\t\n if(i == 1) next += generateCoins();\n else if(i == 2) next += generateQuestionBox();\n else if(i == 3) next += generateWall();\n\n next += 400;\n }",
"private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}",
"public void createWall() { // make case statement?\n\t\tRandom ran = new Random();\n\t\tint range = 6 - 1 + 1; // max - min + min\n\t\tint random = ran.nextInt(range) + 1; // add min\n\n\t\t//each wall is a 64 by 32 chunk \n\t\t//which stack to create different structures.\n\t\t\n\t\tWall w; \n\t\tPoint[] points = new Point[11];\n\t\tpoints[0] = new Point(640, -32);\n\t\tpoints[1] = new Point(640, 0);\n\t\tpoints[2] = new Point(640, 32); // top\n\t\tpoints[3] = new Point(640, 384);\n\t\tpoints[4] = new Point(640, 416);\n\n\t\tif (random == 1) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 2) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96); // top\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 3) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192); // top\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 4) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192);\n\t\t\tpoints[10] = new Point(640, 224); // top\n\t\t} else if (random == 5) {\n\t\t\tpoints[5] = new Point(640, 64); // top\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 6) {\n\t\t\tpoints[5] = new Point(640, 192);\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256); // bottom\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t}\n\n\t\tfor (int i = 0; i < points.length; i++) { // adds walls\n\t\t\tw = new Wall();\n\t\t\tw.setBounds(new Rectangle(points[i].x, points[i].y, 64, 32));\n\t\t\twalls.add(w);\n\t\t}\n\t\tWall c; // adds a single checkpoint\n\t\tc = new Wall();\n\t\tcheckPoints.add(c);\n\t\tc.setBounds(new Rectangle(640, 320, 32, 32));\n\t}",
"public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}",
"@Override\n protected void buildInitialFactories() {\n WordGenerator wgen = new RandomWordGenerator(\"23456789abcdefghjklmnpqrstuvwxyz\");\n RandomRangeColorGenerator cgen = new RandomRangeColorGenerator(new int[] { 0, 100 }, new int[] { 0, 100 },\n new int[] { 0, 100 });\n TextPaster textPaster = new RandomTextPaster(new Integer(4), new Integer(4), cgen, true);\n\n BackgroundGenerator backgroundGenerator = new FunkyBackgroundGenerator(new Integer(90), new Integer(30));\n\n Font[] fontsList = new Font[] { new Font(\"Arial\", 0, 10), new Font(\"Tahoma\", 0, 10),\n new Font(\"Verdana\", 0, 10), };\n\n FontGenerator fontGenerator = new RandomFontGenerator(new Integer(20), new Integer(20), fontsList);\n\n WordToImage wordToImage = new ComposedWordToImage(fontGenerator, backgroundGenerator, textPaster);\n this.addFactory(new GimpyFactory(wgen, wordToImage));\n }",
"protected abstract void generate();",
"@Override\n\tpublic void run() {\n\t\tString path = \"D:\\\\test\";\n\t\tfor(int i=1;i<65535;i++){\n\t\t\tFile file = new File(path+File.separator+name+i);\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.mkdirs();\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}",
"public void createPlayers() {\n\t\t\n\t\twhite = new Player(Color.WHITE);\n\t\twhite.initilizePieces();\n\t\tcurrentTurn = white;\n\t\t\n\t\tblack = new Player(Color.BLACK);\n\t\tblack.initilizePieces();\n\t}",
"public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }",
"public Corpse(String name) {\n\t\tsuper(name,'%');\n\t\t// TODO Auto-generated constructor stub\n\t\tRandom rand=new Random();\n\t\tturnsToZombify=rand.nextInt(5)+6;\n\t\t\n\t}",
"private void createPlayers(LogicEngine in_logicEngine)\r\n\t{\n\t\tfor(int i=0 ; i < 4 ;i++)\r\n\t\t{\r\n\t\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/tinyship.png\",(LogicEngine.rect_Screen.getWidth()/2) - (32*i) + 64,50,20);\r\n\t\t\tship.i_animationFrame=0;\r\n\t\t\tship.i_animationFrameSizeWidth=16;\r\n\t\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\tship.allegiance = GameObject.ALLEGIANCES.PLAYER;\r\n\t\t\tship.collisionHandler = new PlayerCollision(ship);\r\n\t\t\tship.stepHandlers.add(new PlayerStep(i,ship));\r\n\t\t\tship.shotHandler = new StraightLineShot(\"data/\"+GameRenderer.dpiFolder+\"/bullet.png\",7.0f,new Vector2d(0,9));\r\n\t\t\t\r\n\t\t\tship.stepHandlers.add(new AnimateRollStep());\r\n\t\t\t\t\r\n\t\t\tship.str_name = \"player\";\r\n\t\t\t\r\n\t\t\tship.c_Color = new Color(1.0f,1.0f,1.0f,1.0f);\r\n\t\t\t\r\n\t\t\tship.v.setMaxForce(3);\r\n\t\t\tship.v.setMaxVel(20.0);\r\n\t\t\tin_logicEngine.objectsPlayers.add(ship);\r\n\t\t\t\r\n\t\t\t//double firing speed on hell\r\n\t\t\tif(Difficulty.isHard())\r\n\t\t\t\tship.shootEverySteps = (int) (ship.shootEverySteps * 0.75); \r\n\t\t\t\r\n\t\t\t//for each advantage if it is enabled apply it\r\n\t\t\tfor(int j=Advantage.b_advantages.length-1 ;j>=0;j--)\r\n\t\t\t\tif(Advantage.b_advantages[j])\r\n\t\t\t\t\tAdvantage.applyAdvantageToShip(j,ship,i,in_logicEngine);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"void create(GameLogic gameLogic);",
"public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) ) / windowsX;\r\n int sizeY = ( building.getHeight() - spacingY * ( windowsY + 1 ) ) / windowsY;\r\n \r\n \r\n for( int i = 1; i <= windowsX; i++ )\r\n {\r\n for( int k = 1; k <= windowsY; k++ )\r\n {\r\n \r\n Rectangle r = new Rectangle( building.getXLocation() + ( spacingX / 2 + spacingX * i ) + sizeX * ( i - 1 ), \r\n building.getYLocation() + ( spacingY / 2 + spacingY * k ) + sizeY * ( k - 1 ) );\r\n r.setSize( sizeX, sizeY );\r\n r.setColor( new Color( 254, 254, 34 ) );\r\n add( r );\r\n }\r\n }\r\n }",
"Dryer startDryingHands(String person);",
"public static void main(String[] args) {\r\n callFactory(new BicycleFactory());\r\n callFactory(new UnicycleFactory());\r\n callFactory(new TricycleFactory());\r\n }",
"private static void createThings(City city)\n {\n int i =0, j =1;\n Thing book = new Thing(city, j, i);\n Thing ipod = new Thing(city, j, i);\n \n //Most of the curly braces were excluded here for stylistic purposes [minimizing the code length]\n \n /* For loop with nested if else statements: //purpose\\\\: fill out the walls area with objects \n * without having to type down standalone code for each object on its own. */\n for(i=0; i<6; i++)\n for(j=1; j<7; j++)\n if(i == 5 && j == 6)\n continue; // Forgo placing an object at the aforementioned intersection\n else\n if(i == 3 && j == 3)\n { // Place TWO OBJECTS at the same intersection (st 4, ave 3)\n book = new Thing(city, j, i);\n ipod = new Thing(city, j, i);\n }\n else // continue with placing the remaining objects\n {\n book = new Thing(city, j, i);\n }\n }",
"String generateJoke();",
"private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}",
"private static Task[] createTaskList() {\n\t\t\n\t Task evalTask = new EvaluationTask();\n\t Task tamperTask = new TamperTask();\n\t Task newDocTask = new NewDocumentTask();\n\t Task reportTask = new AssignmentReportTask();\n\n\t Task[] taskList = {evalTask, tamperTask, newDocTask, reportTask};\n\n\t return taskList;\n\t}",
"public void createDeckBuilding() {\n\t\tboolean stop = false;\n\t\twhile (this.deckBuilding.size() < 5 && stop == false) {\n\t\t\tCard cardBuilding;\n\t\t\tint number = random.nextInt(this.building.size() + this.machine.size());\n\t\t\tif (number < this.building.size()) {\n\t\t\t\tcardBuilding = pickOnThePioche(this.building);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcardBuilding = pickOnThePioche(this.machine);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public CowMeat(){\n\t\tsuper(\"CowMeat\", 100000);\n\t}",
"public void makeTombstone()\r\n\t\t{\r\n\t\t\tisTombstone = true;\r\n\t\t}",
"private void createMonsters() {\n monsters = new ArrayList<Monster>();\n\n Integer value;\n Integer key;\n for(Map.Entry<Integer, Integer> entry : characterLoader.getMonsters().entrySet()){\n\n key = entry.getKey();\n value = entry.getValue();\n\n for(int i=0;i<value;i++) {\n\n Point newPoint = findEmptyCell();\n\n switch (key) {\n\n // Case Ghost\n case LabyrinthFactory.GHOST:\n monsters.add(new Ghost(newPoint.x, newPoint.y));\n break;\n\n // Case Troll\n case LabyrinthFactory.TROLL:\n monsters.add(new Troll(newPoint.x, newPoint.y));\n break;\n }\n }\n }\n\n playThread();\n }",
"public static void main(String[] args) {\n\t\tGiftList list = new GiftList();\r\n\r\n\t\tSystem.out.println(\"Creating 3 gifts.....\");\r\n\t\tfor(int i=1;i<4;i++) {\r\n\t\t\tGiftBasket basket= new GiftBasket(i+5,\"Large\",i*5);\r\n\t\t\t//list.addGiftBasketToEnd(basket);\r\n\t\t}\r\n\t\tlist.showAllGiftBaskets();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n for(int i=0; i<10; i++){\n Constructor c=new Constructor (i);\n c.Constructor(\"Who\");\n \n } \n }",
"private void prepare()\n { \n ClickToStart start = new ClickToStart();\n addObject(start, 641, 534); \n }",
"@Override\n\tprotected void onInitialAgentsCreation() {\n\t\tSystem.out.println(\"Création drones\");\n\t\tDrone drone = null;\n\t\tDroneBuilder droneBuilder;\n\t\tfor (int i = 0; i < INITIAL_DRONE_COUNT; i++) {\n\t\t\tdrone = new Drone(this, getEnvironment().getRandom().nextInt(World.WIDTH), getEnvironment().getRandom().nextInt(World.HEIGHT));\n\t\t\tdroneBuilder = new DroneBuilder();\n\t\t\tdroneBuilder.setDrone(drone);\n\t\t\tdroneBuilder.buildBehaviorStates();\n\t\t\tdroneBuilder.buildAgentPhase();\n\t\t}\n\t}",
"public void generate() {\n\t}",
"static void SampleItinerary()\n {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }"
] |
[
"0.6387044",
"0.5853699",
"0.58350474",
"0.58319986",
"0.5813685",
"0.57404757",
"0.57335687",
"0.569859",
"0.5678837",
"0.56506705",
"0.5638344",
"0.5633303",
"0.5633174",
"0.5632757",
"0.56315583",
"0.5628829",
"0.5613022",
"0.5611885",
"0.56067866",
"0.5588472",
"0.5580168",
"0.55747974",
"0.5568127",
"0.55485237",
"0.5545134",
"0.5541898",
"0.5516261",
"0.5512255",
"0.55055916",
"0.548985",
"0.54793364",
"0.5477556",
"0.54775393",
"0.5463811",
"0.5461136",
"0.54563177",
"0.5453902",
"0.54377806",
"0.5429451",
"0.54260564",
"0.54042125",
"0.53966826",
"0.5393626",
"0.539092",
"0.5390348",
"0.5389411",
"0.5386057",
"0.5379539",
"0.5372527",
"0.5371206",
"0.5371162",
"0.5358145",
"0.5357259",
"0.535471",
"0.53477377",
"0.53471065",
"0.5342176",
"0.5340286",
"0.5336968",
"0.53354067",
"0.5331291",
"0.53289944",
"0.5327274",
"0.53209776",
"0.53202164",
"0.53179973",
"0.53178346",
"0.5313098",
"0.53102005",
"0.5306226",
"0.53061664",
"0.53023046",
"0.5296087",
"0.5281037",
"0.5280972",
"0.52759033",
"0.5266294",
"0.5266132",
"0.5253803",
"0.5248025",
"0.5246761",
"0.5234919",
"0.52336884",
"0.52329016",
"0.52316064",
"0.52268165",
"0.52267224",
"0.52262217",
"0.5219545",
"0.5217922",
"0.52174616",
"0.52148116",
"0.5210937",
"0.5206927",
"0.52059346",
"0.52053833",
"0.5202709",
"0.5195403",
"0.51832634",
"0.51808316",
"0.5175866"
] |
0.0
|
-1
|
Got last known location. In some rare situations this can be null.
|
@Override
public void onSuccess(Location location) {
if (location != null) {
Toast.makeText(PassengerLocationActivity.this,"An Ambulance request had been made ! ",Toast.LENGTH_SHORT).show();
requestAmbulance.put("username", ParseUser.getCurrentUser().getUsername());
ParseGeoPoint userLocation = new ParseGeoPoint(location.getLatitude(),location.getLongitude());
requestAmbulance.put("passengerLocation",userLocation);
requestAmbulance.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
if (e == null){
Toast.makeText(PassengerLocationActivity.this,"An Ambulance is on the way ! ",Toast.LENGTH_SHORT).show();
}
else
Toast.makeText(PassengerLocationActivity.this,"Error occurred - could not save!",Toast.LENGTH_SHORT).show();
}
});
}
else
Toast.makeText(PassengerLocationActivity.this,"Error occurred!Please try again",Toast.LENGTH_SHORT).show();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private Location getLastKnownLocation(){\n \t \tLocation loc = LocationUtil.getBestLastKnowLocation(ctx);\t\n \t \tStatus.getCurrentStatus().setLocation(loc);\t\n \t \treturn loc;\n \t}",
"public Location getLastLocation() {\n\t\tif (mLocationClient.isConnected()) {\n\t\t\treturn mLocationClient.getLastLocation();\n\t\t}\n\t\treturn null;\n\t}",
"public static Location getLatestLocation(){\n if(latestLocation!= null) {\n return latestLocation;\n }else{\n return null;\n }\n }",
"private Location getLastLocation() {\n try {\n return LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n } catch (SecurityException e) {\n e.printStackTrace();\n return null;\n }\n }",
"@SuppressLint(\"MissingPermission\")//Assumes that is checked before calling\n private Location getLastLocation (){\n List<String> providers = mLocationManager.getProviders(true);\n Location loc=null;\n for (int i=0; i<providers.size() && loc==null;i++){\n loc = mLocationManager.getLastKnownLocation(providers.get(i));\n }\n return loc;\n }",
"public abstract Location getLastLocation();",
"public Location getLocation() {\n return getLocation(null);\n }",
"public String getLastLocation() {\n return lastLocation;\n }",
"public Location getLocation() {\n\n if (isPermissionGranted()) {\n try\n {\n\n lastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(googleApiClient);\n\n Log.e(TAG, \"getLocation: LAST KNOWN LOCATION\" + (lastKnownLocation==null));\n return lastKnownLocation;\n }\n catch (SecurityException e)\n {\n e.printStackTrace();\n }\n }\n\n return null;\n\n }",
"@SuppressLint(\"MissingPermission\")\n public Location getLastLocation() {\n this.context=context;\n if (isPermissionGranted()) {\n PrintLog.d(TAG, \"getLastLocation ..............: \");\n fusedLocationProviderClient.getLastLocation()\n .addOnCompleteListener(context, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() != null) {\n mLastLocation = task.getResult();\n String result = \"Last known Location Latitude is \" +\n mLastLocation.getLatitude() + \"\\n\" +\n \"Last known longitude Longitude is \" + mLastLocation.getLongitude();\n PrintLog.d(TAG, \"getLastLocation ..............: \" + result);\n\n if (mLastLocation != null) {\n mLastLocation = mLastLocation;\n locationFetchedCallback.onLocationFetched(mLastLocation);\n }\n\n } else {\n callCurrentLocation();\n PrintLog.d(TAG, \"No Last known location found. Try current location..!\");\n }\n }\n });\n\n\n return mLastLocation;\n } else\n checkpermission();\n return null;\n }",
"public Location getLocation() {\n try {\n initLocation();\n Location location = locationManager.getLastKnownLocation(locationProviderName);\n if (location == null) {\n Logger.e(\"Cannot obtain location from provider \" + locationProviderName);\n return new Location(\"unknown\");\n }\n return location;\n } catch (IllegalArgumentException e) {\n Logger.e(\"Cannot obtain location\", e);\n return new Location(\"unknown\");\n }\n }",
"public Location getLastKnownLocation(String provider){\n\t\tif(provider.equals(GPS_PROVIDER)){\n\t\t\treturn locyNavigator.getLocation();\n\t\t}else\n\t\t\treturn null;\n\n\t}",
"@SuppressWarnings(\"MissingPermission\")\n private void getLastLocation() {\n mFusedLocationClient.getLastLocation()\n .addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() != null) {\n mLastLocation = task.getResult();\n getWeather(mLastLocation);\n } else {\n Log.w(TAG, \"getLastLocation:exception\", task.getException());\n showSnackbar(getString(R.string.no_location_detected));\n }\n }\n });\n }",
"private void fetchLastLocation() {\n try {\n FusedLocationProviderClient fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n //get last known location of device\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n //store current location\n currentLocation = location;\n Toast.makeText(MapsActivity.this, currentLocation.getLatitude() + \" \" + currentLocation.getLongitude(), Toast.LENGTH_SHORT).show();\n // Obtain the SupportMapFragment\n supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.fragment_content);\n // Attach OnMapReadyCallback listener using getMapAsync(OnMapReadyCallback)\n // This listener notified when the map is ready by invoking onMapReady along with a GoogleMap object.\n supportMapFragment.getMapAsync(MapsActivity.this);\n } else {\n Toast.makeText(MapsActivity.this, \"No Location recorded\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"public URI getLocation()\r\n/* 293: */ {\r\n/* 294:441 */ String value = getFirst(\"Location\");\r\n/* 295:442 */ return value != null ? URI.create(value) : null;\r\n/* 296: */ }",
"public google.maps.fleetengine.v1.VehicleLocation getLastLocation() {\n if (lastLocationBuilder_ == null) {\n return lastLocation_ == null ? google.maps.fleetengine.v1.VehicleLocation.getDefaultInstance() : lastLocation_;\n } else {\n return lastLocationBuilder_.getMessage();\n }\n }",
"@java.lang.Override\n public google.maps.fleetengine.v1.VehicleLocation getLastLocation() {\n return lastLocation_ == null ? google.maps.fleetengine.v1.VehicleLocation.getDefaultInstance() : lastLocation_;\n }",
"public Location getLastLocation() {\n return LocationServices.FusedLocationApi.getLastLocation(\n mGoogleApiClient);\n }",
"@Nullable\n public Location getCurrentLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return null;\n }\n LocationManager mLocationManager = (LocationManager) getActivity().getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n List<String> providers = mLocationManager.getProviders(true);\n Location bestLocation = null;\n for (String provider : providers) {\n Location l = mLocationManager.getLastKnownLocation(provider);\n if (l == null) {\n continue;\n }\n if (bestLocation == null || l.getAccuracy() < bestLocation.getAccuracy()) {\n // Found best last known location: %s\", l);\n bestLocation = l;\n }\n }\n return bestLocation;\n }",
"public void getLastLocation() {\n FusedLocationProviderClient locationClient = getFusedLocationProviderClient(this);\r\n\r\n locationClient.getLastLocation()\r\n .addOnSuccessListener(new OnSuccessListener<Location>() {\r\n @Override\r\n public void onSuccess(Location location) {\r\n // GPS location can be null if GPS is switched off\r\n if (location != null) {\r\n onLocationChanged(location);\r\n }\r\n }\r\n })\r\n .addOnFailureListener(new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\r\n e.printStackTrace();\r\n }\r\n });\r\n }",
"public Location getCurrentLocation();",
"public Location checkLastLocationClicked()\n {\n Location loc = lastLocationClicked;\n lastLocationClicked = null;\n return loc;\n }",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"@SuppressWarnings(\"unused\")\n Location getCurrentLocation();",
"private void getLastKnownLocation(final OnResultListener callback) {\n try {\n getLocationProvider().getLastLocation()\n .addOnSuccessListener(location -> callback.onResult(location))\n .addOnCanceledListener(() -> callback.onResult(null))\n .addOnFailureListener(exception -> callback.onResult(null));\n } catch (SecurityException e) {\n callback.onResult(null);\n }\n }",
"public double getLastLatitude(){\n if(location != null){\n lastLatitude = location.getLatitude();\n }else{\n lastLatitude = longitude;\n }\n return lastLatitude;\n }",
"@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}",
"@SuppressWarnings({\"MissingPermission\"})\n public void getLastLocation() {\n if (isLocationEnabled()) {\n mFusedLocationClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // GPS location can be null if GPS is switched off\n if (location != null) {\n Toast.makeText(getContext(), \"location: \" + location, Toast.LENGTH_LONG).show();\n EventBus.getDefault().post(new LocationEvent(location));\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\n e.printStackTrace();\n }\n });\n }\n }",
"public void getLastLocation() {\n FusedLocationProviderClient locationClient = getFusedLocationProviderClient(this);\n\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n Toast.makeText(this, \"Permissions Not Granted \", Toast.LENGTH_SHORT).show();\n // return;\n }\n locationClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // GPS location can be null if GPS is switched off\n if (location != null) {\n onLocationChanged(location);\n findNearbyHospitals(location);\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\n e.printStackTrace();\n }\n });\n }",
"private void getLastKnownLocation()\n {\n Log.d(\"TAG\", \"getLastKnownLocation()\");\n if ( checkPermission() )\n {\n lastLocation = LocationServices.FusedLocationApi.getLastLocation(googleApiClient);\n if ( lastLocation != null )\n {\n Log.i(\"TAG\", \"LasKnown location. \" + \"Long: \" + lastLocation.getLongitude() + \" | Lat: \" + lastLocation.getLatitude());\n writeLastLocation();\n startLocationUpdates();\n }\n else\n {\n Log.w(\"TAG\", \"No location retrieved yet\");\n startLocationUpdates();\n }\n }\n else askPermission();\n }",
"private void getLastKnownLocation() {\n Log.d(TAG, \"getLastKnownLocation()\");\n if (checkPermission()) {\n if (lastLocation != null) {\n Log.i(TAG, \"LasKnown location. \" +\n \"Long: \" + lastLocation.getLongitude() +\n \" | Lat: \" + lastLocation.getLatitude());\n\n markerLocation(new LatLng(lastLocation.getLatitude(), lastLocation.getLongitude()));\n\n } else {\n Log.w(TAG, \"No location retrieved yet\");\n }\n } else askPermission();\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public Location getCurrentLocation() {\n final LocationClient locationClient = getLocationClient();\n return locationClient == null ? null: locationClient.getCurrentLocation();\n }",
"private Location getLastKnownLocation(LocationManager mLocationManager) {\n List<String> providers = mLocationManager.getProviders(true);\n Location bestLocation = null;\n for (String provider : providers) {\n Location l = mLocationManager.getLastKnownLocation(provider);\n if (l == null) {\n continue;\n }\n if (bestLocation == null || l.getAccuracy() < bestLocation.getAccuracy()) {\n // Found best last known location: %s\", l);\n bestLocation = l;\n }\n }\n return bestLocation;\n }",
"public BwLocation getLocation() {\n if (location == null) {\n location = BwLocation.makeLocation();\n }\n\n return location;\n }",
"public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}",
"public int getLocation() {\n\t\treturn 0;\n\t}",
"java.lang.String getLocation();",
"com.google.ads.googleads.v14.common.LocationInfo getLocation();",
"public Location getLocation()\n\t{\n\t\treturn l;\n\t}",
"public final Location getLocation() {\n\t\treturn location.clone();\n\t}",
"public Location getLocation() {\n\t\treturn loc;\n\t}",
"String getLocation();",
"String getLocation();",
"String getLocation();",
"public int getLocation() {\n\t\tint location=super.getLocation();\n\t\treturn location;\n\t}",
"public final String getLocation() {\n return location;\n }",
"public int getLocation()\r\n {\n }",
"public int getCurrentLocation() {\n\t\treturn currentLocation;\n\t}",
"public Location getLocation() \n\t{\n\t\treturn location;\n\t}",
"private void setLastLocation() {\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n // Permission has already been granted\n mFusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n lastLatitude = Double.toString(location.getLatitude());\n lastLongitude = Double.toString(location.getLongitude());\n //lastLocation = Double.toString(location.getLatitude()) + \",\" + Double.toString(location.getLongitude()) ;\n //String b = lastLocation;\n // Get into right format\n // Logic to handle location object\n }\n }\n });\n }\n }",
"public int getLocation()\r\n {\r\n return location;\r\n }",
"public Location getCurrentLocation()\n\t{\n\t\treturn currentLocation;\n\t}",
"public String getLocation() {\r\n\t\treturn location; \r\n\t}",
"public java.lang.String getLocation() {\n return location;\n }",
"private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n showCurrentPlace();\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"public java.lang.String getLocation() {\n return location;\n }",
"public final Coord getLocation() {\n return location;\n }",
"int getLocation() throws IllegalStateException;",
"private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = location;\n Log.d(TAG, \"Latitude: \" + mLastKnownLocation.getLatitude());\n Log.d(TAG, \"Longitude: \" + mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n }\n\n getCurrentPlaceLikelihoods();\n }\n });\n }\n } catch (Exception e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"SiteLocation getLocatedAt();",
"public String getLocation() {\r\n\t\treturn location;\r\n\t}",
"public String getLocation() {\r\n return location;\r\n }",
"@Nullable\n @Override\n public String getLocationString() {\n return null;\n }",
"public Location getLocation() {\n return loc;\n }",
"public Location getLocation() {\n return loc;\n }",
"private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n currLatLng = new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n destinationPoint.set(0,currLatLng);\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n currLatLng = mDefaultLocation;\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"public Location getCurrentLocation() { return entity.getLocation(); }",
"public String getLocation()\n {\n return location;\n }",
"public Location getLocation() {\r\n\t\treturn location;\r\n\t}",
"public Location getLocation() {\r\n\t\treturn location;\r\n\t}",
"public Location getLocation ( ) {\n\t\treturn extract ( handle -> handle.getLocation ( ) );\n\t}",
"public java.lang.String getLocation() {\n java.lang.Object ref = location_;\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 location_ = s;\n return s;\n }\n }",
"public String getLocation() {\r\n return location;\r\n }",
"public java.lang.String getLocation() {\n java.lang.Object ref = location_;\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 location_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getLocation() {\n\t\treturn location;\n\t}",
"public String getLocation() {\n\t\treturn mLocation;\n\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}",
"private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(mActivity, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"public Location getLocation() {\n\t\treturn location;\n\t}",
"@java.lang.Override\n public google.maps.fleetengine.v1.VehicleLocationOrBuilder getLastLocationOrBuilder() {\n return getLastLocation();\n }",
"public java.lang.String getPreferredlocation() {\n return preferredlocation;\n }",
"public String getLocation() {\n return location;\n }",
"public Location getLocation() {\n\t\treturn location.clone();\n\t}",
"public String getLocation() { return location; }",
"public String getLocation() { return location; }",
"private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = location;\n Log.d(TAG, \"Latitude: \" + mLastKnownLocation.getLatitude());\n Log.d(TAG, \"Longitude: \" + mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n }\n\n }\n });\n }\n } catch (Exception e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"@Pure\n @NonNull\n public Location getLocation() {\n return this.location;\n }",
"public synchronized Location m6501d() throws C0918i {\n Location lastKnownLocation;\n m6487e();\n lastKnownLocation = m6485a(true).getLastKnownLocation(m6503h());\n if (lastKnownLocation == null) {\n try {\n throw new C0918i(C0745b.m3222b(f2486z[10], new String[0]));\n } catch (C0918i e) {\n throw e;\n }\n }\n return lastKnownLocation;\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n mLastLocation = location;\n Log.wtf(\"-GPS\", \"getLocation 169 : \" + mLastLocation.getLatitude() + \",\" + mLastLocation.getLongitude());\n\n } else {\n Log.wtf(\"-GPS\", \"getLocation 171 : \" + mLastLocation);\n\n }\n }",
"@SuppressLint(\"MissingPermission\")\n private void getLastLocation() {\n if (checkPermissions()) {\n\n // check if location is enabled\n if (isLocationEnabled()) {\n\n // getting last\n // location from\n // FusedLocationClient\n // object\n mFusedLocationClient.getLastLocation().addOnCompleteListener(new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n Location location = task.getResult();\n if (location == null) {\n requestNewLocationData();\n } else {\n setUserCurrentLocation(location);\n }\n }\n });\n } else {\n Toast.makeText(this, \"Please turn on\" + \" your location...\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n } else {\n // if permissions aren't available,\n // request for permissions\n requestPermissions();\n }\n }",
"public String getCurrentLocation() {\n return currentLocation;\n }",
"public static MapLocation myLocation() {\n return RC.getLocation();\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }"
] |
[
"0.82976794",
"0.79686725",
"0.78017765",
"0.7698573",
"0.76815736",
"0.7583506",
"0.7569769",
"0.7552742",
"0.7535778",
"0.7415372",
"0.7393789",
"0.72912264",
"0.72161716",
"0.72039974",
"0.7203695",
"0.72034955",
"0.71807975",
"0.7135884",
"0.7133322",
"0.70981014",
"0.7094547",
"0.7038855",
"0.7038729",
"0.7038729",
"0.7038729",
"0.7038729",
"0.7028972",
"0.7023372",
"0.6981743",
"0.6976442",
"0.6976442",
"0.69570106",
"0.6934746",
"0.69224215",
"0.69124985",
"0.69037473",
"0.6885353",
"0.6847438",
"0.6837216",
"0.683276",
"0.68302375",
"0.67981976",
"0.67879266",
"0.67834234",
"0.6782452",
"0.6767891",
"0.6767891",
"0.6767891",
"0.6760146",
"0.6755195",
"0.6746118",
"0.6745748",
"0.67406785",
"0.67403936",
"0.67399234",
"0.67366517",
"0.6733135",
"0.6724258",
"0.6709403",
"0.67085296",
"0.6690725",
"0.6683401",
"0.66820717",
"0.66810656",
"0.6679512",
"0.6666133",
"0.66633594",
"0.6658285",
"0.6658285",
"0.6657701",
"0.6651759",
"0.6647143",
"0.66442096",
"0.66442096",
"0.6638781",
"0.66359633",
"0.6626696",
"0.6625577",
"0.6625315",
"0.6625245",
"0.6624002",
"0.6622839",
"0.66153663",
"0.6613298",
"0.66119957",
"0.661067",
"0.66101044",
"0.65934163",
"0.65934163",
"0.658906",
"0.65864265",
"0.6583255",
"0.6576375",
"0.6576295",
"0.65755165",
"0.65628517",
"0.65617245",
"0.65617245",
"0.65617245",
"0.65617245",
"0.65617245"
] |
0.0
|
-1
|
The fifth and last state of a poker match is the river.
|
River(Match match) {
this.match = match;
availableBet = new ArrayList<>();
availableBet.add(Bet.CALL);
availableBet.add(Bet.FOLD);
availableBet.add(Bet.RAISE);
availableBet.add(Bet.CHECK);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"River(Match match) {\r\n this.match = match;\r\n availableBet = new ArrayList<>();\r\n availableBet.add(Bet.CHECK);\r\n availableBet.add(Bet.FOLD);\r\n availableBet.add(Bet.RAISE);\r\n availableBet.add(Bet.ALLIN);\r\n }",
"void matchEnd(boolean winner);",
"private int fourOfaKind() {\n\t\tif (hand[1].getValueIndex() == hand[2].getValueIndex() && hand[2].getValueIndex() == hand[3].getValueIndex()) {\n\t\t\tif (hand[0].getValueIndex() == hand[1].getValueIndex()\n\t\t\t\t\t|| hand[4].getValueIndex() == hand[3].getValueIndex()) {\n\t\t\t\tresult.setPrimaryValuePos(hand[3].getValueIndex());\n\t\t\t\t\n\t\t\t\tif( result.getPrimaryValuePos() == hand[4].getValueIndex()) {\n\t\t\t\t\tresult.setSecondaryValuePos(hand[0].getValueIndex());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tresult.setSecondaryValuePos(hand[4].getValueIndex());\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public boolean sameState(State s){\n\t\tint i = s.getHound1();\n\t\tint j = s.getHound2();\n\t\tint k = s.getHound3();\n\t\tint hare = s.getHare();\n\t\tif(hare==r){\n\t\t\tif((i==h1||i==h2||i==h3)&&(j==h1||j==h2||j==h3)&&(k==h1||k==h2||k==h3)){\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }",
"public int fullHouse() {\n\n for (int i = 0; i < this.allCards.length - 4; i++) {//was 3\n int thisValue = this.allCards[i].value;\n if (thisValue == this.allCards[i + 1].value && thisValue == this.allCards[i + 2].value && this.allCards[i + 3].value == this.allCards[i + 4].value) {\n return thisValue;\n }\n if (thisValue == this.allCards[i + 1].value && this.allCards[i + 2].value == this.allCards[i + 3].value && this.allCards[i + 3].value == this.allCards[i + 4].value) {\n return this.allCards[i + 2].value;\n }\n }\n return -1;\n }",
"public void evaluateHand(){only public for testing\n //hand types will be\n //1 royal flush\n //2 straight flush\n //3 four of a kind\n //4 full house\n //5 flush\n //6 straight\n //7 three of a kind\n //8 two pair\n //9 pair\n //10 high card\n //hand secondary values will have to some how account for\n //the lead card of a flush or straight or the bigger pair\n //\n HandType = 0;\n\n //----------checking flush----------\n boolean flush = true;//will flip the vriable when proven wrong\n //if Hand.suites all equal\n for(Card c : Hand) {\n if (!c.getSuite().contains(Hand[0].getSuite())) {\n flush = false;\n }\n }\n //--Handtype = 5//flush\n if(flush){\n HandType=5;\n }\n\n //----------checking pair, two pair, boat,three of a kind, four of a kind----------\n int countmatches=0;\n HashMap<Integer, ArrayList<Card>> maskd = new HashMap<>();\n int[] mask = new int[5];\n int currentmask=1;\n maskd.put(0, new ArrayList<>());\n mask[0]=0;\n maskd.get(0).add(this.Hand[0]);\n //if any two hand.value equal\n for(int comp = 0; comp<Hand.length;comp++){//comparitor\n for(int check = comp+1; check<Hand.length;check++) {//checker\n //System.out.print(\"{\"+comp+check+\"}\");\n if(0==Hand[comp].compareTo(Hand[check])){\n //System.out.println(\"pair\"+Hand[comp]+Hand[check]);\n countmatches++;\n /*if(pairprimary==0&&!(pairprimary==Hand[check].getValue())){\n pairprimary=Hand[check].getValue();\n }else if(pairsecondary==0){\n pairsecondary=Hand[check].getValue();\n }//this wont work for boats\n */\n //create mask?\n if(mask[comp]==0){\n mask[comp]=currentmask;\n maskd.put(currentmask,new ArrayList<>());\n maskd.get(currentmask).add(this.Hand[comp]);\n currentmask++;\n if(maskd.get(0).contains(this.Hand[comp])){\n maskd.get(0).remove(this.Hand[comp]);\n }\n }\n mask[check]=mask[comp];\n if(!maskd.get(mask[comp]).contains(this.Hand[check])) {\n if(maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).remove(this.Hand[check]);\n maskd.get(mask[comp]).add(this.Hand[check]);\n }\n continue;\n }\n if(!maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).add(this.Hand[check]);\n }\n }\n\n //for(int m:maskd.keySet())\n // System.out.print(\"\"+m+\":\"+maskd.get(m));\n //System.out.println(\"\");\n\n if(HandType==0)\n switch (countmatches){ //basically i'm counting the collisions\n case 1: HandType=9;break;//one pair\n case 2: HandType=8;break;//two pair\n case 3: HandType=7;break;//triple\n case 4: HandType=4;break;//boat\n case 6: HandType=3;break;//four of a kind\n case 10: HandType=-1;break;//five of a kind\n }//reorder cards by mask?\n if(countmatches>0){\n Card[] newhand = new Card[5];\n int bigger = 0;\n if(currentmask==3) {//two pair boat\n //two pair\n if (maskd.get(1).get(0).getValue()\n > maskd.get(2).get(0).getValue()) {\n bigger = 1;\n } else {\n bigger = 2;\n }\n\n //boat\n if (maskd.get(1).size() == 3) {\n bigger = 1;\n }\n if (maskd.get(2).size() == 3) {\n bigger = 2;\n }\n }else {\n //one pair???\n bigger = 1;\n }\n\n for(int i = 0; i<5;i++){\n //if(maskd.containsKey(bigger)) {\n if(!maskd.get(bigger).isEmpty()) {\n newhand[i] = maskd.get(bigger).get(0);\n //if (maskd.get(bigger).size() > 0) {\n maskd.get(bigger).remove(0);\n //} else {\n // bigger = Math.abs(bigger - 3);\n //}\n }else{\n if(maskd.containsKey(Math.abs(bigger-3))){\n if(!maskd.get(Math.abs(bigger-3)).isEmpty()){\n bigger = Math.abs(bigger-3);\n }else{\n bigger = 0;\n }\n }else{\n bigger = 0;\n }\n i--;\n }\n //}\n\n }//end for loop\n\n //end pair bits\n\n //System.out.println(newhand);\n this.Hand=newhand;\n }//end reshuffle hand if statement\n //----------checking for straight----------\n //if first card is ace and second card is a 5, treat ace as one\n if(Hand[0].getValue()==14&&Hand[1].getValue()==5) {\n Hand[0] = new Card(\"Ace\", Hand[0].getSuite(), 1);\n //Hand[0].Value=1;\n this.sortHand();\n this.flipHand();\n }\n //go through hand and see if all 5 values are consecutive\n int n = Hand[0].getValue();\n boolean straight = true;\n for(int i = 1;i<Hand.length; i++){\n n--;\n if(!(Hand[i].getValue()==n)){\n straight=false;\n }\n }\n if(straight){\n //if above true\n //--if handtype = 5\n if(HandType==5) {\n //----if card1 is ace\n if (Hand[0].getValue() == 14) {\n //------handtype = 1 //royal flush\n HandType = 1;\n } else {\n //----else\n HandType=2;\n //------handtype = 2 //straight flush\n }\n }else {\n //--else //not a flush\n HandType=6;\n //----handtype = 6 //straight\n }\n }\n\n //----------checking high card----------\n //if handtype = 0\n if(HandType==0) {\n HandType=10;\n //--hand card = 10\n }\n }",
"public boolean checkIf_one_cardAwayFromStraight() {\n boolean oneAway = false;\n //CASE 1: Four in a row and missing one _ X X X X _ ---> open ended straight draw \n if (numSequentially == 4 && lowestValOfNumSequentially >= 2 && lowestValOfNumSequentially <= 10) {// _ 2 3 4 5 _, we can get ANY ace or ANY 6\n oneAway = true;\n numOuts += 8;\n bestHandFromCardsNickNameString = \"Open-Ended Straight Draw\";\n } else if (numSequentially == 4) {// A 2 3 4// any 5\n oneAway = true;\n numOuts += 4;\n bestHandFromCardsNickNameString = \"Single-Sided Straight Draw\";\n } else if (numSequentially == 3) {// CASE 2: 3 in a row and missing one between so either X _ X X X OR OR X X X _ X\n if (handContainsValueZ(lowestValOfNumSequentially - 2) || handContainsValueZ(lowestValOfNumSequentially + 4)) {\n numOuts += 4;\n oneAway = true;\n bestHandFromCardsNickNameString = \"Gutshot Straight Draw\";\n }\n } else if (numSequentially == 2) {//lowest value of num sequentially will be the higher pair X X _ K X (will be k)\n if (handContainsValueZ(lowestValOfNumSequentially - 2) && handContainsValueZ(lowestValOfNumSequentially - 3)) {\n numOuts += 4;\n oneAway = true;\n bestHandFromCardsNickNameString = \"Bulls-Eye Gutshot Straight Draw\";\n }\n\n }\n\n return oneAway;\n }",
"public int gameState() {\n \tboolean check = isCheck(turn);\n \t\n \t//change this code to be some sort of checkmate detection\n \tif(check) {\n \t\t//we need to check whether there is a legal move that puts the king out of check\n \t\t//we need to loop through all pieces of the same color as the turn and make all legal moves\n \t\t//then after each move, check whether the king is still in check\n \t\t\n \t\t//first generate a list of all pieces for the turn color\n \t\tArrayList<Piece> pieces = getPieces(turn);\n \t\t\n \t\tboolean freedom;\n \t\t\n \t\t//now for each piece, check whether moving that piece can get the king out of check\n \t\tfor(int i = 0; i < pieces.size(); i++) {\n \t\t\tfreedom = simulate(pieces.get(i));\n \t\t\tif(freedom) {\n \t \t\tupdateCheckMove(false);\n \t \t\tSystem.out.println(\"Check on \" + turn + \" King!\");\n \t\t\t\treturn 2; //if the king can move, then the game isn't over yet\n \t\t\t}\n \t\t}\n \t\t\n \t\t//the game is over if we reach this far, so we can assume checkmate\n \t\t//resignation logic will probably be specific to Display class\n \t\t\n \t\tupdateCheckMove(true);\n \t\t\n \t\tif(turn == PieceColor.White) return -1; //black win if white king in check and can't move\n \t\tif(turn == PieceColor.Black) return 1;\n \t}\n \t\n \t//if all of these fail, the game isn't over yet\n \treturn 2;\n }",
"@Test\n public void fiveRankHandChooserHighCardTest() {\n PokerHand hand = new PokerHand();\n hand.addCard(new Card(Card.Rank.ACE, Card.Suit.HEARTS));\n hand.addCard(new Card(Card.Rank.QUEEN, Card.Suit.HEARTS));\n hand.addCard(new Card(Card.Rank.EIGHT, Card.Suit.SPADES));\n hand.addCard(new Card(Card.Rank.SIX, Card.Suit.HEARTS));\n hand.addCard(new Card(Card.Rank.TEN, Card.Suit.DIAMONDS));\n\n PokerHand.HandType result = hand.fiveRankHandChooser();\n\n Assert.assertTrue(result == PokerHand.HandType.HIGHCARD);\n }",
"public boolean isFourOfAKind(){\n List<PokerCard> subList;\r\n \r\n //First possibility: first four cards are the same value\r\n subList = cards.subList(0, cards.size()-1);\r\n if(haveSameValue(subList)){\r\n handValue = subList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: last four cards are the same value\r\n subList = cards.subList(1, cards.size());\r\n if(haveSameValue(subList)){\r\n handValue = subList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n return false;\r\n }",
"@Override\n\tpublic boolean goalTest(String currentState) {\n\t\tString[] imfAll = currentState.split(\";\")[3].split(\"-\");\n\t\tString max_cap = currentState.split(\";\")[0].split(\",\")[2];\n\t\tString curr_cap = currentState.split(\";\")[4];\n\n\t\t// System.out.println(Arrays.toString(imfAll));\n\t\tint numImf = imfAll.length;\n\t\tfor (int i = 0; i < numImf; i++) {\n\t\t\tString[] splitted = imfAll[i].split(\",\");\n\t\t\t// System.out.println(Arrays.toString(splitted));\n\t\t\t// System.out.println(Integer.parseInt(splitted[2]));\n\t\t\tif (splitted[3].equals(\"F\")) {\n\t\t\t\t// System.out.println(\"ALO\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(\"Final\");\n//\t\tSystem.out.println(currentState);\n\t\tif (max_cap.equals(curr_cap)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t}",
"private static int rightScore(char piece, State state, int row, int col) {\n\t\tif(col != state.getGrid().length-1 && state.getGrid()[row][col+1] == piece) {\n\t\t\treturn NEXT_TO;\n\t\t}\n\t\telse {\n\t\t\treturn ZERO;\n\t\t}\n\t}",
"public void findBestTwoCardHandName() {\n if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(14, 'x', 14) == true) {//aces, any suit\n bestHandFromCardsNickNameString = \"Pocket Rockets\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(13, 'y', 14) == true) {//king, then ace, same suit\n bestHandFromCardsNickNameString = \"Big Slick in a Suit\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(13, 'x', 14) == true) {\n bestHandFromCardsNickNameString = \"Full Auto\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(8, 'x', 14) == true) {\n bestHandFromCardsNickNameString = \"Dead Man's Hand\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(13, 'x', 13) == true) {\n bestHandFromCardsNickNameString = \"Cowboys King Kong\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(9, 'x', 14) == true) {\n bestHandFromCardsNickNameString = \"The Dog\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(12, 'x', 12) == true) {\n bestHandFromCardsNickNameString = \"Ladies\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(3, 'x', 12) == true) {\n bestHandFromCardsNickNameString = \"The Waiter\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(9, 'x', 9) == true) {\n bestHandFromCardsNickNameString = \"A German Dime\";\n } else if (allCards[0].value == allCards[1].value) {\n bestHandFromCardsNickNameString = \"Pocket Pair\";\n } else if (allCards[0].suit == allCards[1].suit) {\n bestHandFromCardsNickNameString = \"Flush Rush\";\n } else if (allCards[0].value == allCards[1].value + 1 || allCards[0].value + 1 == allCards[1].value || (allCards[0].value == 14 && allCards[1].value == 2) || (allCards[0].value == 2 && allCards[1].value == 14) ) {\n bestHandFromCardsNickNameString = \"Straight Bait\";\n } else if (allCards[0].value == 14 || allCards[1].value == 14) {\n bestHandFromCardsNickNameString = \"A Spike\";\n } else if (allCards[0].value == 13 || allCards[1].value == 13) {\n bestHandFromCardsNickNameString = \"A Dame\";\n } else if (allCards[0].value == 12 || allCards[1].value == 12) {\n bestHandFromCardsNickNameString = \"A Jackal\";\n } else if (allCards[0].value == 11 || allCards[1].value == 11) {\n bestHandFromCardsNickNameString = \"A Fishhook\";\n } else if (allCards[0].value == 10 || allCards[1].value == 10) {\n bestHandFromCardsNickNameString = \"A Sawbuck\";\n } else if (allCards[0].value == 9 || allCards[1].value == 9) {\n bestHandFromCardsNickNameString = \"Nina Ross\";\n } else {\n bestHandFromCardsNickNameString = \"Down on Your Luck\";\n }\n \n System.out.println(\"findBestTwoCardHandName---->>> \" + bestHandFromCardsNickNameString);\n\n }",
"public State[] getSuccessors(State curr) {\n State [] successors = new State [6];\r\n \r\n if(currjug1!=0) {\r\n //e1\r\n successors[0] = new State(capjug1, capjug2, 0, currjug2, goal,depth);\r\n successors[0].parentPt = curr;\r\n successors[0].depth = curr.depth+1;\r\n //p12\r\n int pour = pour(currjug1, currjug2, capjug2);\r\n successors[1] = new State(capjug1, capjug2, currjug1-pour, currjug2+pour, goal,depth);\r\n successors[1].parentPt = curr;\r\n successors[1].depth = curr.depth+1;\r\n }\r\n \r\n if(currjug2!=0) {\r\n //e2\r\n successors[2] = new State(capjug1, capjug2, currjug1, 0, goal,depth);\r\n successors[2].parentPt = curr;\r\n successors[2].depth = curr.depth+1;\r\n }\r\n \r\n //f2\r\n successors[3] = new State(capjug1, capjug2, currjug1, capjug2, goal,depth);\r\n successors[3].parentPt = curr;\r\n successors[3].depth = curr.depth+1;\r\n \r\n if(currjug2!=0) {\r\n //p21\r\n int pour = pour(currjug2, currjug1, capjug1);\r\n successors[4] = new State(capjug1, capjug2, currjug1+pour, currjug2-pour, goal,depth);\r\n successors[4].parentPt = curr;\r\n successors[4].depth = curr.depth+1;\r\n }\r\n \r\n //f1\r\n successors[5] = new State(capjug1, capjug2, capjug1, currjug2, goal,depth);\r\n successors[5].parentPt = curr;\r\n successors[5].depth = curr.depth+1;\r\n \r\n return successors;\r\n }",
"@Override\r\n\tpublic ArrayList<MatchPO> getLatest5Matches(PlayerPO player) {\n\t\tArrayList<MatchPO> allMatches = player.getMatches(Config.LASTEST_SEASON) ;\r\n\t\tif(allMatches.size()<5){\r\n\t return allMatches ;\r\n\t\t}\r\n\t\tArrayList<MatchPO> latest5Matches = new ArrayList<>(allMatches.subList(allMatches.size()-5, \r\n\t\t\t\tallMatches.size())) ;\r\n\t\treturn latest5Matches ;\r\n\t}",
"public boolean winner(){\n\t\treturn goals1 > goals2;\n\t}",
"@Override\n\tLiving next(Neighbors n) {\n\t\tint rabbit=0;\n\t\tint grass=0;\n\t\tint fox = 0;\n\t\tfor (int i=0;i<=7;i++){\n\t\t\tif (n.array[i] == 'R')\n\t\t\t\trabbit++;\n\t\t\telse if (n.array[i] == 'X')\n\t\t\t\tfox++;\n\t\t\telse if (n.array[i] == 'G')\n\t\t\t\tgrass++;\n\t\t}\n\t\tif (grass == 0 || fox>=rabbit+1){\n\t\t\treturn new Empty();\n\t\t}\n\t\t\n\t\telse\n\t\t\treturn new Rabbit();\n\t\t\n\t}",
"public boolean isPair(){\n \r\n List<PokerCard> pair;\r\n remainingCardValues = new ArrayList<>();\r\n \r\n //First possibility: first two cards\r\n pair = cards.subList(0, 2);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(2).getValue()); \r\n \r\n return true;\r\n }\r\n \r\n //Second possibility: cards 2 and 3\r\n pair = cards.subList(1, 3);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Third possibility: cards 3 and 4\r\n pair = cards.subList(2, 4);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Fourth possibility: last two cards\r\n pair = cards.subList(3, 5);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(2).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n return false;\r\n }",
"private HandRankingValue checkAbovePair() {\n HandRankingValue aboveTrips = checkAboveTrips();\n if(aboveTrips != null)\n return aboveTrips;\n else {\n if(validTwoPair())\n return HandRankingValue.TWOPAIR;\n makePair();\n return HandRankingValue.PAIR;\n }\n }",
"public boolean isTwoPairs(){\n \r\n List<PokerCard> pair1;\r\n List<PokerCard> pair2;\r\n \r\n //First possibility: first four cards are two pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(2, 4);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(cards.size()-1).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: First two and last two cards are pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(2).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: Last four cards are two pairs\r\n pair1 = cards.subList(1, 3);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }",
"public UnoCard searchForMatch(UnoCard prev) {\r\n \r\n //case where previous card was a \r\n // special card(wild, or WD4)\r\n if(UnoSpecialCardsV2.unoSpecialCard(prev)) {\r\n //Tests to determine 1) which special card previous was; and\r\n if(UnoSpecialCardsV2.unoCardWild(prev)) {\r\n int unoCardTgtColor = UnoV2.getWildColor();\r\n // 2) does player have a card to match it. \r\n for (int i = hand.handSize()-1; i >=0; i--) {\r\n UnoCard unocard = hand.getCard(i);\r\n if (unocard.getColor() == unoCardTgtColor \r\n || (unocard.getRank() > 24)) { \r\n return hand.popCard(i);\r\n }\r\n }\r\n return null;\r\n \r\n }\r\n // Same comments as above\r\n if(UnoSpecialCardsV2.unoCardWildDrawFour(prev)) {\r\n int unoCardTgtColor = UnoV2.getWildColor();\r\n System.out.println(\"unoCardTgtColor into WD4 SearchForMatch \" \r\n + UnoCard.getColors()[unoCardTgtColor]);\r\n \r\n for (int i = hand.handSize()-1; i >=0;i--) {\r\n UnoCard unocard = hand.getCard(i);\r\n if ((unocard.getColor() == unoCardTgtColor) \r\n || unocard.getRank() > 24) {\r\n return hand.popCard(i); //had problem bug just because I forgot the 'i' in popCard...\r\n }\r\n }\r\n return null;\r\n } \r\n } //end special card prev, search for match\r\n \r\n for (int i = 0; i < hand.handSize(); i++) {\r\n UnoCard unocard = hand.getCard(i);\r\n \r\n/** Runs thru hand looks for regular wild cards, plays \r\n * them first*/\r\n if (unocard.getRank() > 24 && unocard.getRank() < 29) { \r\n return hand.popCard(i); \r\n/** Look for skip,reverse, D2, plays them next */\r\n } else if((unocard.getRank() > 18 && unocard.getRank() < 25) \r\n && UnoCard.unoCardsMatch(unocard, prev)) {\r\n return hand.popCard(i);\r\n }\r\n }\r\n/** After 'filters'\r\n * above, only cases are unocard < 19(normal cards 0 \r\n * to 9} or unocard wild Draw4. \r\n * Sort cards that are not special cards \r\n * or regular wild cards to play highest first \r\n */ \r\n UnoHand.insertionSortUnoHand(hand); \r\n \r\n // search from end of hand as hand sorted ascending\r\n for (int i = hand.handSize() - 1; i >= 0; i--) { \r\n UnoCard unocard = hand.getCard(i);\r\n if (unocard.getRank() <= 19 \r\n && UnoCard.unoCardsMatch(unocard, prev)) {\r\n return hand.popCard(i);\r\n // all else fails, play DrawFour\r\n }else if (unocard.getColor() > 3) { \r\n return hand.popCard(i);\r\n } \r\n }\r\n return null;\r\n }",
"public GameState won() {\n if ( (board[0][0] != TileState.BLANK) && (board[0][0] == board[0][1]) && (board[0][0] == board[0][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[1][0] != TileState.BLANK) && (board[1][0] == board[1][1]) && (board[1][0] == board[1][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[2][0] != TileState.BLANK) && (board[2][0] == board[2][1]) && (board[2][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][1]) && (board[0][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ( (board[0][2] != TileState.BLANK) && (board[0][2] == board[1][1]) && (board[0][2] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][0]) && (board[0][0] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][1] != TileState.BLANK) && (board[0][1] == board[1][1]) && (board[0][1] == board[2][1])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][2] != TileState.BLANK) && (board[0][2] == board[1][2]) && (board[0][2] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if (movesPlayed == 9)\n return GameState.DRAW;\n return GameState.IN_PROGRESS;\n }",
"public String winner(){\n\t\tString winner =\"\";\n\t\tif(board.isWin() == \"blue\")\n\t\t\t{\n\t\t\twinner= \"blue\";\n\t\t\t}\n\t\telse if(board.isWin()==\"red\")\n\t\t\t{\n\t\t\twinner= \"red\";\n\t\t\t}\n\t\treturn winner; \n\t}",
"private int evaluateState() {\r\n\r\n\t\t// add up score\r\n\t\t//\r\n\t\tint scoreWhite = 0;\r\n\t\tint scoreBlack = 0;\r\n\t\tfor (Piece piece : this.chessGame.getPieces()) {\r\n\t\t\tif(piece.getColor() == Piece.COLOR_BLACK){\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else if( piece.getColor() == Piece.COLOR_WHITE){\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else{\r\n\t\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\t\"unknown piece color found: \"+piece.getColor());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// return evaluation result depending on who's turn it is\r\n\t\tint gameState = this.chessGame.getGameState();\r\n\t\t\r\n\t\tif( gameState == ChessGame.GAME_STATE_BLACK){\r\n\t\t\treturn scoreBlack - scoreWhite;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_WHITE){\r\n\t\t\treturn scoreWhite - scoreBlack;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_END_WHITE_WON\r\n\t\t\t\t|| gameState == ChessGame.GAME_STATE_END_BLACK_WON){\r\n\t\t\treturn Integer.MIN_VALUE + 1;\r\n\t\t\r\n\t\t}else{\r\n\t\t\tthrow new IllegalStateException(\"unknown game state: \"+gameState);\r\n\t\t}\r\n\t}",
"private boolean isLastMoveRochade()\r\n\t{\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMove == null) return false;\r\n\t\tPiece king = lastMove.to.piece;\r\n\t\tif (!(king instanceof King)) return false;\r\n\t\t\r\n\t\tint y = king.getColor().equals(Color.WHITE) ? 0 : 7;\r\n\t\tif (lastMove.to.coordinate.y != y) return false;\r\n\t\t\r\n\t\tint xDiffAbs = Math.abs(lastMove.to.coordinate.x - lastMove.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}",
"public void solveGame5() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\t\t\t\tcurrentSet.add(s);\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\n\t\tlosingStates.addAll(game.getStates());\n\t\t\n\t\tSet<S> currentLosingStates;\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t\tcurrentLosingStates\t= new HashSet<S>();\n\t\t\t\n\t\t\t// Handle the pending states\n\t\t\twhile (!losing.isEmpty()) {\n\t\t\t\tS state = losing.poll();\n\n\t\t\t\t\n\t\t\t\tcurrentLosingStates.add(state);\n\n\t\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\t\tfor (S pred : predecessors) {\n\t\t\t\t\tif(losing.contains(pred) || currentLosingStates.contains(pred))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t\t//if(i == -1)\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlosingStates.retainAll(currentLosingStates);\n\t\t\t\n\t\t}\n\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}",
"public boolean isHalfCarry() {\n\t\treturn ((get() >> 5) & 1) == 1;\n\t}",
"public BlackjackClientState get_state() {\n ArrayList<String> cards = new ArrayList<>();\n ArrayList<String> cards2 = new ArrayList<>();\n for (Card c : player_cards)\n cards.add(c.toString());\n\n // Calculate the current state of the game\n int player_hand = get_hand_val(player_cards);\n if (player_hand > 21)\n player_busted = true;\n else if (player_hand == 21)\n player_stand = true;\n\n String player_count = Integer.toString(player_hand);\n\n if (player_stand || player_busted) {\n house_deal();\n for (Card c : house_cards)\n cards2.add(c.toString());\n int house_hand = get_hand_val(house_cards);\n String house_count = Integer.toString(house_hand);\n if (house_hand > 21)\n return new BlackjackClientState(id, true, player_busted ? \"Draw\" : \"You Win!\", player_count,\n house_count, cards, cards2);\n else if (house_hand > player_hand)\n return new BlackjackClientState(id, true, \"You lose\", player_count, house_count, cards, cards2);\n else if (!player_busted)\n return new BlackjackClientState(id, true, house_hand == player_hand ? \"Draw\" : \"You Win!\", player_count,\n house_count, cards, cards2);\n else\n return new BlackjackClientState(id, true, \"You lose\", player_count, house_count, cards, cards2);\n }\n\n return new BlackjackClientState(id, false, null, player_count, \"?\", cards, cards2);\n }",
"public final int get5CardRoyaltyValue(int player, int hand,\r\n\t\t\t\t\t\t\t\t\t\t\t OfcHandMatrix matrix) {\r\n\t\t\tint total = 0;\r\n\t\t\tint count = 0;\r\n\t\t\tcount = matrix.numHandsOfRank(player, hand, StupidEval.STRAIGHT);\r\n\t\t\tif (count == 0) return total;\r\n\t\t\ttotal += 2 * count; // straight = 2\r\n\t\t\tcount = matrix.numHandsOfRank(player, hand, StupidEval.FLUSH);\r\n\t\t\tif (count == 0) return total;\r\n\t\t\ttotal += 2 * count; // flush = 4\r\n\t\t\tcount = matrix.numHandsOfRank(player, hand, StupidEval.FULL_HOUSE);\r\n\t\t\tif (count == 0) return total;\r\n\t\t\ttotal += 2 * count; // full house = 6\r\n\t\t\tcount = matrix.numHandsOfRank(player, hand, StupidEval.QUADS);\r\n\t\t\tif (count == 0) return total;\r\n\t\t\ttotal += 4 * count; // quads = 10\r\n\t\t\tcount = matrix.numHandsOfRank(player, hand, StupidEval.STRAIGHT_FLUSH);\r\n\t\t\tif (count == 0) return total;\r\n\t\t\ttotal += 5 * count; // quads = 15\r\n\t\t\tcount = matrix.numHandsOfRank(player, hand, StupidEval.ROYAL_FLUSH);\r\n\t\t\tif (count == 0) return total;\r\n\t\t\ttotal += 10 * count; // royal = 25\r\n\t\t\treturn total;\r\n\t\t}",
"public Match[] getMaleWinner() {\n return finals;\n }",
"public int lancer() {\n int side;\n do {\n side = r.nextInt(this.getNbFaces() + 1);\n } while (side == last_value);\n last_value = side;\n\n return side;\n }",
"public boolean isStraight(){\n \r\n PokerCard previousCard = cards.get(0);\r\n PokerCard currentCard;\r\n for(int i=1;i<cards.size();i++){\r\n currentCard = cards.get(i);\r\n \r\n //Not consecutive value.\r\n if(currentCard.getValue() != (previousCard.getValue()+1)){\r\n return false;\r\n }\r\n previousCard = currentCard;\r\n }\r\n \r\n //All cards are the same suit and are consecutive in value\r\n handValue = cards.get(cards.size()-1).getValue();\r\n return true;\r\n }",
"private boolean fourstonesReached() {\n\t\t\n\t\t\n\t\t//TO-DO: evtl. Abbruch, wenn ein freies Feld entdeckt wird\n\t\t\n\t\tint counter=0;\n\t\t\n\t\t//check horizontal lines\n\t\tfor(int i=0; i<horizontal;i++ ) {\n\t\t\t\n\t\t\tfor(int j=0; j<vertical;j++ ) {\n\t\t\t\t\n\t\t\t\tif(board[i][j] == player.ordinal()) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\tif(counter == 4) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcounter=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tcounter=0;\n\t\t}\n\t\t\n\t\t\n\t\t//check vertical lines\n\t\tfor(int i=0; i<vertical;i++ ) {\n\t\t\t\n\t\t\tfor(int j=0; j<horizontal;j++ ) {\n\t\t\t\t\n\t\t\t\tif(board[j][i] == player.ordinal()) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\tif(counter == 4) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcounter=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tcounter=0;\n\t\t}\n\t\t\n\t\t//check diagonal \n\t\tint ordinal = player.ordinal();\n\t\t\n\t\tif( //checking lines from up-left to down-right\n\t\t\t(board[3][0] == ordinal && board[2][1] == ordinal && board[1][2] == ordinal && board[0][3] == ordinal) || \n\t\t\t(board[4][0] == ordinal && board[3][1] == ordinal && board[2][2] == ordinal && board[1][3] == ordinal) ||\n\t\t\t(board[3][1] == ordinal && board[2][2] == ordinal && board[1][3] == ordinal && board[0][4] == ordinal) ||\n\t\t\t(board[5][0] == ordinal && board[4][1] == ordinal && board[3][2] == ordinal && board[2][3] == ordinal) ||\n\t\t\t(board[4][1] == ordinal && board[3][2] == ordinal && board[2][3] == ordinal && board[1][4] == ordinal) ||\n\t\t\t(board[3][2] == ordinal && board[2][3] == ordinal && board[1][4] == ordinal && board[0][5] == ordinal) ||\n\t\t\t(board[5][1] == ordinal && board[4][2] == ordinal && board[3][3] == ordinal && board[2][4] == ordinal) ||\n\t\t\t(board[4][2] == ordinal && board[3][3] == ordinal && board[2][4] == ordinal && board[1][5] == ordinal) ||\n\t\t\t(board[3][3] == ordinal && board[2][4] == ordinal && board[1][5] == ordinal && board[0][6] == ordinal) ||\n\t\t\t(board[5][2] == ordinal && board[4][3] == ordinal && board[3][4] == ordinal && board[2][5] == ordinal) ||\n\t\t\t(board[4][3] == ordinal && board[3][4] == ordinal && board[2][5] == ordinal && board[1][6] == ordinal) ||\n\t\t\t(board[5][3] == ordinal && board[4][4] == ordinal && board[3][5] == ordinal && board[2][6] == ordinal) ||\n\t\t\t\n\t\t\t//checking lines from up-right to down-left\n\t\t\t(board[2][0] == ordinal && board[3][1] == ordinal && board[4][2] == ordinal && board[5][3] == ordinal) ||\n\t\t\t(board[1][0] == ordinal && board[2][1] == ordinal && board[3][2] == ordinal && board[4][3] == ordinal) ||\n\t\t\t(board[2][1] == ordinal && board[3][2] == ordinal && board[4][3] == ordinal && board[5][4] == ordinal) ||\n\t\t\t(board[0][0] == ordinal && board[1][1] == ordinal && board[2][2] == ordinal && board[3][3] == ordinal) ||\n\t\t\t(board[1][1] == ordinal && board[2][2] == ordinal && board[3][3] == ordinal && board[4][4] == ordinal) ||\n\t\t\t(board[2][2] == ordinal && board[3][3] == ordinal && board[4][4] == ordinal && board[5][5] == ordinal) ||\n\t\t\t(board[0][1] == ordinal && board[1][2] == ordinal && board[2][3] == ordinal && board[3][4] == ordinal) ||\n\t\t\t(board[1][2] == ordinal && board[2][3] == ordinal && board[3][4] == ordinal && board[4][5] == ordinal) ||\n\t\t\t(board[2][3] == ordinal && board[3][4] == ordinal && board[4][5] == ordinal && board[5][6] == ordinal) ||\n\t\t\t(board[0][2] == ordinal && board[1][3] == ordinal && board[2][4] == ordinal && board[3][5] == ordinal) ||\n\t\t\t(board[1][3] == ordinal && board[2][4] == ordinal && board[3][5] == ordinal && board[4][6] == ordinal) ||\n\t\t\t(board[0][3] == ordinal && board[1][4] == ordinal && board[2][5] == ordinal && board[3][6] == ordinal)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"@Test\n\tpublic void leftRighBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(19,38);\n\t\td.set(20,40);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(40);\n\t\tassertTrue(5==test_arr.get(0).getX() && 3==test_arr.get(0).getY());\n\n\t}",
"private int twoPairs() {\n\t\tint check = 0;\n\t\tint[] pairPos = new int[2];\n\t\tfor (int counter = POS_ONE; counter < Constants.HAND_SIZE; counter++) {\n\t\t\tif (hand[counter - 1].getValueIndex() == hand[counter].getValueIndex()) {\n\t\t\t\tpairPos[check] = counter;\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tif (check == 2) {\n\t\t\tresult.setPrimaryValuePos(hand[pairPos[1]].getValueIndex());\n\t\t\tresult.setSecondaryValuePos(hand[pairPos[0]].getValueIndex());\n\t\t\tList<Card> tertiaryValue = Arrays.stream(hand)\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[0]].getValueIndex())\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[1]].getValueIndex())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tresult.setTertiaryValuePos(tertiaryValue.get(0).getValueIndex());\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"private void findWay(MazeCell[] surrounds) {\r\n for (int i = 0; i < surrounds.length; i++) {\r\n if (surrounds[i].isMovable && surrounds[i].getFootprint()) {\r\n int d = faceDir.ordinal();\r\n faceDir = Direction.values()[(d + i) % 4];\r\n }\r\n }\r\n }",
"@Test\n void getCurrentRewardsFromUpgradeTest() {\n EnumMap<CardPoints,Integer> oracle = new EnumMap<CardPoints, Integer>(CardPoints.class);\n oracle.put(CardPoints.VICTORY, 3);\n assertEquals(oracle, this.wonder.getCurrentRewardsFromUpgrade()); //index/state = 0, cost stage 1\n assertEquals(oracle, this.wonder.getProp().get(this.wonder.getState()).y); //index/state = 0, cost stage 1\n\n wonder.setState(wonder.getState() + 1); // stage one is build\n oracle = new EnumMap<CardPoints, Integer>(CardPoints.class);\n //reward is an effect, so no cardpoints\n assertEquals(oracle, this.wonder.getCurrentRewardsFromUpgrade()); // index/state = 1, cost stage 2\n\n wonder.setState(wonder.getState() + 1); // 2 stage build\n oracle = new EnumMap<CardPoints, Integer>(CardPoints.class);\n oracle.put(CardPoints.VICTORY, 7);\n assertEquals(oracle, this.wonder.getCurrentRewardsFromUpgrade()); // index/state = 2, cost stage 3\n wonder.setState(wonder.getState() + 1); // Build the last stage\n\n //return an outIndexError when we call this method\n }",
"private boolean checkTwoPairs(Player player) {\n\t\t// first pair\n\t\tcheckPair(player);\n\n\t\t// doesn't qualify for 2 pairs\n\t\tif (!player.isPair()) {\n\t\t\tplayer.setPair(false);\n\t\t\treturn false;\n\t\t}\n\n\t\t// second pair\n\t\tfor (int j = 4; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setTwoPairs(true);\n\t\t\t\tplayer.setHandRank(HandRank.TWO_PAIRS);\n\n\t\t\t\t// add second pair to the 5 cards hand\n\t\t\t\thand[2] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[3] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\n\t\t\t\t// add kicker\n\t\t\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\t\t\tplayer.setFiveCardsHand(hand);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// add 3 kickers for the single pair found\n\t\thand[2] = player.getSevenCardsTempHand().get(4);\n\t\thand[3] = player.getSevenCardsTempHand().get(3);\n\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\tplayer.setFiveCardsHand(hand);\n\n\t\treturn false;\n\t}",
"private static void checkForMatches() {\n int matchesThisTurn = 0;\n switch (pattern) {\n case RED:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardColor(playerDeck.get(i)).equals(\"Red\")) {\n //system.out.println(\"Matched Card Color:\" + GameDeck.getCardColor(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case BLACK:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardColor(playerDeck.get(i)).equals(\"Black\")) {\n //system.out.println(\"Matched Card Color:\" + GameDeck.getCardColor(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n matchesThisTurn++;\n playerDeck.get(i).setCardPurchased(true);\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case HEART:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardSuit(playerDeck.get(i)).equals(\"Heart\")) {\n //system.out.println(\"Matched Card Suit:\" + GameDeck.getCardSuit(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case DIAMOND:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardSuit(playerDeck.get(i)).equals(\"Diamond\")) {\n //system.out.println(\"Matched Card Suit:\" + GameDeck.getCardSuit(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case CLUB:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardSuit(playerDeck.get(i)).equals(\"Club\")) {\n //system.out.println(\"Matched Card Suit:\" + GameDeck.getCardSuit(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case SPADE:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardSuit(playerDeck.get(i)).equals(\"Spade\")) {\n //system.out.println(\"Matched Card Suit:\" + GameDeck.getCardSuit(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case TWO:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"2\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case THREE:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"3\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case FOUR:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"4\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case FIVE:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"5\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case SIX:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"6\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case SEVEN:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"7\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case EIGHT:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"8\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case NINE:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"9\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case TEN:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"10\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case JACK:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"J\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case QUEEN:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"Q\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case KING:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"K\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case ACE:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"A\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case SINGLEDIGITPRIMES:\n for(int i = 0; i< playerDeck.size(); i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"2\") ||\n GameDeck.getCardName(playerDeck.get(i)).equals(\"3\") ||\n GameDeck.getCardName(playerDeck.get(i)).equals(\"5\") ||\n GameDeck.getCardName(playerDeck.get(i)).equals(\"7\")) {\n //system.out.println(\"Matched Card Name:\" + GameDeck.getCardName(playerDeck.get(i)));\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n// guessPattern();\n }\n break;\n case PAIRS:\n int[] isAPair = new int[]{0,0,0,0};\n if(GameDeck.getCardName(playerDeck.get(0)).equals(GameDeck.getCardName(playerDeck.get(1)))) {\n //system.out.println(\"Matched Pair Name:\" + GameDeck.getCardName(playerDeck.get(0)));\n matchedDeck.add(playerDeck.get(0));\n playerDeck.get(0).setCardPurchased(true);\n matchedDeck.add(playerDeck.get(1));\n playerDeck.get(1).setCardPurchased(true);\n isAPair[1] = 1;\n matchesThisTurn += 2;\n } else if(GameDeck.getCardName(playerDeck.get(0)).equals(GameDeck.getCardName(playerDeck.get(2)))) {\n //system.out.println(\"Matched Pair Name:\" + GameDeck.getCardName(playerDeck.get(0)));\n matchedDeck.add(playerDeck.get(0));\n playerDeck.get(0).setCardPurchased(true);\n matchedDeck.add(playerDeck.get(2));\n playerDeck.get(2).setCardPurchased(true);\n isAPair[2] = 1;\n matchesThisTurn += 2;\n } else if(GameDeck.getCardName(playerDeck.get(0)).equals(GameDeck.getCardName(playerDeck.get(3)))) {\n //system.out.println(\"Matched Pair Name:\" + GameDeck.getCardName(playerDeck.get(0)));\n matchedDeck.add(playerDeck.get(0));\n playerDeck.get(0).setCardPurchased(true);\n matchedDeck.add(playerDeck.get(3));\n playerDeck.get(3).setCardPurchased(true);\n isAPair[3] = 1;\n matchesThisTurn += 2;\n }\n else\n {\n \tplayerDeck.get(0).setCardPurchased(false);\n \tplayerDeck.get(1).setCardPurchased(false);\n \tplayerDeck.get(2).setCardPurchased(false);\n \tplayerDeck.get(3).setCardPurchased(false);\n }\n \n if(isAPair[1] != 1) {\n if(isAPair[2] != 1 && GameDeck.getCardName(playerDeck.get(1)).equals(GameDeck.getCardName(playerDeck.get(2)))) {\n //system.out.println(\"Matched Pair Name:\" + GameDeck.getCardName(playerDeck.get(1)));\n matchedDeck.add(playerDeck.get(1));\n playerDeck.get(1).setCardPurchased(true);\n matchedDeck.add(playerDeck.get(2));\n playerDeck.get(2).setCardPurchased(true);\n isAPair[2] = 1;\n matchesThisTurn += 2;\n } else if(isAPair[3] != 1 && GameDeck.getCardName(playerDeck.get(1)).equals(GameDeck.getCardName(playerDeck.get(3)))) {\n //system.out.println(\"Matched Pair Name:\" + GameDeck.getCardName(playerDeck.get(1)));\n matchedDeck.add(playerDeck.get(1));\n playerDeck.get(1).setCardPurchased(true);\n matchedDeck.add(playerDeck.get(3));\n playerDeck.get(3).setCardPurchased(true);\n isAPair[3] = 1;\n matchesThisTurn += 2;\n }\n else\n {\n \tplayerDeck.get(1).setCardPurchased(false);\n \tplayerDeck.get(2).setCardPurchased(false);\n \tplayerDeck.get(3).setCardPurchased(false);\n }\n \n }\n \n if(isAPair[2] != 1) {\n if(isAPair[3] != 1 && GameDeck.getCardName(playerDeck.get(2)).equals(GameDeck.getCardName(playerDeck.get(3)))) {\n //system.out.println(\"Matched Pair Name:\" + GameDeck.getCardName(playerDeck.get(2)));\n matchedDeck.add(playerDeck.get(2));\n playerDeck.get(2).setCardPurchased(true);\n matchedDeck.add(playerDeck.get(3));\n playerDeck.get(3).setCardPurchased(true);\n matchesThisTurn += 2;\n }\n else\n {\n \tplayerDeck.get(2).setCardPurchased(false);\n \tplayerDeck.get(3).setCardPurchased(false);\n }\n }\n if(matchesThisTurn == 4)\n {\n guessPattern();\n }\n break;\n case SUMOFPAIRS: //Ace is high for this sum calculation(Ace=14)\n int tempSum;\n int sumPairCount = 0;\n for(int i=0;i<playerDeck.size();i+=2) {\n tempSum = 0;\n tempSum += GameDeck.getCardValue(playerDeck.get(i));\n tempSum += GameDeck.getCardValue(playerDeck.get(i+1));\n if(tempSum == sumValue) {\n //system.out.println(\"Sum Value:\" + tempSum);\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchedDeck.add(playerDeck.get(i+1));\n playerDeck.get(i+1).setCardPurchased(true);\n sumPairCount++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n \tplayerDeck.get(i+1).setCardPurchased(false);\n }\n }\n if(sumPairCount == 2)\n {\n// guessPattern();\n }\n break;\n case INCREMENTING:\n int[] isIncrementing = new int[]{0,0,0,0};\n int[] isConsecutive = new int[]{0,0,0};\n int consecutiveCount = 0;\n for(int i = 0; i< playerDeck.size()-1; i++) {\n if(GameDeck.getCardName(playerDeck.get(i)).equals(\"A\")) {\n if(1 == GameDeck.getCardValue(playerDeck.get(i+1))-1) {\n //system.out.println(\"Matched incrementing:\" + GameDeck.getCardName(playerDeck.get(i)) +\n // \" & \" + GameDeck.getCardName(playerDeck.get(i+1)));\n isIncrementing[i] = 1;\n isIncrementing[i+1] = 1;\n isConsecutive[i] = 1;\n }\n } else {\n if(GameDeck.getCardValue(playerDeck.get(i)) == GameDeck.getCardValue(playerDeck.get(i+1))-1) {\n //system.out.println(\"Matched incrementing:\" + GameDeck.getCardName(playerDeck.get(i)) +\n // \" & \" + GameDeck.getCardName(playerDeck.get(i+1)));\n isIncrementing[i] = 1;\n isIncrementing[i+1] = 1;\n isConsecutive[i] = 1;\n }\n }\n }\n for(int i=0;i<playerDeck.size();i++) {\n if(isIncrementing[i] == 1) {\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn ++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n for(int i=0;i<3;i++) {\n if(isConsecutive[i] == 1) {\n consecutiveCount++;\n }\n }\n if(consecutiveCount == 3)\n {\n// guessPattern();\n }\n break;\n case DECREMENTING:\n int[] isDecrementing = new int[]{0,0,0,0};\n int[] isConsecutive2 = new int[]{0,0,0};\n int consecutiveCount2 = 0;\n for(int i = 0; i< playerDeck.size()-1; i++) {\n if(GameDeck.getCardValue(playerDeck.get(i)) == 2) {\n if(GameDeck.getCardName(playerDeck.get(i+1)).equals(\"A\")) {\n //system.out.println(\"Matched decrementing:\" + GameDeck.getCardName(playerDeck.get(i)) +\n // \" & \" + GameDeck.getCardName(playerDeck.get(i+1)));\n isDecrementing[i] = 1;\n isDecrementing[i+1] = 1;\n isConsecutive2[i] = 1;\n }\n } else {\n if(GameDeck.getCardValue(playerDeck.get(i)) == GameDeck.getCardValue(playerDeck.get(i+1))+1) {\n //system.out.println(\"Matched decrementing:\" + GameDeck.getCardName(playerDeck.get(i)) +\n // \" & \" + GameDeck.getCardName(playerDeck.get(i+1)));\n isDecrementing[i] = 1;\n isDecrementing[i+1] = 1;\n isConsecutive2[i] = 1;\n }\n }\n }\n for(int i=0;i<playerDeck.size();i++) {\n if(isDecrementing[i] == 1) {\n matchedDeck.add(playerDeck.get(i));\n playerDeck.get(i).setCardPurchased(true);\n matchesThisTurn ++;\n }\n else\n {\n \tplayerDeck.get(i).setCardPurchased(false);\n }\n }\n for(int i=0;i<3;i++) {\n if(isConsecutive2[i] == 1) {\n consecutiveCount2++;\n }\n }\n if(consecutiveCount2 == 3)\n {\n// guessPattern();\n }\n break;\n default:\n //system.out.println(\"\");\n break;\n }\n }",
"@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\n\t\t\tint counter = 0;\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (i + 1 < hand.size()) {\n\t\t\t\t\tif (hand.get(i + 1).getCardValue().getValue()\n\t\t\t\t\t\t\t- hand.get(i).getCardValue().getValue() == 1)\n\t\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//if not straight, then do a final check of 5 unique cards\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tif (counter != 4) {\n\t\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn map.size() == 5;\n\t\t}",
"public BeaconColor getStateRight() {\n return right;\n }",
"private static Hand getResults() {\n System.out.println(hands.size());\n Optional<Hand> winner;\n winner = hands.stream()\n .reduce((hand1, hand2)\n -> hand1.compareTo(hand2) == 1 ? hand1 : hand2);\n Hand winningHand = null;\n if (winner.isPresent()) {\n winningHand = winner.get();\n }\n return winningHand;\n\n }",
"private static short eval_5cards(int[] hand)\n {\n int q = (hand[0] | hand[1] | hand[2] | hand[3] | hand[4]) >> 16;\n\n // This checks for any kind of Flushes\n if ((hand[0] & hand[1] & hand[2] & hand[3] & hand[4] & 0xf000) != 0)\n return flushes.get(q);\n\n // This checks for Straights and High Card hands\n if ( unique5.get(q) != 0)\n return unique5.get(q);\n\n // This performs a perfect-hash lookup for remaining possible hands\n long q1 = (hand[0] & 0xff) * (hand[1] & 0xff) * (hand[2] & 0xff) * (hand[3] & 0xff) * (hand[4] & 0xff);\n return hash_values.get((int)find_fast(q1));\n }",
"private int fifteenValue() {\n int fiveValue = 0;\n Integer[] faceValue = new Integer[cards.length];\n Integer[][] combos;\n \n for (int i = 0; i < cards.length; i++) {\n for (CribbageRank card : CribbageRank.values()) {\n if (cards[i].charAt(0) == card.abbrev()) {\n faceValue[i] = card.faceValue();\n break;\n }\n }\n }\n \n /** For each combinations of the cards, check whether the sum is\n * equal to 15.\n */\n combos = Combinations.combinations(faceValue);\n for (int i = 0; i < combos.length; i++) {\n int sum = 0;\n for (int j = 0; j < combos[i].length; j++) {\n sum += combos[i][j];\n }\n \n if (sum == 15) {\n fiveValue += 2;\n }\n } \n return fiveValue;\n }",
"private int[] findNextMove(State s, double[] weights) {\n\t\tboolean[][] newField = new boolean[State.ROWS][State.COLS];\n\t\tint[] newTop = new int[State.COLS];\n\t\tint bestRot = 0;\n\t\tint bestPos = 0;\n\t\tdouble bestValue = -Double.MAX_VALUE;\n\n\t\tint nextPiece = s.getNextPiece();\n\t\tint[][] legalMoves = s.legalMoves();\n\t\tfor (int i = 0; i < legalMoves.length; i++) {\n\t\t\tint rot = legalMoves[i][State.ORIENT];\n\t\t\tint pos = legalMoves[i][State.SLOT];\n\t\t\tint rowsCleared = performMove(s, newField, newTop, nextPiece, rot, pos);\n\t\t\tint holes = 0;\n\t\t\tint bumpiness = 0;\n\t\t\tint maxHeight = 0;\n\t\t\tint minHeight = State.ROWS;\n\n\t\t\tfor (int c = 0; c < State.COLS; ++c) {\n\t\t\t\tboolean blocked = false;\n\t\t\t\t// total height\n\t\t\t\tmaxHeight = Math.max(maxHeight, s.getTop()[c]);\n\t\t\t\tminHeight = Math.min(minHeight, s.getTop()[c]);\n\t\t\t\t// sum of difference of consecutive heights\n\t\t\t\tif (c > 0)\n\t\t\t\t\tbumpiness += (newTop[c] - newTop[c - 1]) * (newTop[c] - newTop[c - 1]);\n\t\t\t\tfor (int r = State.ROWS - 1; r >= 0; --r) {\n\t\t\t\t\tif (newField[r][c]) {\n\t\t\t\t\t\tblocked = true;\n\t\t\t\t\t} else if (!newField[r][c] && blocked) {\n\t\t\t\t\t\t// number of holes\n\t\t\t\t\t\tholes += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble value = calculateValueOfField(weights, maxHeight, minHeight, rowsCleared, holes, bumpiness);\n\t\t\tif (value > bestValue) {\n\t\t\t\tbestValue = value;\n\t\t\t\tbestRot = rot;\n\t\t\t\tbestPos = pos;\n\t\t\t}\n\n\t\t}\n\n\t\treturn new int[] { bestRot, bestPos };\n\n\t}",
"private boolean winner() {\n\t\t\n\t\tif(( gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if(gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT] + \n\t\t\t\t gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT] +\n\t\t\t\t gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT] == CAT){\n\t\t\t//cat winner player_1 goes first\n\t\t\twinner = CAT;\n\t\t}else if(gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT] + \n\t\t\t\t gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT] +\n\t\t\t\t gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT] == (CAT + 3)){\n\t\t\t//cat winner player_2 goes first\n\t\t\twinner = CAT;\n\t\t} \n\t\t\n\t\tif(winner > 0){\n\t\t\treturn true;//there is a winner\n\t\t}else{\n\t\t\treturn false;//still no winner yet\n\t\t}\t\n\t}",
"public int calcRank() {\n sortCardsInHand();\n\n // check Royal flush\n if (this.areCardsInStraight() && this.cards[0].getValue() == 10 && areCardsInSameSuite()) return 10;\n\n // Straight flush: All five cards in consecutive value order, with the same suit\n if (areCardsInSameSuite() && areCardsInStraight()) return 9;\n\n int pairCheck = CardOperations.numberOfPairs(this.getHashMapOfValues());\n\n // Four of a kind: Four cards of the same value\n if (pairCheck == 4) return 8;\n\n // Full house: Three of a kind and a Pair\n if (pairCheck == 5) return 7;\n\n // Flush: All five cards having the same suit\n if (areCardsInSameSuite()) return 6;\n\n // Straight: All five cards in consecutive value order\n if (areCardsInStraight()) return 5;\n\n // Three of a kind: Three cards of the same value\n if (pairCheck == 3) return 4;\n\n // Two pairs: Two different pairs\n if (pairCheck == 2) return 3;\n\n // A pair: Two cards of same value\n if (pairCheck == 1) return 2;\n\n // High card: Highest value card\n return 1;\n }",
"public int corners1() {\n //above left\n if (board[0][1] != null && board[1][0] != null) {\n if (board[0][1].getPlayerNumber() != board[0][0].getPlayerNumber()\n && board[1][0].getPlayerNumber() != board[0][0].getPlayerNumber())\n return board[0][0].getPlayerNumber();\n }\n //left bottom\n if (board[0][board.length - 2] != null && board[1][board.length - 1] != null) {\n if (board[1][board.length - 1].getPlayerNumber() != board[0][board.length - 1].getPlayerNumber() &&\n board[0][board.length - 2].getPlayerNumber() != board[0][board.length - 1].getPlayerNumber())\n return board[0][board.length - 1].getPlayerNumber();\n }\n //right top\n if (board[board.length - 2][0] != null && board[board.length - 1][1] != null) {\n if (board[board.length - 1][1].getPlayerNumber() != board[board.length - 1][0].getPlayerNumber() &&\n board[board.length - 2][0].getPlayerNumber() != board[board.length - 1][0].getPlayerNumber())\n return board[board.length - 1][0].getPlayerNumber();\n }\n //right bottom\n if (board[board.length - 1][board.length - 2] != null && board[board.length - 2][board.length - 1] != null) {\n if (board[board.length - 2][board.length - 1].getPlayerNumber() !=\n board[board.length - 1][board.length - 1].getPlayerNumber() &&\n board[board.length - 1][board.length - 2].getPlayerNumber() !=\n board[board.length - 1][board.length - 1].getPlayerNumber()) {\n return board[board.length - 1][board.length - 1].getPlayerNumber();\n }\n }\n return -2;\n\n }",
"public State[] getSuccessors(char player) {\n\t\t// TO DO: get all successors and return them in proper order\r\n\t\tchar[][] board = convert2D(this.board);\r\n\r\n\t\tchar opponent;\r\n\t\tif(player == '2')\r\n\t\t\topponent = '1';\r\n\t\telse \r\n\t\t\topponent = '2';\r\n\r\n\t\tArrayList<State> successors = new ArrayList<State>();\r\n\r\n\t\tArrayList<Integer> row = new ArrayList<Integer>();\r\n\r\n\t\tArrayList<Integer> col = new ArrayList<Integer>();\r\n\t\t//ArrayList<Integer[]> indices = new ArrayList<Integer[]>();\r\n\r\n\t\tfor(int i = 0;i < 4; ++i){\r\n\r\n\t\t\tfor(int j = 0;j < 4; ++j){\r\n\r\n\t\t\t\tif(board[i][j] == opponent){\r\n\r\n\t\t\t\t\tint I = i, J = j; \r\n\t\t\t\t\t//upper left diag\r\n\t\t\t\t\tif(i-1 >= 0 && j-1 >= 0 && board[i-1][j-1] == '0'){ \r\n\r\n\t\t\t\t\t\ti = i+1; \r\n\t\t\t\t\t\tj = j+1;\r\n\r\n\t\t\t\t\t\twhile(i < 3 && j < 3 && board[i][j] == opponent)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti++;j++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(i <= 3 && j <= 3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I-1,J-1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I-1);\r\n\t\t\t\t\t\t\t\tcol.add(J-1);\r\n\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\ti=I;j=J;\r\n\t\t\t\t\t//left\r\n\t\t\t\t\tif(i-1>=0 && board[i-1][j] == '0'){\r\n\t\t\t\t\t\ti = i+1;\r\n\r\n\t\t\t\t\t\twhile(i < 3 && board[i][j] == opponent) \r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\tif(i<=3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I-1,J)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I-1);\r\n\t\t\t\t\t\t\t\tcol.add(J);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\ti=I;\r\n\r\n\t\t\t\t\t//lower left diag\r\n\t\t\t\t\tif(i-1 >= 0 && j+1 <= 3 && board[i-1][j+1] == '0'){\r\n\r\n\t\t\t\t\t\ti = i+1; j = j-1;\r\n\r\n\t\t\t\t\t\twhile(i<3 && j>0 && board[i][j] == opponent)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti++;j--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(i<=3 && j>=0 && board[i][j] == player) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(!exists(row,col,I-1,J+1)) {\r\n\t\t\t\t\t\t\t\trow.add(I-1);\r\n\t\t\t\t\t\t\t\tcol.add(J+1);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\r\n\t\t\t\t\ti=I;\r\n\t\t\t\t\tj=J;\r\n\r\n\t\t\t\t\t//up\r\n\t\t\t\t\tif(j-1>=0 && board[i][j-1] == '0'){\r\n\t\t\t\t\t\tj = j+1;\r\n\r\n\t\t\t\t\t\twhile(j < 3 && board[i][j] == opponent)\r\n\t\t\t\t\t\t\tj++;\r\n\r\n\t\t\t\t\t\tif(j <= 3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I,J-1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I);\r\n\t\t\t\t\t\t\t\tcol.add(J-1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tj=J;\r\n\t\t\t\t\t//down\r\n\t\t\t\t\tif(j+1 <= 3 && board[i][j+1] == '0'){\r\n\r\n\t\t\t\t\t\tj=j-1;\r\n\r\n\t\t\t\t\t\twhile(j > 0 && board[i][j] == opponent)\r\n\t\t\t\t\t\t\tj--;\r\n\r\n\t\t\t\t\t\tif(j >= 0 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I,J+1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I);\r\n\t\t\t\t\t\t\t\tcol.add(J+1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tj=J;\r\n\t\t\t\t\t//upper right\r\n\t\t\t\t\tif(i+1<=3 && j-1>=0 && board[i+1][j-1] == '0'){\r\n\r\n\t\t\t\t\t\ti=i-1;\r\n\t\t\t\t\t\tj=j+1;\r\n\r\n\t\t\t\t\t\twhile(i > 0 && j < 3 && board[i][j] == opponent){\r\n\r\n\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(i >= 0 && j <= 3 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I+1,J-1)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I+1);\r\n\t\t\t\t\t\t\t\tcol.add(J-1);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ti=I;\r\n\t\t\t\t\tj=J;\r\n\t\t\t\t\t//right\r\n\t\t\t\t\tif(i+1 <= 3 && board[i+1][j] == '0'){\r\n\t\t\t\t\t\ti=i-1;\r\n\r\n\t\t\t\t\t\twhile(i > 0 && board[i][j] == opponent) \r\n\t\t\t\t\t\t\ti--;\r\n\r\n\t\t\t\t\t\tif(i >= 0 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row,col,I+1,J)) {\r\n\r\n\t\t\t\t\t\t\t\trow.add(I+1);\r\n\t\t\t\t\t\t\t\tcol.add(J);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti=I;\r\n\t\t\t\t\t//lower right diag\r\n\t\t\t\t\tif(i+1 <= 3 && j+1 <=3 && board[i+1][j+1] == '0'){\r\n\r\n\t\t\t\t\t\ti=i-1;\r\n\t\t\t\t\t\tj=j-1;\r\n\r\n\t\t\t\t\t\twhile(i > 0 && j > 0 && board[i][j] == opponent)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\tj--;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(i >= 0 && j >= 0 && board[i][j] == player) {\r\n\r\n\t\t\t\t\t\t\tif(!exists(row, col, I+1, J+1)) {\t\r\n\r\n\t\t\t\t\t\t\t\trow.add(I+1);\r\n\t\t\t\t\t\t\t\tcol.add(J+1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ti=I;\r\n\t\t\t\t\tj=J;\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t} \r\n\t\t//Adding to successors\r\n\t\tfor(int i = 0; i < row.size(); i++) {\r\n\r\n\t\t\tsuccessors.add(move(player, row.get(i), col.get(i)));\r\n\t\t}\r\n\r\n\t\t//Create an array,\r\n\t\tState[] succsArray = new State[successors.size()];\r\n\t\t//get data in array\r\n\t\tsuccsArray = successors.toArray(succsArray);\r\n\r\n\t\treturn succsArray;\t\r\n\t}",
"private int gameState() {\n\t\t\n\t\tint gameNotOver = 0;\n\t\tint gameOverWinnerX = 1;\n\t\tint gameOverWinnerO = 2;\n\t\tint gameOverTie = 3;\n\t\t\n\t\t\n\t\t\n\t\t//Win Vertically \n\t\t// 0 3 6 , 1 4 7 , 2 5 8\n\t\t\t\t\n\t\t//Win Horizontally\n\t\t//0 1 2 , 3 4 5 , 6 7 8 \n\t\t\t\t\n\t\t//Win Diagonally\n\t\t// 0 4 8 , 2 4 6\n\t\t\t\t\n\t\t//Assuming it's an equal grid\n\t\t\t\t\n\t\tMark winningMark = null;\n\t\t\t\t\n\t\tboolean hasFoundWinner = false;\n\t\t\t\t\n\t\tint row = 0;\n\t\tint column = 0;\n\t\t\t\t\n\t\t//Horizontal Winner Test\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\tcolumn ++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcolumn = 0;\n\t\t\trow++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t// Vertical Winner Test\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\n\t\twhile (!hasFoundWinner && column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\trow = 0;\n\t\t\tcolumn++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Winner Test \"\\\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Test \"/\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = COLUMN_COUNT - 1;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn--;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If there are no moves left, and there is no winner, game ends inn a tie \n\t\t\n\t\tboolean foundNoMove = false;\n\t\tfor (int i = 0; i < movesArray.length; i++) {\n\t\t\tif (movesArray[i] == NO_MOVE) {\n\t\t\t\tfoundNoMove = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!foundNoMove && !hasFoundWinner) {\n\t\t\treturn gameOverTie;\n\t\t}\n\t\t\n\t\t// If there is no winner and there are still moves left, game is not over\n\t\t\n\t\treturn gameNotOver;\n\t\t\n\t}",
"private static int determine_winner(String p, String c){\n if(c.equals(p)){\n return 2;\n }\n if(c.equals(\"rock\") && (p.equals(\"paper\") || p.equals(\"spock\"))){\n return 1;\n }\n else if(c.equals(\"paper\") && (p.equals(\"scissors\") || p.equals(\"lizard\"))){\n return 1;\n }\n else if(c.equals(\"scissors\") && (p.equals(\"rock\") || p.equals(\"spock\"))){\n return 1;\n }\n else if(c.equals(\"lizard\") && (p.equals(\"scissors\") || p.equals(\"rock\"))){\n return 1;\n }\n else if(c.equals(\"spock\") && (p.equals(\"paper\") || p.equals(\"lizard\"))){\n return 1;\n }\n else{\n return 0;\n }\n }",
"public String getAwayR(String team) {\n\n String awayR;\n // if the game status is preview or postponed\n if (getGameStatus(team).equals(\"Preview\") || getGameStatus(team).equals(\"Postponed\")) {\n awayR = \"\";\n }\n else {\n awayR = getLineScore(team, \"linescore\",\"r\", \"away\");\n }\n\n return awayR;\n }",
"public static Move openingStrategy(PentagoBoardState boardState, int player) {\n\t Move firstMoveOne = new PentagoMove(1, 0, Quadrant.BL, Quadrant.BR, player);\r\n\t Move firstMoveTwo = new PentagoMove(1, 3, Quadrant.BL, Quadrant.BR, player);\r\n\t Move moveThree = new PentagoMove(0, 1, Quadrant.BL, Quadrant.TR, player);\r\n\t Move moveFour = new PentagoMove(0, 4, Quadrant.TL, Quadrant.BR, player);\r\n\t Move moveFive = new PentagoMove(3, 1, Quadrant.BL, Quadrant.TL, player);\r\n\t Move moveSix = new PentagoMove(3, 4, Quadrant.TL, Quadrant.TR, player);\r\n\t Move moveSeven = new PentagoMove(2, 2, Quadrant.TL, Quadrant.TR, player);\r\n\t Move moveEight = new PentagoMove(2, 5, Quadrant.TL, Quadrant.BR, player);\r\n\t Move moveNine = new PentagoMove(5, 2, Quadrant.BL, Quadrant.TL, player);\r\n\t Move moveTen = new PentagoMove(5, 5, Quadrant.TL, Quadrant.TR, player);\r\n\t \r\n\t //First turn as either Black or White\r\n\t if(boardState.getTurnNumber() == 0 || boardState.getTurnNumber() == 1) {\r\n\t if(boardState.isLegal((PentagoMove) firstMoveOne)) {\r\n\t \treturn firstMoveOne;\r\n\t }\r\n\t else if(boardState.isLegal((PentagoMove) firstMoveTwo)) {\r\n\t \treturn firstMoveTwo;\r\n\t }\r\n\t else {\r\n\t \t/* If something goes awry, play the first legal move (will place pieces in TL quadrant usually).\r\n\t \t * Same error condition for the following moves as well.\r\n\t \t **/\r\n\t \tArrayList<PentagoMove> legalMoves = boardState.getAllLegalMoves();\r\n\t \treturn legalMoves.get(0);\r\n\t }\r\n\t }\r\n\t else if(boardState.getTurnNumber() == 2 || boardState.getTurnNumber() == 3) {\r\n\t \t//White player turn 2 & 3 set up\r\n\t \tif(player == 0) {\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveThree) && boardState.getPieceAt(1, 0).toString().equals(\"w\")) {\r\n\t\t \treturn moveThree;\r\n\t\t }\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveFour) && boardState.getPieceAt(1, 3).toString().equals(\"w\")) {\r\n\t\t \t\treturn moveFour;\r\n\t\t \t}\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveFive) && boardState.getPieceAt(4, 0).toString().equals(\"w\")) {\r\n\t\t \treturn moveFive;\r\n\t\t }\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveSix) && boardState.getPieceAt(4, 3).toString().equals(\"w\")) {\r\n\t\t \t\treturn moveSix;\r\n\t\t \t}\r\n\t\t \tif(boardState.getPieceAt(0, 1).toString().equals(\"b\") && boardState.getPieceAt(1, 0).toString().equals(\"w\")\t\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveSeven)) {\r\n\t\t \treturn moveSeven;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(0, 4).toString().equals(\"b\") && boardState.getPieceAt(1, 3).toString().equals(\"w\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveEight)) {\r\n\t\t \t\treturn moveEight;\r\n\t\t \t}\r\n\t\t \tif(boardState.getPieceAt(3, 1).toString().equals(\"b\") && boardState.getPieceAt(4, 0).toString().equals(\"w\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveNine)) {\r\n\t\t \treturn moveNine;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(3, 4).toString().equals(\"b\") && boardState.getPieceAt(4, 3).toString().equals(\"w\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveTen)) {\r\n\t\t \t\treturn moveTen;\r\n\t\t \t}\r\n\t\t else {\r\n\t\t \tArrayList<PentagoMove> legalMoves = boardState.getAllLegalMoves();\r\n\t\t \treturn legalMoves.get(0);\r\n\t\t }\r\n\t \t} \r\n\t \t//Black player turn 2 & 3 set up\r\n\t \telse {\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveThree) && boardState.getPieceAt(1, 0).toString().equals(\"b\")) {\r\n\t\t \treturn moveThree;\r\n\t\t }\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveFour) && boardState.getPieceAt(1, 3).toString().equals(\"b\")) {\r\n\t\t \treturn moveFour;\r\n\t\t }\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveFive) && boardState.getPieceAt(4, 0).toString().equals(\"b\")) {\r\n\t\t \treturn moveFive;\r\n\t\t }\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveSix) && boardState.getPieceAt(4, 3).toString().equals(\"b\")) {\r\n\t\t \treturn moveSix;\r\n\t\t }\r\n\t \t\tif(boardState.getPieceAt(0, 1).toString().equals(\"w\") && boardState.getPieceAt(1, 0).toString().equals(\"b\")\r\n\t \t\t\t\t&& boardState.isLegal((PentagoMove) moveSeven)) {\r\n\t\t \treturn moveSeven;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(0, 4).toString().equals(\"w\") && boardState.getPieceAt(1, 3).toString().equals(\"b\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveEight)) {\r\n\t\t \t\treturn moveEight;\r\n\t\t \t}\r\n\t\t \tif(boardState.getPieceAt(3, 1).toString().equals(\"w\") && boardState.getPieceAt(4, 0).toString().equals(\"b\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveNine)) {\r\n\t\t \treturn moveNine;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(3, 4).toString().equals(\"w\") && boardState.getPieceAt(4, 3).toString().equals(\"b\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveTen)) {\r\n\t\t \t\treturn moveTen;\r\n\t\t \t}\r\n\t\t else {\r\n\t\t \tArrayList<PentagoMove> legalMoves = boardState.getAllLegalMoves();\r\n\t\t \treturn legalMoves.get(0);\r\n\t\t }\r\n\t \t}\t \r\n\t }\r\n\t else {\r\n\t \t//If we are past Player's Turn 3, start using MiniMax with a-b pruning\r\n\t \tMiniMaxABPruning instc = new MiniMaxABPruning();\r\n\t \treturn instc.abPruningStrategy(boardState, boardState.getTurnPlayer());\r\n\t }\r\n\t}",
"public State getMiddleArcState()\n {\n return iconPartStates[1];\n }",
"public boolean pairTest()\n\t{\n\t\tboolean pair = false;\n\t\tint index = 0;\n\t\t\n\t\twhile (index<(hand.length-1) && (!pair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\tpair = true;\n\t\t\t\thandScore = 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// If there's a pair, resolve kickers\n\t\tif (pair)\n\t\t{\n\t\t\tswitch (index)\n\t\t\t{\n\t\t\t\tcase 0:\t\t// Pair includes first two cards\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\tfor (int i=2; i<MAX_CARDS; i++)\n\t\t\t\t\t\t\thandScore += intRep[i]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\t\t// Pair excludes first card, includes 2nd-3rd\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += intRep[0];\n\t\t\t\t\t\thandScore += (intRep[3] + intRep[4]); }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2:\t\t// Pair excludes first two, includes 3-4\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1]);\n\t\t\t\t\t\thandScore += intRep[4]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\t// Anything else where the kickers are higher than pair\n\t\t\t\t\tif (!twoPairTest(index))\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1] + intRep[2]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn pair;\n\t}",
"Piece winner() {\r\n return _winner;\r\n }",
"BGPv4FSMState state();",
"@Override\n\tpublic double stateEvaluator(GameState s)\n\t{\r\n\t\tint count = 0;\n\t\tif (s.takenList[1] == 0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse if(s.lastMove == 1)\r\n\t\t{\r\n\t\t\tfor (int i = 1; i < s.takenList.length ; i++)\r\n\t\t\t{\r\n\t\t\t\tif (s.takenList[i] == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\treturn -0.5;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\treturn 0.5;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (isPrime(s.lastMove))\r\n\t\t{\r\n\t\t\tfor (int i = 1; i < s.takenList.length; i++)\r\n\t\t\t{\r\n\t\t\t\tif (s.takenList[i] == 0 && i % s.lastMove == 0) // i = 4, % 2\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\treturn -0.7;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn 0.7;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tint largestPrime = 2;\r\n\t\t\tfor (int i = 2; i < (s.lastMove/2); i++)\r\n\t\t\t{\r\n\t\t\t\tif (s.lastMove % i == 0 && isPrime(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tlargestPrime = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = largestPrime; i <= s.lastMove; i+= largestPrime)\r\n\t\t\t{\r\n\t\t\t\tif (s.takenList[i] == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\treturn -0.6;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\treturn 0.6;\r\n\t\t\t}\r\n\r\n\t\t}\n\t}",
"private boolean isNextMoveRochade(Move move)\r\n\t{\r\n\t\tif (!(move.from.piece instanceof King)) return false;\r\n\t\tint xDiffAbs = Math.abs(move.to.coordinate.x - move.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}",
"private void test(int k) {\n if (state[left(k)] != State.EATING && state[k] == State.HUNGRY\n && state[right(k)] != State.EATING) {\n state[k] = State.EATING;\n }\n }",
"public int getWinner() {return winner();}",
"private int firstMove(ArrayList<Integer> open, ArrayList<Integer> plyr, ArrayList<Integer> comp, int turn)\r\n {\r\n int[] first = {0,2,4,4,4,4,6,8};\r\n int[] second = {0,2,6,8};\r\n if(turn == 0)\r\n return first[gen.nextInt(8)];\r\n else\r\n {\r\n int plyrMove = plyr.get(0);\r\n if(plyrMove == 4)\r\n return second[gen.nextInt(4)];\r\n else\r\n return 4;\r\n }\r\n }",
"@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}",
"public TwoPairsEvaluation() {\n\t\tplayer = new TestPlayer(\"Player\");\n\t\tsevenCardshand = new ArrayList<TestCard>(7);\n\t\ttest = new TestHandEvaluation(dealer, table);\n\t\ttest.setHand();\n\t}",
"private Long handScore() {\n\t\tif (checkFlush(current5)&&checkStraight(current5)) {\r\n\t\t\treturn Long.decode(\"0x9\"+getHandString(current5));\r\n\t\t} else if(checkFour(current5)) {\r\n\t\t\t//check four of a kind\r\n\t\t\treturn Long.decode(\"0x8\"+getHandString(current5));\r\n\t\t} else if(checkHouse(current5)) {\r\n\t\t\t//check full house\r\n\t\t\tif(current5.get(2).getValue()!=current5.get(1).getValue()) {\r\n\t\t\t\tcurrent5.add(current5.remove(0));\r\n\t\t\t\tcurrent5.add(current5.remove(0));\r\n\t\t\t}\r\n\t\t\treturn Long.decode(\"0x7\"+getHandString(current5));\r\n\t\t} else if (checkFlush(current5)) {\r\n\t\t\treturn Long.decode(\"0x6\"+getHandString(current5));\r\n\t\t} else if (checkStraight(current5)) {\r\n\t\t\treturn Long.decode(\"0x5\"+getHandString(current5));\r\n\t\t}\r\n\t\tlong kind3 = checkKind3(current5);\r\n\t\tif(Long.compare(kind3, 0)!=0) {\r\n\t\t\treturn kind3;\r\n\t\t}\r\n\t\tlong pair2 = checkPair2(current5);\r\n\t\tif(Long.compare(pair2, 0)!=0) {\r\n\t\t\treturn pair2;\r\n\t\t}\r\n\t\tlong pair = checkPair(current5);\r\n\t\tif(Long.compare(pair, 0)!=0) {\r\n\t\t\treturn pair;\r\n\t\t}\r\n\t\t\r\n\t\treturn Long.decode(\"0x1\"+getHandString(current5));\r\n\t}",
"public Player getLoser() {\n\t\treturn getLeader() == player1 ? player2 : player1;\n\t}",
"private boolean makePair() {\n int pairs = -1;\n for (Integer key : this.cardOccurrence.keySet()) {\n int value = this.cardOccurrence.get(key);\n if (value == 2)\n pairs = key;\n }\n //Means no keys w/ occurrence 2\n if (pairs == -1)\n return false;\n ArrayList<String> validHands = new ArrayList<>();\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n int i = this.cards.size() - 1;\n\n //First find the pair and add them to the validHands\n while(i >= 0) {\n Card c = this.cards.get(i);\n if(c.sameValue(pairs))\n validHands.add(c.toString());\n i--;\n }\n\n //Then add kickers in order of magnitude\n i = this.cards.size() - 1;\n while(i >= 0 && validHands.size() < 5) {\n Card c = this.cards.get(i);\n if(!c.sameValue(pairs))\n validHands.add(c.toString());\n i--;\n }\n this.cardHand = new CardHand(validHands.toArray(new String[0]));\n return true;\n }",
"public int isConnectFour(){\n if(values.length < 4 && values[0].length < 4)\r\n return 0;\r\n // horizontal check\r\n for(int i = 0; i < values.length; i++){\r\n for(int j = 0; j < values[0].length - 3; j++){ // only check to 4th last column\r\n if(values[i][j] == 0)\r\n continue;\r\n else if(values[i][j] == 1 && values[i][j] == values[i][j + 1] && values[i][j] == values[i][j + 2] && values[i][j] == values[i][j + 3] ){ // check for 4 consecutive 1 matches\r\n tokenArray[i][j].setWinner(true); // set 4 tokens as winners\r\n tokenArray[i][j + 1].setWinner(true);\r\n tokenArray[i][j + 2].setWinner(true);\r\n tokenArray[i][j + 3].setWinner(true);\r\n return 1;\r\n }\r\n else if(values[i][j] == 2 && values[i][j] == values[i][j + 1] && values[i][j] == values[i][j + 2] && values[i][j] == values[i][j + 3] ){ // check for 4 consecutive 2 matches\r\n tokenArray[i][j].setWinner(true);\r\n tokenArray[i][j + 1].setWinner(true);\r\n tokenArray[i][j + 2].setWinner(true);\r\n tokenArray[i][j + 3].setWinner(true);\r\n return 2;\r\n }\r\n }\r\n }\r\n // vertical check\r\n for(int i = 0; i < values.length - 3; i++){ // only check to 4th last row\r\n for(int j = 0; j < values[0].length; j++){\r\n if(values[i][j] == 0)\r\n continue;\r\n else if(values[i][j] == 1 && values[i][j] == values[i + 1][j] && values[i][j] == values[i + 2][j] && values[i][j] == values[i + 3][j] ){ // check for 4 consecutive 1 matches\r\n tokenArray[i][j].setWinner(true);\r\n tokenArray[i + 1][j].setWinner(true);\r\n tokenArray[i + 2][j].setWinner(true);\r\n tokenArray[i + 3][j].setWinner(true);\r\n return 1;\r\n }\r\n else if(values[i][j] == 2 && values[i][j] == values[i + 1][j] && values[i][j] == values[i + 2][j] && values[i][j] == values[i + 3][j] ){ // check for 4 consecutive 2 matches\r\n tokenArray[i][j].setWinner(true);\r\n tokenArray[i + 1][j].setWinner(true);\r\n tokenArray[i + 2][j].setWinner(true);\r\n tokenArray[i + 3][j].setWinner(true);\r\n return 2;\r\n }\r\n }\r\n }\r\n // diagonal check (top-left to bottom-right)\r\n for(int i = 0; i < values.length - 3; i++){ // only check to 4th last row\r\n for(int j = 0; j < values[0].length - 3; j++){ // only check to 4th last column\r\n if(values[i][j] == 0)\r\n continue;\r\n else if(values[i][j] == 1 && values[i][j] == values[i + 1][j + 1] && values[i][j] == values[i + 2][j + 2] && values[i][j] == values[i + 3][j + 3] ){ // check for 4 consecutive 1 matches\r\n tokenArray[i][j].setWinner(true);\r\n tokenArray[i + 1][j + 1].setWinner(true);\r\n tokenArray[i + 2][j + 2].setWinner(true);\r\n tokenArray[i + 3][j + 3].setWinner(true);\r\n return 1;\r\n }\r\n else if(values[i][j] == 2 && values[i][j] == values[i + 1][j + 1] && values[i][j] == values[i + 2][j + 2] && values[i][j] == values[i + 3][j + 3] ){ // check for 4 consecutive 2 matches\r\n tokenArray[i][j].setWinner(true);\r\n tokenArray[i + 1][j + 1].setWinner(true);\r\n tokenArray[i + 2][j + 2].setWinner(true);\r\n tokenArray[i + 3][j + 3].setWinner(true);\r\n return 2;\r\n }\r\n }\r\n }\r\n // diagonal check (top-right to bottom-left)\r\n for(int i = 0; i < values.length - 3; i++){\r\n for(int j = 3; j < values[0].length; j++){\r\n if(values[i][j] == 0)\r\n continue;\r\n else if(values[i][j] == 1 && values[i][j] == values[i + 1][j - 1] && values[i][j] == values[i + 2][j - 2] && values[i][j] == values[i + 3][j - 3] ){ // check for 4 consecutive 1 matches\r\n tokenArray[i][j].setWinner(true);\r\n tokenArray[i + 1][j - 1].setWinner(true);\r\n tokenArray[i + 2][j - 2].setWinner(true);\r\n tokenArray[i + 3][j - 3].setWinner(true);\r\n return 1;\r\n }\r\n else if(values[i][j] == 2 && values[i][j] == values[i + 1][j - 1] && values[i][j] == values[i + 2][j - 2] && values[i][j] == values[i + 3][j - 3] ){ // check for 4 consecutive 2 matches\r\n tokenArray[i][j].setWinner(true);\r\n tokenArray[i + 1][j - 1].setWinner(true);\r\n tokenArray[i + 2][j - 2].setWinner(true);\r\n tokenArray[i + 3][j - 3].setWinner(true);\r\n return 2;\r\n }\r\n }\r\n }\r\n return 0;\r\n }",
"@Override\n public boolean isStableMatching(Matching marriage) {\n\n int residentsNumber = marriage.getResidentCount();\n ArrayList<Integer> resident_matching = marriage.getResidentMatching();\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference();\n\n /*To check later if all slots are filled */\n int matchedResidents=0;\n\n /*loop through all residents*/\n for (int resident = 0; resident < residentsNumber; resident++) {\n if(resident_matching.get(resident)!=-1)\n matchedResidents++;\n int matchedHospital = resident_matching.get(resident);\n\n if (matchedHospital == -1)\n continue;\n\n /*loop through all residents before the selected resident in the matched hospital's preference list*/\n for (int residentToCompareIndex = 0; residentToCompareIndex < hospital_preference.get(matchedHospital).indexOf(resident); residentToCompareIndex++) {\n int residentToCompare = hospital_preference.get(matchedHospital).get(residentToCompareIndex);\n int matchedHospitalToCompare = resident_matching.get(residentToCompare);\n /*check for 1st instability*/\n if (matchedHospitalToCompare == -1)\n return false;\n /*check for 2nd instability*/\n else if (resident_preference.get(residentToCompare).indexOf(matchedHospital) < resident_preference.get(residentToCompare).indexOf(matchedHospitalToCompare))\n return false;\n }\n }\n if(matchedResidents!=marriage.totalHospitalSlots())\n return false;\n return true;\n }",
"public void determineWinner() {\n\t\twinner = \"\";\n\t\tif (board[6] > board[13])\n\t\t\twinner = player1.getName();\n\t\telse if (board[6] < board[13])\n\t\t\twinner = player2.getName();\n\t\telse {\n\t\t\tSystem.out.println(\"The game is a tie\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(winner + \" is the winner\");\n\t}",
"private boolean checkStraight(Player player) {\n\t\tint counter = 0; // counts the increments between 2 folowing cards\n\t\tint j;\n\n\t\tfor (j = 6; j >= 1; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.getValue() == player.getSevenCardsTempHand().get(j - 1).getRank().getValue() + 1)\n\n\t\t\t\tcounter++;\n\n\t\t\t// exclude lower values if there are any\n\t\t\tif (counter == 4)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (counter == 4) {\n\t\t\tplayer.setStraight(true);\n\t\t\tplayer.setHandRank(HandRank.STRAIGHT);\n\n\t\t\t// init 5 cards hand\n\t\t\tfor (int i = 0; i < hand.length; i++)\n\t\t\t\thand[i] = player.getSevenCardsTempHand().get(j + i);\n\n\t\t\tplayer.setFiveCardsHand(hand);\n\t\t\treturn true;\n\t\t}\n\n\t\t// Special \"wheel straight\" case (Ace to 5)\n\t\tif (player.getSevenCardsTempHand().get(0).getRank().equals(Card.Rank.TWO)\n\t\t\t\t&& player.getSevenCardsTempHand().get(1).getRank().equals(Card.Rank.THREE)\n\t\t\t\t&& player.getSevenCardsTempHand().get(2).getRank().equals(Card.Rank.FOUR)\n\t\t\t\t&& player.getSevenCardsTempHand().get(3).getRank().equals(Card.Rank.FIVE)\n\t\t\t\t&& player.getSevenCardsTempHand().get(6).getRank().equals(Card.Rank.ACE)) {\n\n\t\t\tplayer.setStraight(true);\n\t\t\tplayer.setHandRank(HandRank.STRAIGHT);\n\t\t\t\n\t\t\t// init 5 cards hand\n\t\t\thand[0] = player.getSevenCardsTempHand().get(6);\n\t\t\tfor (int i = 1; i < hand.length; i++)\n\t\t\t\thand[i] = player.getSevenCardsTempHand().get(i-1);\n\t\t\t\n\t\t\tplayer.setFiveCardsHand(hand);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"@Test\n\tpublic void kingOnThroneBlackPieceRightWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\t//moving pieces out so capture can occur\n\t\td.set(24,68);\n\t\td.set(7,29);\n\t\td.set(36,119);\n\t\td.set(11,106);\n\t\td.set(20,33);\n\t\td.set(4,85);\n\t\td.set(35,118);\n\t\td.set(3,95);\n\t\td.set(25,62);\n\t\td.set(4,63);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(63);\n\t\tassertTrue(6==test_arr.get(0).getX() && 5==test_arr.get(0).getY());\n\n\t}",
"private static int leftScore(char piece, State state, int row, int col) {\n\t\tif(col != 0 && state.getGrid()[row][col-1] == piece) {\n\t\t\treturn NEXT_TO;\n\t\t}\n\t\telse {\n\t\t\treturn ZERO;\n\t\t}\n\t}",
"Match getTeam2LooserOfMatch();",
"public boolean passPlayer() {\n if (this.state == 2) {\n if (this.playerBet != this.serverBet && this.money_server != 0 && this.money_player !=0) {\n return false;\n }\n // player moves and is dealer\n if (this.dealer == 1) {\n this.betRound += 1;\n if(this.betRound == 1){\n this.state = 3;\n }\n else{\n this.state = 4;\n }\n return true;\n } else {\n this.state = 1;\n return true;\n }\n } else {\n // server moves and is dealer\n if (this.dealer == 0) {\n this.betRound += 1;\n if(this.betRound == 1){\n this.state = 3;\n }\n else{\n this.state = 4;\n }\n return true;\n } else {\n this.state = 2;\n return true;\n }\n }\n }",
"public String getPlayerState() {\n String playerState = name + \" \" + actionArray[0] \n + \" \" + actionArray[1] + \" \" + actionArray[2] + \" \" + colorID + \" \";\n return playerState;\n }",
"public boolean CheckVictory()\n {\n\n for (int i = 0; i < 6; i++) {\n if(isFiveAligned(\n getCell(i, 0),\n getCell(i, 1),\n getCell(i, 2),\n getCell(i, 3),\n getCell(i, 4),\n getCell(i, 5) )){\n Winner=getCell(i, 2);\n return true;\n }\n }\n\n for (int i = 0; i < 6; i++) {\n if(isFiveAligned(\n getCell(0,i),\n getCell(1,i),\n getCell(2,i),\n getCell(3,i),\n getCell(4,i),\n getCell(5,i) )){\n Winner=getCell(2, i);\n return true;\n }\n }\n CellType[] arrTypes={getCell(0, 0),getCell(1, 1),getCell(2, 2),getCell(3, 3),\n getCell(4, 4),getCell(5, 5)};\n\n \n if(isFiveAligned(arrTypes))\n {\n Winner=arrTypes[2];\n return true;\n }\n\n CellType[] REVERSE_arrTypes={getCell(0, 5),getCell(1, 4),getCell(2, 3),getCell(3, 2),\n getCell(4, 1),getCell(5, 0)};\n\n \n\n if(isFiveAligned(REVERSE_arrTypes))\n {\n Winner=REVERSE_arrTypes[2]; \n return true;\n }\n\n\n if(isFiveAligned(new CellType[]{getCell(0, 1),\n getCell(1, 2),\n getCell(2, 3),\n getCell(3, 4),\n getCell(4, 5),\n CellType.None\n })) {\n Winner=getCell(3, 4);\n return true;\n }\n \n if(isFiveAligned(new CellType[]{getCell(1, 0),\n getCell(2, 1),\n getCell(3, 2),\n getCell(4, 3),\n getCell(5, 4),\n CellType.None\n })) {\n Winner=getCell(4, 3);\n return true;\n }\n\n if(isFiveAligned(new CellType[]{\n getCell(4, 0),\n getCell(3, 1),\n getCell(2, 2),\n getCell(1, 3),\n getCell(0, 4),\n CellType.None\n \n })){\n Winner=getCell(2, 2);\n return true;}\n\n if(isFiveAligned(new CellType[]{\n getCell(5, 1),\n getCell(4, 2),\n getCell(3, 3),\n getCell(2, 4),\n getCell(1, 5),\n CellType.None\n \n })){\n Winner=getCell(3, 3);\n return true;}\n\n \n \n\n\n \n\n return false;\n }",
"private void checkPair(Player player) {\n\t\tfor (int j = 6; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setPair(true);\n\t\t\t\tplayer.setHandRank(HandRank.PAIR);\n\n\t\t\t\t// add the pair to the 5 cards hand\n\t\t\t\thand[0] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[1] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public String getDroneState() {\n return \"mid:\" + mid +\n \";x:\" + x +\n \";y:\" + y +\n \";z:\" + z +\n \";pitch:\" + pitch +\n \";roll:\" + roll +\n \";yaw:\" + yaw +\n \";vgx:\" + speedX +\n \";vgy:\" + speedY +\n \";vgz:\" + speedZ +\n \";templ:\" + tempLow +\n \";temph:\" + tempHigh +\n \";tof:\" + tofDistance +\n \";h:\" + height +\n \";bat:\" + battery +\n \";baro:\" + barometer +\n \";time:\" + motorTime +\n \";agx:\" + accelerationX +\n \";agy:\" + accelerationY +\n \";agz:\" + accelerationZ +\n \";\";\n }",
"public int winner(){\n getValidMoves();\n if(check(1)!=0) return 1;\n else if(check(-1)!=0) return -1;\n else if(validX.size()==0) return 2;\n else return 0;\n }",
"private static int findWinner(ArrayList<ArrayList<Card>> hands,\n ArrayList<Card> tableCardsFinal) {\n FiveCardHand bestHand = null;\n int bestHandIndex = -1;\n for (int i = 0; i < hands.size(); i++) {\n ArrayList<Card> hand = hands.get(i);\n ArrayList<Card> handOfSeven = (ArrayList<Card>) hand.clone();\n handOfSeven.addAll(tableCardsFinal);\n FiveCardHand best = findBestHand(handOfSeven);\n\n if (bestHand == null) {\n bestHand = best;\n bestHandIndex = i;\n } else if (best.compareTo(bestHand) > 0) {\n bestHand = best;\n bestHandIndex = i;\n } else if (best.compareTo(bestHand) == 0) { // handle ties by returning hands.size()\n bestHandIndex = hands.size();\n }\n }\n\n return bestHandIndex;\n }",
"public boolean compareTo(SLR1_automat.State state);",
"private Hand getStraight(Hand handToCheck){\n\t\tHand hand = new FiveCardHand(handToCheck); //Make copy of the object so original doesn't get modified\n\t\tlog.debug(\"getStraight(hand = \"+hand+\")\");\n\t\tif(hand == null){\n\t\t\tlog.debug(\"Hand was null. Returning null\");\n\t\t\treturn null;\n\t\t}\n\t\tArrayList<Card> cards = hand.getCards();\n\t\tif(cards == null){\n\t\t\tlog.debug(\"The ArrayList<Card> inside the Hand Object was NULL. Returning null\");\n\t\t\treturn null;\n\t\t}\n\t\tlog.trace(\"Number of cards in Hand: \"+cards.size());\n\t\tSet<CardNumber> set = new HashSet<CardNumber>(hand.getNumberValues());\n\t\tif(set.size()<5){\n\t\t\tlog.debug(\"Only \"+set.size()+\" unique numbers\");\n\t\t\treturn null;\n\t\t}\n\t\tList<CardNumber> sorted = CollectionHelper.asSortedList(set);\n\t\tlog.debug(\"Sorted Size = \"+sorted.size());\n\t\tHand numberInSequence = new FiveCardHand();\n\t\tif(sorted.size()>1){\n\t\t\t//Inch worm a long, adding hands as this will handle more than 5 cards\n\t\t\tnumberInSequence.addHand(hand.getSubHandHavingNumber(sorted.get(0)));\n\t\t\tfor(int i=1; i<sorted.size();i++){\n\t\t\t\tif(CardUtil.areCardNumbersSequential(sorted.get(i-1),sorted.get(i))){\n\t\t\t\t\tnumberInSequence.addHand(hand.getSubHandHavingNumber(sorted.get(i)));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnumberInSequence = hand.getSubHandHavingNumber(sorted.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t //Check wrap around, (example: Ace)\n\t\t\tCardNumber start = sorted.get(0);\n\t\t\tCardNumber end = sorted.get(sorted.size()-1);\n\t\t\tlog.debug(\"Checking wrap around case, if \"+start+\" and \"\n\t\t\t\t\t+end+\" are sequential\");\n\t\t\tif(CardUtil.areCardNumbersSequential(start,end)){\n\t\t\t\tlog.debug(\"Wrap around Ace in play\");\n\t\t\t\t//Add the Ace\n\t\t\t\tnumberInSequence.addHand(hand.getSubHandHavingNumber(sorted.get(0)));\n\t\t\t}\n\t\t}\n\t\tlog.debug(\"Number of cards in sequence: \"+numberInSequence.getCards().size());\n\t\tif(numberInSequence.getCards().size()>4){\n\t\t\treturn numberInSequence;\n\t\t}\n\t\treturn null;\n\t}",
"void whichWay(Pair adder){\n\t\tSystem.out.print(\"arah kanan : \");\n\t\tswitch (adder.RIGHT_STATUS) {\n\t\tcase ATAS_BOTTOM:\n\t\t\tSystem.out.println(\"bawah\");\n\t\t\tbreak;\n\n\t\tcase ATAS_UP:\n\t\t\tSystem.out.println(\"atas\");\n\t\t\tbreak;\n\n\t\tcase ATAS_RIGHT:\n\t\t\tSystem.out.println(\"kanan\");\n\t\t\tbreak;\n\n\t\tcase ATAS_LEFT:\n\t\t\tSystem.out.println(\"kiri\");\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"public boolean winner() {\r\n return winner;\r\n }",
"public int checkChasingPlayer()\n {\n if(stunCountdown > 0)\n {\n chasingPlayer = false;\n return stunCountdown;\n }\n if(Game.getInstance().getPlayer().getCurrentRoom().isControlRoom())\n {\n chasingPlayer = false;\n return(-1);\n }\n else\n {\n List<Exit> neighbors = getCurrentRoom().getCollectionOfExits();\n for(Exit neighbor : neighbors)\n {\n if(getCurrentRoom().getExit(neighbor).equals(Game.getInstance().getPlayer().getCurrentRoom()) && neighbor.isOperating())\n {\n chasingPlayer = true;\n return(5 + (int) Math.floor(Math.random() * 6));\n }\n }\n chasingPlayer = false;\n return(-1);\n }\n }",
"@Override\n\tpublic int getAction() {\n\t\tint bstar = -1;\n\t\tdouble bstarval = Double.NEGATIVE_INFINITY;\n\t\tfor (int b : actions) {\n\t\t\t// now we need to look at each possible state transition\n\t\t\tdouble newStateSum = 0;\n\t\t\t// which means for every possible next state\n\t\t\tfor (int newX = 0; newX < beliefs.length; newX++) {\n\t\t\t\tfor (int newY = 0; newY < beliefs[0].length; newY++) {\n\t\t\t\t\tint[] newState = new int[]{newX,newY};\n\t\t\t\t\t// we need to look at every possible previous state\n\t\t\t\t\tdouble stateSum = 0;\n\t\t\t\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\t\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\t\t\t\tstateSum += beliefs[x][y] * // belief in CURRENT state if we were to make the observation, times\n\t\t\t\t\t\t\t\t\t\tworld.transitionProbability(newX, newY, x, y, b) * // probability of getting into the new state\n\t\t\t\t\t\t\t\t\t\tworld.getReward(newState);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnewStateSum += stateSum;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (newStateSum > bstarval) {\n\t\t\t\tbstar = b;\n\t\t\t\tbstarval = newStateSum;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"(EntropicExplorer) Choosing action: \" + world.actionToString(bstar) + \" (value = \" + bstarval + \")\");\n\t\tlastAction = bstar;\n\t\tadvanceBeliefs(bstar);\n\t\treturn bstar;\n\t}",
"public void checkState() {\r\n\t\tout.println(state);\r\n\t\tif(getEnergy() < 80 && getOthers() > 5) {\r\n\t\t\tstate = 1;\r\n\t\t\tturnLeft(getHeading() % 90);\r\n\t\t\tahead(moveAmount);\r\n\t\t}\r\n\t\telse if(getEnergy() < 80 && getOthers() < 5) {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void determineNextState(Cell cell)\n\t{\n\t\tMap<String, Cell> neighbors = cell.getNeighborsWrap();\n\t\tif (!cell.nextStateFinalized()) {\n\t\t\tList<Cell> emptyNeighbors = getEligibleNeighborsOfState(neighbors, EMPTY);\n\t\t\tif (cell.getState() == FISH) {\n\t\t\t\tupdateGenericSpeciesTraits(cell);\n\t\t\t\tif (emptyNeighbors.size() != 0) {\n\t\t\t\t\tif (readyToReproduce(cell)) {\n\t\t\t\t\t\treproduce(cell, emptyNeighbors);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmove(cell, emptyNeighbors);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (cell.getState() == SHARK) {\n\t\t\t\tupdateGenericSpeciesTraits(cell);\n\t\t\t\tincrementStarveTime(cell);\n\t\t\t\tList<Cell> fishNeighbors = new ArrayList<Cell>();\n\t\t\t\tfishNeighbors = getEligibleNeighborsOfState(neighbors, FISH);\n\t\t\t\tif (readyToStarve(cell)) {\n\t\t\t\t\tkill(cell);\n\t\t\t\t} else if (fishNeighbors.size() != 0) {\n\t\t\t\t\teat(fishNeighbors, cell);\n\t\t\t\t} else if (emptyNeighbors.size() != 0) {\n\t\t\t\t\tif (readyToReproduce(cell)) {\n\t\t\t\t\t\treproduce(cell, emptyNeighbors);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tCell movedTo = move(cell, emptyNeighbors);\n\t\t\t\t\t\tincrementStarveTime(movedTo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Integer counter : map.values()) {\n\t\t\t\tif (map.size() == 2 && counter == 4)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public Bearing rightFrom() {\n return this.get(((this.bearing + 2) + 8) % 8);\n }",
"@Override\n public String getState() {\n StringBuilder builder = new StringBuilder();\n StringBuilder listPitches = listAllPitches(this.getFinalBeat());\n int length = this.getFinalBeat();\n\n builder.append(listPitches);\n\n for (int i = 0; i < length; i++) {\n builder.append(\"\\n\" + padded(i, length) + notesToString(getNotesPlayingAtBeat(i), i));\n }\n return builder.toString();\n }",
"private void checkWinner() {\n\t\tif(player.getHandVal() == BLACKJACK && dealer.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"Both players have Blackjack!\\n\");\n\t\t\tresult = \"TIE\";\n\t\t}\n\t\telse if (player.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"The Player has Blackjack!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if (dealer.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"The Dealer has Blackjack!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(player.getHandVal() > BLACKJACK && dealer.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"Both players bust!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(player.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"The Player has busted!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(dealer.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"The Dealer has busted!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if(player.getHandVal() > dealer.getHandVal()) {\n\t\t\tSystem.out.println(\"The Player has a higher score!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if(player.getHandVal() < dealer.getHandVal()){\n\t\t\tSystem.out.println(\"The dealer has a higher score!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Both players have the same score!\\n\");\n\t\t\tresult = \"TIE\";\n\t\t}\n\t}",
"Match getTeam1LooserOfMatch();",
"public boolean determineWinner(){\n // search top down\n for(int x = 0; x < SIZE; x++){\n if(!stacks[x][0].isEmpty()){\n Point startingPoint = new Point(x, 0);\n ArrayList<Point> visited = new ArrayList<>();\n visited.add(startingPoint);\n TakTree<TakPiece> tree = new TakTree<>();\n tree.addRoot(getTop(startingPoint));\n treeBuilder(tree, startingPoint, visited);\n }\n\n if(whiteWins && blackWins){ // Only exit if we have found that both win\n return true;\n }\n }\n\n for(int y = 1; y < SIZE; y++){\n if(!stacks[0][y].isEmpty()){\n Point startingPoint = new Point(0, y);\n ArrayList<Point> visited = new ArrayList<>();\n visited.add(startingPoint);\n TakTree<TakPiece> tree = new TakTree<>();\n tree.addRoot(getTop(startingPoint));\n treeBuilder(tree, startingPoint, visited);\n }\n\n if(whiteWins && blackWins){ // Only exit if we have found that both win\n return true;\n }\n }\n\n // did we find a winner?\n return whiteWins || blackWins;\n }",
"public Match[] getMale16Winners() {\n return sixteen;\n }",
"public String winner() {\n\t\tif (numFire == 0 && numWater != 0) {\n\t\t\treturn \"Water\";\n\t\t} else if (numWater == 0 && numFire != 0) {\n\t\t\treturn \"Fire\";\n\t\t} else if (numWater == 00 && numFire == 0) {\n\t\t\treturn \"No one\";\n\t\t}\n\t\treturn null;\n\t}",
"private boolean twoPairTest(int index)\n\t{\n\t\tboolean twopair = false;\n\t\tint last = index;\n\t\tindex += 2;\n\t\t\n\t\twhile (index<(hand.length-1) && (!twopair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\ttwopair = true;\n\t\t\t\thandScore += 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// resolve kickers\n\t\tif (twopair)\n\t\t{\n\t\t\tif (index==2) handScore += intRep[4];\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (last==0) handScore += intRep[2];\n\t\t\t\telse handScore += intRep[0];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn twopair;\n\t}",
"public void testRingElection() {\n \t\tfinal RingElection model = new RingElection();\n \t\tfinal Formula checkAtMostOneElected = model.declsAndFacts().and(model.atMostOneElected().not());\n \t\tfinal Solution sol = solve(checkAtMostOneElected, model.bounds(5,10));\n //\t\tUNSATISFIABLE\n //\t\tp cnf 8665 29590 \n //\t\tprimary variables: 325\n \t\tassertEquals(Solution.Outcome.UNSATISFIABLE, sol.outcome());\n \t\tassertEquals(325, sol.stats().primaryVariables());\n \t\tassertEquals(8665, sol.stats().variables());\n \t\tassertEquals(29590, sol.stats().clauses());\n \t}"
] |
[
"0.56213576",
"0.5526622",
"0.5316568",
"0.53022146",
"0.52862346",
"0.524452",
"0.5233836",
"0.5216572",
"0.5207587",
"0.51843494",
"0.51803815",
"0.5180254",
"0.5169012",
"0.51632416",
"0.5141661",
"0.51380265",
"0.51274335",
"0.5123758",
"0.5108488",
"0.5102766",
"0.50933003",
"0.50787526",
"0.5044576",
"0.5038362",
"0.5022838",
"0.5021805",
"0.5015873",
"0.5009128",
"0.4985627",
"0.49829414",
"0.49785474",
"0.49783885",
"0.49755207",
"0.49747598",
"0.49397817",
"0.49396455",
"0.49309596",
"0.4922886",
"0.49207315",
"0.49115014",
"0.49083605",
"0.4907381",
"0.49006703",
"0.48840466",
"0.4879562",
"0.48775473",
"0.48655954",
"0.48461908",
"0.4841047",
"0.48360267",
"0.48298442",
"0.482702",
"0.48259068",
"0.48258403",
"0.48258045",
"0.48247454",
"0.48239732",
"0.48216036",
"0.4821151",
"0.4817141",
"0.4816923",
"0.48158112",
"0.48132038",
"0.4809573",
"0.48092473",
"0.48062208",
"0.48002523",
"0.4799616",
"0.47972333",
"0.47943604",
"0.47939965",
"0.47930473",
"0.4791761",
"0.47912169",
"0.47841132",
"0.47839624",
"0.47838706",
"0.47831976",
"0.47789925",
"0.47751033",
"0.47706443",
"0.47611237",
"0.47532225",
"0.47456303",
"0.474476",
"0.47404885",
"0.47401294",
"0.47377205",
"0.4727468",
"0.4727419",
"0.47114155",
"0.471032",
"0.47075686",
"0.470298",
"0.4702526",
"0.47025168",
"0.46971086",
"0.4695075",
"0.46914184",
"0.4687811"
] |
0.53721064
|
2
|
from StackOverflow post by Dave Discoid, at
|
public double getAngle(float x, float y )
{
double dx = x - centerX;
// Minus to correct for coord re-mapping
double dy = -(y - centerY);
double inRads = Math.atan2(dy,dx);
// We need to map to coord system when 0 degree is at 3 O'clock, 270 at 12 O'clock
if (inRads < 0)
inRads = Math.abs(inRads);
else
inRads = 2*Math.PI - inRads;
return Math.toDegrees(inRads);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"private void poetries() {\n\n\t}",
"public abstract String mo13682d();",
"protected boolean func_70041_e_() { return false; }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"void mo57277b();",
"public abstract void mo6549b();",
"public void mo12628c() {\n }",
"public void mo21877s() {\n }",
"public abstract void mo27385c();",
"private void strin() {\n\n\t}",
"public abstract String mo118046b();",
"public abstract String mo41079d();",
"private void m50367F() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public abstract void mo27386d();",
"void mo57278c();",
"protected void mo6255a() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public abstract int mo9754s();",
"public void mo4359a() {\n }",
"@Override\n public void perish() {\n \n }",
"public abstract String mo9751p();",
"public void mo21779D() {\n }",
"public void m23075a() {\n }",
"public abstract String mo9239aw();",
"public final void mo91715d() {\n }",
"public void gored() {\n\t\t\n\t}",
"public void skystonePos4() {\n }",
"public abstract long mo9229aD();",
"@Override\n\tprotected void interr() {\n\t}",
"public void mo21787L() {\n }",
"public void mo55254a() {\n }",
"void mo72113b();",
"public void mo12930a() {\n }",
"public void mo3749d() {\n }",
"public abstract long mo13681c();",
"abstract String mo1748c();",
"public void mo21878t() {\n }",
"public void mo21825b() {\n }",
"public void mo21794S() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"void mo80457c();",
"static void feladat9() {\n\t}",
"public void mo9848a() {\n }",
"void mo41086b();",
"void mo21073d();",
"public abstract String mo11611b();",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo23813b() {\n }",
"private stendhal() {\n\t}",
"public void mo21782G() {\n }",
"void mo41083a();",
"public abstract void mo30696a();",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void mo21785J() {\n }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"static void feladat4() {\n\t}",
"public void mo115190b() {\n }",
"public void mo6081a() {\n }",
"void mo21072c();",
"void mo119582b();",
"public abstract Object mo26777y();",
"public abstract String mo9752q();",
"public void skystonePos6() {\n }",
"static void feladat7() {\n\t}",
"public void func_70305_f() {}",
"private void level7() {\n }",
"void m1864a() {\r\n }",
"public abstract void mo35054b();",
"public void mo97908d() {\n }",
"void mo60893b();",
"public void mo3376r() {\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public abstract int mo9753r();",
"public void mo21793R() {\n }",
"public abstract String mo41086i();",
"static void feladat6() {\n\t}",
"public void mo21791P() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"void mo80455b();",
"public boolean method_2453() {\r\n return false;\r\n }",
"void mo3194r();"
] |
[
"0.58606344",
"0.581255",
"0.56182253",
"0.5579475",
"0.54326355",
"0.5432073",
"0.5427588",
"0.5404399",
"0.5398087",
"0.5387073",
"0.53832966",
"0.5359471",
"0.5339923",
"0.5328878",
"0.53133005",
"0.5282545",
"0.52800196",
"0.52692753",
"0.524116",
"0.5240441",
"0.52202964",
"0.52166176",
"0.52075255",
"0.5206319",
"0.5206319",
"0.5206319",
"0.5206319",
"0.5206319",
"0.5206319",
"0.5206319",
"0.51711535",
"0.5168729",
"0.51675093",
"0.51618373",
"0.51555043",
"0.51454514",
"0.5136982",
"0.5128113",
"0.5120198",
"0.5100668",
"0.5100279",
"0.50875473",
"0.508651",
"0.5084279",
"0.5078965",
"0.5077074",
"0.50741345",
"0.5072545",
"0.50616366",
"0.5059518",
"0.5054227",
"0.50513726",
"0.50503767",
"0.5043518",
"0.5041357",
"0.50372446",
"0.5030238",
"0.50302064",
"0.5026781",
"0.5026733",
"0.5025141",
"0.50248957",
"0.50238556",
"0.50200653",
"0.501912",
"0.5018943",
"0.5017593",
"0.50132537",
"0.5009976",
"0.50059986",
"0.50059986",
"0.5004292",
"0.5003712",
"0.50032943",
"0.5001291",
"0.49993932",
"0.4998166",
"0.4994314",
"0.49895397",
"0.49890974",
"0.49867806",
"0.4986595",
"0.49847203",
"0.49845618",
"0.49773332",
"0.49758166",
"0.4974134",
"0.49740556",
"0.49719304",
"0.4971596",
"0.4968939",
"0.49674082",
"0.4966044",
"0.4956249",
"0.49503535",
"0.4947431",
"0.49444968",
"0.49397045",
"0.49384844",
"0.49346146",
"0.49263728"
] |
0.0
|
-1
|
"Call to 'super()' must be first statement in constructor body" fuck you too
|
protected void lateParse(JsonObject object, Class<T> resultClass) {
JsonArray array = object.getAsJsonArray("result");
for (int i = 0; i < array.size(); i++)
result.add(constructInstanceFromJson(resultClass, array.get(i).getAsJsonObject()));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public b3(){\n super();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"public Employee() {\r\n\t\t// super should be 1st line \r\n\t\tsuper();\r\n\t\tSystem.out.println(\"Hi i'm from constructor \");\r\n\t}",
"public Tbdcongvan36() {\n super();\n }",
"public Supercar() {\r\n\t\t\r\n\t}",
"DummyCanvas() {\n super(null);\n // super(null); ----------------ADDED TO COMPILE -----------------------------------------\n }",
"public Parent() {\n super();\n }",
"O() { super(null); }",
"private BigB()\r\n{\tsuper();\t\r\n}",
"public Tbdtokhaihq3() {\n super();\n }",
"public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }",
"public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }",
"public SuperProduct() {\n\t\tsuper();\n\t}",
"public Boop() {\n\t\tsuper();\n\t}",
"public Coche() {\n super();\n }",
"public StudentPlayer() {\n super(\"260719721\");\n }",
"Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}",
"public StudentPlayer() {\n super(\"260622641\");\n }",
"public ConStructorInheritance(){\r\n\t\t\r\n\t\tSystem.out.println(\"Parent Class Constructor\");\r\n\t\t\r\n\t\t\r\n\t}",
"public Person(){\r\n\t\tsuper();\r\n\t}",
"public StudentPlayer() {\r\n super(\"260767897\");\r\n }",
"public RunMain0() {\n \n//#line 1\nsuper();\n }",
"Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }",
"public StudentPlayer() {\n super(\"260740998\");\n }",
"public PSRelation()\n {\n }",
"public Rook()\n {\n super();\n }",
"@Override\n public void init() {\n\n super.init();\n\n }",
"public Sandwich()\n\t{super();\n \n\t\t\n\t}",
"@Override // opcional\n public void init(){\n\n }",
"@Override\n protected void init() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"public ahr(aqu paramaqu)\r\n/* 20: */ {\r\n/* 21: 34 */ super(paramaqu);\r\n/* 22: 35 */ a(0.25F, 0.25F);\r\n/* 23: */ }",
"public CuerpoCeleste() {\n\t\t// Start of user code constructor for CuerpoCeleste)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"Doctor(){\n super();\n }",
"public SuperClass(int x)\r\n {\r\n _x = x;\r\n }",
"protected ChildType() {/* intentionally empty block */}",
"public Catelog() {\n super();\n }",
"public CyanSus() {\n\n }",
"private Main ()\n {\n super ();\n }",
"public Level3()\n {\n super();\n }",
"public FullCarException() {\r\n super(\"\");\r\n }",
"GitletException() {\n super();\n }",
"public SuperS()\r\n {\r\n setStep(0,0,0,0,0);\r\n }",
"@Override\n public void init() {}",
"public Dog ()\n {\n super (\"Dog\", \"Hi! My name is Snoop Dawg\");\n this.x = \"A bone\";\n /*\n * This dog has many features to it\n * Do not provoke it or else it will bite!\n * Otherwise, It's a nice dog so have fun!\n */\n \n \n }",
"public AbstractClassExtend() {\n\t\tsuper(\"hello\");\n\t}",
"private Supervisor() {\r\n\t}",
"protected void init() {\n // to override and use this method\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"public ArbolSplay() {\n super();\n }",
"public ChaCha()\n\t{\n\t\tsuper();\n\t}",
"public Clover() {\n\t\tsuper();\n\t}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"private CheckingTools() {\r\n super();\r\n }",
"public BarSeat(){\n\t\tsuper(1);\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"Third()\n\t{\n\t\tsuper();\n\t\tSystem.out.println(\"Third level Constructor\");\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void __sep__Constructors__() {}",
"protected Product()\n\t{\n\t}",
"public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }",
"public As21Id27()\n\t{\n\t\tsuper() ;\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public Anschrift() {\r\n }",
"private Converter()\n\t{\n\t\tsuper();\n\t}",
"@Override\n public void init() {\n }",
"@Override\n public void init() {\n }",
"public Child() {\n\t\tsuper(20);\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public Foret(){\n super(\"Foret\");\n }",
"public Bishop()\n {\n super();\n }",
"public Person1() {\n\t\tsuper();\n\t}",
"protected Approche() {\n }",
"public Pasien() {\r\n }",
"@Override\n void init() {\n }",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }",
"public MethodEx2() {\n \n }",
"public bsm(PlayerStat paramtq)\r\n/* 7: */ {\r\n/* 8: 9 */ super(paramtq.e);\r\n/* 9:10 */ this.j = paramtq;\r\n/* 10: */ }",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"public FrontFoot(){\n super(1);\n }",
"public CSSTidier() {\n\t}",
"public Exception() {\n\t\t\tsuper();\n\t\t}",
"@Override\r\n\tpublic void init() {}",
"protected abstract void construct();",
"@Override public void init()\n\t\t{\n\t\t}",
"private Main() {\n\n super();\n }",
"public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }"
] |
[
"0.72044",
"0.71490115",
"0.71137613",
"0.70336866",
"0.6995776",
"0.6865167",
"0.6846705",
"0.68327695",
"0.68285483",
"0.6826886",
"0.6798221",
"0.67758954",
"0.6772788",
"0.67594063",
"0.67594063",
"0.67551225",
"0.6739502",
"0.6713254",
"0.67109346",
"0.6707165",
"0.6701354",
"0.66975117",
"0.6692816",
"0.66669244",
"0.6658892",
"0.6641828",
"0.6620343",
"0.66193175",
"0.661241",
"0.6609139",
"0.65870154",
"0.6574641",
"0.65673244",
"0.65534866",
"0.6550597",
"0.6539278",
"0.6533625",
"0.65240777",
"0.6522258",
"0.652195",
"0.6517462",
"0.65142345",
"0.6513333",
"0.651314",
"0.64940816",
"0.64917266",
"0.64879125",
"0.64825547",
"0.64754194",
"0.6474615",
"0.6471452",
"0.6467155",
"0.6467155",
"0.6467155",
"0.6467155",
"0.6467155",
"0.6467155",
"0.6462007",
"0.6455612",
"0.64516383",
"0.6450862",
"0.64444864",
"0.643798",
"0.64361393",
"0.64318115",
"0.64318115",
"0.64281744",
"0.6427477",
"0.6423152",
"0.64213735",
"0.6419726",
"0.64183515",
"0.6416398",
"0.64128673",
"0.64117444",
"0.64117444",
"0.64090645",
"0.64057696",
"0.64034724",
"0.6400757",
"0.63983357",
"0.6391307",
"0.6383274",
"0.6377793",
"0.63709915",
"0.6370797",
"0.6367662",
"0.6362056",
"0.6361257",
"0.6361171",
"0.6355595",
"0.63503796",
"0.63480526",
"0.63427216",
"0.6341373",
"0.6340352",
"0.63370264",
"0.6335738",
"0.6335221",
"0.6334915",
"0.63306826"
] |
0.0
|
-1
|
Creates an input dialog with OK and Cancel buttons. Note that the dialog will have no visual representation (no widgets) until it is told to open. Note that the open method blocks for input dialogs.
|
public ManualResultsDialog(
Shell parentShell,
String dialogTitle,
String dialogMessage,
String initialValue,
String htmlDescription,
IInputValidator validator)
{
super(parentShell);
this.title = dialogTitle;
message = dialogMessage;
if ( initialValue == null ) {
value = "";
} // $NON-NLS-1$
else {
value = initialValue;
}
this.validator = validator;
this.html = htmlDescription;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}",
"private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }",
"public void showUserDefinedInputCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_USER_DEFINED_INPUT_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_USER_DEFINED_INPUT_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Custom Input\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n UserDefinedInputCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }",
"public InputDialog(java.awt.Frame parent, boolean modal, Controller controller) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(null);\n }",
"public static OkDialog waitForInfoDialog() {\n\t\treturn waitForDialogComponent(OkDialog.class);\n\t}",
"public OverviewSmallStringInputDialogOptions showInputDialog(String referenceID, String title, String textContent, String label, String initialValueText, String okText, String cancelText) {\n/*Generated! Do not modify!*/ InputDialogParameters inputDialogParameters = new InputDialogParameters();\n/*Generated! Do not modify!*/ inputDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ inputDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ inputDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ inputDialogParameters.setLabel(label);\n/*Generated! Do not modify!*/ inputDialogParameters.setInitialValueText(initialValueText);\n/*Generated! Do not modify!*/ inputDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ inputDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setInputDialogParameters(inputDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(\"showInputDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(label) + \", \" + escapeString(initialValueText) + \", \" + escapeString(okText) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallStringInputDialogOptions(this, inputDialogParameters);\n/*Generated! Do not modify!*/ }",
"protected abstract JDialog createDialog();",
"public void showDialog()\n {\n textInputDialog = new TextInputDialog();\n textInputDialog.setTitle(\"Choose File\");\n Pane pane = new Pane();\n pane.setPrefSize(350, 130);\n\n filePath = new TextField();\n filePath.setPrefSize(250, 20);\n filePath.setPromptText(\"Path File :\");\n filePath.setLayoutX(20);\n filePath.setLayoutY(50);\n\n\n JFXButton Browse = new JFXButton(\"Browse\");\n Browse.setStyle(\" -fx-background-color :#ffffff\");\n Browse.setLayoutX(280);\n Browse.setLayoutY(50);\n\n Browse.setButtonType(JFXButton.ButtonType.RAISED);\n\n pane.getChildren().addAll(filePath, Browse);\n textInputDialog.setHeaderText(null);\n textInputDialog.getDialogPane().setContent(pane);\n Browse.setOnMouseClicked(event ->\n {\n FileChooser fileChooser = new FileChooser();\n file = fileChooser.showOpenDialog(rootAnchorPane.getScene().getWindow());\n filePath.setText(file.getAbsolutePath());\n });\n }",
"public void showDialogWindow(Stage primaryStage, VBox vbox, String title, Button done) {\n // Create layout\n BorderPane layout = new BorderPane();\n layout.setCenter(vbox);\n\n // Show Modal Dialog Window\n Scene inputScene = new Scene(layout, 350, 250);\n final Stage userInputs = new Stage();\n userInputs.initModality(Modality.APPLICATION_MODAL);\n userInputs.initOwner(primaryStage);\n userInputs.setScene(inputScene);\n userInputs.setTitle(title);\n userInputs.show();\n\n // Add functionality to upload button\n done.setOnAction(e -> userInputs.close());\n }",
"@SuppressWarnings(\"unchecked\")\r\n private void initComponents() {//GEN-BEGIN:initComponents\r\n\r\n labelPrompt = new javax.swing.JLabel();\r\n textFieldInput = new javax.swing.JTextField();\r\n buttonCancel = new javax.swing.JButton();\r\n buttonOk = new javax.swing.JButton();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\r\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"org/jphototagger/lib/swing/Bundle\"); // NOI18N\r\n setTitle(bundle.getString(\"InputDialog.title\")); // NOI18N\r\n setName(\"Form\"); // NOI18N\r\n\r\n labelPrompt.setText(bundle.getString(\"InputDialog.labelPrompt.text\")); // NOI18N\r\n labelPrompt.setName(\"labelPrompt\"); // NOI18N\r\n\r\n textFieldInput.setName(\"textFieldInput\"); // NOI18N\r\n textFieldInput.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n textFieldInputKeyPressed(evt);\r\n }\r\n });\r\n\r\n buttonCancel.setMnemonic('a');\r\n buttonCancel.setText(bundle.getString(\"InputDialog.buttonCancel.text\")); // NOI18N\r\n buttonCancel.setName(\"buttonCancel\"); // NOI18N\r\n buttonCancel.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n buttonCancelActionPerformed(evt);\r\n }\r\n });\r\n\r\n buttonOk.setMnemonic('o');\r\n buttonOk.setText(bundle.getString(\"InputDialog.buttonOk.text\")); // NOI18N\r\n buttonOk.setName(\"buttonOk\"); // NOI18N\r\n buttonOk.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n buttonOkActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(textFieldInput, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)\r\n .addComponent(labelPrompt)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\r\n .addComponent(buttonCancel)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(buttonOk)))\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(labelPrompt)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(textFieldInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(buttonOk)\r\n .addComponent(buttonCancel))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }",
"public StandardDialog() {\n super();\n init();\n }",
"private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}",
"DialogResult show();",
"public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"public Dialog createAddPersonDialog(String title, String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getMyAcitivty());\n builder.setTitle(title);\n builder.setMessage(msg);\n\n // Use an EditText view to get user input.\n final EditText input = new EditText(getMyAcitivty());\n input.setText(\"\");\n builder.setView(input);\n\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n String value = input.getText().toString();\n Log.d(TAG, \"user input: \" + value);\n inputDialogResult = value;\n launchTrainingActivity();\n// AlertDialog dg =\n// SelectServerAlertDialog.createDialog(\n// getContext(),\n// \"Pick a Server\",\n// getAllIps(),\n// launchTrainingActivityAction,\n// cancelAction,\n// true);\n// dg.show();\n }\n });\n builder.setNegativeButton(\"Cancel\", SelectServerAlertDialog.cancelAction);\n return builder.create();\n }",
"public static JDialog createSummonerNameDialog(final ChampionSelectGUI t) {\n\t\tfinal JPanel contentPanel = new JPanel();\n\t\tJLabel request = new JLabel(\"Please enter your summoner name\");\n\t\tcontentPanel.add(request);\n\t\trequest.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal JTextField input = new JTextField(10);\n\t\tinput.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tcontentPanel.add(input);\n\t\tJButton ok = new JButton(\"ok\");\n\t\tcontentPanel.add(ok);\n\t\tok.setSize(200, 150);\n\t\tok.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal JDialog d = new JDialog(t, \"Summoner Name\", true);\n\t\td.setContentPane(contentPanel);\n\t\td.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\td.setSize(400, 100);\n\t\td.setLocationRelativeTo(t);\n\t\td.setLayout(new BoxLayout(contentPanel, BoxLayout.Y_AXIS));\n\t\td.addWindowListener(new WindowListener() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint ret = JOptionPane.showConfirmDialog(contentPanel, \"Are you sure you want to exit?\", \"Choose an option\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif (ret == 0) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinput.requestFocus();\n\t\t\t}\n\t\t\tpublic void windowClosed(WindowEvent e) {}\n\t\t\tpublic void windowIconified(WindowEvent e) { }\n\t\t\tpublic void windowDeiconified(WindowEvent e) { }\n\t\t\tpublic void windowActivated(WindowEvent e) { }\n\t\t\tpublic void windowDeactivated(WindowEvent e) { }\n\t\t});\n\t\tok.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (input.getText().equals(\"\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(contentPanel, \"Please input a summoner name.\", \"Message\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tt.summNameArr[0] = input.getText();\n\t\t\t\t\td.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn d;\n\t}",
"private static void showInputDialog(Context c, int titleID, int messageID, EntryType type, final IInputCallback listener){\n\t\t// Create a textview for the entry\n\t\tfinal EditText et = new EditText(c);\n\t\tswitch(type){\n\t\tcase Number:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_NUMBER);\n\t\t\tbreak;\n\t\tcase String:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_TEXT);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Must supply an EntryType for the input\");\n\t\t}\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\t\n\t\tbuilder.setTitle(titleID);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\t\tbuilder.setView(et)\n\t\t.setPositiveButton(R.string.okay, new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tlistener.onInput(et.getText().toString());\n\t\t\t}\n\t\t})\n\t\t.setNegativeButton(R.string.close, null);\n\t\t\n\t\tbuilder.create().show();\n\t}",
"private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}",
"private void createResultPopup() {\r\n resultDialog = new JDialog(parentFrame);\r\n resultDialog.setLayout(new BoxLayout(resultDialog.getContentPane(), BoxLayout.Y_AXIS));\r\n resultDialog.setAlwaysOnTop(true);\r\n Utilities.centerWindowTo(resultDialog, parentFrame);\r\n resultDialog.add(createResultLabel());\r\n resultDialog.add(createButtonDescription());\r\n resultDialog.add(createConfirmationButtons());\r\n resultDialog.pack();\r\n resultDialog.setVisible(true);\r\n }",
"@SuppressLint(\"InflateParams\")\n @Override @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n builder.setTitle(R.string.settings_manual_input_dialog_title)\n .setView(inflater.inflate(R.layout.dialog_settings_manual_input, null))\n .setPositiveButton(R.string.settings_manual_input_dialog_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Send the positive button event back to the host activity\n\n String tokenName = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_name)).getText().toString();\n String token = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_value)).getText().toString();\n String issuerUrl = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_url)).getText().toString();\n mListener.onSettingsManualInputDialogOkClick(tokenName, token, issuerUrl);\n }\n })\n .setNegativeButton(R.string.settings_manual_input_dialog_cancel, null);\n\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"void CloseOkDialog();",
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n if (validateInput(true)) {\n dispose();\n }\n }",
"private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}",
"private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }",
"public void getOKDialog(String title, String msg, String IjoomerButtonCaption, boolean isCancelable, final AlertNeutral target) {\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n\t\tint imageResource = android.R.drawable.ic_dialog_alert;\r\n\t\tDrawable image = getResources().getDrawable(imageResource);\r\n\r\n\t\tbuilder.setTitle(title).setMessage(msg).setIcon(image).setCancelable(false).setNeutralIjoomerButton(IjoomerButtonCaption, new DialogInterface.OnClickListener() {\r\n\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\ttarget.NeutralMathod(dialog, id);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.setCancelable(isCancelable);\r\n\t\talert.show();\r\n\t}",
"public abstract void initDialog();",
"public static void showDialog() {\n\t\tdialog.setLocationRelativeTo(Cytoscape.getDesktop());\n\t\tdialog.setVisible(true);\n\t}",
"void ShowWaitDialog(String title, String message);",
"public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}",
"public static ConfirmDialog show(final Window parentWindow,\n final String windowCaption, final String message,\n final String okCaption, final String cancelCaption,\n final Listener listener) {\n ConfirmDialog d = getFactory().create(windowCaption, message,\n okCaption, cancelCaption);\n d.show(parentWindow, listener, true);\n return d;\n }",
"public static String inputBox(String promptMsg) {\n return JOptionPane.showInputDialog(promptMsg);\n }",
"public IOHandlerDialog()\n {\n panel = new JOptionPane();\n }",
"private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }",
"public void showInputCategoryCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_INPUT_CATEGORY_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_INPUT_CATEGORY_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Input Category\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n InputCategoryCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }",
"private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }",
"@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}",
"private void showInputDialog() {\n final EditText input = new EditText(this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);\n input.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT));\n\n\n mHelper.confirm(R.string.add_comment, input,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String comment = input.getText().toString();\n\n // Add the comment\n Intent serviceIntent = new Intent(INaturalistService.ACTION_ADD_COMMENT, null, ObservationDetails.this, INaturalistService.class);\n serviceIntent.putExtra(INaturalistService.OBSERVATION_ID, mObservation.optInt(\"id\"));\n serviceIntent.putExtra(INaturalistService.COMMENT_BODY, comment);\n startService(serviceIntent);\n\n mCommentsIds = null;\n loadResultsIntoUI();\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Refresh the comment/id list\n IntentFilter filter = new IntentFilter(INaturalistService.ACTION_OBSERVATION_RESULT);\n registerReceiver(mObservationReceiver, filter);\n Intent serviceIntent2 = new Intent(INaturalistService.ACTION_GET_OBSERVATION, null, ObservationDetails.this, INaturalistService.class);\n serviceIntent2.putExtra(INaturalistService.OBSERVATION_ID, mObservation.optInt(\"id\"));\n startService(serviceIntent2);\n\n // Ask for a sync (to update the comment count)\n Intent serviceIntent3 = new Intent(INaturalistService.ACTION_SYNC, null, ObservationDetails.this, INaturalistService.class);\n startService(serviceIntent3);\n }\n },\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n }",
"public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }",
"void ShowOkDialog(String title, String message, OnClickListener listener);",
"private void showInputsDialog() {\r\n\r\n\t\tRadioListDialogFragment inputFragment = RadioListDialogFragment.newInstance(\r\n\t\t\t\tR.string.music_choose_input, R.array.input_items, this, \"input\");\r\n\t\tint i = getSelectedInput();\r\n\t\tinputFragment.setSelectedPosition(i);\r\n\t\tinputFragment.setShowsDialog(false);\r\n\t\tgetActivity().getSupportFragmentManager().beginTransaction()\r\n\t\t.add(inputFragment, \"inputFragment\").addToBackStack(null).commit();\r\n\t}",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"private void showCancelEditDialog() {\n AppDialog dialog = new AppDialog();\n Bundle args = new Bundle();\n args.putInt(AppDialog.DIALOG_ID, DIALOG_ID_CANCEL_EDIT);\n args.putString(AppDialog.DIALOG_TITLE, \"Quit?\");\n args.putString(AppDialog.DIALOG_MESSAGE, getString(R.string.cancelEditDiag_message));\n args.putInt(AppDialog.DIALOG_POSITIVE_RID, R.string.cancelEditDiag_positive_caption);\n args.putInt(AppDialog.DIALOG_NEGATIVE_RID, R.string.cancelEditDiag_negative_caption);\n dialog.setArguments(args);\n dialog.show(fragmentManager, null);\n }",
"private String promptLoadOrNew(){\r\n Object[] options = {\"Start A New Game!\", \"Load A Previous Game.\"};\r\n String result = (String) JOptionPane.showInputDialog(\r\n null,\r\n \"What would you like to do?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n options,\r\n 1);\r\n return result;\r\n \r\n }",
"public static String showInputDialog(String string) {\n\t\treturn null;\n\t}",
"public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }",
"public String[] showInputDialog()\n {\n class GetData extends JDialog implements ActionListener\n {\n JTextField textLogin = new JTextField();\n JPasswordField texPasswd = new JPasswordField(16);\n JButton btnOK = new JButton(\" OK \");\n JButton btnCancel = new JButton(\"Cancel\");\n String returnlogin = null;\n String returnPasswd = null;\n /**\n * Zpracovani dat\n */\n public GetData()\n {\n setModal(true);\n getContentPane().setLayout(new BorderLayout());\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setLocation(400,300);\n JPanel myLogin = new JPanel();\n myLogin.setLayout(new BorderLayout());\n JPanel myPasswd = new JPanel();\n myPasswd.setLayout(new BorderLayout());\n myLogin.add(new JLabel(\"Username\"),BorderLayout.NORTH);\n myLogin.add(textLogin,BorderLayout.CENTER);\n getContentPane().add(myLogin,BorderLayout.NORTH);\n myPasswd.add(new JLabel(\"Password\"),BorderLayout.NORTH);\n myPasswd.add(texPasswd,BorderLayout.CENTER);\n getContentPane().add(myPasswd,BorderLayout.CENTER);\n JPanel jp = new JPanel();\n btnOK.addActionListener(this);\n btnCancel.addActionListener(this);\n jp.add(btnOK);\n jp.add(btnCancel);\n getContentPane().add(jp,BorderLayout.SOUTH);\n pack();\n setVisible(true);\n }\n /**\n * Kliknuti na tlacitko a nasledne poslani jmena a hesla.\n */\n public void actionPerformed(ActionEvent ae)\n {\n if(ae.getSource() == btnOK){\n login = textLogin.getText();\n passwd = texPasswd.getText();\n }\n dispose();\n\n }\n }\n new GetData();\n return new String[] {login, passwd};\n }",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void AboutDialog() {\r\n final Dialog dialog = new Dialog(this); // Context, this, etc.\r\n dialog.setContentView(R.layout.about_dialog);\r\n dialog.setTitle(R.string.dialog_title);\r\n\r\n Button dialogButton = (Button) dialog.findViewById(R.id.dialog_cancel);\r\n // if button is clicked, close the custom dialog\r\n dialogButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n }\r\n });\r\n\r\n\r\n dialog.show();\r\n }",
"public void showUserDefinedInputEditDialog(final Input input) {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_USER_DEFINED_INPUT_EDIT_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_USER_DEFINED_INPUT_EDIT_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Edit Custom Input\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n UserDefinedInputEditDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n controller.setUserDefinedInput(input);\r\n\r\n stage.showAndWait();\r\n }",
"protected void closeDialogOk() {\n dispose();\n }",
"private void openCreateAccountDialog()\n {\n testDialog();\n\n }",
"private JDialog getPomocDialog() {\n\t\tif (pomocDialog == null) {\n\t\t\tpomocDialog = new JDialog(getHlavneOkno());\n\t\t\tpomocDialog.setSize(new Dimension(460, 180));\n\t\t\tpomocDialog.setMinimumSize(new Dimension(400, 150));\n\t\t\tpomocDialog.setPreferredSize(new Dimension(480, 220));\n\t\t\tpomocDialog.setLocation(new Point(200, 100));\n\t\t\tpomocDialog.setContentPane(getJContentPane());\n\t\t}\n\t\treturn pomocDialog;\n\t}",
"private Dialog<Pair<String, String>> getLoginDialog() {\n Dialog<Pair<String, String>> dialog = new Dialog<>();\n dialog.setTitle(\"Login\");\n dialog.setHeaderText(\"Look, a Custom Login Dialog\");\n\n ButtonType loginButtonType = new ButtonType(\"Login\", ButtonBar.ButtonData.OK_DONE);\n dialog.getDialogPane().getButtonTypes().addAll(loginButtonType, ButtonType.CANCEL);\n\n // Create the username and password labels and fields.\n GridPane grid = new GridPane();\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(20, 150, 10, 10));\n\n TextField username = new TextField();\n username.setPromptText(\"Username\");\n PasswordField password = new PasswordField();\n password.setPromptText(\"Password\");\n\n grid.add(new Label(\"Username:\"), 0, 0);\n grid.add(username, 1, 0);\n grid.add(new Label(\"Password:\"), 0, 1);\n grid.add(password, 1, 1);\n\n // Enable/Disable login button depending on whether a username was entered.\n Node loginButton = dialog.getDialogPane().lookupButton(loginButtonType);\n loginButton.setDisable(true);\n\n // Do some validation (using the Java 8 lambda syntax).\n username.textProperty().addListener((observable, oldValue, newValue) -> {\n loginButton.setDisable(newValue.trim().isEmpty());\n });\n\n dialog.getDialogPane().setContent(grid);\n\n // Request focus on the username field by default.\n Platform.runLater(username::requestFocus);\n\n // Convert the result to a username-password-pair when the login button is clicked.\n dialog.setResultConverter(dialogButton -> {\n if (dialogButton == loginButtonType) {\n return new Pair<>(username.getText(), password.getText());\n }\n return null;\n });\n return dialog;\n }",
"private void initDialog() {\n }",
"public static JDialog createRegionDialog(final ChampionSelectGUI t) {\n\t\tfinal JPanel contentPanel = new JPanel();\n\t\tJLabel request = new JLabel(\"Please select your region\");\n\t\tcontentPanel.add(request);\n\t\trequest.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal Choice input = new Choice();\n\t\tinput.add(\"---Select Region---\");\n\t\tinput.add(\"NA\");\n\t\tinput.add(\"EUW\");\n\t\tinput.add(\"KR\");\n\t\tinput.add(\"EUNE\");\n\t\tinput.add(\"BR\");\n\t\tinput.add(\"RU\");\n\t\tinput.add(\"TR\");\n\t\tinput.add(\"OCE\");\n\t\tinput.add(\"LAN\");\n\t\tinput.add(\"LAS\");\n\t\tcontentPanel.add(input);\n\t\tJButton ok = new JButton(\"ok\");\n\t\tcontentPanel.add(ok);\n\t\tok.setSize(200, 150);\n\t\tok.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal JDialog d = new JDialog(t, \"Region\", true);\n\t\td.setContentPane(contentPanel);\n\t\td.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\td.setSize(400, 100);\n\t\td.setLocationRelativeTo(t);\n\t\td.setLayout(new BoxLayout(contentPanel, BoxLayout.Y_AXIS));\n\t\td.addWindowListener(new WindowListener() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint ret = JOptionPane.showConfirmDialog(contentPanel, \"Are you sure you want to exit?\", \"Choose an option\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif (ret == 0) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void windowOpened(WindowEvent e) {}\n\t\t\tpublic void windowClosed(WindowEvent e) {}\n\t\t\tpublic void windowIconified(WindowEvent e) {}\n\t\t\tpublic void windowDeiconified(WindowEvent e) {}\n\t\t\tpublic void windowActivated(WindowEvent e) {}\n\t\t\tpublic void windowDeactivated(WindowEvent e) {}\n\t\t});\n\t\tok.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (input.getSelectedItem().equals(\"---Select Region---\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(contentPanel, \"Please select a region.\", \"Message\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tt.regionArr[0] = input.getSelectedItem();\n\t\t\t\t\td.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn d;\n\t}",
"public ExportNsbtxDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n\n getRootPane().setDefaultButton(jbAccept);\n jbAccept.requestFocus();\n }",
"private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }",
"public void show() {\r\n isOkPressed = false;\r\n\r\n dialog = RitDialog.create(context);\r\n dialog.setTitle(\"Inline Method\");\r\n dialog.setContentPane(contentPanel);\r\n\r\n buttonOk.requestFocus();\r\n\r\n HelpViewer.attachHelpToDialog(dialog, buttonHelp, \"refact.inline_method\");\r\n SwingUtil.initCommonDialogKeystrokes(dialog, buttonOk, buttonCancel, buttonHelp);\r\n\r\n dialog.show();\r\n }",
"@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }",
"public void loginAlert() {\n\t\tDialog<Pair<String, String>> dialog = new Dialog<>();\n\t\tdialog.setTitle(\"Login Dialog\");\n\t\tdialog.setHeaderText(\"Look, a Custom Login Dialog\");\n\n\t\t// Set the icon (must be included in the project).\n\t\tdialog.setGraphic(new ImageView(this.getClass().getResource(\"file:src/vista/img/usuario.png\").toString()));\n\n\t\t// Set the button types.\n\t\tButtonType loginButtonType = new ButtonType(\"Login\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().addAll(loginButtonType, ButtonType.CANCEL);\n\n\t\t// Create the username and password labels and fields.\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(20, 150, 10, 10));\n\n\t\tTextField username = new TextField();\n\t\tusername.setPromptText(\"Username\");\n\t\tPasswordField password = new PasswordField();\n\t\tpassword.setPromptText(\"Password\");\n\n\t\tgrid.add(new Label(\"Username:\"), 0, 0);\n\t\tgrid.add(username, 1, 0);\n\t\tgrid.add(new Label(\"Password:\"), 0, 1);\n\t\tgrid.add(password, 1, 1);\n\n\t\t// Enable/Disable login button depending on whether a username was entered.\n\t\tNode loginButton = dialog.getDialogPane().lookupButton(loginButtonType);\n\t\tloginButton.setDisable(true);\n\n\t\t// Do some validation (using the Java 8 lambda syntax).\n\t\tusername.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t loginButton.setDisable(newValue.trim().isEmpty());\n\t\t});\n\n\t\tdialog.getDialogPane().setContent(grid);\n\n\t\t// Request focus on the username field by default.\n\t\tPlatform.runLater(() -> username.requestFocus());\n\n\t\t// Convert the result to a username-password-pair when the login button is clicked.\n\t\tdialog.setResultConverter(dialogButton -> {\n\t\t if (dialogButton == loginButtonType) {\n\t\t return new Pair<>(username.getText(), password.getText());\n\t\t }\n\t\t return null;\n\t\t});\n\n\t\tOptional<Pair<String, String>> result = dialog.showAndWait();\n\n\t\tresult.ifPresent(usernamePassword -> {\n\t\t System.out.println(\"Username=\" + usernamePassword.getKey() + \", Password=\" + usernamePassword.getValue());\n\t\t});\n\t}",
"@Override\n public void start(Stage primaryStage) throws Exception {\n primaryStage.setTitle(\"JavaFX Standard Dialog\");\n Button primaryButton = new Button(\"Try me!\");\n //register event handler\n primaryButton.setOnAction(new EventHandler<ActionEvent>() {\n\n @Override\n public void handle(ActionEvent event) {\n //create a confirmation dialog (alert)\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }\n });\n //set primary application stage\n StackPane root = new StackPane();\n // add button to the stage\n root.getChildren().add(primaryButton);\n primaryStage.setScene(new Scene(root, 400, 250));\n primaryStage.show();\n }",
"private void ConnectDialog(){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n\t\tbuilder.setIcon(R.mipmap.ic_launcher);\n\t\tbuilder.setTitle(\"请输入主机名称和密码\");\n\t\t// 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n\t\tView view = LayoutInflater.from(MainActivity.this).inflate(R.layout.dialog, null);\n\t\t// 设置我们自己定义的布局文件作为弹出框的Content\n\t\tbuilder.setView(view);\n\n\t\tfinal EditText username = (EditText)view.findViewById(R.id.username);\n\t\tfinal EditText password = (EditText)view.findViewById(R.id.password);\n\n\t\tbuilder.setPositiveButton(\"确定\", new DialogInterface.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tString a = username.getText().toString().trim();\n\t\t\t\tString b = password.getText().toString().trim();\n\n\t\t\t\tSwitchToSlaveRemoteController(a,b);\n\t\t\t}\n\t\t});\n\t\tbuilder.setNegativeButton(\"取消\", new DialogInterface.OnClickListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\n\t\t\t}\n\t\t});\n\t\tbuilder.show();\n\t}",
"private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public static JDialog waitJFileChooserDialog() {\n return (JDialogOperator.\n waitJDialog(new JFileChooserJDialogFinder(JemmyProperties.\n getCurrentOutput())));\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n \temployee.setId(Integer.parseInt(idLabel.getText()));\r\n \temployee.setFirstName(firstNameField.getText());\r\n \temployee.setLastName(lastNameField.getText());\r\n \temployee.setIndustry(industryField.getText());\r\n \temployee.setWorkType(workTypeField.getText());\r\n \temployee.setAddress(addressField.getText());\r\n \t\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"public StallEditDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n cancelButton.requestFocus();\n okPressed = false;\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"public WinPrompt()\n {\n //Create a label to display text\n Label youWin = new Label(\"Winner, Game Over!\");\n\n //build ok button\n Button ok = new Button(\"Ok\");\n\n //once ok is clicked just close the prompt\n ok.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n close();\n }\n });\n\n //generate scene\n VBox root = new VBox();\n root.setPadding(new Insets(30, 30, 30, 30));\n root.getChildren().addAll(youWin, ok);\n Scene s = new Scene(root);\n this.setScene(s);\n }",
"private JButton getOkButton() {\n if (okButton == null) {\n okButton = new JButton();\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n canceled = false;\n dispose();\n }\n });\n }\n return okButton;\n }",
"private void buildSuccessDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Success!\");\n\t\t//mainDialog.getContentPane().removeAll();\n\t\tJPanel p1 = new JPanel (new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\t\t//success text\n\t\tJLabel lab = new JLabel(\"Login Successful!\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//success image\n\t\tImageIcon img = new ImageIcon (\"./client_images/success.png\");\n\t\timg = new ImageIcon ( img.getImage().getScaledInstance(100,100,Image.SCALE_DEFAULT));\n\t\tJLabel imgLabel = new JLabel(img);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\tJButton ok = new JButton (\"Ok\");\n\t\t//pressing ok closes the application\n\t\t//register action listener (anonymous inner class is sufficient)\n\t\tok.addActionListener (new ActionListener(){\n\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\t//call GUI's close up method to gracefully release all\n\t\t\t\t\t\t\t//resources\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\tp1.add(ok,BorderLayout.SOUTH);\n\n\t\t//settings of the dialog box\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\n\t}",
"public static JDialog createTeamDialog(final ChampionSelectGUI t) {\n\t\tfinal JPanel contentPanel = new JPanel();\n\t\tJLabel request = new JLabel(\"Please select your team\");\n\t\tcontentPanel.add(request);\n\t\trequest.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal Choice input = new Choice();\n\t\tinput.add(\"---Select Team---\");\n\t\tinput.add(\"Blue\");\n\t\tinput.add(\"Red\");\n\t\tcontentPanel.add(input);\n\t\tJButton ok = new JButton(\"ok\");\n\t\tcontentPanel.add(ok);\n\t\tok.setSize(200, 150);\n\t\tok.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal JDialog d = new JDialog(t, \"Team\", true);\n\t\td.setContentPane(contentPanel);\n\t\td.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\td.setSize(400, 100);\n\t\td.setLocationRelativeTo(t);\n\t\td.setLayout(new BoxLayout(contentPanel, BoxLayout.Y_AXIS));\n\t\td.addWindowListener(new WindowListener() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint ret = JOptionPane.showConfirmDialog(contentPanel, \"Are you sure you want to exit?\", \"Choose an option\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif (ret == 0) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void windowOpened(WindowEvent e) {}\n\t\t\tpublic void windowClosed(WindowEvent e) {}\n\t\t\tpublic void windowIconified(WindowEvent e) { }\n\t\t\tpublic void windowDeiconified(WindowEvent e) { }\n\t\t\tpublic void windowActivated(WindowEvent e) { }\n\t\t\tpublic void windowDeactivated(WindowEvent e) { }\n\t\t});\n\t\tok.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (input.getSelectedItem().equals(\"---Select Team---\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(contentPanel, \"Please select a Team.\", \"Message\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tif (input.getSelectedItem().equals(\"Blue\")) {\n\t\t\t\t\t\tt.teamArr[0] = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tt.teamArr[0] = false;\n\t\t\t\t\t}\n\t\t\t\t\td.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn d;\n\t}",
"private void showInputDialog(TextView target, int length, String title) {\n InputDialog dialog = new InputDialog(mainActivity);\n dialog.setUp(target, length, title);\n dialog.setContents(target.getText().toString());\n dialog.show();\n }",
"private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }",
"public static CheckboxConfirmDialog show(final Window parentWindow,\n final String windowCaption, final String message,\n final String okCaption, final String cancelCaption,\n final Listener listener) {\n CheckboxConfirmDialog d = getFactory().create(windowCaption, message,\n okCaption, cancelCaption);\n d.show(parentWindow, listener, true);\n return d;\n }",
"public Dialog(String text) {\n initComponents( text);\n }",
"@Override\n\tpublic boolean performOk() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\t// Set the values from the fields\n\t\tpreferenceStore.setValue(DEFAULT_PASSWORD_LENGTH, spiLength.getSelection());\n\t\tpreferenceStore.setValue(USE_LOWERCASE_LETTERS, btnUseLowercase.getSelection());\n\t\tpreferenceStore.setValue(USE_UPPERCASE_LETTERS, btnUserUppercase.getSelection());\n\t\tpreferenceStore.setValue(USE_DIGITS, btnUseDigits.getSelection());\n\t\tpreferenceStore.setValue(USE_SYMBOLS, btnUseSymbols.getSelection());\n\t\tpreferenceStore.setValue(USE_EASY_TO_READ, btnUseEaseToRead.getSelection());\n\t\tpreferenceStore.setValue(USE_HEX_ONLY, btnUseHexOnly.getSelection());\n\n\t\t// Return true to allow dialog to close\n\t\treturn true;\n\t}",
"private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }",
"private void setupOpnameImportDialog( ) {\n\t// Create modal dialog for editing opname record\n String title = \"Update Opname Import (\" + Integer.toString(opnameKeys.size()) + \" records)\";\n\tif ( parentObject instanceof JFrame ) {\n\t dialog = new JDialog( ( JFrame )parentObject, title, true );\n\t} else if ( parentObject instanceof JDialog ) {\n\t dialog = new JDialog( ( JDialog )parentObject, title, true );\n\t} else {\n\t logger.severe( \"Unexpected parent object class: \" +\n\t\t\t parentObject.getClass( ).getName( ) );\n\t return;\n\t}\n\n\t// Set grid bag layout manager\n\tContainer container = dialog.getContentPane( );\n\tcontainer.setLayout( new GridBagLayout( ) );\n GridBagConstraints constraints = new GridBagConstraints( );\n\n //////////////////////////////////////////\n // Import Type Combo Box, Import Datum\n //////////////////////////////////////////\n\n constraints.anchor = GridBagConstraints.EAST;\n constraints.insets = new Insets( 5, 20, 5, 5 );\n constraints.gridx = 0;\n constraints.gridy = 1;\n constraints.gridwidth = 1;\n container.add( new JLabel( \"Import:\" ), constraints );\n\n // Setup a JComboBox for ImportType\n importTypeComboBox = new ImportTypeComboBox( conn, defaultImportTypeId );\n importTypeComboBox.addActionListener( ( ActionEvent actionEvent ) -> {\n if (importTypeComboBox.getSelectedImportTypeId( ) == 0) {\n importDatumSpinner.setEnabled(false);\n }\n else {\n importDatumSpinner.setEnabled(true);\n }\n } );\n\n final JPanel importPanel = new JPanel();\n importPanel.add( importTypeComboBox );\n\n // Import datum\n GregorianCalendar calendar = new GregorianCalendar( );\n if (defaultImportDatum == null) {\n defaultImportDatum = calendar.getTime();\n }\n\n calendar.add( Calendar.YEAR, -50 );\n Date earliestDate = calendar.getTime( );\n calendar.add( Calendar.YEAR, 100 );\n Date latestDate = calendar.getTime( );\n SpinnerDateModel importDatumSpinnerDatemodel = new SpinnerDateModel(defaultImportDatum,\n earliestDate,\n latestDate,\n Calendar.DAY_OF_MONTH );\n importDatumSpinner = new JSpinner( importDatumSpinnerDatemodel );\n importDatumSpinner.setEditor( new JSpinner.DateEditor( importDatumSpinner, \"dd-MM-yyyy\" ) );\n importPanel.add( importDatumSpinner );\n\n // Set the import datum to enabled or disabled according to the selected medium type ID\n if (importTypeComboBox.getSelectedImportTypeId( ) == 0) {\n importDatumSpinner.setEnabled(false);\n }\n else {\n importDatumSpinner.setEnabled(true);\n }\n\n constraints.insets = new Insets( 5, 0, 5, 20 );\n constraints.anchor = GridBagConstraints.WEST;\n constraints.gridx = GridBagConstraints.RELATIVE;\n constraints.gridwidth = 2;\n container.add( importPanel, constraints );\n\n\n\t//////////////////////////////////////////\n\t// Update/Insert, Cancel buttons\n\t//////////////////////////////////////////\n\n\tJPanel buttonPanel = new JPanel( );\n\n\tActionListener buttonPanelActionListener = ( ActionEvent actionEvent ) -> {\n boolean result = true;\n\n if ( actionEvent.getActionCommand( ).equals( \"updateOpnameImport\" ) ) {\n result = updateOpnameImport( );\n }\n\n // Any other actionCommand, including cancel, has no action\n if ( result ) {\n dialog.setVisible( false );\n }\n };\n\n\tJButton editOpnameButton = new JButton( \"Update (\" + Integer.toString(opnameKeys.size()) + \" opname records)\");\n\teditOpnameButton.setActionCommand( \"updateOpnameImport\" );\n\teditOpnameButton.addActionListener( buttonPanelActionListener );\n\tbuttonPanel.add( editOpnameButton );\n\n\tJButton cancelOpnameButton = new JButton( \"Cancel\" );\n\tcancelOpnameButton.setActionCommand( \"cancelOpnameImport\" );\n\tcancelOpnameButton.addActionListener( buttonPanelActionListener );\n\tbuttonPanel.add( cancelOpnameButton );\n\n constraints.anchor = GridBagConstraints.CENTER;\n constraints.insets = new Insets( 5, 20, 20, 20 );\n\tconstraints.gridx = 0;\n\tconstraints.gridy = 14;\n\tconstraints.gridwidth = 3;\n\tcontainer.add( buttonPanel, constraints );\n\n // Default dialog size\n final Dimension dialogSize = new Dimension( 400, 150 );\n\tdialog.setSize( dialogSize );\n\tdialog.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );\n\tdialog.setVisible( true );\n }",
"private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }",
"public void cancelDialog() {dispose();}",
"private void initializeUserInput(final String operation) {\n\n mDialogUserInput = new Dialog(this);\n mDialogUserInput.getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n LayoutInflater inflaterUser = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n mDialogUserInput.setContentView(inflaterUser.inflate(R.layout.dialog_user_input, null));\n mDialogUserInput.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n\n mEditTextUserInput = mDialogUserInput.findViewById(R.id.user_input_tv);\n mEditTextUserInputTitle = mDialogUserInput.findViewById(R.id.user_input_title_tv);\n TextView mTextViewOk = mDialogUserInput.findViewById(R.id.profile_ok);\n\n if (operation.equals(Constants.UPDATE_API)) {\n mEditTextUserInputTitle.setHint(getResources().getString(R.string.enter_title));\n } else if (operation.equals(Constants.CREATE_API)) {\n mEditTextUserInputTitle.setHint(getResources().getString(R.string.enter_extension));\n }\n\n if (operation.equals(Constants.UPDATE_API) || operation.equals(Constants.CREATE_API)) {\n mEditTextUserInputTitle.setVisibility(View.VISIBLE);\n } else {\n mEditTextUserInputTitle.setVisibility(View.GONE);\n }\n\n mTextViewOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n mDialogUserInput.dismiss();\n dialog.setMessage(\"Calling \" + operation + \" API.\");\n dialog.show();\n\n switch (operation) {\n case Constants.CREATE_API:\n if (!mEditTextUserInput.getText().toString().isEmpty() || !mEditTextUserInputTitle.getText().toString().isEmpty()) {\n\n Map<String, String> version = new HashMap<>();\n version.put(CreateVersionParams.CROPPING, CroppingParams.C_FIT);\n\n mPublitio.versions().createVersion(mEditTextUserInput.getText().toString(), mEditTextUserInputTitle.getText().toString(), version, new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.extension_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.LIST_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n\n Map<String, String> list = new HashMap<>();\n list.put(VersionsListParams.ORDER, OrderParams.NAME_ASC);\n\n mPublitio.versions().versionsList(mEditTextUserInput.getText().toString(), list, new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.provide_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.SHOW_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n\n mPublitio.versions().showVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.UPDATE_API:\n\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().updateVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n case Constants.DELETE_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().deleteVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n case Constants.RECONVERT_API:\n\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().reconvertVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n }\n }\n });\n\n mDialogUserInput.show();\n }",
"public OpenMonitorInstanceDialog() {\n super();\n setTitle(\"Open Monitor Instance\");\n initComponents();\n setLocationRelativeTo(getOwner());\n getRootPane().setDefaultButton(btnOpen);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(R.string.prompt_app_updated_title)\n .setMessage(R.string.prompt_app_updated_text)\n // Set the action buttons\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public void dialogoEditarUsuario() {\n vEditarUsuario = new V_EditarUsuario(new JFrame(), true);\n vEditarUsuario.setVisible(true);\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n environment.setName(nameField.getText());\r\n environment.setIP(hostField.getText());\r\n environment.setPort(Integer.parseInt(portField.getText()));\r\n environment.setLogin(loginField.getText());\r\n environment.setPassword(passwordField.getText());\r\n environment.setPathMOM(MOMPathField.getText());\r\n environment.setServer(serverField.getValue());\r\n environment.setService(serviceField.getValue());\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"protected abstract JTextComponent createPromptComponent();",
"public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }",
"protected Dialog onCreateDialog(int id) {\n if (id == 1) {\n AlertDialog.Builder adb = new AlertDialog.Builder(this);\n // заголовок\n adb.setTitle(\"PIN Removed\");\n // сообщение\n adb.setMessage(\"There will be no PIN entry screen when Application starts up.\");\n // иконка\n adb.setIcon(android.R.drawable.ic_dialog_info);\n adb.setNeutralButton(\"Ok\", myClickListener);\n // создаем диалог\n return adb.create();\n }\n return super.onCreateDialog(id);\n }",
"@Override\r\n\tprotected Dialog onCreateDialog(int id) {\r\n\t\tProgressDialog dialog = new ProgressDialog(this);\r\n\t\tdialog.setMessage(\"Please wait while saving...\");\r\n\t\tdialog.setIndeterminate(true);\r\n\t\tdialog.setCancelable(true);\r\n\t\treturn dialog;\r\n\t}",
"@Test\n\tpublic void testEnterOnInputElement() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getInputElement().sendEvent(DomEventType.ENTER);\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}",
"public static void dialog(final String texto) {\n\t\tfinal UiApplication uiApplication = UiApplication.getUiApplication();\n\t\tuiApplication.invokeAndWait(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tDialog screen = new Dialog(Dialog.D_OK, texto, Dialog.OK,\n\t\t\t\t\t\tBitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),\n\t\t\t\t\t\tDialog.VERTICAL_SCROLL);\n\t\t\t\tuiApplication.pushGlobalScreen(screen,\n\t\t\t\t\t\tUiApplication.GLOBAL_MODAL,\n\t\t\t\t\t\tUiApplication.GLOBAL_SHOW_LOWER);\n\t\t\t}\n\t\t});\n\t}",
"private void close()\n {\n value.setValueString( input.getText() );\n // check to see if the value is valid:\n if( value.isValid() )\n {\n // if so, then set accepted and get rid of window:\n accepted = true;\n dispose();\n }\n else\n {\n // otherwise, throw an error to the user:\n DialogError emsg = new DialogError(this,\" Invalid value, try again. \");\n }\n }",
"public static String input (Resources loader,\r\n\t\tComponent frame, String name, Object args[], Object defaultVal) {\r\n\r\n\t\tString retVal = (String)JOptionPane.showInputDialog(frame,\r\n\t\t\tloader.getResourceMessage(name.concat(\".message\"), args),\r\n\t\t\tloader.getResourceMessage(name.concat(\".title\"), args),\r\n\t\t\tJOptionPane.QUESTION_MESSAGE, null, null, defaultVal);\r\n\r\n\t\treturn (retVal);\r\n\t}"
] |
[
"0.73429585",
"0.6914223",
"0.68628526",
"0.6331222",
"0.62616396",
"0.6207243",
"0.6160939",
"0.6119423",
"0.60992527",
"0.6060061",
"0.599031",
"0.5947301",
"0.59337276",
"0.58856475",
"0.5824524",
"0.58017236",
"0.5795457",
"0.57631385",
"0.57165205",
"0.5693597",
"0.56542903",
"0.562489",
"0.56064355",
"0.56042725",
"0.5579727",
"0.55631715",
"0.5561687",
"0.5546848",
"0.5522126",
"0.5521932",
"0.5518719",
"0.5502378",
"0.5501908",
"0.5501473",
"0.550144",
"0.5478707",
"0.5470831",
"0.54658186",
"0.5465272",
"0.5421448",
"0.53975517",
"0.539292",
"0.53849447",
"0.53787726",
"0.53780377",
"0.5375219",
"0.5373834",
"0.5367",
"0.53669924",
"0.5358307",
"0.53576463",
"0.534526",
"0.5339686",
"0.53379023",
"0.5337212",
"0.53356975",
"0.5335192",
"0.5331911",
"0.53315",
"0.53301257",
"0.53185415",
"0.5316635",
"0.5304673",
"0.5300055",
"0.529909",
"0.5286581",
"0.52681255",
"0.526669",
"0.5251415",
"0.5245329",
"0.5238792",
"0.52261394",
"0.5225404",
"0.5225033",
"0.52239746",
"0.5223627",
"0.5219228",
"0.5218291",
"0.52111906",
"0.5208355",
"0.5204626",
"0.52024204",
"0.52001476",
"0.5199509",
"0.5198821",
"0.51901394",
"0.5181004",
"0.5174221",
"0.5170301",
"0.51607597",
"0.5157824",
"0.5151728",
"0.5149802",
"0.5140021",
"0.51396626",
"0.5137618",
"0.51374626",
"0.51305014",
"0.512974",
"0.51231927",
"0.5121255"
] |
0.0
|
-1
|
Implemented with InputDialog which is extremely limiting and will need to be extended to handle a proper dialog.
|
public ManualResultsDialog(
String testCaseName,
String html,
IInputValidator validator)
{
this(TestLinkView.viewer.getControl().getShell(), testCaseName,
"Enter test case results note:", "", html, validator);
this.create();
this.setBlockOnOpen(true);
Button ok = this.getButton(IDialogConstants.OK_ID);
Button cancel = this.getButton(IDialogConstants.CANCEL_ID);
ok.setText("Passed");
cancel.setText("Failed");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = getResponse(input);\n if (response.equals(ExitCommand.COMMAND_WORD)) {\n handleExit();\n }\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = duke.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }",
"private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = duke.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userIcon),\n DialogBox.getDukeDialog(response, mrRobotIcon)\n );\n userInput.clear();\n if (response.equals(\"Goodbye friend.\")) {\n Platform.exit();\n }\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = mug.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getMugDialog(response, mugImage)\n );\n userInput.clear();\n if (input.toUpperCase().equals(\"BYE\")) {\n PauseTransition delay = new PauseTransition(Duration.seconds(1));\n delay.setOnFinished(event -> {\n Platform.exit();\n System.exit(0);\n });\n delay.play();\n }\n }",
"@FXML\n private void handleUserInput() {\n Parser parser = new Parser();\n String input = userInput.getText();\n String response;\n if (input.equals(\"bye\")) {\n response = ui.ending();\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n\n } else {\n response = parser.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n\n }\n userInput.clear();\n\n\n }",
"@FXML\n private void handleUserInput() {\n if (userInput.getText().trim().length() != 0) {\n String input = userInput.getText();\n String response = ailurus.getResponse(input);\n assert response.length() != 0 : \"response should not be empty\";\n assert userImage != null : \"userImage should not be null\";\n assert ailurusImage != null : \"ailurusImage should not be null\";\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getAilurusDialog(response, ailurusImage)\n );\n userInput.clear();\n if (Ailurus.isExit()) {\n userInput.setDisable(true);\n new Timer().schedule(new TimerTask() {\n @Override\n public void run() {\n Platform.exit();\n System.exit(0);\n }\n }, 1000);\n }\n } else {\n userInput.clear();\n }\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n if (input.toLowerCase().equals(\"bye\")) {\n String response = cait.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getCaitDialog(response, caitImage)\n );\n userInput.clear();\n Platform.exit();\n }\n String response = cait.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getCaitDialog(response, caitImage)\n );\n userInput.clear();\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n CommandResult dukeResponse;\n try {\n dukeResponse = duke.getResponse(input);\n runDialogContainer(input, dukeResponse);\n if (dukeResponse.isExit()) {\n runExitDialogContainer();\n }\n } catch (DukeException e) {\n runDialogContainer(input, e.getMessage());\n }\n userInput.clear();\n }",
"public OverviewSmallStringInputDialogOptions showInputDialog(String referenceID, String title, String textContent, String label, String initialValueText, String okText, String cancelText) {\n/*Generated! Do not modify!*/ InputDialogParameters inputDialogParameters = new InputDialogParameters();\n/*Generated! Do not modify!*/ inputDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ inputDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ inputDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ inputDialogParameters.setLabel(label);\n/*Generated! Do not modify!*/ inputDialogParameters.setInitialValueText(initialValueText);\n/*Generated! Do not modify!*/ inputDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ inputDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setInputDialogParameters(inputDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(\"showInputDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(label) + \", \" + escapeString(initialValueText) + \", \" + escapeString(okText) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallStringInputDialogOptions(this, inputDialogParameters);\n/*Generated! Do not modify!*/ }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n dialogContainer.getChildren().add(DialogBox.getUserDialog(input, userImage));\n if (duke.getResponse(input)) {\n CompletableFuture<Void> completableFuture = CompletableFuture.runAsync(() -> {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n completableFuture.thenRun(() -> Platform.exit());\n }\n userInput.clear();\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText().strip();\n String response = \" \";\n\n DialogBox userDb = null;\n DialogBox dukeDb = null;\n\n try {\n response = this.getResponse(input);\n userDb = DialogBox.getUserDialog(input, userImage);\n dukeDb = DialogBox.getDukeDialog(response, dukeImage);\n } catch (DukeException e) {\n userDb = DialogBox.getUserDialog(input, userImage);\n dukeDb = DialogBox.getDukeDialog(GUI.sendErrorMessage(e), dukeImage);\n dukeDb.modifyColorForError();\n }\n\n dialogContainer.getChildren().addAll(\n userDb,\n dukeDb\n );\n\n userInput.clear();\n\n // Exit window once duke chatbot is closed\n if (isClosed(response)) {\n System.exit(0);\n }\n }",
"public static String showInputDialog(String string) {\n\t\treturn null;\n\t}",
"protected abstract void fillPromptText();",
"protected abstract JTextComponent createPromptComponent();",
"private void showInputDialog(TextView target, int length, String title) {\n InputDialog dialog = new InputDialog(mainActivity);\n dialog.setUp(target, length, title);\n dialog.setContents(target.getText().toString());\n dialog.show();\n }",
"public void onClick(DialogInterface dialog, int id) {\n promptName = (userInput.getText()).toString();\n if(promptName==null || promptName.equals(\"\"))\n {\n starterPrompt();\n }\n }",
"private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }",
"private void showInputsDialog() {\r\n\r\n\t\tRadioListDialogFragment inputFragment = RadioListDialogFragment.newInstance(\r\n\t\t\t\tR.string.music_choose_input, R.array.input_items, this, \"input\");\r\n\t\tint i = getSelectedInput();\r\n\t\tinputFragment.setSelectedPosition(i);\r\n\t\tinputFragment.setShowsDialog(false);\r\n\t\tgetActivity().getSupportFragmentManager().beginTransaction()\r\n\t\t.add(inputFragment, \"inputFragment\").addToBackStack(null).commit();\r\n\t}",
"private void showInputDialog() {\n final EditText input = new EditText(this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);\n input.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT));\n\n\n mHelper.confirm(R.string.add_comment, input,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String comment = input.getText().toString();\n\n // Add the comment\n Intent serviceIntent = new Intent(INaturalistService.ACTION_ADD_COMMENT, null, ObservationDetails.this, INaturalistService.class);\n serviceIntent.putExtra(INaturalistService.OBSERVATION_ID, mObservation.optInt(\"id\"));\n serviceIntent.putExtra(INaturalistService.COMMENT_BODY, comment);\n startService(serviceIntent);\n\n mCommentsIds = null;\n loadResultsIntoUI();\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Refresh the comment/id list\n IntentFilter filter = new IntentFilter(INaturalistService.ACTION_OBSERVATION_RESULT);\n registerReceiver(mObservationReceiver, filter);\n Intent serviceIntent2 = new Intent(INaturalistService.ACTION_GET_OBSERVATION, null, ObservationDetails.this, INaturalistService.class);\n serviceIntent2.putExtra(INaturalistService.OBSERVATION_ID, mObservation.optInt(\"id\"));\n startService(serviceIntent2);\n\n // Ask for a sync (to update the comment count)\n Intent serviceIntent3 = new Intent(INaturalistService.ACTION_SYNC, null, ObservationDetails.this, INaturalistService.class);\n startService(serviceIntent3);\n }\n },\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n }",
"public void showUserDefinedInputCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_USER_DEFINED_INPUT_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_USER_DEFINED_INPUT_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Custom Input\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n UserDefinedInputCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }",
"private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }",
"private static void showInputDialog(Context c, int titleID, int messageID, EntryType type, final IInputCallback listener){\n\t\t// Create a textview for the entry\n\t\tfinal EditText et = new EditText(c);\n\t\tswitch(type){\n\t\tcase Number:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_NUMBER);\n\t\t\tbreak;\n\t\tcase String:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_TEXT);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Must supply an EntryType for the input\");\n\t\t}\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\t\n\t\tbuilder.setTitle(titleID);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\t\tbuilder.setView(et)\n\t\t.setPositiveButton(R.string.okay, new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tlistener.onInput(et.getText().toString());\n\t\t\t}\n\t\t})\n\t\t.setNegativeButton(R.string.close, null);\n\t\t\n\t\tbuilder.create().show();\n\t}",
"private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }",
"private void initializeUserInput(final String operation) {\n\n mDialogUserInput = new Dialog(this);\n mDialogUserInput.getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n LayoutInflater inflaterUser = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n mDialogUserInput.setContentView(inflaterUser.inflate(R.layout.dialog_user_input, null));\n mDialogUserInput.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n\n mEditTextUserInput = mDialogUserInput.findViewById(R.id.user_input_tv);\n mEditTextUserInputTitle = mDialogUserInput.findViewById(R.id.user_input_title_tv);\n TextView mTextViewOk = mDialogUserInput.findViewById(R.id.profile_ok);\n\n if (operation.equals(Constants.UPDATE_API)) {\n mEditTextUserInputTitle.setHint(getResources().getString(R.string.enter_title));\n } else if (operation.equals(Constants.CREATE_API)) {\n mEditTextUserInputTitle.setHint(getResources().getString(R.string.enter_extension));\n }\n\n if (operation.equals(Constants.UPDATE_API) || operation.equals(Constants.CREATE_API)) {\n mEditTextUserInputTitle.setVisibility(View.VISIBLE);\n } else {\n mEditTextUserInputTitle.setVisibility(View.GONE);\n }\n\n mTextViewOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n mDialogUserInput.dismiss();\n dialog.setMessage(\"Calling \" + operation + \" API.\");\n dialog.show();\n\n switch (operation) {\n case Constants.CREATE_API:\n if (!mEditTextUserInput.getText().toString().isEmpty() || !mEditTextUserInputTitle.getText().toString().isEmpty()) {\n\n Map<String, String> version = new HashMap<>();\n version.put(CreateVersionParams.CROPPING, CroppingParams.C_FIT);\n\n mPublitio.versions().createVersion(mEditTextUserInput.getText().toString(), mEditTextUserInputTitle.getText().toString(), version, new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.extension_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.LIST_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n\n Map<String, String> list = new HashMap<>();\n list.put(VersionsListParams.ORDER, OrderParams.NAME_ASC);\n\n mPublitio.versions().versionsList(mEditTextUserInput.getText().toString(), list, new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.provide_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.SHOW_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n\n mPublitio.versions().showVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.UPDATE_API:\n\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().updateVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n case Constants.DELETE_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().deleteVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n case Constants.RECONVERT_API:\n\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().reconvertVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n }\n }\n });\n\n mDialogUserInput.show();\n }",
"void showAddParameterDialog();",
"private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}",
"@FXML\n private void handleUserInput() {\n String input = inputTextField.getText();\n storeUserInputHistory(input);\n try {\n Command command = ParserFactory.parse(input);\n command.execute(tasks, storage, history);\n } catch (ChronologerException e) {\n e.printStackTrace();\n }\n printUserMessage(\" \" + input);\n printChronologerMessage(UiMessageHandler.getOutputForGui());\n inputTextField.clear();\n }",
"private void getUserInput() {\n getUserTextInput();\n getUserPhotoChoice();\n getUserRoomChoice();\n getUserBedroomsChoice();\n getUserBathroomsChoice();\n getUserCoownerChoice();\n getUserIsSoldChoice();\n getUserTypeChoice();\n mAmenitiesInput = Utils.getUserAmenitiesChoice(mBinding.chipGroupAmenities.chipSchool,\n mBinding.chipGroupAmenities.chipShop, mBinding.chipGroupAmenities.chipTransport,\n mBinding.chipGroupAmenities.chipGarden);\n }",
"public abstract void initDialog();",
"protected abstract JDialog createDialog();",
"void input(Window window, InputHandler inputHandler) throws Exception;",
"@Override\n\tpublic void handleInput() {\n\t\t\n\t}",
"private void initDialog() {\n }",
"private void promptSaveBatch() {\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,\n R.style.Dialog));\n final EditText numberInput = new EditText(this);\n numberInput.setInputType(InputType.TYPE_CLASS_NUMBER);\n numberInput.setHint(R.string.batch_hint);\n numberInput.setText(\"1\");\n builder.setView(numberInput);\n builder.setTitle(R.string.batch_title);\n builder.setNegativeButton(\"Cancel\", (dialog, which) -> {\n\n });\n builder.setPositiveButton(\"Save\", (dialog, which) -> {\n int size;\n try {\n size = Integer.parseInt(numberInput.getText().toString());\n size = Math.max(size, 1);\n saveBatch(size);\n } catch (Exception e) {\n runOnUiThread(() ->\n Toast.makeText(MainActivity.this,\n \"Enter an integer\",\n Toast.LENGTH_LONG).show());\n }\n });\n builder.show();\n }",
"@Nullable\r\n protected abstract Prompt acceptValidatedInput(@NotNull ConversationContext context, @NotNull String input);",
"public StandardDialog() {\n super();\n init();\n }",
"@Nullable\n/* */ protected abstract Prompt acceptValidatedInput(@NotNull ConversationContext paramConversationContext, @NotNull Number paramNumber);",
"private String promptLoadOrNew(){\r\n Object[] options = {\"Start A New Game!\", \"Load A Previous Game.\"};\r\n String result = (String) JOptionPane.showInputDialog(\r\n null,\r\n \"What would you like to do?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n options,\r\n 1);\r\n return result;\r\n \r\n }",
"public void acceptInput(int keyPressed){\r\n\t\tif (!done){\r\n\t\t\tif (keyPressed == Constants.KEY_UP){\r\n\t\t\t\tif (thisDialog.get(dialogToDisplay).isOption()){\r\n\t\t\t\t\tOption yada = (Option)thisDialog.get(dialogToDisplay);\r\n\t\t\t\t\tyada.moveSelectRect(true);\r\n\t\t\t\t}\r\n\t\t\t}else if (keyPressed == Constants.KEY_DOWN){\r\n\t\t\t\tif (thisDialog.get(dialogToDisplay).isOption()){\r\n\t\t\t\t\tOption yada = (Option)thisDialog.get(dialogToDisplay);\r\n\t\t\t\t\tyada.moveSelectRect(false);\r\n\t\t\t\t}\r\n\t\t\t}else if (keyPressed == Constants.KEY_ACCEPT){\r\n\t\t\t\tif (thisDialog.get(dialogToDisplay).isOption()){\r\n\t\t\t\t\tOption yada = (Option)thisDialog.get(dialogToDisplay);\r\n\t\t\t\t\toptionSelection = yada.getValue();\r\n\t\t\t\t\tLog.info(\"Value:\"+optionSelection);\r\n\t\t\t\t\tfor (int i=0; i< thisDialog.size();i++){\r\n\t\t\t\t\t\tif (thisDialog.get(i).getName().equals(optionSelection)){\r\n\t\t\t\t\t\t\tqueuedDialog = i;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//thisDialog.get(dialogToDisplay).switchBoxState();\r\n\t\t\t\t\tif (thisDialog.get(dialogToDisplay).getProceed().equals(Text.PROCEED_NEXT)){\r\n\t\t\t\t\t\t// if there are any values left in the arrayList, then increment the \r\n\t\t\t\t\t\t// queuedDialog\r\n\t\t\t\t\t\tif ((dialogToDisplay + 1) < thisDialog.size()){\r\n\t\t\t\t\t\t\tqueuedDialog=dialogToDisplay +1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else if (thisDialog.get(dialogToDisplay).getProceed().equals(Text.PROCEED_LAST)){\r\n\t\t\t\t\t\tif ((dialogToDisplay - 1) > 0){\r\n\t\t\t\t\t\t\tqueuedDialog=dialogToDisplay -1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else if (thisDialog.get(dialogToDisplay).getProceed().equals(Text.PROCEED_END)){\r\n\t\t\t\t\t\tthis.done = true;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tfor (int i=0; i<thisDialog.size();i++){\r\n\t\t\t\t\t\t\tif (thisDialog.get(i).getName().equals(thisDialog.get(dialogToDisplay).getProceed())){\r\n\t\t\t\t\t\t\t\tqueuedDialog = i;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// check to see if we've done something to change the queue\r\n\t\t\t\tconsiderQueue();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public InputDialog(java.awt.Frame parent, boolean modal, Controller controller) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(null);\n }",
"public void showDialog()\n {\n textInputDialog = new TextInputDialog();\n textInputDialog.setTitle(\"Choose File\");\n Pane pane = new Pane();\n pane.setPrefSize(350, 130);\n\n filePath = new TextField();\n filePath.setPrefSize(250, 20);\n filePath.setPromptText(\"Path File :\");\n filePath.setLayoutX(20);\n filePath.setLayoutY(50);\n\n\n JFXButton Browse = new JFXButton(\"Browse\");\n Browse.setStyle(\" -fx-background-color :#ffffff\");\n Browse.setLayoutX(280);\n Browse.setLayoutY(50);\n\n Browse.setButtonType(JFXButton.ButtonType.RAISED);\n\n pane.getChildren().addAll(filePath, Browse);\n textInputDialog.setHeaderText(null);\n textInputDialog.getDialogPane().setContent(pane);\n Browse.setOnMouseClicked(event ->\n {\n FileChooser fileChooser = new FileChooser();\n file = fileChooser.showOpenDialog(rootAnchorPane.getScene().getWindow());\n filePath.setText(file.getAbsolutePath());\n });\n }",
"private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"InputPromptTransmitter getInputPromptTransmitter();",
"@Override\n public StatusType getInput(Object object) {\n StatusType status = StatusType.PLAYING;\n do {\n try {\n this.display(); //displays the display method from this class\n\n //get the input command entered by user\n String input = this.getCommand();\n switch (input) {\n case \"D\":\n this.gamePreferencesControl.setGameDifficulty();\n break;\n case \"R\":\n return StatusType.RETURN;\n }\n }\n catch (MenuException ex) {\n //Prints out proper error message from Menu class...\n //error text is in Error enum class\n System.out.println(\"\\n\" + ex.getMessage());\n } \n } while (status != StatusType.RETURN);\n return status;\n }",
"public void showUserDefinedInputEditDialog(final Input input) {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_USER_DEFINED_INPUT_EDIT_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_USER_DEFINED_INPUT_EDIT_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Edit Custom Input\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n UserDefinedInputEditDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n controller.setUserDefinedInput(input);\r\n\r\n stage.showAndWait();\r\n }",
"private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}",
"public String getPrompt(){ return _prompt ; }",
"protected abstract void getInput();",
"public DialogPrompt(String title)\n {\n value = new PromptValueString(\"\",\"\");\n initUI(title,10);\n }",
"@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}",
"public JTextComponent getPromptComponent(JTextComponent txt)\n/* */ {\n/* 190 */ if (this.promptComponent == null) {\n/* 191 */ this.promptComponent = createPromptComponent();\n/* */ }\n/* 193 */ if ((txt.isFocusOwner()) && (PromptSupport.getFocusBehavior(txt) == PromptSupport.FocusBehavior.HIDE_PROMPT))\n/* */ {\n/* 195 */ this.promptComponent.setText(null);\n/* */ } else {\n/* 197 */ this.promptComponent.setText(PromptSupport.getPrompt(txt));\n/* */ }\n/* */ \n/* 200 */ this.promptComponent.getHighlighter().removeAllHighlights();\n/* 201 */ if ((txt.isFocusOwner()) && (PromptSupport.getFocusBehavior(txt) == PromptSupport.FocusBehavior.HIGHLIGHT_PROMPT))\n/* */ {\n/* 203 */ this.promptComponent.setForeground(txt.getSelectedTextColor());\n/* */ try {\n/* 205 */ this.promptComponent.getHighlighter().addHighlight(0, this.promptComponent.getText().length(), new DefaultHighlighter.DefaultHighlightPainter(txt.getSelectionColor()));\n/* */ }\n/* */ catch (BadLocationException e)\n/* */ {\n/* 209 */ e.printStackTrace();\n/* */ }\n/* */ } else {\n/* 212 */ this.promptComponent.setForeground(PromptSupport.getForeground(txt));\n/* */ }\n/* */ \n/* 215 */ if (PromptSupport.getFontStyle(txt) == null) {\n/* 216 */ this.promptComponent.setFont(txt.getFont());\n/* */ } else {\n/* 218 */ this.promptComponent.setFont(txt.getFont().deriveFont(PromptSupport.getFontStyle(txt).intValue()));\n/* */ }\n/* */ \n/* */ \n/* 222 */ this.promptComponent.setBackground(PromptSupport.getBackground(txt));\n/* 223 */ this.promptComponent.setHighlighter(new PainterHighlighter(PromptSupport.getBackgroundPainter(txt)));\n/* */ \n/* 225 */ this.promptComponent.setEnabled(txt.isEnabled());\n/* 226 */ this.promptComponent.setOpaque(txt.isOpaque());\n/* 227 */ this.promptComponent.setBounds(txt.getBounds());\n/* 228 */ Border b = txt.getBorder();\n/* */ \n/* 230 */ if (b == null) {\n/* 231 */ this.promptComponent.setBorder(txt.getBorder());\n/* */ } else {\n/* 233 */ Insets insets = b.getBorderInsets(txt);\n/* 234 */ this.promptComponent.setBorder(BorderFactory.createEmptyBorder(insets.top, insets.left, insets.bottom, insets.right));\n/* */ }\n/* */ \n/* */ \n/* 238 */ this.promptComponent.setSelectedTextColor(txt.getSelectedTextColor());\n/* 239 */ this.promptComponent.setSelectionColor(txt.getSelectionColor());\n/* 240 */ this.promptComponent.setEditable(txt.isEditable());\n/* 241 */ this.promptComponent.setMargin(txt.getMargin());\n/* */ \n/* 243 */ return this.promptComponent;\n/* */ }",
"@Override\n\t\t\t\tpublic boolean onKey(DialogInterface dialog, int keyCode,\n\t\t\t\t\t\tKeyEvent event) {\n\t return false;\n\t\t\t\t}",
"public override void Do()\r\n { \r\n if (TextEditor.UiScope == null)\r\n { \r\n // We dont want to process the input item if the editor has already been detached from its UiScope. \r\n return;\r\n } \r\n\r\n DoTextInput(TextEditor, _text, _isInsertKeyToggled, /*acceptControlCharacters:*/false);\r\n }",
"public void takeUserInput() {\n\t\t\r\n\t}",
"public interface InputDialogCallback {\n public void onAction1(String response);\n public void onAction2();\n\n}",
"public static int getUserInput(){\r\n String input;\r\n Integer selection;\r\n while(true){\r\n try {\r\n input = JOptionPane.showInputDialog(null, \"Please enter the desired side size or press cancel for default size,\\n\"\r\n + \"you should enter a valid integer between 3 and 100.\");\r\n if (input == null) {\r\n selection = DEFAULT_SIZE;\r\n }\r\n else {\r\n selection = Integer.parseInt(input);\r\n if (selection > UPPER_BOUND) selection = UPPER_BOUND;\r\n else if (selection < LOWER_BOUND) selection = LOWER_BOUND;\r\n }\r\n break;\r\n }\r\n catch (NumberFormatException e){\r\n continue;\r\n }\r\n }\r\n return selection;\r\n \r\n }",
"@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"Without this user \");\r\n\t\t\t\t\t\t}",
"@Override\n public void onShow(DialogInterface arg0) {\n\n }",
"public void onClick(DialogInterface dialog, int id) {\n Log.d(\"Message\", userInput.getText().toString());\n r.stop();\n goToHomeActivity();\n }",
"abstract void mainPrompt();",
"public interface Dialog {\n\t/**\n\t * Wartet auf eingabe durch den Benutzer.\n\t * Liest Eingabe ein und returnd den Wert.\n\t * @return int Wert den Benutzer eingegeben hat\n\t * @param playerA ist es playerA\n\t * @param playerChoice moegliche auswahl des Spielers\n\t * @throws IOException Einlesen nicht moeglich\n\t */\n\tint getNumber(boolean playerA, String playerChoice) throws IOException;\n\t\n\t/**\n\t * Fordert den Spieler auf eine Eingabe zu machen. \n\t * Mit welcher Zahl der Benutzer die Runde spielen moechte.\n\t * \n\t * @param spieler Spieler a oder b\n\t * @param playerChoices string Auswahl die an den Spiler gesendet wird\n\t * @throws IOException Exception\n\t */\n\tvoid askForNumber(String spieler,String playerChoices) throws IOException;\n\t\n\t/**\n\t * Zeigt beiden Spielern an, dass die Runde zu ende ist.\n\t * Sendet Info an beide Spieler, mit der akutellen Rundenzahl und Punktestatus\n\t * @param roundsPlayed Welche runde wurde soeben bendet\n\t * @param playerAScore Punkte von Spieler A\n\t * @param playerBScore Punkte von Spieler B\n\t * @throws IOException Exception\n\t */\n\tvoid endOfRound(int roundsPlayed, int playerAScore, int playerBScore) throws IOException;\n\t\n\t/**\n\t * Zeigt beiden Spielern an, dass die Runde zu Ende ist.\n\t * Sende Nachricht wer gewonnen bzw. unentschieden gespielt wurde.\n\t * \n\t * @param winner Wer das Spiel gewonnen hat\n\t * @throws IOException \n\t */\n\tvoid printWinner(String winner) throws IOException;\n\t\n\t/**\n\t * Erstellt und startet runde.\n\t * @return int[] arry\n\t * @param playerAChoice was playerA eintippen darf\n\t * @param playerBChoice was playerB einttippen darf\n\t * @throws IOException weil halt.\n\t */\n\tdefault int[] runAll(String playerAChoice, String playerBChoice) throws IOException{\n\t\tfinal int[] result = new int[2];\n\t\tresult[0] = getNumber(true, playerAChoice);\n\t\tresult[1] = getNumber(false, playerBChoice);\n\t\treturn result;\n\t}\n}",
"public void inputGrade() {\n inzoo = false;\n // get prompts.xml view\n LayoutInflater li = LayoutInflater.from(context);\n View promptsView = li.inflate(R.layout.input_dialog, null);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n context);\n\n // set prompts.xml to alertdialog builder\n alertDialogBuilder.setView(promptsView);\n\n final TextView promptText = (TextView) promptsView\n .findViewById(R.id.textView1);\n promptText.setText(\"Input a Grade\");\n\n final EditText userInput = (EditText) promptsView\n .findViewById(R.id.editTextDialogUserInput);\n\n // set dialog message\n alertDialogBuilder\n .setCancelable(false)\n .setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // get user input and use it as a grade to calculate lootcrate gain\n try {\n parseGrade(Integer.parseInt(userInput.getText().toString()));\n }\n catch(Exception e) {\n popUp(\"Please enter an integer, with no letters or symbols.\");\n }\n dialog.cancel();\n }\n })\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n\n // show it\n alertDialog.show();\n }",
"private void screenWithGivenValues(int promptString1, int promptString2, int optionString1, int optionString2, int optionString3, int inputString1, int inputString2) {\n //clears the screen of previous, unnecessary text\n display.drawBlankDialog();\n\n display.setDialogWindowPrompt(getPromptStrings(promptString1), getPromptStrings(promptString2), getShipsStatus());\n display.setDialogWindowOption1(getOptionStrings(optionString1));\n display.setDialogWindowOption2(getOptionStrings(optionString2));\n display.setDialogWindowOption3(getOptionStrings(optionString3));\n display.setDialogWindowUserInput(getInputStrings(inputString1), getInputStrings(inputString2));\n\n showDisplay();\n }",
"private void editArguments() {\n\t\tDialog d = new EditArgumentsDialog(creator.modpack.minecraft.arguments, frame, true);\n\t\td.setVisible(true);\n\t}",
"private void handleInput() {\n\n // Get the input string and check if its not empty\n String text = textInput.getText().toString();\n if (text.equals(\"\\n\")) {\n textInput.setText(\"\");\n return;\n }\n // remove empty line\n if (text.length() >= 2 && text.endsWith(\"\\n\")) text = text.substring(0, text.length() - 1);\n\n if (TextUtils.isEmpty(text)) return;\n textInput.setText(\"\");\n\n myGame.onInputString(text);\n }",
"public String[] showInputDialog()\n {\n class GetData extends JDialog implements ActionListener\n {\n JTextField textLogin = new JTextField();\n JPasswordField texPasswd = new JPasswordField(16);\n JButton btnOK = new JButton(\" OK \");\n JButton btnCancel = new JButton(\"Cancel\");\n String returnlogin = null;\n String returnPasswd = null;\n /**\n * Zpracovani dat\n */\n public GetData()\n {\n setModal(true);\n getContentPane().setLayout(new BorderLayout());\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setLocation(400,300);\n JPanel myLogin = new JPanel();\n myLogin.setLayout(new BorderLayout());\n JPanel myPasswd = new JPanel();\n myPasswd.setLayout(new BorderLayout());\n myLogin.add(new JLabel(\"Username\"),BorderLayout.NORTH);\n myLogin.add(textLogin,BorderLayout.CENTER);\n getContentPane().add(myLogin,BorderLayout.NORTH);\n myPasswd.add(new JLabel(\"Password\"),BorderLayout.NORTH);\n myPasswd.add(texPasswd,BorderLayout.CENTER);\n getContentPane().add(myPasswd,BorderLayout.CENTER);\n JPanel jp = new JPanel();\n btnOK.addActionListener(this);\n btnCancel.addActionListener(this);\n jp.add(btnOK);\n jp.add(btnCancel);\n getContentPane().add(jp,BorderLayout.SOUTH);\n pack();\n setVisible(true);\n }\n /**\n * Kliknuti na tlacitko a nasledne poslani jmena a hesla.\n */\n public void actionPerformed(ActionEvent ae)\n {\n if(ae.getSource() == btnOK){\n login = textLogin.getText();\n passwd = texPasswd.getText();\n }\n dispose();\n\n }\n }\n new GetData();\n return new String[] {login, passwd};\n }",
"private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}",
"protected abstract void hidePrompt();",
"@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }",
"@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}",
"private long inputAlert(String title, String input) {\n\t\tflag = false;\n\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(input);\n\t\terrorMessage.setPrefWidth(150 + input.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tTextField alert = new TextField();\n\t\tButton submit = new Button(\"Submit\");\n\n\t\tsubmit.setOnAction(event -> {\n\t\t\tint[] inputs = alert.getCharacters().chars().toArray();\n\t\t\tint total = condense(inputs);\n\t\t\tif(!flag) {\n\t\t\t\talertInput = total;\n\t\t\t} else {\n\t\t\t\talertInput = 100000000; \t//sets to be flagged later on\n\t\t\t}\n\t\t\twindow.close();\n\t\t});\n\n\t\tHBox submission = new HBox(alert, submit);\n\t\tsubmission.setSpacing(15);\n\t\tsubmission.setAlignment(Pos.CENTER);\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, submission);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\t\treturn alertInput;\n\t}",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}",
"private void handleCommandEntered(String input) {\n try {\n commandExecutor.execute(input);\n commandTextField.commitAndFlush();\n } catch (CommandException | ParseException | UnmappedPanelException e) {\n setStyleToIndicateCommandFailure();\n }\n }",
"public static void InputText(final Activity context, String title,String desc, String hintText, final InputResultListener listener)\n {\n final EditText input =new EditText(context);\n input.setHint(hintText);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(title);\n builder.setMessage(desc);\n builder.setView(input);\n\n\n // Set up the buttons\n builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(input.getWindowToken(), 0);\n dialog.dismiss();\n String result = input.getText().toString();\n\n // MainActivity mainActivity = new MainActivity(); //MainActivity에 있는 mTodayMessageButton 과 mViewTodayMessageDivider를 전역으로 불러오기 위해서 생성.\n//\n// if(result.length() == 0) //입력된 텍스트가 하나도 없다면\n// {\n// //result = \"오늘의 화이팅 한마디\";\n// //mainActivity.txtTodayMessage.setTextColor(Color.parseColor(\"#c0c0c0\"));\n// mainActivity.mViewTodayMessageDivider.setVisibility(View.VISIBLE);\n// mainActivity.mTodayMessageButton.setVisibility(View.VISIBLE); // 오늘의 한미디 편집 아이콘 상시 노출로 수정[2019.10.17 테일러]\n// }\n// else //입력된 텍스트가 하나라도 있다면\n// {\n// mainActivity.txtTodayMessage.setTextColor(Color.parseColor(\"#ffffff\")); // 텍스트의 색상을 하얀색으로 변경\n// mainActivity.mViewTodayMessageDivider.setVisibility(View.INVISIBLE);\n// mainActivity.mTodayMessageButton.setVisibility(View.VISIBLE);\n// }\n\n listener.onInputText(result);\n\n //input.clearFocus();\n //SystemUtils.hideSoftKeyboard(context);\n\n }\n });\n\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(input.getWindowToken(), 0);\n\n dialog.cancel();\n\n //input.clearFocus();\n //SystemUtils.hideSoftKeyboard(context);\n }\n });\n\n builder.show();\n }",
"private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }",
"protected SelectionText input() {\n return inputter;\n }",
"@Override\n public void onInput(MaterialDialog dialog, CharSequence input) {\n Intent myIntent = new Intent(getApplicationContext(), ConfirmActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(),\n 0, myIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n //notification body\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext());\n builder.setStyle(new NotificationCompat.BigTextStyle().bigText(input.toString())); //BigText\n builder.setOngoing(true); //Make persistent\n builder.setContentIntent(pendingIntent);\n builder.setSmallIcon(R.drawable.ic_small);\n builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.ic_large));\n builder.setContentTitle(\"Remember!\");\n builder.setContentText(input.toString()); //Get text from dialog input\n notificationManager.notify(NOTIFICATION_ID, builder.build());\n\n //toast\n Toast.makeText(MainActivity.this, \"Done! Reminder has been set. Check your Notification Bar! :)\",\n Toast.LENGTH_LONG).show();\n\n //Close app when done entering in text\n finish();\n }",
"public static String input (Resources loader,\r\n\t\tComponent frame, String name, Object args[], Object defaultVal) {\r\n\r\n\t\tString retVal = (String)JOptionPane.showInputDialog(frame,\r\n\t\t\tloader.getResourceMessage(name.concat(\".message\"), args),\r\n\t\t\tloader.getResourceMessage(name.concat(\".title\"), args),\r\n\t\t\tJOptionPane.QUESTION_MESSAGE, null, null, defaultVal);\r\n\r\n\t\treturn (retVal);\r\n\t}",
"public abstract void showInputBoxWithCancel(String message, Predicate<String> filter, Consumer<String> resultCallback);",
"private void handleTextInputCallback(TextInputCallback tic)\n throws IOException {\n System.out.print(tic.getPrompt());\n System.out.flush();\n tic.setText((new BufferedReader\n (new InputStreamReader(System.in))).readLine());\n }",
"private void passwordTooShortDialog() {\n Dialog dialog = new Dialog(\"Password too short\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"Password should be longer than or equal to 8 characters.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }",
"private boolean checkInput() {\n if (trackWindowSize.isSelected()) {\n inputSize = new int[] { 0, 0 };\n return true;\n }\n inputSize = null;\n int width, height;\n try {\n width = Integer.parseInt(widthInput.getText());\n }\n catch (NumberFormatException e) {\n error(I18n.tr(\"imagesizedialog.error.widthnotanumber\", widthInput.getText()));\n widthInput.selectAll();\n widthInput.requestFocus();\n return false;\n }\n try {\n height = Integer.parseInt(heightInput.getText());\n }\n catch (NumberFormatException e) {\n error(I18n.tr(\"imagesizedialog.error.heightnotanumber\", heightInput.getText())); \n heightInput.selectAll();\n heightInput.requestFocus();\n return false;\n }\n if (width < 10 || width > 5000) {\n error(I18n.tr(\"imagesizedialog.error.badwidth\", \"\"+width)); \n widthInput.selectAll();\n widthInput.requestFocus();\n return false;\n }\n else if (height < 10 || height > 5000) {\n error(I18n.tr(\"imagesizedialog.error.badheight\", \"\"+width)); \n heightInput.selectAll();\n heightInput.requestFocus();\n return false;\n }\n inputSize = new int[] { width, height };\n return true;\n }",
"@Override\n public boolean onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {\n\n return true;\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n head.setText(editText.getText().toString().trim());\n } else {\n head.setText(\"\");\n }\n }",
"private void displayDuplicateInputError(){\n\t\tAlert alert = new Alert(Alert.AlertType.INFORMATION);\n\t\talert.setTitle(\"Duplicate Letter Dialog\");\n\t\talert.setHeaderText(\"Pay Attention!\");\n\t\talert.setContentText(\"You have already tried that letter, please try again\");\n\t\talert.showAndWait();\n\t}",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"public InputPassWordDlg(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }",
"public abstract void showInputBox(String message, Consumer<String> resultCallback);",
"@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.trim().toUpperCase();\r\n \r\n switch (command) {\r\n case \"B\":\r\n this.helpMenuControl.displayBoardHelp();\r\n break;\r\n case \"C\":\r\n this.helpMenuControl.displayComputerPlayerHelp();\r\n break;\r\n case \"G\":\r\n this.helpMenuControl.displayGameHelp();\r\n break; \r\n case \"Q\": \r\n break;\r\n default: \r\n new Connect4Error().displayError(\"Invalid command. Please enter a valid command.\");\r\n }\r\n } while (!command.equals(\"Q\")); \r\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"us-US\");\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"public abstract DialogBox showProgressBox(String message);",
"@Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n }",
"public AlertDialog createParameterInputDialog(Context context, String title, final String[] commandParameter, final DialogInterface.OnClickListener listener) {\n if(parameterType == null) return null;\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(title);\n\n if(parameterType.matches(\"range.*\")) {\n int min = 0;\n int max = 100;\n if(parameterType.matches(\"range\\\\([0-9]+-[0-9]+\\\\)\")) {\n min = Integer.parseInt(parameterType.replaceFirst(\"range\\\\(([0-9]+)-([0-9]+)\\\\)\", \"$1\"));\n max = Integer.parseInt(parameterType.replaceFirst(\"range\\\\(([0-9]+)-([0-9]+)\\\\)\", \"$2\"));\n } else if(parameterType.matches(\"range\\\\([0-9]+\\\\)\")) {\n max = Integer.parseInt(parameterType.replaceFirst(\"range\\\\(([0-9]+)\\\\)\", \"$1\"));\n }\n\n final int fMin = min;\n\n View view = View.inflate(context, R.layout.command_param_progress, null);\n final SeekBar bar = (SeekBar) view.findViewById(R.id.command_param_range_seekbar);\n bar.setMax(max - min);\n\n if(commandParameter[0] != null && commandParameter[0].matches(\"[0-9]+\")) {\n int value = Integer.parseInt(commandParameter[0]);\n bar.setProgress(value);\n }\n\n final TextView txtValue = (TextView) view.findViewById(R.id.command_param_range_value);\n txtValue.setText(Integer.toString(min + bar.getProgress()));\n\n bar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override public void onStartTrackingTouch(SeekBar seekBar) { }\n @Override public void onStopTrackingTouch(SeekBar seekBar) { }\n\n @Override public void onProgressChanged(SeekBar seekBar, int value, boolean fromUser) {\n txtValue.setText(Integer.toString(fMin + value));\n }\n });\n\n builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n commandParameter[0] = Integer.toString(fMin + bar.getProgress());\n listener.onClick(dialogInterface, i);\n }\n });\n\n builder.setView(view);\n } else {\n return null;\n }\n\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n\n return builder.show();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_type.setText(editText.getText().toString().trim());\n } else {\n pump_type.setText(\"\");\n }\n }"
] |
[
"0.73294526",
"0.6798291",
"0.66666895",
"0.66463476",
"0.6620942",
"0.6522054",
"0.652013",
"0.65184313",
"0.6513838",
"0.64915943",
"0.64793366",
"0.6458037",
"0.6385886",
"0.63476515",
"0.62826705",
"0.6245342",
"0.6179033",
"0.6138595",
"0.61285466",
"0.61194474",
"0.6104617",
"0.6087778",
"0.6059289",
"0.6057593",
"0.6049222",
"0.6036018",
"0.6012081",
"0.5972267",
"0.5968287",
"0.5957449",
"0.59308106",
"0.5923924",
"0.5916693",
"0.5916641",
"0.588935",
"0.5884682",
"0.58804715",
"0.5858479",
"0.5856238",
"0.58388644",
"0.5832748",
"0.58290946",
"0.5822695",
"0.5813517",
"0.58101505",
"0.5791782",
"0.57767874",
"0.57686406",
"0.5767113",
"0.5754547",
"0.57478917",
"0.57334197",
"0.57294786",
"0.5728471",
"0.57211626",
"0.57173926",
"0.57067114",
"0.5685376",
"0.56848645",
"0.5675062",
"0.5673907",
"0.566925",
"0.56621313",
"0.5659138",
"0.5657388",
"0.5650132",
"0.56466925",
"0.56465167",
"0.5643291",
"0.56431377",
"0.56359255",
"0.56332946",
"0.56332946",
"0.5629833",
"0.5624746",
"0.5618631",
"0.5618337",
"0.56154156",
"0.561277",
"0.5608577",
"0.56047654",
"0.56044394",
"0.56005883",
"0.55984914",
"0.5595751",
"0.55948323",
"0.55922574",
"0.5586899",
"0.5583582",
"0.55827403",
"0.55827403",
"0.55827403",
"0.55827403",
"0.5582372",
"0.5578862",
"0.5576297",
"0.5573374",
"0.5569574",
"0.55685383",
"0.5564322",
"0.55641496"
] |
0.0
|
-1
|
/ (nonJavadoc) Method declared on Dialog.
|
protected void buttonPressed(
int buttonId)
{
value = text.getText();
if ( value != null && value.length() > 10 ) {
int ret = FAILED;
if ( buttonId == IDialogConstants.OK_ID ) {
ret = PASSED;
} else if ( buttonId == IDialogConstants.CLOSE_ID ) {
ret = BLOCKED;
}
setReturnCode(ret);
close();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}",
"private void initDialog() {\n }",
"@Override\n public void onShow(DialogInterface arg0) {\n\n }",
"@Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }",
"public abstract void initDialog();",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n \n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"DialogResult show();",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n \n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }",
"private Dialogs () {\r\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"public StandardDialog() {\n super();\n init();\n }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}",
"public ReorganizeDialog() { }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t\t\t}",
"@Override\n public void onCancel(DialogInterface dialog) {\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t}",
"@Override \n\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t \t\n\t\t\t\t\t }",
"@Override \n\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t \t\n\t\t\t\t\t }",
"@Override\n public void onClick(DialogInterface dialog, int which)\n {\n\n }",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\t\t}",
"private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}",
"@Override \n\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t \t\n\t\t\t }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}"
] |
[
"0.7225248",
"0.70481884",
"0.69689316",
"0.69635457",
"0.6957476",
"0.6957476",
"0.6957476",
"0.6957476",
"0.6947849",
"0.6932522",
"0.6929159",
"0.69166726",
"0.69166726",
"0.69166726",
"0.6913246",
"0.69003683",
"0.69003683",
"0.689552",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6882216",
"0.6876199",
"0.6864376",
"0.6862446",
"0.6862446",
"0.6862446",
"0.6862446",
"0.6862446",
"0.6862446",
"0.6862446",
"0.6859766",
"0.6859276",
"0.6859276",
"0.68460387",
"0.6842095",
"0.6842095",
"0.6840404",
"0.6839944",
"0.68336475",
"0.6831934",
"0.68251526",
"0.68251526",
"0.6824718",
"0.6824718",
"0.6816831",
"0.6816553",
"0.68157774",
"0.68157774",
"0.68150616",
"0.680072",
"0.680072",
"0.67940193",
"0.67940193",
"0.67940193",
"0.67940193",
"0.67940193",
"0.6793937",
"0.6793937",
"0.6793937",
"0.67847174",
"0.6778325",
"0.6772192",
"0.67706066",
"0.67481",
"0.67470694",
"0.6746624",
"0.67449224",
"0.67413604",
"0.67408574",
"0.67408574",
"0.67359424",
"0.67348224",
"0.67348224",
"0.67348224",
"0.67348224",
"0.6734574",
"0.67336565",
"0.6731605",
"0.6729144",
"0.67281234",
"0.67269355",
"0.67204124",
"0.67204124",
"0.67204124",
"0.67204124",
"0.67204124",
"0.6719867",
"0.6719867",
"0.6719867",
"0.6719867",
"0.6719867",
"0.6719867",
"0.6719867"
] |
0.0
|
-1
|
/ (nonJavadoc) Method declared on Dialog.
|
protected Control createDialogArea(
Composite parent)
{
// create composite
Composite composite = (Composite) super.createDialogArea(parent);
// create label
Label categoryLabel = new Label(composite, SWT.WRAP);
categoryLabel.setText("");
GridData cData = new GridData(
GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL
| GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
cData.widthHint = convertHorizontalDLUsToPixels(
IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);
categoryLabel.setLayoutData(cData);
categoryLabel.setFont(parent.getFont());
// create browser
Browser browser = new Browser(composite, SWT.NONE);
GridData grid = new GridData(SWT.FILL, SWT.FILL, true, true, 300, 40);
browser.setLayoutData(grid);
browser.setText(html);
browser.setVisible(true);
// create entry request message
if ( message != null ) {
Label label = new Label(composite, SWT.WRAP);
label.setText(message);
GridData data = new GridData(
GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL
| GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
data.widthHint = convertHorizontalDLUsToPixels(
IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);
label.setLayoutData(data);
label.setFont(parent.getFont());
}
// Data entry text area
text = new Text(composite, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
grid = new GridData(SWT.FILL, SWT.FILL, true, true, 80, 8);
text.setLayoutData(grid);
text.addModifyListener(new ModifyListener()
{
public void modifyText(
ModifyEvent e)
{
validateInput();
}
});
// Error message text area
errorMessageText = new Text(composite, SWT.READ_ONLY);
errorMessageText.setLayoutData(
new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
errorMessageText.setBackground(errorMessageText.getDisplay()
.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
applyDialogFont(composite);
return composite;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}",
"private void initDialog() {\n }",
"@Override\n public void onShow(DialogInterface arg0) {\n\n }",
"@Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }",
"public abstract void initDialog();",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n \n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"DialogResult show();",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n \n }",
"private Dialogs () {\r\n\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"public StandardDialog() {\n super();\n init();\n }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t}",
"public ReorganizeDialog() { }",
"@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t\t\t}",
"@Override\n public void onCancel(DialogInterface dialog) {\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t}",
"@Override \n\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t \t\n\t\t\t\t\t }",
"@Override \n\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t \t\n\t\t\t\t\t }",
"@Override\n public void onClick(DialogInterface dialog, int which)\n {\n\n }",
"private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\t\t}",
"@Override \n\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t \t\n\t\t\t }",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}"
] |
[
"0.72242856",
"0.70488286",
"0.6968076",
"0.6962169",
"0.69562554",
"0.69562554",
"0.69562554",
"0.69562554",
"0.69469947",
"0.6931361",
"0.69280183",
"0.6915535",
"0.6915535",
"0.6915535",
"0.6911987",
"0.68991584",
"0.68991584",
"0.68962586",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.6881024",
"0.68748844",
"0.68631405",
"0.6861111",
"0.6861111",
"0.6861111",
"0.6861111",
"0.6861111",
"0.6861111",
"0.6861111",
"0.6858702",
"0.6858156",
"0.6858156",
"0.6846498",
"0.6841043",
"0.6841043",
"0.6839272",
"0.6838697",
"0.6832291",
"0.6830685",
"0.68239856",
"0.68239856",
"0.6823523",
"0.6823523",
"0.6816307",
"0.68153036",
"0.68151605",
"0.6814533",
"0.6814533",
"0.67994046",
"0.67994046",
"0.6792696",
"0.6792696",
"0.6792696",
"0.6792696",
"0.6792696",
"0.6792637",
"0.6792637",
"0.6792637",
"0.6785872",
"0.6777071",
"0.67709",
"0.6769272",
"0.6747372",
"0.67467415",
"0.6745261",
"0.674377",
"0.67402434",
"0.6739625",
"0.6739625",
"0.67347497",
"0.67338717",
"0.6733486",
"0.6733486",
"0.6733486",
"0.6733486",
"0.67331827",
"0.6730608",
"0.6728015",
"0.67276937",
"0.67256844",
"0.67191076",
"0.67191076",
"0.67191076",
"0.67191076",
"0.67191076",
"0.67185223",
"0.67185223",
"0.67185223",
"0.67185223",
"0.67185223",
"0.67185223",
"0.67185223"
] |
0.0
|
-1
|
Returns the ok button.
|
protected Button getOkButton()
{
return okButton;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public JButton getOkButton(){\n\t\treturn okButton;\n\t}",
"public JButton getOkButton() {\n return okButton;\n }",
"private RButton getOkButton() {\n if (okButton == null) {\n okButton = new RButton();\n okButton.setText(\"<%= ivy.cms.co(\\\"/Buttons/ok\\\") %>\");\n okButton.setName(\"okButton\");\n }\n return okButton;\n }",
"private JButton getOkButton() {\n\t\tif (okButton == null) {\n\t\t\tokButton = new JButton();\n\t\t\tokButton.setText(\"OK\");\n\t\t\tokButton.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tdoOK();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn okButton;\n\t}",
"private JButton getJButtonOk() {\n\t\tif (jButtonOk == null) {\n\t\t\tjButtonOk = new JButton();\n\t\t\tjButtonOk.setText(\"I agree\");\n\t\t\tjButtonOk.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonOk;\n\t}",
"private JButton getOkButton() {\n if (okButton == null) {\n okButton = new JButton();\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n canceled = false;\n dispose();\n }\n });\n }\n return okButton;\n }",
"private JButton getBtnOK() {\n if (btnOK == null) {\n btnOK = new JButton();\n btnOK.setText(\" OK \");\n btnOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = true;\n setVisible(false);\n }\n });\n getRootPane().setDefaultButton(btnOK);\n }\n return btnOK;\n }",
"void okButtonClicked();",
"private JButton getOkButton() {\r\n\t\tif (okButton == null) {\r\n\t\t\ttry {\r\n\t\t\t\tokButton = new JButton();\r\n\t\t\t\tokButton.setText(\"OK\");\r\n\t\t\t\tokButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn okButton;\r\n\t}",
"private BButton getBtnOK() {\r\n\t\tif (btnOK == null) {\r\n\t\t\tbtnOK = new BButton();\r\n\t\t\tbtnOK.setText(\"OK\");\r\n\t\t\tbtnOK.setPreferredSize(new Dimension(100, 29));\r\n\t\t}\r\n\t\treturn btnOK;\r\n\t}",
"private JButton getJButtonOK() {\n\t\tif (jButtonOK == null) {\n\t\t\tjButtonOK = new JButton();\n\t\t\tjButtonOK.setLocation(new Point(100, 200));\n\t\t\tjButtonOK.setText(\"OK\");\n\t\t\tjButtonOK.addActionListener( new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tcloseFrameSobre();\n\t\t\t\t}\n\t\t\t});\n\t\t\tjButtonOK.setSize(new Dimension(100, 30));\n\t\t}\n\t\treturn jButtonOK;\n\t}",
"public JButtonOperator btOK() {\n if (_btOK==null) {\n _btOK = new JButtonOperator(this, Bundle.getStringTrimmed(\"org.openide.Bundle\", \"CTL_OK\"));\n }\n return _btOK;\n }",
"protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}",
"private JButton getJButtonOK() {\r\n\t\tif (jButtonOK == null) {\r\n\t\t\tjButtonOK = new JButton();\r\n\t\t\tjButtonOK.setText(BOTONCREAR);\r\n\t\t\tjButtonOK.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tcambiarPass();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonOK;\r\n\t}",
"private JButton getAcceptButton() {\n return ((OkCancelButtonPanel) getButtonPanel()).getOkayButton();\n }",
"private javax.swing.JButton getBtnOK() {\r\n\tif (ivjBtnOK == null) {\r\n\t\ttry {\r\n\t\t\tivjBtnOK = new javax.swing.JButton();\r\n\t\t\tivjBtnOK.setName(\"BtnOK\");\r\n\t\t\tivjBtnOK.setText(\"OK\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjBtnOK;\r\n}",
"private JButton getJButtonOK() {\r\n\t\tif (jButtonOK == null) {\r\n\t\t\tjButtonOK = new JButton();\r\n\t\t\tjButtonOK.setBounds(new Rectangle(40, 215, 90, 30));\r\n\t\t\tjButtonOK.setText(\"确定\");\r\n\t\t\tjButtonOK.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tjColorChooser.setVisible(false);\r\n\t\t\t\t\tchooserColor = color;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonOK;\r\n\t}",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean isOkClicked() {\n return okClicked;\n }",
"@Override\n public JButton get_default_button()\n {\n return BT_OK;\n }",
"public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}",
"protected abstract boolean onOkClicked();",
"public void OnOkClick()\r\n {\r\n\r\n }",
"protected abstract void pressedOKButton( );",
"void onOkButtonPressed();",
"private JButton addOKButton(String actionCommand) {\n JButton button = new JButton(\"OK\");\n button.setActionCommand(\"OK \" + actionCommand);\n return button;\n }",
"private JButton addOKButton(){\n\t\tJButton okButton = new JButton(\"OK\");\n\t\tokButton.addActionListener(arg0 -> {\n\t\t\tinfo = new ChannelInfo(nameT.getText(), passwordT.getText(), null);\n\t\t\tsetVisible(false);\n\t\t});\n\t\treturn okButton;\n\t}",
"protected GuiTestObject okbutton(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"), anchor, flags);\n\t}",
"private JButton getOkButton() {\r\n\t\tif (okButton == null) {\r\n\t\t\tokButton = new JButton();\r\n\t\t\tokButton.setText(\"OK\");\r\n\t\t\tokButton.addActionListener(new java.awt.event.ActionListener() { \r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdouble minValue = Double.parseDouble(minTextField.getText());\r\n\t\t\t\t\t\tdouble maxValue = Double.parseDouble(maxTextField.getText());\r\n\t\t\t\t\t\tif (minValue <= maxValue) {\r\n\t\t\t\t\t\t\tif (mode == RULES_BASIS_SUPPORT_MODE) {\r\n\t\t\t\t\t\t\t\tif (minValue >= rulesBasis.getMinSupport() && maxValue <= rulesBasis.getMaxSupport()) {\r\n\t\t\t\t\t\t\t\t\tnew TableVisualization(\r\n\t\t\t\t\t\t\t\t\t\t\trulesBasis.filterRulesBySupport(minValue, maxValue), relCtxEd);\r\n\t\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tDatabaseFunctions.showMessageDialog(\"Incorrect values\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (mode == RULES_BASIS_CONFIDENCE_MODE) {\r\n\t\t\t\t\t\t\t\tif (minValue >= rulesBasis.getMinConfidence() && maxValue <= rulesBasis.getMaxConfidence()) {\r\n\t\t\t\t\t\t\t\t\tnew TableVisualization(\r\n\t\t\t\t\t\t\t\t\t\t\trulesBasis.filterRulesByConfidence(minValue, maxValue), relCtxEd);\r\n\t\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tDatabaseFunctions.showMessageDialog(\"Incorrect values\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (mode == INTENTS_BASIS_SUPPORT_MODE) {\r\n\t\t\t\t\t\t\t\tif (minValue >= intentsBasis.getMinSupport() && maxValue <= intentsBasis.getMaxSupport()) {\r\n\t\t\t\t\t\t\t\t\tnew IntentsTableVisualization(\r\n\t\t\t\t\t\t\t\t\t\t\tintentsBasis.filterIntentsBySupport(minValue, maxValue), relCtxEd);\r\n\t\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tDatabaseFunctions.showMessageDialog(\"Incorrect values\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tDatabaseFunctions.showMessageDialog(\"Incorrect values\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\t\t\tDatabaseFunctions.showMessageDialog(\"Incorrect values\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn okButton;\r\n\t}",
"@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}",
"private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}",
"private JButton getJButtonAcceptHTML() {\r\n\r\n\t\tif (jButtonAcceptHTML == null) {\r\n\t\t\tjButtonAcceptHTML = new JButton();\r\n\t\t\tjButtonAcceptHTML.setBounds(new Rectangle(183, 258, 106, 21));\r\n\t\t\tjButtonAcceptHTML.setText(StringDatabase.getUniqueInstance ()\r\n\t\t\t\t.getString(\"HTMLTextEditor.jButtonAcceptHTML.Text\"));\r\n\t\t\tjButtonAcceptHTML\r\n\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t\t//update the commentText\r\n\t\t\t\t\t\tcommentText = ekitCoreEditorHTMLPanel.getDocumentBody();\r\n\t\t\t\t\t\textendedHTMLEditorKit =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlKit();\r\n\t\t\t\t\t\textendedHTMLDocument =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlDoc();\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\tokButton = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonAcceptHTML;\r\n\t}",
"private JButton getRejectButton() {\n return ((OkCancelButtonPanel) getButtonPanel()).getCancelButton();\n }",
"private JButton getBok() {\n if( Bok == null ) {\n Bok = new JButton();\n Bok.setText(\"Ok\");\n Bok.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n ComboBoxEntry cbe;\n cbe = (ComboBoxEntry) getCBoxSourceLanguage().getSelectedItem();\n String sourceLanguageName = cbe.getLocale().getLanguage();\n boolean isSourceExternal = cbe.isExternal();\n \n cbe = (ComboBoxEntry) getCBoxTargetLanguage().getSelectedItem();\n String targetLanguageName = cbe.getLocale().getLanguage();\n boolean isTargetExternal = cbe.isExternal();\n boolean isTargetNew = cbe.isNew();\n \n startTranslation(\n sourceLanguageName, \n isSourceExternal, \n targetLanguageName,\n isTargetExternal,\n isTargetNew);\n }\n });\n }\n return Bok;\n }",
"public Button getYes() {\n return yes;\n }",
"public JButton getAcceptButton() {\n\t\treturn acceptButton;\n\t}",
"public Command getOkCommand() {\n if (okCommand == null) {//GEN-END:|24-getter|0|24-preInit\n // write pre-init user code here\n okCommand = new Command(\"Ok\", Command.OK, 0);//GEN-LINE:|24-getter|1|24-postInit\n // write post-init user code here\n }//GEN-BEGIN:|24-getter|2|\n return okCommand;\n }",
"void CloseOkDialog();",
"protected void okPressed()\n\t{\n\t\t((NewProjectComposite) this.getDialogArea()).updateProject(project);\n\t\tsuper.okPressed();\n\t}",
"public boolean getOK() {\n return userAction.equals(OK);\n }",
"private void onOK() {\n isOkClicked = true;\n dispose();\n }",
"private JButton addOKButtonTopic(){\n\t\tJButton okButton = new JButton(\"OK\");\n\n\t\tokButton.addActionListener(arg0 -> {\n\t\t\tSystem.out.println(\"hello\"+ passwordT.getText()+\"hello\");\n\t\t\tinfo = new ChannelInfo(nameT.getText(), passwordT.getText(), topicT\n\t\t\t\t\t.getText());\n\t\t\tsetVisible(false);\n\t\t});\n\t\treturn okButton;\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}",
"public IButton getReturnButton() {\n return controls.getReturnButton();\n }",
"protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}",
"protected void okPressed() {\r\n \t\tArrayList resources= new ArrayList(10);\r\n \t\tfindCheckedResources(resources, (IContainer)fTree.getInput());\r\n \t\tif (fWorkingSet == null)\r\n \t\t\tfWorkingSet= new WorkingSet(getText().getText(), resources.toArray());\r\n \t\telse if (fWorkingSet instanceof WorkingSet) {\r\n \t\t\t// Add not accessible resources\r\n \t\t\tIResource[] oldResources= fWorkingSet.getResources();\r\n \t\t\tfor (int i= 0; i < oldResources.length; i++)\r\n \t\t\t\tif (!oldResources[i].isAccessible())\r\n \t\t\t\t\tresources.add(oldResources[i]);\r\n \r\n \t\t\t((WorkingSet)fWorkingSet).setName(getText().getText());\r\n \t\t\t((WorkingSet)fWorkingSet).setResources(resources.toArray());\r\n \t\t}\r\n \t\tsuper.okPressed();\r\n \t}",
"public void enableOkButton() {\n okButton.setEnabled(true);\n }",
"public JButton getGoBtn() {\n\t\treturn go;\n\t}",
"@Override\n\tpublic void okPressed() {\n\t\t_text = _noteTextField.getText();\n\t\tsetReturnCode(OK);\n\t\tclose();\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"private void createOKButtons() {\n okAddButton = addOKButton(\"Add Shape\");\n okRemoveButton = addOKButton(\"Remove Shape\");\n okAddKeyframeButton = addOKButton(\"Add Keyframe\");\n okAddKeyframeTimeButton = addOKButton(\"Add Keyframe Time\");\n okRemoveKeyframeButton = addOKButton(\"Remove Keyframe\");\n okRemoveKeyframeTimeButton = addOKButton(\"Remove Keyframe Time\");\n okEditKeyframeButton = addOKButton(\"Edit Keyframe\");\n okEditKeyframeTimeButton = addOKButton(\"Edit Keyframe Time\");\n okEditKeyframeFinalButton = addOKButton(\"Edit Keyframe Final\");\n okClearShapeButton = addOKButton(\"Clear Shape\");\n }",
"public void ok() {\n btOK().push();\n }",
"private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }",
"public String getOk() {\r\n\t\treturn \"\";\r\n\t}",
"protected JButton getCheckAnswerButton() {\n return checkAnswerButton;\n }",
"public JButton getVerifyButton() {\n return VerifyButton;\n }",
"void ShowOkDialog(String title, String message, OnClickListener listener);",
"Button getBtn();",
"@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}",
"private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }",
"private JButton getJButton() {\n\t\tif (new_button == null) {\n\t\t\tnew_button = new JButton();\n\t\t\tnew_button.setText(Locale.getString(\"NEW\"));\n\t\t\tnew_button.setMnemonic(java.awt.event.KeyEvent.VK_N);\n\t\t\tnew_button.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn new_button;\n\t}",
"public void clickOnSuccessOkBtn() throws Exception {\r\n\t\r\n\t\t\tclickOnButton(btnOKSuccess);\r\n\t\t\tlog(\"clicked on OK button and object is:-\" + btnOKSuccess.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t}",
"private JButton getJButtonCancelHTML() {\r\n\r\n\t\tif (jButtonCancelHTML == null) {\r\n\t\t\tjButtonCancelHTML = new JButton();\r\n\t\t\tjButtonCancelHTML.setBounds(new Rectangle(306, 258, 106, 21));\r\n\t\t\tjButtonCancelHTML.setText(StringDatabase.getUniqueInstance ()\r\n\t\t\t\t.getString(\"HTMLTextEditor.jButtonCancelHTML.Text\"));\r\n\t\t\t// setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\t\tjButtonCancelHTML\r\n\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\r\n\t\t\t\t\t\textendedHTMLEditorKit =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlKit();\r\n\t\t\t\t\t\textendedHTMLDocument =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlDoc();\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t}\r\n\t\treturn jButtonCancelHTML;\r\n\t}",
"public String getOk() {\n return Ok.getText(); /*FAULT:: return \"y\"; */\n }",
"public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}",
"private javax.swing.JButton getBtnCancel() {\r\n\tif (ivjBtnCancel == null) {\r\n\t\ttry {\r\n\t\t\tivjBtnCancel = new javax.swing.JButton();\r\n\t\t\tivjBtnCancel.setName(\"BtnCancel\");\r\n\t\t\tivjBtnCancel.setText(\"Cancel\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjBtnCancel;\r\n}",
"public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}",
"@Override\n\tprotected void createButtonsForButtonBar(Composite parent) {\n\t\tButton button = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,\n\t\t\t\ttrue);\n\t\tbutton.addSelectionListener(new SelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDiagnosticChain diagnosticChain = new BasicDiagnostic();\n\t if (isValid(diagnosticChain)) {\n\t \t okFlag = true;\n\t\t okPressed();\n\t\t }else{\n\t\t \t Message messageDialog = new Message(EditTask.this.getShell());\n\t\t \t messageDialog.setMessage(Util.getErrorMessage(diagnosticChain));\n\t\t \t messageDialog.open();\n\t\t }\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\t\t});\n\t\tcreateButton(parent, IDialogConstants.CANCEL_ID,\n\t\t\t\tIDialogConstants.CANCEL_LABEL, false);\n\t}",
"private JButton getJButtonCancelar() {\r\n\t\tif (jButtonCancelar == null) {\r\n\t\t\tjButtonCancelar = new JButton();\r\n\t\t\tjButtonCancelar.setText(CANCELAR);\r\n\t\t}\r\n\t\treturn jButtonCancelar;\r\n\t}",
"public String GetButtonText() {\n\t\treturn getWrappedElement().getText();\n\t}",
"public SelenideElement submitButton() {\n return formPageRoot().$(By.xpath (\"//button[@type='submit']\")); \n }",
"private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}",
"public static void okButtonAction(ActionContext actionContext){\n World world = World.getInstance();\n Thing form = actionContext.getObject(\"form\");\n Shell shell = actionContext.getObject(\"shell\");\n \n Thing dataObject = world.getThing(\"xworker.app.test.dataObject.thing.Sex\");\n form.doAction(\"setDataObject\", actionContext, \"dataObject\", dataObject);\n shell.pack();\n }",
"public void getOKDialog(String title, String msg, String IjoomerButtonCaption, boolean isCancelable, final AlertNeutral target) {\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n\t\tint imageResource = android.R.drawable.ic_dialog_alert;\r\n\t\tDrawable image = getResources().getDrawable(imageResource);\r\n\r\n\t\tbuilder.setTitle(title).setMessage(msg).setIcon(image).setCancelable(false).setNeutralIjoomerButton(IjoomerButtonCaption, new DialogInterface.OnClickListener() {\r\n\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\ttarget.NeutralMathod(dialog, id);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.setCancelable(isCancelable);\r\n\t\talert.show();\r\n\t}",
"public void clickCookieOKButton(WebDriver driver)\n\t\t {\n\t\t\t \n\t\t\t try\n\t\t\t {\n\t\t\t\tList<WebElement> allbutton = driver.findElements(By.tagName(\"button\"));\n\t\t\t\t\n\t\t\t\tfor(WebElement btn:allbutton)\n\t\t\t\t{\n\t\t\t\t\tString strbtnText = btn.getText();\n\t\t\t\t\tif(strbtnText.equals(\"OK\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbtn.click();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.out.println(\"\");\n\t\t\t }\n\t\t }",
"@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}",
"public String getText_click_CloseModal_Button(){\r\n\t\treturn click_CloseModal_Button.getText();\r\n\t}",
"private javax.swing.JButton getJButtonCancelar() {\n\t\tif(jButtonCancelar == null) {\n\t\t\tjButtonCancelar = new JHighlightButton();\n\t\t\tjButtonCancelar.setText(\"Cancelar\");\n\t\t\tjButtonCancelar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/delete2.png\")));\n\t\t}\n\t\treturn jButtonCancelar;\n\t}",
"protected JButton getQuit()\n {\n return quit;\n }",
"HasClickHandlers getCancelButton();",
"public JButton getReturnButton() {\n return this.retour;\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }",
"public void addMarkerOkButton() {\r\n\t\tsafeClick(addMarkerOkButton, SHORTWAIT);\r\n\t\twaitForElementVisible(viewImage, SHORTWAIT);\r\n\t}",
"public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}",
"void okButton_actionPerformed(ActionEvent e) {\n setItskey(keyTextField.getText());\n setItsvalue(valueTextField.getText());\n setUserAction(OK);\n setVisible(false);\n }",
"private javax.swing.JButton getJButtonAceptar() {\n\t\tif(jButtonAceptar == null) {\n\t\t\tjButtonAceptar = new JHighlightButton();\n\t\t\tjButtonAceptar.setText(\"Aceptar\");\n\t\t\tjButtonAceptar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonAceptar.setIcon(new ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/check2.png\")));\n\t\t}\n\t\treturn jButtonAceptar;\n\t}",
"private JButton getBtnCancel() {\n if (btnCancel == null) {\n btnCancel = new JButton();\n btnCancel.setText(\"Odustani\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = false;\n setVisible(false);\n }\n });\n }\n return btnCancel;\n }",
"@Override\r\n public String getOKTitle() {\r\n return \"Set\";\r\n }",
"@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }",
"private Button continueButton(EventHandler<ActionEvent> splashScreenComboBoxEvent) {\n\t\tcontinueButton = new Button();\n\t\tcontinueButton.setText(CONTINUE);\n\t\tcontinueButton.setPrefWidth(200);\n\t\tcontinueButton.setOnAction(splashScreenComboBoxEvent);\n\t\tcontinueButton.setId(\"Continue\");\n\t\t\n\t\tcontinueButton.setDisable(true);\n\t\t\n\t\treturn continueButton;\n\t}"
] |
[
"0.8578191",
"0.8520935",
"0.8500211",
"0.81281555",
"0.7993029",
"0.7960164",
"0.7950971",
"0.7911682",
"0.7852278",
"0.7839435",
"0.782218",
"0.77407885",
"0.7641661",
"0.7629279",
"0.76254475",
"0.76236993",
"0.7597355",
"0.7433054",
"0.7433054",
"0.7433054",
"0.7433054",
"0.7430955",
"0.73882145",
"0.73882145",
"0.73882145",
"0.73882145",
"0.73882145",
"0.73708713",
"0.73708713",
"0.7369481",
"0.7320297",
"0.729186",
"0.72678393",
"0.718794",
"0.7128838",
"0.70871747",
"0.705551",
"0.6823627",
"0.6796578",
"0.6736125",
"0.6727785",
"0.6686356",
"0.6675656",
"0.6672835",
"0.6647294",
"0.6614185",
"0.6569298",
"0.6550109",
"0.6534525",
"0.652984",
"0.65191656",
"0.65190893",
"0.6514648",
"0.64504445",
"0.64242345",
"0.64166147",
"0.64133036",
"0.6378088",
"0.63665855",
"0.63449246",
"0.63273966",
"0.6309022",
"0.6289102",
"0.62774456",
"0.6274058",
"0.62733364",
"0.62551624",
"0.62080944",
"0.6205695",
"0.6192192",
"0.6171691",
"0.6161863",
"0.6145329",
"0.61391795",
"0.6132149",
"0.6127737",
"0.61211306",
"0.61111724",
"0.60937655",
"0.6089362",
"0.608197",
"0.6065896",
"0.60581577",
"0.6044311",
"0.603205",
"0.6029836",
"0.6012813",
"0.6004548",
"0.60030925",
"0.60013956",
"0.5992133",
"0.59828585",
"0.597625",
"0.59753954",
"0.59648305",
"0.596358",
"0.59583604",
"0.5955516",
"0.59374404",
"0.5934618"
] |
0.87656265
|
0
|
Returns the text area.
|
protected Text getText()
{
return text;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getTextoArea() {\n\t\treturn textArea.getText();\n\t}",
"TEXTAREA createTEXTAREA();",
"private JTextArea getJTextArea() {\r\n\t\tif (jTextArea == null) {\r\n\t\t\tjTextArea = new JTextArea();\r\n\t\t\tjTextArea.setBounds(new Rectangle(11, 5, 139, 127));\r\n\t\t\tjTextArea.setText(\"This is the stroy\\nof the hare who\\nlost his spectacles.\");\r\n\t\t}\r\n\t\treturn jTextArea;\r\n\t}",
"private JTextArea getTxtMessage() {\r\n\t\tif (txtMessage == null) {\r\n\t\t\ttxtMessage = new JTextArea();\r\n\t\t\ttxtMessage.setLineWrap(true);\r\n\t\t\ttxtMessage.setEditable(false);\r\n\t\t}\r\n\t\treturn txtMessage;\r\n\t}",
"private JTextArea getTxtInput() {\r\n\t\tif (txtInput == null) {\r\n\t\t\ttxtInput = new JTextArea();\r\n\t\t\ttxtInput.setLineWrap(true);\r\n\t\t\ttxtInput.addKeyListener(new java.awt.event.KeyAdapter() {\r\n\t\t\t\tpublic void keyTyped(java.awt.event.KeyEvent e) {\r\n\t\t\t\t\tif(e.getKeyChar() == '\\n' || e.getKeyChar() == '#') {\r\n\t\t\t\t\t\tinputReady = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn txtInput;\r\n\t}",
"private JTextArea getJTextArea() {\n\t\tif (jTextArea == null) {\n\t\t\tjTextArea = new JTextArea();\n\t\t\tjTextArea.setBounds(new Rectangle(143, 75, 137, 19));\n\t\t\tjTextArea.setColumns(10);\n\t\t\tjTextArea.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\t\t\tjTextArea.addKeyListener(new java.awt.event.KeyAdapter() {\n\t\t\t\tpublic void keyTyped(java.awt.event.KeyEvent e) {\n\t\t\t\t\tif (jTextArea.getText().length() > 10) {\n\t\t\t\t\t\tjTextArea.setText(jTextArea.getText().substring(0,10));\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\tjTextArea.addCaretListener(new javax.swing.event.CaretListener() {\n\t\t\t\tpublic void caretUpdate(javax.swing.event.CaretEvent e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jTextArea;\n\t}",
"private ZapTextArea getTxtDescription() {\n if (txtDescription == null) {\n txtDescription = new ZapTextArea();\n txtDescription.setBorder(\n javax.swing.BorderFactory.createBevelBorder(\n javax.swing.border.BevelBorder.LOWERED));\n txtDescription.setLineWrap(true);\n }\n return txtDescription;\n }",
"public static String getInputText(){\n\t\treturn textArea.getText();\n\t}",
"private JTextArea getJTextArea() {\r\n\t\tif (jTextArea == null) {\r\n\t\t\tjTextArea = new JTextArea();\r\n\t\t\tjTextArea.setBounds(new Rectangle(227, 123, 395, 345));\r\n\t\t\tjTextArea.setEditable(false);\r\n\t\t}\r\n\t\treturn jTextArea;\r\n\t}",
"public static TextArea createTextArea() {\n\t\tTextArea txt = new TextArea();\n\t\ttxt.setText(\" \");\n\t\ttxt.setPrefWidth(350);\n\t\ttxt.setPrefHeight(50);\n\t\treturn txt;\n\t}",
"JTextArea getDisplay();",
"private JTextArea Tekstas() {\n\t JTextArea detailTA = new JTextArea();\n\t detailTA.setFont(new Font(\"Monospaced\", Font.PLAIN, 14));\n\t detailTA.setTabSize(3);\n\t detailTA.setLineWrap(true);\n\t detailTA.setWrapStyleWord(false);\n\t return (detailTA);\n\t}",
"private JTextArea getDetailsTextArea() {\r\n\t\tif (detailsTextArea == null) {\r\n\t\t\ttry {\r\n\t\t\t\tdetailsTextArea = new JTextArea();\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn detailsTextArea;\r\n\t}",
"public JTextArea getTextAreaQ() {\r\n\t\treturn textAreaQ;\r\n\t}",
"public TextArea getInputPane();",
"private void generateTextArea()\n {\n //Clear the textArea\n textArea.selectAll();\n textArea.replaceSelection(\"\");\n\n MyCircle circle = panel.getCircle();\n\n //Add all of the required information to the textarea\n textArea.append(String.format(\"AREA: %.2f %n\", circle.getArea()));\n textArea.append(\"RADIUS: \"+circle.getRadius()+\"\\n\");\n textArea.append(\"DIAMETER: \"+circle.getDiameter()+\"\\n\");\n textArea.append(String.format(\"CIRCUMFERENCE: %.2f %n\", circle.getCircumference()));\n }",
"private JTextArea getJTextArea1() {\r\n\t\tif (jTextArea1 == null) {\r\n\t\t\tjTextArea1 = new JTextArea();\r\n\t\t\tjTextArea1.setBounds(new Rectangle(21, 331, 185, 94));\r\n\t\t\tjTextArea1.setText(\"You can use '*' or '?'.\\n If you type 'ma*' ,\" +\r\n\t\t\t\t\t\" will appear\\n all the words wich start with 'ma'.\" +\r\n\t\t\t\t\t\"\\n If you type 'm?' ,\" +\r\n\t\t\t\t\t\" will appear\\n all the words with two letters\\nwich start with 'm'.\");\r\n\t\t\tjTextArea1.setBackground(Color.green);\r\n\t\t\tjTextArea1.setEditable(false);\r\n\t\t}\r\n\t\treturn jTextArea1;\r\n\t}",
"private JTextArea getJTextFieldData() {\r\n\t\tif (jTextAreaData == null) {\r\n\t\t\tjTextAreaData = new JTextArea();\r\n\t\t\tjTextAreaData.setForeground(new Color(0, 0, 204));\r\n\t\t\tjTextAreaData.setFont(new Font(\"微软雅黑\", Font.PLAIN, 13));\r\n\t\t}\r\n\t\treturn jTextAreaData;\r\n\t}",
"private JTextArea getSelectedTextArea() {\r\n\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\tif (index == -1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tJScrollPane sp = (JScrollPane) tabbedPane.getComponent(index);\r\n\t\tJTextArea editor = (JTextArea) sp.getViewport().getView();\r\n\t\t\r\n\t\treturn editor;\r\n\t}",
"private String getMessage(){\n\t\t\treturn textArea.getText();\n\t}",
"public JTextArea getTextAreaA() {\r\n\t\treturn textAreaA;\r\n\t}",
"public JTextArea getJTextAreaDescription() {\n\t\tif (jTextAreaDescription == null) {\n\t\t\tjTextAreaDescription = new JTextArea();\n\t\t\tjTextAreaDescription.setCaretColor(new Color(212, 208, 200));\n\t\t\tjTextAreaDescription.setBackground(this.getBackground());\n\t\t\tjTextAreaDescription.setLineWrap(true);\n\t\t\tjTextAreaDescription.setWrapStyleWord(true);\n\t\t\tjTextAreaDescription.setEditable(false);\n\t\t\tjTextAreaDescription.setFont(new Font(\"SansSerif\", Font.PLAIN, 12));\n\t\t\tjTextAreaDescription.setDisabledTextColor(new Color(212, 208, 200));\n\t\t}\n\t\treturn jTextAreaDescription;\n\t}",
"public JTextArea getJTextAreaPreview() {\n\t\tif (jTextAreaPreview == null) {\n\t\t\tjTextAreaPreview = new JTextArea();\n\t\t\tjTextAreaPreview.setBackground(this.getBackground());\n\t\t\tjTextAreaPreview.setFont(new Font(\"Courier\", Font.PLAIN, 13));\n\t\t\tjTextAreaPreview.setEditable(false);\n\t\t\tjTextAreaPreview.setDisabledTextColor(new Color(212, 208, 200));\n\t\t\tjTextAreaPreview.setCaretColor(new Color(212, 208, 200));\n\t\t\tjTextAreaPreview.setWrapStyleWord(true);\n\t\t\tjTextAreaPreview.setLineWrap(true);\n\t\t\tjTextAreaPreview.setCursor(new Cursor(Cursor.TEXT_CURSOR));\n\t\t}\n\t\treturn jTextAreaPreview;\n\t}",
"private JTextArea getTxtDsDocPendente() {\r\n\t\tif (txtDsDocPendente == null) {\r\n\t\t\ttxtDsDocPendente = new JTextArea();\r\n\t\t\ttxtDsDocPendente.setBounds(new Rectangle(12, 94, 375, 126));\r\n\t\t\ttxtDsDocPendente.setToolTipText(\"Descrição do documento pendente do aluno\");\r\n\t\t}\r\n\t\treturn txtDsDocPendente;\r\n\t}",
"protected Text getText() {\n \t\treturn text;\n \t}",
"private RTextArea getErrorMessageTextArea() {\n if (errorMessageTextArea == null) {\n errorMessageTextArea = new RTextArea();\n errorMessageTextArea.setText(\"RTextArea\");\n errorMessageTextArea.setStyleProperties(\"{/weightY \\\"0.25\\\"}\");\n errorMessageTextArea.setColumns(30);\n errorMessageTextArea.setEditable(false);\n errorMessageTextArea.setStyle(\"fill-horiz-north-border\");\n errorMessageTextArea.setWrapStyleWord(true);\n errorMessageTextArea.setLineWrap(true);\n errorMessageTextArea.setName(\"errorMessageTextArea\");\n }\n return errorMessageTextArea;\n }",
"public T casetextArea(textArea object) {\n\t\treturn null;\n\t}",
"public String getString() {\n\t\ttry {\n\t\t\treturn fromTextArea.take().trim();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public ExtractTextByArea() throws IOException {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public TextArea makeInputArea (double height, double width) {\r\n TextArea cmdBox = new TextArea();\r\n cmdBox.setPrefColumnCount(INPUT_FIELD_WIDTH);\r\n cmdBox.setPrefHeight(height);\r\n cmdBox.setPrefWidth(width);\r\n return cmdBox;\r\n }",
"private javax.swing.JTextArea getJTextAreaLicense() {\n\tif (JTextAreaLicense == null) {\n\t\ttry {\n\t\t\tJTextAreaLicense = new javax.swing.JTextArea();\n\t\t\tJTextAreaLicense.setName(\"JTextAreaLicense\");\n\t\t\tJTextAreaLicense.setLineWrap(true);\n\t\t\tJTextAreaLicense.setWrapStyleWord(true);\n\t\t\tJTextAreaLicense.setFont(new java.awt.Font(\"monospaced\", 0, 12));\n\t\t\tJTextAreaLicense.setBounds(0, 0, 160, 120);\n\t\t\tJTextAreaLicense.setMargin(new java.awt.Insets(1, 3, 1, 3));\n\t\t\tJTextAreaLicense.setEditable(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}\n\treturn JTextAreaLicense;\n}",
"public OzTextArea()\n{\n\tsetLayout(new BorderLayout());\n\tJScrollPane jsp = new JScrollPane(textArea);\n\tjsp.setBorder(\n\t\tBorderFactory.createCompoundBorder(\n\t\t\tBorderFactory.createRaisedBevelBorder(),\n\t\t\tBorderFactory.createEmptyBorder(5, 5, 5, 5)));\n\tadd(jsp, \"Center\");\n}",
"public String getText() {\n if (!this.a_text.isEnabled())\n return null;\n\n return this.a_text.getText();\n }",
"public TextInfoBox getTextInfoBox()\r\n {\r\n return textInfoBox;\r\n }",
"public String getText() {\n if (text == null) {\n return \"NO TEXT IN MEMORY.\";\n }\n return text.getTextPart();\n }",
"public String getText() {\n return text.getText();\n }",
"public java.lang.String getText() {\n \t\treturn text;\n \t}",
"public String getContent() {\r\n \r\n return text;\r\n }",
"public javax.swing.JTextArea getjTextArea1() {\n return jTextArea1;\n }",
"private JTextField getJTextField() {\r\n\t\tif (jTextField == null) {\r\n\t\t\tjTextField = new JTextField();\r\n\t\t\tjTextField.setBounds(new Rectangle(172, 63, 240, 31));\r\n\t\t\tjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n\t\t\t\tpublic void keyReleased(java.awt.event.KeyEvent e) {\t\t\t\t\t\r\n\t\t\t\t\tif(e.getKeyChar()=='\\n') //or e.getKeyCode()==10\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tjTextArea.setText(\"\");\r\n\t\t\t\t\t\tString s=jTextField.getText();\r\n\t\t\t\t\t\tboolean ok=validate(s);\r\n\t\t\t\t\t\tif(!ok) jTextArea.setText(\"Sorry. No records for '\"+s+\"'.\");\r\n\t\t\t\t\t\tif(s.length()>0 && ok)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tString text;\r\n\t\t\t\t\t\t\ttext=(String)load.myMap.searchMatchesInMap(s);\r\n\t\t\t\t\t\t\tjTextArea.setEditable(true);\r\n\t\t\t\t\t\t\tif(text.compareTo(\"\")!=0)\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tjTextArea.setText(text);\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\tjTextArea.setText(\"Sorry. No records for '\"+s+\"'.\");\r\n\t\t\t\t\t\t\tjTextArea.setEditable(false);\r\n\t\t\t\t\t\t\tjTextField.setText(\"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t}\r\n\t\treturn jTextField;\r\n\t}",
"public String getText() {\n return textField.getText();\n }",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n {\n String txt = super.getText();\n if(txt != null)\n return txt.trim();\n else\n return null;\n }",
"public TextArea()\n {\n super(AreaId.TEXT, new AsciiByteFormatter());\n }",
"public String getText(){\r\n return text;\r\n }",
"public Object clone()\n{\n\tOzTextArea ta = new OzTextArea();\n\tta.setFont(textArea().getFont());\n\tta.setCursor(getCursor());\n\treturn ta;\n}",
"public String getText(){\r\n\t\treturn text;\r\n\t}",
"private JTextField getCenterDescTextField() {\r\n if (this.centerDescTextArea == null) {\r\n this.centerDescTextArea = new JTextField();\r\n this.centerDescTextArea.setColumns(10);\r\n }\r\n return this.centerDescTextArea;\r\n }",
"public TextField getComponentNode() {\n return commandPromptTextArea;\n }",
"public synchronized String getText() {\n\t\treturn text;\n\t}",
"public static TextArea wrap(Element element, boolean isHTMLFormElement) {\n\t\tassert Document.get().getBody().isOrHasChild(element);\n\n\t\tTextArea textArea = new TextArea(element);\n\n\t\t// Mark it attached and remember it for cleanup.\n\t\ttextArea.onAttach();\n\t\tif(!isHTMLFormElement){\n\t\t\tRootPanel.detachOnWindowClose(textArea);\n\t\t}\n\t\t//\n\n\t\treturn textArea;\n\t}",
"private String getMessagePlainText() throws BadLocationException{\n\t\treturn textArea.getDocument().getText(0, textArea.getDocument().getLength());\n}",
"protected Control createDialogArea(Composite parent) {\n\t\t\ttext = new Text(parent, SWT.READ_ONLY | SWT.NO_FOCUS);\n\n\t\t\t// Use the compact margins employed by PopupDialog.\n\t\t\tGridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);\n\t\t\tgd.horizontalIndent = 5;\n\t\t\tgd.verticalAlignment = SWT.CENTER;\n\t\t\ttext.setLayoutData(gd);\n\t\t\ttext.setText(contents);\n\n\t\t\t// since SWT.NO_FOCUS is only a hint...\n\t\t\ttext.addFocusListener(new FocusAdapter() {\n\t\t\t\tpublic void focusGained(FocusEvent event) {\n\t\t\t\t\tContentProposalPopup.this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn text;\n\t\t}",
"public String getText() {\n\t\t\treturn text.get();\n\t\t}",
"private JTextField getVstupText() {\n\t\tif (vstupText == null) {\n\t\t\tvstupText = new JTextField();\n\t\t\tvstupText.setBounds(new Rectangle(124, 278, 300, 30));\n\t\t}\n\t\treturn vstupText;\n\t}",
"private String getText() {\r\n\t\treturn getJTextField().getText();\r\n\t}",
"protected StringBuffer getTextBuffer() {\n return this.textBuffer;\n }",
"public String getText() {\n checkWidget();\n int length = OS.GetWindowTextLength(handle);\n if (length == 0)\n return \"\";\n TCHAR buffer = new TCHAR(getCodePage(), length + 1);\n OS.GetWindowText(handle, buffer, length + 1);\n return buffer.toString(0, length);\n }",
"public MyTextPane getEditor() {\n\t\treturn editor;\n\t}",
"public String getPlainText();",
"private JTextArea getConsole() {\r\n\t\tif (console == null) {\r\n\t\t\tconsole = new JTextArea();\r\n\t\t}\r\n\t\treturn console;\r\n\t}",
"private javax.swing.JTextPane getJTextPane() {\n\t\tif(jTextPane == null) {\n\t\t\tjTextPane = new javax.swing.JTextPane();\n\t\t\tjTextPane.setPreferredSize(new java.awt.Dimension(360,80));\n\t\t\tjTextPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\t\t}\n\t\treturn jTextPane;\n\t}",
"public String getText() {\n return myText;\n }",
"public String getText() {\r\n\t\treturn this.textfield.getText();\r\n\r\n\t}",
"public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBackground = false;\n \n // TextDisplays' TextArea specifics\n borderWidth = 5;\n borderHeight = 5;\n borderColor = new Color(0, 0, 0, 128);\n backgroundColor = new Color (255, 255, 255, 128);\n }",
"public final String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n return mTextContainer.getText();\n }",
"protected void createOutputTextArea() {\r\n\t\tthis.outputTextArea = new JTextArea(80, 30);\r\n\t\tthis.outputTextArea.setRows(2);\r\n\t\tthis.outputTextArea.setEditable(false);\r\n\t\tthis.outputTextArea.setLineWrap(false);\r\n\t\tthis.outputScrollPane = new JScrollPane(this.outputTextArea,\r\n\t\t\t\tVERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n\t\t// outputTA.setBackground( Color.gray );\r\n\t\tthis.outputScrollPane.setMinimumSize(new Dimension(60, 30));\r\n\t\tthis.outputScrollPane.setPreferredSize(new Dimension(100, 30));\r\n\t}",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}",
"public static TextArea getConsole() {\r\n\t\t\r\n\t\treturn console;\r\n\t}",
"public String getText() {\r\n return text;\r\n }",
"public String getText()\n {\n return (this.text);\n }",
"public JTextPane getResultTextPane() {\r\n\t\tif (resultTextPane == null) {\r\n\t\t\tresultTextPane = new JTextPane();\r\n\t\t\tresultTextPane.setBackground(Color.WHITE);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn resultTextPane;\r\n\t}",
"public final String getText() {\n return text;\n }",
"public String getText();",
"public String getText();",
"public String getText();",
"public String getText();",
"public MarcoAreaTexto() {\r\n \r\n super(\"Demostración JTextArea\");\r\n Box cuadro = Box.createHorizontalBox();\r\n String demo = \"Texto de ejemplo\\npara mostrar como\\n\" +\r\n \"se copia texto por\\neventoexterno (Salu2)\";\r\n \r\n areaTexto1 = new JTextArea(demo, 10, 15); \r\n cuadro.add(new JScrollPane(areaTexto1) );\r\n copiar = new JButton(\"Copiar >>> \");\r\n cuadro.add(copiar);\r\n copiar.addActionListener(\r\n \r\n new ActionListener() {\r\n \r\n public void actionPerformed(ActionEvent event) {\r\n \r\n areaTexto2.setText(areaTexto1.getSelectedText() );\r\n } //Fin del método actionPerformed\r\n } //Clase interna anónima\r\n ); //Clase interna anónima\r\n \r\n areaTexto2 = new JTextArea(10, 15);\r\n areaTexto2.setEditable(false);\r\n cuadro.add(new JScrollPane(areaTexto2) );\r\n add(cuadro);\r\n }",
"public String text() { return text; }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }"
] |
[
"0.81172955",
"0.7968299",
"0.77000844",
"0.75925773",
"0.75506043",
"0.75290453",
"0.74638426",
"0.74221605",
"0.73414564",
"0.7222687",
"0.71432793",
"0.7141908",
"0.7013381",
"0.69787925",
"0.6977651",
"0.69599557",
"0.6959767",
"0.6952817",
"0.6925706",
"0.6844488",
"0.6833559",
"0.6756315",
"0.6743717",
"0.6732199",
"0.6709319",
"0.6706128",
"0.6631278",
"0.6560525",
"0.6521164",
"0.64627564",
"0.6372976",
"0.6359619",
"0.635263",
"0.6349691",
"0.6336704",
"0.6327245",
"0.6310776",
"0.62968713",
"0.6296823",
"0.62859887",
"0.6262012",
"0.62562555",
"0.62562555",
"0.62562555",
"0.62543935",
"0.62512785",
"0.6250438",
"0.6247795",
"0.6243818",
"0.6220251",
"0.6197335",
"0.6190163",
"0.6185611",
"0.6182132",
"0.6162474",
"0.61615276",
"0.6161331",
"0.615852",
"0.6148058",
"0.6147133",
"0.61431897",
"0.6135886",
"0.613562",
"0.6131962",
"0.6122808",
"0.6122182",
"0.6121266",
"0.611529",
"0.6112963",
"0.6107086",
"0.6104541",
"0.6104541",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.609865",
"0.60978335",
"0.60971504",
"0.60970646",
"0.6089031",
"0.608688",
"0.6086791",
"0.6083376",
"0.6083376",
"0.6083376",
"0.6083376",
"0.60761195",
"0.60747796",
"0.6072362",
"0.6072362",
"0.6072362"
] |
0.6666305
|
26
|
Returns the string typed into this input dialog.
|
public String getValue()
{
return value;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getTextInput(){\r\n\t\treturn textInput.getText();\r\n\t}",
"public String getInput() {\r\n return getText();\r\n }",
"public static String getInputText(){\n\t\treturn textArea.getText();\n\t}",
"public String getText(){\n return input.getText().toString();\n }",
"public static String getString(String inputDialog) {\n return(JOptionPane.showInputDialog(inputDialog));\n }",
"public String getInputString() {\n return inputString;\n }",
"String getInputName() {\n return (nameInput.getText());\n }",
"public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}",
"public String inputName() {\n String name = editTextName.getText().toString();\n return name;\n }",
"String getVariableInput() {\n return (variableInput.getText());\n }",
"public String inputSpecialized() {\n String specialized = editTextSpecial.getText().toString();\n return specialized;\n }",
"public String getInput() {\n return input;\n }",
"private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}",
"protected SelectionText input() {\n return inputter;\n }",
"String getUserInput();",
"public String getInput()\t\n\t{\t//start of getInput method\n\t\treturn inputMsg;\n\t}",
"public String getInput() {\n return this.input.substring(this.index);\n }",
"String getTextValue();",
"public String getText_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getText();\r\n\t}",
"public String getTextFromTextField() {\r\n\t\treturn textField.getText();\r\n\t}",
"public String getUserInput() {\n\t\tString input;\n\t\tinput = this.console.next();\n\t\treturn input;\n\t}",
"public String getText() {\r\n\t\treturn this.textfield.getText();\r\n\r\n\t}",
"public String getPrompt(){ return _prompt ; }",
"public String keyboardReadString() {\n BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n String stringItem = \"\";\n try {\n stringItem = myReader.readLine();\n } // try\n catch (IOException IOError) {\n System.out.println(\"Read Error in Termio.KeyboardReadString method\");\n } // catch\n return stringItem;\n }",
"public String getInputUser() {\n return inputUser;\n }",
"public static String showInputDialog(String string) {\n\t\treturn null;\n\t}",
"public String getString(String pPrompt) {\r\n\t\tSystem.out.println(pPrompt + \"\");\r\n\t\treturn input.nextLine();\r\n\t}",
"String getInput();",
"String userInputFromTextArea();",
"public String getpasswordinput() {\n return tf2.getText();\n }",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public String getPrompt() { return prompt; }",
"private static String inputString() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Insert text: \");\n String inputText = userInput.nextLine();\n return inputText;\n }",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"public String getText();",
"public String getText();",
"public String getText();",
"public String getText();",
"public String textType() {\n return this.textType;\n }",
"public String getText() {\n return textField.getText();\n }",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"public String getPromptText(){\n\t\tString textPrev = text.substring(0, pointerPos);\n\t\tString textAfter =\"\";\n\t\tif(pointerPos < text.length() -1)\n\t\t\ttextAfter = text.substring(pointerPos+1,text.length());\n\t\tString str = textPrev.concat(textAfter);\n\t\tstr = str.trim().replaceAll(\" +\", \" \");\n\t\treturn (str);\n\t}",
"public String getTxtUser() {\n return txtUser.getText();\n }",
"public CharSequence getText();",
"public String getPrompt() {\n return prompt;\n }",
"public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}",
"public String getOriginalInput() {\n\t\treturn commandString;\n\t}",
"private String getText() {\r\n\t\treturn getJTextField().getText();\r\n\t}",
"String getSelectedAutoCompleteString();",
"String getText ();",
"public String getCurrrentInput(){\n\t\treturn this.currentInput;\n\t}",
"public String getText()\n {\n return field.getText();\n }",
"public Character getPromptSymbol();",
"private static String getUserTextTyped () {\n\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tBoolean loop = true;\n\t\tString text = \"\";\n\t\tdo {\n\t\t\ttry {\n\t\t\t\ttext = myReader.readLine();\n\n\t\t\t\tif ((text.length() < 3)) {\n\t\t\t\t\tshowMessage(\"Please type a minimum of 3 characters: \\n\");\n\t\t\t\t} else {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid.\");\n\t\t\t}\n\t\t} while (loop);\n\n\n\t\treturn text;\n\n\t}",
"public String getAnswer(String input)\n\t{\n\t\tString answer = \"\";\n\t\t\n\t\tanswer = JOptionPane.showInputDialog(null, input);\n\t\t\n\t\treturn answer;\n\t}",
"public String getValue_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getAttribute(\"value\");\r\n\t}",
"private static String getUserText()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(optionReader.readLine());\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(null);\n\t }\n }",
"public String getText() {\r\n\r\n return field.getText();\r\n\r\n }",
"public static String getStringInput() {\n Scanner in = new Scanner(System.in);\n return in.next();\n }",
"String promptString();",
"public static String getText()\n\t{\n\t\treturn enterURL.getText().toString();\n\t}",
"public static String GetInput() {\r\n\t\t// Scanner is created and a value is set for input\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tString input = in.nextLine();\r\n\t\treturn input;\r\n\r\n\t}",
"public String getTxt_potencia() {\r\n\t\treturn txt_potencia.getText();\r\n\t}",
"public String getInputForName() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn bufferedReader.readLine();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}",
"String getValueText();",
"public String getText() {\n return text.getText();\n }",
"public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\n\t}",
"public String getFieldValue() {\r\n\t\tString value = textBox.getValue();\r\n\t\t\t\r\n\t\treturn value;\r\n\t}",
"public String GetInput(JTextField textField, String text)\r\n {\r\n textField.selectAll();\r\n text = textField.getText();\r\n JOptionPane.showMessageDialog(this,\"<html><font size = 5>You enter: \\\"\"+ text+\"\\\"! \"\r\n +\"Please press \\\"OK\\\" to continue or press \\\"x\\\"\"\r\n + \" to exit</font></html>\");\r\n textField.setText(\"\");\r\n return text;\r\n }",
"public String getInputName(){\n \treturn model.getName();\n }",
"public java.lang.String getText() {\n return instance.getText();\n }",
"public String selection() {\n return inputter.selection();\n }",
"public String getPrompt() {\n\t\treturn prompt;\n\t}",
"public String fullCellText() {\n\t\treturn userInput;\r\n\t}",
"public String getInputor() {\r\n\t\treturn inputor;\r\n\t}",
"public String getValue()\r\n\t{\r\n\t\tString value = textField.getText();\r\n\t\treturn value==null || value.length()==0 ? null : value;\r\n\t}",
"public TextField getQuestion() {\r\n\t\tquestion.setPromptText(\"question\");\r\n\t\treturn question;\r\n\t}",
"public String getAsText() {\n\t\treturn mEditor.getText();\n\t}",
"public String getText()\n {\n return getComponent().getText();\n }",
"public java.lang.String getInputData() {\n return inputData;\n }",
"String consoleInput();",
"InputPromptTransmitter getInputPromptTransmitter();",
"private String getChoice() {\n return searchChoiceBox.getValue();\n }",
"public String getInput1() {\n return input1;\n }",
"public String getInputKey() {\n return this.inputKey;\n }",
"public String getAnswerText()\r\n\t {\r\n\t return spinner.getValue().toString();\r\n\t }",
"public String getText() {\n return str;\n }"
] |
[
"0.7417593",
"0.73528904",
"0.68548423",
"0.67931044",
"0.6694345",
"0.6671984",
"0.66547805",
"0.66025037",
"0.65569705",
"0.6491495",
"0.6448554",
"0.64353347",
"0.6428749",
"0.640445",
"0.63893646",
"0.6382091",
"0.63534296",
"0.63234764",
"0.6319364",
"0.63130635",
"0.63042825",
"0.6286883",
"0.61872846",
"0.6183727",
"0.6176568",
"0.61658615",
"0.6159574",
"0.61484784",
"0.613951",
"0.6109546",
"0.6106337",
"0.6105952",
"0.6092934",
"0.60809",
"0.60809",
"0.60809",
"0.60809",
"0.60809",
"0.60809",
"0.60809",
"0.60809",
"0.60802114",
"0.6072544",
"0.6072544",
"0.6072544",
"0.6072544",
"0.605309",
"0.6041799",
"0.6036831",
"0.6036831",
"0.6036831",
"0.6036831",
"0.6036831",
"0.6036831",
"0.6036831",
"0.6008371",
"0.59875023",
"0.59823287",
"0.5979699",
"0.5972362",
"0.59630215",
"0.595798",
"0.59458053",
"0.59415203",
"0.5933582",
"0.5909909",
"0.59067804",
"0.5898933",
"0.5893461",
"0.58926755",
"0.5882995",
"0.58815867",
"0.5873706",
"0.58592725",
"0.5838406",
"0.58255035",
"0.58134794",
"0.5812089",
"0.5810255",
"0.580053",
"0.5793511",
"0.5787504",
"0.5784449",
"0.5773686",
"0.5768151",
"0.57608944",
"0.5760693",
"0.575231",
"0.57360834",
"0.5734886",
"0.5730352",
"0.5727454",
"0.57267517",
"0.5723087",
"0.5713669",
"0.5713398",
"0.5691233",
"0.5682375",
"0.5678105",
"0.5673582",
"0.5672269"
] |
0.0
|
-1
|
Validates the input. The default implementation of this framework method delegates the request to the supplied input validator object; if it finds the input invalid, the error message is displayed in the dialog's message line. This hook method is called whenever the text changes in the input field.
|
protected void validateInput()
{
String errorMessage = null;
if ( validator != null ) {
errorMessage = validator.isValid(text.getText());
}
// Bug 16256: important not to treat "" (blank error) the same as null
// (no error)
setErrorMessage(errorMessage);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n @Nullable\r\n public Prompt acceptInput(@NotNull ConversationContext context, @Nullable String input) {\r\n if (isInputValid(context, input)) {\r\n return acceptValidatedInput(context, input);\r\n } else {\r\n String failPrompt = getFailedValidationText(context, input);\r\n if (failPrompt != null) {\r\n context.getForWhom().sendRawMessage(ChatColor.RED + failPrompt);\r\n }\r\n // Redisplay this prompt to the user to re-collect input\r\n return this;\r\n }\r\n }",
"@Nullable\r\n protected abstract Prompt acceptValidatedInput(@NotNull ConversationContext context, @NotNull String input);",
"protected abstract boolean isInputValid(@NotNull ConversationContext context, @NotNull String input);",
"private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }",
"protected void validate() {\n\t\tString quantity=editText.getText().toString().trim();\n\t\tif(quantity.length()==0){\n\t\t\tAlertUtils.showToast(mContext, \"Enter quantity\");\n\t\t\treturn;\n\t\t}else if(!isValidNumber(quantity)){\n\t\t\tAlertUtils.showToast(mContext, \"Enter valid quantity\");\n\t\t\treturn;\n\t\t}\n//\t\tif(((HomeActivity)mContext).checkInternet())\n//\t\t\tdialogCallback.setQuantity(item);\n\t}",
"@Nullable\n/* */ protected abstract Prompt acceptValidatedInput(@NotNull ConversationContext paramConversationContext, @NotNull Number paramNumber);",
"private boolean validateInput() {\n String departmentInput = mDepartmentField.getText().toString();\n String emailInput = mEmailField.getText().toString();\n String passwordInput = mPasswordField.getText().toString();\n\n if (departmentInput.isEmpty()) {\n mDepartmentField.setError(\"Please enter your department number\");\n mDepartmentField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n\n if (emailInput.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(emailInput).matches()) {\n mEmailField.setError(\"Please enter a valid email address\");\n mEmailField.requestFocus();\n return false;\n } else {\n mEmailField.setError(null);\n }\n\n if (passwordInput.isEmpty()) {\n mPasswordField.setError(\"Please enter your password\");\n mPasswordField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n return true;\n }",
"private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (nameField.getText() == null || nameField.getText().length() == 0) {\r\n errorMessage += \"请输入直播名!\\n\";\r\n }\r\n if (urlField.getText() == null || urlField.getText().length() == 0) {\r\n errorMessage += \"请输入直播流!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"输入错误\");\r\n alert.setContentText(errorMessage);\r\n return false;\r\n }\r\n }",
"private void InputTextValidator () {\n isNotNull = !txtCategoryNo.getText().equals(\"\") && !txtCategoryName.getText().equals(\"\");\n }",
"private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n// Show the error message.\r\n Dialogs.create()\r\n .title(\"Invalid Fields\")\r\n .masthead(\"Please correct invalid fields\")\r\n .message(errorMessage)\r\n .showError();\r\n return false;\r\n }\r\n }",
"public interface InputValidationListener {\n\n /**\n * Called when the command that has been entered is illegal.\n *\n * @param reason The reason that the command is illegal\n */\n void illegalCommand(final String reason);\n\n /**\n * Called when the command that has been entered is legal.\n *\n * @since 0.6\n */\n void legalCommand();\n\n /**\n * Called when the text or command that has been entered will be wrapped onto multiple lines.\n *\n * @param count The number of lines that the text will be sent as\n */\n void wrappedText(final int count);\n\n}",
"@Override\n\t@FXML\n\tpublic boolean validate() {\n\t\t\n\t\tboolean isDataEntered = true;\n\t\tLocalDate startDate = Database.getInstance().getStartingDate();\n\t\tSystem.out.println();\n\t\tif(amountField.getText() == null || amountField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the amount field empty.\");\n\t\telse if(!(Validation.validateAmount(amountField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please enter a valid amount\");\n\t\telse if(creditTextField.getText() == null || creditTextField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the credit text field empty.\");\n\t\telse if(!(Validation.validateChars(creditTextField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please only enter valid characters\");\n\t\telse if(dateField.getValue() == null) {\n\t\t\tisDataEntered = setErrorTxt(\"You left the date field empty.\");\t\t\t\n\t\t}\n\t\telse if(dateField.getValue().isBefore(startDate))\n\t\t\tisDataEntered = setErrorTxt(\"Sorry, the date you entered is before the starting date.\");\n\t\treturn isDataEntered;\n\t}",
"@Override\n\t\tprotected boolean isTextValid()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (getField().getText().isEmpty())\n\t\t\t\t\tthrow new AppException(ErrorId.NO_FILTER);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (AppException e)\n\t\t\t{\n\t\t\t\tGuiUtils.setFocus(getField());\n\t\t\t\tJOptionPane.showMessageDialog(this, e, App.SHORT_NAME, JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"private boolean validateInput() {\n\tboolean valid = false;\n\ttry {\n\t if (paymentText == null | paymentText.getValue() == \"\") {\n\t\tpaymentText.focus();\n\t\tthrow new NullPointerException(\"paymentText fehlt\");\n\t }\n\t if (paymentBetrag == null | paymentBetrag.getValue() == \"\") {\n\t\tpaymentBetrag.focus();\n\t\tthrow new NullPointerException(\"paymentBetrag fehlt\");\n\t }\n\t if (!paymentBetrag.isEmpty()) {\n\t\t@SuppressWarnings(\"unused\")\n\t\tdouble d = Double.parseDouble(paymentBetrag.getValue());\n\t }\n\t // seems that everything was OK\n\t valid = true;\n\t} catch (NullPointerException e) {\n\t System.out.println(\"PaymentWindow - \" + e);\n\t} catch (NumberFormatException e) {\n\t // entered value is no number\n\t paymentBetrag.focus();\n\t}\n\treturn valid;\n }",
"public interface InputValidator<E> {\n\t\tString DEFAULT_SUCCESS_MESSAGE = \"\";\n\t\tString FIELD_CANNOT_BE_EMPTY = \"Este campo n�o pode ficar vazio.\";\n\n\t\t/**\n\t\t * gets the validation result.\n\t\t *\n\t\t * @param input the <code>Object</code> to be validated.\n\t\t * @return the validation result.\n\t\t */\n\t\tString getErrorMessage(E input);\n\n\t\tdefault boolean isValid(E input) {\n\t\t\treturn getErrorMessage(input).equals(DEFAULT_SUCCESS_MESSAGE);\n\t\t}\n\t}",
"protected abstract boolean isInputValid();",
"private boolean isValidInput() {\n\t\treturn true;\n\t}",
"@Override\n protected boolean validate(HttpServletRequest request) {\n\t\tlog.debug(\"ContectCtl validate method start\");\n boolean pass = true;\n\n if (DataValidator.isNull(request.getParameter(\"name\"))) {\n request.setAttribute(\"name\",\n PropertyReader.getValue(\"error.require\", \"Name\"));\n pass = false;\n }else if (!DataValidator.isName(request.getParameter(\"name\"))) {\n\t\t\trequest.setAttribute(\"name\",\n\t\t\t\t\tPropertyReader.getValue(\"error.name\", \"Name\"));\n\t\t\tpass = false;\n\t\t}\n \n if (DataValidator.isNull(request.getParameter(\"email\"))) {\n\t\t\trequest.setAttribute(\"email\",\n\t\t\t\t\tPropertyReader.getValue(\"error.require\", \"Email Address\"));\n\t\t\tpass = false;\n\t\t} else if (!DataValidator.isEmail(request.getParameter(\"email\"))) {\n\t\t\trequest.setAttribute(\"email\",\n\t\t\t\t\tPropertyReader.getValue(\"error.email\", \"Email Address\"));\n\t\t\tpass = false;\n\t\t}\n\n if (DataValidator.isNull(request.getParameter(\"message\"))) {\n request.setAttribute(\"message\",\n PropertyReader.getValue(\"error.require\", \"Message\"));\n pass = false;\n }\n\n log.debug(\"ContectCtl validate method end\");\n return pass;\n }",
"private boolean isInputValid() {\n return true;\n }",
"@Nullable\r\n protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull String invalidInput) {\r\n return null;\r\n }",
"private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif (dateField.getText() == null || dateField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiges Datum!\\n\";\n\t\t} else {\n\t\t\tif (!DateUtil.validDate(dateField.getText())) {\n\t\t\t\terrorMessage += \"Kein gültiges Datum. Benutze das dd.mm.yyy Format!\\n\";\n\t\t\t}\n\t\t}\n\t\tString categoryFieldSelection = categoryField.getSelectionModel().getSelectedItem();\n\t\tif (categoryFieldSelection.isEmpty() || categoryFieldSelection.length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Kategorie!\\n\";\n\t\t}\n\t\tif (useField.getText() == null || useField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Verwendungszweck!\\n\";\n\t\t}\n\t\tif (amountField.getText() == null || amountField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Betrag!\\n\";\n\t\t} \n\t\t/**else {\n\t\t\t// try to parse the amount into a double\n\t\t\ttry {\n\t\t\t\tDouble.parseDouble(amountField.getText());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\terrorMessage += \"Kein zulässiger Betrag! (Nur Dezimalzahlen erlaubt)\\n\";\n\t\t\t}\n\t\t}**/\n\t\tif (distributionKindField.getText() == null || distributionKindField.getText().length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Ausgabeart!\\n\";\n\t\t}\n\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Show the error message.\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Ungültige Eingaben\");\n\t\t\talert.setHeaderText(\"Bitte korrigieren Sie die Fehler in den Feldern.\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.showAndWait();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}",
"private boolean validateInput() {\n boolean isValid = true;\n Alert errMsg = Util.getAlert(Alert.AlertType.ERROR);\n if (connectionsCB.getEditor().getText() == null || !Util.isValidAddress(connectionsCB.getEditor().getText())) {\n errMsg.setContentText(\"Invalid TRex Host Name or IP address\");\n isValid = false;\n } else if (!Util.isValidPort(rpcPort.getText())) {\n errMsg.setContentText(\"Invalid TRex Sync Port Number(\" + rpcPort.getText() + \")\");\n isValid = false;\n } else if (!Util.isValidPort(asyncPort.getText())) {\n errMsg.setContentText(\"Invalid Async Port Number(\" + asyncPort.getText() + \")\");\n isValid = false;\n } else if (Util.isNullOrEmpty(nameTF.getText())) {\n errMsg.setContentText(\"Name should not be empty\");\n isValid = false;\n }\n\n if (!isValid) {\n errMsg.show();\n }\n return isValid;\n }",
"public ValidatorInput(String validatorProperty, String contextProperty) {\n super();\n setValidatorProperty(validatorProperty);\n setContextProperty(contextProperty);\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n //for now just check they actually typed something\n if ((userField.getText() == null) || userField.getText().isEmpty()) {\n errorMessage += \"No username entered\\n\";\n }\n if ((pwField.getText() == null) || pwField.getText().isEmpty()) {\n errorMessage += \"No password entered\\n\";\n }\n\n //no error message means success / good input\n if (errorMessage.isEmpty()) {\n return true;\n } else {\n // Show the error message if bad data\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(_dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }",
"private void validateInput(Label info, Label updateLabel, TextField field, String carValue, double min, double max) {\r\n\t\tif (! isValidDouble(field.getText())) {\r\n\t\t\tvalidateAndUpdate(field, false, updateLabel, \"Invalid number\");\r\n\t\t}\r\n\t\telse if (! isInsideBounderies(Double.valueOf(field.getText()), min, max)) {\r\n\t\t\tvalidateAndUpdate(field, false, updateLabel, min + \" <= value <= \" + max);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble valueR = formatDoubleWithTwoDeci(Double.valueOf(field.getText()));\r\n\t\t\tcarData.updateValue(carValue, valueR);\r\n\t\t\t\r\n\t\t\tvalidateAndUpdate(field, true, updateLabel, \"Successfully updated\");\r\n\t\t\tswitch (carValue) {\r\n\t\t\tcase DOOR_LENGTH: case REAR_DOOR_LENGTH: case BLIND_ZONE_VALUE: case FRONT_PARK_DISTANCE: info.setText(valueR + \"m\"); break;\r\n\t\t\tcase TOP_SPEED: info.setText(valueR + \"km/h\"); break;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean isInputValid() {\n boolean isValidInput = true;\n\n if (TextUtils.isEmpty(studentID)) {\n Validator.setEmptyError(studentIDLayout);\n isValidInput = false;\n } else {\n studentIDLayout.setError(null);\n studentIDLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(studentName)) {\n Validator.setEmptyError(studentNameLayout);\n isValidInput = false;\n } else {\n studentNameLayout.setError(null);\n studentNameLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(fatherName)) {\n Validator.setEmptyError(fatherNameLayout);\n isValidInput = false;\n } else {\n fatherNameLayout.setError(null);\n fatherNameLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(gender)) {\n genderErrorText.setVisibility(View.VISIBLE);\n isValidInput = false;\n } else {\n genderErrorText.setVisibility(View.GONE);\n }\n\n if (TextUtils.isEmpty(phone)) {\n Validator.setEmptyError(phoneLayout);\n isValidInput = false;\n } else if (!Validator.isValidMobile(phone)) {\n isValidInput = false;\n phoneLayout.setError(\"This phone is not valid\");\n } else {\n phoneLayout.setError(null);\n phoneLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(email)) {\n Validator.setEmptyError(emailLayout);\n isValidInput = false;\n } else if (!Validator.isValidEmail(email)) {\n isValidInput = false;\n emailLayout.setError(\"This email is not valid\");\n } else {\n emailLayout.setError(null);\n emailLayout.setErrorEnabled(false);\n }\n\n return isValidInput;\n }",
"@Override\r\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tcheckInput();\r\n\t\t\t}",
"@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull String invalidInput) {\n/* 57 */ if (NumberUtils.isNumber(invalidInput)) {\n/* 58 */ return getFailedValidationText(context, NumberUtils.createNumber(invalidInput));\n/* */ }\n/* 60 */ return getInputNotNumericText(context, invalidInput);\n/* */ }",
"private void validation() {\n this.validate();\n this.repaint();\n }",
"public void addInputHandler() {\r\n\t\tnativeon(inputField.getTextComponent().getInputElement());\r\n\t}",
"@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) {\n/* 87 */ return null;\n/* */ }",
"private boolean checkInputValidation(){\n if(facility_EDT_value.getText().toString().trim().isEmpty()){\n Toast.makeText(getContext(), \"Please enter search value!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"public static void addTextValidator(TextInputEditText inputEditText, TextInputLayout textInputLayout) {\n addTextValidator(inputEditText, textInputLayout, 0);\n }",
"public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ID.getText() == null || ID.getText().length() == 0) {\n errorMessage += \"No valid id!\\n\";\n System.out.println(\"fl\");\n }\n if (password.getText() == null || password.getText().length() == 0) {\n errorMessage += \"No valid password!\\n\"; \n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Dialogs.create()\n .title(\"Invalid Fields\")\n .masthead(\"Please correct invalid fields\")\n .message(errorMessage)\n .showError();\n return false;\n }\n }",
"private boolean validateInput(EditText titleInput, EditText descriptionInput, EditText priceInput) {\n String title = titleInput.getText().toString();\n String description = descriptionInput.getText().toString();\n int price = (TextUtils.isEmpty(priceInput.getText().toString()))? -1 : Integer.parseInt(priceInput.getText().toString());\n if (TextUtils.isEmpty(title) || TextUtils.isEmpty(description) || price < 0) {\n Toast.makeText(this.getActivity(),\n \"Please, fill in all fields.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n if (photoURI == null) {\n Toast.makeText(this.getActivity(),\n \"Please, add a picture to this item before submitting it.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif(userNameField.getText() == null || userNameField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a felhasználó név mező!\\n\";\n\t\t}\n\t\tif(passwordField.getText() == null || passwordField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a jelszó mező!\";\n\t\t}\n\t\t\n\t\tif(errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// show the error message\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Érvénytelen mezők\");\n\t\t\talert.setHeaderText(\"Kérlek töltsd ki az összes mezőt!\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\t\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (commentField.getText() == null || commentField.getText().length() == 0) {\n errorMessage += \"Не введен комментарий!\\n\";\n }\n if (timeField.getText() == null || timeField.getText().length() == 0) {\n errorMessage += \"Не введено время выполнения задачи!\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не введены все данные!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Пожалуйста, введите все данные!\");\n alert.showAndWait();\n return false;\n }\n }",
"public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}",
"private void validateAndUpdate(TextField textField, boolean isValid, Label ruleField, String ruleMessage) {\r\n \tif (textField != null) {\r\n \t\tif (textField.getText().equals(\"\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tString color = isValid ? \"white\" : \"red\";\r\n \t\ttextField.setStyle(\"-fx-background-color: \" + color);\r\n \t\tif (isValid) {\r\n \t\t\tbackUpData.writeCarDataToFile(carData.getDoorLength(), carData.getRearDoorLength(), carData.getBlindZoneValue(),\r\n \t\t\t\t\t\t\t\t\t\t carData.getTopSpeed(), carData.getFrontDistParking());\r\n \t\t\tboolean notReady = ! carData.isReady();\r\n \t\t\tmainRuleLabel.setVisible(notReady);\r\n \t\t\tdisableModeButtons(driveModeButton, blindZoneModeButton, parkingModeButton, notReady);\r\n \t\t\tif (notReady) {\r\n \t\t\t\tvalidateAndUpdate(null, false, mainRuleLabel, \"Update vehicle data\"); \t\t\t\t\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \telse {\r\n \t\tbackUpData.writeUserDataToFile(smartBrakeActivated, blindspotAlwaysActivated, audioWarningActivated);\r\n \t}\r\n \t\r\n if (ruleField != null) {\r\n \truleField.setText(ruleMessage);\r\n \tif (isValid) {\r\n \t\truleField.setTextFill(Color.GREEN);\r\n \t}\r\n \telse {\r\n \t\truleField.setTextFill(Color.RED); \t\t\r\n \t}\r\n \truleField.setVisible(true);\r\n }\r\n }",
"public static String showStringInputDialog(String title, String message, InputValidator<String> validator) {\n\t\tString s;\n\t\tvar isValid = false;\n\n\t\tdo {\n\t\t\ts = showStringInputDialog(title, message);\n\t\t\tif (s == null)\n\t\t\t\treturn null;\n\t\t\tisValid = validator.isValid(s);\n\n\t\t\tif (!isValid)\n\t\t\t\tMessageDialog.showAlertDialog(title, validator.getErrorMessage(s));\n\t\t} while (!isValid);\n\n\t\treturn s;\n\t}",
"public boolean inputIsValid() {\n return nameIsValid() &&\n descriptionIsValid() &&\n priceIsValid() &&\n streetIsValid() &&\n zipcodeIsValid() &&\n cityIsValid() &&\n imageIsSelected();\n }",
"public boolean isInputValid() {\n if ( !noFieldsEmpty() ) {\n return false;\n }\n\n String rawPhone = phoneField.getText().replaceAll(\"-\",\"\");\n if (!rawPhone.matches(\"[0-9]*\")) {\n errorLabel.setText(rb.getString(\"phoneIncorrect\"));\n return false;\n }\n\n errorLabel.setText(\"\");\n return true;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (gemNameField.getText() == null || gemNameField.getText().length() == 0) {\n errorMessage += \"No valid gem name!\\n\";\n }\n if (gemValueField.getText() == null || gemValueField.getText().length() == 0) {\n errorMessage += \"No valid gem value!\\n\";\n } else {\n // try to parse the gem value into an int.\n try {\n Integer.parseInt(gemValueField.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid gem value (must be an integer)!\\n\";\n }\n }\n if (gemDescripField.getText() == null || gemDescripField.getText().length() == 0) {\n errorMessage += \"No valid gem description!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }",
"private boolean validInput() throws SQLException {\n if (userNameField.getText().length() == 0) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (userNameField.getText().length() == 1) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (!isAllLetters(userNameField.getText())) {\n displayMessage(messagePane, \"Names must be all letters\", true);\n return false;\n }\n else if (!(userNameField.getText().contains(\" \")) || userNameField.getText().charAt(0) == ' ') {\n displayMessage(messagePane, \"Name must consist of two words\", true);\n return false;\n }\n else if (!(emailField.getText().contains(\"@\"))) {\n displayMessage(messagePane, \"Invalid email\", true);\n return false;\n }\n else if (DatabaseManager.isEmailTaken(user.getDatabaseConnection(), emailField.getText()) && !(emailField.getText().equals(user.getUser().getEmail()))){\n displayMessage(messagePane, \"Email is used before\", true);\n return false;\n }\n else {\n displayMessage(messagePane,\"Changes are saved\", false);\n return true;\n }\n }",
"public void textFieldValidator(KeyEvent event) {\n TextFieldLimited source =(TextFieldLimited) event.getSource();\n if (source.equals(partId)) {\n isIntegerValid(event);\n } else if (source.equals(maximumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(partName)) {\n isCSVTextValid(event);\n } else if (source.equals(inventoryCount)) {\n isIntegerValid(event);\n } else if (source.equals(minimumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(variableTextField)) {\n if (inHouse.isSelected()) {\n isIntegerValid(event);;\n } else {\n isCSVTextValid(event);\n }\n } else if (source.equals(partPrice)) {\n isDoubleValid(event);\n } else return;\n }",
"private static void showInputDialog(Context c, int titleID, int messageID, EntryType type, final IInputCallback listener){\n\t\t// Create a textview for the entry\n\t\tfinal EditText et = new EditText(c);\n\t\tswitch(type){\n\t\tcase Number:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_NUMBER);\n\t\t\tbreak;\n\t\tcase String:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_TEXT);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Must supply an EntryType for the input\");\n\t\t}\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\t\n\t\tbuilder.setTitle(titleID);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\t\tbuilder.setView(et)\n\t\t.setPositiveButton(R.string.okay, new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tlistener.onInput(et.getText().toString());\n\t\t\t}\n\t\t})\n\t\t.setNegativeButton(R.string.close, null);\n\t\t\n\t\tbuilder.create().show();\n\t}",
"private boolean validateInputInfo(){\n\n //Get user input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Check to make sure no boxes were left empty\n if(firstName.isEmpty() || lastName.isEmpty() || email.isEmpty() || phone.isEmpty()){\n Toast.makeText(this, \"You must fill all fields before continuing!\", Toast.LENGTH_LONG).show();\n return false;\n }\n //Check to see if phone number is valid\n else if(!(phone.length() >= 10)){\n Toast.makeText(this, \"Make sure to input a valid 10 digit phone number!\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n return true;\n }",
"private boolean validEditInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameEditField.getText().equals(\"\") || abbrevationEditField.getText().equals(\"\")\n || chooseCityBox.getValue() == null || chooseLeagueBox.getValue() == null\n || chooseLeagueTeamBox.getValue() == null) {\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationEditField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameEditField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }",
"boolean validateInput() {\n if (etFullname.getText().toString().equals(\"\")) {\n etFullname.setError(\"Please Enter Full Name\");\n return false;\n }\n if (etId.getText().toString().equals(\"\")) {\n etId.setError(\"Please Enter ID\");\n return false;\n }\n if (etEmail.getText().toString().equals(\"\")) {\n etEmail.setError(\"Please Enter Email\");\n return false;\n }\n if (etHall.getText().toString().equals(\"\")) {\n etHall.setError(\"Please Enter Hall Name\");\n return false;\n }\n if (etAge.getText().toString().equals(\"\")) {\n etAge.setError(\"Please Enter Age\");\n return false;\n }\n if (etPhone.getText().toString().equals(\"\")) {\n etPhone.setError(\"Please Enter Contact Number\");\n return false;\n }\n if (etPassword.getText().toString().equals(\"\")) {\n etPassword.setError(\"Please Enter Password\");\n return false;\n }\n\n // checking the proper email format\n if (!isEmailValid(etEmail.getText().toString())) {\n etEmail.setError(\"Please Enter Valid Email\");\n return false;\n }\n\n // checking minimum password Length\n if (etPassword.getText().length() < MIN_PASSWORD_LENGTH) {\n etPassword.setError(\"Password Length must be more than \" + MIN_PASSWORD_LENGTH + \"characters\");\n return false;\n }\n\n\n return true;\n }",
"@Nullable\n/* */ protected String getInputNotNumericText(@NotNull ConversationContext context, @NotNull String invalidInput) {\n/* 74 */ return null;\n/* */ }",
"private boolean validateInput(){\n boolean operationOK = true;\n //perform input validation on the double values in the form\n String integrationTime = this.integrationTimeText.getText();\n String integrationFrequency = this.integrationFrequencyText.getText();\n \n if(!integrationTime.equals(\"\")){\n try {\n Double itime = Double.parseDouble(integrationTime);\n integrationTimeText.setBackground(Color.WHITE);\n integrationTimeText.setToolTipText(\"Time in seconds (s)\");\n } catch (NumberFormatException ex) {\n integrationTimeText.setBackground(Color.RED);\n operationOK=false;\n integrationTimeText.setToolTipText(\"This field has to be a valid double (eg. 1.5)\");\n }\n }\n if(!integrationFrequency.equals(\"\")){\n try {\n Double itime = Double.parseDouble(integrationFrequency);\n integrationFrequencyText.setBackground(Color.WHITE);\n integrationFrequencyText.setToolTipText(\"Frequency in Hertz (Hz)\");\n \n } catch (NumberFormatException ex) {\n operationOK=false;\n integrationFrequencyText.setBackground(Color.RED);\n integrationFrequencyText.setToolTipText(\"This field has to be a valid double (eg. 1.5)\");\n }\n }\n if(currentStepOperationsPanel!=null){\n operationOK = this.currentStepOperationsPanel.validateInput();\n \n }\n return operationOK;\n }",
"private boolean validateUserInputs() {\n ArrayList<String> errors = new ArrayList();\n \n if (this.view.getContent().equals(\"\")) {\n errors.add(\"\\t - Enter a comment\");\n }\n \n if (errors.size() > 0) {\n String errorMsg = \"Unable to save new Asset.\\nDetails:\";\n for (String error : errors) {\n errorMsg += \"\\n\" + error;\n }\n JOptionPane.showMessageDialog(this.view, errorMsg, \"Unable to Save\", JOptionPane.INFORMATION_MESSAGE);\n return false;\n }\n return true;\n }",
"private long inputAlert(String title, String input) {\n\t\tflag = false;\n\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(input);\n\t\terrorMessage.setPrefWidth(150 + input.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tTextField alert = new TextField();\n\t\tButton submit = new Button(\"Submit\");\n\n\t\tsubmit.setOnAction(event -> {\n\t\t\tint[] inputs = alert.getCharacters().chars().toArray();\n\t\t\tint total = condense(inputs);\n\t\t\tif(!flag) {\n\t\t\t\talertInput = total;\n\t\t\t} else {\n\t\t\t\talertInput = 100000000; \t//sets to be flagged later on\n\t\t\t}\n\t\t\twindow.close();\n\t\t});\n\n\t\tHBox submission = new HBox(alert, submit);\n\t\tsubmission.setSpacing(15);\n\t\tsubmission.setAlignment(Pos.CENTER);\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, submission);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\t\treturn alertInput;\n\t}",
"public interface InvalidInputListener extends EventListener {\n /**\n * Fired when the status is updated.\n *\n * @param invalid if true we have some invalid input fields in the UI.\n */\n void statusUpdate(boolean invalid);\n}",
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n if (validateInput(true)) {\n dispose();\n }\n }",
"private void handleInput() {\n\n // Get the input string and check if its not empty\n String text = textInput.getText().toString();\n if (text.equals(\"\\n\")) {\n textInput.setText(\"\");\n return;\n }\n // remove empty line\n if (text.length() >= 2 && text.endsWith(\"\\n\")) text = text.substring(0, text.length() - 1);\n\n if (TextUtils.isEmpty(text)) return;\n textInput.setText(\"\");\n\n myGame.onInputString(text);\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ServiceName.getText() == null || ServiceName.getText().length() == 0) {\n errorMessage += \"No valid name!\\n\";\n }\n if (Serviceemail.getText() == null || Serviceemail.getText().length() == 0) {\n Pattern p = Pattern.compile(\"[_A-Za-z0-9][A-Za-z0-9._]*?@[_A-Za-z0-9]+([.][_A-Za-z]+)+\");\n Matcher m = p.matcher(Serviceemail.getText());\n if (m.find() && m.group().equals(Serviceemail.getText())) {\n errorMessage += \"No valid Mail Forment!\\n\";\n }\n }\n if (servicedescrip.getText() == null || servicedescrip.getText().length() == 0) {\n errorMessage += \"No valid description !\\n\";\n }\n if (f == null && s.getImage() == null) {\n errorMessage += \"No valid photo ( please upload a photo !)\\n\";\n }\n if (Serviceprice.getText() == null || Serviceprice.getText().length() == 0) {\n errorMessage += \"No valid prix !\\n\";\n } else {\n // try to parse the postal code into an int.\n try {\n Float.parseFloat(Serviceprice.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid prix (must be a Float)!\\n\";\n }\n }\n if ( !Weekly.isSelected() && !Daily.isSelected() && !Monthly.isSelected()) {\n errorMessage += \"No valid Etat ( select an item !)\\n\";\n }\n if (Servicesatet.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid etat ( select an item !)\\n\";\n }\n if (ServiceCity.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid City ( select an item !)\\n\";\n }\n if (servicetype.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid Type ( select an item !)\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n alert.showAndWait();\n return false;\n }\n }",
"@FXML\n private void handleUserInput() {\n String input = inputTextField.getText();\n storeUserInputHistory(input);\n try {\n Command command = ParserFactory.parse(input);\n command.execute(tasks, storage, history);\n } catch (ChronologerException e) {\n e.printStackTrace();\n }\n printUserMessage(\" \" + input);\n printChronologerMessage(UiMessageHandler.getOutputForGui());\n inputTextField.clear();\n }",
"private boolean validateInput() {\n String username = editUsername.getText().toString().trim();\n String email = editEmail.getText().toString().trim();\n String password = editPassword.getText().toString().trim();\n String repeatPassword = editRepeatPassword.getText().toString().trim();\n if (!password.equals(repeatPassword)) {\n ShowMessageUtil.tosatSlow(\"Enter passwords differ\", EmailRegisterActivity.this);\n return false;\n } else if (username.equals(\"\") || email.equals(\"\") || password.equals(\"\")) {\n ShowMessageUtil.tosatSlow(\"every item can not be empty!\", EmailRegisterActivity.this);\n return false;\n }\n if (username.length()>10){\n ShowMessageUtil.tosatSlow(\"the character length of the username can't be over than 10\", EmailRegisterActivity.this);\n return false;\n }\n return true;\n }",
"protected abstract boolean checkInput();",
"public void validateInputs(ActionEvent actionEvent) {\n //retrieve the inputs\n try {\n productNameInput = productNameField.getText();\n if (productNameInput.equals(\"\")) {\n throw new myExceptions(\"Product Name: Enter a string.\\n\");\n }\n }\n catch (myExceptions ex) {\n errorMessageContainer += ex.getMessage();\n isInputValid = false;\n }\n\n try {\n productPriceInput = Double.parseDouble(productPriceField.getText());\n if (productPriceField.getText().equals(\"\")) {\n throw new myExceptions(\"Price field: enter a value..\\n\");\n }\n if (productPriceInput <= 0) {\n throw new myExceptions(\"Price field: enter a value greater than 0.\\n\");\n }\n }\n catch (myExceptions priceValidation) {\n errorMessageContainer += priceValidation.getMessage();\n isInputValid = false;\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Price field: enter a positive number. Your input can contain decimals. \\n\";\n isInputValid = false;\n\n }\n\n try {\n maxInventoryLevelInput = Integer.parseInt(maxInventoryField.getText());\n minInventoryLevelInput = Integer.parseInt(minInventoryField.getText());\n if (maxInventoryField.getText().equals(\"\") || minInventoryField.getText().equals(\"\") || maxInventoryLevelInput <= 0 || minInventoryLevelInput <= 0) {\n throw new myExceptions(\"Min and Max fields: enter values for the minimum and maximum inventory fields.\\n\");\n }\n if (maxInventoryLevelInput < minInventoryLevelInput) {\n throw new myExceptions(\"Max inventory MUST be larger than the minimum inventory.\\n\");\n }\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Min and Max fields: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions minMaxValidation) {\n errorMessageContainer += minMaxValidation.getMessage();\n isInputValid = false;\n\n }\n\n try {\n productInventoryLevel = Integer.parseInt(inventoryLevelField.getText());\n if (inventoryLevelField.getText().equals(\"\")) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel <= 0) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel > maxInventoryLevelInput || productInventoryLevel < minInventoryLevelInput) {\n throw new myExceptions(\"Inventory level: value must be between max and min.\\n\");\n }\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Inventory level: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions stockValidation) {\n errorMessageContainer += stockValidation.getMessage();\n isInputValid = false;\n\n }\n\n errorMessageLabel.setText(errorMessageContainer);\n errorMessageContainer = \"\";\n\n }",
"@Override\n\tprotected void isValid(String input) throws DataInputException\n\t{\n\t}",
"private void checkUserInput() {\n }",
"private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (idLabel.getText() == null || idLabel.getText().length() == 0) {\r\n errorMessage += \"No valid ID number!\\n\"; \r\n } else {\r\n // try to parse the postal code into an int.\r\n try {\r\n Integer.parseInt(idLabel.getText());\r\n } catch (NumberFormatException e) {\r\n errorMessage += \"No valid ID number (must be an integer)!\\n\"; \r\n }\r\n }\r\n \r\n if (firstNameField.getText() == null || firstNameField.getText().length() == 0) {\r\n errorMessage += \"No valid first name!\\n\"; \r\n }\r\n if (lastNameField.getText() == null || lastNameField.getText().length() == 0) {\r\n errorMessage += \"No valid last name!\\n\"; \r\n }\r\n if (industryField.getText() == null || industryField.getText().length() == 0) {\r\n errorMessage += \"No valid industry!\\n\"; \r\n }\r\n\r\n if (workTypeField.getText() == null || workTypeField.getText().length() == 0) {\r\n errorMessage += \"No valid work type!\\n\"; \r\n }\r\n\r\n if (addressField.getText() == null || addressField.getText().length() == 0) {\r\n errorMessage += \"No valid address!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n // Show the error message.\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.initOwner(dialogStage);\r\n alert.setTitle(\"Invalid Fields\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.setContentText(errorMessage);\r\n\r\n alert.showAndWait();\r\n\r\n return false;\r\n }\r\n }",
"private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"public boolean hasInputError(){\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tboolean hasError = false;\n\t\t\n\t\tif( keyword.length() > 100 ) {\n\t\t\tcontext.addMessage( \"BuchSuchenForm:inputUser\", new FacesMessage( \"Schlüsselwort ist zu lang\"));\n\t\t\thasError = true;\n\t\t}\n\n\t\treturn hasError;\n\t}",
"@Override\n\tpublic boolean verifyText(JTextField arg0, String arg1) {\n\t\treturn true;\n\t}",
"public boolean startValidation(IPSComponent component, String message);",
"public void validateInput(T input) {\n trap = () -> {};\n consumer.accept(input);\n expectNoStateTransition();\n }",
"private boolean checkInputValidity() {\n // if any of the input field is empty, return false directly\n if (name.getText().equals(\"\") || id.getText().equals(\"\") || fiber.getText().equals(\"\")\n || protein.getText().equals(\"\") || fat.getText().equals(\"\") || calories.getText().equals(\"\")\n || carbohydrate.getText().equals(\"\")) {\n String message = \"Make sure enter the value of all nutrient components, please try again!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();// close the add food stage\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any nutrition info input is not a number value or is negative, return false directly\n try {\n Double fibervalue = null;\n Double proteinvalue = null;\n Double fatvalue = null;\n Double caloriesvalue = null;\n Double carbohydratevalue = null;\n // trim the input to exact numeric value\n fibervalue = Double.valueOf(fiber.getText().trim());\n proteinvalue = Double.valueOf(protein.getText().trim());\n fatvalue = Double.valueOf(fat.getText().trim());\n caloriesvalue = Double.valueOf(calories.getText().trim());\n carbohydratevalue = Double.valueOf(carbohydrate.getText().trim());\n // nutrition input is suppose to be positive numbers\n // if any of the numbers is negative, return false diretcly\n if (fibervalue < 0.0 || proteinvalue < 0.0 || fatvalue < 0.0 || caloriesvalue < 0.0\n || carbohydratevalue < 0.0) {\n String message = \"The input of the nutrient can not be negative, please try again!\";\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any input of the nutrition info is not a double value, catch the exception and return\n // false\n } catch (Exception e) {\n String message =\n \"At least one nutrition value input is invalid, please type a number in nutrient textbox!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close(); // close the addfood stage\n // wait for response from ok button\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n return true;\n }",
"@Override\n\tpublic void validate() {\n\t\tFormFieldValidator.validateStudent(this, student);\n\t\tFormFieldValidator.validateCourseList(this, courseID);\n\t}",
"protected void validate() {\n Validator mandatoryValidator = validateMandatoryOptions();\n Validator exclusionsValidator = validateOptionExclusions();\n Validator inapplicableOptionValidator = validateInapplicableOptions();\n Validator optionalValidator = validateOptionalParameters();\n\n List<String> validationMessages = new LinkedList<>();\n\n validationMessages.addAll(mandatoryValidator.getValidationMessages());\n validationMessages.addAll(exclusionsValidator.getValidationMessages());\n validationMessages.addAll(optionalValidator.getValidationMessages());\n validationMessages.addAll(inapplicableOptionValidator.getValidationMessages());\n\n if (!validationMessages.isEmpty()) {\n String tablePathString =\n (tablePath != null) ? SourceUtils.pathToString(tablePath) : \"null\";\n throw new DeltaOptionValidationException(tablePathString, validationMessages);\n }\n }",
"@Override\n public void validate() {\n boolean b = false;\n\n //retrieving the contact us form details from request object\n String firstName = objContactUsForm.getName().trim();\n String email = objContactUsForm.getEmail().trim();\n String message = objContactUsForm.getMessage().trim();\n\n //now validating each of the field\n if (firstName.isEmpty()) {\n addFieldError(\"name\", getText(\"name.required\"));\n b = true;\n }\n\n if (email.isEmpty()) {\n addFieldError(\"email\", getText(\"email.required\"));\n b = true;\n }\n if (!b) {\n Pattern p = Pattern.compile(\".+@.+\\\\.[a-z]+\");\n Matcher m = p.matcher(email);\n boolean matchFound = m.matches();\n if (!matchFound) {\n addFieldError(\"email\", \"Please Provide Valid Email ID\");\n }\n }\n\n if (message.isEmpty()) {\n addFieldError(\"message\", getText(\"message.required\"));\n b = true;\n }\n\n if (!b) {\n boolean matches = message.matches(\"[<>!~@$%^&\\\"|!\\\\[#$]\");\n if (matches) {\n addFieldError(\"message\", \"Please Provide Valid Message Name\");\n b = true;\n }\n }\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = duke.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userIcon),\n DialogBox.getDukeDialog(response, mrRobotIcon)\n );\n userInput.clear();\n if (response.equals(\"Goodbye friend.\")) {\n Platform.exit();\n }\n }",
"public void rulesOnEnter() {\n try {\n String ruleString = ruleInputField.getText().toUpperCase();\n gOL.setRuleString(ruleString);\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n ruleInputField.setText(\"\");\n\n //Checks if the input matches any predefined rules. Clears the selection if not.\n if(!chooseRulesList.contains(gOL.getRuleName())){\n chooseRulesBox.getSelectionModel().clearSelection();\n }else{\n chooseRulesBox.getSelectionModel().select(gOL.getRuleName());\n }\n\n //Produces a warning if a RulesFormatException is thrown\n } catch (RulesFormatException rfe) {\n PopUpAlerts.ruleAlert2();\n }\n }",
"@Override\r\n\tpublic void validate(FacesContext context, UIComponent component, Object object) throws ValidatorException {\r\n\t\t\r\n\t\tString valor = object.toString();\r\n\t\t\t\r\n\t\tif (valor.matches(\"^\\\\s.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al principi\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*\\\\s$\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al final\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*[ ]{2,}.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver mÚs d'un espai en blanc entre paraules\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (!valor.matches(\"[a-zA-Z ]+\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"┌nicament es poden utilitzar carÓcters alfabŔtics\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t}",
"private boolean validateInput(){\n boolean result = false;\n\n if(!us.setUsername(userField.getText())){\n errorLabel.setText(\"Nombre de usuario invalido\");\n } else if(!us.setPassword(passField.getText())){ //Valido 1 por uno los campos que ingreso el usuario\n errorLabel.setText(\"Contraseña invalida\");\n } else if(!us.setName(nameField.getText())){\n errorLabel.setText(\"Nombre Invalido\");\n } else if(!us.setSurname(surnameField.getText())){\n errorLabel.setText(\"Apellido Invalido\");\n } else if(!us.setDni(dniField.getText())){\n errorLabel.setText(\"Dni invalido\");\n } else if(!ageField.getText().matches(\"\\\\d{2}\")){\n errorLabel.setText(\"Edad invalida\");\n }\n else{\n us.setAge(Integer.parseInt(ageField.getText()));\n result = true;\n }\n return result;\n }",
"protected void handleInput(String input) {}",
"private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a MCS score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for relevance score weight and coherence score weight text fields\r\n\t\ttry{\r\n\t\t\tFloat relScoreW = Float.parseFloat(m_RelScoreTf.getText());\r\n\t\t\tFloat cohScoreW = Float.parseFloat(m_CohScoreTf.getText());\r\n\t\t\tif(relScoreW < 0 || relScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif(cohScoreW < 0 || cohScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif((relScoreW + cohScoreW) != 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a weight for relevance and coherence score.\" + System.getProperty(\"line.separator\");\r\n\t\t\tallertMsg += \"Sum of the weights for relevance and coherence score must be 1.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_KeyTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as multiplier for keyword concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for category confidence weight\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_CatConfTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for the weight of the category confidence of concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for weight of repeated concepts\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_RepeatTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for repeated concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for number of output categories\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MaxCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the maximum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MinCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the minimum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MinCatScoreTf.getText());\r\n\t\t\tif(testValue < 0.0f || testValue > 1.0f)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number between 0 and 1 as minimum category score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\tif(allertMsg.length() > 18){\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(allertMsg);\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean checkInput();",
"private void setupValidations() {\n for (Map.Entry<EditText, Validator> e : mValidators.entrySet()) {\n // On every keystroke, validate input and make text colour black or red\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n if (e.getValue().test(e.getKey().getText().toString()))\n e.getKey().setTextColor(mInputTextColorNormal);\n else\n e.getKey().setTextColor(mInputTextColorInvalid);\n }\n });\n // When the field loses focus, set an error icon if the input is invalid\n e.getKey().setOnFocusChangeListener((v, hasFocus) -> {\n if (hasFocus) return;\n if (!e.getValue().test(e.getKey().getText().toString()))\n e.getKey().setError(e.getValue().getWarnMsg(), e.getValue().getWarnIcon());\n });\n }\n }",
"public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = getResponse(input);\n if (response.equals(ExitCommand.COMMAND_WORD)) {\n handleExit();\n }\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"@Override\n\tpublic boolean isInputValidityCheckingEnabled()\n\t{\n\t\treturn false;\n\t}",
"public void validateTextField ()\r\n\t{\r\n\t\tif (isEditValid ())\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_GREEN);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_RED);\r\n\t\t}\r\n\t}",
"protected void inputListener(){\n }",
"public void testValidationMessageWithOnUpdateAndOnEditRules() {\r\n \t\tfinal Text control = getWidget();\r\n \t\tfinal ITextRidget ridget = getRidget();\r\n \r\n \t\tfinal IValidator ruleMin3 = new MinLength(3);\r\n \t\tfinal IValidator ruleMin5 = new MinLength(5);\r\n \t\tridget.addValidationRule(ruleMin3, ValidationTime.ON_UI_CONTROL_EDIT);\r\n \t\tridget.addValidationRule(ruleMin5, ValidationTime.ON_UPDATE_TO_MODEL);\r\n \t\tridget.addValidationMessage(\"need 3\", ruleMin3);\r\n \t\tridget.addValidationMessage(\"need 5\", ruleMin5);\r\n \r\n \t\tbean.setProperty(\"a\");\r\n \t\tridget.bindToModel(bean, TestBean.PROPERTY);\r\n \t\tridget.updateFromModel();\r\n \r\n \t\tassertMessage(ridget, ValidationMessageMarker.class, \"need 3\");\r\n \t\tassertMessage(ridget, ValidationMessageMarker.class, \"need 5\");\r\n \t\tassertMessageCount(ridget, ValidationMessageMarker.class, 2);\r\n \r\n \t\tcontrol.setSelection(1, 1);\r\n \t\tUITestHelper.sendString(control.getDisplay(), \"b\");\r\n \r\n \t\tassertMessage(ridget, ValidationMessageMarker.class, \"need 3\");\r\n \t\tassertMessage(ridget, ValidationMessageMarker.class, \"need 5\");\r\n \t\tassertMessageCount(ridget, ValidationMessageMarker.class, 2);\r\n \r\n \t\tUITestHelper.sendString(control.getDisplay(), \"c\");\r\n \r\n \t\tassertMessage(ridget, ValidationMessageMarker.class, \"need 5\");\r\n \t\tassertMessageCount(ridget, ValidationMessageMarker.class, 1);\r\n \r\n \t\tUITestHelper.sendString(control.getDisplay(), \"de\");\r\n \r\n \t\tassertMessage(ridget, ValidationMessageMarker.class, \"need 5\");\r\n \t\tassertMessageCount(ridget, ValidationMessageMarker.class, 1);\r\n \r\n \t\tUITestHelper.sendString(control.getDisplay(), \"\\r\");\r\n \r\n \t\tassertMessageCount(ridget, ValidationMessageMarker.class, 0);\r\n \t}",
"public ManualResultsDialog(\r\n\t\tShell parentShell,\r\n\t\tString dialogTitle,\r\n\t\tString dialogMessage,\r\n\t\tString initialValue,\r\n\t\tString htmlDescription,\r\n\t\tIInputValidator validator)\r\n\t{\r\n\t\tsuper(parentShell);\r\n\t\tthis.title = dialogTitle;\r\n\t\tmessage = dialogMessage;\r\n\t\tif ( initialValue == null ) {\r\n\t\t\tvalue = \"\";\r\n\t\t} // $NON-NLS-1$\r\n\t\telse {\r\n\t\t\tvalue = initialValue;\r\n\t\t}\r\n\t\tthis.validator = validator;\r\n\t\tthis.html = htmlDescription;\r\n\t}",
"public boolean validateInput(boolean showMessage) {\n\n boolean valid = true;\n\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, minPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, maxPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, minPrecursorMassTxt, \"minimum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, maxPrecursorMassTxt, \"maximum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n\n if (!minPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, minPtmsPerPeptideTxt, \"minimum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n \n if (!maxPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, maxPtmsPerPeptideTxt, \"maximum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n\n valid = GuiUtilities.validateIntegerInput(this, maxVariablePtmsPerTypeLabel, maxVariablePtmsPerTypeTxt, \"maximum number of variable PTMs per type\", \"Variable PTMs Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, decoySeedLabel, decoySeedTxt, \"decoy seed\", \"Decoy Seed Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, minSpectrumMzTxt, \"minimum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n if (!maxSpectrumMzTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, maxSpectrumMzTxt, \"maximum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n }\n valid = GuiUtilities.validateIntegerInput(this, minPeaksLbl, minPeaksTxt, \"minimum number of peaks\", \"Spectrum Peaks Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, removePrecursorPeakLabel, removePrecursorPeakToleranceTxt, \"remove precursor peak tolerance\", \"Precursor Peak Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinWidthLabel, mzBinWidthTxt, \"mz bin width\", \"Mz Bin Width Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinOffsetLabel, mzBinOffsetTxt, \"mz bin offset\", \"Mz Bin Offset Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, numberMatchesLabel, numberMatchesTxt, \"number of spectrum matches\", \"Number of Spectrum Matches Error\", true, showMessage, valid);\n\n // peptide length: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPepLengthTxt.getText().trim());\n double highValue = Double.parseDouble(maxPepLengthTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Peptide Length Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n peptideLengthLabel.setForeground(Color.RED);\n peptideLengthLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // precursor mass range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPrecursorMassTxt.getText().trim());\n double highValue = Double.parseDouble(maxPrecursorMassTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Precursor Mass Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n precursorMassLabel.setForeground(Color.RED);\n precursorMassLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // spectrum mz range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minSpectrumMzTxt.getText().trim());\n double highValue = Double.parseDouble(maxSpectrumMzTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Spectrum Mz Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n spectrumMzLabel.setForeground(Color.RED);\n spectrumMzLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n okButton.setEnabled(valid);\n return valid;\n }",
"public void showInputError() {\n\n resultLabel.setText(\"Choose another space!\");\n\n }",
"void onValidationFailed();",
"private void handleCommandEntered(String input) {\n try {\n commandExecutor.execute(input);\n commandTextField.commitAndFlush();\n } catch (CommandException | ParseException | UnmappedPanelException e) {\n setStyleToIndicateCommandFailure();\n }\n }",
"private boolean isInputValid(){\n\t\tString errorMessage = \"\";\n\t\tif((nameField.getText() == null) || (nameField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid product name!\\n\";\n\t\t}\n\t\tif((amountAvailableField.getText() == null) || (amountAvailableField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount available value!\\n\";\n\t\t}\n\t\tif((amountSoldField.getText() == null) || (amountSoldField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount sold value!\\n\";\n\t\t}\n\t\tif((priceEachField.getText() == null) || (priceEachField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price for each!\\n\";\n\t\t}\n\t\tif((priceMakeField.getText() == null) || (priceMakeField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price to make the product!\\n\";\n\t\t}\n\t\tif(errorMessage.length() == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public void validate(FacesContext context, UIComponent component,\n Object value) throws ValidatorException {\n\n String uname = value.toString();\n\n if (!isValidEmail(uname)) {\n\n FacesMessage facesMsg = new FacesMessage(\n AccountStatusErrorMessages.INVALID_EMAIL_FORMAT);\n facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);\n throw new ValidatorException(facesMsg);\n\n }\n\n if (mgr.isUsernameTaken(uname)) {\n FacesMessage facesMsg = new FacesMessage(\n AccountStatusErrorMessages.EMAIL_TAKEN);\n facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);\n throw new ValidatorException(facesMsg);\n }\n\n }"
] |
[
"0.62705284",
"0.61491925",
"0.5944592",
"0.5590343",
"0.5527846",
"0.54462147",
"0.5417943",
"0.5412842",
"0.53810936",
"0.537866",
"0.5376913",
"0.53201205",
"0.5243012",
"0.5232137",
"0.522332",
"0.522306",
"0.52145296",
"0.52112836",
"0.5198342",
"0.5198272",
"0.5158927",
"0.5148375",
"0.51311076",
"0.51243585",
"0.5118548",
"0.51157045",
"0.5113091",
"0.5104333",
"0.50971043",
"0.50899917",
"0.50825113",
"0.50798446",
"0.505736",
"0.50555074",
"0.5052891",
"0.50407404",
"0.5039",
"0.49984005",
"0.49975535",
"0.49903634",
"0.49781054",
"0.49660584",
"0.4943599",
"0.49416554",
"0.49402812",
"0.49400115",
"0.4935379",
"0.49280277",
"0.49262795",
"0.49233937",
"0.49140078",
"0.4909247",
"0.49076298",
"0.49038327",
"0.49011433",
"0.4895328",
"0.48832777",
"0.48683634",
"0.4867693",
"0.48655277",
"0.48652038",
"0.4862559",
"0.48424545",
"0.48414618",
"0.48409867",
"0.48354933",
"0.48342592",
"0.48306376",
"0.48306376",
"0.48306376",
"0.48056838",
"0.48003668",
"0.47994134",
"0.47965124",
"0.47881725",
"0.47856945",
"0.475698",
"0.47554272",
"0.47268406",
"0.47159332",
"0.47125795",
"0.47066167",
"0.47063285",
"0.47046286",
"0.4703049",
"0.46992534",
"0.46978447",
"0.46796212",
"0.46767956",
"0.4675325",
"0.46687794",
"0.46528855",
"0.46525484",
"0.46521688",
"0.46505633",
"0.4648408",
"0.4647641",
"0.46358603",
"0.46328616",
"0.4623313"
] |
0.7421604
|
0
|
Sets or clears the error message. If not null, the OK button is disabled.
|
public void setErrorMessage(
String errorMessage)
{
errorMessageText.setText(errorMessage == null ? "" : errorMessage); // $NON-NLS-1$
okButton.setEnabled(errorMessage == null);
errorMessageText.getParent().update();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setErrorMessage(String errorMessage);",
"private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }",
"public abstract void setError(String message);",
"@Override\n\tpublic void setEmptyError() {\n\t\tnew Customdialog_Base(this, \"정보를 모두 입력해 주세요.\").show();\n\t}",
"public void setErrorMessage(String msg) {\r\n\t\terrorMessage.setText(msg);\r\n\t}",
"private void clearErrorMessage() {\n errorMessageLabel.clear();\n }",
"public static void setErrorMessage(String text) {\n\t JOptionPane optionPane = new JOptionPane(text,JOptionPane.ERROR_MESSAGE);\n\t JDialog dialog = optionPane.createDialog(\"Erro\");\n\t dialog.setAlwaysOnTop(true);\n\t dialog.setVisible(true);\n\t}",
"public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }",
"protected void setEmptyMessage(String msg){\n mTxtEmpty.setText(msg);\n }",
"void setError();",
"public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }",
"public void errorMessage(String text) {\n \t\tErrorMessage msg = new ErrorMessage(this, text);\n \t\tmsg.setAlwaysOnTop(true);\n \t\tmsg.setVisible(true);\n \t\tsetEnabled(false);\n \t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public void unsuccessful()\n {\n inputFundsField.setText(\"An Error Has Occurred\");\n }",
"@Override\n public void setError(@Nullable CharSequence error) {\n setErrorEnabled(error != null);\n super.setError(error);\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"protected void setToolTipErrorMessage() {\n\t\tString toolTipErrorMessage = null;\n\t\tsetToolTipMessage(toolTipErrorMessage);\n\t}",
"public void showInputError() {\n\n resultLabel.setText(\"Choose another space!\");\n\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorMessage_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setFailed(String msg) {\n Platform.runLater(() -> {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Errore di input\");\n alert.setHeaderText(msg);\n alert.showAndWait();\n });\n if (firstAction) {\n inTurno = false;\n }\n\n }",
"@Override\n\tprotected void setErrorMessage(String errorMessage) {\n\t\tsuper.setErrorMessage(errorMessage);\n\t}",
"public Builder setErrmsg(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n errmsg_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}",
"public void setMensaje(){\n lblErrores.setVisible(true);\n lblErrores.setText(mensaje);\n }",
"public void showError(String errorMessage);",
"public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }",
"public Builder clearErrorMessage() {\n bitField0_ = (bitField0_ & ~0x00000080);\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"private void errorMessage(String message) {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tAlertDialog dialog = builder.setMessage(message).setTitle(\"Error\").create();\n \tdialog.show();\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public void mostrarMensaje(String error) {\r\n\t\tthis.lblError.setText(error);\r\n\t}",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public Builder clearErrorMessage() {\n\n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"void setOk();",
"void errorBox(String title, String message);",
"void setCustomValidity(String error);",
"public void sendErrorMessage(String message){\n JOptionPane.showMessageDialog(this,\n message,\n \"error\",\n JOptionPane.ERROR_MESSAGE);\n }",
"void setErrorUsername();",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"void showError(String errorMessage);",
"public void setErrorText(String errorText) {\n this.m_ErrorText = errorText;\n }",
"public void setErrorTextDefault(String errorTextDefault)\n {\n this.errorTextDefault = errorTextDefault;\n }",
"void showError(String message);",
"void showError(String message);",
"public Builder clearErrorMessage() {\n \n errorMessage_ = getDefaultInstance().getErrorMessage();\n onChanged();\n return this;\n }",
"public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage == null ? null : errorMessage.trim();\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"protected void setError(String message) {\n\t\tif (message == null)\n\t\t\tthrow new IllegalArgumentException(\"null error message\");\n\t\tif (hasError()) \n\t\t\tthrow new IllegalStateException(\"An error was already detected.\");\n\t\texpression = null;\n\t\terror = message;\n\t}",
"private void onErrorChanged(String message) {\r\n if (message == null) {\r\n return;\r\n }\r\n\r\n //Display error message\r\n FragmentActivity activity = getActivity();\r\n if (activity == null) {\r\n return;\r\n }\r\n AlertDialog.Builder builder = new AlertDialog.Builder(activity);\r\n builder.setTitle(getString(R.string.dialog_title_error))\r\n .setMessage(message)\r\n .setPositiveButton(getString(R.string.dialog_button_ok), null)\r\n .show();\r\n }",
"public void setOk() {\n underline.setSelected(false);\n bold.setSelected(false);\n italics.setSelected(false);\n Ok.setSelected(true); /*FAULT:: Ok.setSelected(false); */\n }",
"public synchronized void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n status = Status.FAILED;\n }",
"public void setErrorMessage(java.lang.String errorMessage) {\r\n this.errorMessage = errorMessage;\r\n }",
"public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder clearErrmsg() {\n bitField0_ = (bitField0_ & ~0x00000002);\n errmsg_ = getDefaultInstance().getErrmsg();\n onChanged();\n return this;\n }",
"public void toggleLoginError() {\n TextView loginErrorTextView = findViewById(R.id.login_error);\n if (loginErrorTextView.getText().toString().equals(\"\")) {\n loginErrorTextView.setText(R.string.incorrectUsernamePassword);\n }\n }",
"public void addErrorMessage(String message) {\n this.success = false;\n this.addMessage(message);\n }",
"@Override\n public void displayError() {\n Toast.makeText(this, \"Incorrect username or password.\", Toast.LENGTH_LONG).show();\n password.setText(\"\");\n }",
"public void showErrorMessageDialog(String error){\n JOptionPane.showMessageDialog(null,error, \"Error\",JOptionPane.ERROR_MESSAGE);\n }",
"@Override\n public String getErrorMessage() {\n return null;\n }",
"private void setErrorUI() {\n err = new JLabel(\" \");\n err.setBorder(BorderFactory.createMatteBorder(0, 15, 0, 15, new Color(248, 248, 251)));\n err.setFont(new Font(\"Nunito\", Font.PLAIN, 12));\n err.setForeground(new Color(247, 37, 133));\n err.setAlignmentX(Component.CENTER_ALIGNMENT);\n }",
"private void invalidTry(){\n setButtons(false);\n setMsgText(\"There are 2 players in game, you cannot join in now.\");\n }",
"public void showErrorMessage(final String message) {\r\n JOptionPane.showMessageDialog(window, message, getTitle(), JOptionPane.ERROR_MESSAGE);\r\n }",
"private void error(String message) { \n Alert alert = new Alert(Alert.AlertType.ERROR, message);\n alert.setTitle(I18n.tr(\"imagesizedialog.error.title\"));\n alert.setContentText(message);\n alert.showAndWait();\n }",
"private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }",
"public void showErrorMessage() {\n\t\tthis.vm = null;\n\t\tplayButton.setText(\"►\");\n\n\t\tthis.remove(visualizerPanel);\n\t\tvisualizerPanel = new ErrorCard();\n\t\tvisualizerPanel.setPreferredSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));\n\t\tthis.add(visualizerPanel);\n\t}",
"public void setErrorMessages(){\n // if mood state in myself tab is chosen\n if(selectedMyMoodState != null && !selectedMyMoodState.isEmpty()){\n ((TextView)myEmotionalStateSpinner.getSelectedView()).setError(\"More than one option is chosen\");\n }\n // if mood state in following tab is chosen\n if(selectedFoMoodState != null && !selectedFoMoodState.isEmpty()){\n ((TextView)foEmotionalStateSpinner.getSelectedView()).setError(\"More than one option is chosen\");\n }\n // if most recent week in myself tab is chosen\n if (myMostRecentWeekCheckbox.isChecked()){\n myMostRecentWeekCheckbox.setError(\"More than one option is chosen\");\n }\n // if most recent week in foloowing tab is chosen\n if (foMostRecentWeekCheckbox.isChecked()){\n foMostRecentWeekCheckbox.setError(\"More than one option is chosen\");\n }\n // if display all in myself tab is chosen\n if (myDisplayAllCheckbox.isChecked()){\n myDisplayAllCheckbox.setError(\"More than one option is chosen\");\n }\n // if display all in following tab is chosen\n if (foDisplayAllCheckbox.isChecked()){\n foDisplayAllCheckbox.setError(\"More than one option is chosen\");\n }\n // if reason in myself tab is chosen\n if(enteredMyReason != null && !enteredMyReason.isEmpty()){\n myReasonEditText.setError(\"More than one option is chosen\");\n }\n // if reason in following tab is chosen\n if(enteredFoReason != null && !enteredFoReason.isEmpty()){\n foReasonEditText.setError(\"More than one option is chosen\");\n }\n }",
"public void setErrorMessage(java.lang.String errorMessage) {\n this.errorMessage = errorMessage;\n }",
"public void error(String message);",
"void setErrorAppTag(String errorMessage);",
"void displayErrorMessage(String message);",
"private void displayError(String errorText) {\n\t\tMessageBox messageBox = new MessageBox(shell, SWT.OK);\n\t\tmessageBox.setMessage(errorText);\n\t\tmessageBox.setText(\"Alert\");\n\t\tmessageBox.open();\n\t}",
"public void addError(String message);",
"public String getErrorMessage() {\n return null;\r\n }",
"public void showError(String error);",
"@Override\r\n public final void displayError(final String message) {\r\n displayMessage(message, \"Error!\", SWT.ICON_ERROR);\r\n }",
"private void displayErrorDialog(String message) {\n AlertDialog.Builder builder;\n\n builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.er_error))\n .setMessage(message)\n .setNegativeButton(getString(R.string.bt_close), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).setIcon(android.R.drawable.stat_notify_error).show();\n }",
"public ErrorGUI() {\n\t\terror = new Error();\n\t\t\n\t}",
"void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }",
"private void mostrarMensajeError() {\n this.mBinding.rvPeliculas.setVisibility(View.GONE);\n /* Then, show the error */\n this.mBinding.tvMostrarError.setVisibility(View.VISIBLE);\n }"
] |
[
"0.6862864",
"0.68626827",
"0.68240225",
"0.67849284",
"0.67479223",
"0.6574959",
"0.6533408",
"0.6523466",
"0.6376966",
"0.6365598",
"0.6331957",
"0.62740856",
"0.62685335",
"0.6191157",
"0.61743957",
"0.6161105",
"0.61520815",
"0.6122713",
"0.6117976",
"0.6091454",
"0.6071487",
"0.60584116",
"0.60026455",
"0.59896964",
"0.598968",
"0.5986992",
"0.59763336",
"0.5971575",
"0.5970387",
"0.5970387",
"0.5970387",
"0.5970387",
"0.5970387",
"0.5970387",
"0.5970387",
"0.5970387",
"0.5970387",
"0.59681773",
"0.5967455",
"0.5959651",
"0.5955135",
"0.5955135",
"0.5955135",
"0.59544957",
"0.59544957",
"0.59544957",
"0.59544957",
"0.59544957",
"0.59544957",
"0.59544957",
"0.5943763",
"0.5884786",
"0.5879507",
"0.5849056",
"0.58435005",
"0.5839154",
"0.5836945",
"0.5828875",
"0.5824381",
"0.58237326",
"0.58237326",
"0.5818699",
"0.58160484",
"0.58139145",
"0.5813394",
"0.58106005",
"0.58038896",
"0.579942",
"0.57789624",
"0.57693374",
"0.57398707",
"0.57398707",
"0.57398707",
"0.57398707",
"0.5736809",
"0.57340586",
"0.57337",
"0.5713419",
"0.57117105",
"0.5707487",
"0.57066727",
"0.5700824",
"0.5682927",
"0.5665244",
"0.56605834",
"0.5658371",
"0.56581324",
"0.56453997",
"0.5634897",
"0.5634759",
"0.56347543",
"0.56339884",
"0.5621673",
"0.5618233",
"0.5617831",
"0.56161636",
"0.5610518",
"0.5608355",
"0.5600065",
"0.55877054"
] |
0.7121906
|
0
|
Cell assignment complete,the current cell end
|
void completeCell(Sheet sheet, Row row, Cell cell, ExcelField excelField, Field field, int index, int colIndex, boolean isHead);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void punishment(){\n\t\tthis.cell = 0;\n\t}",
"EndCell(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n this.left = null;\r\n this.top = null;\r\n this.right = null;\r\n this.bottom = null;\r\n }",
"private boolean moveToNextCell() {\r\n positionInArray++;\r\n while (positionInArray < data.length && data[positionInArray] == null) {\r\n positionInArray++;\r\n }\r\n return positionInArray < data.length;\r\n }",
"private void transferPendingCellData()\r\n\t{\r\n\t\tsynchronized(dataLock)\r\n\t\t{\r\n\t\t\tcellData = pendingCellData;\r\n\t\t\trowCount = cellData.length;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean takeCellSpace() {\n\t\treturn true;\n\t}",
"public void setEnd(){\n\t\tthis.isEnd=true;\n\t}",
"public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }",
"public void step() {\n\t\tcellSizes.clear();\n\t\tupsetNeighbors = new ArrayList<Neighbor>();\n\t\tavailableSpaces = new ArrayList<Cell>();\n\t\tfor (int r = 0; r < grid.getRows(); r++) {\n\t\t\tfor (int c = 0; c < grid.getColumns(); c++) {\n\t\t\t\tupdateStatus(r, c);\n\t\t\t}\n\t\t}\n\t\tupdateGrid();\n\t}",
"EndCell(int x, int y, ACell left, ACell top, ACell right, ACell bottom) {\r\n this.x = x;\r\n this.y = y;\r\n this.left = left;\r\n this.top = top;\r\n this.right = right;\r\n this.bottom = bottom;\r\n }",
"public void step() {\n\t\t// calculate new values\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = cells[x + (y * gridX)];\n\t\t\t\tCell newCell = newCells[x + (y * gridX)];\n\n\t\t\t\tint neighborCount = sameNeighborCount(x, y);\n\n\t\t\t\tif (c.isActive) {\n\t\t\t\t\tif (neighborCount < 2) {\n\t\t\t\t\t\t// all alone, die of loneliness\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t\telse if (neighborCount > 3) {\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Dead cells can be reborn if surrounded by enough neighbors of the same\n\t\t\t\t\t// color. The cell will be reborn using the most prominent color.\n\t\t\t\t\tint populousColor = mostPopulousColor(x, y);\n\t\t\t\t\tif (populousColor > Integer.MIN_VALUE) {\n\t\t\t\t\t\tnewCell.isActive = true;\n\t\t\t\t\t\tnewCell.cellColor = populousColor;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// update to new state\n\t\tfor (int i = 0; i < cells.length; i++) {\n\t\t\tcells[i].isActive = newCells[i].isActive;\n\t\t\tcells[i].cellColor = newCells[i].cellColor;\n\t\t}\n\t}",
"protected abstract void forceEndValues();",
"public void checkIsFinal( )\n\t{\n\t\tint count = 1;\n\t\tboolean check = true;\n\t\t\n\t\tfor( int i = 0; i < this.getSize( ); i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < this.getWidth( ); j++ )\n\t\t\t{\n\t\t\t\tif( i == this.getSize() - 1 && j == this.getWidth() - 1 && this.cell(i, j) == -1 )\n\t\t\t\t\tcheck = true;\n\t\t\t\telse if( this.cell(i, j) != count++)\n\t\t\t\t\tcheck = false;\n\t\t\t}\n\t\t}\n\t\tthis.setSolved( check );\n\t}",
"@Override\n public void unmarkCell() {\n MNKCell last = MC.getLast();\n super.unmarkCell();\n key = nextZobrist(last.i, last.j);\n value = previousValues.pop();\n }",
"@Override\n public void setFinished() {\n if (finished > 0) {\n return;\n }\n\n // A mine has been opened (lose game)\n int openMines = (int) cells.stream().flatMap(Collection::stream)\n .filter(c -> c.isOpen() && c.isMine()).count();\n if (openMines > 0) {\n finished = 2;\n alertListeners(GameChangeType.LOSE);\n return;\n }\n\n // The board has been revealed (win game)\n int openCells = (int) cells.stream().flatMap(Collection::stream)\n .filter(c -> c.isOpen() && !c.isMine() && c.getCellState() != CellState.MINE3).count();\n if (openCells == (dims.getX() * dims.getY() - numMines)) {\n finished = 1;\n alertListeners(GameChangeType.WIN);\n return;\n }\n\n // Nothing so far, not finished\n finished = 0;\n }",
"public boolean computeCell() {\n boolean b = false;\n int[] tab = null;\n switch (course) {\n case 4:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n default:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n }\n\n Cell c = game.getMap().getCell(tab);\n if (c != current) {\n current = c;\n b = true;\n }\n return b;\n }",
"private void finishGame(){\n for (Cell cell: field) {\n cell.setActive(true);\n }\n\n }",
"public abstract void setEmpty(AwtCell empty);",
"public void stepCompleted() {\n\t\tfor (int i = 0; i < r; i++) {\n\t\t\tfor (int j = 0; j < c; j++) {\n\t\t\t\tgrid[i][j] += (grid[i][j] >= 0 ? 1 : 0);\n\t\t\t}\n\t\t}\n\t}",
"public void setNextCell(Cell next)\r\n {\r\n this.next = next;\r\n }",
"public void buildInCell() {\n this.level++;\n if (this.level == 4) {\n this.setFreeSpace(false);\n }\n }",
"public void setComplete()\n\t{\n\t\texisting.set(0, pieces.length);\n\t}",
"public List<List<Box>> finish() {\n\t\treturn cells;\n\t}",
"@Override\r\n\t\t\t\t\tpublic void end(int sx, int sy) {\n\t\t\t\t\t}",
"public void updateCell() {\n alive = !alive;\n simulator.getSimulation().changeState(xPosition, yPosition);\n setColor();\n }",
"public void progressCells() {\n\t\tint[][] newMatrix = new int[width][height];\n\t\t\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor(int y = 0; y < height; y++) {\n\t\t\t\tint neighbourCount = countLivingNeighbours(x, y);\n\t\t\t\tboolean wasAlive = cellMatrix[x][y] == 1;\n\t\t\t\t\n\t\t\t\tif(wasAlive) {\n\t\t\t\t\tnewMatrix[x][y] = neighbourCount >= deathLimit ? 1 : 0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnewMatrix[x][y] = neighbourCount > birthLimit ? 1 : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcellMatrix = newMatrix;\n\t}",
"private XSSFCell getNextCell() {\r\n\r\n if (currColNum - firstcol + 1 == taskconfig.colNum) {\r\n currColNum = firstcol;\r\n currRowNum++;\r\n } else {\r\n currColNum++;\r\n }\r\n\r\n cell = getCell(currRowNum, currColNum);\r\n if (cell.getCellTypeEnum()==CellType.STRING && cell.getStringCellValue().contains(\"-\")) {\r\n getNextCell();\r\n ;\r\n }\r\n \r\n\r\n return cell;\r\n }",
"private void assignment() {\n\n\t\t\t}",
"public void endUpdate() {\n getCellLayer().getChildren().addAll(model.getAddedEdges());\n getCellLayer().getChildren().addAll(model.getAddedCells());\n\n // remove components from graph pane\n getCellLayer().getChildren().removeAll(model.getRemovedCells());\n getCellLayer().getChildren().removeAll(model.getRemovedEdges());\n\n // enable dragging of cells\n// for (Cell cell : model.getAddedCells()) {\n// mouseGestures.makeDraggable(cell);\n// }\n\n // every cell must have a parent, if it doesn't, then the graphParent is\n // the parent\n getModel().attachOrphansToGraphParent(model.getAddedCells());\n\n // remove reference to graphParent\n getModel().disconnectFromGraphParent(model.getRemovedCells());\n\n // merge added & removed cells with all cells\n getModel().merge();\n\n }",
"public void updateDataCell();",
"public void setLastCell(String positionValue) {\n\t\tlastCell = positionValue;\n\t}",
"public void setCell(Cell cell)\n {\n myCell = cell;\n }",
"protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }",
"private void end() {\n\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\tif(reactantMM[i] > 0) {\n\t\t\t\trMol[i].setText(finalMolReactant[i] + \"mol\");\n\t\t\t\trGrams[i].setText(numberFormat.format(reactantMM[i] * finalMolReactant[i]) + \"g\");\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < intProduct; i++) {\n\t\t\tif(productMM[i] > 0) {\n\t\t\t\tpMol[i].setText(finalMolProduct[i] + \"mol\");\n\t\t\t\tpGrams[i].setText(numberFormat.format(productMM[i] * finalMolProduct[i]) + \"g\");\n\t\t\t}\n\t\t}\n\t}",
"public String getLastCell() {\n\t\treturn lastCell;\n\t}",
"private void handle_merged_cells(Sheet sheet) {\n\t \tfor (int i = 0 ; i < sheet.getNumMergedRegions() ; i++) {\n\t \t//don't merge beyond sheet\n\t \t\tCellRangeAddress merged_region = sheet.getMergedRegion(i);\n\t \t\tint c_f = merged_region.getFirstColumn();\n\t \t\tint c_l = merged_region.getLastColumn()+1;\n\t \t\tc_l = Math.min(c_l, this.vals[0].length -1);\n\t \t\tint r_f = merged_region.getFirstRow();\n\t \t\tint r_l = merged_region.getLastRow()+1;\n\t \t\tObject fill_element = this.vals[r_f][c_f];\n\t \t\tint fill_type = this.types[r_f][c_f];\n\t \t\tfor(int r_ind = r_f; r_ind < r_l; r_ind++) {\n\t \t\t\tfor (int c_ind = c_f; c_ind < c_l; c_ind ++) {\n\t \t\t\t\tthis.vals[r_ind][c_ind] = fill_element;\n\t \t\t\t\tthis.types[r_ind][c_ind] = fill_type;\n\t \t\t\t}\n\t \t\t}\n\t\t \t//self.row_vals[r_r[0]:r_r[1], c_r[0]:c_r[1]] = self.row_vals[r_r[0], c_r[0]]\n\t\t \t//self.xls_types[r_r[0]:r_r[1], c_r[0]:c_r[1]] = self.xls_types[r_r[0], c_r[0]]\n\t \t}\n }",
"@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}",
"public void updateCells() throws Exception {\n\t\tvalidate();\n\t\tfor (byte i = 0; i < 9; i++) {\n\t\t\tfor (byte j = 0; j < 9; j++) {\n\t\t\t\tif (cells[i][j].isEmpty()) {\n\t\t\t\t\tupdateCell(i, j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void setCellValue(GoLCell in_cell)\n {\n cellValue = in_cell.getCellValue();\n }",
"public void testSetCell()\n {\n // Test setting a cell under ideal conditions\n assertTrue(b1.getCell(0, 0) == Cell.EMPTY);\n assertTrue(b1.setCell(0, 0, Cell.RED1));\n assertTrue(b1.getCell(0, 0) == Cell.RED1 );\n\n // If a cell is out of bounds, should fail\n assertFalse(b1.setCell(-1, 0, Cell.RED1));\n assertFalse(b1.setCell(0, -1, Cell.RED1));\n assertFalse(b1.setCell(3, 0, Cell.RED1));\n assertFalse(b1.setCell(0, 3, Cell.RED1));\n\n // If a cell is already occupied, should fail\n assertFalse(b1.setCell(0, 0, Cell.RED1));\n\n // If the board is won, should fail\n assertTrue(b1.setCell(0, 1, Cell.RED1));\n assertTrue(b1.setCell(0, 2, Cell.RED1));\n assertEquals(b1.getWhoHasWon(), Cell.RED1);\n assertFalse(b1.setCell(1, 1, Cell.RED1)); // Unoccupied\n assertFalse(b1.setCell(0, 0, Cell.RED1)); // Occupied\n\n\n\n\n }",
"@Override\n\tpublic void placementcell() {\n\t\t\n\t}",
"public void testGetCell()\n {\n // All cells should be empty to start.\n for (int i = 0; i < 3; i++)\n {\n for (int j = 0; j < 3; j++)\n {\n assertTrue(b1.getCell(i, j) == Cell.EMPTY);\n }\n }\n\n\n }",
"public void complete() {\n\t}",
"public void setCurrentCell(\n\t\t\tint index )\n\t{\n\t}",
"protected void end() {\n \tclimber.ascend(0, 0);\n }",
"public void processCells() {\n\n //Create a new grid which will be next iteration\n Cell[][] nextGrid = new Cell[this.width][this.height];\n\n //Populate the new grid with dead cells\n populateGrid(nextGrid);\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n\n //Get the cell\n Cell currentCell = getCell(x, y);\n\n // Get current status of the Cell\n boolean isAlive = currentCell.isAlive();\n\n //Check its neighbours\n int aliveNeighbours = getNeighbours(currentCell);\n\n //Evaluate against rules\n isAlive = applyRules(isAlive, aliveNeighbours);\n\n //Add cell to new grid\n nextGrid[x][y].setAlive(isAlive);\n }\n }\n\n //Set the next iteration to the current iteration\n this.grid = nextGrid;\n }",
"public void endCompute();",
"protected void end() {\n\t\tdrive.setBoth(0);\n\t}",
"protected void end() {\r\n \tSystem.out.println(\"Finished MoveToHeight\");\r\n \tmanipulator.moveElevator(0);\r\n }",
"public boolean isNewCell() {\n return cellNum == null;\n }",
"protected void end() {\n \tRobotMap.feedMotor1.set(0);\n \tRobotMap.shootAgitator.set(0);\n }",
"public abstract int getLastCageCellValue(int row, int col);",
"@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}",
"public void endJump() {\n\t\tsetVy(Math.min(0, getVy()));\n\t}",
"private void endRow() throws TableFormatException {\n if ( readCol == 0 ) {\n return;\n }\n int nrow = rows.size();\n if ( nrow == 1 ) {\n ncol = ((List) rows.get( 0 )).size();\n }\n else if ( readCol != ncol ) {\n throw new TableFormatException( \n \"Column number mismatch in row \" + ( nrow - 1 ) +\n \" (\" + readCol + \" != \" + ncol + \")\" );\n }\n readCol = 0;\n }",
"public abstract AwtCell getEmpty();",
"public abstract void completeIteration();",
"public void updateCell(Cell cell)\r\n {\r\n if (cell.isBomb() == false && cell.active)\r\n {\r\n if (cell.getBombsNearby() > 0)\r\n {\r\n cell.setText(\"\" + cell.getBombsNearby());\r\n cell.setDisable(true);\r\n }\r\n else\r\n {\r\n cell.setDisable(true);\r\n activateNearby(cell.getX(), cell.getY());\r\n }\r\n gameBoard.emptyRemaining--;\r\n }\r\n System.out.println(\"update cell: \" + gameBoard.emptyRemaining);\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n endGame();\r\n }\r\n }",
"public boolean hasEnd(GridCellContentType[][] matrix);",
"private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}",
"private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}",
"public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }",
"private boolean isFull(){\n return cellSize == Max;\n }",
"public boolean isEmpty() {\n return cell == null;\n }",
"private boolean zzRefill() {\r\n\t\treturn zzCurrentPos>=s.offset+s.count;\r\n\t}",
"public boolean endOfBoard() {\n\t return (y == 0 || y == Board.SIZE - 1);\n\t}",
"public int getCell() {\n return this.cell;\n }",
"public void doStep() {\n\t\ttry {\n\t\t\tLifeMatrix newMatrix = new LifeMatrix(_numRows, _numColumns);\n\t\t\tfor (int row=0; row<_numRows; ++row) {\n\t\t\t\tfor (int column=0; column<_numColumns; ++column) {\n\t\t\t\t\tupdateCell(_matrix, newMatrix, row, column);\n\t\t\t\t}\n\t\t\t}\n\t\t\t_matrix = newMatrix; // update to the new matrix (the old one is discarded)\n\t\t} catch (Exception e) {\n\t\t\t// This is not supposed to happend because we use only legal row and column numbers\n\t\t\tSystem.out.println(\"Unexpected Error in doStep()\");\n\t\t}\n\t}",
"protected void end() {\n \tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorRightOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.set(0);\n \tRobotMap.motorRightOne.set(0);\n \tRobotMap.motorLeftTwo.set(0);\n \tRobotMap.motorRightTwo.set(0);\n \tSystem.out.println(this.startAngle- RobotMap.navx.getAngle());\n\n\n \t\n }",
"private void clearSheet() {\n row = null;\n cells = null;\n cellType = null;\n value = null;\n rowIndex = -1;\n }",
"@Override\r\n\tprotected void end() {\r\n\t}",
"void growCells() {\n for (Cell cell : cells) {\n cell.grow();\n }\n }",
"protected void end() {\n \tRobotMap.gearIntakeRoller.set(0);\n }",
"@Override\n\tpublic void end() {\n\t\t\n\t}",
"public void elementEnd() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}",
"@Override\n\tpublic void end() {\n\n\t}",
"@Override\n\tpublic void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\t\tmyLowerArm.set(0.0);\n\t}",
"protected void end() {\n \t// theres nothing to end\n }",
"public synchronized void setCellValue(byte in_cellValue)\n {\n cellValue = (in_cellValue > DEAD) ? ALIVE : DEAD;\n }",
"@Override\n\tprotected void end() {\n\t\t\n\t}",
"protected abstract void setCell(int x, int y, boolean state);",
"@Override\r\n protected void end() {\r\n\r\n }",
"public void setCell(boolean cell) {\n\t\tCell = cell;\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"private void createFinalLine() {\n //Up\n if (orOpActive.row > origin.row) {\n for (int i = origin.row + 1; i <= orOpActive.row; i++) {\n game.gridMap.get(i).get(origin.column).setState(game.STATE_FINAL);\n //setState(gridMap.get(i).get(origin.column), STATE_FINAL);\n }\n }\n\n //Down\n if (orOpActive.row < origin.row) {\n for (int i = origin.row - 1; i >= orOpActive.row; i--) {\n game.gridMap.get(i).get(origin.column).setState(game.STATE_FINAL);\n //setState(gridMap.get(i).get(origin.column), STATE_FINAL);\n }\n }\n //Right\n if (orOpActive.column > origin.column) {\n for (int i = origin.column + 1; i <= orOpActive.column; i++) {\n game.gridMap.get(origin.row).get(i).setState(game.STATE_FINAL);\n //setState(gridMap.get(origin.row).get(i), STATE_FINAL);\n }\n }\n //Left\n if (orOpActive.column < origin.column) {\n for (int i = origin.column - 1; i >= orOpActive.column; i--) {\n game.gridMap.get(origin.row).get(i).setState(game.STATE_FINAL);\n //setState(gridMap.get(origin.row).get(i), STATE_FINAL);\n }\n }\n }",
"private boolean isFull() {\n for (int i = 0; i < 6; i++)\n for (int j = 0; j < 7; j++)\n if (cell[i][j] == ' ')\n return false; // At least one cell is not filled\n\n // All cells are filled\n return true;\n }",
"public void complete() {\n this.totalCompactingKVs = this.currentCompactedKVs;\n }",
"protected void end() {\n\t\tLiquidCrystal lcd = RobotMap.lcd;\n\t\tlcd.clear();\n\n\t\tRobotMap.chassisfrontLeft.set(0);\n\t\tRobotMap.chassisfrontRight.set(0);\n\t\tRobotMap.chassisrearLeft.set(0);\n\t\tRobotMap.chassisrearRight.set(0);\n\t\t\n\t\tRobotMap.climberclimbMotor.set(0);\n\t\tRobotMap.floorfloorLift.set(0);\n\t\tRobotMap.acquisitionacquisitionMotor.set(0);\n\n\n\t}",
"protected void end() {\n \n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n \tRobotMap.motorRightOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorRightTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n }",
"@Override\n public void normalCell() {\n gCell.setFill(Color.BLACK);\n }",
"protected void end() {\n \n \n }",
"void onCellsReady(NumberCell[] cells);",
"private void endProperty()\n {\n\n }"
] |
[
"0.6478005",
"0.62925637",
"0.62327415",
"0.6172974",
"0.6072838",
"0.5938998",
"0.59352165",
"0.59235966",
"0.59183764",
"0.5910899",
"0.58983433",
"0.5864871",
"0.5853335",
"0.5832447",
"0.58145314",
"0.58035725",
"0.579812",
"0.5784433",
"0.5745584",
"0.57083094",
"0.57032204",
"0.56770456",
"0.56639814",
"0.5636461",
"0.5632522",
"0.5630975",
"0.5615769",
"0.5609675",
"0.5604272",
"0.55964774",
"0.55846316",
"0.5570589",
"0.5569281",
"0.55680615",
"0.5555795",
"0.5542695",
"0.5513496",
"0.55037713",
"0.54991066",
"0.54867315",
"0.5482163",
"0.5482044",
"0.54818714",
"0.547375",
"0.54613966",
"0.5446764",
"0.5445996",
"0.5443216",
"0.544157",
"0.54410267",
"0.54278845",
"0.54277605",
"0.54214466",
"0.5417838",
"0.5411556",
"0.53909993",
"0.5375794",
"0.5374133",
"0.5365144",
"0.5365144",
"0.53620356",
"0.5356478",
"0.5350091",
"0.53471994",
"0.53360134",
"0.533191",
"0.53186536",
"0.5312712",
"0.5306483",
"0.53051126",
"0.53036374",
"0.5302558",
"0.5297706",
"0.52969146",
"0.5295441",
"0.5295441",
"0.5295441",
"0.52947193",
"0.5293277",
"0.5293277",
"0.5293149",
"0.52907914",
"0.529024",
"0.52860934",
"0.52807647",
"0.5272614",
"0.52696663",
"0.5262874",
"0.5262874",
"0.5262874",
"0.5262874",
"0.526254",
"0.5258438",
"0.5250179",
"0.5249232",
"0.52453476",
"0.5243108",
"0.5242523",
"0.5241066",
"0.5240467"
] |
0.69624853
|
0
|
Cell are assigned before, then after the data converter and before the auto merge
|
default Object assignmentBefore(Sheet sheet, Row row, Cell cell, ExcelField excelField, Field field, int index, int colIndex, boolean isHead, Object value) {
return value;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void handle_merged_cells(Sheet sheet) {\n\t \tfor (int i = 0 ; i < sheet.getNumMergedRegions() ; i++) {\n\t \t//don't merge beyond sheet\n\t \t\tCellRangeAddress merged_region = sheet.getMergedRegion(i);\n\t \t\tint c_f = merged_region.getFirstColumn();\n\t \t\tint c_l = merged_region.getLastColumn()+1;\n\t \t\tc_l = Math.min(c_l, this.vals[0].length -1);\n\t \t\tint r_f = merged_region.getFirstRow();\n\t \t\tint r_l = merged_region.getLastRow()+1;\n\t \t\tObject fill_element = this.vals[r_f][c_f];\n\t \t\tint fill_type = this.types[r_f][c_f];\n\t \t\tfor(int r_ind = r_f; r_ind < r_l; r_ind++) {\n\t \t\t\tfor (int c_ind = c_f; c_ind < c_l; c_ind ++) {\n\t \t\t\t\tthis.vals[r_ind][c_ind] = fill_element;\n\t \t\t\t\tthis.types[r_ind][c_ind] = fill_type;\n\t \t\t\t}\n\t \t\t}\n\t\t \t//self.row_vals[r_r[0]:r_r[1], c_r[0]:c_r[1]] = self.row_vals[r_r[0], c_r[0]]\n\t\t \t//self.xls_types[r_r[0]:r_r[1], c_r[0]:c_r[1]] = self.xls_types[r_r[0], c_r[0]]\n\t \t}\n }",
"public void updateDataCell();",
"public void setCell(Cell cell)\n {\n myCell = cell;\n }",
"public void init(CellImpl cell);",
"public void prepare(){\n\n\t\t/* For every cell in the cell space */\n\t\tfor (int i=0;i<GlobalAttributes.xCells;i++){\n\t\t\tfor(int j=0;j<GlobalAttributes.yCells;j++){\n\n\t\t\t\t/* Set the cell state to the starting configuration */\n\t\t\t\tgrid[i][j].topSubcellValue=source[i][j].topSubcellValue;\n\t\t\t\tgrid[i][j].bottomSubcellValue=source[i][j].bottomSubcellValue;\n\t\t\t\tgrid[i][j].leftSubcellValue=source[i][j].leftSubcellValue;\n\t\t\t\tgrid[i][j].rightSubcellValue=source[i][j].rightSubcellValue;\n\n\t\t\t\t/* Set the \"current\" difference matrix value to\n\t\t\t\t * the value in the fixed initial matrix */\n\t\t\t\tdifferent[i][j]=fixeddifferent[i][j];\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t/* Reset the differences counter to the fixed version */\n\t\tdifferences=fixeddifferences;\n\t}",
"protected abstract V convertToModelCell(C column,\n CellValue< ? > cell);",
"@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}",
"@Override\n public void initialiseUiCells() {\n }",
"private Cell(E data) {\n Cell.this.data = data;\n }",
"private void initCols(){\n facilityNameColumn.setCellValueFactory(data -> new SimpleStringProperty(data.getValue().getFacilityName()));\n facilityTypeColumn.setCellValueFactory(data -> new SimpleStringProperty(data.getValue().getFacilityType()));\n seatRowColumn.setCellValueFactory(data -> new SimpleStringProperty(Integer.toString(data.getValue().getRows())));\n seatNumberColumn.setCellValueFactory(data -> new SimpleStringProperty(Integer.toString(data.getValue().getColumns())));\n totalSeats.setCellValueFactory(data-> new SimpleStringProperty(Integer.toString(data.getValue().getMaxAntSeats())));\n }",
"@FXML\n\tprivate void initialize() {\n\t\tcode_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Index());\n\t\tname_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Name());\n\t\tdate_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Date());\n\t\texpert_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Type());\n\t\tcode_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tname_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tdate_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\texpert_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tloadData();\n\t}",
"public void initialize(){\n equipoColumn.setCellValueFactory(new PropertyValueFactory<>(\"equipo\"));\n }",
"public DataCell() {\n super();\n }",
"private void initColumnBtech()\r\n\t{\r\n\t\tstudNoBColumn.setCellValueFactory(new PropertyValueFactory<>(\"studendID\"));\r\n\t\tnameBColumn.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n\t\tsurnameBColumn.setCellValueFactory(new PropertyValueFactory<>(\"surname\"));\r\n\t\tsupervisorBColumn.setCellValueFactory(new PropertyValueFactory<>(\"supervisor\"));\r\n\t\temailBColumn.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\r\n\t\tcellphoneNoBColumn.setCellValueFactory(new PropertyValueFactory<>(\"cellphone\"));\r\n\t\tstationBColumn.setCellValueFactory(new PropertyValueFactory<>(\"station\"));\r\n\t\tcourseBColumn.setCellValueFactory(new PropertyValueFactory<>(\"course\"));\r\n\t}",
"@Override\r\n public void performInitialization(Object model) {\r\n super.performInitialization(model);\r\n richTable.setForceLocalJsonData(true);\r\n\r\n //init binding info\r\n if (bindingInfo != null) {\r\n bindingInfo.setDefaults(ViewLifecycle.getView(), getPropertyName());\r\n }\r\n \r\n List<? extends Component> items = getItems();\r\n \r\n ComponentUtils.clearAndAssignIds(items);\r\n\r\n //iterate over this collections items to initialize\r\n for (Component item : this.getItems()) {\r\n initialComponentIds.add(item.getId());\r\n\r\n //if data field, setup a forced placeholder value\r\n if (item instanceof DataField) {\r\n ((DataField) item).setForcedValue(VALUE_TOKEN + item.getId() + VALUE_TOKEN);\r\n }\r\n\r\n ///populate expression map\r\n expressionConversionMap = buildExpressionMap(item, expressionConversionMap);\r\n }\r\n }",
"private void transferPendingCellData()\r\n\t{\r\n\t\tsynchronized(dataLock)\r\n\t\t{\r\n\t\t\tcellData = pendingCellData;\r\n\t\t\trowCount = cellData.length;\r\n\t\t}\r\n\t}",
"public abstract Cell createDataCell() throws DailyFollowUpException;",
"private void shallowPopulate()\n\t{\n\t\tfor(int y = 0; y < mySizeY; y++)\t\t \n\t\t\tfor(int x = 0; x < mySizeX; x++)\t\t\t\n\t\t\t\tadd(new FirstCell(this, x, y));\n\t}",
"void completeCell(Sheet sheet, Row row, Cell cell, ExcelField excelField, Field field, int index, int colIndex, boolean isHead);",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public void test47278() {\n XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.createWorkbook();\n XSSFSheet sheet = wb.createSheet();\n XSSFRow row = sheet.createRow(0);\n SharedStringsTable sst = wb.getSharedStringSource();\n assertEquals(0, sst.getCount());\n \n //case 1. cell.setCellValue(new XSSFRichTextString((String)null));\n XSSFCell cell_0 = row.createCell(0);\n XSSFRichTextString str = new XSSFRichTextString((String)null);\n assertNull(str.getString());\n cell_0.setCellValue(str);\n assertEquals(0, sst.getCount());\n assertEquals(XSSFCell.CELL_TYPE_BLANK, cell_0.getCellType());\n \n //case 2. cell.setCellValue((String)null);\n XSSFCell cell_1 = row.createCell(1);\n cell_1.setCellValue((String)null);\n assertEquals(0, sst.getCount());\n assertEquals(XSSFCell.CELL_TYPE_BLANK, cell_1.getCellType());\n }",
"public abstract void initCell(\r\n int row,\r\n int col,\r\n double valueToInitialise);",
"private void initColumnMaster()\r\n\t{\r\n\t\tstudentaNoMColumn.setCellValueFactory(new PropertyValueFactory<>(\"studendID\"));\r\n\t\tnameMColumn.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n\t\tsurnameMColumn.setCellValueFactory(new PropertyValueFactory<>(\"surname\"));\r\n\t\tsupervisorMColumn.setCellValueFactory(new PropertyValueFactory<>(\"supervisor\"));\r\n\t\temailMColumn.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\r\n\t\tcellphoneMColumn.setCellValueFactory(new PropertyValueFactory<>(\"cellphone\"));\r\n\t\tstationMColumn.setCellValueFactory(new PropertyValueFactory<>(\"station\"));\r\n\t\tcourseMColumn.setCellValueFactory(new PropertyValueFactory<>(\"course\"));\r\n\t}",
"public void punishment(){\n\t\tthis.cell = 0;\n\t}",
"@Override\r\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tnomCol.setCellValueFactory(\r\n\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t @Override\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(0)) ;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t) ;\r\n\t\tprenomCol.setCellValueFactory(\r\n\t\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t\t\t @Override\r\n\t\t\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(1)) ;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}) ;\r\n\t\tcinCol.setCellValueFactory(\r\n\t\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t\t\t @Override\r\n\t\t\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(2)) ;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\t) ;\r\n\t\ttypeCol.setCellValueFactory(\r\n\t\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t\t\t @Override\r\n\t\t\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(3)) ;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\t) ;\r\n\t}",
"@Override\n protected void SetCellFactories() {\n columnID.setCellValueFactory(new PropertyValueFactory<>(\"airlineID\"));\n columnName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n columnAlias.setCellValueFactory(new PropertyValueFactory<>(\"alias\"));\n columnIATA.setCellValueFactory(new PropertyValueFactory<>(\"IATA\"));\n columnICAO.setCellValueFactory(new PropertyValueFactory<>(\"ICAO\"));\n columnCallsign.setCellValueFactory(new PropertyValueFactory<>(\"callsign\"));\n columnCountry.setCellValueFactory(new PropertyValueFactory<>(\"country\"));\n columnActive.setCellValueFactory(new PropertyValueFactory<>(\"active\"));\n }",
"private void createPendingCellData()\r\n\t{\r\n\r\n\t\tObject[][] cell = new Object[plans.size()][columnCount];\r\n\t\tAbstractPlan plan = null;\r\n\r\n\t\t//now for each thread populate the table\r\n\t\tfor(int i = 0; i < plans.size(); i++)\r\n\t\t{\r\n\t\t\tbyte[] by = new byte[3];\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tplan = (AbstractPlan) plans.get(i);\r\n\t\t\t}catch(ClassCastException e)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"createPendingCellData - attempt to put non AbstPlan objects in thread-model failed\");\r\n\t\t\t}\r\n\t\t\tObject[] rowCell = cell[i];\r\n\t\t\t//now populate each column\r\n\t\t\trowCell[0] = plan.getPlanName();\r\n\t\t\tBoolean sampling = plan.getBayesNet() == null ? new Boolean(false) : new Boolean(plan.getBayesNet().isSampling());\r\n\t\t\trowCell[1] = sampling;\r\n\t\t\tBoolean paused = plan.getBayesNet() == null ? new Boolean(false) : new Boolean(plan.getBayesNet().isSamplerPaused());\r\n\t\t\trowCell[2] = paused;\r\n\t\t\trowCell[3] = new Boolean(false);\r\n\r\n\t\t}\r\n\t\t//make sure concurrency is safe\r\n\t\tsynchronized(dataLock)\r\n\t\t{\r\n\t\t\tpendingCellData = cell;\r\n\t\t}\r\n\t}",
"public synchronized void setCellValue(GoLCell in_cell)\n {\n cellValue = in_cell.getCellValue();\n }",
"@Override\n\t\tpublic void transform()\n\t\t{\n\t\t\tif(!isRed)\n\t\t\t{\n\t\t\t\tcells[0].setCol(cells[0].getCol()+1);\n\t\t\t\tcells[1].setCol(cells[1].getCol()+1);\n\t\t\t\tcells[2].setCol(cells[2].getCol()-1);\n\t\t\t\tcells[3].setCol(cells[3].getCol()-1);\n\t\t\t\t//Changes colors to red\n\t\t\t\tfor(int i = 0; i < cells.length; i ++)\n\t\t\t\t{\n\t\t\t\t\tBlock temp = cells[i].getBlock();\n\t\t\t\t\tcells[i].setBlock(new Block(Color.RED,temp.isMagic()));\n\t\t\t\t}\n\t\t\t\tisRed = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcells[0].setCol(cells[0].getCol()-1);\n\t\t\t\tcells[1].setCol(cells[1].getCol()-1);\n\t\t\t\tcells[2].setCol(cells[2].getCol()+1);\n\t\t\t\tcells[3].setCol(cells[3].getCol()+1);\n\t\t\t\t//changes colors to green\n\t\t\t\tfor(int i = 0; i < cells.length; i ++)\n\t\t\t\t{\n\t\t\t\t\tBlock temp = cells[i].getBlock();\n\t\t\t\t\tcells[i].setBlock(new Block(Color.GREEN,temp.isMagic()));\n\t\t\t\t}\n\t\t\t\tisRed = false;\n\t\t\t}\n\t\t\t\n\t\t}",
"private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}",
"private void setCellFactories() {\n\t\tcolHotel.setCellValueFactory(new PropertyValueFactory<Room, String>(\"hotelName\"));\n\t\tcolQuality.setCellValueFactory(new PropertyValueFactory<Room, String>(\"quality\"));\n\t\tcolRoomNumber.setCellValueFactory(new PropertyValueFactory<Room, String>(\"roomNumber\"));\n\t}",
"private void assignJValuesToInputBranch()\r\n\t{\r\n\t\tfor (int j = lowestJValue; j <= highestJValue; j++) {\r\n\t\t\tinputBranchWithJ.put(j, inputBranchArray.get(j - lowestJValue));\r\n\t\t}\r\n\r\n\t\tif (isEType) {\r\n\t\t\tsetupAssociatedBranchesEType(inputBranchWithJ);\r\n\t\t} else {\r\n\t\t\tsetupAssociatedBranchesAType(inputBranchWithJ);\r\n\t\t}\r\n\r\n\t}",
"protected abstract CellValue< ? extends Comparable< ? >> convertModelCellValue(C column,\n V cell);",
"public void setInitialPositions() {\t\n\t\tString[][] positions = myData.getInitialPositions();\n\t\tif (positions.length == 0) {\n\t\t\tsetDefaultPositions(myData);\n\t\t} else {\n\t\t\tfor (String[] each : positions) {\n\t\t\t\tif (each.length != 3) {\n\t\t\t\t\tthrow new XMLException(\"Initial State not Given for Cell %s\", Arrays.toString(each));\n\t\t\t\t}\n\t\t\t\tint x = Integer.parseInt(each[0]);\n\t\t\t\tint y = Integer.parseInt(each[1]);\n\t\t\t\tif (x < getGrid().getRow(0).length && x >= 0 && y < getGrid().getRow(0).length && y >= 0){ \n\t\t\t\t\tgetGrid().getCell(x,y).setType(each[2]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }",
"protected void populateDynamicCells(int resultsRow) {\n }",
"private void populateGridData() {\n\t\t// Delete subfile\n\t\tnmfkpinds.setPgmInd74(true);\n\t\tnmfkpinds.setPgmInd71(false);\n\t\tnmfkpinds.setPgmInd72(false);\n\t\tnmfkpinds.setPgmInd31(false);\n\t\tnmfkpinds.setPgmInd74(false);\n\t\t// Write subfile\n\t\tif (stateVariable.getSflrrn() == 0) {\n\t\t\tcontractDetail.fetch(stateVariable.getXwordn());\n\t\t}\n\t\tcontractDetail.next(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd31(lastIO.isEndOfFile());\n\t\tuwScnIdx1 = 0;\n\t\twhile (! nmfkpinds.pgmInd31()) {\n\t\t\tstateVariable.setSflrrn(Integer.valueOf(stateVariable.getSflrrn() + 1));\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\tstateVariable.setSwabcd(subString(stateVariable.getXwabcd(), 1, 15));\n\t\t\tstateVariable.setSwt8tx(subString(stateVariable.getXwt8tx(), 1, 9));\n\t\t\tproductMaster.retrieve(stateVariable.getXwabcd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00001 Product not found on Product_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwhltx(all(\"-\", 10));\n\t\t\t}\n\t\t\tif (uwScnIdx1 < Integer.valueOf(gridVariable.length - 1)) {\n\t\t\t\tuwScnIdx1 = Integer.valueOf(uwScnIdx1 + 1);\n\t\t\t}\n\t\t\tgridVariable[uwScnIdx1].setDssel(\"X\");\n\t\t\tgridVariable[uwScnIdx1].setSwabcd(stateVariable.getSwabcd());\n\t\t\tgridVariable[uwScnIdx1].setXwabcd(stateVariable.getXwabcd());\n\t\t\tgridVariable[uwScnIdx1].setXwaacs(stateVariable.getXwaacs());\n\t\t\tgridVariable[uwScnIdx1].setSwt8tx(stateVariable.getSwt8tx());\n\t\t\tgridVariable[uwScnIdx1].setXwt8tx(stateVariable.getXwt8tx());\n\t\t\tgridVariable[uwScnIdx1].setXwricd(stateVariable.getXwricd());\n\t\t\tgridVariable[uwScnIdx1].setXwa5qt(stateVariable.getXwa5qt());\n\t\t\tgridVariable[uwScnIdx1].setXwa2cd(stateVariable.getXwa2cd());\n\t\t\tgridVariable[uwScnIdx1].setXwpric(stateVariable.getXwpric());\n\t\t\tgridVariable[uwScnIdx1].setXwhltx(stateVariable.getXwhltx());\n\t\t\t// Reading just one grid page\n\t\t\tif (uwScnIdx1 == Integer.valueOf(gridVariable.length - 1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcontractDetail.next(stateVariable.getXwordn());\n\t\t\tnmfkpinds.setPgmInd31(lastIO.isEndOfFile());\n\t\t}\n\t\t// -\n\t\tif (stateVariable.getSflrrn() > 0) {\n\t\t\tif (equal(\"0\", stateVariable.getSflchg())) {\n\t\t\t\tstateVariable.setShwrec(1);\n\t\t\t}\n\t\t\tif ((stateVariable.getShwrec() > stateVariable.getSflrrn()) || (stateVariable.getShwrec() < 1)) {\n\t\t\t\tstateVariable.setShwrec(1);\n\t\t\t}\n\t\t\t// Richard T: 27 Sep 2010\n\t\t\tif (stateVariable.getSflrrn() > 0) {\n\t\t\t\tnmfkpinds.setPgmInd71(true);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnmfkpinds.setPgmInd71(false);\n\t\t\t}\n\t\t}\n\t\tnmfkpinds.setPgmInd72(true);\n\t}",
"public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }",
"@Override\n\tpublic void placementcell() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"public void mutate() {\n \t//POEY comment: for initialise() -> jasmine.gp.nodes.ercs\n //such as CustomRangeIntegerERC.java, PercentageERC.java, BoolERC.java \n \tsetValue(initialise());\n }",
"private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }",
"public void testSetCell()\n {\n // Test setting a cell under ideal conditions\n assertTrue(b1.getCell(0, 0) == Cell.EMPTY);\n assertTrue(b1.setCell(0, 0, Cell.RED1));\n assertTrue(b1.getCell(0, 0) == Cell.RED1 );\n\n // If a cell is out of bounds, should fail\n assertFalse(b1.setCell(-1, 0, Cell.RED1));\n assertFalse(b1.setCell(0, -1, Cell.RED1));\n assertFalse(b1.setCell(3, 0, Cell.RED1));\n assertFalse(b1.setCell(0, 3, Cell.RED1));\n\n // If a cell is already occupied, should fail\n assertFalse(b1.setCell(0, 0, Cell.RED1));\n\n // If the board is won, should fail\n assertTrue(b1.setCell(0, 1, Cell.RED1));\n assertTrue(b1.setCell(0, 2, Cell.RED1));\n assertEquals(b1.getWhoHasWon(), Cell.RED1);\n assertFalse(b1.setCell(1, 1, Cell.RED1)); // Unoccupied\n assertFalse(b1.setCell(0, 0, Cell.RED1)); // Occupied\n\n\n\n\n }",
"protected abstract V makeModelCellValue(C column);",
"public void postParse() \r\n\t{\n\t\tcolumnMap = new HashMap<String, ColumnDefinition>();\r\n\t\t\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tcolumnMap.put(def.getName(), def);\r\n\t\t}\r\n\t\t\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tdef.postParse();\r\n\t\t}\r\n\t}",
"void reinit() {\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n plots[i][j].setObjectives(i, j);\r\n }\r\n }\r\n fireTableDataChanged();\r\n }",
"void setCellDetails(FormattingRecords fr, SharedStrings ss, WritableSheetImpl s)\r\n/* 133: */ {\r\n/* 134:242 */ super.setCellDetails(fr, ss, s);\r\n/* 135:243 */ initialize(s.getWorkbookSettings(), s.getWorkbook(), s.getWorkbook());\r\n/* 136:244 */ s.getWorkbook().addRCIRCell(this);\r\n/* 137: */ }",
"private TableColumn<Object, ?> fillColumns() {\n\t\t\n\t\treturn null;\n\t}",
"public Cell(Cell original){\n this.i = original.i;\n this.j = original.j;\n this.type = original.type;\n if (original.entity != null) {\n if (original.entity instanceof Agent) {\n Agent agent = (Agent) original.entity;\n this.entity = new Agent(agent);\n }\n else if (original.entity instanceof Box) {\n Box box = (Box) original.entity;\n this.entity = new Box(box);\n }\n }\n else {\n this.entity = null;\n }\n this.goalLetter = original.goalLetter;\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n monthCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getMonth()));\n monthTypeCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getType()));\n monthNumberCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getNumber()));\n apptByMonthTableFill();\n\n //Report 2 fill\n consultantsFieldFill();\n apptStartCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getStart()));\n apptEndCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getEnd()));\n apptTitleCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getTitle()));\n apptTypeCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getType()));\n apptCustomerCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getCustomer().getCustomerName()));\n //add listener to consultant combo box\n consultantsField.valueProperty().addListener((ov, t, t1) -> onUserSelection());\n consultantsField.setValue(\"All\");\n onUserSelection();\n\n //Report 2 fill\n todCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getHour()));\n aveApptCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getCount()));\n aveApptTableFill();\n\n }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@FXML\n\t private void initialize () {\n\t \n\t \tprodIdColumn.setCellValueFactory(cellData -> cellData.getValue().productIdProperty().asObject());\n\t \tprodDenumireColumn.setCellValueFactory(cellData -> cellData.getValue().denumireProperty());\n\t \tprodProducatorColumn.setCellValueFactory(cellData -> cellData.getValue().producatorProperty());\n\t \tprodPretColumn.setCellValueFactory(cellData -> cellData.getValue().priceProperty().asObject());\n\t \tprodMarimeColumn.setCellValueFactory(cellData -> cellData.getValue().marimeProperty().asObject());\n\t \tprodCuloareColumn.setCellValueFactory(cellData -> cellData.getValue().culoareProperty());\n\t }",
"@Override\n\tpublic Cell createCell()\n\t{\n\t\treturn derivedColumn.createCell();\n\t}",
"private void update() {\n // Set for each cell\n for (Cell cell : this.view.getGamePanel().getViewCellList()) {\n cell.setBackground(BKGD_DARK_GRAY);\n cell.setForeground(Color.WHITE);\n cell.setFont(new Font(\"Halvetica Neue\", Font.PLAIN, 36));\n cell.setBorder(new LineBorder(Color.BLACK, 0));\n cell.setHorizontalAlignment(JTextField.CENTER);\n cell.setCaretColor(new Color(32, 44, 53));\n cell.setDragEnabled(false);\n cell.setTransferHandler(null);\n\n // Add subgrid separators\n CellPosition pos = cell.getPosition();\n if (pos.getColumn() == 2 || pos.getColumn() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 2, new Color(146, 208, 80)));\n } else if (pos.getRow() == 2 || pos.getRow() == 5) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 0, new Color(146, 208, 80)));\n }\n if ((pos.getColumn() == 2 && pos.getRow() == 2) || (pos.getColumn() == 5 && pos.getRow() == 5)\n || (pos.getColumn() == 2 && pos.getRow() == 5) || (pos.getColumn() == 5 && pos.getRow() == 2)) {\n cell.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 2, new Color(146, 208, 80)));\n }\n\n // Validate User's Cell Input + Mouse Listeners\n cell.removeKeyListener(cellKeyListener);\n cell.removeMouseListener(cellMouseListener);\n if (cell.isLocked()) {\n cell.setEditable(false);\n cell.setHighlighter(null);\n } else {\n cell.setBackground(BKGD_LIGHT_GRAY);\n cell.addMouseListener(cellMouseListener);\n cell.addKeyListener(cellKeyListener);\n }\n if (cell.isEmpty()) {\n cell.setText(\"\");\n } else {\n cell.setText(String.valueOf(cell.getUserValue()));\n }\n\n // Adds cell to the view's grid\n this.view.getGamePanel().getGrid().add(cell);\n }\n\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"@Override\n\tpublic void setData() {\n\n\t}",
"private void assignMoleculesToCells() {\n for (int i = 0; i < nXCells; i++) {\r\n for (int j = 0; j < nYCells; j++) {\r\n cells[i][j].firstMolecule = null;\r\n }\r\n }\r\n \r\n // Assign molecules to cells - each molecule has a unique cell\r\n for (Molecule m: molecules) {\r\n int xCell = (int) Math.floor(m.x / CELL_SIZE);\r\n if (xCell < 0) xCell = 0;\r\n if (xCell >= nXCells) xCell = nXCells - 1;\r\n int yCell = (int) Math.floor(m.y / CELL_SIZE);\r\n if (yCell < 0) yCell = 0;\r\n if (yCell >= nYCells) yCell = nYCells - 1;\r\n m.nextMoleculeInCell = cells[xCell][yCell].firstMolecule;\r\n cells[xCell][yCell].firstMolecule = m;\r\n }\r\n }",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n instance = this;\n components = new LinkedList<>();\n\n tc_Category.setCellValueFactory(new PropertyValueFactory<>(\"category\"));\n\n tc_Component.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n return new ReadOnlyObjectWrapper<>(param.getValue().getProduct().getFullName());\n });\n\n tc_Width.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct().getWidthProduct() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getProduct().getWidthProduct()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Height.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct().getHeightProduct() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getProduct().getHeightProduct()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Length.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct().getLengthProduct() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getProduct().getLengthProduct()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Amount.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getNumberOfProducts() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getNumberOfProducts()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Unit.setCellValueFactory(new PropertyValueFactory<>(\"unit\"));\n\n tc_PricePerUnit.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getPriceComponent() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getPriceComponent()) + \" €\");\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_TotalCosts.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct() != null && param.getValue().getNumberOfProducts() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getNumberOfProducts() * param.getValue().getPriceComponent()) + \" €\");\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n refreshTableView();\n }",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"@Override\n\tpublic void populateRowDataAfter(FunctionItem fi) throws Exception {\n\t\t\n\t}",
"public ZonaFasciculataCells() {\r\n\r\n\t}",
"protected void postProcessTable(TableImpl t) \n\t{\n\t\t((ExcelTableImpl)t).excelColumns().forEach(c -> c.getLabel());\n\t\t((ExcelTableImpl)t).excelRows().forEach(r -> r.getLabel());\n\t}",
"private void initializeColumns() {\n\n // nameColumn\n nameColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getFullName()\n ));\n\n // ageColumn\n organColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getOrgan()));\n\n // genderColumn\n regionColumn.setCellValueFactory(record -> new\n ReadOnlyStringWrapper(record.getValue().getRegion()));\n\n // dateColumn. Depends on the given string\n dateColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n TransplantWaitingList.formatCreationDate(record.getValue().getTimestamp())));\n\n }",
"public void setGFXCell(GFXDataCell gfxCell);",
"public Cell() {\r\n\t\tthis.mineCount = 0;\r\n\t\tthis.isFlagged = false;\r\n\t\tthis.isExposed = false;\r\n\t\tthis.isMine = false;\r\n\t}",
"void initData() {\r\n this.unconnectedCells = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.BLUE, true), new EndCell(0, 1),\r\n new EndCell(-1, 1), new EndCell(0, 1), new EndCell(1, 1)));\r\n\r\n this.cells1 = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1), new EndCell(2,-1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.RED, true),\r\n new Cell(1, 0, Color.RED, false), new EndCell(2, 0),\r\n new EndCell(-1, 1), new Cell(0, 1, Color.BLUE, false),\r\n new Cell(1, 1, Color.RED, false), new EndCell(2, 1),\r\n new EndCell(-1, 2), new EndCell(0, 2), new EndCell(1, 2), new EndCell(2, 2)));\r\n\r\n this.floodedCells = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1), new EndCell(2,-1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.RED, true),\r\n new Cell(1, 0, Color.RED, true), new EndCell(2, 0),\r\n new EndCell(-1, 1), new Cell(0, 1, Color.BLUE, true),\r\n new Cell(1, 1, Color.RED, true), new EndCell(2, 1),\r\n new EndCell(-1, 2), new EndCell(0, 2), new EndCell(1, 2), new EndCell(2, 2)));\r\n\r\n this.halfFlooded = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1), new EndCell(2,-1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.PINK, true),\r\n new Cell(1, 0, Color.CYAN, true), new EndCell(2, 0),\r\n new EndCell(-1, 1), new Cell(0, 1, Color.CYAN, true),\r\n new Cell(1, 1, Color.PINK, false), new EndCell(2, 1),\r\n new EndCell(-1, 2), new EndCell(0, 2), new EndCell(1, 2), new EndCell(2, 2)));\r\n\r\n this.mtACell = new ArrayList<ACell>();\r\n\r\n this.c1 = new Cell(0, 0, Color.PINK, false);\r\n this.c2 = new Cell(1, 0, Color.GREEN, false);\r\n this.c3 = new Cell(0, 1, Color.CYAN, false);\r\n this.e1 = new EndCell(0, 0);\r\n\r\n this.runGame = new FloodItWorld();\r\n this.runGame.initializeBoard();\r\n\r\n this.game1 = new FloodItWorld(20);\r\n this.game1.initializeBoard();\r\n\r\n this.game2 = new FloodItWorld(1, 100, new Random(20),\r\n 2, 3);\r\n this.game2.initializeBoard();\r\n\r\n this.game3 = new FloodItWorld(1, 10, new Random(21),\r\n 3, 8);\r\n this.game3.initializeBoard();\r\n\r\n this.game5 = new FloodItWorld(5, 5, new Random(23),\r\n 4, 2);\r\n this.game5.initializeBoard();\r\n this.game6 = new FloodItWorld(this.unconnectedCells,\r\n 0, 5, new Random(24), new ArrayList<Color>(Arrays.asList(Color.BLUE)),1, 1,\r\n new ArrayList<ACell>());\r\n this.game7 = new FloodItWorld(this.cells1, 0, 3, new Random(25),\r\n new ArrayList<Color>(Arrays.asList(Color.BLUE, Color.RED)), 2, 2,\r\n new ArrayList<ACell>());\r\n this.game7.stitchCells();\r\n\r\n this.game8 = new FloodItWorld(this.floodedCells, 0, 3, new Random(26),\r\n new ArrayList<Color>(Arrays.asList(Color.BLUE, Color.RED)), 2, 2,\r\n new ArrayList<ACell>());\r\n this.game8.stitchCells();\r\n\r\n this.game9 = new FloodItWorld(this.halfFlooded, 0, 3, new Random(27),\r\n new ArrayList<Color>(Arrays.asList(Color.PINK, Color.BLUE)), 2, 2,\r\n new ArrayList<ACell>());\r\n this.game9.stitchCells();\r\n }",
"@Override\n protected void loadAndFormatData()\n {\n // Place the data into the table model along with the column\n // names, set up the editors and renderers for the table cells,\n // set up the table grid lines, and calculate the minimum width\n // required to display the table information\n setUpdatableCharacteristics(getScriptAssociationData(allowSelectDisabled, parent),\n AssociationsTableColumnInfo.getColumnNames(),\n null,\n new Integer[] {AssociationsTableColumnInfo.AVAILABLE.ordinal()},\n null,\n AssociationsTableColumnInfo.getToolTips(),\n true,\n true,\n true,\n true);\n }",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }",
"private void initData() {\n\t}",
"public Object getCellEditorValue() {\r\n System.out.println(\"*** get cell editor value: ***\" +txtCell.getText()) ;\r\n Object oldValue = tblProtoCorresp.getValueAt(selRow,selColumn);\r\n Object newValue = ((CoeusTextField)txtCell).getText();\r\n TableColumn column = codeTableColumnModel.getColumn(selColumn) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n \r\n //this window has only two combox columns to display\r\n newValue = (ComboBoxBean)((CoeusComboBox)getComponent()).getSelectedItem();\r\n\r\n\r\n if (checkDependency(selRow, \"\"))\r\n {\r\n if(!CheckUniqueId(newValue.toString(), selRow, selColumn))\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"chkPKeyUniqVal_exceptionCode.2401\");\r\n \r\n CoeusOptionPane.showInfoDialog(msg); \r\n return oldValue; //fail in uniqueid check\r\n }\r\n }\r\n else\r\n {\r\n return oldValue;//fail in dependency check\r\n }\r\n \r\n\r\n\r\n\r\n //when the cell value changed,\r\n //set AC_TYPE only the this row is first time be modified.\r\n //\"U\" means this row needs to update.\r\n if (selRow > -1)\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(selRow),codeTableModel.getColumnCount()-1) == null)\r\n {\r\n if (tblProtoCorresp.getValueAt(selRow,selColumn)!=null)\r\n {\r\n if (!(tblProtoCorresp.getValueAt(selRow,selColumn).toString().equals(((CoeusTextField)txtCell).getText())))\r\n {\r\n codeTableModel.setValueAt(\"U\", sorter.getIndexForRow(selRow), codeTableModel.getColumnCount()-1);\r\n // set the user name\r\n codeTableModel.setValueAt(userId, sorter.getIndexForRow(selRow), tableStructureBeanPCDR.getUserIndex() );\r\n saveRequired = true;\r\n System.out.println(\"*** Set AcType to U in getCellEditorValue***\") ;\r\n }\r\n }\r\n else\r\n {\r\n codeTableModel.setValueAt(\"U\", sorter.getIndexForRow(selRow), codeTableModel.getColumnCount()-1);\r\n // set the user name\r\n codeTableModel.setValueAt(userId, sorter.getIndexForRow(selRow), tableStructureBeanPCDR.getUserIndex() );\r\n saveRequired = true;\r\n System.out.println(\"*** Set AcType to U in getCellEditorValue***\") ;\r\n }\r\n }\r\n\r\n }\r\n\r\n if (selColumn == 0 || selColumn == 1 )\r\n return (ComboBoxBean)((CoeusComboBox)getComponent()).getSelectedItem();\r\n\r\n return ((CoeusTextField)txtCell).getText();\r\n }",
"private void reset()\n {\n myCellReferences = new ArrayList<>();\n mySheetName = null;\n myCellReference = null;\n myDefaultValue = null;\n amIInsideSingleQuotes = false;\n amIExpectingADefaultValue = false;\n }",
"public NewImportForm(Company co, Branch br, File excelFile) {\n initComponents();\n this.company = co;\n this.branch = br;\n \n try {\n workBook = new HSSFWorkbook(new FileInputStream(excelFile));\n workSheet = workBook.getSheetAt(0); \n MyTableModel tableModel = new MyTableModel();\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"MM/dd/yy\");\n \n for(int i = 0; i <= workSheet.getLastRowNum(); i++) {\n HSSFRow row = workSheet.getRow(i);\n Object[] rowData = new Object[row.getLastCellNum()];\n \n if(row.getLastCellNum() > tableModel.getColumnCount())\n tableModel.setColumnCount(row.getLastCellNum());\n \n for(short c = 0; c < row.getLastCellNum(); c++) {\n int cellType = row.getCell(c).getCellType();\n switch(cellType) {\n \n case HSSFCell.CELL_TYPE_STRING:\n rowData[c] = row.getCell(c).getStringCellValue();\n break;\n \n \n case HSSFCell.CELL_TYPE_NUMERIC:\n double value = row.getCell(c).getNumericCellValue();\n \n if(HSSFDateUtil.isValidExcelDate(value))\n rowData[c] = dateFormatter.format(row.getCell(c).getDateCellValue());\n else\n rowData[c] = value; \n break;\n \n \n case HSSFCell.CELL_TYPE_BOOLEAN:\n rowData[c] = row.getCell(c).getBooleanCellValue();\n break;\n \n \n case HSSFCell.CELL_TYPE_FORMULA:\n rowData[c] = row.getCell(c).getCellFormula();\n break;\n \n \n case HSSFCell.CELL_TYPE_ERROR:\n rowData[c] = row.getCell(c).getErrorCellValue();\n break;\n \n \n default:\n rowData[c] = \"\";\n break;\n }\n }\n tableModel.addRow(rowData);\n } \n \n this.dataTable.setModel(tableModel);\n for(int i = 0; i < this.dataTable.getColumnCount(); i++) {\n this.dataTable.getColumnModel().getColumn(i).setHeaderValue(\"Unassigned\");\n this.dataTable.getColumnModel().getColumn(i).setMinWidth(150);\n }\n \n this.dataTable.setMinimumSize(new Dimension(this.dataTable.getColumnCount()*150, 32000));\n this.dataTable.getTableHeader().setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n this.dataTable.revalidate();\n this.importButton.setEnabled(true);\n \n } catch(Exception ex) { JOptionPane.showMessageDialog(this, \"Unable to load data from file!\\n\" + ex.getMessage(), \"Error!\", JOptionPane.ERROR_MESSAGE); }\n \n this.setTitle(\"Importing Employees into \" + this.company.getName() + \", \" + this.branch.getBranchName());\n \n this.allLists = new ArrayList<ArrayList<String>>();\n this.allLists.add(employee_first_name);\n this.allLists.add(employee_last_name);\n this.allLists.add(employee_middle_initial);\n this.allLists.add(employee_ssn);\n this.allLists.add(employee_address);\n this.allLists.add(employee_address2);\n this.allLists.add(employee_city);\n this.allLists.add(employee_state);\n this.allLists.add(employee_zip);\n this.allLists.add(employee_phone);\n this.allLists.add(employee_phone2);\n this.allLists.add(employee_pager);\n this.allLists.add(employee_cell);\n this.allLists.add(employee_email);\n this.allLists.add(employee_birthdate);\n }",
"private static void setCellData(HSSFSheet sheet, List<String[]> autoList) {\n\t\tif(autoList == null || autoList.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tint rownum = 1;\n\t\tfor (String[] autoRow : autoList) {\n\t\t\tRow excelRow = sheet.createRow(rownum++);\n\t\t\tfor (int i = 0; i < autoRow.length; i++) {\n\t\t\t\tif(autoRow[i] != null && !autoRow[i].isEmpty()) {\n\t\t\t\t\texcelRow.createCell(i).setCellValue(autoRow[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private RowData() {\n initFields();\n }",
"private void setData() {\n\n }",
"private void setCellText(final CellsGUI the_cell) {\r\n\r\n\t\t// if (the_cell == null)\r\n\t\t// return;\r\n\t\tCell cell = cellMap.get(the_cell.getToken().toString());\r\n\t\tmyCell = cell;\r\n\t\tif (myCell == null)\r\n\t\t\treturn;\r\n\t\tif (cell != null) {\r\n\t\t\tdouble value = 0;\r\n\t\t\tvalue = roundDecimal(cell.last_value);\r\n\t\t\tthe_cell.setText(Double.toString(value));\r\n\t\t} else {\r\n\t\t\tthe_cell.setText(\"\");\r\n\t\t}\r\n\r\n\t\tdouble cellValue = roundDecimal(myCell.last_value);\r\n\t\tString textValue = String.valueOf(cellValue);\r\n\r\n\t\tif (myCell.formula == null)\r\n\t\t\tthe_cell.setText(\"\");\r\n\t\telse\r\n\t\t\tthe_cell.setText(textValue);\r\n\t}",
"private void initValues() {\n \n }",
"public NotebookCell() {}",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"default Object convert(GenericRowData row) {\n return convert(row, -1);\n }",
"@Override\n public void reloadGridsData() {\n \n }",
"private void fillData() {\n table.setRowList(data);\n }",
"public static void setCellData(String result, int rowNum, int colNum) throws Exception {\r\n\r\n\t\trow = sheet.getRow(rowNum);\r\n\t\tcell = row.getCell((colNum), MissingCellPolicy.RETURN_BLANK_AS_NULL);\r\n\r\n\t\tif (cell == null) {\r\n\t\t\tcell = row.createCell(colNum);\r\n\t\t\tcell.setCellValue(result);\r\n\t\t} else {\r\n\t\t\tcell.setCellValue(result);\r\n\t\t}\r\n\t}",
"protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"private void reinitRowValues() {\n for (int i=0; i<rowValues.length; i++) {\n rowValues[i] = null;\n }\n }"
] |
[
"0.6243785",
"0.591629",
"0.5854527",
"0.5774251",
"0.5764296",
"0.57513934",
"0.57338095",
"0.5660781",
"0.5606098",
"0.5583147",
"0.5574861",
"0.5556931",
"0.5525766",
"0.5496729",
"0.5494106",
"0.5493462",
"0.54898953",
"0.54691637",
"0.5453979",
"0.5436688",
"0.542145",
"0.540844",
"0.5402871",
"0.5368291",
"0.5366807",
"0.535772",
"0.5350764",
"0.53506696",
"0.5346369",
"0.5344769",
"0.5323211",
"0.53110045",
"0.53103644",
"0.53018296",
"0.5284867",
"0.52821434",
"0.5278387",
"0.5275833",
"0.52460694",
"0.5244446",
"0.5244446",
"0.5244446",
"0.5244446",
"0.5244446",
"0.5244446",
"0.5233653",
"0.52303594",
"0.52298665",
"0.5215616",
"0.5209733",
"0.5194238",
"0.5184487",
"0.5181828",
"0.51791775",
"0.5173765",
"0.51492745",
"0.51492745",
"0.5139311",
"0.5132415",
"0.5130813",
"0.51181185",
"0.5114007",
"0.5114007",
"0.5105014",
"0.5103922",
"0.5098613",
"0.50979143",
"0.5096063",
"0.5090988",
"0.5089167",
"0.5076684",
"0.5074464",
"0.5062922",
"0.5060041",
"0.5057819",
"0.5057731",
"0.5056835",
"0.50538766",
"0.50538766",
"0.50538766",
"0.5050968",
"0.50502175",
"0.50487924",
"0.5048323",
"0.5042235",
"0.50383854",
"0.50279284",
"0.5010433",
"0.5008217",
"0.50072765",
"0.5000936",
"0.49969637",
"0.49941126",
"0.49927908",
"0.49866524",
"0.49824226",
"0.49818888",
"0.4967617",
"0.4963472",
"0.4960651"
] |
0.5624877
|
8
|
/ variable for allergy yes or no if allergy is yes> we will check if pet allergy if peanut allergy if polen allergy if no allergy you are lucky
|
public static void main(String[] args) {
boolean allergy=true;
boolean petAllergy=false;
boolean peanatAllergy=true;
boolean pollenAllergy=false;
if (allergy) {
System.out.println("Lets do further check");
if (petAllergy) {
System.out.println("Please no cats or dogs in the house");
} else if (peanatAllergy){
System.out.println("Dont eat peanat butter");
}else if (pollenAllergy) {
System.out.println("Dont clean ");}
}else {
System.out.println("You are lucky");
}
System.out.println("-----------Example 2----------");
/*
* If todays is friday we will watch movie but would like to check the date
* if date is 13--> watching scary movie
* and if its is not--> i will watch comedy, action
*
* if no Friday --> i am studying
*/
boolean Friday=false;
int date=4;
boolean monday=true;
if (Friday) {
if (date==13) {
System.out.println("We will watch a scary movie");
}else {
System.out.println("Watch a comedy");
}
}else {
if(monday) {
System.out.println("I am not studying,Im working");
}else {
System.out.println("I have class at Syntax");
}
}
System.out.println("----------Example 3------");
/*
* check if assignment is completed
* if assignment is complited:
* if score >90--> great job
* if score >80--> good job;
* if score >70--> please study more
*/
boolean assignment=false;
int score=92;
if (assignment) {
if(score>90) {
System.out.println("Great job!");
}else if (score>80) {
System.out.println("Good job");
}else if (score>70) {
System.out.println("Pleaase study more");
}else {
System.out.println("Good job for trying,but must study!");
}
}else {
System.out.println("You should always complete all assignments");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void answerYesOrNo() {\n List<String> Yes = additionalDB.get(\"Yes\");\n List<String> No = additionalDB.get(\"No\");\n if (random.nextBoolean())\n \tresponsesList.add(new Response(getRandomElementFromList(Yes)));\n else responsesList.add(new Response(getRandomElementFromList(No)));\n }",
"private String eligibleToDonote() {\n if(Integer.parseInt(bloodPressureTxtField.getText())>100 || Integer.parseInt(heartRateTxtField.getText())>80 \n || alcoholConsumptionTxtField.getText().equals(\"Y\") || drugConsumptionTxtField.getText().equals(\"Y\"))\n {\n return \"Ineligibe to Donate Blood\";\n }\n return \"Eligible to Donate Blood\";\n }",
"boolean checkYesNo (String choice){\r\n if (choice.equalsIgnoreCase(\"N\") || choice.equalsIgnoreCase(\"Y\")){\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }",
"public String agileOrWaterfallDecider() {\n String decision = \"Agile.\";\n int x = 0;\n if (numberOfProgrammersOnCheckBox.isSelected())\n x += 1;\n if (needForAFixedCheckBox.isSelected())\n x += 1;\n if (doTeammateHaveExperienceCheckBox.isSelected())\n x += 1;\n if (stringentQualityControlRequirementsCheckBox.isSelected())\n x += 1;\n if (earlyIntegrationNOTDesirableCheckBox.isSelected())\n x += 1;\n if (earlyWorkingModelsNOTCheckBox.isSelected())\n x += 1;\n if (x > 3)\n decision = \"Waterfall.\";\n else if (x == 3) {\n decision = \"either one.\";\n }\n return decision;\n }",
"boolean hasResidentYn();",
"public static void main(String[] args)\n\t{\n\t\t\n\t\tString answer = JOptionPane.showInputDialog(null,\"Are you happy? or is your name bob?\"); //IS THESE CORRECT?????\n\t\t\n\t\t\n\t\t/*\n\t\t * no, yes, bob\n\t\t */\n\t\t\n\t\t/*\n\t\t * psudo code.. \n\t\t * if - else statements are conditional dependent clauses.\n\t\t * As soon as the first if/else-if evaluates to true.. it will run its \n\t\t * block, and then drop out of the entire if-else block..\n\t\t * \n\t\t * int i = 1;\n\t\t * \n\t\t * if(i == 0) -> i is 1 NOT 0.. therefore false.\n\t\t * {\n\t\t * \t\n\t\t * \n\t\t * } else if (i == 1 ) { it is 1 therefore true\n\t\t * \n\t\t * System.out.println(\"ITS TRUE!\");\n\t\t * \n\t\t *\n\t\t * } else if (i == 2) {\n\t\t * \n\t\t * \n\t\t * \n\t\t * } else if (i >=3 ) {\n\t\t * \n\t\t * \t\n\t\t * } else {\n\t\t * \n\t\t * \t\t//Default catch all!\n\t\t * }\n\t\t * \n\t\t * if - statements are not dependent clauses. Each one is evaluated \n\t\t * separate from the previous if statement. if one evalutates to true,\n\t\t * the next statement will be evaluated independently as well.\n\t\t * \n\t\t * if(i == 0) {\n\t\t * \t\tSystem.out.println(\"its 0\");\n\t\t * }\n\t\t * \n\t\t * if(i == 1) {\n\t\t * \t\tSystem.out.println(\"its 1\");\n\t\t * }\n\t\t * \n\t\t * if(i == 2) {\n\t\t * \t\tSystem.out.println(\"its 2\");\n\t\t * }\n\t\t * \n\t\t * if(i == 1 || i ==2) {\n\t\t * \n\t\t * \t\tSystem.out.println(\"its 1 or 2\");\n\t\t * }\n\t\t */\n\t\t\n\t\tif(answer.contentEquals(\"no\"))\n\t\t{\n\t\t\t//Stuff when answer is no happens here.\n\t\t\tString answer2 = JOptionPane.showInputDialog(null,\"Do you want to be happy\");\n\t\t\t\n\t\t\tif(answer2.contentEquals(\"no\"))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Keep on doing what you are doing\");\n\t\t\t\t\n\t\t\t} else if(answer2.contentEquals(\"yes\")) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Change something\");\n\t\t\t}\n\t\t} else if(answer.contentEquals(\"yes\")) {\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"Keep on doing what you are doing\");\n\t\t} else if(answer.contentEquals(\"bob\")) {\n\t\t\n\t\t\tJOptionPane.showMessageDialog(null,\"Nice you like bob too!!!\");\n\n\t\t} else {\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"THEY ANSWERED ANYTHING OTHER THAN NO, YES, and BOB\");\n\t\t}\n\t\t\n\t}",
"void bot_check_on_user() { // using Watson Speech-to-Text and text-to-Speech functions\r\n String output;\r\n String input;\r\n output: \"Are you okay?\";\r\n input = get voice input;\r\n if (input = \"Yes I’m okay.\") {} // nothing to do\r\n else if (input = \"A bit unwell.\") {\r\n output = \"Please list your symptoms.\";\r\n String symptoms;\r\n symptoms = get voice input;\r\n CFR_check(symptoms);\r\n }\r\n else if (input = …(no sound)) {\r\n CFR_check(\"No response, might be unconscious.\");\r\n else output : \"Please repeat.\";\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tboolean allergy = true;\n\t\tboolean peanut = true;\n\t\tboolean lactose = false;\n\t\tboolean bee = true;\n\t\t\n\t\tif(!allergy) {\n\t\t\tSystem.out.println(\"You are healthy.\");\n\t\t}else {\n\t\t\tif(peanut) {\n\t\t\t\tSystem.out.println(\"Dot't eat peanut\");\n\t\t\t}\n\t\t\tif(lactose) {\n\t\t\t\tSystem.out.println(\"Dot't drink milk\");\n\t\t\t}\n\t\t\tif(bee) {\n\t\t\t\tSystem.out.println(\"Dot't mess with bees\");\n\t\t\t}\n\t\t}\n\t}",
"public static boolean yesOrno(){\n boolean result;\n Scanner input = new Scanner(System.in);\n do {\n String choice = input.next();\n if (choice.equals(\"y\")) {\n result = true;\n break;\n } else if (choice.equals(\"n\")) {\n result = false;\n break;\n } else {\n System.out.println(\"Wrong Input please enter y or n !\");\n }\n } while (true);\n\n return result;\n\n }",
"public static void main(String[] args) {\n\t\tString q1,q2;\r\n\t\t\r\n\t\tScanner input = new Scanner(System.in);\r\nSystem.out.print(\"TWO MORE QUESTIONS, BABY!\\nThink of something and I'll try to guess it!\");\r\n\r\nSystem.out.println(\"Does it stay inside or outside or both?\");\r\nq1 = input.next();\r\n\r\nSystem.out.println(\"Is it a living thing?\");\r\nq2 = input.next();\r\n\r\nif(q1.equalsIgnoreCase(\"inside\")&& q2.equalsIgnoreCase(\"yes\")) {\r\n\tSystem.out.println(\"u r thinking of a houseplant\");\r\n}\r\nif(q1.equalsIgnoreCase(\"inside\")&& q2.equalsIgnoreCase(\"no\")) {\r\n\tSystem.out.println(\"u r thinking of a shower curtain\");\r\n}\r\nif(q1.equalsIgnoreCase(\"outside\")&& q2.equalsIgnoreCase(\"yes\")) {\r\n\tSystem.out.println(\"u r thinking of a bison\");\r\n}\r\nif(q1.equalsIgnoreCase(\"outside\")&& q2.equalsIgnoreCase(\"no\")) {\r\n\tSystem.out.println(\"u r thinking of a billboard\");\r\n}\r\nif(q1.equalsIgnoreCase(\"both\")&& q2.equalsIgnoreCase(\"yes\")) {\r\n\tSystem.out.println(\"u r thinking of a dog\");\r\n}\r\nif(q1.equalsIgnoreCase(\"both\")&& q2.equalsIgnoreCase(\"no\")) {\r\n\tSystem.out.println(\"u r thinking of a cell phone\");\r\n}\r\n\r\n\t}",
"static void checkYESorNO(){\n /*\n System.out.print(\"X:\" + cntSymbols.get(\"X\"));\n System.out.print(\",O:\" + cntSymbols.get(\"O\"));\n System.out.print(\",.:\" + cntSymbols.get(\".\") + \"\\n\");\n */\n if(cntSymbols.get(\"O\") == null && cntSymbols.get(\".\") == 1 && cntSymbols.get(\"X\") ==3){\n result = \"YES\";\n return;\n } \n }",
"boolean hasReqardTypeFifteen();",
"Boolean getPartiallyCorrect();",
"public boolean pregunta(){\n int d = JOptionPane.showConfirmDialog(null, \"¿Desea escribir otra palabra?\", \"¿Escribir?\", JOptionPane.YES_NO_OPTION);\n if (d == 0) {\n return true;\n }else if (d == 1) {\n return false;\n }\n return false;\n }",
"public void confirmBooking(){\n double ticketPrice = 56.0;\n double mealPrice = 30.0;\n if (student || child )\n ticketPrice = ticketPrice/2;\n else\n ticketPrice = ticketPrice*0.8;\n \n if (child )\n mealPrice = mealPrice/2;\n else\n mealPrice = mealPrice*0.9;\n double totalPrice = ticketPrice + mealPrice;\n System.out.println(getName()+\"\\nTicket price:$\"+ticketPrice+\"\\nMeal Price:$\"+mealPrice+\"\\nTotal price:$\"+totalPrice+\"\\nConfirm booking for \"+getName()+\" (Y/N)\");\n setBooked();\n System.out.println(getBooked()+\"\\n\\n\");\n }",
"boolean getCorrect();",
"private static boolean getUserYesOrNo(SimpleReader in, SimpleWriter out) {\r\n String answer = in.nextLine();\r\n boolean answerIsYes = true;\r\n while (!answer.equalsIgnoreCase(\"y\") && !answer.equalsIgnoreCase(\"n\")) {\r\n out.print(\"Error: please enter 'y' or 'n' as a response: \");\r\n answer = in.nextLine();\r\n }\r\n if (answer.equalsIgnoreCase(\"n\")) {\r\n answerIsYes = false;\r\n }\r\n return answerIsYes;\r\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Do you want food or drink? \");\n System.out.println(\"If your answer is food you want meal or snack? \");\n System.out.println(\"If your answer is drink you want soda or juice? \");\n String mainOption= scan.next();\n String secondaryOption = scan.next();\n\n if(mainOption.equalsIgnoreCase(\"food\")){\n System.out.println(\"You have selected food\");\n if(secondaryOption.equalsIgnoreCase(\"meal\")){\n System.out.println(\"You have selected meal\");\n }else if (secondaryOption.equalsIgnoreCase(\"snack\")) {\n System.out.println(\"You have selected snack\");\n }else if(mainOption.equalsIgnoreCase(\"drink\")){\n System.out.println(\"You have selected drink\");\n }else if(secondaryOption.equalsIgnoreCase(\"soda\")) {\n System.out.println(\"You have selected soda\");\n }else if(secondaryOption.equalsIgnoreCase(\"juice\")) {\n System.out.println(\"You have selected juice\");\n\n }\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"boolean hasCorrect();",
"boolean hasHasInjury();",
"private boolean yesOrNo(String prompt) {\r\n\t\tString more = getToken(prompt + \" (Y|y)[es] or anything else for no\");\r\n\t\tif (more.charAt(0) != 'y' && more.charAt(0) != 'Y') {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static String checkYesOrNo(String yesOrNo)\n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tboolean correctValue;\n\t\tif (yesOrNo.equalsIgnoreCase(\"yes\") || yesOrNo.equalsIgnoreCase(\"no\"))\n\t\t{\n\t\t\tcorrectValue = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcorrectValue = false;\n\t\t\twhile(!correctValue)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"Oops did your finger slip? Please try again. \");\n\t\t\t\tyesOrNo = keyboard.next().toLowerCase();\n\t\t\t\tif (yesOrNo.equalsIgnoreCase(\"yes\") || yesOrNo.equalsIgnoreCase(\"no\"))\n\t\t\t\t{\n\t\t\t\t\tcorrectValue = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn yesOrNo;\n\t}",
"boolean hasCorrectAnswer();",
"private static boolean yesNo(String string) {\n\t\tstring = string.toLowerCase();\n\t\t\n\t\treturn string.equals(\"yes\") || string.equals(\"y\") || string.equals(\"true\")\n\t\t\t\t|| string.equals(\"t\");\n\t}",
"public String isPet() {\n\t\tString Y = \"True\";\r\n\t\tString N = \"False\";\r\n\t\tif (pet.compareTo(\"Y\") == 0) {\r\n\t\t\treturn Y; //returns Y for yes if pet\r\n\t\t} else\r\n\t\t\treturn N; //returns N for no if not pet\r\n\t}",
"boolean hasHasAlcohol();",
"public static void main(String[] args) {\nint tamil = 75;\r\nint english = 50;\r\nif((tamil>=35)||(english>=35))\r\n System.out.println(\"You are passed in english and tamil\");\r\nelse\r\n\tSystem.out.println(\"You are failed!\");\r\n\t}",
"private boolean yesOrNo(String prompt) {\n String more = getToken(prompt + \" (Y|y)[es] or anything else for no: \");\n if (more.charAt(0) != 'y' && more.charAt(0) != 'Y') {\n return false;\n }\n return true;\n }",
"private boolean yesOrNo(String prompt) {\n String more = getToken(prompt + \" (Y|y)[es] or anything else for no: \");\n if (more.charAt(0) != 'y' && more.charAt(0) != 'Y') {\n return false;\n }\n return true;\n }",
"public static String wheelchairboolean(boolean access) \n {\n String option;\n if (access == true) {\n option = \" yes \";\n }\n else {\n option = \" no \";\n }\n return option;\n \n }",
"public int yesOrNo(String input){\r\n\t\tinput = input.replaceAll(\"\\\\s\",\"\"); //Remove spaces from a string. Taken from stack overflow. \r\n\t\tif(input.equals(\"1\"))\r\n\t\t\treturn 1;\r\n\t\telse if(input.equals(\"0\"))\r\n\t\t\treturn 0;\r\n\t\telse if(input.toLowerCase().equals(\"yes\") || input.toLowerCase().equals(\"y\"))\r\n\t\t\treturn 1;\r\n\t\telse if(input.toLowerCase().equals(\"no\") || input.toLowerCase().equals(\"n\"))\r\n\t\t\treturn 0;\r\n\t\treturn -1; //If it wasn't one of these, it's an error. \r\n\t}",
"boolean hasHasAlcoholResult();",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Bienvenido a Magic Ball 8!!\");\n System.out.print(\"Escribe tu pregunta y te la contestaré: \");\n String question = scan.nextLine();\n // Get a random number from 1 to 8\n double a = Math.random()*8;\n // Use if statements to print out 1 of 8 responses\n if (a>=0 & a<1){\n System.out.println(\"No lo sé, lo siento...... :(\");\n }\n if (a>=1 & a<2){\n System.out.println(\"Eso tan solo depende de tí\");\n }\n if (a>=2 & a<3){\n System.out.println(\"La respuesta está en tu habitación....\");\n }\n if (a>=3 & a<4){\n System.out.println(\"Si haces las cosas bien, encontrarás lo que buscas..\");\n }\n if (a>=4 & a<5){\n System.out.println(\"Depende de lo que quieras encontrar..\");\n }\n if (a>=5 & a<6){\n System.out.println(\"No sé para qué me preguntas eso, pero la respuesta la tienes tú\");\n }\n if (a>=6 & a<7){\n System.out.println(\"Sin comentarios.....\");\n }\n if (a>=7 & a<8){\n System.out.println(\"¡Vaya preguntas me haces!\");\n } \n }",
"boolean hasIsAutoBet();",
"public boolean getGotLucky()\n {\n return (die1.getFacevalue() == 6 && die2.getFacevalue() == 6 && lastThrow[0] == 6 && lastThrow[1] == 6);\n }",
"private void detectCorrectAnswer() {\n switch (chapterSection) {\n case 5:\n if (typedAnswer.toString().toLowerCase().contentEquals(\"baybayin\")) {\n ansCorrect = true;\n }\n break;\n case 6:\n if (typedAnswer.toString().toLowerCase().contentEquals(\"kabundukan\")) {\n ansCorrect = true;\n }\n break;\n case 7:\n if (typedAnswer.toString().toLowerCase().contentEquals(\"lungsod\")) {\n ansCorrect = true;\n }\n break;\n case 8:\n if (typedAnswer.toString().toLowerCase().contentEquals(\"kabukiran\")) {\n ansCorrect = true;\n }\n break;\n }\n }",
"public void decideNature()\n {\n String nature = new String(\"\");\n Random rand = new Random();\n int i = rand.nextInt(100);\n if(i <= 25)\n {\n nature = \"Very mischievous. Enjoys hiding objects in plain sight\";\n }//ends the if\n else if(i > 25 && i <= 50)\n {\n nature = \"Loves to spend time sleeping on the clouds\";\n }//ends the else if\n else if(i > 50 && i <= 75)\n {\n nature = \"Is very playful\";\n }//ends the else if\n else\n {\n nature = \"Loves to perform dances in the air\";\n }\n \n setNature(nature);\n }",
"public static void main(String[] args) {\n boolean freeShipping = true;\n boolean onSale = true;\n boolean hasItem = false;\n String item = \"Wooden Spoon\";\n\n if (freeShipping && onSale) {\n System.out.println(\"Purchase the - \" + item);\n } else {\n System.out.println(\"Next time when item \" + item + \" on sale\");\n }\n System.out.println(\"==================================\");\n\n // 2nd job offer selector\n\n String location = \"Toronto\";\n double salary = 85_000.0;\n boolean remote = true;\n boolean hasBenefit = true;\n\n if (location.equals(\"Toronto\") && salary == 85_000 && remote && hasBenefit) {\n\n System.out.println(\"Accept job offer\");\n } else {\n System.out.println(\"Reject the offer\");\n }\n System.out.println(\"==================================\");\n // 3rd practice OR(||)\n System.out.println(\"false || true = \" + (false || true)); // true\n System.out.println(\"true || false = \" + (false || true)); // true\n System.out.println(\"==================================\");\n\n // 4th practice OR||\n\n int apples = 10;\n int oranges = 8;\n\n if (apples > 11 || oranges > 10) {\n System.out.println(\"I have enough fruits\");\n } else {\n System.out.println(\"Go to Giant buy fruits\");\n\n }\n System.out.println(\"==================================\");\n\n // 4th practice CitySelector\n\n String city = \"VA\";\n if (city.equals(\"LA\") || city.equals(\"Toronto\")) {\n System.out.println(\"Willing to relocate LA\");\n\n } else {\n System.out.println(\"Not considering Seattle\");\n }\n System.out.println(\"==================================\");\n\n char grade = 'A';\n if (grade == 'A' || grade == 'B' || grade == 'C') {\n System.out.println(\"passed with grade\");\n\n } else if (grade == 'D') {\n System.out.println(\"quality for retake\");\n } else if(grade == 'E') {\n\n } else {\n System.out.println(\"invalid grade\");\n }\n\n // 4 th dealership\n\n double budget = 5000.0;\n String model = (\"Toyota\");\n double carPrice = 4500;\n\n if (carPrice == 4500 && (model.equals(\"Toyota\") || model.equals(\"Honda\"))) {\n\n System.out.println(\"Ready to purchase + \" + model + \", price = \" + carPrice);\n\n }else {\n System.out.println(\"Not interested in model = \" + model + \", price = \" + carPrice);\n }\n\n // ! not Operator\n\n\n System.out.println(\"!true = \" + (!true));\n int age = 5;\n if (!(age < 4)) {\n System.out.println(\"Need to seat in child seat = \" + age);\n }else {\n System.out.println(\"Can seat in adult seat = \" + age);\n }\n\n boolean isSmokingAllowed = false;\n\n if (!isSmokingAllowed) {\n System.out.println(\"Need to exit and smoke outside\");\n }else {\n System.out.println(\"You can smoke\");\n }\n\n String inputPassword = \"abd123\";\n String correctPassword = \"123abc\";\n\n if (!inputPassword.equals(\"abc123\")) {\n\n System.out.println(\"Access granted\");\n }else {\n System.out.println(\"Access denied\" );\n }\n\n\n\n\n }",
"Boolean getCompletelyCorrect();",
"public void sendQuestion() {\n/* 76 */ Village village = getResponder().getCitizenVillage();\n/* 77 */ if (village != null) {\n/* */ \n/* 79 */ this.allies = village.getAllies();\n/* */ \n/* 81 */ Arrays.sort((Object[])this.allies);\n/* 82 */ StringBuilder buf = new StringBuilder();\n/* 83 */ buf.append(getBmlHeader());\n/* 84 */ PvPAlliance pvpAll = PvPAlliance.getPvPAlliance(village.getAllianceNumber());\n/* 85 */ if (pvpAll != null) {\n/* */ \n/* 87 */ buf.append(\"text{text=\\\"You are in the \" + pvpAll.getName() + \".\\\"}\");\n/* 88 */ if (FocusZone.getHotaZone() != null)\n/* */ {\n/* 90 */ buf.append(\"text{text=\\\"\" + pvpAll.getName() + \" has won the Hunt of the Ancients \" + pvpAll\n/* 91 */ .getNumberOfWins() + \" times.\\\"}\");\n/* */ }\n/* */ \n/* */ \n/* 95 */ if (village.getId() == village.getAllianceNumber()) {\n/* */ \n/* 97 */ if (village.getMayor().getId() == getResponder().getWurmId()) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 102 */ buf.append(\"text{text=\\\"\" + village\n/* 103 */ .getName() + \" is the capital in the alliance which means your diplomats are responsible for ousting other settlements. The mayor may change name, disband or set another village as the alliance capital:\\\"};\");\n/* */ \n/* */ \n/* */ \n/* 107 */ buf.append(\"harray{label{text=\\\"Alliance name:\\\"};input{id=\\\"allName\\\"; text=\\\"\" + pvpAll.getName() + \"\\\";maxchars=\\\"20\\\"}}\");\n/* */ \n/* 109 */ buf.append(\"harray{label{text='Alliance capital:'}dropdown{id=\\\"masterVill\\\";options=\\\"\");\n/* */ \n/* 111 */ for (int x = 0; x < this.allies.length; x++)\n/* */ {\n/* 113 */ buf.append(this.allies[x].getName() + \",\");\n/* */ }\n/* */ \n/* 116 */ buf.append(\"No change\");\n/* 117 */ buf.append(\"\\\";default=\\\"\" + this.allies.length + \"\\\"}}\");\n/* 118 */ buf.append(\"harray{checkbox{text=\\\"Check this if you wish to disband this alliance: \\\";id=\\\"disbandAll\\\"; selected=\\\"false\\\"}}\");\n/* */ } \n/* */ \n/* */ \n/* 122 */ for (Village ally : this.allies)\n/* */ {\n/* 124 */ if (ally != village) {\n/* 125 */ buf.append(\"harray{label{text=\\\"Check to break alliance with \" + ally.getName() + \":\\\"}checkbox{id=\\\"break\" + ally\n/* */ \n/* 127 */ .getId() + \"\\\";text=' '}}\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 177 */ buf.append(\"harray{label{text=\\\"Check to break alliance with \" + pvpAll.getName() + \":\\\"}checkbox{id=\\\"break\" + pvpAll\n/* */ \n/* 179 */ .getId() + \"\\\";text=' '}}\");\n/* */ } \n/* 181 */ buf.append(\"text{type=\\\"bold\\\";text=\\\"Alliance message of the day:\\\"}\");\n/* 182 */ buf.append(\"input{maxchars=\\\"200\\\";id=\\\"motd\\\";text=\\\"\" + pvpAll.getMotd() + \"\\\"}\");\n/* */ } \n/* 184 */ if (this.allies.length == 0)\n/* 185 */ buf.append(\"text{text='You have no allies.'}\"); \n/* 186 */ buf.append(\"text{text=''}\");\n/* 187 */ buf.append(\"text{text=''}\");\n/* 188 */ if (village.warDeclarations != null) {\n/* */ \n/* 190 */ buf.append(\"text{type='bold'; text='The current village war declarations:' }\");\n/* 191 */ for (WarDeclaration declaration : village.warDeclarations.values()) {\n/* */ \n/* 193 */ if (declaration.declarer == village) {\n/* */ \n/* 195 */ if (Servers.isThisAChaosServer() && \n/* 196 */ System.currentTimeMillis() - declaration.time > 86400000L) {\n/* */ \n/* 198 */ declaration.accept();\n/* 199 */ buf.append(\"harray{label{text=\\\"\" + declaration.receiver.getName() + \" has now automatically accepted your declaration.\\\"}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* 203 */ buf.append(\"harray{label{text=\\\"Check to withdraw declaration to \" + declaration.receiver.getName() + \":\\\"}checkbox{id'decl\" + declaration.receiver\n/* 204 */ .getId() + \"';text=' '}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 209 */ if (Servers.isThisAChaosServer()) {\n/* */ \n/* 211 */ if (System.currentTimeMillis() - declaration.time < 86400000L) {\n/* */ \n/* 213 */ buf.append(\"harray{label{text=\\\"You have \" + \n/* 214 */ Server.getTimeFor(System.currentTimeMillis() - declaration.time) + \" until you automatically accept the declaration of war.\\\"}}\");\n/* */ \n/* */ \n/* 217 */ buf.append(\"harray{label{text=\\\"Check to accept declaration from \" + declaration.declarer\n/* 218 */ .getName() + \":\\\"}checkbox{id='recv\" + declaration.declarer\n/* */ \n/* 220 */ .getId() + \"';text=' '}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* 224 */ declaration.accept();\n/* 225 */ buf.append(\"harray{label{text=\\\"\" + declaration.receiver.getName() + \" has now automatically accepted the war declaration from \" + declaration.declarer\n/* */ \n/* 227 */ .getName() + \".\\\"}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 232 */ buf.append(\"harray{label{text=\\\"Check to accept declaration from \" + declaration.declarer.getName() + \":\\\"}checkbox{id='recv\" + declaration.declarer\n/* */ \n/* 234 */ .getId() + \"';text=' '}}\");\n/* */ } \n/* */ \n/* 237 */ buf.append(\"text{text=''}\");\n/* 238 */ buf.append(\"text{text=''}\");\n/* */ }\n/* 240 */ else if (Servers.localServer.PVPSERVER) {\n/* 241 */ buf.append(\"text{text='You have no pending war declarations.'}\");\n/* 242 */ } Village[] enemies = village.getEnemies();\n/* 243 */ if (enemies.length > 0) {\n/* */ \n/* 245 */ buf.append(\"harray{text{type='bold'; text='We are at war with: '}text{text=\\\" \");\n/* */ \n/* 247 */ Arrays.sort((Object[])enemies);\n/* */ \n/* 249 */ for (int x = 0; x < enemies.length; x++) {\n/* */ \n/* 251 */ if (x == enemies.length - 1) {\n/* 252 */ buf.append(enemies[x].getName());\n/* 253 */ } else if (x == enemies.length - 2) {\n/* 254 */ buf.append(enemies[x].getName() + \" and \");\n/* */ } else {\n/* 256 */ buf.append(enemies[x].getName() + \", \");\n/* */ } \n/* 258 */ } buf.append(\".\\\"}}\");\n/* */ }\n/* 260 */ else if (Servers.localServer.PVPSERVER) {\n/* 261 */ buf.append(\"text{text='You are not at war with any particular settlement.'}\");\n/* 262 */ } buf.append(createAnswerButton2());\n/* 263 */ getResponder().getCommunicator().sendBml(300, 300, true, true, buf.toString(), 200, 200, 200, this.title);\n/* */ } \n/* */ }",
"public void displayCorrectResponse(int x) {\n\t\t\t\t\tswitch (x) {\n\t\t case 1: System.out.println(\"Very Good!\");;\n\t\t break;\n\t\t case 2: System.out.println(\"Excellent!\");;\n\t\t break;\n\t\t case 3: System.out.println(\"Nice Work!\");;\n\t\t break;\n\t\t case 0: System.out.println(\"Keep up the good work!\");\n\t\t break;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\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}",
"private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }",
"public String soovitus(){\n double BMI = kehamassiindeks();\n String soovitus = \"\";\n if ( BMI < 18.6){\n\n soovitus=\"Tarbi rohkem toitu,\\noled alakaalus.\";\n }\n if ( BMI > 25){\n\n soovitus=\"Pead rohkem liigutama,\\noled natuke ülekaalus\";\n }\n if (BMI > 30){\n\n soovitus=\"Tee trenni või tarbi vähem toitu,\\nsest oled üsna ülekaalus.\";\n }\n if( BMI > 18.5 & BMI <= 25 ){\n\n soovitus=\"Oled normaalkaalus.\";\n }\n return soovitus;\n }",
"static boolean yesNoQuestion(String prompt){\r\n while(true){\r\n System.out.println(prompt);\r\n String input = Console.in.readWord();\r\n if (input.equals(\"yes\")) return true;\r\n else if (input.equals(\"no\")) return false;\r\n }\r\n }",
"public static void main(String args[]) {\n boolean hasSATscore = true;\n boolean hasHighSchoolTranscript = true;\n boolean isInternational=false;\n boolean hasTOFELscore=false;\n\n /*\n * logical_step2: Check if the applicant is eligible to apply to the university\n * logical_step_details: the applicant must have a SAT score, a high school transcript and must have TOEFL score\n * if is an international student.\n * question_1: What does the following block of code do?\n * answer 1: Check if the applicant is eligible to apply to the university\n * question_2: What is the data type of the variable isElig?\n * answer 2: isElig is a Boolean data type\n * question_3: What is the value of: !isInternational. (value assigned above)\n * answer_3: the value of !isInternational is true\n * question_4: What is the output the following block of code?\n * answer_4: the code displays the following statement \"You eligibility requirement has been evaluated to :true\"\n */\n\n /*\n * stm_comment: isElig contains result of logical operation between the variables. logical and (&&), logical or(||) and not operator is used \n * question_1: Please explain how the value of isElig evaluated.\n * answer_1: isElig contains result of logical operation between the variables\n * question_2: Please state the operators used in the code block below.\n * answer_2: logical and (&&), logical or(||) and not operator is used .\n *\n */\n\n boolean isElig = hasSATscore && hasHighSchoolTranscript && (!isInternational || (isInternational && hasTOFELscore));\n System.out.println(\" Your eligibility requirement has been evaluated to :\" +isElig );\n\n\n }",
"public String winCondition() {\r\n\t\tif (hasOneOfEach()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught one of each type of Pokémon!\";\r\n\t\t}\r\n\t\tif (hasFiveOfTwo()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught two each of five types of Pokémon!\";\r\n\t\t}\r\n\t\tif (hasTwoOfFive()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught five each of two types Pokémon!\";\r\n\t\t}\r\n\t\treturn \"You did not win yet! Keep trying!\";\r\n\t}",
"public static void main(String[] args){\r\n String[] prompts = {\"Do you want to take a survey?\",\r\n \"Do you like yes or no questions?\",\r\n \"Will you continue answering these?\",\r\n \"Are you some kind of robot?\",\r\n \"Do you have special powers?\",\r\n \"Do you use them for good or for awesome?\",\r\n \"Will you use them on me?\"};\r\n int i;\r\n for (i = 0; i <= QUESTIONS && yesNoQuestion(prompts[i]); i++); \r\n if (i < 3) System.out.println(\"You are lame.\");\r\n else System.out.println(\"You are mildly cool.\");\r\n if (i >= 4) System.out.println(\"Actually, you're a cool robot.\");\r\n if (i >= 5) System.out.println(\"...with cool powers.\");\r\n if (i >= 6) System.out.println(\"Please use your powers on me!\");\r\n if (i >= 7) System.out.println(\"Ooh, that feels good.\");\r\n }",
"boolean hasEyes();",
"public boolean doItAgain() {\r\n\r\n\t\tboolean doAgain = true;\r\n\t\tString userRespons;\r\n\t\tchar res;\r\n\r\n\t\tScanner in = new Scanner(System.in);\r\n\r\n\t\tSystem.out.println(\"Do you want to add another Invoice ?--> Pres Y for 'Yes' and N for 'No'. \");\r\n\t\tuserRespons = in.nextLine();\r\n\t\tres = userRespons.charAt(0);\r\n\r\n\t\tswitch (res) {\r\n\t\tcase 'Y':\r\n\t\tcase 'y':\r\n\t\t\tdoAgain = true;\r\n\t\t\tnumberOfBills++;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 'N':\r\n\t\tcase 'n':\r\n\t\t\tdoAgain = false;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tif (doAgain == true) {\r\n\t\t\tif ((numberOfBills - counter) >= counter) {\r\n\t\t\t\tdoAgain = false;\r\n\t\t\t\tnumberOfBills--;\r\n\t\t\t\tSystem.out.println(\"You have reached to the max!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (doAgain);\r\n\t}",
"public void compare(Application app, String userDecision){\n int intDecision = -1;\n String decision = userDecision.toLowerCase();\n\n if (decision.contains(\"harvard\")){ // decision making will be replaced by BUTTONS in processing\n intDecision = 1;\n }\n if (decision.contains(\"greendale\")){\n intDecision = 0;\n }\n if (decision.contains(\"mit\")){\n intDecision = 2;\n }\n\n //catches bad user input in which they try to submit multiple colleges to cheat the system... nice try.\n if ((decision.contains(\"harvard\") && decision.contains(\"mit\")) ||\n (decision.contains(\"harvard\") && decision.contains(\"greendale\")) ||\n (decision.contains(\"mit\") && decision.contains(\"greendale\")))\n {\n intDecision = -1;\n }\n\n if (intDecision == -1){ // catches bad user input, technically unnecessary but i like dissing people\n System.out.println(\"How can you call yourself an admissions officer when you can't even choose correctly?\");\n errorMade(); // runs failure\n }else if (intDecision == app.getCollege()){\n System.out.println(printAcceptance(intDecision));\n }\n else{\n errorMade();\n }\n }",
"public boolean yesTo(String prompt) {\r\n System.out.print(prompt + \" (y/n)? \");\r\n String response = console.nextLine().trim().toLowerCase();\r\n while (!response.equals(\"y\") && !response.equals(\"n\")) {\r\n System.out.println(\"Please answer y or n.\");\r\n System.out.print(prompt + \" (y/n)? \");\r\n response = console.nextLine().trim().toLowerCase();\r\n }\r\n return response.equals(\"y\");\r\n }",
"public boolean yesTo(String prompt) {\r\n System.out.print(prompt + \" (y/n)? \");\r\n String response = console.nextLine().trim().toLowerCase();\r\n while (!response.equals(\"y\") && !response.equals(\"n\")) {\r\n System.out.println(\"Please answer y or n.\");\r\n System.out.print(prompt + \" (y/n)? \");\r\n response = console.nextLine().trim().toLowerCase();\r\n }\r\n return response.equals(\"y\");\r\n }",
"boolean isGoodQuestion(){\n\t\treturn goodQ;\n\t}",
"boolean hasHasAlcoholBloodContent();",
"public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int t = Integer.parseInt(s.nextLine());\n for(int i=1;i<=t;i++){\n int n = Integer.parseInt(s.nextLine());\n Set<String> a = new HashSet<>();\n\n for(int j=0;j<n;j++) {\n String str = s.nextLine();\n if(str.equals(\"easy-medium\"))\n str=\"medium\";\n else if(str.equals(\"medium-hard\"))\n str=\"hard\";\n a.add(str);\n }\n System.out.println(a.size()<5?\"No\":\"Yes\");\n /*int a1=0,a2=0,a3=0,a4=0,a5=0;\n for(int k=0;k<n;k++){\n if(a.contains(\"cakewalk\"))\n a1++;\n if(a.contains(\"simple\"))\n a2++;\n if(a[k].equals(\"easy\"))\n a3++;\n if(a[k].equals(\"easy-medium\") || a[k].equals(\"medium\"))\n a4++;\n if(a[k].equals(\"medium-hard\") || a[k].equals(\"hard\"))\n a5++;\n }\n if(a1==1&&a2==1&&a3==1&&a4==1&&a5==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n*/\n }\n }",
"public void whereIsTheSail()\n {\n // code here\n if(sail) // sail is ture/up\n System.out.println(name + \" sail is up.\\n\");\n else // sale is false/down\n System.out.println(name + \" sail is down.\\n\");\n }",
"int getWrongAnswers();",
"static boolean getMauled(){\n\t\t\tif (Person.player.inventory.contains(Item.repellent)) //if you have the goose repellent...\n\t\t\t\treturn (MainFile.getRandomNumber(240) == 12); //drastically lowers your chance of being mauled.\n\t\t\treturn (MainFile.getRandomNumber(20) == 12);//generates a random number for if you don't have it, and if it's 12 you get mauled\n\t\t}",
"public static boolean isResponseYes(String userResponse) {\n boolean result = false;\n if (null != userResponse) {\n char firstCharacter = userResponse.charAt(0);\n result = (firstCharacter == 'y' || firstCharacter == 'Y');\n }\n\n return result;\n }",
"public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery terminals corroded? \");\r\n setAnswer2(in.nextLine());\r\n if(getAnswer2().equals(YES)){\r\n printString(\"Clean the terminals and try again\");\r\n }\r\n else {\r\n printString(\"The battery may be damaged.\\nReplace the cables and try again\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.print(\"Does the car make a slicking noise? \");\r\n setAnswer3(in.nextLine());\r\n if(getAnswer3().equals(YES)) {\r\n printString(\"Replace the battery\");\r\n }\r\n else {\r\n System.out.print(\"Does the car crank up but fail to start? \");\r\n setAnswer4(in.nextLine());\r\n if(getAnswer4().equals(YES)) {\r\n printString(\"Check spark plug connections.\");\r\n }\r\n else{\r\n System.out.print(\"Does the engine start and then die? \");\r\n setAnswer5(in.nextLine());\r\n if(getAnswer5().equals(YES)){\r\n System.out.print(\"Does your care have fuel injection? \");\r\n setAnswer6(in.nextLine());\r\n if(getAnswer6().equals(YES)){\r\n printString(\"Get it in for service\");\r\n }\r\n else{\r\n printString(\"Check to insure the chock is opening and closing\");\r\n }\r\n }\r\n else {\r\n printString(\"This should be impossible\");\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }",
"public static boolean getRepeat(){\r\n boolean repeat = true, repeatLoop = true;\r\n String yon = \"\";//yes or no\r\n do{\r\n System.out.println(\"Please answer yes or no(y/n) if you want to repeat!\\n\");\r\n yon = sc.nextLine();\r\n yon = yon.trim(); \r\n if(yon.equalsIgnoreCase(\"y\")){\r\n repeat = true;\r\n repeatLoop = false;\r\n }\r\n else if(yon.equalsIgnoreCase(\"yes\")){\r\n repeat = true;\r\n repeatLoop = false;\r\n }\r\n else if(yon.equalsIgnoreCase(\"n\")){\r\n repeat = false;\r\n repeatLoop = false;\r\n }\r\n else if(yon.equalsIgnoreCase(\"no\")){\r\n repeat = false;\r\n repeatLoop = false;\r\n }\r\n else{\r\n System.out.println(\"You didn't enter yes(y) or no(n)\");\r\n }\r\n }while(repeatLoop);\r\n sc.nextLine();\r\n return repeat;\r\n }",
"boolean isPulsing();",
"boolean hasSuit();",
"public boolean validateGeslacht(){\n String geslacht = getGeslacht();\n String toernooiSoort = getToernooiSoort();\n\n if(!geslacht.equals(\"F\") && toernooiSoort.equals(\"PinkRibbon\")){\n return false;\n }\n else if(geslacht.equals(\"poepieScheetje\") || toernooiSoort.equals(\"askjeBlap\")){\n return true;\n }\n else{return true;}\n }",
"boolean hasSingleBet();",
"boolean hasRecommendation();",
"boolean hasReqardTypeThirty();",
"private boolean checkCaTegoryLegitness(int[] dice, int category) {\n\t\t// our boolean that is false at the beginning.\n\t\tboolean legitnessStatus = false;\n\t\t// we don't need to check anything for one to six or for check so\n\t\t// boolean\n\t\t// will be true. we don't need to check for one to six because if player\n\t\t// chose one to six we score++ every time we get that number\n\t\t// in the dice. and if there is no that number than the score\n\t\t// automatically will be 0.\n\t\tif (category >= 1 && category <= 6 || category == CHANCE) {\n\t\t\tlegitnessStatus = true;\n\t\t} else {\n\t\t\t// but if player chose something other than one to six or chance we\n\t\t\t// make 6 array lists.\n\t\t\tArrayList<Integer> ones = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> twos = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> threes = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fours = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> fives = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> sixes = new ArrayList<Integer>();\n\t\t\t// after that we get ones, twos and etc. until six from the dice\n\t\t\t// numbers we randomly got and add that numbers in the array it\n\t\t\t// belongs. for example if the integer on first dice is 5 we add 1\n\t\t\t// in array list called fives. finally, arrays size will give us how\n\t\t\t// many that number we have in our dices.\n\t\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\t\tif (dice[i] == 1) {\n\t\t\t\t\tones.add(1);\n\t\t\t\t} else if (dice[i] == 2) {\n\t\t\t\t\ttwos.add(1);\n\t\t\t\t} else if (dice[i] == 3) {\n\t\t\t\t\tthrees.add(1);\n\t\t\t\t} else if (dice[i] == 4) {\n\t\t\t\t\tfours.add(1);\n\t\t\t\t} else if (dice[i] == 5) {\n\t\t\t\t\tfives.add(1);\n\t\t\t\t} else if (dice[i] == 6) {\n\t\t\t\t\tsixes.add(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// after we know how many ones, twos etc. we have its easy to check.\n\t\t\t// for THREE_OF_A_KIND if there is any of the arrays that size is\n\t\t\t// equal or more than 3 legitnessStatus should get true.\n\t\t\tif (category == THREE_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 3 || twos.size() >= 3 || threes.size() >= 3\n\t\t\t\t\t\t|| fours.size() >= 3 || fives.size() >= 3\n\t\t\t\t\t\t|| sixes.size() >= 3) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FOUR_OF_A_KIND if there is any of the arrays that size is\n\t\t\t\t// equal or more than 4 legitnessStatus should get true.\n\t\t\t} else if (category == FOUR_OF_A_KIND) {\n\t\t\t\tif (ones.size() >= 4 || twos.size() >= 4 || threes.size() >= 4\n\t\t\t\t\t\t|| fours.size() >= 4 || fives.size() >= 4\n\t\t\t\t\t\t|| sixes.size() >= 4) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for FULL_HOUSE we want any of our array list size to be equal\n\t\t\t\t// to three and after that we have that we want one more array\n\t\t\t\t// to be\n\t\t\t\t// equal to two. that means that we will have three similar dice\n\t\t\t\t// and two more similar dice.\n\t\t\t} else if (category == FULL_HOUSE) {\n\t\t\t\tif (ones.size() == 3 || twos.size() == 3 || threes.size() == 3\n\t\t\t\t\t\t|| fours.size() == 3 || fives.size() == 3\n\t\t\t\t\t\t|| sixes.size() == 3) {\n\t\t\t\t\tif (ones.size() == 2 || twos.size() == 2\n\t\t\t\t\t\t\t|| threes.size() == 2 || fours.size() == 2\n\t\t\t\t\t\t\t|| fives.size() == 2 || sixes.size() == 2) {\n\t\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// there is only 3 way we can get SMALL_STRAIGHT. these are if\n\t\t\t\t// dices show: 1,2,3,4 or 2,3,4,5, or 3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one. and so on for other two\n\t\t\t\t// ways.\n\t\t\t} else if (category == SMALL_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (threes.size() == 1 && fours.size() == 1\n\t\t\t\t\t\t&& fives.size() == 1 && sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// for LARGE_STRAIGHT there is only 2 ways. these are:1,2,3,4,5\n\t\t\t\t// or 2,3,4,5,6. for first one it\n\t\t\t\t// means we need our first array size to be one AND our second\n\t\t\t\t// array size to be one AND our third array size to be one AND\n\t\t\t\t// out fourth array list size to be one AND our fifth array list\n\t\t\t\t// size to be one. similar for second way starting from second\n\t\t\t\t// array list and going through to last sixth array list.\n\t\t\t} else if (category == LARGE_STRAIGHT) {\n\t\t\t\tif (ones.size() == 1 && twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t} else if (twos.size() == 1 && threes.size() == 1\n\t\t\t\t\t\t&& fours.size() == 1 && fives.size() == 1\n\t\t\t\t\t\t&& sixes.size() == 1) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t\t// and for YAHTZEE we want any of our array list size to be\n\t\t\t\t// five. it will mean that all dices show same thing. because if\n\t\t\t\t// for example array list ones size is five it means that we\n\t\t\t\t// added 1 in that array 5 times and it means that we see 5 same\n\t\t\t\t// number on all dices.\n\t\t\t} else if (category == YAHTZEE) {\n\t\t\t\tif (ones.size() == 5 || twos.size() == 5 || threes.size() == 5\n\t\t\t\t\t\t|| fours.size() == 5 || fives.size() == 5\n\t\t\t\t\t\t|| sixes.size() == 5) {\n\t\t\t\t\tlegitnessStatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finally it will return boolean of true or false.\n\t\treturn legitnessStatus;\n\t}",
"public boolean yesNoQuestion(String message) {\n System.out.println(message + \" y/n\");\n String answer = scanner.nextLine();\n while (!(answer.equals(\"y\") || (answer.equals(\"n\")))) {\n System.out.println(\"Type 'y' or 'n'\");\n answer = scanner.nextLine();\n }\n return answer.equals(\"y\");\n }",
"public void displayInorrectResponse(int x) {\n\t\t\t\t\tswitch (x) {\n\t\t case 1: System.out.println(\"No. Please try again.\");;\n\t\t break;\n\t\t case 2: System.out.println(\"Wrong. Try once more.\");;\n\t\t break;\n\t\t case 3: System.out.println(\"Donít give up!\");\n\t\t break;\n\t\t case 0: System.out.println(\"No. Keep trying.\");\n\t\t break;\n\t\t\t\t}}",
"boolean isMet();",
"private static void printAnswer(boolean result)\n {\n //Check if all the hils could be connected by the tunnels\n if (result)\n {\n //Print the cost off connecting all the hills\n System.out.println(\"Campus #\" + c + \": \" + totalCost);\n }\n else\n {\n //Have a snarky remark for the ants, who can not connect all their hills\n System.out.println(\"Campus #\" + c + \": I'm a programmer, not a miracle worker!\");\n }\n }",
"public void checkAllAnswers(View view) {\n finalScore = 0;\n\n boolean answerQuestion1 = false;\n boolean check1Quest1 = checkSingleCheckBox(R.id.jupiter_checkbox_view);\n boolean check2Quest1 = checkSingleCheckBox(R.id.mars_checkbox_view);\n boolean check3Quest1 = checkSingleCheckBox(R.id.earth_checkbox_view);\n boolean check4Quest1 = checkSingleCheckBox(R.id.venus_checkbox_view);\n\n if (!check1Quest1 && !check2Quest1 && !check3Quest1 && check4Quest1) {\n finalScore = scoreCounter(finalScore);\n answerQuestion1 = true;\n }\n\n boolean answerQuestion2 = false;\n boolean check1Quest2 = checkSingleCheckBox(R.id.nasa_checkbox_view);\n boolean check2Quest2 = checkSingleCheckBox(R.id.spacex_checkbox_view);\n boolean check3Quest2 = checkSingleCheckBox(R.id.nvidia_checkbox_view);\n boolean check4Quest2 = checkSingleCheckBox(R.id.astrotech_checkbox_view);\n\n if (check1Quest2 && check2Quest2 && !check3Quest2 && check4Quest2) {\n finalScore = scoreCounter(finalScore);\n answerQuestion2 = true;\n }\n\n boolean answerQuestion3 = false;\n boolean check1Quest3 = checkSingleCheckBox(R.id.moon_checkbox_view);\n boolean check2Quest3 = checkSingleCheckBox(R.id.sun_checkbox_view);\n boolean check3Quest3 = checkSingleCheckBox(R.id.comet_checkbox_view);\n boolean check4Quest3 = checkSingleCheckBox(R.id.asteroid_checkbox_view);\n\n if (check1Quest3 && !check2Quest3 && !check3Quest3 && !check4Quest3) {\n finalScore = scoreCounter(finalScore);\n answerQuestion3 = true;\n }\n\n boolean answerQuestion4 = false;\n boolean check1Quest4 = checkSingleCheckBox(R.id.yes_checkbox_view);\n boolean check2Quest4 = checkSingleCheckBox(R.id.no_checkbox_view);\n\n if (check1Quest4 && !check2Quest4) {\n finalScore = scoreCounter(finalScore);\n answerQuestion4 = true;\n }\n\n String question1Summary = createQuestionSummary(answerQuestion1, 1, getResources().getString(R.string.venus));\n String question2Summary = createQuestionSummary(answerQuestion2, 2, getResources().getString(R.string.nasa_spacex_astrotech));\n String question3Summary = createQuestionSummary(answerQuestion3, 3, getResources().getString(R.string.moon));\n String question4Summary = createQuestionSummary(answerQuestion4, 4, getResources().getString(R.string.yes));\n\n String quizSummary = createQuizSummary(finalScore);\n\n displayQuestionSummary(question1Summary, answerQuestion1, R.id.question1_summary);\n displayQuestionSummary(question2Summary, answerQuestion2, R.id.question2_summary);\n displayQuestionSummary(question3Summary, answerQuestion3, R.id.question3_summary);\n displayQuestionSummary(question4Summary, answerQuestion4, R.id.question4_summary);\n displayQuizSummary(quizSummary);\n\n }",
"public void printAndCheck (ArrayList<String> terms, ArrayList<String> definitions, Scanner console, Random rand, Student user) {\n \r\n\r\n int numTerms = rand.nextInt(terms.size());\r\n int numDefs = rand.nextInt(definitions.size()); \r\n System.out.println(\"Choose \\\"true\\\", \\\"false\\\", \\\"t\\\", \\\"f\\\", \\\"yes\\\", \\\"no\\\", \\\"y\\\", or \\\"n\\\"\");\r\n System.out.println(terms.get(numTerms) + \" = \" + definitions.get(numDefs) + \"?\"); //random pairing\r\n System.out.println();\r\n boolean correctAnswer = (terms.indexOf(terms.get(numTerms)) == definitions.indexOf(definitions.get(numDefs))); //the correct answer is a boolean, if the index of the term is the same as the index of the definition\r\n String response = console.next();\r\n if (response.equalsIgnoreCase(\"true\") || response.equalsIgnoreCase(\"false\") || //if the user gives a valid answer\r\n response.equalsIgnoreCase(\"t\") || response.equalsIgnoreCase(\"f\") || response.equalsIgnoreCase(\"y\") \r\n || response.equalsIgnoreCase(\"n\") || response.equalsIgnoreCase(\"yes\") || response.equalsIgnoreCase(\"no\")) {\r\n \r\n \t boolean userAnswer = (response.equalsIgnoreCase(\"true\") || response.equalsIgnoreCase(\"t\") \r\n || response.equalsIgnoreCase(\"y\") || response.equalsIgnoreCase(\"yes\"));\r\n \r\n if (userAnswer == correctAnswer) {\r\n System.out.println(\"You got it right! :)\");\r\n user.incrNumCorrect(); //for the stats method\r\n user.incrTotal(1); //for the stats method\r\n }else {\r\n System.out.println(\"You got it wrong :( \");\r\n user.incrTotal(1);\r\n user.incNumIncorrect();\r\n }\r\n \r\n }else{\r\n System.out.println(\"Always remember to only choose\\n\\\"true\\\", \\\"false\\\", \\\"t\\\", \\\"f\\\", \\\"yes\\\", \\\"no\\\", \\\"y\\\", or \\\"n\\\"!\"); //the user's response will be considered false if they do not type \"true\" or \"false\"\r\n user.incrTotal(1);\r\n }\r\n\r\n System.out.println();\r\n }",
"boolean hasBonusHP();",
"public void checkIfCorrect(Note answer){\n Note tmpNote = answer;\n Tone tmpTone = tmpNote.getTone();\n boolean isSharp = tmpNote.isSharp();\n String checkCorrect = \"\";\n\n //Normal Keys\n if(tmpTone.equals(Tone.A) && !isSharp)\n checkCorrect = \"A\";\n else if(tmpTone.equals(Tone.B) && !isSharp)\n checkCorrect = \"B\";\n else if(tmpTone.equals(Tone.C) && !isSharp)\n checkCorrect = \"C\";\n else if(tmpTone.equals(Tone.D) && !isSharp)\n checkCorrect = \"D\";\n else if(tmpTone.equals(Tone.E) && !isSharp)\n checkCorrect = \"E\";\n else if(tmpTone.equals(Tone.F) && !isSharp)\n checkCorrect = \"F\";\n else if(tmpTone.equals(Tone.G) && !isSharp)\n checkCorrect = \"G\";\n\n //Sharp Keys\n else if(tmpTone.equals(Tone.A) && isSharp)\n checkCorrect = \"A#\";\n else if(tmpTone.equals(Tone.C) && isSharp)\n checkCorrect = \"C#\";\n else if(tmpTone.equals(Tone.D) && isSharp)\n checkCorrect = \"D#\";\n else if(tmpTone.equals(Tone.F) && isSharp)\n checkCorrect = \"F#\";\n else if(tmpTone.equals(Tone.G) && isSharp)\n checkCorrect = \"G#\";\n\n checkCorrectHelper(checkCorrect);\n\n }",
"public boolean isLoyal()\r\n \t{\r\n \t\treturn loyalty > LOYAL_STEP;\r\n \t}",
"@Test\n public void should_ReturnTrue_When_DietRecommended(){\n double weight = 100.0;\n double height = 1.70;\n //when\n boolean recommended = BMICalculator.isDietRecommended(weight,height);\n //then\n assertTrue(recommended);\n }",
"public String sayYes(){\n return \"Yes\";\n }",
"public static void main(String[] args) {\n \n\t\tScanner scan=new Scanner(System.in) ;\n\t\t\tSystem.out.println(\"Are you thirsty?\");\n\t\t\tboolean bl=scan.nextBoolean();\n\t\t\tSystem.out.println(\"Are you sleepy?\");\n\t\t\tboolean sl=scan.nextBoolean();\n\t\t String drink1 =\"Coffee\";\n\t\t String drink2=\"Water\";\n\t\t String drink3=\"Tea\";\n\t\t String k=\"Nothing\";\n\t\t if(bl==true && sl==false) {\n\t\t\t System.out.println(\"Looks like you need \" + drink2);\n\t\t }else if(bl==true && sl==true) {\n\t\t\t System.out.println(\"Looks like you need \" +drink1);\n\t\t }else if(bl==false && sl==true) {\n\t\t\t System.out.println(\"Looks like you need \"+ drink3);\n\t\t }else {\n\t\t\t System.out.println(\"Looks like you need \" +k);\n\t\t }\n\t\t}",
"public static void main(String[] args) {\nint age=21 ;char gender='f';\nif(age>=21 && gender=='m')\n{\n\tSystem.out.println(\"eligble for marriage\");\n}\n\n else if (age>=18 && gender=='f') {\nSystem.out.println(\"eligble for marriage\");\n}\nelse {\n\t{System.out.println(\"not eligble for marrage\");\n}\n\t\t\n\t}\n\n\n}",
"public static boolean getAndCheckStudentAnswer(int hardness) {\n\t\t\t\tint number1 = (int)(Math.random()*hardness);\n\t\t\t\tint number2 = (int)(Math.random()*hardness);\n\t\t\t\tSystem.out.print(\"Add \" + number1 + \" and \" + number2 +\": \");\n\t\t\t\t//Scanner input = new Scanner(System.in);\n\t\t\t\t//int studentAnswer = input.nextInt();\n\t\t\t\tScanner get = new Scanner(System.in);\n\t\t\t\tint studentAnswer = get.nextInt();\n\t\t\t\tif(studentAnswer == (number1 + number2)){\n\t\t\t\t\tSystem.out.print(\"Correct. \");\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Nice try, but the correct answer was \" \n\t\t\t\t\t\t\t+ (number1 + number2) + \".\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}",
"public static boolean isSure() {\n Scanner in = new Scanner(System.in);\n in = new Scanner(System.in);\n String danger = \"This action might result in a loss of data,\";\n danger += \" do you want to continue? (yes/no)\";\n System.out.println(danger);\n String answer = in.nextLine();\n if (answer.equals(\"no\")) {\n return false;\n }\n return true;\n }",
"public boolean promptYesNo(String str)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}",
"public abstract boolean isSatisfied();",
"public static void main(String[] args) {\n\n Scanner key = new Scanner(System.in);\n System.out.println(\"Enter yes or no\");\n String answer = key.next();\n\n boolean valid = answer.equalsIgnoreCase(\"yes\") || answer.equalsIgnoreCase(\"no\");\n\n int i = 1;\n while (!valid) {\n System.out.println(\"re=enter\");\n answer = key.next();\n i++;\n\n if (i == 3) {\n answer = answer.equalsIgnoreCase(\"yes\") ? \"you entered yes\" : \"you entered no\";\n if (!valid) {\n System.out.println(\"you have entered wrong answer 3 times. Try again later\");\n break;\n }\n }\n\n\n }\n if (answer.equalsIgnoreCase(\"yes\")) {\n System.out.println(\"you entered yes\");\n }\n if (answer.equalsIgnoreCase(\"no\")) {\n System.out.println(\"you entered no\");\n }\n\n\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Do you want to try your luck with the slot machine? Type 1 for YES or 2 for NO:\");\n int answer = sc.nextInt();\n\n\n //Create If/Else based on Yes/No response\n //Create For loop to generate numbers\n //Convert int affirmation to string value\n\n if (answer == 1)\n {\n for (int i = 0; i <= 2; i++)\n {\n double j = (Math.random() *10);\n int k = (int) j;\n System.out.print(\"[\"+k+\"]\");\n }\n }\n\n else\n {\n System.out.println(\"Maybe next time!\");\n\n }\n }",
"boolean checkPsychicEnergy(AbstractPsychicPokemon pokemon);",
"private void haveFun() {\n\t\tint action = inputPrompt.funActivities(money);\r\n\t\tthis.money -= action;\r\n\t\t//has better effect depending on how much money you have spent\r\n\t\tthis.mentalHealth += FUNHEALTH + action;\r\n\t\tdailyTime--;\r\n\t\tinputPrompt.mainInfo(energy, physHealth, mentalHealth, money);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter first word\");\n String s1 = sc.nextLine();\n System.out.println(\"Enter second word\");\n String s2 = sc.nextLine();\n System.out.println(s1 + s2);\n\n // Problem 2: Empty String\n // Prompt the user and display true if the string is empty, otherwise display false\n System.out.println(\"Enter a word\");\n String s3 = sc.nextLine();\n boolean b1 = s3.isEmpty();\n System.out.println(b1);\n\n // if we have to display the text message then use if-else statement\n// Scanner sc = new Scanner(System.in);\n// System.out.println(\"Enter a word\");\n// String s3 = sc.nextLine();\n// if(s3.isEmpty()){\n// System.out.println(\"String is empty\");\n// }else{\n// System.out.println(\"String is not empty\");\n// }\n\n // Problem 3: Even Length\n // Prompt the user and display true if the string has an even number of characters, otherwise display false\n System.out.println(\"Enter a word\");\n String s4 = sc.nextLine();\n int x = s4.length();\n\n if(x % 2 ==0) {\n System.out.println(true);\n }else{\n System.out.println(false);\n }\n\n // Problem 4: GPA to Letter Grade\n // Prompt the user to enter their gpa and display their letter grade. Use the conversion found below\n // (https://binary-translator.co/upload/cache/upload/imgs/how-to-use-free-gpa-calculator--m256x190.jpg)\n System.out.println(\"Enter your GPA\");\n double gpa = sc.nextDouble();\n if(gpa>=3.7){\n System.out.println(\"Your grade is A\");\n }\n else if(gpa>=2.7){\n System.out.println(\"Your grade is B\");\n }\n else if (gpa>=1.7){\n System.out.println(\"Your grade is C\");\n }\n else if(gpa>=0.7){\n System.out.println(\"Your grade is D\");\n }\n else{\n System.out.println(\"Your grade is F\");\n }\n\n // Problem 5: Calculator\n // Prompt the user for two numbers and an operation, generate the math problem, and display.\n // Ex. num1 = 4, num2 = 2, operator = \"-\", then output should be 4-2=?\n System.out.println(\"Enter num1\");\n float num1 = sc.nextFloat();\n System.out.println(\"Enter num2\");\n float num2 = sc.nextFloat();\n System.out.println(\"Enter the arithmetic operator +, -, *, /, %\");\n String n = sc.next();\n switch (n) {\n case \"+\":\n float add;\n add = num1 + num2;\n System.out.println(num1 + \" + \" + num2 + \" = \" + add);\n break;\n\n case \"-\":\n float sub;\n sub = num1 - num2;\n System.out.println(num1 + \" - \" + num2 + \" = \" + sub);\n break;\n\n case \"*\":\n float multiply;\n multiply = num1 * num2;\n System.out.println(num1 + \" * \" + num2 + \" = \" + multiply);\n break;\n\n case \"/\":\n float div;\n div = (float) num1 / num2;\n System.out.println(num1 + \" / \" + num2 + \" = \" + div);\n break;\n\n case \"%\":\n float mod;\n mod = num1 % num2;\n System.out.println(num1 + \" % \" + num2 + \" = \" + mod);\n break;\n\n case \"default\":\n System.exit(0);\n }\n\n // Problem 6: Starts with a Vowel\n // Prompt the user to enter a word and display true or false if the word they entered starts with a vowel\n System.out.println(\"Enter a word\");\n char ch;\n ch = sc.next().charAt(0);\n if(ch=='a' || ch=='A' || ch=='e' || ch=='E' ||\n ch=='i' || ch=='I' || ch=='o' || ch=='O' ||\n ch=='u' || ch=='U')\n {\n System.out.print(\"This is a Vowel\");\n }\n else\n {\n System.out.print(\"This is not a Vowel\");\n }\n // Problem 7: Ends with a Vowel\n // Prompt the user to enter a word and display true or false if the word they entered ends with a vowel\n System.out.println(\"Enter a word\");\n String s7 = sc.next();\n char ch1;\n ch1 = s7.charAt(s7.length()-1);\n if(ch1=='a' || ch1=='A' || ch1=='e' || ch1=='E' ||\n ch1=='i' || ch1=='I' || ch1=='o' || ch1=='O' ||\n ch1=='u' || ch1=='U')\n {\n System.out.print(\"This is a Vowel\");\n }\n else\n {\n System.out.print(\"This is not a Vowel\");\n }\n }",
"static void yellow_fight () {\n monsterchoices_y_r = arenafight_y.nextInt(4);\n if (monsterchoices_y_r == 0) {//if integer is zero, you will fight a spider\n System.out.println(\"You encountered a giant spider.\");//#enemyobject-enemy that player tries to defeat\n spider_fight();\n }else if(monsterchoices_y_r == 1) {//if integer is 1 you would fight a goblin\n System.out.println(\"You encountered a goblin.\");//#enemyobject-enemy that player tries to defeat\n goblin_fights(); \n }else if(monsterchoices_y_r == 2) { //if integer is 2, you would fight a golbat\n System.out.println(\"You encountered a golbat.\");//#enemyobject-enemy that player tries to defeat\n golbat_fights();\n }else if(monsterchoices_y_r == 3) { //if the integer is 3, you would fight a witch\n System.out.println(\"You encountered a witch.\");//#enemyobject-enemy that player tries to defeat\n witch_fights();\n }\n \n }",
"boolean hasReqardTypeThree();",
"private void checkAsk(FyQuestion q, FyAnswer a) {\n\t\treturn;\r\n\t}",
"private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }",
"public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}",
"private void meetWithHrForBenefitAndSalryInfo() {\n metWithHr = true;\n }",
"public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}",
"public void decideResult() {\n\t\t\n\t\tif (mUser.getHandValue() < 22 && mUser.getHandValue() > mDealer.getHandValue()) {\n\t\t\tmResult = \"win\";\n\t\t}else if(mUser.getHandValue() < 22 && mUser.getHandValue() == mDealer.getHandValue()) {\n\t\t\tmResult = \"draw\";\n\t\t}else {\n\t\t\tmResult = \"lose\";\n\t\t}\n\t\t\n\t}",
"static void healing_challenge2() {\n System.out.println(username + \" opens up the bag to check if there are any potions left in there...\");\n enter = next.nextLine();\n if(potions <= zero) {\n System.out.println(username + \" feels something in the bag...\");\n System.out.println(\"\\n\");\n System.out.println(\"GASP!!! It's just a sock from granny Boo.\");\n enter = next.nextLine();\n System.out.println(\"UH! OH! You have no more potions left, SORRY YOU'RE ON YOUR OWN...\");\n System.out.println(\"\\n\");\n }else if(potions > zero && playerhealth != 310) {\n System.out.println(username + \" found a potion in the bag...\");\n System.out.println(username + \" takes the red potion, throws the cap, and slowly let the potion heal the wounds.\");\n System.out.println(username + \" gained 80 HP points.\");\n playerhealth = playerhealth + 80; //player's health is healed\n potions--;\n if(playerhealth > 310){ //in case of player heals and adds 80 and health goes higher than 310\n playerhealth = 310;\n }\n //in case if player tries to increase their health over the maximum\n }else if(playerhealth == 310) {\n System.out.println(\"You are at maximum health.\");\n }\n }"
] |
[
"0.6525937",
"0.615471",
"0.6144895",
"0.6096188",
"0.5996875",
"0.5950685",
"0.5908066",
"0.589326",
"0.5815377",
"0.58151937",
"0.57945585",
"0.57719135",
"0.57657063",
"0.5759378",
"0.57399917",
"0.5739712",
"0.5708782",
"0.5703853",
"0.56909376",
"0.56872964",
"0.5677319",
"0.5661841",
"0.56612796",
"0.565452",
"0.56231004",
"0.5609345",
"0.5598142",
"0.55903804",
"0.55903804",
"0.5583226",
"0.557459",
"0.55596703",
"0.55537015",
"0.5553109",
"0.55355394",
"0.553169",
"0.55279714",
"0.55265594",
"0.5515337",
"0.5498791",
"0.5497497",
"0.5492822",
"0.5489954",
"0.5486228",
"0.5468724",
"0.54581594",
"0.5455558",
"0.5425455",
"0.5422809",
"0.54208314",
"0.5411669",
"0.5394438",
"0.5394438",
"0.53940237",
"0.53890663",
"0.53863865",
"0.53820145",
"0.5381385",
"0.5381377",
"0.53726715",
"0.5372363",
"0.5369239",
"0.53682077",
"0.5366924",
"0.5366784",
"0.53659403",
"0.53603566",
"0.5358162",
"0.53560495",
"0.5336787",
"0.53349555",
"0.5327387",
"0.5317908",
"0.53148127",
"0.53142935",
"0.53118557",
"0.5311741",
"0.53085554",
"0.5307471",
"0.53070027",
"0.53018546",
"0.52998954",
"0.52988863",
"0.5294249",
"0.5287812",
"0.52863085",
"0.5281765",
"0.5280807",
"0.52765876",
"0.52755684",
"0.52740145",
"0.5273876",
"0.52738416",
"0.52735794",
"0.5272307",
"0.5269905",
"0.52642125",
"0.5261825",
"0.5260508",
"0.5255539"
] |
0.66743994
|
0
|
Call back after asynchronous load completes
|
public interface OnLoadMoreListener {
void onLoadMore();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void onLoaderFinished();",
"public abstract void loaded();",
"public abstract boolean isLoadCompleted();",
"public void onLoadComplete() {\n\t\t\r\n\t}",
"@Override\r\n public void loadAfter(@NonNull LoadParams params, @NonNull LoadCallback callback) {\n }",
"public void onLoadComplete(){\n\t\tif (listener != null){\n\t\t\thandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistener.onLoadComplete();\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"private void onFullyLoaded() {\n info(\"onFullyLoaded()\");\n cancelProgress();\n\n //Fully loaded, start detection.\n ZiapApplication.getInstance().startDetection();\n\n Intent intent = new Intent(LoadingActivity.this, MainActivity.class);\n if (getIntent().getStringExtra(\"testname\") != null)\n intent.putExtra(\"testname\", getIntent().getStringExtra(\"testname\"));\n startActivity(intent);\n finish();\n }",
"@Override\n\tpublic void upLoad(String url, String param, Callback callback) {\n\n\t}",
"public void load() {\n handleLoad(false, false);\n }",
"protected void onStartLoading() { forceLoad();}",
"public void load(final FinishedLoading callback) {\n final InjectorManager self = this;\n (new Thread(() -> {\n // load all the components into memory and initialize them\n self.loadAndWait();\n\n // check if we should fire the callback\n if (callback != null) {\n callback.trigger();\n }\n\n // TODO: is this thread ever killed?\n })).start();\n }",
"private void completeLoad() {\n if (boardFragment == null) {\n FragmentManager fm = getSupportFragmentManager();\n boardFragment = (BoardFragment) fm.findFragmentById(android.R.id.content);\n }\n boardFragment.setData(posts, threadLinks);\n\n setProgressBarIndeterminateVisibility(false);\n if (refreshItem != null) {\n refreshItem.setVisible(true);\n }\n }",
"void onFinishedLoading();",
"@Override\n public void run() {\n load_remote_data();\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tbm = getBitmap(url);\n\t\t\tdownLoaderListenner.onDownLoadSuccess(bm,url);\n\t\t}",
"public void loaded(){\n\t\tloaded=true;\n\t}",
"void onLoaderLoading();",
"@Override\n protected void onStartLoading() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n if (mResult != null) // If we currently have a result available, deliver it immediately.\n deliverResult(mResult);\n\n if (isReload() || mResult == null)\n forceLoad();\n }\n });\n }",
"@MainThread\n @Override\n protected void onForceLoad() {\n super.onForceLoad();\n cancelLoadHelper();\n\n makeRequest();\n }",
"public static void SelfCallForLoading() {\n\t}",
"public void notifyLoaded();",
"@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tv.endLoading();\n\t\t\t}",
"@Override\n\t\tpublic void onCompleted() {\n\t\t}",
"@Override\n public void onLoad(String url) {\n \n }",
"public static void reload()\r\n {\r\n reloadAsynch();\r\n waitWhileLoading();\r\n }",
"public void setLoaded();",
"private void loadContent()\n {\n // locking the function to prevent the adapter\n // from calling multiples async requests with\n // the same definitions which produces duplicate\n // data.\n locker.lock();\n\n // this function contruct a GraphRequest to the next paging-cursor from previous GraphResponse.\n GraphRequest nextGraphRequest = lastGraphResponse.getRequestForPagedResults(GraphResponse.PagingDirection.NEXT);\n\n // if we reached the end of our pages, the above method 'getRequestForPagedResults'\n // return 'null' object\n if(nextGraphRequest != null)\n {\n // for clarificating and formatting purposes\n // I declared the callback besides the members\n // variables.\n nextGraphRequest.setCallback(callback);\n nextGraphRequest.executeAsync();\n }\n }",
"@Override\n protected void onStartLoading() {\n forceLoad();\n\n }",
"private void startAsyncLoader() {\n if (CheckInternetConnection.isNetworkAvailable(this)) {\n Log.e(\"connection\", \"connection available\");\n if (getLoaderManager().getLoader(ASYNC_LOADER_ID) == null) {\n getLoaderManager().initLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n } else {\n getLoaderManager().restartLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n }\n } else {\n showMessageDialog(getResources().getString(R.string.message), getResources().getString(R.string.no_int), 1);\n }\n }",
"@Override\n protected void onStartLoading() {\n\n forceLoad();\n }",
"@Override\n public void onCompleted() {\n }",
"@Override\n public void onCompleted() {\n }",
"void onFinished(WebView v) {\n\t\t\t Log.d(TAG, \"load finished\");\n\t\t\t continueWhenLoaded(v);\n\t\t\t }",
"public void onLoad() {\n\t}",
"public interface LoadListener {\n\t\n\tvoid onStart();\n\n\tvoid onSuccess(byte[] data, String url, int actionId);\n\n\tvoid onError(String errorMsg, String url, int actionId);\n}",
"@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}",
"public void load() {\n }",
"public void doLoad() {\n UI.clearText();\n UI.println(\"Loading...\");\n\n waveform = WaveformLoader.doLoad();\n\n this.displayWaveform();\n\n UI.println(\"Loading completed!\");\n }",
"public void onFetchCompleted () {}",
"@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}",
"@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }",
"@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }",
"@Override\r\n\t\t\tpublic void onCompleted() {\n\r\n\t\t\t}",
"public static void reloadAsynch()\r\n {\r\n instance.processor.submit(instance.reloader);\r\n }",
"@Override\n protected void onPostCreate(Bundle savedInstanceState){\n super.onPostCreate(savedInstanceState);\n new LoadMeetsAsync().execute();\n }",
"@Step(\"Waiting for page load\")\n public abstract PageBase load();",
"@Override\r\n\tpublic void onLoadFinished(Loader<Cursor> mLoader, Cursor mCursor) {\n\t\t\r\n\t}",
"@Override\n public void onUploadFinish() {\n currentContent = this.loadContent(currentPath);\n populateContentListView(currentContent);\n }",
"@Override\n protected void onStartLoading() {\n if (mTaskData != null) {\n // Delivers any previously loaded data immediately\n deliverResult(mTaskData);\n } else {\n // Force a new load\n forceLoad();\n }\n }",
"@Override\n protected void onStartLoading() {\n if (mTaskData != null) {\n // Delivers any previously loaded data immediately\n deliverResult(mTaskData);\n } else {\n // Force a new load\n forceLoad();\n }\n }",
"void onFetchDataCompleted();",
"@Override\n\tpublic void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n\t\tswitch (loader.getId()) {\n\t\t\tcase LOADER_ID:\n\t\t\t\t// The asynchronous load is complete and the data\n\t\t\t\t// is now available for use. Only now can we associate\n\t\t\t\t// the queried Cursor with the SimpleCursorAdapter.\n\t\t\t\tmAdapter.swapCursor(cursor);\n\t\t\t\tmCursor = mAdapter.getCursor();\n\t\t\t\tbreak;\n\t\t}\n\t\t// The listview now displays the queried data.\n\t}",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"@Override\n public void onComplete() {\n }",
"public void load() {\n\t}",
"@Override\n public void load() {\n }",
"private void LoadContent()\n {\n \n }",
"@Override\r\n\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n\t\t\t\t\t}",
"@Override\r\n\tprotected void initLoad() {\n\r\n\t}",
"public void waitForContentLoad() {\n verifyPageIsOpened(currentPage.get(), \"Please open some page before the waiting for content to load.\");\n currentPage.get().waitLoadFinished();\n }",
"public boolean isLoaded(){return true;}",
"@Override\n\t\t\t\tpublic void onComplete(ArrayList<GoodsItem> mGoodsItems) {\n\t\t\t\t\tmHandler.postDelayed(new Runnable() {\n\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tonLoadFinished();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}, 1000);\n\t\t\t\t\tmLoadSuccess = true;\n\t\t\t\t}",
"@Override\n public void load() {\n }",
"@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}",
"@Override\n\tpublic void load() {\n\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trefreshListView.stopLoad();\n\t\t\t}\n\t\t}, 2000);\n\t}",
"public void loadJson(){\n new DownloadJsonTask().execute(URL3);\n// new DownloadJsonTask().execute(URL2);\n }",
"public void waitForContentLoad() {\n // TODO implement generic method to wait until page content is loaded\n\n // wait.until(...);\n // ...\n }",
"public interface LoadCallback {\n\n void onPreLoad();\n void onProgressUpdate(long progress);\n void onLoadSucces();\n void onLoadFailed();\n void onLoadCancel();\n}",
"public void onCompleted() {\n\t\t\n\t\t }",
"@Override\n public void onRefresh() {\n load_remote_data();\n }",
"@Override\n\tprotected void onStartLoading() {\n\t\tif (mData != null) {\n\t\t\tdeliverResult(mData);\n\t\t}\n\t\t// Now we're in start state so we need to monitor for data changes.\n\t\t// To do that we start to observer the data\n\t\t// Register for changes which is Loader dependent\n\t\tregisterObserver();\n\t\t// Now if we're in the started state and content is changes we have\n\t\t// a flag that we can check with the method takeContentChanged()\n\t\t// and force the load\t\t\t\t\t\n\t\tif (takeContentChanged() || mData == null) {\n\t\t\tforceLoad();\n\t\t}\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t\t}",
"private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }",
"void minecraftChunkLoaded() {\n\t\tthis.lastLoadingTime = System.currentTimeMillis();\n\t}",
"@Override\r\n\tpublic void load() {\n\t}",
"@Override\r\n\tpublic void load() {\n\r\n\t}",
"public void retrieveData(){\n\t\tloaderImage.loadingStart();\n\t\tJsonClient js = new JsonClient();\n\t\tjs.retrieveData(JSON_URL, this);\n\t}",
"@Override\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\n\t\t\t\t\t}",
"public void onChunkLoadCompleted(Chunk chunk) {\n if (this.lastLoadedChunkEndTimeUs != -9223372036854775807L || chunk.endTimeUs > this.lastLoadedChunkEndTimeUs) {\n this.lastLoadedChunkEndTimeUs = chunk.endTimeUs;\n }\n }",
"void loadStartHouses(HouseRepositoryContract.GetStartHousesCallback callback);",
"public synchronized void waitUntilLoad() {\n\t\twhile (!this.loaded) {\n\t\t\tSystem.out.println(\"Waiting for news to load\");\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t}",
"public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}",
"public native Object load( String url, OnJSONLoadCallback onLoad, OnProgressCallback onProgress );",
"public native Object load( String url, OnJSONLoadCallback onLoad);",
"@Override\n protected void onResume() {\n super.onResume();\n // loading dispositius via AsyncTask\n new LoadDispositiusTask().execute();\n }",
"@Override\r\n\tprotected void load() {\n\t\t\r\n\t}"
] |
[
"0.71108615",
"0.68610007",
"0.6847017",
"0.68001753",
"0.67538047",
"0.6679333",
"0.6632008",
"0.66047007",
"0.65469724",
"0.65114355",
"0.6504692",
"0.6502966",
"0.64903045",
"0.6477586",
"0.6453909",
"0.6436773",
"0.64325434",
"0.64317954",
"0.6408852",
"0.6373303",
"0.63663316",
"0.6365476",
"0.6356476",
"0.6332003",
"0.6298002",
"0.62907773",
"0.6249349",
"0.62488115",
"0.6240692",
"0.6230477",
"0.62179476",
"0.62065125",
"0.62065125",
"0.6201937",
"0.62008953",
"0.61981297",
"0.6197498",
"0.6193005",
"0.61905986",
"0.61673456",
"0.61460364",
"0.61454695",
"0.61454695",
"0.6144487",
"0.6092111",
"0.60709375",
"0.60635126",
"0.606085",
"0.60561335",
"0.60520923",
"0.60520923",
"0.60437775",
"0.604212",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60375845",
"0.60370934",
"0.6004951",
"0.6004012",
"0.59976786",
"0.5989217",
"0.5989217",
"0.5988394",
"0.59862936",
"0.59853595",
"0.59829706",
"0.5975923",
"0.59749615",
"0.59741634",
"0.59731525",
"0.59659314",
"0.59629387",
"0.5945754",
"0.59437597",
"0.59425294",
"0.59399337",
"0.593853",
"0.59331536",
"0.5928671",
"0.59252644",
"0.5924313",
"0.59086514",
"0.5906661",
"0.5904574",
"0.5897562",
"0.58911586",
"0.5889004",
"0.5886876",
"0.5881633",
"0.58685213",
"0.5868034",
"0.5865751"
] |
0.0
|
-1
|
private double averageDeliveryTime; private double averagePrice; private double deliveryTimeSum; private double priceSum; private int count;
|
public Journey(String destination, String origin, Priority priority,
float weightPrice, float volumePrice, ArrayList<Path> usedPaths, DayOfWeek dow) {
this.destination = destination;
this.origin = origin;
this.priority = priority;
this.weightPrice = weightPrice;
this.volumePrice = volumePrice;
this.usedPaths = usedPaths;
this.dow = dow;
this.isActive = true;
this.timesUsed = 0;
this.totalCost = 0;
this.totalPrice = 0;
// this.averageDeliveryTime = averageDeliveryTime;
// this.averagePrice = averagePrice;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }",
"public double getGrossSales() {\n return grossSales;\n}",
"public double getTotalPayments(){return this.total;}",
"public double getPrice(){return price;}",
"public int totalOrdersTaken();",
"double getTotalProfit();",
"int getPriceCount();",
"public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }",
"public double getTotalPrice(){\n return totalPrice;\n }",
"@Override\n public double total() {\n return 2500;\n }",
"private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }",
"double agression();",
"public double getPricePerSquareFoot(){\nreturn pricePerSquareFoot;\n}",
"Double getTotalSpent();",
"public double getTotal (){ \r\n return total;\r\n }",
"@Override \r\npublic double earnings() { \r\n\t return getWage() * getPieces(); \r\n}",
"double getTotal();",
"public double getTotalSalesProfit(){\n return totalSaleProfit;\n }",
"public double getTotal(){\n return total;\n }",
"public int getTotalSalesCount(){\n return totalSalesCount;\n }",
"protected double getDataRate() {\n\t\treturn (double) getThroughput() / (double) getElapsedTime();\n\t}",
"public int getTotRuptures();",
"public double getFitness(){\n return averageFitness;\n }",
"private void summarizeTimeslot ()\n {\n if (null == brokers) {\n // first time through\n brokers = new ArrayList<>();\n stats = new HashMap<>();\n\n data.print(\"Broker Name,\");\n data.print(\"Power Type,\");\n data.print(\"Customers,\");\n data.print(\"Usage (kWh),\");\n data.println(\"Income Gained\");\n\n // set up the maps of brokers, and stats by power type\n for (Broker broker : brokerRepo.findRetailBrokers())\n {\n brokers.add(broker);\n stats.put(broker, new HashMap<>());\n for (PowerType type : powerTypes)\n {\n StatsTracked theseStats = new StatsTracked();\n HashMap<PowerType, StatsTracked> map = stats.get(broker);\n map.put(type, theseStats);\n stats.put(broker, map);\n }\n }\n\n // store customer statistics\n\n }\n\n if (ttx.size() > 0) {\n // there are some signups and withdraws here\n for (TariffTransaction tx : ttx) {\n Broker broker = tx.getBroker();\n PowerType type = tx.getTariffSpec().getPowerType();\n HashMap<PowerType, StatsTracked> brokerMap = stats.get(broker);\n StatsTracked theseStats = brokerMap.get(type);\n if (tx.getTxType() == TariffTransaction.Type.CONSUME ||\n tx.getTxType() == TariffTransaction.Type.PRODUCE) {\n theseStats.updateUsage(tx.getKWh());\n theseStats.updateProfit(tx.getCharge());\n }\n else if (tx.getTxType() == TariffTransaction.Type.SIGNUP)\n theseStats.updateCustomers(tx.getCustomerCount());\n\n // reupdate the tracking...\n brokerMap.put(type, theseStats);\n stats.put(broker, brokerMap);\n }\n }\n ttx.clear();\n }",
"public float getTotalPrice(){\n return price * amount;\n }",
"public float getPrice() \n {\n return price;\n }",
"public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }",
"public void total() {\n\t\t\n\t}",
"public int getSeatPrice()\n{\nreturn price;\n}",
"public int getTotalPrice()\n {\n return totalPrice;\n }",
"public Double getTotal();",
"public double getPrice()\r\n {\r\n return price;\r\n }",
"public double getSale()\n {\n return sale;\n }",
"double calculatePrice();",
"public double getPrice()\n {\n return price;\n }",
"public int salePrice(){\n return this.salePrice;\n }",
"public double getCosts();",
"public int getSalesPrice() {\n return salesPrice;\n }",
"public void getCosts() {\n\t}",
"double getPricePerPerson();",
"void calculate() {\n\t\tint i;\n\t\tdouble avgVolume = 0.0;\n\t\t\n\t\tfor( i = 0; i < end; i++ ) {\n\t\t\t\n\t\t\tavgVolume += s[i].showVolume();\n\t\t\tSystem.out.println(s[i].toString());\n\t\t}\n\t\tif( end == 0 )\n\t\t\tSystem.out.println(\"Queue is empty\");\n\t\telse\n\t\t\tSystem.out.println(\"Average Volume is :- \" + avgVolume/end);\n\t}",
"public double getPrice() {\n return price;\n }",
"public float getHightPrice()\r\n{\r\n\treturn this.hightPrice;\r\n}",
"public void totalprice(float tprice)\n {\n \t this.mTotalPrice=tprice;\n }",
"public double getPrice()\r\n {\r\n return this.price;\r\n }",
"public double getSavings()\r\n {\r\n return savings;\r\n }",
"Measurement getAccumulation();",
"@Override\n public Double average() {\n return (sum() / (double) count());\n }",
"@Override\n public double getTotal() {\n return total;\n }",
"public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }",
"TotalRevenueView(){\r\n this.runningTotal = 0;\r\n this.VAT = 0;\r\n }",
"double getTotalCost();",
"public Averager()\r\n\t{\r\n\t\tcount = 0;\r\n\t\tsum = 0;\r\n\t}",
"public double getPrice(Movie movie, double time);",
"public double getTotalCartValue();",
"public void averageTicketPayable() {\n\t\tnodes.stream().filter(sc->sc instanceof Payable).mapToDouble(sc->((Payable) sc).getEntryFee()).average().stream().forEach(System.out::println);\n\t}",
"public Double getPrice() {\r\n return price;\r\n }",
"public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }",
"public double calculatePrice() {\n return 0;\n }",
"public double getPrice()\n {\n return this.price;\n }",
"private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}",
"public int getNumSales(){\r\n return sales;\r\n }",
"double getSubtotal();",
"double getSubtotal();",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"@Override\n\tpublic Map<Tag, Double> report() {\n\t\tMap<Tag,Double> result = new HashMap<>();\n\t\tbudget.getTags().stream()\n\t\t\t\t.forEach(t->result.put(t,ledger.getSingleTag(t.getID()).getTotalAmount()-budget.getExpected(t)));\n\t\treturn result;\n\t}",
"public void figure() {\r\n Currency nAdv = Currency.Zero;\r\n Currency nLow = Currency.NegativeOne;\r\n Currency nHigh = Currency.Zero;\r\n Currency nTotal = Currency.Zero;\r\n \r\n for(int i = 0; i < dayArray.size(); i++) {\r\n DayG dayG = (DayG) dayArray.get(i);\r\n Currency gross = dayG.getGross();\r\n \r\n nAdv = nAdv.add(gross);\r\n nTotal = nTotal.add(gross);\r\n if(nLow == Currency.NegativeOne || gross.lt(nLow)) {\r\n lowD = dayG;\r\n nLow = gross;\r\n }\r\n if(nHigh.lt(gross)) {\r\n highD = dayG;\r\n nHigh = gross;\r\n }\r\n }\r\n \r\n adverage = nAdv.divide(dayArray.size()).round();\r\n low = nLow.round();\r\n high = nHigh.round();\r\n \r\n //no need to round total, right?\r\n total = nTotal;\r\n }",
"public double getPrice();",
"public double getCost(){\n return cost;\n }",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public double getInterest(){return this.interest_rate;}",
"public void setPrice(double price){this.price=price;}",
"double calculateDeliveryCost(Cart cart);",
"public double getPrice(){\n\t\treturn price;\n\t}",
"void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }",
"public double getPurchasePrice()\n {\n return purchasePrice;\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public void getAvg()\n {\n this.avg = sum/intData.length;\n }",
"public Integer getTotalprice() {\n return totalprice;\n }",
"@Override\r\n\tpublic double CalculatePrice() {\n\t\treturn 0;\r\n\t}",
"public double getPrice()\n {\n \treturn price;\n }",
"public Double getPrice();",
"private void calculateAverages(){\n for (int i=0; i<40; i=i+4){\n totalGoalsScored1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored1 = totalGoalsScored1/numberItems;\n //Total and average scored goals of team 2\n for (int i=2; i<40; i=i+4){\n totalGoalsScored2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored2 = totalGoalsScored2/numberItems;\n //Total and average received goals of team 1\n for (int i=1; i<40; i=i+4){\n totalGoalsReceived1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived1 = totalGoalsReceived1/numberItems;\n //Total and average received goals of team 2\n for (int i=3; i<40; i=i+4){\n totalGoalsReceived2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived2 = totalGoalsReceived2/numberItems;\n }",
"public double getWage(){\r\n return wage; \r\n }",
"private void calcCalories()\n\t{\n\t\tif (getIntensity() == 1)\n\t\t{\n\t\t\tbikeCal = 10 * bikeTime; \n\t\t}\n\t\telse if (getIntensity() == 2)\n\t\t{\n\t\t\tbikeCal = 14.3 * bikeTime; \n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"error\");\n\t\t}\n\t}"
] |
[
"0.6364855",
"0.6271354",
"0.61995786",
"0.6185882",
"0.6178295",
"0.614434",
"0.6135518",
"0.6111864",
"0.61033547",
"0.6080505",
"0.6067916",
"0.6042908",
"0.6012219",
"0.6005039",
"0.59681404",
"0.5961756",
"0.5939697",
"0.5931971",
"0.5921923",
"0.5885661",
"0.5882339",
"0.5874319",
"0.58447134",
"0.5816641",
"0.58136874",
"0.58019227",
"0.57966065",
"0.5784413",
"0.57792205",
"0.5768417",
"0.5764836",
"0.5762306",
"0.5761356",
"0.5758963",
"0.5757535",
"0.57554394",
"0.57497954",
"0.57429343",
"0.5741846",
"0.57140857",
"0.5713455",
"0.57125986",
"0.57009363",
"0.5700096",
"0.5699122",
"0.5698961",
"0.56905997",
"0.5685905",
"0.5681477",
"0.5681325",
"0.5680721",
"0.56771415",
"0.56767935",
"0.5676422",
"0.5673981",
"0.566928",
"0.5667316",
"0.56551677",
"0.565293",
"0.56488526",
"0.56481403",
"0.5643017",
"0.5642161",
"0.5642161",
"0.5634553",
"0.5634553",
"0.5634553",
"0.56345123",
"0.5633974",
"0.56303084",
"0.56300735",
"0.5629075",
"0.5627797",
"0.5622488",
"0.56207496",
"0.5607148",
"0.560063",
"0.55988824",
"0.5597238",
"0.5597238",
"0.5597238",
"0.5597238",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5592586",
"0.5591588",
"0.5583401",
"0.5578621",
"0.5578497",
"0.5576582",
"0.55699927",
"0.55678105",
"0.5567419"
] |
0.0
|
-1
|
PLEASE DO NOT CALL THIS METHOD
|
public Double getPrice(int weight, int volume){
//System.out.println("getPrice method in Journey called. should have been a delivery.");
double price = weightPrice*weight + volumePrice*volume;
price = Math.round(price * 100);
totalPrice += (price/100);
return price/100;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"private void m50366E() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo38117a() {\n }",
"public void method_4270() {}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"protected void mo6255a() {\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void mo4359a() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"public abstract void mo56925d();",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public final void mo91715d() {\n }",
"protected boolean func_70041_e_() { return false; }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public void mo21779D() {\n }",
"public boolean method_218() {\r\n return false;\r\n }",
"public void mo21791P() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"protected void onFirstUse() {}",
"public void mo21825b() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"protected Doodler() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public boolean method_4088() {\n return false;\n }",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo21785J() {\n }",
"public boolean method_216() {\r\n return false;\r\n }",
"public void mo21793R() {\n }",
"public void mo21794S() {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo27386d();",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public void mo9848a() {\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"public void mo115190b() {\n }",
"protected OpinionFinding() {/* intentionally empty block */}",
"public void mo21782G() {\n }",
"public boolean method_4093() {\n return false;\n }",
"public boolean method_2453() {\r\n return false;\r\n }"
] |
[
"0.6966959",
"0.67938447",
"0.6765118",
"0.6611615",
"0.6595424",
"0.6562797",
"0.6547997",
"0.6535932",
"0.6535932",
"0.6458498",
"0.64551437",
"0.64551437",
"0.64537066",
"0.6442744",
"0.64084774",
"0.6407",
"0.63498634",
"0.6325613",
"0.63247883",
"0.6321414",
"0.632014",
"0.632014",
"0.6315871",
"0.63118565",
"0.62690973",
"0.6254501",
"0.6200968",
"0.61963284",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.6180622",
"0.61780566",
"0.61681014",
"0.61600685",
"0.61544925",
"0.61466455",
"0.6139367",
"0.613191",
"0.6131825",
"0.612446",
"0.611998",
"0.61111814",
"0.6095085",
"0.60810363",
"0.60787827",
"0.6065864",
"0.60597324",
"0.6056722",
"0.60425746",
"0.60232615",
"0.60232306",
"0.60136104",
"0.6010468",
"0.6006303",
"0.6001281",
"0.59843993",
"0.59771633",
"0.59743303",
"0.5966085",
"0.5955197",
"0.5952826",
"0.5950679",
"0.59443665",
"0.5941093",
"0.5940501",
"0.5935855",
"0.59249663",
"0.59221905",
"0.5922169",
"0.59188867",
"0.5910824",
"0.5909289",
"0.5908273",
"0.5908182",
"0.5896031",
"0.5893475",
"0.5889567",
"0.5881411",
"0.5879366",
"0.5879366",
"0.58673024",
"0.58608735",
"0.58606887",
"0.58571357",
"0.58571357",
"0.5855457",
"0.5853008",
"0.585258",
"0.58486724",
"0.5845338",
"0.58450687",
"0.5843836",
"0.5842749",
"0.5841343",
"0.5840875",
"0.5840223"
] |
0.0
|
-1
|
PLEASE DO NOT CALL THIS METHOD
|
public float getCost(int weight, int volume) {
//System.out.println("getCost method in Journey called. should have been a delivery.");
timesUsed++;
float total = 0;
for(Path p: usedPaths){
try {
total += p.calcCost(weight, volume);
} catch (OverweightException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ExceededVolumeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
totalCost += total;
return total;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"private void m50366E() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo38117a() {\n }",
"public void method_4270() {}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"protected void mo6255a() {\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void mo4359a() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"public abstract void mo56925d();",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public final void mo91715d() {\n }",
"protected boolean func_70041_e_() { return false; }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public void mo21779D() {\n }",
"public boolean method_218() {\r\n return false;\r\n }",
"public void mo21791P() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"protected void onFirstUse() {}",
"public void mo21825b() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"protected Doodler() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public boolean method_4088() {\n return false;\n }",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo21785J() {\n }",
"public boolean method_216() {\r\n return false;\r\n }",
"public void mo21793R() {\n }",
"public void mo21794S() {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo27386d();",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public void mo9848a() {\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"public void mo115190b() {\n }",
"protected OpinionFinding() {/* intentionally empty block */}",
"public void mo21782G() {\n }",
"public boolean method_4093() {\n return false;\n }",
"public boolean method_2453() {\r\n return false;\r\n }"
] |
[
"0.6966959",
"0.67938447",
"0.6765118",
"0.6611615",
"0.6595424",
"0.6562797",
"0.6547997",
"0.6535932",
"0.6535932",
"0.6458498",
"0.64551437",
"0.64551437",
"0.64537066",
"0.6442744",
"0.64084774",
"0.6407",
"0.63498634",
"0.6325613",
"0.63247883",
"0.6321414",
"0.632014",
"0.632014",
"0.6315871",
"0.63118565",
"0.62690973",
"0.6254501",
"0.6200968",
"0.61963284",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.61918867",
"0.6180622",
"0.61780566",
"0.61681014",
"0.61600685",
"0.61544925",
"0.61466455",
"0.6139367",
"0.613191",
"0.6131825",
"0.612446",
"0.611998",
"0.61111814",
"0.6095085",
"0.60810363",
"0.60787827",
"0.6065864",
"0.60597324",
"0.6056722",
"0.60425746",
"0.60232615",
"0.60232306",
"0.60136104",
"0.6010468",
"0.6006303",
"0.6001281",
"0.59843993",
"0.59771633",
"0.59743303",
"0.5966085",
"0.5955197",
"0.5952826",
"0.5950679",
"0.59443665",
"0.5941093",
"0.5940501",
"0.5935855",
"0.59249663",
"0.59221905",
"0.5922169",
"0.59188867",
"0.5910824",
"0.5909289",
"0.5908273",
"0.5908182",
"0.5896031",
"0.5893475",
"0.5889567",
"0.5881411",
"0.5879366",
"0.5879366",
"0.58673024",
"0.58608735",
"0.58606887",
"0.58571357",
"0.58571357",
"0.5855457",
"0.5853008",
"0.585258",
"0.58486724",
"0.5845338",
"0.58450687",
"0.5843836",
"0.5842749",
"0.5841343",
"0.5840875",
"0.5840223"
] |
0.0
|
-1
|
Queries caB2B and returns a mapping of service URLs to Cab2bServices.
|
public Map<String,Cab2bService> getServices() throws Exception {
Map<String,Cab2bService> services = new HashMap<String,Cab2bService>();
DefaultHttpClient httpclient = new DefaultHttpClient();
try {
String queryURL = GSSProperties.getCab2b2QueryURL()+"/services";
HttpGet httpget = new HttpGet(queryURL);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String result = httpclient.execute(httpget, responseHandler);
JSONObject json = new JSONObject(result);
for(Iterator i = json.keys(); i.hasNext(); ) {
String modelGroupName = (String)i.next();
JSONArray urls = json.getJSONArray(modelGroupName);
for(int k=0; k<urls.length(); k++) {
JSONObject jsonService = urls.getJSONObject(k);
String serviceURL = jsonService.getString("url");
boolean searchDefault = false;
if (jsonService.has("searchDefault")) {
searchDefault = "true".equals(jsonService.getString("searchDefault"));
}
Cab2bService service = new Cab2bService(
serviceURL, modelGroupName, searchDefault);
services.put(serviceURL, service);
}
}
}
finally {
httpclient.getConnectionManager().shutdown();
}
log.info("Retrieved " + services.size() + " services from caB2B");
return services;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Map<String, List<String>> getServices();",
"public List<CatalogService> getService(String service);",
"public Map listServices() throws IOException\n\t{\n\t\treturn request(GET, address(null, null));\n\t}",
"public Map getESBComponents()\n\t{\t\n\t\tMap endPoints = (Map)cache( \"components\" );\t\t\n\t\t\n\t\tif ( endPoints == null )\n\t\t{\n\t\t\tendPoints = new HashMap();\n\t\t\tCollection names \t= getESBComponentNames();\n\t\t\tIterator iter\t\t= names.iterator();\n\t\t\tString name\t\t\t= null;\n\t\t\t\t\n\t\t\twhile( iter.hasNext() )\n\t\t\t{\n\t\t\t\tname = (String)iter.next();\n\t\t\t\tendPoints.put( name, getESBComponentData( name ) );\n\t\t\t}\n\t\t\t\n\t\t\tcache( \"components\", endPoints );\n\t\t}\n\t\t\n\t\treturn( endPoints );\n\t}",
"private void loadAms2Services() {\n\n // 1st create the spring-bean-loader instance \n // you might consider it as kind of \"bean factory\"\n SpringContextLoader spring = new SpringContextLoader();\n \n // initialize the bean loader\n // with the (spring-beans)config file it should use \n // to lookup the bean definitions\n spring.init(\"spring-ams2-core.xml\");\n \n logger.debug(\"Constants.BEAN_PRINCIPAL_SRV: \" + Constants.BEAN_PRINCIPAL_SRV);\n logger.debug(\"Constants.BEAN_AUTHORIZATION_SRV: \" + Constants.BEAN_AUTHORIZATION_SRV);\n logger.debug(\"Constants.BEAN_FABRIC_SRV: \" + Constants.BEAN_FABRIC_SRV);\n \n \n // load a bean by its id/name:\n // use the service interface as reference!\n pcplSrv = (PrincipalService) spring.getBean(Constants.BEAN_PRINCIPAL_SRV);\n\n // just another ams2 service as example: the \"advanced authorization service\" (managing user-node-rules information)\n authzSrv = (AdvAuthorizationService) spring.getBean(Constants.BEAN_AUTHORIZATION_SRV);\n\n // just another ams2 service as example: the \"rule service\" (providing rules/roles information)\n //RuleService ruleSrv = (RuleService) spring.getBean(Constants.BEAN_RULE_SRV);\n\n // load the needed service: FabricService (designed to wrap further functionality arround corpusstructure api)\n fabricSrv = (FabricService) spring.getBean(Constants.BEAN_FABRIC_SRV);\n\n SpringContextLoader springAuth = new SpringContextLoader();\n springAuth.init(\"spring-ams2-auth.xml\");\n authSrv = (AuthenticationService) springAuth.getBean(Constants.BEAN_INTEGRATED_AUTHENTICATION_SRV);\n \n }",
"ImmutableList<T> getServices();",
"public List<ServiceInstance> lookupInstances(String serviceName);",
"public ServiceCombo getServices()\n {\n return services;\n }",
"public List<ServerServices> listServerServices();",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ServiceCat> listServiceCat() {\r\n\t\tList<ServiceCat> courses = null;\r\n\t\ttry {\r\n\t\t\tcourses = session.createQuery(\"from ServiceCat\").list();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn courses;\r\n\t}",
"public List<ServerServices> searchExternalService(int servId, String dataPort, String servicePort);",
"go.micro.runtime.RuntimeOuterClass.Service getServices(int index);",
"go.micro.runtime.RuntimeOuterClass.Service getServices(int index);",
"public List<String> getServices() throws IOException;",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"List<Service> services();",
"AGServiceDescription[] getServices()\n throws IOException, SoapException;",
"protected ServiceBundler getServices() {\n return services;\n }",
"Collection<Service> getAllSubscribeService();",
"@Nullable\n public List<BluetoothGattService> getServices() {\n BleMultiConnector bleMultiConnector = this.bleMultiConnector;\n if (bleMultiConnector == null) {\n return null;\n }\n if (address == null) {\n return null;\n }\n return bleMultiConnector.getServices(address);\n }",
"public Iterator getServices() {\r\n\t\treturn services == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(services.values());\r\n\t}",
"net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;",
"public List<Service> getServicesByCategory(Category cat) {\n ServiceRecords sr = company.getServiceRecords();\n List<Service> serviceList = sr.getServiceByCat(cat);\n return serviceList;\n }",
"@Override\r\n\tpublic List<BusService> searchService(String serviceFrom, String serviceTo, String departureTime) {\n\t\tBusServiceDaoImpl bsDao = new BusServiceDaoImpl();\r\n\t\treturn bsDao.searchService(serviceFrom, serviceTo, departureTime);\r\n\t}",
"private List getServicesHistory(String xmlResponse) {\r\n\r\n\t\tList serviceList = new ArrayList();\r\n\t\t\r\n\t\tServiceVO activeService;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tElement root;\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\telement = DOMUtils.getElement(element, \"contract\", true);\r\n\t\t\t\r\n\t\t\tNodeList serviceNodeList = DOMUtils.getElements(element, \"service\");\r\n\t\t\tElement subElement;\r\n\t\t\tfor (int i = 0; i < serviceNodeList.getLength(); i++) {\r\n\t\t\t\telement = (Element) serviceNodeList.item(i);\r\n\t\t\t\tactiveService = new ServiceVO();\r\n\t\t\t\t//sets the sncode\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"code\", true);\r\n\t\t\t\tactiveService.setSnCode(DOMUtils.getText(subElement).toString());\r\n\t\t\t\t//sets the description\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"desc\", true);\r\n\t\t\t\tactiveService.setDescription(DOMUtils.getText(subElement).toString());\r\n\t\t\t\t//sets the service history\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"contract-svc\", true);\r\n\t\t\t\tsubElement = DOMUtils.getElement(subElement, \"status-hist\", true);\r\n\t\t\t\tactiveService.setServiceHistory(getServiceHistory(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t//sets the service activation\r\n\t\t\t\tactiveService.setServiceActivation(getActivationDate(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t//sets the service status\r\n\t\t\t\tactiveService.setStatus(getServiceCurrentStatus(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t\r\n\t\t\t\tserviceList.add(activeService);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\r\n\t\t\r\n\t\treturn serviceList;\t\t\t\t\t\t\r\n\t\t\r\n\t}",
"public Collection<Service> createServices();",
"io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();",
"public Map<String, ServiceNode> getServices() {\n\t\treturn serviceMap;\n\t}",
"public List<ServiceAffinities> selectServiceAffinities() {\n\n\t\tList<ServiceAffinities> customers = new ArrayList<ServiceAffinities>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from service_affinities\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tServiceAffinities customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new ServiceAffinities();\n\t\t\t\tcustomer.setApplication(resultSet.getString(1));\n\t\t\t\tcustomer.setServices(resultSet.getString(2));\n\t\t\t\tcustomer.setEnvironment_types(resultSet.getString(3));\n\t\t\t\tcustomer.setAffinity(resultSet.getString(4));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}",
"Map<String, Object> getServiceSpecificObjects();",
"public List<ServiceProvider> services() throws ConsulException {\n try {\n final Self self = self();\n final List<ServiceProvider> providers = new ArrayList<>();\n final HttpResp resp = Http.get(consul().getUrl() + EndpointCategory.Agent.getUri() + \"services\");\n final JsonNode obj = checkResponse(resp);\n for (final Iterator<String> itr = obj.fieldNames(); itr.hasNext(); ) {\n final JsonNode service = obj.get(itr.next());\n final ServiceProvider provider = new ServiceProvider();\n provider.setId(service.get(\"ID\").asText());\n provider.setName(service.get(\"Service\").asText());\n provider.setPort(service.get(\"Port\").asInt());\n // Map tags\n String[] tags = null;\n if (service.has(\"Tags\") && service.get(\"Tags\").isArray()) {\n final ArrayNode arr = (ArrayNode)service.get(\"Tags\");\n tags = new String[arr.size()];\n for (int i = 0; i < arr.size(); i++) {\n tags[i] = arr.get(i).asText();\n }\n }\n provider.setTags(tags);\n provider.setAddress(self.getAddress());\n provider.setNode(self.getNode());\n providers.add(provider);\n }\n return providers;\n } catch (IOException e) {\n throw new ConsulException(e);\n }\n }",
"public void processVCAPServices() {\n\t\tif (!BluemixContextManager.getInstance().isRunningOnBluemix()) {\n\t\t\treturn;\n\t\t}\n\n\t\tJsonJavaObject sysEnv = getVcapServices();\n\t\tif (sysEnv == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (sysEnv.containsKey(serviceName)) {\n\t\t\tJsonJavaArray services = sysEnv.getAsArray(serviceName);\n\t\t\tJsonJavaObject service = (JsonJavaObject) services.get(0);\n\t\t\tJsonJavaObject credentials = (JsonJavaObject) service\n\t\t\t\t\t.get(\"credentials\");\n\t\t\tsetBaseUrl((String) credentials.get(\"url\"));\n\t\t\tsetUsername((String) credentials.get(\"username\"));\n\t\t\tsetPassword((String) credentials.get(\"password\"));\n\n\t\t}\n\t}",
"private Map<String, Object> getSubServiceMap() {\n\t\tlog.info(\"*****Inside getSubservice method **\");\n\t\tMap<String, Object> serviceMap = null;\n\n\t\ttry {\n\n\t\t\tserviceMap = new HashMap<String, Object>();\n\t\t\tserviceMap.put(ResourceResolverFactory.SUBSERVICE, \"sam\");\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tStringWriter errors = new StringWriter();\n\t\t\te.printStackTrace(new PrintWriter(errors));\n\t\t\tlog.info(\"errors ***\" + errors.toString());\n\t\t}\n\t\tlog.info(\"*****getSubservice Method End**\");\n\t\t\n\t\treturn serviceMap;\n\n\t}",
"private List<ServiceDTO> getCustomizedConfigService() {\n String configServices = System.getProperty(\"apollo.configService\");\n if (Strings.isNullOrEmpty(configServices)) {\n // 2. Get from OS environment variable\n configServices = System.getenv(\"APOLLO_CONFIGSERVICE\");\n }\n if (Strings.isNullOrEmpty(configServices)) {\n // 3. Get from server.properties\n configServices = Foundation.server().getProperty(\"apollo.configService\", null);\n }\n\n if (Strings.isNullOrEmpty(configServices)) {\n return null;\n }\n\n logger.warn(\"Located config services from apollo.configService configuration: {}, will not refresh config services from remote meta service!\", configServices);\n\n // mock service dto list\n String[] configServiceUrls = configServices.split(\",\");\n List<ServiceDTO> serviceDTOS = Lists.newArrayList();\n\n for (String configServiceUrl : configServiceUrls) {\n configServiceUrl = configServiceUrl.trim();\n ServiceDTO serviceDTO = new ServiceDTO();\n serviceDTO.setHomepageUrl(configServiceUrl);\n serviceDTO.setAppName(ServiceNameConsts.APOLLO_CONFIGSERVICE);\n serviceDTO.setInstanceId(configServiceUrl);\n serviceDTOS.add(serviceDTO);\n }\n\n return serviceDTOS;\n }",
"public com.hps.july.persistence.Service getServices() throws Exception {\n\tServiceAccessBean bean = constructServices();\n\tif (bean != null)\n\t return (Service)bean.getEJBRef();\n\telse\n\t return null;\n\n}",
"protected static Map<String, Service> createServices( Element elem, String webinfPath )\n throws XMLParsingException, IOException {\n\n Map<String, Service> tmpServices = new HashMap<String, Service>();\n List<Element> list = XMLTools.getElements( elem, StringTools.concat( 100, \"./\", dotPrefix, \"Service\" ), cnxt );\n for ( Element child : list ) {\n String serviceName = XMLTools.getAttrValue( child, null, \"type\", null );\n\n String[] tokens = null;\n if ( ( tokens = serviceName.split( \":\" ) ).length == 2 ) {\n serviceName = tokens[1];\n }\n ServiceVersion serviceVersion = createServiceVersion( child, webinfPath );\n if ( !tmpServices.containsKey( serviceName ) ) {\n tmpServices.put( serviceName, new Service( serviceName ) );\n }\n tmpServices.get( serviceName ).getServiceVersions().put( serviceVersion.getVersion(), serviceVersion );\n }\n return tmpServices;\n }",
"public interface BannerService {\r\n\r\n List<Banner> queryBanners(Banner record);\r\n\r\n List<String> queryKeywords();\r\n\r\n}",
"private Iterable<Service> loadServiceData() {\n return services;\n }",
"public List<NetServices> listServices(int zid) {\n List<NetServices> listLCServices = new ArrayList<>();\n\n String sql = \"SELECT a.* FROM net_services a\";\n sql += \" WHERE a.centerid<=0 and a.catid=\" + CatID;\n if (zid > 0) {\n sql += \" AND a.zoneid=\" + zid;\n }\n\n Query query = em.createNativeQuery(sql, NetServices.class);\n try {\n listLCServices = query.getResultList();\n if (listLCServices != null && !listLCServices.isEmpty()) {\n for (NetServices netServices : listLCServices) {\n //TODO do some checks... verify SEHRAuthKey, GUID of service etc...\n if (StringUtils.isBlank(netServices.getSehrauthkey())) {\n Log.warning(netServices.getTitle() + \": Invalid SEHRAuthKey!\");\n }\n }\n }\n } catch (PersistenceException pe) {\n Log.warning(LifeCARDAdmin.class.getName() + \":listServices():\" + pe.getMessage());\n }\n return listLCServices;\n }",
"@Override\r\n\tpublic List<sn.ucad.master.assurance.bo.Service> findAllService() {\n\t\treturn serviceRepository.findAll();\r\n\t}",
"private void getUnresolvedServiceRequests(CTTS.Shared bean) throws ServletException, IOException\r\n {\n\t\tString [][] UnresolvedServiceRequests; \r\n\t\t\r\n\t\t\r\n CTTS.DBI dbi = null;\r\n try\r\n {\r\n dbi = new CTTS.DBI();\r\n if(dbi.connect()) // get a connection from tomcat\r\n {\r\n UnresolvedServiceRequests = dbi.getUnresolvedServiceRequests(); \r\n bean.setUnresolvedServiceRequests(UnresolvedServiceRequests); \r\n\t \r\n }\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n bean.setMessage(\"Exception caught : \" + e);\r\n bean.setError(\"The database could not be connected\");\r\n } \r\n finally\r\n {\r\n dbi.close(); //return connection to Tomcat\r\n } \r\n }",
"public interface GPB2BCustomerAccountService {\n\n\n\t/**\n\t * This method gets b2b order list\n\t * \n\t * @param currentCustomer\n\t * \t\t\tthe current customer\n\t * @param currentBaseStore\n\t * \t\t\tthe current base store\n\t * @param statuses\n\t * \t\t\tthe status\n\t * @param pageableData\n\t * \t\t\tthe data for pagination\n\t * @param b2bUnit\n\t * \t\t\tthe b2b unit\n\t * @return b2b order list\n\t */\n\tSearchPageData<OrderModel> getB2BOrderList(CustomerModel currentCustomer, BaseStoreModel currentBaseStore,\n\t\t\tOrderStatus[] statuses, PageableData pageableData, List<B2BUnitModel> b2bUnit);\n\n\t/**\n\t * This method gets order for code\n\t * @param currentUser\n\t * \t\t\tthe current user\n\t * @param code\n\t * \t\t\tthe code\n\t * @param baseStoreModel\n\t * \t\t\tthe base store model\n\t * @return the order model for code\n\t */\n\tOrderModel getOrderForCode(CustomerModel currentUser, String code, BaseStoreModel baseStoreModel);\n\n\t/**\n\t * This method gets b2b order list for admin\n\t * @param currentCustomer\n\t * \t\t\tthe current customer\n\t * @param currentBaseStore\n\t * \t\t\tthe current base store\n\t * @param statuses\n\t * \t\t\tthe statuses\n\t * @param pageableData\n\t * \t\t\tthe data for pagination\n\t * @param b2bUnitList\t\n\t * \t\t\tthe b2b unit list\n\t * @return the order list for admin\n\t */\n\tSearchPageData<OrderModel> getB2BOrderListForAdmin(\n\t\t\tCustomerModel currentCustomer, BaseStoreModel currentBaseStore,\n\t\t\tOrderStatus[] statuses, PageableData pageableData,\n\t\t\tList<B2BUnitModel> b2bUnitList);\n\n}",
"public interface LookupManager {\n\n /**\n * Look up a service instance by the service name.\n *\n * It selects one instance from a set of instances for a given service based on round robin strategy.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance lookupInstance(String serviceName);\n\n /**\n * Look up a list of service instances for a given service.\n *\n * It returns the complete list of the service instances.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> lookupInstances(String serviceName);\n\n /**\n * Query for a service instance based on the service name and some filtering criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances of the specified Service, which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of specified Service that satisfy the ServiceInstanceQuery.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for one the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list have different Services.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of different Services which satisfy the query criteria.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get a ServiceInstance.\n *\n * It returns a ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @param instanceId\n * the istanceId\n * @return\n * the ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance getInstance(String serviceName, String instanceId);\n\n /**\n * Get all ServiceInstance List of the target Service, including the DOWN ServiceInstance.\n *\n * It will return all ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName);\n\n /**\n * Get all ServiceInstances of the specified Service, including the DOWN ServiceIntance,\n * which satisfy the query criteria on the service metadata.\n *\n * It filter all ServiceInstances of the specified Service including the ServiceInstance of OperationalStatus DOWN,\n * against the ServiceInstanceQuery.\n *\n * @param serviceName\n * the Service name.\n * @param query\n * the ServiceInstanceQuery.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Get all the ServiceInstances, including the DOWN ServiceInstance, which satisfy the query criteria on the service metadata.\n *\n * It filters all ServiceInstances of different Services, including the DOWN ServiceInstance,\n * which satisfy the query criteria.\n *\n * @param query\n * the ServiceInstanceQuery criteria.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get the all ServiceInstances in the ServiceDirectory including the DOWN ServiceInstance.\n *\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances();\n\n /**\n * Add a NotificationHandler to the Service.\n *\n * This method can check the duplicate NotificationHandler for the serviceName, if the NotificationHandler\n * already exists in the serviceName, do nothing.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void addNotificationHandler(String serviceName, NotificationHandler handler);\n\n /**\n * Remove the NotificationHandler from the Service.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void removeNotificationHandler(String serviceName, NotificationHandler handler) ;\n}",
"@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }",
"Object getBcclist();",
"@Test\n\tvoid testAllNamespacesTwoServicesPresent() {\n\t\tLister<V1Endpoints> endpointsLister = setupEndpointsLister(\"\");\n\n\t\tboolean allNamespaces = true;\n\t\tV1Service serviceA = new V1Service().metadata(new V1ObjectMeta().name(\"service-a\").namespace(\"namespace-a\"));\n\t\tV1Service serviceB = new V1Service().metadata(new V1ObjectMeta().name(\"service-b\").namespace(\"namespace-b\"));\n\t\tserviceCache.add(serviceA);\n\t\tserviceCache.add(serviceB);\n\n\t\tLister<V1Service> serviceLister = new Lister<>(serviceCache).namespace(NAMESPACE_ALL);\n\t\tKubernetesDiscoveryProperties kubernetesDiscoveryProperties = new KubernetesDiscoveryProperties(true,\n\t\t\t\tallNamespaces, Set.of(), true, 60, false, null, Set.of(), Map.of(), null, null, 0, false);\n\n\t\tKubernetesInformerReactiveDiscoveryClient discoveryClient = new KubernetesInformerReactiveDiscoveryClient(\n\t\t\t\tnew KubernetesInformerDiscoveryClient(sharedInformerFactory, serviceLister, endpointsLister, null, null,\n\t\t\t\t\t\tkubernetesDiscoveryProperties));\n\n\t\tList<String> result = discoveryClient.getServices().collectList().block();\n\t\tAssertions.assertEquals(result.size(), 2);\n\t\tAssertions.assertTrue(result.contains(\"service-a\"));\n\t\tAssertions.assertTrue(result.contains(\"service-b\"));\n\t}",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n if (servicesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(services_);\n } else {\n return servicesBuilder_.getMessageList();\n }\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n if (servicesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(services_);\n } else {\n return servicesBuilder_.getMessageList();\n }\n }",
"public List<String> getServices() {\n return runtimeClient.getServices();\n }",
"public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);",
"CdapServiceDescriptor createCdapServiceDescriptor();",
"public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }",
"@Override\n public List<ServiceModel> queryAllServices() throws ApplicationException {\n try {\n // 1. Query basic information of service instance.\n List<ServiceModel> services = getMapper(ServiceModelMapper.class).queryAllServices();\n if(CollectionUtils.isEmpty(services)) {\n return null;\n }\n\n // 2. Query relation data.\n List<ServicePackageMapping> serviceMappings = getMapper(ServicePackageMapper.class).queryAllMappings();\n\n // 3. Compose data.\n return composeData(services, serviceMappings);\n\n } catch(Exception exception) {\n LOGGER.error(\"Fail to delete service instance. {}\", exception);\n throw new ApplicationException(HttpCode.INTERNAL_SERVER_ERROR, ErrorCode.OPER_DB_FAIL);\n }\n }",
"public Map<String, BookBean> retrieveAllBooks() throws SQLException {\r\n\t\tString query = \"select * from BOOK order by CATEGORY\";\t\t\r\n\t\tMap<String, BookBean> rv= new HashMap<String, BookBean>();\r\n\t\tPreparedStatement p = con.prepareStatement(query);\t\t\r\n\t\tResultSet r = p.executeQuery();\r\n\t\t\r\n\t\twhile(r.next()){\r\n\t\t\tString bid = r.getString(\"BID\");\r\n\t\t\tString title = r.getString(\"TITLE\");\r\n\t\t\tint price = r.getInt(\"PRICE\");\r\n\t\t\tString category = r.getString(\"CATEGORY\");\t\t\t\r\n\t\t\tBookBean s = new BookBean(bid, title, price,category);\t\t\t\r\n\t\t\trv.put(bid, s);\r\n\t\t}\r\n\t\tr.close();\r\n\t\tp.close();\r\n\t\treturn rv;\r\n\t\t}",
"public Services() {\n this.indexes = new ArrayList<Integer>();\n// this.indexes.add(ServiceTypes.NOSERVICES.getValue());\n this.services = new ArrayList<String>();\n// this.services.add(ServiceTypes.NOSERVICES.getKey());\n }",
"public void fetchServices() {\n serviciosTotales.clear();\n for (String serviceId : serviceList) {\n databaseServiceReference.child(serviceId).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Servicio servicioTemp = dataSnapshot.getValue(Servicio.class);\n serviciosTotales.add(servicioTemp);\n servicesAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n\n\n }",
"public interface MultipleAddressBookService extends AddressBookService {\n\tAddressBook addContact(String addressBookName, String name, String phoneNumber);\n\tboolean removeContact(String addressBookName, String contactName);\n\tvoid printUniqueContacts();\n\tvoid printContacts(String addressBookName);\n\tContact getContact(String addressBookName, String contactName);\n}",
"public Object _getLSservices(CommandInterpreter ci) {\n\t\tSet<Registration> regs = identityManager.getLocalServices();\n\t\tci.print(\"Local Services:\\n------------------\\n\");\n\t\tfor (Registration r : regs) {\n\t\t\tci.print(\"> Service with VA \" + r.getVirtualAddress().toString() + \" \\n\");\n\t\t\tfor (Part p : r.getAttributes()) {\n\t\t\t\tci.println(\"\\t\" + p.getKey() + \": \" + p.getValue());\n\t\t\t}\n\t\t}\n\n\t\tregs = identityManager.getRemoteServices();\n\t\tci.print(\"Remote Services:\\n------------------\\n\");\n\t\tfor (Registration r : regs) {\n\t\t\tci.print(\"> Service with VA \" + r.getVirtualAddress().toString() + \" \\n\");\n\t\t\tfor (Part p : r.getAttributes()) {\n\t\t\t\tci.println(\"\\t\" + p.getKey() + \": \" + p.getValue());\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public ServiceCat listServiceCatById(String serviceItemId) {\r\n\t\tServiceCat serviceItem = null;\r\n\t\ttry {\r\n\t\t\tserviceItem = (ServiceCat) session.get(ServiceCat.class, serviceItemId);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn serviceItem;\r\n\t}",
"public ServiceAccessBean constructServices() throws Exception {\n\n\tif (services == null) {\t\n\t\t// Construct services bean\n\t\tif (getServicecode() != null) {\n\t\t\tservices = new ServiceAccessBean();\n\t\t\tservices.setInitKey_division(getServicecode().intValue());\n\t\t\tservices.refreshCopyHelper();\n\t\t}\n\t}\n\treturn services;\n}",
"public List<ServiceInstance> queryInstancesByName(String serviceName, ServiceInstanceQuery query);",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<L7ServiceConfig> getContacts(int start, int limit) {\n\n\t\tDetachedCriteria criteria = DetachedCriteria.forClass(L7ServiceConfig.class);\n\n\t\treturn hibernateTemplate.findByCriteria(criteria, start, limit);\n\t}",
"public go.micro.runtime.RuntimeOuterClass.Service getServices(int index) {\n if (servicesBuilder_ == null) {\n return services_.get(index);\n } else {\n return servicesBuilder_.getMessage(index);\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getServices(int index) {\n if (servicesBuilder_ == null) {\n return services_.get(index);\n } else {\n return servicesBuilder_.getMessage(index);\n }\n }",
"public static HashMap<String,JSONObject> getCloudFoundryServiceConfiguration(){\r\n\t\tHashMap<String,JSONObject> names=new HashMap<String,JSONObject>();\r\n\t\tString svcs=System.getenv(\"VCAP_SERVICES\");\r\n\t\tJSONObject VCAP_SERVICES =null;\r\n\t\ttry {\r\n\t\t\tif(svcs==null || svcs.length()==0){\r\n\t\t\t\tSystem.out.println(\"VCAP_SERVICES not defined, loading VCAP_SERVICES.JSON\");\r\n\t\t\t\tVCAP_SERVICES = parts4j.util.Readers.fromResource(\"VCAP_SERVICES.JSON\").onErrException().toJSONObject();\r\n\t\t\t}else{\r\n\t\t\t\tVCAP_SERVICES = parts4j.util.Readers.fromSystemEnv(\"VCAP_SERVICES\").onErrException().toJSONObject();\r\n\t\t\t}\r\n\t\t\tfor(Object type : VCAP_SERVICES.keySet()){\r\n\t\t\t\tJSONArray svcType=(JSONArray)VCAP_SERVICES.get(type);\r\n\t\t\t\tfor(int i=0;i<svcType.size();i++){\r\n\t\t\t\t\tJSONObject svc = (JSONObject)svcType.get(i);\r\n\t\t\t\t\tnames.put((String)svc.get(\"name\"),svc);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow new RuntimeException(\"VCAP_SERVICES env data failed to load\",e);\r\n\t\t}\r\n\t\treturn names;\r\n\t}",
"@GetMapping(value = \"/getInfo\")\n @ResponseBody\n public String getInfo() {\n System.out.println(\"discoveryClient.getServices().size() = \" + discoveryClient.getServices().size());\n\n StringBuffer stringBuffer = new StringBuffer();\n for( String s : discoveryClient.getServices()){\n System.out.println(\"services \" + s);\n List<ServiceInstance> serviceInstances = discoveryClient.getInstances(s);\n for(ServiceInstance si : serviceInstances){\n stringBuffer.append(\" services:\" + s + \":getHost()=\" + si.getHost());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getPort()=\" + si.getPort());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getServiceId()=\" + si.getServiceId());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getUri()=\" + si.getUri());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getMetadata()=\" + si.getMetadata());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getScheme()=\" + si.getScheme());\n stringBuffer.append(\"\\n\");\n\n System.out.println(\" services:\" + s + \":getHost()=\" + si.getHost());\n System.out.println(\" services:\" + s + \":getPort()=\" + si.getPort());\n System.out.println(\" services:\" + s + \":getServiceId()=\" + si.getServiceId());\n System.out.println(\" services:\" + s + \":getUri()=\" + si.getUri());\n System.out.println(\" services:\" + s + \":getMetadata()=\" + si.getMetadata());\n System.out.println(\" services:\" + s + \":getScheme()=\" + si.getScheme());\n System.out.println();\n }\n }\n return \"ok\";\n }",
"public List<String> retrieveServicesOfOrder(String orderID) {\r\n\t\tlogger.info(\"will retrieve ActiveServiceOfExternalPartners\" );\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICE_BY_ORDERID, orderID );\r\n\r\n\t\t\tlogger.debug(\"will retrieve ServicesOfOrder response: \" + response.getClass() );\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"List object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tString[] sor = toJsonObj( (String)response, String[].class ); \r\n\t\t\tlogger.debug(\"ServicesOfOrder response is: \" + response);\r\n\t\t\t\r\n\t\t\treturn Arrays.asList(sor);\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Listof ServicesOfOrder . \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"Collection<? extends Service> getHost();",
"CdapService createCdapService();",
"public String search(String searchString, String serviceGroup, List<String> serviceUrls) throws Exception {\n \n \tDefaultHttpClient httpclient = new DefaultHttpClient();\n \tDataServiceGroup group = cab2bTranslator.getServiceGroupByName(serviceGroup);\n \t\n try {\n String url = GSSProperties.getCab2b2QueryURL()+\"/search/\";\n HttpPost httppost = new HttpPost(url);\n \n List <NameValuePair> nvps = new ArrayList <NameValuePair>();\n nvps.add(new BasicNameValuePair(\"searchString\", searchString));\n nvps.add(new BasicNameValuePair(\"modelGroup\", group.getCab2bName()));\n for(String serviceUrl : serviceUrls) {\n nvps.add(new BasicNameValuePair(\"serviceUrl\", serviceUrl));\n }\n \n httppost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));\n \n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n return httpclient.execute(httppost, responseHandler);\n }\n finally {\n \thttpclient.getConnectionManager().shutdown();\n }\n }",
"CdapServiceInstance createCdapServiceInstance();",
"public List<ServiceInstance> getAllInstances(String serviceName);",
"public List<Service> list(){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \treturn criteria.list();\r\n }",
"protected JsonJavaObject getVcapServices() {\n\t\tJsonJavaObject vcapJson = null;\n\t\tJsonJavaFactory factory = JsonJavaFactory.instanceEx;\n\t\tString sysEnv = BluemixContextManager.getInstance().getVCAP_SERVICES();\n\n\t\ttry {\n\t\t\tvcapJson = (JsonJavaObject) JsonParser.fromJson(factory, sysEnv);\n\n\t\t} catch (JsonException e) {\n\t\t\tPlatform.getInstance().log(e);\n\t\t\tLogging.logError(e);\n\t\t}\n\t\treturn vcapJson;\n\t}",
"private static ServiceAccount getInstanceByVcapServices(String serviceInstanceName) {\n Map<String, String> env = System.getenv();\n String vcapServices = env.get(\"VCAP_SERVICES\");\n if (vcapServices == null) {\n return null;\n }\n\n ServiceAccount account = null;\n try {\n JsonObject obj = new JsonParser().parse(vcapServices).getAsJsonObject();\n JsonArray gaasArray = obj.getAsJsonArray(GAAS_SERVICE_NAME);\n if (gaasArray != null) {\n for (int i = 0; i < gaasArray.size(); i++) {\n JsonObject gaasEntry = gaasArray.get(i).getAsJsonObject();\n if (serviceInstanceName != null) {\n // When service instance name is specified,\n // this method returns only a matching entry\n JsonPrimitive name = gaasEntry.getAsJsonPrimitive(\"name\");\n if (name == null || !serviceInstanceName.equals(name.getAsString())) {\n continue;\n }\n }\n JsonObject credentials = gaasEntry.getAsJsonObject(\"credentials\");\n if (credentials == null) {\n continue;\n }\n JsonPrimitive jsonUri = credentials.getAsJsonPrimitive(\"uri\");\n JsonPrimitive jsonApiKey = credentials.getAsJsonPrimitive(\"api_key\");\n if (jsonUri != null && jsonApiKey != null) {\n logger.info(\"A ServiceAccount is created from VCAP_SERVICES: uri=\"\n + jsonUri + \", api_key=***\");\n account = getInstance(jsonUri.getAsString(), jsonApiKey.getAsString());\n break;\n }\n }\n }\n } catch (JsonParseException e) {\n // Fall through - will return null\n }\n\n return account;\n }",
"public ServerServices searchServerService(String serviceName, int servId);",
"public ArrayList<Servicio> cargarServicios() throws CaException {\n try {\n String strSQL = \"SELECT k_idservicio, f_fycentrada, f_fycsalida, q_valorapagar, k_idvehiculo FROM servicio\";\n Connection conexion = ServiceLocator.getInstance().tomarConexion();\n PreparedStatement prepStmt = conexion.prepareStatement(strSQL);\n ResultSet rs = prepStmt.executeQuery();\n while (rs.next()) {\n Servicio servicio1 = new Servicio();\n servicio1.setK_idservicio(rs.getInt(1));\n servicio1.setF_fycentrada(rs.getString(2));\n servicio1.setF_fycsalida(rs.getString(3));\n servicio1.setQ_valorapagar(rs.getInt(4));\n servicio1.setK_idvehiculo(rs.getInt(5));\n\n servicios.add(servicio1);\n }\n } catch (SQLException e) {\n throw new CaException(\"ServicioDAO\", \"No pudo recuperar el servicio\" + e.getMessage());\n }finally {\n ServiceLocator.getInstance().liberarConexion();\n }\n return servicios;\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n return services_;\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n return services_;\n }",
"public void testServiceList()\n {\n ServiceList services = serviceSetup();\n\n ServiceIterator it = services.createServiceIterator();\n int i = 0;\n try\n {\n while (it.hasNext())\n {\n // Increment the service counter\n i++;\n // Get our next service\n ServiceExt service = (ServiceExt) it.nextService();\n log(\"******************************************************************\");\n log(\"* Services - Counter: (\" + i + \")\");\n dumpService(service);\n\n ServiceDetailsHandle[] handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n\n ServiceDetailsExt[] details = new ServiceDetailsExt[handles.length];\n for (int j = 0; j < handles.length; j++)\n {\n details[j] = sidb.createServiceDetails(handles[j]);\n dumpServiceDetails(details[j]);\n assertEquals(\"ServiceDetails' Service does not match expected value\", service,\n details[j].getService());\n assertEquals(\"ServiceType does not match\", service.getServiceType(), details[j].getServiceType());\n }\n log(\"******************************************************************\");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public List/*WsCompileEditorSupport.ServiceSettings*/ getServices();",
"private List getActiveServiceList(List servicesList) {\r\n\r\n\t\tList activeServiceList = new ArrayList();\r\n\t\t\r\n\t\tServiceVO activeService;\t\t\r\n\t\t\r\n\t\tif (servicesList != null) {\r\n\t\t\tfor (Iterator iterator = servicesList.iterator(); iterator.hasNext();) {\r\n\t\t\t\tactiveService = (ServiceVO) iterator.next();\r\n\t\t\t\tif (activeService.getStatus() != null) {\r\n\t\t\t\t\tif (activeService.getStatus().trim().equalsIgnoreCase(\"Ativado\")) {\r\n\t\t\t\t\t\tactiveServiceList.add(activeService);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn activeServiceList;\r\n\t\t\r\n\t}",
"Map getConnectionManagerMap();",
"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 go.micro.runtime.RuntimeOuterClass.Service getServices(int index) {\n return services_.get(index);\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getServices(int index) {\n return services_.get(index);\n }",
"private static ArrayList<ServiceConnector> loadServiceConnectors(Config conf, boolean timingMode,\n\t\t\tboolean debugMode) {\n\t\tArrayList<ServiceConnector> connectors = new ArrayList<ServiceConnector>();\n\t\ttry {\n\t\t\tJSONArray apis = (JSONArray) conf.getParam(\"apis\");\n\t\t\tfor (Object api : apis) {\n\t\t\t\tif (api instanceof JSONObject && ((JSONObject) api).has(\"type\") && ((JSONObject) api).has(\"key\")) {\n\t\t\t\t\tString apiType = ((JSONObject) api).getString(\"type\");\n\t\t\t\t\tString apiKey = ((JSONObject) api).getString(\"key\");\n\t\t\t\t\tLOGGER.info(String.format(\"Loading connector type %s with API key %s\", apiType, apiKey));\n\t\t\t\t\tJSONObject params = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparams = ((JSONObject) api).getJSONObject(\"params\");\n\t\t\t\t\t\tLOGGER.info(\"API has optional params: \" + params);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLOGGER.info(\"API has no optional params defined.\");\n\t\t\t\t\t}\n\t\t\t\t\tconnectors.add(\n\t\t\t\t\t\t\tServiceConnectorFactory.getServiceConnector(apiType, apiKey, timingMode, params, LOGGER));\n\t\t\t\t} else {\n\t\t\t\t\tLOGGER.warning(\"Invalid API specification: \" + api);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassCastException e) {\n\t\t\tString errorMsg = \"Invalid configuration of APIs: \" + e.getMessage();\n\t\t\tprintError(errorMsg, null, 1, debugMode, e);\n\t\t}\n\t\treturn connectors;\n\t}",
"private DFAgentDescription[] findService(String name, String type) {\n\t\ttry {\n\t\t\tServiceDescription filter = new ServiceDescription();\n\t\t\tfilter.setName(name);\n\t\t\tfilter.setType(type);\n\n\t\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\t\tdfd.addServices(filter);\n\n\t\t\tDFAgentDescription[] results = DFService.search(this, dfd);\n\t\t\treturn results;\n\n\t\t} catch (FIPAException e) {\n\t\t\tLOG.error(\"exception while searching service {}:{} : {}\", name, type, e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public Map getServicesInUseMap() {\n \t\tsynchronized (contextLock) {\n \t\t\treturn servicesInUse;\n \t\t}\n \t}",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServicesOrBuilder(\n int index);",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServicesOrBuilder(\n int index);",
"CdapServiceInstanceConfiguration createCdapServiceInstanceConfiguration();",
"@RequestMapping(\"getCatalog2\")\n public List<PmsBaseCatalog2> getCatalog2(String catalog1Id){\n List<PmsBaseCatalog2> catalog2s=catalogService.getCatalog2(catalog1Id);\n return catalog2s;\n }",
"java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList();",
"java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList();",
"public List<AccesorioBicicletaEntity> getAccesorioBici() {\r\n LOGGER.info(\"Inicia proceso de consultar todas las Bicicletaes\");\r\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\r\n List<AccesorioBicicletaEntity> acc = persistence.findAll();\r\n LOGGER.info(\"Termina proceso de consultar todas las Bicicletaes\");\r\n return acc;\r\n }",
"public static void startActionGetAllBiers(Context context/*, String param1, String param2*/) {\n Intent intent = new Intent(context, GetBiersServices.class);\n intent.setAction(ACTION_GET_ALL_BIERS);\n //intent.putExtra(EXTRA_PARAM1, param1);\n //intent.putExtra(EXTRA_PARAM2, param2);\n context.startService(intent);\n }",
"private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }",
"@Override\n public Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {\n \t Map<Class<? extends IFloodlightService>, IFloodlightService> m = new HashMap<Class<? extends IFloodlightService>, IFloodlightService>();\n m.put(IPktinHistoryService.class, this);\n return m;\n }"
] |
[
"0.60675144",
"0.5906865",
"0.5497336",
"0.53598094",
"0.5345638",
"0.53265524",
"0.53104484",
"0.52953017",
"0.51581377",
"0.51497144",
"0.5147186",
"0.5137276",
"0.5137276",
"0.51259637",
"0.5124942",
"0.5124942",
"0.5116362",
"0.5089222",
"0.50656223",
"0.50580853",
"0.5010026",
"0.5005846",
"0.4996444",
"0.4993329",
"0.49778262",
"0.4945456",
"0.49165547",
"0.4902527",
"0.4900997",
"0.4862437",
"0.4821233",
"0.48206043",
"0.48136875",
"0.47794944",
"0.47540826",
"0.47424552",
"0.4741055",
"0.4727128",
"0.47218353",
"0.46767908",
"0.4671679",
"0.46653792",
"0.46580824",
"0.46439043",
"0.46189064",
"0.46179044",
"0.4599596",
"0.459206",
"0.459206",
"0.4589681",
"0.4587533",
"0.45833638",
"0.4581618",
"0.45728967",
"0.4569955",
"0.45664224",
"0.456185",
"0.45603722",
"0.45528218",
"0.45378733",
"0.4521728",
"0.45206407",
"0.45191625",
"0.45138422",
"0.45138422",
"0.4498505",
"0.44970977",
"0.44901463",
"0.44850612",
"0.4476389",
"0.44583637",
"0.44549474",
"0.44546986",
"0.44478422",
"0.44352347",
"0.44345677",
"0.4431116",
"0.44232073",
"0.44143432",
"0.44143432",
"0.44092742",
"0.44057783",
"0.4402826",
"0.439802",
"0.4392678",
"0.43883863",
"0.43883863",
"0.43860933",
"0.4378762",
"0.43721727",
"0.43582383",
"0.43582383",
"0.43513665",
"0.43483123",
"0.43463898",
"0.43463898",
"0.4345656",
"0.43402642",
"0.43373302",
"0.43304917"
] |
0.8254594
|
0
|
Query caB2B for a keyword search on a particular service or caB2B modelGroup.
|
public String search(String searchString, String serviceGroup, List<String> serviceUrls) throws Exception {
DefaultHttpClient httpclient = new DefaultHttpClient();
DataServiceGroup group = cab2bTranslator.getServiceGroupByName(serviceGroup);
try {
String url = GSSProperties.getCab2b2QueryURL()+"/search/";
HttpPost httppost = new HttpPost(url);
List <NameValuePair> nvps = new ArrayList <NameValuePair>();
nvps.add(new BasicNameValuePair("searchString", searchString));
nvps.add(new BasicNameValuePair("modelGroup", group.getCab2bName()));
for(String serviceUrl : serviceUrls) {
nvps.add(new BasicNameValuePair("serviceUrl", serviceUrl));
}
httppost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
ResponseHandler<String> responseHandler = new BasicResponseHandler();
return httpclient.execute(httppost, responseHandler);
}
finally {
httpclient.getConnectionManager().shutdown();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"SearchResultCompany search(String keywords);",
"public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }",
"public void searchKeyword() throws Exception {\n\t\t\n\t\tString keyword = dataHelper.getData(DataColumn.Keyword);\n\n\t\twh.sendKeys(CommonElements.searchTxtBox, keyword);\n\t\twh.clickElement(CommonElements.searchBtn);\n\n\t\tif (wh.isElementPresent(PLPUI.VerifyPLPPage, 4)\n\t\t\t\t&& wh.getText(CommonElements.breadCumb).contains(\n\t\t\t\t\t\tkeyword)) {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User navigated to search plp page.\", StepResult.PASS);\n\t\t} else {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User is not navigated to search plp page.\",\n\t\t\t\t\tStepResult.FAIL);\n\n\t\t\tterminateTestCase(\"search plp page\");\n\t\t}\n\t\t\n\t}",
"@Override\n public List<KBHandle> searchItems(KnowledgeBase aKB, String aQuery)\n {\n return disambiguate(aKB, null, ConceptFeatureValueType.ANY_OBJECT, aQuery, null, 0, null);\n }",
"@GET(\"search.php\")\n Call<MealData> getMealsBySearchQuery(@Query(\"s\") String searchKeyword);",
"public SearchResponse search(SearchRequest request) throws SearchServiceException;",
"public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }",
"SearchResponse search(SearchRequest searchRequest) throws IOException;",
"List<SearchResult> search(SearchQuery searchQuery);",
"public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }",
"List<Codebadge> search(String query);",
"@Test\n\tpublic void testKeywordQuery(){\n\t\t//manager.getResponse(\"american football \"); //match multiple keywords\n//\t\tmanager.getResponse(\"list of Bond 007 movies\");\n//\tmanager.getResponse(\"Disney movies\");\n\t\t//manager.keywordQuery(\"Paul Brown Stadium location\");\n\t\t//manager.keywordQuery(\"0Francesco\");\n System.out.println(\"******* keyword query *******\");\n\t\t//manager.keywordQuery(\"sportspeople in tennis\");\n\t\t//manager.keywordSearch(\"list of movies starring Sean Connery\",ElasticIndex.analyzed,100 );\n//\t\tmanager.keywordSearch(\"movies starring Sean Connery\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"musical movies tony award\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"United states professional sports teams\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"movies academy award nominations\",ElasticIndex.notStemmed,100 );\n System.out.println(SearchResultUtil.toSummary(manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.notLowercased,20 )));\n //manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notAnalyzed,100 );\n //(better than analyzed) manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notStemmed,100 );\n System.out.println(\"*****************************\");\n\n\t\t//manager.keywordQuery(\"Disney movies\");\n\t}",
"public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}",
"private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }",
"public FindCommand(String keyword) {\n this.keyword = keyword;\n }",
"Page<Tbc_analises_componente> search(String query, Pageable pageable);",
"Keyword findKeywordByName(String name);",
"SearchResponse query(SearchRequest request, Map<SearchParam, String> params);",
"@Override\n public ArrayList<ItemBean> searchAll(String keyword)\n {\n String query= \"SELECT * FROM SilentAuction.Items WHERE Item_ID =?\";\n //Seacrh by Category Query\n String query1=\"SELECT * FROM SilentAuction.Items WHERE Category LIKE?\";\n //Seaches and finds items if Category is inserted\n ArrayList<ItemBean> resultsCat = searchItemsByCategory(query1,keyword);\n //Searches and finds items if number is inserted \n ArrayList<ItemBean> resultsNum= searchItemsByNumber(query,keyword);\n resultsCat.addAll(resultsNum);\n return resultsCat;\n }",
"SearchResponse search(Pageable pageable, QueryBuilder query, AggregationBuilder aggregation);",
"List<DataTerm> search(String searchTerm);",
"@Override\n public Data3DPlastic search() {\n return super.search();\n }",
"@RequestMapping(\"/search\")\r\n\tpublic ModelAndView search(@RequestParam String keyword) {\n\t\tModelAndView mav = new ModelAndView(\"search\");\r\n\t\tList<Customer> result = service.search(keyword);\r\n\t\tmav.addObject(\"result\",result);\r\n\t\t\r\n\t\treturn mav;\r\n\t}",
"List<AlbumVO> searchAlbum(String searchText) throws Exception;",
"private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }",
"public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);",
"private List<BusinessVO> searchBusiness(String search, String sendingId) {\n\t\tString searchTerm = \"%\"+StringUtil.checkVal(search).toLowerCase()+\"%\";\n\t\tlog.debug(\"searching businesses for \" + searchTerm);\n\t\tStringBuilder sql = new StringBuilder(250);\n\t\tString schema = getCustomSchema();\n\t\tList<Object> params = new ArrayList<>();\n\t\tString[] idParts = sendingId.split(\"_\");\n\n\t\tsql.append(\"select * from \").append(schema).append(\"rezdox_business b \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(\"(select business_id from \").append(schema).append(\"rezdox_business_member_xr where status_flg = 1 group by business_id) bmxa on b.business_id = bmxa.business_id \");\n\t\t//omit business over their connection quota\n\t\tsql.append(DBUtil.INNER_JOIN).append(schema).append(\"rezdox_connection_quota_view q on b.business_id=q.business_id and q.quota_no > 0 \");\n\n\t\tsql.append(\"where (lower(b.business_nm) like ? or lower(b.email_address_txt) like ? or lower(b.address_txt) like ?) \");\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\n\t\tsql.append(\"and b.business_id != ? and b.business_id not in ( select case \");\n\t\tparams.add(idParts[1]);\n\n\t\tif(\"m\".equalsIgnoreCase(idParts[0])) {\n\t\t\t//member looking for business\n\t\t\tsql.append(\"when sndr_member_id is not null and sndr_member_id=? and rcpt_business_id is not null then rcpt_business_id \");\n\t\t\tsql.append(\"when rcpt_member_id is not null and rcpt_member_id=? and sndr_business_id is not null then sndr_business_id \");\t\t\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t}else {\n\t\t\t//business looking for business\n\t\t\tsql.append(\"when sndr_business_id is not null and sndr_business_id=? and rcpt_business_id is not null then rcpt_business_id \");\n\t\t\tsql.append(\"when rcpt_business_id is not null and rcpt_business_id=? and sndr_business_id is not null then sndr_business_id \");\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t}\n\t\tsql.append(\"else '-1' end as business_id from \").append(schema).append(\"rezdox_connection group by business_id)\");\n\t\tsql.append(\" order by business_nm asc\");\n\n\t\t//run the query & return the results\n\t\tDBProcessor dbp = new DBProcessor(dbConn, schema);\n\t\tdbp.setGenerateExecutedSQL(log.isDebugEnabled());\n\t\tList<BusinessVO> data = dbp.executeSelect(sql.toString(), params, new BusinessVO());\n\t\tlog.debug(\"number of businesses found \" + data.size());\n\t\treturn data;\n\t}",
"@Override\n public List<Vehicle> searchByQuery(String q) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(\n Aggregation.addFields()\n .addFieldWithValue(\n \"yearString\", ConvertOperators.ToString.toString(\"cars.vehicles.year\"))\n .build());\n\n Query query = new Query();\n query.addCriteria(Criteria.where(\"cars.vehicles.model\").regex(\".*\" + q + \".*\"));\n Criteria criteria = new Criteria();\n\n Criteria modelCriteria = new Criteria(\"cars.vehicles.model\");\n BsonRegularExpression modelRegex = new BsonRegularExpression(\".*\" + q + \".*\");\n modelCriteria.regex(modelRegex);\n Criteria makeCriteria = new Criteria(\"cars.vehicles.make\");\n BsonRegularExpression makeRegex = new BsonRegularExpression(\".*\" + q + \".*\");\n makeCriteria.regex(makeRegex);\n\n Criteria yearCriteria = new Criteria(\"yearString\");\n BsonRegularExpression yearRegex = new BsonRegularExpression(\".*\" + q + \".*\");\n yearCriteria.regex(yearRegex);\n criteria.orOperator(modelCriteria, makeCriteria, yearCriteria);\n operations.add(match(criteria));\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }",
"public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);",
"@Test\n public void findsByKeyword() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"ttt\")\n );\n final Book book = base.books().add(\n \"@book{best2014, author=\\\"Walter\\\"}\"\n );\n final Quotes quotes = base.quotes();\n quotes.add(\n book, \"never give up and never think about bad things, Bobby\",\n \"99-101, 256-257, 315\"\n );\n MatcherAssert.assertThat(\n quotes.refine(\"bobby\").iterate(),\n Matchers.<Quote>iterableWithSize(1)\n );\n MatcherAssert.assertThat(\n quotes.refine(\"another-something\").iterate(),\n Matchers.<Quote>iterableWithSize(0)\n );\n }",
"public NsSearchResult<RecT> search() {\n Object searchRecord = toNativeQuery();\n NsSearchResult<RecT> result = clientService.search(searchRecord);\n if (!result.isSuccess()) {\n NetSuiteClientService.checkError(result.getStatus());\n }\n return result;\n }",
"@In String search();",
"@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if ((inputSourceCase_ == 10) && (searchBuilder_ != null)) {\n return searchBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }",
"public FindCommand(String keyword) throws EmptyDescriptionException {\n ExceptionChecker.checkEmptyDescription(\"find\", keyword);\n this.keyword = keyword;\n }",
"public FindCommand(String keyword) {\n super();\n this.keyword = keyword;\n }",
"public void search(Map<String, String> searchParam);",
"List<Cemetery> search(String query);",
"public void searchBooks(String searchKeyword) {\n\n\n books = new ArrayList<>();\n Call<BooksObject> call = NetworkUtils.booksAPI.findBooks(searchKeyword, NetworkUtils.apiKey, 5);\n call.enqueue(new Callback<BooksObject>() {\n @Override\n public void onResponse(Call<BooksObject> call, Response<BooksObject> response) {\n if (!response.isSuccessful()) {\n Log.i(TAG, \"\" + response.code());\n return;\n }\n\n BooksObject booksObject = response.body();\n ArrayList<Book> bookList = booksObject.getItems();\n for (Book b : bookList) {\n String id = b.getId();\n boolean exists = false;\n for (Book bo : library) {\n if (id.equals(bo.getId())) {\n exists = true;\n break;\n }\n }\n if (!exists) {\n books.add(b);\n }\n }\n\n customSearchAdapter = new CustomSearchAdapter(getContext(), books);\n acLibrary.setAdapter(customSearchAdapter);\n customSearchAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onFailure(Call<BooksObject> call, Throwable t) {\n Log.i(TAG, t.getMessage());\n }\n });\n\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }",
"public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }",
"public String advancedSearchBooks() {\r\n List<Books> books = new ArrayList<Books>();\r\n keywords = keywords.trim();\r\n \r\n switch (searchBy) {\r\n case \"all\":\r\n return searchBooks();\r\n case \"title\":\r\n books = findBooksByTitle(keywords);\r\n break;\r\n case \"identifier\":\r\n books = findBooksByIdentifier(keywords);\r\n break;\r\n case \"contributor\":\r\n books = findBooksByContributor(keywords);\r\n break;\r\n case \"publisher\":\r\n books = findBooksByPublisher(keywords);\r\n break;\r\n case \"year\":\r\n books = findBooksByYear(keywords);\r\n break;\r\n case \"genre\":\r\n books = findBooksByGenre(keywords);\r\n break;\r\n case \"format\":\r\n books = findBooksByFormat(keywords);\r\n break;\r\n }\r\n clearFields();\r\n\r\n if (books == null || books.isEmpty()) {\r\n books = new ArrayList<Books>();\r\n }\r\n\r\n return displayBooks(books);\r\n }",
"SearchResponse search(Pageable pageable, QueryBuilder query, Collection<AggregationBuilder> aggregations);",
"private void search(String product) {\n // ..\n }",
"public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }",
"public void performSearch() {\n OASelect<CorpToStore> sel = getCorpToStoreSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }",
"@Query(\"SELECT s FROM Store s WHERE s.storename LIKE %?1%\" + \" OR CONCAT(s.address, '') LIKE %?1%\")\n\tpublic List<Store> search(String keyword);",
"@Override\n\tpublic List<ServiceInfo> search(String keywords) {\n\t\treturn null;\n\t}",
"Search getSearch();",
"private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}",
"CampusSearchQuery generateQuery();",
"public void search() {\r\n \t\r\n }",
"public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public abstract HashMap search(String keyword);",
"public void doSearch(String searchText){\n }",
"public List<Warehouse> search(String keyword) {\n\t\t return warehouseDAO.search(keyword);\r\n\t}",
"public void searchByCategory(View v){\n category = searchSpinner.getSelectedItem().toString();\n if(category!=null && connection.isOnline(this)){\n new SearchByCategoryAsync().execute();\n }\n }",
"List<Card> search(String searchString, long userId) throws PersistenceCoreException;",
"List<ShipmentInfoPODDTO> search(String query);",
"public List<Budget> search (String search) throws SQLException{\n List<Budget> found = new ArrayList<Budget>();\n DatabaseConnection dbaInfo = new DatabaseConnection();\n Connection conn = null;\n try {\n conn = dbaInfo.getConnection();\n search = search + \"%\";\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM finance.budget WHERE (bud_category ILIKE ?) OR (bud_description ILIKE ?);\");\n ps.setString(1, search);\n ps.setString(2, search);\n ResultSet rs = ps.executeQuery();\n found = listResults(rs);\n }catch (Exception error) {\n error.printStackTrace();\n conn.rollback();\n }finally {\n conn.close();\n }\n return found;\n }",
"public void doSearch(String query)\n \t{\n \t\tlistener.onQueryTextSubmit(query);\n \t}",
"public List<Product> search(String searchString);",
"@RequestMapping(value = \"/search\", method = { RequestMethod.GET })\r\n\tpublic String search(Model model) {\n\t\tList<String> indexFieldNamesForMM = ecoreMetamodelService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForMM\", indexFieldNamesForMM);\r\n\r\n\t\t// Tags for T. (statics)\r\n\t\t// Get all Transformations tags\r\n\t\tList<String> indexFieldNamesForT = atlTransformationService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForT\", indexFieldNamesForT);\r\n\r\n\t\t// Tags for M. (dinamics)\r\n\t\t// Get all tags\r\n\t\tList<String> indexFieldNamesForM = modelService.getAllIndexTags();\r\n\r\n\t\t// Remove Metamodels and Transformations tags in order to find out only\r\n\t\t// the model tags.\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForMM);\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForT);\r\n\r\n\t\tmodel.addAttribute(\"indexFieldNamesForM\", indexFieldNamesForM);\r\n\r\n\t\treturn \"public.search\";\r\n\t}",
"private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }",
"@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}",
"@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 10) {\n return searchBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }",
"private void txtSearchingBrandKeyReleased(java.awt.event.KeyEvent evt) {\n String query=txtSearchingBrand.getText().toUpperCase();\n filterData(query);\n }",
"@Override\n\tpublic void searchMembers(String keyword) {\n\t}",
"List<Corretor> search(String query);",
"SearchResult<TimelineMeta> search(SearchQuery searchQuery);",
"@Test\r\n public void testSearchKeyword() throws Exception {\r\n LOG.info(\"searchKeyword\");\r\n String query = \"action\";\r\n int page = 0;\r\n List<Keyword> result = tmdb.searchKeyword(query, page);\r\n assertFalse(\"No keywords found\", result == null);\r\n assertTrue(\"No keywords found\", result.size() > 0);\r\n }",
"private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }",
"public static SearchQuery buildAutocompleteKnowledgeQuery(String searchWord) {\n\n BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();\n boolQueryBuilder.should(QueryBuilders.matchQuery(\"nameNgram\", searchWord))\n .must(QueryBuilders.matchQuery(\"nameSimple\", searchWord));\n// boolQueryBuilder.must(QueryBuilders.matchQuery(\"nameNgram\", searchWord)).must(QueryBuilders.matchQuery(\"nameSimple\", searchWord));\n// boolQueryBuilder.should(QueryBuilders.matchQuery(\"nameNgram\", searchWord));\n\n return buildNativeQuery(boolQueryBuilder, 0, 20);\n }",
"@RequestMapping(\"/search\")\n public String searchItemList(String keyword, @RequestParam(defaultValue = \"1\") Integer page, Model model) throws IOException, SolrServerException {\n SearchResult result = searchService.search(keyword, page, SEARCH_RESULT_ROWS);\n model.addAttribute(\"query\", keyword);\n model.addAttribute(\"totalPages\", result.getTotalPages());\n model.addAttribute(\"page\", page);\n model.addAttribute(\"recourdCount\", result.getRecordCount());\n model.addAttribute(\"itemList\", result.getItemList());\n return \"search\";\n }",
"List<Card> search(String searchString) throws PersistenceCoreException;",
"@Override\r\n\tpublic List<Product> search(String key) {\n\tProductExample example = new ProductExample();\r\n\texample.createCriteria().andNameLike(\"%\"+key+\"%\");\r\n\texample.setOrderByClause(\"id desc\");\r\n\tList<Product> list = productMapper.selectByExample(example);\r\n\tsetAll(list);\r\n\treturn list;\r\n\t\t}",
"public static String getTheMatchResult(String searchType) throws IOException {\n String matchResult = null;\n CouchBaseUtility bucketExtractor = new CouchBaseUtility();\n CouchBaseUtility.openBucket();\n String query = null;\n String array1[] = Serenity.getCurrentSession().get(\"SearchCategory\").toString().split(\":\");\n if (searchType.equals(\"case\")) {\n if (Serenity.getCurrentSession().get(\"SearchCategory\").toString().equals(\"CaseId\")) {\n query = \"Select * from CaseManagement where documentType='Case' and caseId = '\" + Serenity.getCurrentSession()\n .get(\"CaseId\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .equals(\"PaymentId\")) {\n query = \"Select * from CaseManagement where paymentTransaction.txnPaymentId = '\" + Serenity\n .getCurrentSession().get(\"OutgoingPaymentID\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString().equals(\"OrderId\")) {\n query = \"Select * from CaseManagement where paymentTransaction.txnOrderId = '\" + Serenity\n .getCurrentSession().get(\"OrderId\").toString() + \"'and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .equals(\"CustomerId\")) {\n query = \"Select * from CaseManagement where customer.customerId = '\" + Serenity\n .getCurrentSession().get(\"customerId\").toString() + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .equals(\"ConfirmationNumber\")) {\n query = \"Select * from CaseManagement where paymentTransaction.confirmationNumber = '\"\n + Serenity.getCurrentSession().get(\"ConfirmationNumber\").toString()\n + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .contains(\"Region & Country\")) {\n query = \"Select * from CaseManagement where regionInfo.regionCode='\" + Serenity\n .getCurrentSession().get(\"RegionCode\").toString() + \"' and regionInfo.countryCode='\"\n + Serenity.getCurrentSession().get(\"CountryCode\").toString()\n + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .contains(\"Assigned - Saved/Pended\")) {\n query =\n \"Select * from CaseManagement where caseStatusId = '4' and classification='\" + array1[2]\n + \"' and processing_Stage='\" + array1[1] + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .contains(\"Assigned - Working\")) {\n query =\n \"Select * from CaseManagement where caseStatusId = '1' and classification='\" + array1[2]\n + \"' and processing_Stage='\" + array1[1] + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .contains(\"Assigned - Not Picked Up\")) {\n query =\n \"Select * from CaseManagement where caseStatusId = '2' and classification='\" + array1[2]\n + \"' and processing_Stage='\" + array1[1] + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .contains(\"Completed - Pass/Fail\")) {\n query =\n \"Select * from CaseManagement where caseStatusId = '9' and classification='\" + array1[2]\n + \"' and processing_Stage='\" + array1[1] + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .contains(\"Escalated - In Queue\")) {\n query = \"Select * from CaseManagement where caseStatusId = '48' and classification='\"\n + array1[2] + \"' and processing_Stage='\" + array1[1] + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString().contains(\"New\")) {\n query = \"Select * from CaseManagement where caseStatusId = '41' and classification='\"\n + array1[2] + \"' and processing_Stage='\" + array1[1] + \"' and documentType='Case'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .contains(\"Release to Queue - Skipped\")) {\n query =\n \"Select * from CaseManagement where caseStatusId = '5' and classification='\" + array1[2]\n + \"' and processing_Stage='\" + array1[1] + \"' and documentType='Case'\";\n }\n } else if ((searchType.equals(\"payment\")) && (Serenity.getCurrentSession()\n .get(\"goodBadPaymentFlag\").equals(false))) {\n if (Serenity.getCurrentSession().get(\"SearchCategory\").toString().equals(\"PaymentId\")) {\n query =\n \"SELECT cp.payment.platform, cp.payment.orderID as orderId, cp.payment.sourcePaymentID as paymentId, cc.caseId, \"\n + \"cp.payment.customerID as customerId, party.name.name as customer, cp.payment.creationDate as created, cp.payment.expectedValueDate as valueDate, \"\n + \"cp.payment.currency, cp.payment.amount, party.address.countryCode as country , cc.regionInfo.countryName as BranchCountryName,cc.regionInfo.regionName as RegionName \"\n + \" From CaseManagement cc Join CaseManagement cp ON KEYS(cc.paymentTransaction.paymentDocumentID) \"\n + \"UNNEST cp.payment.parties AS party WHERE party.type = 'Customer' AND cc.paymentTransaction.txnPaymentId ='\"\n + Serenity.getCurrentSession().get(\"OutgoingPaymentID\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString().equals(\"OrderId\")) {\n query =\n \"SELECT cp.payment.platform, cp.payment.orderID as orderId, cp.payment.sourcePaymentID as paymentId, cc.caseId, \"\n + \"cp.payment.customerID as customerId, party.name.name as customer, cp.payment.creationDate as created, cp.payment.expectedValueDate as valueDate, \"\n + \"cp.payment.currency, cp.payment.amount, party.address.countryCode as country , cc.regionInfo.countryName as BranchCountryName,cc.regionInfo.regionName as RegionName \"\n + \" From CaseManagement cc Join CaseManagement cp ON KEYS(cc.paymentTransaction.paymentDocumentID) \"\n + \"UNNEST cp.payment.parties AS party WHERE party.type = 'Customer' AND cc.paymentTransaction.txnOrderId ='\"\n + Serenity.getCurrentSession().get(\"OrderId\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .equals(\"CustomerId\")) {\n query =\n \"SELECT cp.payment.platform, cp.payment.orderID as orderId, cp.payment.sourcePaymentID as paymentId, cc.caseId, \"\n + \"cp.payment.customerID as customerId, party.name.name as customer, cp.payment.creationDate as created, cp.payment.expectedValueDate as valueDate, \"\n + \"cp.payment.currency, cp.payment.amount, party.address.countryCode as country , cc.regionInfo.countryName as BranchCountryName,cc.regionInfo.regionName as RegionName \"\n + \" From CaseManagement cc Join CaseManagement cp ON KEYS(cc.paymentTransaction.paymentDocumentID) \"\n + \"UNNEST cp.payment.parties AS party WHERE party.type = 'Customer' AND cp.payment.customerID ='\"\n + Serenity.getCurrentSession().get(\"customerId\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .equals(\"ConfirmationNumber\")) {\n query =\n \"SELECT cp.payment.platform, cp.payment.orderID as orderId, cp.payment.sourcePaymentID as paymentId, cc.caseId, \"\n + \"cp.payment.customerID as customerId, party.name.name as customer, cp.payment.creationDate as created, cp.payment.expectedValueDate as valueDate, \"\n + \"cp.payment.currency, cp.payment.amount, party.address.countryCode as country , cc.regionInfo.countryName as BranchCountryName,cc.regionInfo.regionName as RegionName \"\n + \" From CaseManagement cc Join CaseManagement cp ON KEYS(cc.paymentTransaction.paymentDocumentID) \"\n + \"UNNEST cp.payment.parties AS party WHERE party.type = 'Customer' AND cp.payment.customerID ='\"\n + Serenity.getCurrentSession().get(\"customerId\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .equals(\"Region & Country\")) {\n query =\n \"SELECT cp.payment.platform, cp.payment.orderID as orderId, cp.payment.sourcePaymentID as paymentId, cc.caseId, \"\n + \"cp.payment.customerID as customerId, party.name.name as customer, cp.payment.creationDate as created, cp.payment.expectedValueDate as valueDate, \"\n + \"cp.payment.currency, cp.payment.amount, party.address.countryCode as country , cc.regionInfo.countryName as BranchCountryName,cc.regionInfo.regionName as RegionName \"\n + \" From CaseManagement cc Join CaseManagement cp ON KEYS(cc.paymentTransaction.paymentDocumentID) \"\n + \"UNNEST cp.payment.parties AS party WHERE party.type = 'Customer' AND cp.payment.customerID ='\"\n + Serenity.getCurrentSession().get(\"customerId\").toString() + \"'\";\n }\n\n } else if (searchType.equals(\"payment\") && (Serenity.getCurrentSession()\n .get(\"goodBadPaymentFlag\").equals(true))) {\n if (Serenity.getCurrentSession().get(\"SearchCategory\").toString().equals(\"PaymentId\")) {\n query =\n \"select CaseManagement.payment.platform,CaseManagement.payment.orderID,CaseManagement.payment.sourcePaymentID,CaseManagement.payment.customerID,CaseManagement.payment.parties[0].name.name,CaseManagement.payment.parties[0].address.countryCode,CaseManagement.payment.creationDate,\"\n + \"CaseManagement.payment.expectedValueDate,CaseManagement.payment.currency,CaseManagement.payment.amount,CaseManagement.payment.regionInfo.countryName,CaseManagement.payment.regionInfo.regionName \"\n + \"from CaseManagement where documentType='Payment' and CaseManagement.payment.sourcePaymentID='\"\n + Serenity.getCurrentSession().get(\"OutgoingPaymentID\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString().equals(\"OrderId\")) {\n query =\n \"select CaseManagement.payment.platform,CaseManagement.payment.orderID,CaseManagement.payment.sourcePaymentID,CaseManagement.payment.customerID,CaseManagement.payment.parties[0].name.name,CaseManagement.payment.parties[0].address.countryCode,CaseManagement.payment.creationDate,\"\n + \"CaseManagement.payment.expectedValueDate,CaseManagement.payment.currency,CaseManagement.payment.amount,CaseManagement.payment.regionInfo.countryName,CaseManagement.payment.regionInfo.regionName \"\n + \"from CaseManagement where documentType='Payment' and CaseManagement.payment.orderID='\"\n + Serenity.getCurrentSession().get(\"OrderId\").toString() + \"'\";\n } else if (Serenity.getCurrentSession().get(\"SearchCategory\").toString()\n .equals(\"CustomerId\")) {\n query =\n \"select CaseManagement.payment.platform,CaseManagement.payment.orderID,CaseManagement.payment.sourcePaymentID,CaseManagement.payment.customerID,CaseManagement.payment.parties[0].name.name,CaseManagement.payment.parties[0].address.countryCode,CaseManagement.payment.creationDate,\"\n + \"CaseManagement.payment.expectedValueDate,CaseManagement.payment.currency,CaseManagement.payment.amount,CaseManagement.payment.regionInfo.countryName,CaseManagement.payment.regionInfo.regionName \"\n + \"from CaseManagement where documentType='Payment' and CaseManagement.payment.customerID='\"\n + Serenity.getCurrentSession().get(\"customerId\").toString() + \"'\";\n }\n }\n // bucketExtractor.fetchAndSaveDocuments();\n\n bucketExtractor.queryAndSaveDocumentIDsInSession(query, searchType);\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n //return res.then().extract().statusCode();\n String searchCaseAPIResponse = res.then().extract().response().getBody().asString();\n //JSONObject obj=(JSONObject)JSONValue.parse(searchCaseAPIResponse);\n //JSONArray arr=(JSONArray)obj.get(\"cases\");\n JSONArray array;\n if (searchType.equals(\"payment\")) {\n array = JsonPath.read(searchCaseAPIResponse, \"payments[*]\");\n } else {\n array = JsonPath.read(searchCaseAPIResponse, \"cases[*]\");\n }\n\n System.out.println(\"response body : \" + searchCaseAPIResponse);\n try {\n if (compare(Serenity.getCurrentSession().get(\"caseDetailsFromQuery\").toString(),\n searchCaseAPIResponse, searchType, array.size())) {\n matchResult = \"Pass\";\n\n } else {\n matchResult = \"Fail\";\n\n }\n } catch (Exception e) {\n\n }\n\n String testData = Serenity.getCurrentSession().get(\"stringBuffResult\").toString();\n Allure.addAttachment(\"Json Comparison Details\", testData);\n //Serenity.recordReportData().withTitle(\"Json Comparison Details\").andContents(testData);\n return matchResult;\n }",
"@GET\n @Path(\"/containing-keyword/{keyword : \\\\S+}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducationsByKeyword( @PathParam(\"keyword\") String keyword,\n @BeanParam PaginationBeanParam params ) throws ForbiddenException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning educations for given keyword using EducationResource.getEducationsByKeyword(keyword) method of REST API\");\n\n // find educations by given criteria\n ResourceList<Education> educations = new ResourceList<>( educationFacade.findByKeyword(keyword, params.getOffset(), params.getLimit()) );\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"public SearchResult search(String text, String subText);",
"List<ResultDTO> search(String query);",
"List<PilotContainer> Search(String cas, String word);",
"abstract public void search();",
"public List<SearchKeyword> getByDsKeyProject(String dsKey) {\r\n StringBuilder sbHql = new StringBuilder();\r\n sbHql.append(\"from SearchKeyword sk\");\r\n sbHql.append(\" join fetch sk.project p\");\r\n sbHql.append(\" where p.dsKey = :dsKey\");\r\n\r\n Query query = getSession().createQuery(sbHql.toString());\r\n query.setParameter(\"dsKey\", dsKey);\r\n List<SearchKeyword> searchKeyword = query.list();\r\n return searchKeyword;\r\n }",
"public String searchUserWithKeyword(){\r\n\t\tlog.info(\"Starting to search user(s) with keyword = \"+ searchkeyword);\r\n\t\tthis.clearErrorsAndMessages();\r\n\t\tusersList = new ArrayList<Users>();\r\n\t\tusersList.clear();\t\t\r\n\t\ttry {\t\t\r\n\t\t\tusersList = userService.findUsersWithNameLike(searchkeyword);\r\n\t\t\tmessage = usersList.size() + \" users found .\";\t\r\n\t\t\tlog.info(message);\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tmessage = \"Error in finding users for keyword [\" +searchkeyword+\"]. \"+ e.getMessage();\r\n\t\t\tthis.addActionError(message);\r\n\t\t\tlog.error(message, e);\r\n\t\t}\t\r\n\t\t// reset the keyword\r\n\t\tsearchkeyword = \"\";\r\n\t\treturn SUCCESS;\r\n\t}",
"public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);",
"@Override\n\tpublic SuccessMessage search(String kw, int size, int offset) {\n\t\tthrow new I18nMessageException(\"502\");\n\t}",
"List<Revenue> search(String query);",
"private void searchBeers(String keyword, int pageNumber) {\n GetBeersEvent getBeersEvent = new GetBeersEvent();\n\n Map<String, String> parametersMap = new HashMap<String, String>();\n\n if (pageNumber != -1) {\n parametersMap.put(\"p\", Integer.toString(pageNumber));\n }\n\n parametersMap.put(\"key\", mApiKey);\n parametersMap.put(\"q\", keyword);\n parametersMap.put(\"type\", \"beer\");\n parametersMap.put(\"withBreweries\", \"Y\");\n\n try {\n BeersInterface.BeersResponse beersResponse =\n ApiClient.getApi().create(BeersInterface.class).searchBeers(parametersMap);\n getBeersEvent.setBeers(beersResponse.getData());\n getBeersEvent.setStatus(Event.Status.SUCCESSFUL);\n getBeersEvent.setNumberOfPages(beersResponse.getNumberOfPages());\n EventBus.getDefault().post(getBeersEvent);\n } catch (RetrofitError retrofitError) {\n getBeersEvent.setStatus(Event.Status.FAILED);\n EventBus.getDefault().post(getBeersEvent);\n }\n }",
"abstract public boolean performSearch();",
"public interface GroupQueryBuilder extends QueryBuilder\n{\n /**\n * Create GroupQuery based on conditions set using other GroupQueryBuilder methods.\n * @return\n */\n GroupQuery createQuery();\n\n /**\n * Reset all query conditions\n * @return\n */\n GroupQueryBuilder reset();\n\n /**\n * Search for a Group with a given key\n *\n * @param key\n * @return\n */\n GroupQueryBuilder setKey(String key);\n\n /**\n * Search for groups with a given name and type\n * @param name\n * @param type\n * @return\n */\n GroupQueryBuilder setNameAndType(String name, String type);\n\n /**\n * Search for groups with a given name\n *\n * @param name\n * @return\n */\n GroupQueryBuilder setName(String name);\n\n /**\n * Search for groups with a given type\n * @param type\n * @return\n */\n GroupQueryBuilder setType(String type);\n\n /**\n * Search for groups that are associated with a given group\n *\n * @param group\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroup(Group group, boolean parent);\n\n /**\n * Search for groups that are associated with a given group\n *\n * @param key\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroup(String key, boolean parent);\n\n /**\n * Search for groups that are associated with a given groups\n * @param groups\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroups(Collection<Group> groups, boolean parent);\n\n /**\n * Search for groups that are associated with a given groups\n *\n * @param keys\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroupsKeys(Collection<String> keys, boolean parent);\n\n /**\n * Search for groups that are associated with a given user\n *\n * @param user\n * @return\n */\n GroupQueryBuilder addAssociatedUser(User user);\n\n /**\n * Search for groups that are associated with a given user\n *\n * @param key\n * @return\n */\n GroupQueryBuilder addAssociatedUser(String key);\n\n /**\n * Search for groups that are associated with a given users\n *\n * @param users\n * @return\n */\n GroupQueryBuilder addAssociatedUsers(Collection<User> users);\n\n /**\n * Search for groups that are associated with a given users\n *\n * @param keys\n * @return\n */\n GroupQueryBuilder addAssociatedUsersKeys(Collection<String> keys);\n\n /**\n * Search for groups that are connected with a Role with a given user\n *\n * @param user\n * @return\n */\n GroupQueryBuilder addUserConnectedByRole(User user);\n\n /**\n * Search for groups that are connected with a Role with a given user\n *\n * @param key\n * @return\n */\n GroupQueryBuilder addUserConnectedByRole(String key);\n\n /**\n * Search for groups that are connected with a Role with a given users\n *\n * @param users\n * @return\n */\n GroupQueryBuilder addUsersConnectedByRole(Collection<User> users);\n\n /**\n * Search for groups that are connected with a Role with a given users\n *\n * @param ids\n * @return\n */\n GroupQueryBuilder addUsersIdsConnectedByRole(Collection<String> ids);\n\n /**\n * Search for groups that are associated or connected with a Role with a given user\n *\n * @param user\n * @return\n */\n GroupQueryBuilder addRelatedUser(User user);\n\n /**\n * Search for groups that are associated or connected with a Role with a given user\n *\n * @param id\n * @return\n */\n GroupQueryBuilder addRelatedUser(String id);\n\n /**\n * Sort results\n *\n * @param order\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder sort(SortOrder order) throws UnsupportedQueryCriterium;\n\n /**\n * Sort by attribute name\n *\n * @param name\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder sortAttributeName(String name) throws UnsupportedQueryCriterium;\n\n /**\n * Return specified page from results\n *\n * @param firstResult\n * @param maxResults\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder page(int firstResult, int maxResults) throws UnsupportedQueryCriterium;\n\n /**\n * Filter resuts by a given attribute values. All values need to be present \n *\n * @param attributeName\n * @param attributeValue\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder attributeValuesFilter(String attributeName, String[] attributeValue) throws UnsupportedQueryCriterium;\n\n}",
"protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }",
"SearchResult<TimelineMeta> search(SearchParameter searchParameter);",
"public static void searchJobs(String searchTerm) {\n\n for (int i = 0; i > PostJob.allJobs.size(); i++) {\n\n\n if (PostJob.allJobs.contains(searchTerm)) {\n int itemIndx = PostJob.allJobs.indexOf(searchTerm);\n String output = PostJob.allJobs.get(itemIndx);\n System.out.print(\"Available jobs within your search terms\" + output);\n\n }\n }\n }",
"@Override\n\tpublic List<Bus> searchBus(Bus bb) {\n\t\treturn userdao.searchBus(bb);\n\t}",
"@Override\n public List<SearchResult> search(String queryString, int k) {\n // TODO: YOUR CODE HERE\n\n // Tokenize the query and put it into a Set\n HashSet<String> tokenSet = new HashSet<>(Searcher.tokenize(queryString));\n\n /*\n * Section 1: FETCHING termId, termFreq and relevant docId from the Query\n */\n\n // Init a set to store Relevant Document Id\n HashSet<Integer> relevantDocIdSet = new HashSet<>();\n for (String token : tokenSet) { // Iterates thru all query tokens\n int termId;\n try {\n termId = indexer.getTermDict().get(token);\n } catch (NullPointerException e) { // In case current token is not in the termDict\n continue; // Skip this one\n }\n // Get the Posting associate to the termId\n HashSet<Integer> posting = indexer.getPostingLists().get(termId);\n relevantDocIdSet.addAll(posting); // Add them all to the Relevant Document Id set\n }\n\n /*\n * Section 2: Calculate Jaccard Coefficient between the Query and all POTENTIAL DOCUMENTS\n */\n\n // ArrayList for the Final Result\n ArrayList<SearchResult> searchResults = new ArrayList<>();\n for (Document doc : documents) { // Iterates thru all documents\n if (!relevantDocIdSet.contains(doc.getId())) { // If the document is relevant\n searchResults.add(new SearchResult(doc, 0)); // Add the document as a SearchResult with zero score\n } else {\n HashSet<String> termIdSet = new HashSet<>(doc.getTokens()); // Get the token set from the document\n\n // Calculate Jaccard Coefficient of the document\n double jaccardScore = JaccardMathHelper.calculateJaccardSimilarity(tokenSet, termIdSet);\n\n // Add the SearchResult with the computed Jaccard Score\n searchResults.add(new SearchResult(doc, jaccardScore));\n }\n }\n\n return TFIDFSearcher.finalizeSearchResult(searchResults, k);\n }",
"@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}",
"public Builder setSearch(com.clarifai.grpc.api.Search value) {\n if (searchBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inputSource_ = value;\n onChanged();\n } else {\n searchBuilder_.setMessage(value);\n }\n inputSourceCase_ = 10;\n return this;\n }",
"SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);",
"public SearchResults search(String queryString) {\n\n Timer.Context ctx = m_searchTimer.time();\n\n SearchResults searchResults = new SearchResults();\n\n for (String term : s_tokenSplitter.splitToList(queryString)) {\n\n Term t = Term.parse(term);\n\n Statement searchQuery = select(Constants.Schema.C_TERMS_RESOURCE).from(Constants.Schema.T_TERMS)\n .where(eq(Constants.Schema.C_TERMS_CONTEXT, Context.DEFAULT_CONTEXT.getId()))\n .and( eq(Constants.Schema.C_TERMS_FIELD, t.getField()))\n .and( eq(Constants.Schema.C_TERMS_VALUE, t.getValue()));\n\n // TODO: Use async DB calls; Get attrs and metrics concurrently\n for (Row row : m_session.execute(searchQuery.toString())) { // FIXME: toString()?\n String id = row.getString(Constants.Schema.C_TERMS_RESOURCE);\n Optional<Map<String, String>> attrs = fetchResourceAttributes(Context.DEFAULT_CONTEXT, id);\n Collection<String> metrics = fetchMetricNames(Context.DEFAULT_CONTEXT, id);\n\n searchResults.addResult(new Resource(id, attrs), metrics);\n }\n }\n\n try {\n return searchResults;\n }\n finally {\n ctx.stop();\n }\n }",
"@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }"
] |
[
"0.6347481",
"0.5747548",
"0.56368244",
"0.55290675",
"0.54503673",
"0.5419594",
"0.5388749",
"0.53122663",
"0.52880013",
"0.5285113",
"0.52663624",
"0.5252074",
"0.5247074",
"0.5246826",
"0.522187",
"0.5209272",
"0.5207027",
"0.52031606",
"0.5177553",
"0.51746494",
"0.5146055",
"0.51180583",
"0.51004493",
"0.5097297",
"0.50888896",
"0.5087224",
"0.50834507",
"0.508255",
"0.508162",
"0.5077948",
"0.5067559",
"0.50656646",
"0.5062231",
"0.5061417",
"0.5045612",
"0.5045333",
"0.50288576",
"0.501839",
"0.5017294",
"0.50149244",
"0.5008348",
"0.5000059",
"0.49981496",
"0.49978894",
"0.4997338",
"0.49942097",
"0.4993309",
"0.49854565",
"0.49847546",
"0.49815506",
"0.4978723",
"0.4975069",
"0.4965465",
"0.49646437",
"0.49535424",
"0.49509606",
"0.4948641",
"0.49468014",
"0.4935848",
"0.4934657",
"0.49275634",
"0.49262977",
"0.49226582",
"0.49183068",
"0.49065876",
"0.48969677",
"0.48956922",
"0.48945415",
"0.48941717",
"0.488705",
"0.48860678",
"0.4883646",
"0.48829326",
"0.48772243",
"0.48706007",
"0.48572844",
"0.4848964",
"0.48474824",
"0.4845381",
"0.48449582",
"0.48409402",
"0.48390076",
"0.4838113",
"0.48371512",
"0.48210582",
"0.48193297",
"0.48189485",
"0.4818938",
"0.48069802",
"0.4805861",
"0.4804823",
"0.48043063",
"0.4804159",
"0.48015296",
"0.47961923",
"0.4796044",
"0.47957733",
"0.47941348",
"0.47939262",
"0.4793086"
] |
0.5782875
|
1
|
Component c = renderer.getListCellRendererComponent( list, value, index, isSelected, cellHasFocus); Component c = renderer;
|
@Override public Component getListCellRendererComponent(JList<? extends F> list, F value, int index, boolean isSelected, boolean cellHasFocus) {
JTableHeader header = table.getTableHeader();
renderer.setFont(header.getFont());
if (index == pressedRowIndex) {
renderer.setBackground(Color.GRAY);
} else if (index == rollOverRowIndex) {
renderer.setBackground(Color.WHITE);
} else if (isSelected) {
renderer.setBackground(Color.GRAY.brighter());
} else {
renderer.setForeground(header.getForeground());
renderer.setBackground(header.getBackground());
}
renderer.setText(Objects.toString(value, ""));
return renderer;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Component getListCellRendererComponent(JList jlist, \n Object value, \n int cellIndex, \n boolean isSelected, \n boolean cellHasFocus)\n {\n if (value instanceof JPanel)\n {\n Component component = (Component) value;\n component.setForeground (Color.white);\n component.setBackground (isSelected ? UIManager.getColor(\"Table.focusCellForeground\") : Color.white);\n return component;\n }\n else\n {\n // TODO - I get one String here when the JList is first rendered; proper way to deal with this?\n //System.out.println(\"Got something besides a JPanel: \" + value.getClass().getCanonicalName());\n return new JLabel(\"???\");\n }\n }",
"public Component getListCellRendererComponent(JList list,Object value,int index,boolean isSelected,boolean cellHasFocus) {\n\t\t\n\t\tif (isSelected) {\n\t\t\tsetBackground(list.getSelectionBackground());\n\t\t} else {\n\t\t\tsetBackground(list.getBackground());\n\t\t}\n\t\tScript script =hacktendoCreator.getScript(index);\n\t\tif(script!=null){\n\t\t\tif(script.getType()==Script.MAP)\n\t\t\t\tsetForeground(Color.red);\n\t\t\telse\n\t\t\t\tsetForeground(Color.blue);\n\t\t\tString name = script.getName();\n\t\t\t\n\t\t\tsetText(index+\": \"+name);\n\t\t}\n\t\telse{\n\t\t\tsetText(index+\": \");\n\t\t}\n\t\t\n\t\treturn this;\n\t}",
"public Component getListCellRendererComponent(JList list, \n Object value, \n int index, \n boolean isSelected, \n boolean cellHasFocus) {\n JLabel lbl = (JLabel)super.getListCellRendererComponent(\n list, value, index, isSelected, cellHasFocus);\n lbl.setHorizontalAlignment(align);\n return lbl;\n }",
"public Component getListCellRendererComponent(\n JList<? extends BehaviorPackager> list,\n BehaviorPackager value,\n int index,\n boolean isSelected,\n boolean cellHasFocus) {\n\n String sVal = String.valueOf(value);\n\n this.setText(sVal);\n if (isSelected) {\n\n setBackground(list.getSelectionBackground());\n setForeground(list.getSelectionForeground());\n }\n else {\n if (index % 2 == 1) {\n setBackground(new java.awt.Color(225, 225, 225));\n }\n else {\n setBackground(list.getBackground());\n }\n setForeground(list.getForeground());\n }\n\n //Make the label display enough rows to show all the text\n JLabel jNotUsedField = new JLabel(sVal);\n jNotUsedField.setFont(new SortieFont());\n //float fWidth = (float) jNotUsedField.getPreferredSize().getWidth() - 15;\n //Sometimes the line above did not allow the ends of names to display. \n //The line below seems to allow all endings to be visible without \n //introducing extraneous line wrappings \n float fWidth = (float) jNotUsedField.getPreferredSize().getWidth()+15;\n int iNumRows = (int) java.lang.Math.ceil(fWidth / m_fComponentWidth);\n setRows(iNumRows);\n\n return this;\n }",
"@Override\n\tpublic Component getListCellRendererComponent(JList list, Object value,\n\t\t\tint index, boolean isSelected, boolean cellHasFocus) {\n\t\tString key=(String)value;\n\t\tif(isSelected){\n\t\t\tthis.setBackground(list.getSelectionBackground());\n\t\t\tthis.setForeground(list.getSelectionForeground());\n\t\t\t\n\t\t}else{\n\t\t\tthis.setBackground(list.getBackground());\n\t\t\tthis.setForeground(list.getForeground());\n\t\t}\n\t\tsetText(key);\n\t\tsetIcon(content.get(key));\n\t\tsetFont(list.getFont());\n\t\t\n\t\treturn this;\n\t}",
"@Override\n public Component getListCellRendererComponent(JList<?> list, Object value, // value to display\n int index, // cell index\n boolean iss, // is the cell selected\n boolean chf) // the list and the cell have the focus\n {\n /* The DefaultListCellRenderer class will take care of\n * the JLabels text property, it's foreground and background\n * colors, and so on.\n */\n super.getListCellRendererComponent(list, value, index, iss, chf);\n\n /* We additionally set the JLabels icon property here.\n */\n String s = value.toString();\n if (entry.hasField(s)) {\n this.setForeground(Color.gray);\n this.setFont(usedFont);\n this.setIcon(okIcon);\n this.setToolTipText(Localization.lang(\"Filled\"));\n } else {\n this.setIcon(needIcon);\n this.setToolTipText(Localization.lang(\"Field is missing\"));\n }\n if (requiredFields.contains(s)) {\n this.setBackground(requiredColor);\n } else if (optionalFields.contains(s)) {\n this.setBackground(optionalColor);\n }\n return this;\n }",
"public Component getListCellRendererComponent(\r\n JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\r\n this.memInt = (MemoryInt) value;\r\n\r\n if (isSelected) {\r\n setBackground(list.getSelectionBackground());\r\n setForeground(list.getSelectionForeground());\r\n } else {\r\n setBackground(list.getBackground());\r\n setForeground(list.getForeground());\r\n }\r\n\r\n return this;\r\n }",
"public Component getListCellRendererComponent(JList list,\n Object value, \n int index, \n boolean isSelected,\n boolean cellHasFocus) {\n \n setBackground(isSelected ? list.getSelectionBackground() : \n list.getBackground());\n setForeground(isSelected ? list.getSelectionForeground() : \n list.getForeground());\n \n if (value != null) {\n LabelValueBean<L,V> bean = (LabelValueBean)value;\n setText(bean.getLabel()+\"\");\n }\n \n setBorder(border);\n \n return this;\n }",
"public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n if ((value != null) && (value instanceof String) && (msg != null)) {\n String sValue = (String)value;\n String key = msg.getUserDefinedParameter(sValue);\n setText(sValue + \" = \" + key);\n }\n setBackground(isSelected ? Color.blue : Color.white);\n setForeground(isSelected ? Color.white : Color.black);\n return this;\n }",
"public Component getListCellRendererComponent(\r\n\t\t JList list,\r\n Object value, // value to display\r\n int index, // cell index\r\n boolean iss, // is selected\r\n boolean chf) // cell has focus?\r\n {\r\n\t \r\n\t // Set the text and \r\n //background color for rendering\r\n setText(((ListItem)value).getValue());\r\n setBackground(((ListItem)value).getColor());\r\n setIcon(((ListItem)value).getIcon());\r\n // Set a border if the \r\n //list item is selected\r\n if (iss) {\r\n setBorder(BorderFactory.createLineBorder(\r\n Color.blue, 2));\r\n } else {\r\n setBorder(BorderFactory.createLineBorder(\r\n list.getBackground(), 2));\r\n }\r\n\r\n return this;\r\n }",
"@Override\n public Component getListCellRendererComponent(JList<? extends Kunde> list, Kunde value, int index, boolean isSelected, boolean cellHasFocus) {\n setText(String.format(\"%s %s\", value.getVorname(), value.getNachname()));\n setBorder(new EmptyBorder(8, 8, 8, 8));\n\n Color background;\n Color foreground;\n\n // check if this cell represents the current DnD drop location\n JList.DropLocation dropLocation = list.getDropLocation();\n if (dropLocation != null && !dropLocation.isInsert() && dropLocation.getIndex() == index) {\n background = new Color(0, 30, 40);\n foreground = Color.WHITE;\n } else if (isSelected) {\n // if this cell is selected\n background = new Color(0, 129, 0);\n foreground = Color.WHITE;\n } else {\n // else cell is unselected, and not the DnD drop location\n background = Color.WHITE;\n foreground = new Color(0, 30, 40);;\n }\n\n setBackground(background);\n setForeground(foreground);\n\n return this;\n }",
"@Override\n\tpublic Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n\t\tJLabel lbl = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected,\n\t\t\t\tcellHasFocus);\n\t\tFuncao funcao = (Funcao)value;\n\t\tlbl.setText(funcao.getCompId().getCodFuncaoFunc() + \" - \" + funcao.getNomeFunc());\n\t\treturn lbl;\n\t}",
"@Override\n public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n\n JLabel label = (JLabel) super.getListCellRendererComponent(list, ((Pair) value).getValue(), index, isSelected, cellHasFocus);\n label.setIcon(imageMap.get(((Pair) value).getKey()));\n label.setHorizontalTextPosition(JLabel.RIGHT);\n return label;\n }",
"public Component getListCellRendererComponent(\n JList list,\n Object value,\n int index,\n boolean isSelected,\n boolean cellHasFocus) {\n //Get the selected index. (The index param isn't\n //always valid, so just use the value.)\n// int selectedIndex = ((Int\n// icon = createImageIcon(\"\");eger)value).intValue();\n\n if (isSelected) {\n setBackground(list.getSelectionBackground());\n setForeground(list.getSelectionForeground());\n } else {\n setBackground(list.getBackground());\n setForeground(list.getForeground());\n }\n\n //Set the icon and text. If icon was null, say so.\n if(saveType.equals(\"Folder\"))\n {\n\n }\n setIcon(icon);\n if (icon != null) {\n setFont(list.getFont());\n }\n\n return this;\n }",
"@Override\n\tpublic Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index,\n\t\t\tboolean isSelected, boolean cellHasFocus) {\n\t\tJPanel contentPane = new JPanel();\n\t\tif (list == room_list) {\n\t\t\tRoomHandler room = (RoomHandler) value;\n\t\t\tcontentPane.setName(Integer.toString(room.getRoomNum()));\n\t\t\tcontentPane.setLayout(new BorderLayout());\n\t\t\tcontentPane.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\n\t\t\tJLabel roomNum = new JLabel(String.format(\"%5d\", room.getRoomNum()));\n\t\t\troomNum.setOpaque(false);\n\t\t\troomNum.setFont((new Font(\"굴림\", Font.BOLD, 16)));\n\t\t\troomNum.setHorizontalAlignment(roomNum.RIGHT);\n\n\t\t\tJLabel roomName = new JLabel(\"방제 : \" + room.getRoomName());\n\t\t\troomName.setOpaque(false);\n\t\t\troomName.setFont(new Font(\"굴림\", Font.BOLD, 18));\n\t\t\troomName.setHorizontalAlignment(roomName.CENTER);\n\n\t\t\tJLabel school = new JLabel(\"학교 : \" + room.getSchool());\n\t\t\tschool.setOpaque(false);\n\t\t\tschool.setFont((new Font(\"굴림\", Font.BOLD, 16)));\n\t\t\tschool.setHorizontalAlignment(school.RIGHT);\n\n\t\t\tJLabel inUser = new JLabel(String.format(\"인원 : %3d / %3d\", room.getInUser(), room.getMax()));\n\t\t\tinUser.setOpaque(false);\n\t\t\tinUser.setHorizontalAlignment(inUser.RIGHT);\n\t\t\tinUser.setFont((new Font(\"굴림\", Font.BOLD, 16)));\n\n\t\t\tcontentPane.add(roomNum, BorderLayout.WEST);\n\t\t\tcontentPane.add(roomName, BorderLayout.NORTH);\n\t\t\tcontentPane.add(school, BorderLayout.CENTER);\n\t\t\tcontentPane.add(inUser, BorderLayout.SOUTH);\n\n\t\t\tif (isSelected) {\n\t\t\t\tcontentPane.setBackground(room_list.getSelectionBackground());\n\t\t\t\t/*\n\t\t\t\t * int roomNo = room.getRoomNum(); if (!room.isFull(roomNo)) {\n\t\t\t\t * chatGui.myEnterRoom(roomNo); mySocket.sendMessage(\"enterRoom/.\" +\n\t\t\t\t * room.getRoomNum()); room_list.setListData(room.getAllRoom());\n\t\t\t\t * setVisible(false); } else { JOptionPane jp = new JOptionPane();\n\t\t\t\t * jp.showMessageDialog(mainContentPane, roomNo + \"번 방 입장에 실패했습니다.\");\n\t\t\t\t * room_list.setListData(room.getAllRoom()); }\n\t\t\t\t */\n\t\t\t} else {\n\t\t\t\tcontentPane.setOpaque(true);\n\t\t\t}\n\n\t\t}\n\t\treturn contentPane;\n\t}",
"private static ListCellRenderer<? super Appointment> createListRenderer() {\n return new DefaultListCellRenderer() {\n private Color background = new Color(0, 100, 255, 15);\n private Color defaultBackground = (Color) UIManager.get(\"List.background\");\n \n public Component getListCellRendererComponent(JList<?> list, Object value, int index,\n boolean isSelected, boolean cellHasFocus) {\n Component c = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n if (c instanceof JLabel) {\n JLabel label = (JLabel) c;\n Appointment app = (Appointment) value;\n if(app != null){\n label.setText(String.format(\"%s\",app.getAppointmentDate().toString()));\n }\n \n if (!isSelected) {\n label.setBackground(index % 2 == 0 ? background : defaultBackground);\n }\n }\n return c;\n }\n };\n }",
"public Component getListCellRendererComponent(JList list, Object value,\n\t\t\tint index, boolean isSelected, boolean cellHasFocus) {\n\t\tif (isSelected) {\n\t\t\tsetBackground(list.getSelectionBackground());\n\t\t\tsetForeground(list.getSelectionForeground());\n\t\t} else {\n\t\t\tsetBackground(list.getBackground());\n\t\t\tsetForeground(list.getForeground());\n\t\t}\n\n\t\t// set the text (fulldomain name of the domain) to display\n\t\tsetText(((Domain) value).getFullDomain());\n\n\t\treturn this;\n\t}",
"public Component getListCellRendererComponent(final JList list,\n final Object value, final int index, final boolean isSelected,\n final boolean cellHasFocus) {\n if (isSelected) {\n setBackground(list.getSelectionBackground());\n setForeground(list.getSelectionForeground());\n } else {\n setBackground(list.getBackground());\n setForeground(list.getForeground());\n }\n\n ImageIcon icon = (ImageIcon) value;\n setText(icon.getDescription());\n setIcon(icon);\n\n return this;\n }",
"public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n\t\tsuper.getListCellRendererComponent(list,value,index,isSelected,cellHasFocus);\n \n File file = (File)value;\n setText(fsv.getSystemDisplayName(file));\n setIcon(fsv.getSystemIcon(file));\n \n return this;\n\t}",
"Component getTableCellRendererComponent(JTable table, Object value,\n\t\t\t\t\t boolean isSelected, boolean hasFocus, \n\t\t\t\t\t int row, int column);",
"public Component getListCellRendererComponent(\n\t\t JList<? extends Description> list,\n\t\t Description value, // value to display\n\t\t int index, // cell index\n\t\t boolean isSelected, // is the cell selected\n\t\t boolean cellHasFocus) {\n\t\t\n\t\tif (isSelected) {\n\t\t\tthis.setIcon(this.selectedIconMap.get(value));\n\t\t\tsetBackground(list.getSelectionBackground());\n\t\t\tsetForeground(list.getSelectionForeground());\n\t\t} else {\n\t\t\tthis.setIcon(this.unselectedIconMap.get(value));\n\t\t\tsetBackground(list.getBackground());\n\t\t\tsetForeground(list.getForeground());\n\t\t}\n\t\tsetEnabled(list.isEnabled());\n\t\tsetOpaque(false);\n\t\treturn this;\n\t}",
"protected ListCellRenderer createRenderer()\n {\n return new BEComboBoxRenderer.UIResource(this);\n }",
"public Component getListCellRendererComponent(JList jList, Object val,\n int index, boolean selected, boolean cellGotFocus) {\n String stringRepresentation = val.toString();\n if (val instanceof Ontology) {\n\n Ontology o = (Ontology) val;\n\n // ols versions are now like Jun 2010 rather than their previous version format 1.26\n stringRepresentation = o.getOntologyAbbreviation() + \" - \" + o.getOntologyDisplayLabel();\n }\n\n text.setText(stringRepresentation);\n text.setFont(selected ? UIHelper.VER_10_BOLD : UIHelper.VER_10_PLAIN);\n return this;\n }",
"public void testSelectItemCustomRenderer() {\n \n box.setRenderer(new ListCellRenderer() {\n\n @Override\n public Component getListCellRendererComponent(JList list, final Object value, int index, boolean isSelected,\n boolean cellHasFocus) {\n \n JPanel p = new JPanel()\n {\n public String getText() {\n return value!=null ? value.toString() : \"[Null]\";\n }\n };\n p.setBackground(index % 2 == 0 ? Color.RED : Color.BLUE);\n return p;\n }\n });\n \n showFrame(box);\n for (int i=0;i < MAX_ENTRIES;i += MAX_ENTRIES / 10) {\n selectedItem = null;\n String item = \"item \" + i;\n tester.actionSelectItem(box, item);\n assertEquals(\"Wrong item selected\", item, selectedItem);\n }\n }",
"public Component getTableCellRendererComponent(JTable table,\r\n Object value, boolean isSelected, boolean hasFocus, int row,\r\n int column) {\r\n return (Component) value;\r\n }",
"@Override\n public Component getListCellRendererComponent(JList<? extends Produto> list,\n Produto produto, int index, boolean isSelected, boolean cellHasFocus) {\n BufferedImage imagemBuffer = null;\n imagemBuffer = null;\n\n try {\n // Pegando a imagem na lista de produtos\n imagemBuffer = ImageIO.read(new ByteArrayInputStream(produto.getImagem()));\n } catch (IOException ex) {\n new TelaAlerta(\"Ocorreu um erro ao carregar as imagens! Por favor, tentar novamente.\", 2).setVisible(true);\n }\n Image diminuirImagem = imagemBuffer.getScaledInstance(70, 70, 0); // Redimencionando a imagem para o tamanho do jLabel\n \n lbImage.setIcon(new ImageIcon(diminuirImagem));\n lbDescricao.setText(produto.getTitulo());\n lbPreco.setText(\"R$ \" + String.valueOf(produto.getPreco()));\n lbPreco.setForeground(new Color(0, 0, 238));\n\n // set Opaque to change background color of JLabel\n lbDescricao.setOpaque(true);\n lbPreco.setOpaque(true);\n lbImage.setOpaque(true);\n lbPreco.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n lbPreco.setBorder(new EmptyBorder(0, 0, 0, 0));\n\n // when select item\n if (isSelected) {\n lbDescricao.setBackground(list.getSelectionBackground());\n lbPreco.setBackground(list.getSelectionBackground());\n lbImage.setBackground(list.getSelectionBackground());\n setBackground(list.getSelectionBackground());\n panelIcon.setBackground(list.getSelectionBackground());\n } else { // when don't select\n lbDescricao.setBackground(list.getBackground());\n lbPreco.setBackground(list.getBackground());\n lbImage.setBackground(list.getBackground());\n setBackground(list.getBackground());\n panelIcon.setBackground(list.getBackground());\n }\n return this;\n }",
"@Override\n public Component getListCellRendererComponent(\n JList list,\n Object value,\n int index,\n boolean isSelected,\n boolean cellHasFocus) {\n setName(\"ComboBox.listRenderer\"); // NOI18N\n \n if ( value != null && ((ProjectScope)value).getLabel() != null ) {\n setText(((ProjectScope)value).getLabel().getText());\n setIcon(((ProjectScope)value).getLabel().getIcon());\n }\n \n if ( isSelected ) {\n setBackground(list.getSelectionBackground());\n setForeground(list.getSelectionForeground());\n } else {\n setBackground(list.getBackground());\n setForeground(list.getForeground());\n }\n \n return this;\n }",
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,\n\t\t\tboolean hasFocus, int row, int column) {\n\t\tJTextField editor = new JTextField();\n\t\teditor.setFont(new Font(\"Segoe UI Semibold\", Font.BOLD, 12));\n\t\tif (value != null){\n\t\t\teditor.setText(value.toString());\n\t\t}\n\t\t\n\t\tif (value == null){\n\t\t\teditor.setBackground(Color.WHITE);\n\t\t} else {\n\t\t\tif (correctList.contains(row)){\n\t\t\t\teditor.setBackground(Color.green);\n\t\t\t\teditor.setForeground(Color.black);\n\t\t\t} else {\n\t\t\t\teditor.setBackground(Color.red);\n\t\t\t\teditor.setForeground(Color.white);\n\t\t\t}\n\t\t\t//editor.setBackground(correctList.contains(row) ? Color.green : lightRed);\n\t\t}\n\t\treturn editor;\n\t}",
"public Component getTableCellRendererComponent(JTable table,\n Object value,\n boolean isSelected,\n boolean hasFocus,\n int row, int column)\n {\n if (value instanceof Component)\n {\n return (Component) value;\n }\n return defaultRenderer.getTableCellRendererComponent(\n table, value, isSelected, hasFocus, row, column);\n }",
"@Override\r\n\tpublic Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n\t\ttry {\r\n\t\t\tsetBackground((Color)value);\r\n\t\t}\r\n\t\tcatch(ClassCastException e) {\r\n\t\t}\r\n\t\t\r\n\t\t// draw selection state of necessary\r\n\t\tif(isSelected) {\r\n\t\t\tif(selectedBorder == null)\r\n\t\t\t\tselectedBorder = BorderFactory.createMatteBorder(2, 5, 2, 5, table.getSelectionBackground());\r\n\t\t\tsetBorder(selectedBorder);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif(unselectedBorder == null)\r\n\t\t\t\tunselectedBorder = BorderFactory.createMatteBorder(2, 5, 2, 5, table.getBackground());\r\n\t\t\tsetBorder(unselectedBorder);\r\n\t\t}\r\n\t\t\r\n\t\t// display the rgb value in the center of the cell if necessary\r\n\t\tif(displayRGB) {\r\n\t\t\tsetHorizontalAlignment(JLabel.CENTER);\r\n\t\t\tsetHorizontalTextPosition(JLabel.CENTER);\r\n\t\t\tsetForeground(new Color(255 - getBackground().getRed(), 255 - getBackground().getGreen(), 255 - getBackground().getBlue()));\r\n\t\t\tsetFont(table.getFont());\r\n\t\t\tsetText(getBackground().getRed() + \", \" + getBackground().getGreen() + \", \" + getBackground().getBlue());\r\n\t\t}\r\n\t\t\r\n\t\treturn this;\r\n\t}",
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,\n\t\t\t\t\t\t\t\t\t\t\t\t int row, int column) {\n\t\t//the first element of table is empty\n\t\tif (row == 0 && column == 0) {\n\t\t\treturn new JLabel();\n\t\t}\n\t\t//all elements in first row, excluding first column, must be a letters from array of letters\n\t\tif (row == 0 && column > 0) {\n\t\t\treturn new JLabel(columns[column - 1]);\n\t\t}\n\t\t//all elements in first column, excluding first row, must be a numbers equals to row number\n\t\tif (column == 0 && row > 0) {\n\t\t\treturn new JLabel(Integer.toString(row));\n\t\t}\n\t\t//other cells of table must contain Cell objects, we set them before\n\t\t//and we handle them in that method:\n\t\treturn buildCellButton((char) value);\n\t}",
"public WidgetRenderer() {\r\n super(\"\");\r\n setUIID(\"ListRenderer\");\r\n }",
"public Component getTableCellRendererComponent(\r\n JTable table,\r\n Object value,\r\n boolean isSelected,\r\n boolean hasFocus,\r\n int row,\r\n int col)\r\n {\r\n\r\n setBorder(noFocusBorder); // No FOCUS Borders on any cell\r\n // Get the renderer\r\n Component comp = null;\r\n // If the renderer is not null, we have a recognized component\r\n comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);\r\n\r\n // If the Row is Even, set to Color 0\r\n comp.setBackground(colorScheme.getBackgroundColor(row));\r\n // Set the foreground color\r\n comp.setForeground(colorScheme.getForegroundColor(row));\r\n\r\n if (value instanceof ColoredData)\r\n {\r\n ColoredData colorData = (ColoredData) value;\r\n if (colorData.getBGColor() != null)\r\n {\r\n comp.setBackground(colorData.getBGColor());\r\n }\r\n if (colorData.getFGColor() != null)\r\n {\r\n comp.setForeground(colorData.getFGColor());\r\n }\r\n\r\n }\r\n if (isSelected)\r\n { // if the component is selected change to a THEME selected color\r\n comp.setBackground(table.getSelectionBackground());\r\n comp.setForeground(table.getSelectionForeground());\r\n }\r\n\r\n setAlignmentX(JComponent.CENTER_ALIGNMENT);\r\n // setFont(table.getFont()); // Set the Font to the desired Font\r\n comp.repaint();\r\n // Else return unknown component, color is set above\r\n return (comp);\r\n\r\n }",
"public ACLPropertyListCellRenderer() {\n setOpaque(true);\n setFont(new java.awt.Font(\"Dialog\", 0, 11));\n }",
"protected abstract void setValue(JList<?> list, T value, int index, boolean isSelected, boolean cellHasFocus);",
"@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }",
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,\n\t\t\t\t\tboolean hasFocus, int row, int column) {\n\n\t\t\t\tif (0 == row % 2)\n\t\t\t\t\tthis.setBackground(Color.WHITE);\n\t\t\t\telse\n\t\t\t\t\tthis.setBackground(Color.lightGray);\n\n\t\t\t\treturn super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n\n\t\t\t}",
"@Override\r\n protected void configureList() {\r\n list.setFont(comboBox.getFont());\r\n list.setCellRenderer(comboBox.getRenderer());\r\n list.setFocusable(false);\r\n list.setBorder(null);\r\n list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n int selectedIndex = comboBox.getSelectedIndex();\r\n if (selectedIndex == -1) {\r\n list.clearSelection();\r\n } else {\r\n list.setSelectedIndex(selectedIndex);\r\n list.ensureIndexIsVisible(selectedIndex);\r\n }\r\n installListListeners();\r\n }",
"public Component getTableCellRendererComponent\n (JTable table, Object value, boolean selected, boolean focused, int row, int column)\n {\n if(String.valueOf(jTable1.getValueAt(row,4)).equals(\"10\")) setForeground(Color.blue);\n // SI NO ES ACTIVO ENTONCES COLOR ROJO\n else setForeground(Color.red);\n \n super.getTableCellRendererComponent(table, value, selected, focused, row, column);\n return this;\n }",
"@Override\n\tpublic Component getTableCellRendererComponent(JTable table, Object value, boolean selected, boolean focused, int row, int column) {\n\t\tColor colorFondo = null;\n\t\tColor colorFondoDefault = new Color(192,192,192);\n\t\tColor colorFondoSelected = new Color(140, 140, 140);\n\t\tif (selected) {\n\t\t\tthis.setBackground(colorFondoDefault);\n\t\t}\n\t\telse {\n\t\t\tthis.setBackground(Color.white);\n\t\t}\n\t\tif(tipo.equals(\"texto\")) {\n\t\t\tif (focused)\n\t\t\t\tcolorFondo = colorFondoSelected;\n\t\t\telse\n\t\t\t\tcolorFondo = colorFondoDefault;\n\t\t\t\n\t\t\tthis.setHorizontalAlignment(JLabel.LEFT);\n\t\t\tthis.setText((String) value);\n\t\t\tthis.setBackground((selected)? colorFondo:Color.WHITE);\n\t\t\tthis.setFont(normal);\n\t\t\treturn this;\n\t\t}\n\t\tif(tipo.equals(\"numero\")) {\n\t\t\tif(focused) \n\t\t\t\tcolorFondo = colorFondoSelected;\n\t\t\telse\n\t\t\t\tcolorFondo=colorFondoDefault;\n\t\t\tthis.setHorizontalAlignment(JLabel.CENTER);\n\t\t\tthis.setText(value.toString());\n\t\t\tthis.setForeground((selected)? new Color(255,255,255) : new Color(32,117,32));\n\t\t\tthis.setBackground((selected)? colorFondo : Color.WHITE);\n\t\t\tthis.setFont(bold);\n\t\t\treturn this;\n\t\t}\n\t\tif(tipo.equals(\"boton\")) {\n\t\t\tif(String.valueOf(value).equals(\"MODIFICAR\")) {\n\t\t\t\tlabel.setText(\"Modificar\");\n\t\t\t} else if(String.valueOf(value).equals(\"ELIMINAR\")) {\n\t\t\t\tlabel.setText(\"Eliminar\");\n\t\t\t}\n\t\t\tlabel.setFont(subrayada);\n\t\t\tlabel.setForeground(Color.BLUE);\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t\tlabel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\t\t\treturn label;\n\t\t}\n\t\t\n\t\treturn this;\n\t}",
"public ListFrameRobots(ArrayList<Team> teamRobotInfo)\r\n {\r\n super( \"List Test\" );\r\n setLayout( new FlowLayout() ); // set frame layout\r\n \r\n for(int i = 0; i < 12; i ++)\r\n {\r\n teamNames[i] = teamRobotInfo.get(i).getTeamName();\r\n }\r\n\r\n \r\n \r\n teamNamesJList = new JList(teamNames);\r\n teamNamesJList.setVisibleRowCount(12);\r\n \r\n \r\n \r\n teamNamesJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\r\n /*\r\n add( new JScrollPane(teamNamesJList));\r\n\r\n colorJList.addListSelectionListener(\r\n new ListSelectionListener() // anonymous inner class\r\n { \r\n // handle list selection events\r\n public void valueChanged( ListSelectionEvent event )\r\n {\r\n getContentPane().setBackground( \r\n colors[ colorJList.getSelectedIndex() ] );\r\n label.setName(\"Dogs\");\r\n } // end method valueChanged\r\n } // end anonymous inner class\r\n \r\n ); // end call to addListSelectionListener\r\n \r\n \r\n /* \r\n teamNamesJList.addListSelectionListener(\r\n new ListSelectionListener() // anonymous inner class\r\n { \r\n // handle list selection events\r\n public void valueChanged( ListSelectionEvent event )\r\n {\r\n getContentPane().setBackground( \r\n colors[ colorJList.getSelectedIndex() ] );\r\n } // end method valueChanged\r\n } // end anonymous inner class\r\n \r\n );\r\n \r\n */\r\n }",
"public static ListCellRenderer<User> createListRenderer(final Model model) {\n\t\treturn new ListCellRenderer<User>() {\t\t\t\n\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(\n\t\t\t\t\tJList<? extends User> list, User value, int index,\n\t\t\t\t\tboolean isSelected, boolean cellHasFocus) {\n\n\t\t\t\t// Creating the label\n\t\t\t\tJLabel label = new JLabel();\t\t\t\t\t\t\t\n\t\t\t\tlabel.setText(\" \"+value.getUserName());\n\t\t\t\t\n\t\t\t\t// Set basic style\n\t\t\t\tlabel.setBorder(BorderFactory.createCompoundBorder(ViewConstraints.USER_BORDER,ViewConstraints.PADDING_BORDER));\t\t\t\t\n\t\t\t\tlabel.setFont(ViewConstraints.USER_NAME_LABLE_FONT);\n\t\t\t\tlabel.setOpaque(true);\n\t\t\t\t\n\t\t\t\tif (model.getOnlineUsers().contains(value)||value.getUserName().equals(ViewConstraints.PUBIC_USER_NAME)) {\n\t\t\t\t\t\n\t\t\t\t\t// THE User is ONLINE\n\t\t\t\t\tlabel.setText(\" \"+value.getUserName()+ \" [online]\");\n\t\t\t\t\tlabel.setBackground(ViewConstraints.USER_ONLINE_COLOR);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\t//THE User is OFFLINE\n\t\t\t\t\tlabel.setText(\" \"+value.getUserName()+ \" [offline]\");\n\t\t\t\t\tlabel.setBackground(ViewConstraints.USER_OFFLINE_COLOR);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (model.getAuthUser().getUserName()!= null && model.getAuthUser().getUserName().equals(value.getUserName())){\n\t\t\t\t\t\n\t\t\t\t\t//THE PUBLIC CHAT is always ONLINE\n\t\t\t\t\tlabel.setText(\" \"+value.getUserName()+ \" [You are online]\");\n\t\t\t\t\tlabel.setBackground(ViewConstraints.USER_AUTH_COLOR);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (isSelected) {\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//THE User is SELECTED\t\t\t\t\t\n\t\t\t\t\tlabel.setText(\" \"+value.getUserName()+ \" [selected]\");\n\t\t\t\t\tlabel.setBackground(ViewConstraints.USER_SELECTED_COLOR);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn label;\t\t\t\t\n\t\t\t}\n\t\t};\n\t}",
"public interface TableCellRenderer {\n\n /**\n * Returns the component used for drawing the cell. This method is\n * used to configure the renderer appropriately before drawing.\n *\n * @param\ttable\t\tthe <code>JTable</code> that is asking the \n *\t\t\t\trenderer to draw; can be <code>null</code>\n * @param\tvalue\t\tthe value of the cell to be rendered. It is\n *\t\t\t\tup to the specific renderer to interpret\n *\t\t\t\tand draw the value. For example, if\n *\t\t\t\t<code>value</code>\n *\t\t\t\tis the string \"true\", it could be rendered as a\n *\t\t\t\tstring or it could be rendered as a check\n *\t\t\t\tbox that is checked. <code>null</code> is a\n *\t\t\t\tvalid value\n * @param\tisSelected\ttrue if the cell is to be rendered with the\n *\t\t\t\tselection highlighted; otherwise false\n * @param\thasFocus\tif true, render cell appropriately. For\n *\t\t\t\texample, put a special border on the cell, if\n *\t\t\t\tthe cell can be edited, render in the color used\n *\t\t\t\tto indicate editing\n * @param\trow\t the row index of the cell being drawn. When\n *\t\t\t\tdrawing the header, the value of\n *\t\t\t\t<code>row</code> is -1\n * @param\tcolumn\t the column index of the cell being drawn\n */\n Component getTableCellRendererComponent(JTable table, Object value,\n\t\t\t\t\t boolean isSelected, boolean hasFocus, \n\t\t\t\t\t int row, int column);\n}",
"@Override\n public JComponent getComponent () {\n return this;\n }",
"public Component getTableCellRendererComponent(JTable table, \n\t\t\t\tObject value, boolean isSelected, boolean hasFocus, int row, int column) {\n\t\t\t\n\t\t\tColor buttonColor = new Color(Integer.parseInt(redString[row]), Integer.parseInt(greenString[row]), Integer.parseInt(blueString[row]));\n\t\t\t\n\t\t\trenderButton.setBackground(buttonColor); \n\t\t\trenderButton.setBorderPainted(false); \n\t\t\trenderButton.setText(redString[row] + \", \" + greenString[row] + \", \" + blueString[row]);\n\t\t\t// renderButton.setIcon(new ImageIcon(\"Obs.gif\")); \n\t\t\treturn renderButton; \n\t\t}",
"public Component getTableCellEditorComponent(JTable table,\r\n\t\t\t\t\t\t\tObject value, boolean isSelected, int row,\r\n\t\t\t\t\t\t\tint column) {\n\t\t\t\t\t\tif (isSelected) {\r\n\r\n\t\t\t\t\t\t\tSystem.out.print(\"123123\");\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t// return JLabel(value.toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tObject[] ov = (Object[]) value;\r\n\t\t\t\t\t\tJTextFieldU jf = new JTextFieldU(ov[0].toString());\r\n\t\t\t\t\t\tjf.setuuid(ov[1].toString());\r\n\r\n\t\t\t\t\t\tjf.addFocusListener(new FocusListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void focusLost(FocusEvent arg0) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tSystem.out.print(((JTextField) arg0\r\n\t\t\t\t\t\t\t\t\t\t.getComponent()).getText().toString());\r\n\t\t\t\t\t\t\t\tDBfactory.getDBfactory().updateSampleValue(\r\n\t\t\t\t\t\t\t\t\t\t((JTextFieldU) arg0.getComponent())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getUUid(),\r\n\t\t\t\t\t\t\t\t\t\t((JTextField) arg0.getComponent())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString());\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\treturn jf;\r\n\r\n\t\t\t\t\t}",
"public Component getTableCellRendererComponent(JTable table,\r\n Object value, boolean isSelected, boolean hasFocus, int row,\r\n int column) {\r\n// JPanel pnl = new JPanel(new BorderLayout());\r\n Box box = new Box(BoxLayout.Y_AXIS);\r\n ncsa.gui.RotatedLabel rot = new ncsa.gui.RotatedLabel( (String) value);\r\n box.add(box.createVerticalGlue());\r\n box.add(rot);\r\n box.add(box.createVerticalGlue());\r\n rot.setBackground(Color.white);\r\n// pnl.add(rot, BorderLayout.CENTER);\r\n// return pnl;\r\n return box;\r\n }",
"public Component getTableCellEditorComponent(JTable table, Object value,\n boolean hasFocus, int row, int column) {\n \n currentColor = (Color)value;\n lastRow = row;\n return colorEditButton;\n }",
"@Override\r\n public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {\n JLabel l = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);\r\n\r\n //Get the status for the current row.\r\n DayPanelTableModel tableModel = (DayPanelTableModel) table.getModel();\r\n Color getColor = tableModel.rowColor(row);\r\n if (getColor != null) {\r\n l.setBackground(getColor);\r\n if (getColor.equals(Color.CYAN)) {\r\n l.setForeground(Color.BLACK);\r\n } else if (getColor.equals(Color.ORANGE)) {\r\n l.setForeground(Color.BLACK);\r\n } else if (getColor.equals(Color.GREEN)) {\r\n l.setForeground(Color.BLACK);\r\n } else {\r\n l.setForeground(Color.WHITE);\r\n }\r\n } else {\r\n l.setBackground(Color.WHITE);\r\n l.setForeground(Color.BLACK);\r\n }\r\n\r\n //Return the JLabel which renders the cell.\r\n return l;\r\n\r\n }",
"@Override\n public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n DefaultTableCellRenderer baseRenderer = (DefaultTableCellRenderer) table.getDefaultRenderer(String.class);\n JLabel baseComp = (JLabel) baseRenderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n String skillCode = baseComp.getText();\n\n // apply settings to render panel from parent\n renderPanel.setOpaque(baseComp.isOpaque());\n renderPanel.setForeground(CardRendererUtils.copyColor(baseComp.getForeground()));\n renderPanel.setBackground(CardRendererUtils.copyColor(baseComp.getBackground()));\n renderPanel.setBorder(baseComp.getBorder());\n\n // create each skill symbol as child label\n renderPanel.removeAll();\n renderPanel.setLayout(new BoxLayout(renderPanel, BoxLayout.X_AXIS));\n for (char skillSymbol : skillCode.toCharArray()) {\n JLabel symbolLabel = new JLabel();\n symbolLabel.setBorder(new EmptyBorder(0, 3, 0, 0));\n symbolLabel.setIcon(skillIcon);\n renderPanel.add(symbolLabel);\n }\n\n return renderPanel;\n }",
"@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}",
"@Override\n public TreeCellRenderer getCellRenderer() {\n final TreeCellRenderer ren = super.getCellRenderer();\n if (ren == null) {\n return null;\n }\n if (wrapper == null) {\n wrapper = new RendererEditorWrapper();\n }\n wrapper.ren = ren;\n return wrapper;\n }",
"JComponent getRenderComponent();",
"@Override\r\n public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {\n JLabel l = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);\r\n\r\n //Get the status for the current row.\r\n TimeTable tableModel = (TimeTable) table.getModel();\r\n \r\n if ((int)tableModel.getValueAt(row, col)!=0) {\r\n l.setBackground(Color.GREEN);\r\n } else {\r\n l.setBackground(Color.RED);\r\n }\r\n\r\n //Return the JLabel which renders the cell.\r\n return l;\r\n }",
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected\r\n , boolean hasFocus, int row, int column) {\r\n // set data\r\n labTest = (ImagingLabTest)value;\r\n viewButton.setText(labTest.getDescription());\r\n \r\n return actionPanel;\r\n }",
"public DefaultListItemRenderer() {\n\n\t}",
"@Override\n\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\n\t}",
"public interface SwingCellRenderer extends CellRenderer<SwingView> {\r\n /**\r\n * Called whenever a cell is clicked\r\n * @param source The board to edit\r\n * @param cellX The X-Coordinate of the cell\r\n * @param cellY Y-Coordinate of the cell\r\n * @return\r\n */\r\n public int cellClicked(Board source, int cellX, int cellY);\r\n\r\n }",
"@Override\n public void paint(Graphics g, JComponent c)\n {\n hasFocus = comboBox.hasFocus();\n // if ( !comboBox.isEditable() ) \n {\n Rectangle r = rectangleForCurrentValue();\n paintCurrentValueBackground(g, r, hasFocus);\n if (!comboBox.isEditable())\n paintCurrentValue(g, r, hasFocus);\n }\n }",
"@Test\n public void testGetTableCellRendererComponent() {\n System.out.println(\"getTableCellRendererComponent\");\n JTable table = null;\n Object obj = null;\n boolean selected = false;\n boolean focused = false;\n int row = 0;\n int col = 0;\n ButtonRenderer instance = new ButtonRenderer();\n Component expResult = null;\n Component result = instance.getTableCellRendererComponent(table, obj, selected, focused, row, col);\n assertEquals(result, expResult);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n\t\tif (column == 0){\n\t\t\tsetIcon( Helper.getIcon(\"parameter.gif\") );\n\t\t} else {\n\t\t\tsetText( value.toString() + row );\n\t\t}\n\t\tsetBackground( new Color(100,100,200) );\n\t\treturn this;\n\t}",
"private TableCellRenderer getNumericCellRenderer() {\n return new DefaultTableCellRenderer() {\n /** serialization identifier */\n private static final long serialVersionUID = 1L;\n \n public java.awt.Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n JLabel label = (JLabel)super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n label.setHorizontalAlignment(RIGHT);\n\t\t\t\tlabel.setForeground(java.awt.Color.blue);\n return label;\n }\n };\n }",
"private void cListValueChanged(ListSelectionEvent e) {\n }",
"@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }",
"public PriceCellRenderer() \n\t{\n\t\tsuper();\n\t}",
"public Component getTableCellRendererComponent(JTable table, \n Object value, \n boolean isSelected, \n boolean hasFocus,\n int row, int column\n ) \n {\n if (value instanceof JProgressBar)\n return (JProgressBar)value;\n \n else if (value instanceof JTextArea)\n return (JTextArea)value;\n \n else if (value instanceof JComponent)\n return (JComponent) value;\n \n else\n return null;\n }",
"public ComponentRenderer<? extends Component, T> getItemRenderer() {\n return itemRenderer;\n }",
"@Override\n public Component getTableCellRendererComponent(JTable table, Object obj,\n boolean selected, boolean focused, int row, int col) {\n setText((obj==null) ? \"\":obj.toString());\n\n return this;\n }",
"public Component getTableCellRendererComponent(JTable table, Object color, boolean isSelected, boolean hasFocus, int row, int column) \r\n {\n \tBotonesIconos botonModificar = new BotonesIconos(\"MODIFICAR.png\");\r\n \t\r\n \treturn botonModificar; //new JButton();\r\n }",
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n table.setRowSelectionAllowed(true);\n // table.setAutoResizeMode(table.AUTO_RESIZE_OFF);\n JTextArea lbl = new JTextArea() {\n // methode a redefinir pour modifier l aspect de la cellule\n\n public void paint(Graphics g) {\n super.paint(g);\n\n }\n };\n\n // lbl.setHorizontalAlignment( JLabel.CENTER );\n lbl.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 0, 0)));\n Font font = table.getFont();\n //lbl.setOpaque( true );\n font = new Font(font.getName(), Font.BOLD, font.getSize() + 1);\n lbl.setMinimumSize(new Dimension(75, 30));\n lbl.setPreferredSize(new Dimension(75, 50));\n lbl.setFont(font);\n lbl.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n // lbl.setBackground(new Color(255, 204, 204));\n lbl.setBackground(new Color(255, 255, 204));\n lbl.setLineWrap(true);\n lbl.setWrapStyleWord(true);\n lbl.setText((String) value);\n\n return lbl;\n }",
"private JList getControlledBy() {\r\n\t\tif (controlledBy == null) {\r\n\t\t\tcontrolledBy = new JList();\r\n\t\t\tcontrolledBy.setBackground(SystemColor.control);\r\n\t\t}\r\n\t\treturn controlledBy;\r\n\t}",
"@Override\r\n\tpublic java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, Object color, boolean isSelected, boolean expanded, boolean leaf, int row, boolean hasFocus) {\n\t\treturn getComponent(color, isSelected, tree.getBackground(), tree.getBackground(), tree.getRowHeight(), tree.getFont());\r\n\t}",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected Transferable createTransferable(JComponent c) {\n\t// System.out.println(\"createTransferable\");\n\tif (c == jlist) {\n\t // JList list = (JList)c;\n\t indices = jlist.getSelectedIndices();\n\t Object[] values = jlist.getSelectedValues();\n\t return new ObjTransferable(values);\n\t} else {\n\t return null;\n\t}\n }",
"@Override\r\n\tpublic Component getTableCellEditorComponent(JTable table, Object value,\r\n\t\t\tboolean isSelected, int row, int column) {\n\t\tif(isSelected){\r\n\t\t\t System.out.println(\"MyTextEditor----单元格被选中\");\r\n setForeground(table.getForeground()); \r\n super.setBackground(table.getBackground());\r\n table.editCellAt(row, column);\r\n\t }else{\r\n setForeground(table.getForeground());\r\n setBackground(table.getBackground());\r\n\t }\r\n\t\t setText((value == null) ? \"\" : value.toString());\r\n\t\t setFocusable(true);\r\n\t\t setEditable(true);\r\n\t\t setEnabled(true);\r\n\t\t setVisible(true);\r\n\t\treturn this;\r\n\t}",
"@Override\n public Component getTableCellRendererComponent(JTable table, Object value,\n boolean isSelected, boolean hasFocus, int row, int column) {\n\n final Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n\n // Check the column name, if it is \"version\"\n if (table.getColumnName(column).compareToIgnoreCase(columnName) == 0) {\n // You know version column includes string\n Double val = NumberUtils.toDouble(value.toString().replace(\",\", \".\")) / 100.0;\n \n if (val > 1.0) val = 1.0;\n \n double H = val * 0.4; // Hue (note 0.4 = Green, see huge chart below)\n double S = 1; // Saturation\n double B = 1; // Brightness\n\n\n Color color = Color.getHSBColor((float)H, (float)S, (float)B);\n \n c.setForeground(color);\n c.setBackground(Color.BLACK);\n c.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n setText(value.toString() + \"%\");\n setHorizontalAlignment(SwingConstants.CENTER);\n\n } else {\n // Here you should also stay at default\n //stay at default\n c.setForeground(Color.BLACK);\n c.setBackground(Color.WHITE);\n c.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n if (NumberUtils.isNumber(value.toString()))\n setHorizontalAlignment(SwingConstants.CENTER);\n else\n setHorizontalAlignment(SwingConstants.LEFT);\n }\n return c;\n }",
"public Component getTableCellEditorComponent(JTable table,\r\n Object value,\r\n boolean isSelected,\r\n int row,\r\n int column) { \r\n return jtextfield;\r\n }",
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,\n\t\t\tint row, int column) {\n\t\tif (table != null) {\n\t\t\tJTableHeader header = table.getTableHeader();\n\t\t\tif (header != null) {\n\t\t\t\tsetForeground(header.getForeground());\n\t\t\t\tsetBackground(header.getBackground());\n\t\t\t\tsetFont(header.getFont());\n\t\t\t}\n\t\t}\n\n\t\tif (value != null)\n\t\t\tsetText(value.toString());\n\n\t\t// set normal border\n\t\tsetBorder(UIManager.getBorder(\"TableHeader.cellBorder\"));\n\t\tsetIcon(m_pkimage);\n\t\treturn this;\n\t}",
"public Component getTableCellRendererComponent(JTable table, Object value,\r\n boolean isSelected, boolean hasFocus, int row, int column) \r\n {\r\n JCheckBox chOficial = new JCheckBox();\r\n \r\n if (value instanceof Integer)\r\n {\r\n int valor = ((Integer)value).intValue();\r\n if (valor == 0)\r\n \tchOficial.setSelected(false);\r\n else\r\n \tchOficial.setSelected(true);\r\n }\r\n \r\n return chOficial;\r\n }",
"public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}",
"@Override\n public Component getTableCellEditorComponent(JTable table, Object value,\n boolean isSelected, int rowIndex, int vColIndex) {\n\n if (isSelected) {\n // cell (and perhaps other cells) are selected\n }\n\n StateTableData data = (StateTableData) table.getModel();\n item_ = data.getPropertyItem(rowIndex);\n // Configure the component with the specified value\n\n if (item_.allowed.length == 0) {\n text_.setText((String) value);\n return text_;\n }\n\n if (item_.allowed.length == 1) {\n if (item_.singleProp) {\n if (item_.hasLimits) {\n // slider editing\n if (item_.isInteger()) {\n slider_.setLimits((int) item_.lowerLimit, (int) item_.upperLimit);\n } else {\n slider_.setLimits(item_.lowerLimit, item_.upperLimit);\n }\n try {\n slider_.setText((String) value);\n } catch (ParseException ex) {\n ReportingUtils.logError(ex);\n }\n return slider_;\n\n } else if (item_.singlePropAllowed != null && item_.singlePropAllowed.length > 0) {\n setComboBox(item_.allowed);\n return combo_;\n } else {\n text_.setText((String) value);\n return text_;\n }\n }\n }\n\n\n if (1 < item_.allowed.length) {\n boolean allNumeric2 = true;\n // test that first character of every possible value is a numeral\n // if so, show user the list sorted by the numeric prefix\n for (int k = 0; k < item_.allowed.length; k++) {\n if (item_.allowed[k].length() > 0 && !Character.isDigit(item_.allowed[k].charAt(0))) {\n allNumeric2 = false;\n break;\n }\n }\n if (allNumeric2) {\n Arrays.sort(item_.allowed, new SortFunctionObjects.NumericPrefixStringComp());\n } else {\n Arrays.sort(item_.allowed);\n }\n }\n\n setComboBox(item_.allowed);\n\n // Return the configured component\n return combo_;\n }",
"public void drawListRow(ListField list, Graphics g, int index, int y, int w) {\nPerson personToDraw = (Person) this.get(list, index);\nint drawColor = Color.BLACK;\nif ( list == _lfBoys ) {\n// We have a boy!\ndrawColor = Color.BLUE;\n} else {\ndrawColor = Color.RED;\n}\ng.setColor(drawColor);\ng.drawText(personToDraw._firstName + \" \" + personToDraw._lastName, 0, y, 0, w);\n}",
"public Component getTableCellEditorComponent(JTable table,\r\n Object value, boolean isSelected, int row,\r\n int column) {\r\n val = value;\r\n return (Component) val;\r\n }",
"@Override\n\tpublic Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) \n\t{\n\t\tif (value instanceof Double) {\n\t\t\tvalue = CURRENCY_FORMAT.format(value);\n\t\t}\n\t\treturn super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n\t}",
"public Component getTreeCellRendererComponent(\n JTree tree, //stablo koje se prikazuje\n Object value, //stavka koja se iscrtava \n boolean sel, //da li je stavka selektovana\n boolean expanded,\n boolean leaf, //da li je list\n int row,\n boolean hasFocus) {\n super.getTreeCellRendererComponent(tree, value, sel,expanded, leaf, row,hasFocus);\n \n \n if (value instanceof Entity ) {\n URL imageURL = getClass().getResource(\"gui_icons/table1.png\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } else if (value instanceof InformationResource ) {\n \t URL imageURL=getClass().getResource(\"gui_icons/file.jpg\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } else if (value instanceof Attribute ) {\n \t URL imageURL=getClass().getResource(\"gui_icons/attribute.png\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } else if (value instanceof AttributeConstraint) {\n \tAttributeConstraint ac = (AttributeConstraint) value;\n \t URL imageURL=null;\n \t if (ac.getConstraintType() == ConstraintType.PRIMARY_KEY) imageURL=getClass().getResource(\"gui_icons/primary.png\");\n \t else if(ac.getConstraintType() == ConstraintType.FOREIGN_KEY) imageURL=getClass().getResource(\"gui_icons/imported.jpg\");\n \t else if(ac.getConstraintType() == ConstraintType.NOT_NULL) imageURL=getClass().getResource(\"gui_icons/notnull.png\");\n Icon icon = null;\n if (imageURL != null) \n icon = new ImageIcon(imageURL);\n setIcon(icon);\n \n } \n return this;\n}",
"@Override\n\t\t\tpublic Component getTableCellRendererComponent(JTable table, Object value,\n\t\t\t\t\tboolean isSelected, boolean hasFocus, int row, int column) {\n\t\t\t\tJLabel text = new JLabel();\n\t\t\t\ttext.setBackground(Color.white);\n\t\t\t\ttext.setOpaque(true);\n\t\t\t\tif (isSelected) {\n\t\t\t\t\ttext.setBackground(Color.cyan);\n\t\t\t\t}\n\t\t\t\tif (value == null) {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\t\t\t\tPlay thisPlay = (Play)value;\n\t\t\t\tif (column == 0) {\n\t\t\t\t\ttext.setText(thisPlay.hallNumber+1+\"号影厅\");\n\t\t\t\t}else if (column ==1) {\n\t\t\t\t\ttext.setText(thisPlay.movie.name);\n\t\t\t\t}else if (column ==2) {\n\t\t\t\t\ttext.setText(thisPlay.movie.tap);\n\t\t\t\t}else if (column == 3){\n\t\t\t\t\tSimpleDateFormat f = new SimpleDateFormat(\"yyyy年MM月dd日hh:mm\");\n\t\t\t\t\tString d = f.format(thisPlay.calendar.getTime());\n\t\t\t\t\ttext.setText(d);\n\t\t\t\t}else if (column ==4) {\n\t\t\t\t\ttext.setText(thisPlay.movie.time+\"\");\n\t\t\t\t}else if (column == 5) {\n\t\t\t\t\ttext.setText(thisPlay.movie.price+\"元\");\n\t\t\t\t}else if (column == 6) {\n\t\t\t\t\ttext.setText(thisPlay.ticketLeft()+\"\");\n\t\t\t\t}\n\t\t\t\treturn text;\n\t\t\t}",
"@Override\n public Object getRenderer()\n {\n return null;\n }",
"@Override\n\tpublic Component prepareRenderer(TableCellRenderer renderer, int row, int column)\n\t{\n Component c = super.prepareRenderer(renderer, row, column);\n if (!c.getBackground().equals(getSelectionBackground()))\n {\n String type = (String)getModel().getValueAt(row, column);\n //if this value is not in the known data file\n if(session.isMispelled(type, column-1))\n {\n \t session.markCellAsMispelled(row, column);\n \t c.setBackground(Color.RED);\n \t c.addMouseListener(rightClickListener);\n }\n \n else\n {\n \t session.markCellAsNotMispelled(row, column);\n \t c.setBackground(Color.WHITE);\n \t c.removeMouseListener(rightClickListener);\n }\n }\n return c;\n\t}",
"public void valueChanged(ListSelectionEvent e) {\r\n\t\tif (e.getValueIsAdjusting() == false)\r\n\t\t\tsetSelectedObjects();\r\n\r\n\t\tgetTable().repaint();\r\n\t}",
"private void gListValueChanged(ListSelectionEvent e) {\n }",
"public Component \t\n getTableCellEditorComponent\n (\n JTable table, \n Object value, \n boolean isSelected, \n int row, \n int column\n )\n {\n pField.setPlugin((BaseEditor) value);\n \n return pField;\n }",
"public SourceListCellRenderer(String nullLabel, JComponent component) {\n\t\tsuper(component);\n\t\tthis.nullLabel = nullLabel;\n\t}",
"public Component getTableCellRendererComponent(JTable table ,\n\t\t\t\tObject value , boolean isSelected , boolean hasFocus , int row ,\n\t\t\t\tint column) {\n\t\t\tsetText(buttonSeeWord);\n\t\t\treturn this;\n\t\t}",
"@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tJList list = (JList) e.getSource();\n\t\t// System.out.println(list.getSelectedIndex() + \" \" +results.size() );\n\t\tif (results.size() < list.getSelectedIndex()\n\t\t\t\t|| list.getSelectedIndex() < 0) {\n\t\t\tupdateLabel(results.toArray(new String[0])[0]);\n\t\t} else\n\t\t\tupdateLabel(results.toArray(new String[0])[list.getSelectedIndex()]);\n\t}",
"public JComponent getComponent();",
"private void linkCell() {\n taskListView.setCellFactory(listView -> {\n TaskListViewCell cell = new TaskListViewCell();\n cell.addEventFilter(MouseEvent.MOUSE_PRESSED, event -> {\n taskListView.requestFocus();\n if (!cell.isEmpty()) {\n int index = cell.getIndex();\n if (taskListView.getSelectionModel().getSelectedIndices().contains(index)) {\n logger.fine(\"Selection in task list panel with index '\" + index\n + \"' has been deselected\");\n raise(new DeselectListCellTask(taskListView, index));\n } else {\n taskListView.getSelectionModel().select(index);\n }\n event.consume();\n }\n });\n return cell;\n });\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t\t\t@Override\r\n\t\t\tpublic Component getTreeCellRendererComponent(\r\n\t\t\t\t\tJTree tree, Object value, boolean sel, boolean expanded,\r\n boolean leaf, int row, boolean hasFocus\r\n\t\t\t) {\n\t\t\t\tsuper.getTreeCellRendererComponent(\r\n\t\t\t\t\ttree, value, sel, expanded, leaf, row, hasFocus);\r\n\r\n\t\t\t\tthis.setFont(LIST_FONT);\r\n\t\t\t\t\r\n\t\t\t\tObject nodeObj = ((DefaultMutableTreeNode) value).getUserObject();\r\n\t\t\t\tif (nodeObj == null) {\r\n\t\t\t\t\tsetText(\"\"); // Root node\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tMap<String, Object> map = (Map<String, Object>) nodeObj;\r\n\r\n\t\t\t\tObject item = map.get(\"obj\");\r\n\t\t\t\tif (item instanceof Task) {\r\n\t\t\t\t\tFormatter<Task> formatter = (Formatter<Task>) map.get(\"formatter\");\r\n\t\t\t\t\tsetText(formatter.apply((Task) item));\r\n\r\n\t\t\t\t} else if (item instanceof TaskExecution) {\r\n\t\t\t\t\tFormatter<TaskExecution> formatter = (Formatter<TaskExecution>) map.get(\"formatter\");\r\n\t\t\t\t\tsetText(formatter.apply((TaskExecution) item));\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new TaskManagerExceptions.InvalidTaskTypeException();\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t}",
"public Component prepareRenderer(TableCellRenderer renderer, int Index_row, int Index_col) {\n\t\tComponent comp = super.prepareRenderer(renderer, Index_row, Index_col);\r\n\t\t\r\n\t\tif (Index_col == 0) {\r\n\t\t\tcomp.setBackground(Color.green);\r\n\t\t} else {\r\n\t\t\tcomp.setBackground(Color.LIGHT_GRAY);\t\r\n\t\t}\r\n\t\treturn comp;\r\n\t}",
"public MyRenderer(List<Integer> list){\n\t\tcorrectList = list;\n\t}",
"@Override\n public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {\n JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);\n\n if (practiceData[row][col] != null && label != null) {\n Font oldFont = getFont();\n label.setFont(new Font(oldFont.getFontName(), Font.BOLD, oldFont.getSize()));\n\n // the predMatrix display red, and the postMatrix display blue.\n if (col < table.getModel().getColumnCount() / 2) {\n label.setForeground(Color.red);\n } else {\n label.setForeground(Color.blue);\n }\n }\n\n return label;\n }",
"public Object getCellEditorValue() {\n return currentColor;\n }"
] |
[
"0.80146295",
"0.78319013",
"0.7744788",
"0.7686002",
"0.755125",
"0.75041497",
"0.7410198",
"0.7406667",
"0.7390721",
"0.7332317",
"0.72682667",
"0.72487056",
"0.7207204",
"0.7195834",
"0.7193845",
"0.71111894",
"0.70421153",
"0.7038757",
"0.70055383",
"0.69802123",
"0.6948783",
"0.6915725",
"0.6905375",
"0.6895594",
"0.68627274",
"0.68343997",
"0.68176174",
"0.67364645",
"0.6541671",
"0.6434396",
"0.6425021",
"0.6419572",
"0.64179015",
"0.636683",
"0.6312516",
"0.6232393",
"0.6218949",
"0.6211718",
"0.62025017",
"0.6192593",
"0.61753297",
"0.6160302",
"0.6152305",
"0.61456144",
"0.6119819",
"0.6098468",
"0.609097",
"0.607645",
"0.6044386",
"0.601748",
"0.60062385",
"0.60042775",
"0.5995562",
"0.596154",
"0.5955421",
"0.5954113",
"0.5927704",
"0.5922351",
"0.5889769",
"0.5876974",
"0.58735096",
"0.585597",
"0.58517736",
"0.5849773",
"0.58423334",
"0.5836068",
"0.58252823",
"0.58117807",
"0.58075285",
"0.5792514",
"0.5763345",
"0.57472193",
"0.5737175",
"0.57345176",
"0.57192206",
"0.57134277",
"0.5711758",
"0.5701033",
"0.5689443",
"0.5676187",
"0.56658417",
"0.5664825",
"0.56517416",
"0.5642902",
"0.56325746",
"0.5627342",
"0.5618317",
"0.5610243",
"0.5597851",
"0.55904704",
"0.5589905",
"0.55895495",
"0.5585534",
"0.5577137",
"0.5571073",
"0.556452",
"0.5560887",
"0.5531268",
"0.5531075",
"0.5524304"
] |
0.7592137
|
4
|
/ Finds the field named fieldName on class clazz. If there are shadowed fields with that name the user is asked to chose one of them.
|
public Field findField(Inspector insp, Class<?> clazz, String fieldName)
throws FieldNotFoundException, InvalidOptionException {
Map<String, Field> fields = ReflectionHelper.findAllFields(clazz,
fieldName);
Field field;
if (fields.size() == 0) {
throw new FieldNotFoundException(fieldName);
} else if (fields.size() == 1) {
// get the only element of the map
field = fields.values().iterator().next();
} else {
// ask user to chose the which shadowed field is to be inspected
field = this.askFieldFromUser(insp, fields);
}
return field;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static Field getField(Class<?> clazz, String fieldToFind)\n throws SecurityException, NoSuchFieldException {\n Class<?> type = clazz;\n Field field = null;\n do {\n Field[] fields = type.getDeclaredFields();\n for (Field f : fields) {\n boolean isFieldFound = f.getName().equals(fieldToFind);\n if (isFieldFound) {\n field = type.getDeclaredField(fieldToFind);\n break;\n }\n }\n if (field == null) {\n type = type.getSuperclass();\n if (type == null) {\n throw new NoSuchFieldException(fieldToFind\n + \" not found in Class \" + clazz.getCanonicalName());\n }\n }\n } while (field == null);\n return field;\n }",
"private static Field getField(final Class clazz, final String fieldName) {\n try {\n return clazz.getDeclaredField(fieldName);\n } catch (NoSuchFieldException e) {\n if (clazz != Object.class) {\n return getField(clazz.getSuperclass(), fieldName);\n }\n fail(\"Field [\" + fieldName + \"] does not exist.\");\n }\n return null;\n }",
"public static ReflectionResponse<Field> getDeclaredField(Class<?> clazz, String fieldName) {\n return getDeclaredField(clazz, fieldName, false);\n }",
"public static Field getField(Class<?> clazz, String name) {\n if (clazz != null) {\n Field field = null;\n try {\n field = clazz.getDeclaredField(name);\n } catch (Exception e) {}\n\n if (field == null) {\n clazz = clazz.getSuperclass();\n if (Object.class != clazz) {\n return getField(clazz, name);\n }\n }\n return field;\n } else {\n return null;\n }\n }",
"public String getField(String className, String fieldName, String fieldDescriptor) {\n if (!classFilter.contains(className)) return null;\n\n // Don't remap inherited fields, their name is inherited from the parent's mapping\n for (String superclass : inheritanceProvider.getAllSuperclasses(className)) {\n if (inheritanceProvider.getInheritableFields(superclass).contains(new MemberRef(fieldName, fieldDescriptor))) {\n return null;\n }\n }\n\n String result = super.getField(className, fieldName, fieldDescriptor);\n if (result == null) {\n result = \"field\" + fieldIndex++;\n addField(className, fieldName, fieldDescriptor, result);\n }\n return result;\n }",
"public Field<T> getFieldByName(String fieldName)\r\n/* 53: */ {\r\n/* 54:69 */ return (Field)this.fieldsByName.get(fieldName);\r\n/* 55: */ }",
"public String getFieldName(Class<?> type, String fieldName);",
"private static Field getField(Class cls, String fieldName) throws NoSuchFieldException {\n try {\n Field field = cls.getDeclaredField(fieldName);\n field.setAccessible(true);\n return field;\n } catch (NoSuchFieldException nsfe) {\n NoSuchFieldException e = new NoSuchFieldException(getMessage(\"classloaderutil.errorGettingField\", fieldName));\n e.initCause(nsfe);\n throw e;\n }\n\n }",
"FieldInstance fieldNamed(String name);",
"public static Field findField(Class<?> cls, String name) throws NoSuchFieldException {\n if (cls != null) {\n try {\n return cls.getDeclaredField(name);\n } catch (NoSuchFieldException e) {\n return findField(cls.getSuperclass(), name);\n }\n } else {\n throw new NoSuchFieldException();\n }\n }",
"public static ReflectionResponse<Field> getField(Class<?> clazz, String fieldName) {\n Validate.notNull(clazz, \"clazz cannot be null\");\n Validate.notNull(fieldName, \"fieldName cannot be null\");\n try {\n return new ReflectionResponse<>(clazz.getField(fieldName));\n } catch (NoSuchFieldException e) {\n return new ReflectionResponse<>(e);\n }\n }",
"private SymObject findField(Struct type, String name) {\n for (SymObject field : type.fields) {\n if (field.name.equals(name)) {\n return field;\n }\n }\n\n error(name + \" can't be find as a field\");\n return SymbolTable.OBJECT_NONE;\n }",
"public static Field getProtectedField(Class klass, String fieldName)\n {\n try\n {\n Field field = klass.getDeclaredField(fieldName);\n field.setAccessible(true);\n return field;\n }\n catch (Exception e)\n {\n throw new AssertionError(e);\n }\n }",
"public Field field(Class cls, String name, Class definedIn) {\n Map fields = buildMap(cls, definedIn != null);\n Field field = (Field)fields.get(definedIn != null ? (Object)new FieldKey(\n name, definedIn, 0) : (Object)name);\n if (field == null) {\n throw new ObjectAccessException(\"No such field \" + cls.getName() + \".\" + name);\n } else {\n return field;\n }\n }",
"public static Object getRestrictedFieldValue(Object obj, Class theClass, String fieldName)\n throws NoSuchFieldException {\n Field field = theClass.getDeclaredField(fieldName);\n field.setAccessible(true);\n try {\n return field.get(obj);\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex);\n return null;\n }\n }",
"VarRef lookupField(String fieldUse);",
"public static Optional<FieldInfo> findField(ClassPath path, ClassDescriptor clazz, FieldDescriptor descriptor) {\n return findField(path, clazz, fi -> fi.getDescriptor().equals(descriptor));\n }",
"public Field field(Class cls, String name, Class definedIn) {\n Map fields = buildMap(cls, definedIn != null);\n Field field = (Field) fields.get(definedIn != null ? (Object) new FieldKey(name, definedIn, 0) : (Object) name);\n if (field == null) {\n throw new ObjectAccessException(\"No such field \" + cls.getName() + \".\" + name);\n } else {\n return field;\n }\n }",
"private static Field findFieldInHierarchy(Object object, String fieldName) {\n return findFieldInHierarchy(object, new FieldNameMatcherStrategy(fieldName));\n }",
"protected Field<?> getPrivateField(final FieldHolder<?> fieldHolder, final String propertyName)\r\n {\r\n if (this.privateFieldConvention != null)\r\n {\r\n // Determine field name based on convention. MessageFormat arguments are:\r\n //\r\n // {0} = dateOfBirth, surname\r\n // {1} = DateOfBirth, Surname\r\n \r\n String[] arguments = new String[] { propertyName, StringUtils.capitalize(propertyName) };\r\n String fieldName;\r\n \r\n synchronized (this.privateFieldConvention)\r\n {\r\n fieldName = this.privateFieldConvention.format(arguments, new StringBuffer(), null).toString();\r\n }\r\n \r\n return fieldHolder.getField(fieldName);\r\n }\r\n \r\n Field<?> field = fieldHolder.getField(propertyName);\r\n \r\n // FORGE-402: support fields starting with capital letter\r\n \r\n if (field == null && !StringUtils.isCapitalized(propertyName))\r\n {\r\n field = fieldHolder.getField(StringUtils.capitalize(propertyName));\r\n }\r\n \r\n return field;\r\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }",
"public static Field getInheritedPrivateField(Class<?> type, String fieldName) throws NoSuchFieldException\r\n {\r\n Field result = null;\r\n Class<?> i = type;\r\n while (i != null && i != Object.class && result == null) {\r\n try {\r\n result = i.getDeclaredField(fieldName);\r\n } catch (NoSuchFieldException exception) {\r\n result = null;\r\n }\r\n i = i.getSuperclass();\r\n }\r\n if (result == null) {\r\n throw new NoSuchFieldException(\"Field \" + fieldName + \" not found on class \" + type);\r\n }\r\n return result;\r\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"private static Field findFieldOrThrowException(Class<?> fieldType, Class<?> where) {\n if (fieldType == null || where == null) {\n throw new IllegalArgumentException(\"fieldType and where cannot be null\");\n }\n Field field = null;\n for (Field currentField : where.getDeclaredFields()) {\n currentField.setAccessible(true);\n if (currentField.getType().equals(fieldType)) {\n field = currentField;\n break;\n }\n }\n if (field == null) {\n throw new FieldNotFoundException(\"Cannot find a field of type \" + fieldType + \"in where.\");\n }\n return field;\n }",
"private static Field getJDKField(RVMField field) throws NoSuchFieldException {\n try {\n String cn = field.getDeclaringClass().toString();\n if (VM.BuildForGnuClasspath &&\n field.getDeclaringClass().getClassForType().equals(java.lang.reflect.Proxy.class) &&\n field.getName().toString().equals(\"proxyClasses\")) {\n // Avoid confusing bootstrap JVM and classpath fields\n throw new NoSuchFieldException(field.toString());\n }\n Field f = Class.forName(cn).getDeclaredField(field.getName().toString());\n f.setAccessible(true);\n return f;\n } catch (NoSuchFieldError e) {\n throw new NoSuchFieldException(field.toString());\n } catch (ClassNotFoundException e) {\n throw new NoSuchFieldException(field.toString());\n } catch (NoClassDefFoundError e) {\n throw new NoSuchFieldException(field.toString());\n } catch (IllegalAccessError e) {\n throw new NoSuchFieldException(field.toString());\n } catch (UnsatisfiedLinkError e) {\n throw new NoSuchFieldException(field.toString());\n }\n }",
"public static <T> ReflectGetter<T> getReflectGetter(String fieldName, Class<?> clazz)\n {\n String fieldNameCpy = fieldName;\n fieldName = Character.toUpperCase(fieldName.charAt(0)) + fieldName.substring(1);\n Method m = null;\n try\n {\n m = clazz.getMethod(\"get\" + fieldName);\n }\n catch (NoSuchMethodException ignored1)\n {\n try\n {\n m = clazz.getMethod(\"is\" + fieldName);\n }\n catch (NoSuchMethodException ignored2)\n {\n for (Method cm : clazz.getMethods())\n {\n if ((cm.getName().equalsIgnoreCase(\"get\" + fieldName) || cm.getName().equalsIgnoreCase(\"is\" + fieldName)) &&\n (cm.getReturnType() != Void.class) && (cm.getReturnType() != void.class) && (cm.getParameterCount() == 0))\n {\n m = cm;\n break;\n }\n }\n }\n }\n\n if (m != null)\n {\n return new ReflectMethodGetter<>(m);\n }\n else\n {\n return new ReflectField<>(getField(clazz, fieldNameCpy));\n }\n }",
"public FieldIdItem lookupField(final Class<?> clazz, final String name, final Class<?> type) {\n\t\treturn lookupField(TypeUtils.getTypeDescriptor(clazz), name, TypeUtils.getTypeDescriptor(type));\n\t}",
"public static Field getField (Class c, String name)\n\t\tthrows NoSuchFieldException\n\t{\n\t\tField f = null;\n\t\t\n\t\twhile (null != c && null == f)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tf = c.getDeclaredField(name);\n\t\t\t}\n\t\t\tcatch (NoSuchFieldException e)\n\t\t\t{\n\t\t\t\tc = c.getSuperclass();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (null == f)\n\t\t{\n\t\t\tthrow new NoSuchFieldException (\n\t\t\t\t\"Could not find field \" + name\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn f;\n\t}",
"private <T> Field getPrivateField(T myObject, String fieldName) {\r\n\t\tField privateStringField;\r\n\t\ttry {\r\n\t\t\tprivateStringField = myObject.getClass()\r\n\t\t\t\t\t.getDeclaredField(fieldName);\r\n\t\t\tprivateStringField.setAccessible(true);\r\n\t\t\treturn privateStringField;\r\n\t\t} catch (NoSuchFieldException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tfail(\"member \\\"\" + fieldName + \"\\\" not found\");\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@SuppressWarnings(\"ConstantConditions\")\n public static <T> FieldAccessor<T> getField(Class<?> target, @Nullable String name, Class<T> fieldType)\n {\n return getField(target, name, fieldType, 0, true);\n }",
"String getFieldName();",
"public static ReflectionResponse<Field> getDeclaredField(Class<?> clazz, String fieldName, boolean setAccessible) {\n Validate.notNull(clazz, \"clazz cannot be null\");\n Validate.notNull(fieldName, \"fieldName cannot be null\");\n try {\n Field field = clazz.getDeclaredField(fieldName);\n field.setAccessible(setAccessible);\n return new ReflectionResponse<>(field);\n } catch (NoSuchFieldException e) {\n return new ReflectionResponse<>(e);\n }\n }",
"protected Field getFieldWithAnnotation(Class clazz, Class annotation)\r\n {\r\n Field result = null;\r\n Field fields[] = clazz.getDeclaredFields();\r\n for (Field field : fields) {\r\n Annotation an = field.getAnnotation(annotation);\r\n if (an != null) {\r\n return field;\r\n }\r\n }\r\n return result;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public static Optional<FieldInfo> findField(ClassPath path,\n ClassDescriptor clazz,\n BiPredicate<ClassNode, FieldNode> condition) {\n return find(path,\n path.findClass(clazz).get(),\n cn -> ((List<FieldNode>) cn.fields)\n .stream()\n .filter(fn -> condition.test(cn, fn))\n .map(fn -> new FieldInfo(new ClassDescriptor(cn.name),\n FieldDescriptor.create(fn.name, fn.desc)))\n .findFirst());\n }",
"private static Field findSingleFieldUsingStrategy(FieldMatcherStrategy strategy, Object object,\n boolean checkHierarchy, Class<?> startClass) {\n assertObjectInGetInternalStateIsNotNull(object);\n Field foundField = null;\n final Class<?> originalStartClass = startClass;\n while (startClass != null) {\n final Field[] declaredFields = startClass.getDeclaredFields();\n for (Field field : declaredFields) {\n if (strategy.matches(field) && hasFieldProperModifier(object, field)) {\n if (foundField != null) {\n throw new TooManyFieldsFoundException(\"Two or more fields matching \" + strategy + \".\");\n }\n foundField = field;\n }\n }\n if (foundField != null) {\n break;\n } else if (!checkHierarchy) {\n break;\n }\n startClass = startClass.getSuperclass();\n }\n if (foundField == null) {\n strategy.notFound(originalStartClass, !isClass(object));\n }\n foundField.setAccessible(true);\n return foundField;\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }"
] |
[
"0.7601514",
"0.76007795",
"0.7085864",
"0.6894456",
"0.6774419",
"0.67363906",
"0.6724367",
"0.6612696",
"0.66051733",
"0.6567912",
"0.6485379",
"0.6360325",
"0.63186806",
"0.63084584",
"0.63025504",
"0.6301889",
"0.62043846",
"0.61975706",
"0.61818093",
"0.61727786",
"0.61507773",
"0.61507773",
"0.6149312",
"0.6144254",
"0.6144254",
"0.6144254",
"0.6144254",
"0.6144254",
"0.6144254",
"0.6144254",
"0.6144254",
"0.6144254",
"0.61257124",
"0.6124129",
"0.6110794",
"0.61070013",
"0.6101082",
"0.6098744",
"0.609192",
"0.60753053",
"0.60711414",
"0.6063888",
"0.6055804",
"0.60509247",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775",
"0.60472775"
] |
0.8221484
|
0
|
What is the top line for the terminal screen
|
Node<UnderlyingData> getTopLineNode();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getLineTop(int line){\n return getLineHeight() * line;\n }",
"public String getCurrentScreenDisplay();",
"public int getTop(){\n\t\treturn platformHitbox.y;\n\t}",
"public abstract TnScreen getCurrentScreen();",
"public String getScreen() {\n\t\treturn screen;\n\t}",
"public MeasurementCSSImpl getTop()\n\t{\n\t\treturn top;\n\t}",
"private void drawTopBorder(StringBuffer canvas) {\n \t\t\tfor (int i=0; i<width; i++)\r\n \t\t\t\tcanvas.append('_'); //Top bar.\r\n \t\t\tcanvas.append('\\n');}",
"public GraphicsDevice getScreen();",
"private static void clearScreen() \n {\n Console c = System.console();\n if (c != null) \n {\n // Clear screen for the first time\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n //c.writer().print(ESC + \"[2J\");\n //c.flush();\n\n // Clear the screen again and place the cursor in the top left\n System.out.print(\"\\033[H\\033[1;1H\");\n System.out.flush();\n //c.writer().print(ESC + \"[1;1H\");\n //c.flush();\n }\n }",
"public int getFirstVisibleLine(){\n int j = Math.min(getOffsetY() / getLineHeight(), getLineCount() - 1);\n if(j < 0){\n return 0;\n }else{\n return j;\n }\n }",
"public Card showTop() {\n\t\treturn hand.get(0);\n\t}",
"public boolean getStrokeOnTop() { return false; }",
"public void displayTitleScreen() {\n System.out.println(\n \" @@@: @@@@ \\n\" +\n \" %@@: @@%@ \\n\" +\n \" @@@: @@@@ \\n\" +\n \" @@@: @@@@ \\n\" +\n \" @@@: @%%% \\n\" +\n \" @@@: %@@@ \\n\" +\n \" *@@%@@# @@@% @@@%%@ @@@@@@ @@@@ #%@%@@+ @@@@@ =@%@@@% \\n\" +\n \" @@@@@@@%@@@ @@@@@@@@@@@%@ +%@%@@@@@@@ %%@@ @@@@@@@@@%@ @@@@%@@%% %%%@@@@%%@@ \\n\" +\n \" @@@% %@@@ @@@@@* %@@@% @@@@+ %@@@* @@@@ @@@@ @@@@ @@@@ %@@@ @@@@ @@%@ \\n\" +\n \" @%@@ #@%@* @@@@ %%@ %@@@ @@%@ @@@@ %@@% @@@@ +%@% @@@@ @@@@ +%@%@ \\n\" +\n \" @@% @%@@ @@@% @@%@ @%%- @@@@ @@%@ .@%@ @@@ @@%@ %@%% @@@ @@%@@ \\n\" +\n \"+@@@ @@@@ @@%- @@%@ %%% %@%% @%@% %@@% @@@ @@%@ %%@@ @%@ @@+ \\n\" +\n \" @@@ @@@@ %@@: %@%@ %@@@ =%%@# %@%% @@@ @%@ @%%@ @@@@ @@%. \\n\" +\n \" #%@% %* #%@%# @@@: @@@@ @@@# @@ @@@@ @%%% @%%% %@@% @%@% @@@@ -@@% \\n\" +\n \" #@%@@@@@%%@%% @%@@@%%: @%%@%@%@ %@%@%@@@@@%@ @@@@@%@@ %@@%@@%%@@@@% %@@@ %@@@ -@@@%@@@@@@%# \\n\" +\n \" %@%@@%@@% @@%@@@: @@@%%% #%@@%@@%@ @@%@@@@ @@%@@@@@@ @@@@ %%%@ %@%@@%@@@ \\n\" +\n \"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― \\n\" +\n \" Nouvelle partie \"\n );\n }",
"public int top() { return 0; }",
"public int getSafeInsetTop() {\n if (SDK_INT >= 28) {\n return ((DisplayCutout) mDisplayCutout).getSafeInsetTop();\n } else {\n return 0;\n }\n }",
"@DISPID(-2147417103)\n @PropGet\n int offsetTop();",
"int top();",
"protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }",
"public int top() {\r\n return top;\r\n }",
"public int top() {\r\n return top;\r\n }",
"@Override\r\n public CHScreen getScreen() {\n return curScreen;\r\n }",
"public int getTopY() {\n\t\treturn 0;\r\n\t}",
"private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"public int top() {\n return top;\n }",
"protected double getWindowTopY() {\n\t\treturn this.m_windowTopY;\n\t}",
"public void clearTerminal(){\n\n System.out.println(\"\\033[2J\\033[1;1H\");\n\n }",
"@Override\n\tpublic String getTerminal() {\n\t\treturn AnchorParser.getInstance().getTerminal(AnchorKind.DISTANCE, height);\n\t}",
"public static void clearScreen() { \n \tSystem.out.print(\"\\033[H\\033[2J\"); \n \tSystem.out.flush();\n\t}",
"public int getTop() {\n\t\treturn this.top;\n\t}",
"public int getTop() {\n\treturn top;\n }",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public void clearScreen() { \n\t System.out.print(\"\\033[H\\033[2J\"); \n\t System.out.flush(); \n\t }",
"public static SuffixLattice getTop() {\n\t\treturn TOP;\n\t}",
"static void clear_console_screen()\n\t{\n\t\tfor (int lines=0; lines<200; lines++)\n\t\t{\n\t\t\tSystem.out.println(\" \");\n\t\t}// end for (int lines=0; lines<200; lines++)\n\t\t\n\t}",
"public int getTop() {\n return top;\n }",
"public String getTopnum() {\n return topnum;\n }",
"public int getLastVisibleLine(){\n int l = Math.min((getOffsetY() + getHeight()) / getLineHeight(), getLineCount() - 1);\n if(l < 0){\n return 0;\n }else{\n return l;\n }\n }",
"public static void clearScreen() {\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"private int getCurrentLineByCursor() {\n return Math.min((int)cursor.getY() / lineHeight + 1, textBuffer.getMaxLine()-1);\n }",
"public int getYTop() {\n return yTop;\n }",
"public int m2390b() {\n return VERSION.SDK_INT >= 20 ? ((WindowInsets) this.f1817a).getSystemWindowInsetTop() : 0;\n }",
"boolean isAlwaysOnTop();",
"public int top();",
"private final static void clearConsole()\t{\n\t\tSystem.out.print(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"public int getCursorPosition();",
"public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\n \"██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\\n\" +\n \"╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\\n\" +\n \"░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\\n\" +\n \"░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\\n\" +\n \"░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\\n\" +\n \"░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\\n\" +\n \"\\n\" +\n \"░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\\n\" +\n \"██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\\n\" +\n \"██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\\n\" +\n \"██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\\n\" +\n \"╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\\n\" +\n \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }",
"QDisplayTerm createDisplayTerm();",
"private JTextArea getConsole() {\r\n\t\tif (console == null) {\r\n\t\t\tconsole = new JTextArea();\r\n\t\t}\r\n\t\treturn console;\r\n\t}",
"int getCursorPosition();",
"public Integer getTop() {\n return top;\n }",
"Lifeline getLifeline();",
"private String getCommandWithPrompt() {\n print(\"dbg<\" + pc + getLabel(pc) + \">\");\n return nextLine();\n }",
"public String getTop_actif() {\r\n\t\treturn top_actif;\r\n\t}",
"public static void printPrompt() {\n System.out.print(\" > \");\n }",
"public String getTerminal() {\n\t\treturn this.token.get(\"terminal\").toString();\n\t}",
"public int clearScreen () {\n int distance = home();\n myLine.clear();\n return distance;\n }",
"public void drawStartScreen() {\n\t\tint highScore = getHighScore();\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Press to Start Game\", 0, -100, false);\n\t}",
"public Piece[] getTopLine() {\n Piece[] topLine = new Piece[3];\n for (int i = 0; i < this.getBoard().length; i += 1) {\n topLine[i] = this.getBoard()[i][2];\n }\n return topLine;\n }",
"public int getScrnNo()\n\t{\n\t\treturn scrnNo;\n\t}",
"public int getScreenY()\r\n\t{\r\n\t\treturn mScreen.getY();\r\n\t}",
"String getCurrentLine();",
"public int getScreenNumber(){\n\t\treturn screenNumber;\n\t}",
"public interface AwtTerminalInterface {\n\n /**\n * \n * @param what codepoint\n */\n public abstract void addch(int what);\n\n /**\n * Clear the grid\n */\n public abstract void clear();\n\n /**\n * Clear\n * @param empty new empty\n */\n public abstract void clear(AwtCell empty);\n\n /**\n * Copy from another NativeTerminal\n * \n * @param oterm original terminal\n * @param numRows number of rows to copy\n * @param numCols number of columns to copy\n * @param startY starting Y offset in <code>oterm</code>\n * @param startX starting X offset in <code>oterm</code>\n * @param destY destination Y offset in <code>this</code>\n * @param destX destination X offset in <code>this</code>\n */\n public abstract void copyFrom(TerminalPanel oterm, int numRows,\n int numCols, int startY, int startX,\n int destY, int destX);\n\n /**\n * perform an update\n */\n public abstract void doUpdate();\n\n /**\n * find column for window position\n * @param x window coordinate (X)\n * @return column\n */\n public abstract int findColForWindow(int x);\n\n /**\n * Find the row and column for a window coordinate\n * @param y window coordinate (Y)\n * @param x window coordinate (X)\n * @return new point mapping to row and column\n */\n public abstract Positionable findPositionForWindow(int y, int x);\n\n /**\n * find row for window position\n * @param y window coordinate (Y)\n * @return row\n */\n public abstract int findRowForWindow(int y);\n\n /**\n * Get the AwtCell in a position\n * @param y row\n * @param x column\n * @return cell\n */\n public abstract AwtCell get(int y, int x);\n\n /**\n * @return current background color\n */\n public abstract Color getCurBackground();\n\n /**\n * @return current foregound color\n */\n public abstract Color getCurForeground();\n\n /**\n * Get cursor location\n * @return cursor location [y, x]\n */\n public abstract int[] getCursorLocation();\n\n /**\n * @return cursor's X position\n */\n public abstract int getCursorX();\n\n /**\n * @return cursor's Y position\n */\n public abstract int getCursorY();\n\n /**\n * get the empty cell\n * @return empty cell\n */\n public abstract AwtCell getEmpty();\n\n /**\n * Get the current font\n * @return the current font\n */\n public abstract Font getFont();\n\n /**\n * Get the grid size\n * @return the grid size\n */\n public abstract Regionlike getGridBounds();\n\n /**\n * @return height\n */\n public abstract int gridHeight();\n\n /**\n * @return width\n */\n public abstract int gridWidth();\n\n /**\n * Hide the cursor\n */\n public abstract void hideCursor();\n\n /**\n * Initialize the panel\n * @param font font to use\n * @param rows rows to use\n * @param cols columns to use\n * @param empty empty cell\n */\n public abstract void init(Font font, int rows, int cols, AwtCell empty);\n\n /**\n * \n * @return separate cursor?\n */\n public abstract boolean isSeparateCursor();\n\n /**\n * Move the update position\n * \n * @param y row\n * @param x column\n */\n public abstract void mv(int y, int x);\n\n /**\n * This function conflicts with a (deprecated) JPanel function.\n * <p><em>Use {@link #mv(int, int)} instead.</em></p>\n * @Deprecated use 'mv' instead.\n * @param x x coordinate\n * @param y y coordinate\n */\n @Deprecated\n public abstract void move(int x, int y);\n\n /**\n * Move a block\n * @param numRows number of rows\n * @param numCols number of columns\n * @param origY original Y\n * @param origX original X\n * @param newY new Y\n * @param newX new X\n */\n public abstract void moveBlock(int numRows, int numCols, int origY,\n int origX, int newY, int newX);\n\n /**\n * Move the cursor\n * @param y row\n * @param x column\n */\n public abstract void moveCursor(int y, int x);\n\n /**\n * Move the cursor\n * @param y row\n * @param x column\n * @param cursorColor cursor color\n */\n public abstract void moveCursor(int y, int x, Paint cursorColor);\n\n /**\n * Move and add\n * @param y row\n * @param x column\n * @param what codepoint\n */\n public abstract void mvaddch(int y, int x, int what);\n\n /**\n * \n * @param y row\n * @param x column\n * @param what codepoint\n */\n public abstract void mvoverlaych(int y, int x, int what);\n\n /**\n * \n * @param y row\n * @param x column\n * @param str string\n */\n public abstract void mvputs(int y, int x, String str);\n\n /**\n * @param what codepoint\n */\n public abstract void overlaych(int what);\n\n /**\n * \n * @param what string\n */\n public abstract void puts(String what);\n\n /**\n * refresh the window\n */\n public abstract void refresh();\n\n /**\n * refresh a line\n * @param y row\n */\n public abstract void refreshLine(int y);\n\n /**\n * refresh a region\n * @param height height\n * @param width width\n * @param y1 y1\n * @param x1 x1\n */\n public abstract void refreshRegion(int height, int width, int y1, int x1);\n\n /**\n * Resize the frame\n * \n * <p>This function will only have the expected effect if it is the only\n * panel on the frame.</p>\n * \n * @param frame frame (presumably the one we belong to)\n * @param fontSize the font size you want\n */\n public abstract void resizeFrame(JFrame frame, int fontSize);\n\n /**\n * resize the grid\n * @param rows number of rows\n * @param cols number of columns\n */\n public abstract void resizeGrid(int rows, int cols);\n\n /**\n * set a cell\n * @param y row\n * @param x column\n * @param cell cell\n */\n public abstract void set(int y, int x, AwtCell cell);\n\n /**\n * Set a cell\n * @param y row\n * @param x column\n * @param codepoint codepoint\n * @param back background\n * @param fore foreground\n */\n public abstract void set(int y, int x, int codepoint, Color back, Color fore);\n\n /**\n * Set a cell\n * @param y row\n * @param x column\n * @param codepoint the codepoint\n * @param foreground foreground color\n * @param background background color\n * @param attributes attribute mapping\n * @param walls cell walls\n */\n public abstract void set(int y, int x, int codepoint, Color foreground,\n Color background,\n Map<TextAttribute, Object> attributes,\n EnumSet<CellWalls> walls);\n\n /**\n * set a cell\n * @param y row\n * @param x column\n * @param glyph glyph\n * @param attributes attributes\n */\n public abstract void set(int y, int x, int glyph,\n Map<TextAttribute, Object> attributes);\n\n /**\n * Set a cell\n * @param y row\n * @param x column\n * @param codepoint the codepoint\n * @param attributes attribute mapping\n * @param walls cell walls\n */\n public abstract void set(int y, int x, int codepoint,\n Map<TextAttribute, Object> attributes,\n EnumSet<CellWalls> walls);\n\n /**\n * Set the background color\n * @param colr new color\n */\n public abstract void setCurBackground(Color colr);\n\n /**\n * Set the foreground color\n * @param colr new color\n */\n public abstract void setCurForeground(Color colr);\n\n /**\n * \n * @param y row\n * @param x column\n */\n public abstract void setCursorLocation(int y, int x);\n\n /**\n * Set the empty cell\n * @param empty empty cell\n */\n public abstract void setEmpty(AwtCell empty);\n\n /**\n * Set the font\n * @param font the font\n */\n public abstract void setFont(Font font);\n\n /**\n * \n * @param separateCursor new state\n */\n public abstract void setSeparateCursor(boolean separateCursor);\n\n /**\n * The window has been resized\n */\n public abstract void windowResized();\n\n}",
"public double getTop() {\n return this.yT;\n }",
"private int terminalLocation(){\n int answer = 0;\n for(int ii = 0; ii < (currentIm.getRows() * currentIm.getCols()); ii = ii + 1){\n if(126 == getHidden(ii)){\n return answer = ii;\n }\n }\n \n return answer;\n }",
"public static int getTerminalWidth() {\n int w = out().getTerminalWidth();\n if (w <= 0) {\n w = err().getTerminalWidth();\n }\n return w;\n }",
"public int top() {\n return One.peek();\n }",
"public float getTopY() {\n\t\treturn topY;\n\t}",
"public String getScreenName() {\n\t\treturn restClient.getScreenName();\n\t}",
"public String getTop(){\n StringBuilder htmlTop = new StringBuilder(\"<h2>\");\n for (int i = 0; i<10; i++){\n if (i >= this.highscores.size()){\n htmlTop.append(\" ----<br>\");\n } else {\n htmlTop.append(String.valueOf(this.highscores.get(i))).append(\"<br>\");\n }\n }\n htmlTop.append(\"</h2>\");\n return htmlTop.toString();\n }",
"static void clrscr()\n {\n // ... wrong.\n \n // clearing the screen for a console is system specific.\n String osName = System.getProperty(\"os.name\");\n \n // if it's Windows, simply doing Runtime.getRuntime().exec(\"cls\") doesn't work since \"cls\" is not an executible\n // (getRuntime() runs an executible on the given runtime)\n if (osName.startsWith(\"Windows\"))\n {\n // instead, make a process that refers to the current cmd window and make that do a \"cls\", like so:\n try\n {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n }\n // catch any exceptions if thrown (should be an IOException)\n catch (Exception e)\n {\n // print detailed info that helps debug said exception\n e.printStackTrace();\n }\n }\n // if its a Unix-like shell, pass an ANSI escape-code that's composed of\n // \\033 (octal) => ESC as an ASCII character (== \\0x1b (hexadecimal) == \\27 (decimal))\n // [2J => clear the screen, bring position to top of console window\n // [H => display the prompt (sort of) \n else if (osName.contains(\"nix\") || osName.contains(\"nux\") || osName.contains(\"aix\"))\n {\n System.out.print(\"\\033[2J\\033[H\");\n }\n else // do something weird ... which works, somewhat\n {\n System.out.println(\"No screen clearing on this console. Hold enter for some time and then type something.\");\n // inundates whitespace, and any other input isn't stored\n input.next();\n }\n }",
"public Integer getiDisplayStart() {\r\n\t\treturn iDisplayStart;\r\n\t}",
"public int top() {\n\t\treturn stack.peek();\n \n }",
"public int getTop() {\n return position[0] - (size - 1) / 2;\n }",
"public static int getLine() {\r\n\t\treturn rline;\r\n\t}",
"public double Top(){\n\t\treturn (y);\n\t}",
"Point onScreen();",
"public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }",
"public Rect getScreen()\n {\n if (this.screen == null)\n setScreen(DEFAULT_SCREEN);\n \n return this.screen;\n }",
"public abstract Object top();",
"public static String getDisplay() {\n return android.os.Build.DISPLAY;\n }",
"public int top() {\n return (int) one.peek();\n \n }",
"public static\n Terminal in() {\n return Input.terminal;\n }",
"public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }",
"public static void printExitLine() {\n printMessage(BYE_LINE);\n }",
"public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}",
"public static CursorPos cursorPos() {\n\n System.out.print(CSI + \"6n\");\n try {\n System.in.skip(2);\n int read = -1;\n StringBuilder row = new StringBuilder();\n while ((read = System.in.read()) != ';') {\n row.append((char) read);\n }\n StringBuilder col = new StringBuilder();\n while ((read = System.in.read()) != 'R') {\n col.append((char) read);\n }\n return new CursorPos(row.length() > 0 ? Integer.parseInt(row.toString()) : 1,\n col.length() > 0 ? Integer.parseInt(col.toString()) : 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static void clearScreen()\r\n\t{\r\n\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\r\n\t}",
"public void printTopView() {\r\n\t\tfinal ArrayList<Integer> nodeDataList = new ArrayList<>();\r\n\r\n\t\tgetLeftChildren(rootNode.left, nodeDataList);\r\n\t\tnodeDataList.add(rootNode.data);\r\n\t\tgetRightChildren(rootNode.right, nodeDataList);\r\n\r\n\t\tSystem.out.println(\"Printing Top View\");\r\n\r\n\t\tnodeDataList.forEach(nodeData -> {\r\n\t\t\tSystem.out.print(nodeData + \" \");\r\n\t\t});\r\n\t}",
"public int[][] getMajorLinePositionsScreen() {\n return majorLinePositionsScreen;\n }",
"private JScrollPane getConsole() {\r\n\t\tif (console == null) {\r\n\t\t\tconsole = new JTextArea();\r\n\t\t\tconsole.setAutoscrolls(true);\r\n\t\t\tconsole.setBackground(java.awt.Color.black);\r\n\t\t\tconsole.setForeground(java.awt.Color.white);\r\n\t\t\tconsole.setRows(29);\r\n\t\t\tconsole.setEditable(false);\r\n\t\t\tconsole.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN, 10));\r\n\t\t\tscroll = new JScrollPane(console);\r\n\t\t}\r\n\t\treturn scroll;\r\n\t}",
"public final double getScreenY() {\n return screenY;\n }",
"public static void clearConsole() {\n try {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n System.out.println(CONSOLE_LINE_SEPARATOR);\n }",
"public final Symbol top() {\n\t\ttry {\n\t\t\treturn opstack.top().getSymbol();\n\t\t} catch (BadTypeException | EmptyStackException e) {\n\t\t\tSystem.out.println(\"An exception has occurred, \"\n\t\t\t\t\t+ \"Maybe the stack has gone empty\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public static double getRawDisplayHeight() {\n\t\treturn javafx.stage.Screen.getPrimary().getBounds().getHeight();\n\t}",
"public int top() {\n return top.value;\n }",
"public Point validSnakeHeadUp() {\t\t\n\t\treturn new Point(top_border + 2, 15);\n\t}",
"public static TextArea getConsole() {\r\n\t\t\r\n\t\treturn console;\r\n\t}",
"public static void firstDraw() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 1 + \" | \" + 2 + \" | \" + 3);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 4 + \" | \" + 5 + \" | \" + 6);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 7 + \" | \" + 8 + \" | \" + 9);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println();\n\t}",
"@Implementation(minSdk = O_MR1)\n public Point getStableDisplaySize() throws RemoteException {\n DisplayInfo defaultDisplayInfo = mDm.getDisplayInfo(Display.DEFAULT_DISPLAY);\n return new Point(defaultDisplayInfo.getNaturalWidth(), defaultDisplayInfo.getNaturalHeight());\n }"
] |
[
"0.6234501",
"0.6012009",
"0.57059985",
"0.5678625",
"0.56292856",
"0.5598973",
"0.55827856",
"0.5563389",
"0.5562693",
"0.55463195",
"0.554149",
"0.54876703",
"0.54735374",
"0.5452916",
"0.54515845",
"0.54225445",
"0.54117215",
"0.5408672",
"0.54044694",
"0.54044694",
"0.5389825",
"0.5386472",
"0.53838843",
"0.5373755",
"0.5360547",
"0.53576005",
"0.5347919",
"0.5319641",
"0.53195447",
"0.5308517",
"0.5304909",
"0.53000176",
"0.5276851",
"0.52759093",
"0.52741337",
"0.52707994",
"0.5261928",
"0.5255839",
"0.52451193",
"0.5244647",
"0.52363074",
"0.52266103",
"0.5220265",
"0.521302",
"0.5210007",
"0.5208409",
"0.52064216",
"0.5188074",
"0.51858664",
"0.5176093",
"0.51529884",
"0.51468045",
"0.51371473",
"0.51250696",
"0.51225847",
"0.5117047",
"0.5114339",
"0.51140565",
"0.5107329",
"0.5099827",
"0.50940543",
"0.509328",
"0.50917643",
"0.5083607",
"0.5083194",
"0.50770706",
"0.5072586",
"0.5070036",
"0.5064262",
"0.5063213",
"0.50628155",
"0.50611794",
"0.50513583",
"0.50502616",
"0.5039351",
"0.5037178",
"0.5034672",
"0.5029427",
"0.50268865",
"0.5022784",
"0.50180817",
"0.5014621",
"0.50029314",
"0.500071",
"0.4994697",
"0.49857417",
"0.4984794",
"0.49822474",
"0.4981164",
"0.49582905",
"0.4957808",
"0.49563053",
"0.4950854",
"0.49473745",
"0.4946297",
"0.49269673",
"0.49228445",
"0.49216783",
"0.49203512",
"0.491179",
"0.49095687"
] |
0.0
|
-1
|
Set the new top line for this terminal screen
|
void setTopLineNode(Node<UnderlyingData> topLineNode);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTop() {\n reset(State.TOP);\n }",
"private void drawTopBorder(StringBuffer canvas) {\n \t\t\tfor (int i=0; i<width; i++)\r\n \t\t\t\tcanvas.append('_'); //Top bar.\r\n \t\t\tcanvas.append('\\n');}",
"public UtilsPadding setTop(Number top) {\n if (jsBase == null) {\n this.top = null;\n this.top1 = null;\n \n this.top = top;\n } else {\n this.top = top;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".top(%s)\", top));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".top(%s);\", top));\n js.setLength(0);\n }\n }\n return this;\n }",
"private void setTopBorder() {\n\t\tVBox topBorder = new VBox();\n\t\ttopBorder.setAlignment(Pos.CENTER);\n\t\ttopBorder.setPadding(new Insets(10, 10, 10, 10));\n\t\t\n\t\ttopText = new Text (\"Please enter information about the property below.\");\n\t\ttopText.setFont(Font.font(\"Bauhaus 93\", FontWeight.BOLD, 24));\n\t\ttopText.setFill(Color.rgb(100, 0, 150));\n\t\ttopBorder.getChildren().add(topText);\n\t\t\n\t\tmainPane.setTop(topBorder);\n\t}",
"public UtilsPadding setTop(String top1) {\n if (jsBase == null) {\n this.top = null;\n this.top1 = null;\n \n this.top1 = top1;\n } else {\n this.top1 = top1;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".top(%s)\", wrapQuotes(top1)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".top(%s);\", wrapQuotes(top1)));\n js.setLength(0);\n }\n }\n return this;\n }",
"public static void sq_settop(JSqVM v, int newtop) {\r\n\t\tsq_settop_native(v.m_nativeHandle, newtop);\r\n\t}",
"public void setYTop(int top) {\n this.yTop = top;\n }",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public void clearTerminal(){\n\n System.out.println(\"\\033[2J\\033[1;1H\");\n\n }",
"public void setTop(Integer top) {\n this.top = top;\n }",
"public int getLineTop(int line){\n return getLineHeight() * line;\n }",
"private static void clearScreen() \n {\n Console c = System.console();\n if (c != null) \n {\n // Clear screen for the first time\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n //c.writer().print(ESC + \"[2J\");\n //c.flush();\n\n // Clear the screen again and place the cursor in the top left\n System.out.print(\"\\033[H\\033[1;1H\");\n System.out.flush();\n //c.writer().print(ESC + \"[1;1H\");\n //c.flush();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\t@NotNull\n\tpublic J setTop(MeasurementCSSImpl top)\n\t{\n\t\tthis.top = top;\n\t\treturn (J) this;\n\t}",
"private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"public void display(String line) {\r\n\t\tif (console.size() == 50) {\r\n\t\t\tconsole.remove(0);\r\n\t\t}\r\n\t\tconsole.addElement(line);\r\n\t}",
"public void setTopnum(String topnum) {\n this.topnum = topnum;\n }",
"public static void clearScreen() { \n \tSystem.out.print(\"\\033[H\\033[2J\"); \n \tSystem.out.flush();\n\t}",
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public static void clearScreen() {\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public void clearScreen() { \n\t System.out.print(\"\\033[H\\033[2J\"); \n\t System.out.flush(); \n\t }",
"void setAlwaysOnTop(boolean alwaysOnTop);",
"@Override\n\tpublic void setTopView() {\n\t\ttitle.setText(getResources().getString(R.string.mode));\n\t}",
"public void setPrompt() {\n\t\tcommandLine.append(\"$ \");\n\t}",
"@Override\n\tpublic void setIrTop(int irTop) {\n\t\t\n\t}",
"public void modifyTopGuideline(Guideline guideline) {\n }",
"@NonNull\n public Builder setTop(@NonNull DpProp top) {\n if (top.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setTop doesn't support dynamic values.\");\n }\n mImpl.setTop(top.toProto());\n mFingerprint.recordPropertyUpdate(\n 3, checkNotNull(top.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }",
"void setAlwaysOnTop(boolean always);",
"public void setTop(int x) {\r\n topSide = x;\r\n }",
"private final static void clearConsole()\t{\n\t\tSystem.out.print(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"public void setTopNode(Node<T> topNode) {\n\t\tthis.topNode = topNode;\n\t}",
"public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }",
"public void drawStartScreen() {\n\t\tint highScore = getHighScore();\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Press to Start Game\", 0, -100, false);\n\t}",
"@Override\n\tprotected void initTopbar(){\n\t\tsuper.initTopbar();\n\t\tTextView textView = new TextView(mContext);\n\t\ttextView.setText(\"宝贝\");\n\t\ttextView.setTextSize(22);\n\t\ttextView.setTextColor(Color.BLACK);\n\t\tTopBar topBar = new TopBar(this,false, textView, null);\n\t\ttopBar.bind();\n\t}",
"public void displayTitleScreen() {\n System.out.println(\n \" @@@: @@@@ \\n\" +\n \" %@@: @@%@ \\n\" +\n \" @@@: @@@@ \\n\" +\n \" @@@: @@@@ \\n\" +\n \" @@@: @%%% \\n\" +\n \" @@@: %@@@ \\n\" +\n \" *@@%@@# @@@% @@@%%@ @@@@@@ @@@@ #%@%@@+ @@@@@ =@%@@@% \\n\" +\n \" @@@@@@@%@@@ @@@@@@@@@@@%@ +%@%@@@@@@@ %%@@ @@@@@@@@@%@ @@@@%@@%% %%%@@@@%%@@ \\n\" +\n \" @@@% %@@@ @@@@@* %@@@% @@@@+ %@@@* @@@@ @@@@ @@@@ @@@@ %@@@ @@@@ @@%@ \\n\" +\n \" @%@@ #@%@* @@@@ %%@ %@@@ @@%@ @@@@ %@@% @@@@ +%@% @@@@ @@@@ +%@%@ \\n\" +\n \" @@% @%@@ @@@% @@%@ @%%- @@@@ @@%@ .@%@ @@@ @@%@ %@%% @@@ @@%@@ \\n\" +\n \"+@@@ @@@@ @@%- @@%@ %%% %@%% @%@% %@@% @@@ @@%@ %%@@ @%@ @@+ \\n\" +\n \" @@@ @@@@ %@@: %@%@ %@@@ =%%@# %@%% @@@ @%@ @%%@ @@@@ @@%. \\n\" +\n \" #%@% %* #%@%# @@@: @@@@ @@@# @@ @@@@ @%%% @%%% %@@% @%@% @@@@ -@@% \\n\" +\n \" #@%@@@@@%%@%% @%@@@%%: @%%@%@%@ %@%@%@@@@@%@ @@@@@%@@ %@@%@@%%@@@@% %@@@ %@@@ -@@@%@@@@@@%# \\n\" +\n \" %@%@@%@@% @@%@@@: @@@%%% #%@@%@@%@ @@%@@@@ @@%@@@@@@ @@@@ %%%@ %@%@@%@@@ \\n\" +\n \"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― \\n\" +\n \" Nouvelle partie \"\n );\n }",
"@Override\n\tpublic void printBefore() {\n\t\tSystem.out.println(\"############################\");\n\t\tSystem.out.println(\"# App de Chat #\");\n\t\tSystem.out.println(\"############################\");\n\t\tSystem.out.println(\"\");\n\t}",
"public void SetTopTrashCard(String value){\n topCard = value;\n }",
"public void setTop_actif(String top_actif) {\r\n\t\tthis.top_actif = top_actif;\r\n\t}",
"public static void clear(){\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush(); // flushes the stream\n }",
"static void clear_console_screen()\n\t{\n\t\tfor (int lines=0; lines<200; lines++)\n\t\t{\n\t\t\tSystem.out.println(\" \");\n\t\t}// end for (int lines=0; lines<200; lines++)\n\t\t\n\t}",
"public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }",
"public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }",
"@Override\n public void setOnTop(boolean arg0)\n {\n \n }",
"public boolean setOnTop(String sname) {\n return windows.setOnTop(sname);\n }",
"void setTopLabelText(String text) {\n topLabel.setText(text);\n }",
"@Override\n\tpublic final void setScrollTop(int top) {\n\t\tDOMImpl.impl.setScrollTop(documentFor(), top);\n\t}",
"public void setClipTop(int top) {\n if (top != mClipRect.top) {\n mClipRect.top = top;\n mSourceView.invalidateOutline();\n }\n }",
"public void syncTableTop() {\n\t\tsetVerticalScrollPosition(rowHeader.getTop());\n\t}",
"public void alignTop() {\n\t\ttop.top();\n\t}",
"public void showLine() {\n System.out.print(LINE_SEPARATOR);\n }",
"public void newChatLine(String line) {\n\t\tSystem.out.println(line);\n\t}",
"public JPanel_Terminal() {\n // initialize components\n initComponents();\n\n // initialize JTerm\n JTermInputProcessor termProcessor = (String command, JTerm console) -> {\n if (jShellTransport == null) {\n updateShellTransport();\n }\n if (jShellTransport != null) {\n try {\n console.remove(command.length());\n jShellTransport.write(command);\n } catch (IOException ex) {\n jShellTransport = null;\n Log.log(Level.SEVERE, \"ShellTransportWrite\", ex);\n }\n }\n };\n\n jTerm = new JTerm(jTextPane_Jterm, termProcessor, Color.BLACK, Color.GREEN, new Font(Font.MONOSPACED, Font.BOLD, 12));\n }",
"public Position setTop(Size size) {\n\t\ttop = size.clone();\n\t\treturn this;\n\t}",
"public Node setTopNode(Node node);",
"static void clrscr()\n {\n // ... wrong.\n \n // clearing the screen for a console is system specific.\n String osName = System.getProperty(\"os.name\");\n \n // if it's Windows, simply doing Runtime.getRuntime().exec(\"cls\") doesn't work since \"cls\" is not an executible\n // (getRuntime() runs an executible on the given runtime)\n if (osName.startsWith(\"Windows\"))\n {\n // instead, make a process that refers to the current cmd window and make that do a \"cls\", like so:\n try\n {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n }\n // catch any exceptions if thrown (should be an IOException)\n catch (Exception e)\n {\n // print detailed info that helps debug said exception\n e.printStackTrace();\n }\n }\n // if its a Unix-like shell, pass an ANSI escape-code that's composed of\n // \\033 (octal) => ESC as an ASCII character (== \\0x1b (hexadecimal) == \\27 (decimal))\n // [2J => clear the screen, bring position to top of console window\n // [H => display the prompt (sort of) \n else if (osName.contains(\"nix\") || osName.contains(\"nux\") || osName.contains(\"aix\"))\n {\n System.out.print(\"\\033[2J\\033[H\");\n }\n else // do something weird ... which works, somewhat\n {\n System.out.println(\"No screen clearing on this console. Hold enter for some time and then type something.\");\n // inundates whitespace, and any other input isn't stored\n input.next();\n }\n }",
"public static void clrscr() {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\");\n }",
"private void prompt() {\n System.out.print(Strings.MAIN_PROMPT);\n System.out.flush();\n }",
"void setConsoleTitle(String title);",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"public void setFocus() {\r\n System.out.println(\"TN5250JPart: calling SetSessionFocus.run(): \" + tn5250jPart.getClass().getSimpleName());\r\n SetSessionFocus.run(tabFolderSessions.getSelectionIndex(), -1, tn5250jPart);\r\n }",
"public static void clearConsole() {\n try {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n System.out.println(CONSOLE_LINE_SEPARATOR);\n }",
"protected void beginEnterText()\n\t{\n\t\tdisplayingCaret = true;\n\t\ttext.appendText(\"|\");\n\t\tcaretBlinkTime = 0;\n\t\tclearCharBuffer = true;\n\t}",
"public void focus() {\n\t\tJWLC.nativeHandler().wlc_output_focus(this.to());\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tmTerminalLayout = (LinearLayout)findViewById(R.id.terminalLayout);\n\n\t\tmPlotLayout = (LinearLayout)findViewById(R.id.plotLayout);\n\n\t\tmTextView = (TextView)findViewById(R.id.termWindow);\n\n\t\tmScrollView = (ScrollView)findViewById(R.id.scrollView);\n\n\t\tmCmdEditText = (EditText)findViewById(R.id.edit_command);\n\n\t\tmSwitcher = (ViewSwitcher) findViewById(R.id.viewSwitcher);\n\n\t\tmCmdEditText.setOnKeyListener(new OnKeyListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onKey(View view, int keyCode, KeyEvent event) { \n\t\t\t\tif (event.getAction() == KeyEvent.ACTION_DOWN) {\n\t\t\t\t\tif ((keyCode == KeyEvent.KEYCODE_ENTER) && (_ready == true)) {\n\t\t\t\t\t\tString command = mCmdEditText.getText().toString();\n\t\t\t\t\t\tmCmdEditText.setText(\"\");\n\t\t\t\t\t\tmTermSession.write(command + \"\\n\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\n\t\t_sessionParent = this;\n\n\t\tViewTreeObserver viewTreeObserver = mTerminalLayout.getViewTreeObserver();\n\t\tif (viewTreeObserver.isAlive()) {\n\t\t\tviewTreeObserver.addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onGlobalLayout() {\n\t\t\t\t\tmTerminalLayout.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n\t\t\t\t\t_screenHeight = mTerminalLayout.getHeight();\n\t\t\t\t\t_screenWidth = mTerminalLayout.getWidth();\n\t\t\t\t\tif (_screenWidth < _screenHeight) {\n\t\t\t\t\t\t_screenHeight = _screenWidth;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_screenWidth = _screenHeight;\n\t\t\t\t\t}\n\t\t\t\t\t// Converts 14 dip into its equivalent px\n\t\t\t\t\tResources r = getResources();\n\t\t\t\t\t_textHeight = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, r.getDisplayMetrics());\n\t\t\t\t\tPaint paint = new Paint();\n\t\t\t\t\tpaint.setStyle(Paint.Style.STROKE);\n\t\t\t\t\tpaint.setTextSize(_textHeight);\n\t\t\t\t\tpaint.setTypeface(Typeface.MONOSPACE);\n\t\t\t\t\t_textWidth = (int) paint.measureText(\"A\");\n\t\t\t\t\t_bitmap = Bitmap.createBitmap(_screenWidth, _screenHeight, Bitmap.Config.ARGB_8888);\n\t\t\t\t\t_canvas = new Canvas(_bitmap);\n\n\t\t\t\t\tmTermSession = new TermSession(_sessionParent);\n\t\t\t\t\tmTermSession.updateSize(1024, 1024);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tonNewIntent(getIntent());\n\t}",
"public void setCursorPositionColor(Color color)\n {\n this.jStatusBarColor.setBackground(color);\n this.jStatusBarColor.setText(\"RGB:\"+color.getRed()+\",\"+color.getGreen()+\",\"+color.getBlue());\n }",
"public void newLine() {\n\t\tcommandLine.append(\"\\n\");\n\t}",
"public void setLine(int line);",
"private void initTop(BorderPane root) {\n // Make HBox\n HBox topBox = new HBox();\n // Set Label\n Label titleLabel = new Label(); // title label for top of UI\n titleLabel.setStyle(\"-fx-font-size:20\");\n titleLabel.setText(\n \"Fair Job Planning System \" + date.format(new Date()) + \" \" + clock.format(new Date()));\n titleLabel.setPadding(new Insets(20, 0, 20, 100));\n\n // Add stuff to topBox\n topBox.getChildren().addAll(titleLabel);\n // Add to BorderPane root\n root.setTop(topBox);\n }",
"private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }",
"public static void clearScreen()\r\n\t{\r\n\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\r\n\t}",
"public void winch(/* controller and other parameters */) {\n winch.set(.5);\n\n }",
"public static void editLineup(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Edit Lineup---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\ttheTeam.teamToStringNum();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Select a player to move from the bench to starting or vice versa:\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\tSystem.out.println(\"1-\" + theTeam.getRoster().size() + \" - Select a player to be dropped\");\r\n\t\t\r\n\t\tint lineupChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard);\r\n\t\tif (lineupChoice == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tPlayer thePlayer = theTeam.getTeamPlayer(lineupChoice - 1);\r\n\t\t\r\n\t\tif (thePlayer.getIsStarting()) {\r\n\t\t\tthePlayer.setBench();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tString position = thePlayer.getPosition();\r\n\t\tif (theTeam.starterCount(position) < theLeague.getPositionMax(position)) {\r\n\t\t\tthePlayer.setStarting();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***You have the maximum number of starters at the \" + position + \" position***\");\r\n\t\t}\r\n\t}",
"private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }",
"public boolean getStrokeOnTop() { return false; }",
"public void setLine (int Line);",
"@JSProperty(\"top\")\n void setTop(Chart3dFrameTopOptions value);",
"public static void clrscr() {\n try {\n if (System.getProperty(\"os.name\").contains(\"Windows\")) {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n } else {\n Runtime.getRuntime().exec(\"clear\");\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n }\n } catch (IOException | InterruptedException ex) {\n System.out.println(\"Error while trying to clear the screen\");\n }\n }",
"@Override\n public void setLineCap(String style) {\n graphicsEnvironmentImpl.setLineCap(canvas, style);\n }",
"public void PutTopUp()\n\t{\n\t\tif(!isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top up\");\n\t\t\tisStateTop=true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already up\");\n\t\t}\n\t}",
"private void attachFrontlineHUD() {\r\n\t\tResourceManager.getInstance().getCamera().setHUD(HUDRegion);\r\n\t}",
"public void setTop(Shape c) {\n\t\tif (c != null) {\n\t\t\tint i = drawData.lastIndexOf(c);\n\t\t\tif (i != -1 && i != (drawData.size() - 1)) {\n\t\t\t\tdrawData.remove(i);\n\t\t\t\tadd(c);\n\t\t\t}\n\t\t}\n\t}",
"void setScrollTop(int scrollTop);",
"private void updateCursor() {\n cursor.setHeight(lineHeight);\n }",
"public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\n \"██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\\n\" +\n \"╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\\n\" +\n \"░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\\n\" +\n \"░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\\n\" +\n \"░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\\n\" +\n \"░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\\n\" +\n \"\\n\" +\n \"░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\\n\" +\n \"██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\\n\" +\n \"██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\\n\" +\n \"██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\\n\" +\n \"╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\\n\" +\n \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }",
"public void jumpToLine(int line) {\n setSelection(line,0);\n }",
"public static void printPrompt() {\n System.out.print(\" > \");\n }",
"public void linefeed() {\r\n\t\tconsole.print(LINESEP);\r\n\t}",
"protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }",
"public boolean setOnTop(int i) {\n return windows.setOnTop(i);\n }",
"private void startOver(){\n result = 0;\n display.setText(\"0\");\n lastCommand = \"=\";\n start = true;\n }",
"public LineHeadView(JavaTextPane<?> aJTP)\n {\n // Set ivars\n _textPane = aJTP;\n _textArea = aJTP.getTextArea();\n\n // Config\n enableEvents(MouseMove, MouseRelease);\n setToolTipEnabled(true);\n setFill(BACKGROUND_FILL);\n\n // Set PrefSize\n setPrefSizeForText();\n\n // Set Padding\n Insets padding = _textArea.getPadding().clone();\n padding.left = padding.right = 6;\n setPadding(padding);\n }",
"public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }",
"public IHMCuiUnix() {\n\t\tsuper();\n\t}",
"private void drawCursor(final Terminal term, int prevOption, int curOption)\n {\n // create a blank string and use it to clear where the cursor used to be\n String blank = \"\";\n for (int i = 0; i < cursor.length(); i++)\n {\n blank += SPACE;\n }\n LanternaUtil.termPrint(term, blank, firstColumn, firstRow + prevOption);\n LanternaUtil.termPrint(term, cursor, firstColumn, firstRow + curOption);\n term.flush();\n }",
"private void updateLineHeight() {\n Text text = new Text(\"AM\");\n text.setFont(new Font(fontType, fontSize));\n lineHeight = round(text.getLayoutBounds().getHeight());\n }",
"void markLine() {\n lineMark = cursor;\n }",
"private static void clearScreen()\n {\n System.out.print('\\u000C');\n }",
"void hideTop() {\n }",
"public static void prompt() {\n\t\tSystem.out.printf(\"\\n입력 > \");\n\t}",
"public static void main (String[] args) {\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\\033[90m\",\"ANDALUCÍA \",\"\\033[40m\");\n //System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"ANDALUCÍA \",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\"); \n \n \n }"
] |
[
"0.619786",
"0.5714814",
"0.5710655",
"0.5595445",
"0.55807436",
"0.5564018",
"0.5526354",
"0.55167496",
"0.5516177",
"0.5514243",
"0.54416275",
"0.53957695",
"0.5329996",
"0.5327915",
"0.5312596",
"0.53094584",
"0.52914333",
"0.5284751",
"0.5276003",
"0.5275054",
"0.52445716",
"0.52360153",
"0.5228443",
"0.5225859",
"0.5222977",
"0.5197637",
"0.51932144",
"0.51742655",
"0.51680917",
"0.5158333",
"0.5133687",
"0.5132361",
"0.50744534",
"0.504983",
"0.50429296",
"0.5034363",
"0.50307053",
"0.5028847",
"0.50222856",
"0.5008284",
"0.5007036",
"0.50057715",
"0.500342",
"0.49979997",
"0.49953663",
"0.49948633",
"0.4988597",
"0.49686104",
"0.49633884",
"0.4958576",
"0.49567",
"0.49483046",
"0.49276763",
"0.49168405",
"0.48988885",
"0.4882975",
"0.48741165",
"0.4852633",
"0.48496428",
"0.48458648",
"0.4839454",
"0.48367602",
"0.48297676",
"0.4809763",
"0.47981802",
"0.47973058",
"0.479694",
"0.4783611",
"0.4779455",
"0.47786367",
"0.47731632",
"0.47725248",
"0.47626778",
"0.476174",
"0.47545776",
"0.47544593",
"0.47519398",
"0.47495037",
"0.47476473",
"0.47423455",
"0.47393897",
"0.4735984",
"0.4734361",
"0.4733658",
"0.4732253",
"0.47280496",
"0.47249812",
"0.47187048",
"0.47135395",
"0.4710093",
"0.47025388",
"0.46991476",
"0.46927506",
"0.46764854",
"0.46688363",
"0.46659875",
"0.4664644",
"0.46631378",
"0.4656255",
"0.46536303"
] |
0.5531296
|
6
|
What is the bottom line for the terminal screen
|
Node<UnderlyingData> getBottomLineNode();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\n \"██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\\n\" +\n \"╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\\n\" +\n \"░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\\n\" +\n \"░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\\n\" +\n \"░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\\n\" +\n \"░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\\n\" +\n \"\\n\" +\n \"░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\\n\" +\n \"██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\\n\" +\n \"██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\\n\" +\n \"██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\\n\" +\n \"╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\\n\" +\n \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }",
"public static void printExitLine() {\n printMessage(BYE_LINE);\n }",
"private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public static void clearScreen() { \n \tSystem.out.print(\"\\033[H\\033[2J\"); \n \tSystem.out.flush();\n\t}",
"public static void clearScreen() {\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"static void welcome() {\n System.out.println(getAnsiRed() + \"\\n\" +\n \"███████╗████████╗██████╗ █████╗ ███╗ ██╗ ██████╗ ███████╗██████╗ \\n\" +\n \"██╔════╝╚══██╔══╝██╔══██╗██╔══██╗████╗ ██║██╔════╝ ██╔════╝██╔══██╗\\n\" +\n \"███████╗ ██║ ██████╔╝███████║██╔██╗ ██║██║ ███╗█████╗ ██████╔╝\\n\" +\n \"╚════██║ ██║ ██╔══██╗██╔══██║██║╚██╗██║██║ ██║██╔══╝ ██╔══██╗\\n\" +\n \"███████║ ██║ ██║ ██║██║ ██║██║ ╚████║╚██████╔╝███████╗██║ ██║\\n\" +\n \"╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝\\n\" +\n \" ██████╗ █████╗ ███╗ ███╗███████╗ \\n\" +\n \" ██╔════╝ ██╔══██╗████╗ ████║██╔════╝ \\n\" +\n \" ██║ ███╗███████║██╔████╔██║█████╗ \\n\" +\n \" ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝ \\n\" +\n \" ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗ \\n\" +\n \" ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ \\n\" +\n getAnsiReset());\n\n System.out.println(\"\\n\" +\n \" Built by Team NullPointer (Team 5)\\n\" +\n \" Neill Perry (https://github.com/neillperry)\\n\" +\n \" Bruce West (https://github.com/BruceBAWest)\\n\" +\n \" Tapan Trivedi (https://github.com/tapantriv)\\n\" +\n \" TLG Learning: Capstone Java Project\\n\" +\n \" https://github.com/NullPointer-Team\");\n }",
"public void clearScreen() { \n\t System.out.print(\"\\033[H\\033[2J\"); \n\t System.out.flush(); \n\t }",
"private void drawTopBorder(StringBuffer canvas) {\n \t\t\tfor (int i=0; i<width; i++)\r\n \t\t\t\tcanvas.append('_'); //Top bar.\r\n \t\t\tcanvas.append('\\n');}",
"static void clear_console_screen()\n\t{\n\t\tfor (int lines=0; lines<200; lines++)\n\t\t{\n\t\t\tSystem.out.println(\" \");\n\t\t}// end for (int lines=0; lines<200; lines++)\n\t\t\n\t}",
"public static void clearScreen()\r\n\t{\r\n\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\r\n\t}",
"public String getCurrentScreenDisplay();",
"private final static void clearConsole()\t{\n\t\tSystem.out.print(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"private static void clearScreen() \n {\n Console c = System.console();\n if (c != null) \n {\n // Clear screen for the first time\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n //c.writer().print(ESC + \"[2J\");\n //c.flush();\n\n // Clear the screen again and place the cursor in the top left\n System.out.print(\"\\033[H\\033[1;1H\");\n System.out.flush();\n //c.writer().print(ESC + \"[1;1H\");\n //c.flush();\n }\n }",
"public GraphicsDevice getScreen();",
"public void clearTerminal(){\n\n System.out.println(\"\\033[2J\\033[1;1H\");\n\n }",
"public void displayTitleScreen() {\n System.out.println(\n \" @@@: @@@@ \\n\" +\n \" %@@: @@%@ \\n\" +\n \" @@@: @@@@ \\n\" +\n \" @@@: @@@@ \\n\" +\n \" @@@: @%%% \\n\" +\n \" @@@: %@@@ \\n\" +\n \" *@@%@@# @@@% @@@%%@ @@@@@@ @@@@ #%@%@@+ @@@@@ =@%@@@% \\n\" +\n \" @@@@@@@%@@@ @@@@@@@@@@@%@ +%@%@@@@@@@ %%@@ @@@@@@@@@%@ @@@@%@@%% %%%@@@@%%@@ \\n\" +\n \" @@@% %@@@ @@@@@* %@@@% @@@@+ %@@@* @@@@ @@@@ @@@@ @@@@ %@@@ @@@@ @@%@ \\n\" +\n \" @%@@ #@%@* @@@@ %%@ %@@@ @@%@ @@@@ %@@% @@@@ +%@% @@@@ @@@@ +%@%@ \\n\" +\n \" @@% @%@@ @@@% @@%@ @%%- @@@@ @@%@ .@%@ @@@ @@%@ %@%% @@@ @@%@@ \\n\" +\n \"+@@@ @@@@ @@%- @@%@ %%% %@%% @%@% %@@% @@@ @@%@ %%@@ @%@ @@+ \\n\" +\n \" @@@ @@@@ %@@: %@%@ %@@@ =%%@# %@%% @@@ @%@ @%%@ @@@@ @@%. \\n\" +\n \" #%@% %* #%@%# @@@: @@@@ @@@# @@ @@@@ @%%% @%%% %@@% @%@% @@@@ -@@% \\n\" +\n \" #@%@@@@@%%@%% @%@@@%%: @%%@%@%@ %@%@%@@@@@%@ @@@@@%@@ %@@%@@%%@@@@% %@@@ %@@@ -@@@%@@@@@@%# \\n\" +\n \" %@%@@%@@% @@%@@@: @@@%%% #%@@%@@%@ @@%@@@@ @@%@@@@@@ @@@@ %%%@ %@%@@%@@@ \\n\" +\n \"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― \\n\" +\n \" Nouvelle partie \"\n );\n }",
"private static void clearScreen()\n {\n System.out.print('\\u000C');\n }",
"public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }",
"public static void printPrompt() {\n System.out.print(\" > \");\n }",
"private String getCommandWithPrompt() {\n print(\"dbg<\" + pc + getLabel(pc) + \">\");\n return nextLine();\n }",
"public int getLineBottom(int line){\n return getLineHeight() * (line + 1);\n }",
"public void print() {\n System.out.print(\"\\033[H\\033[2J\");\n for(int y = 0; y < this.height; y++) {\n for (int x = 0; x < this.width; x++) {\n ColoredCharacter character = characterLocations.get(new Coordinate(x , y));\n if (character == null) {\n System.out.print(\" \");\n } else {\n System.out.print(character);\n }\n }\n System.out.print(\"\\n\");\n }\n }",
"public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }",
"public abstract TnScreen getCurrentScreen();",
"public static void splashScreen() {\n System.out.println(line(\"-\", 80));\n System.out.println(\"Welcome to DavisBaseLite\"); // Display the string.\n System.out.println(\"DavisBaseLite Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(line(\"-\", 80));\n }",
"public static double getRawDisplayHeight() {\n\t\treturn javafx.stage.Screen.getPrimary().getBounds().getHeight();\n\t}",
"public boolean getStrokeOnTop() { return false; }",
"public static Dimension getLastScreenSize()\r\n\t{\r\n\t\treturn _lastPlotSize;\r\n\t}",
"public int clearScreen () {\n int distance = home();\n myLine.clear();\n return distance;\n }",
"@Override\n\tpublic String getTerminal() {\n\t\treturn AnchorParser.getInstance().getTerminal(AnchorKind.DISTANCE, height);\n\t}",
"QDisplayTerm createDisplayTerm();",
"protected double getWindowBottomY() {\n\t\treturn this.m_windowBottomY;\n\t}",
"private static void showCurrentBreakPoints() {\n System.out.print(\"Current BreakPoints: \");\n for (int i=1;i<=dvm.getSourceCodeLength();i++)\n if (dvm.isLineABreakPoint(i)) System.out.print(i + \" \");\n System.out.print(\"\\n\");\n }",
"public abstract boolean terminal();",
"public interface AwtTerminalInterface {\n\n /**\n * \n * @param what codepoint\n */\n public abstract void addch(int what);\n\n /**\n * Clear the grid\n */\n public abstract void clear();\n\n /**\n * Clear\n * @param empty new empty\n */\n public abstract void clear(AwtCell empty);\n\n /**\n * Copy from another NativeTerminal\n * \n * @param oterm original terminal\n * @param numRows number of rows to copy\n * @param numCols number of columns to copy\n * @param startY starting Y offset in <code>oterm</code>\n * @param startX starting X offset in <code>oterm</code>\n * @param destY destination Y offset in <code>this</code>\n * @param destX destination X offset in <code>this</code>\n */\n public abstract void copyFrom(TerminalPanel oterm, int numRows,\n int numCols, int startY, int startX,\n int destY, int destX);\n\n /**\n * perform an update\n */\n public abstract void doUpdate();\n\n /**\n * find column for window position\n * @param x window coordinate (X)\n * @return column\n */\n public abstract int findColForWindow(int x);\n\n /**\n * Find the row and column for a window coordinate\n * @param y window coordinate (Y)\n * @param x window coordinate (X)\n * @return new point mapping to row and column\n */\n public abstract Positionable findPositionForWindow(int y, int x);\n\n /**\n * find row for window position\n * @param y window coordinate (Y)\n * @return row\n */\n public abstract int findRowForWindow(int y);\n\n /**\n * Get the AwtCell in a position\n * @param y row\n * @param x column\n * @return cell\n */\n public abstract AwtCell get(int y, int x);\n\n /**\n * @return current background color\n */\n public abstract Color getCurBackground();\n\n /**\n * @return current foregound color\n */\n public abstract Color getCurForeground();\n\n /**\n * Get cursor location\n * @return cursor location [y, x]\n */\n public abstract int[] getCursorLocation();\n\n /**\n * @return cursor's X position\n */\n public abstract int getCursorX();\n\n /**\n * @return cursor's Y position\n */\n public abstract int getCursorY();\n\n /**\n * get the empty cell\n * @return empty cell\n */\n public abstract AwtCell getEmpty();\n\n /**\n * Get the current font\n * @return the current font\n */\n public abstract Font getFont();\n\n /**\n * Get the grid size\n * @return the grid size\n */\n public abstract Regionlike getGridBounds();\n\n /**\n * @return height\n */\n public abstract int gridHeight();\n\n /**\n * @return width\n */\n public abstract int gridWidth();\n\n /**\n * Hide the cursor\n */\n public abstract void hideCursor();\n\n /**\n * Initialize the panel\n * @param font font to use\n * @param rows rows to use\n * @param cols columns to use\n * @param empty empty cell\n */\n public abstract void init(Font font, int rows, int cols, AwtCell empty);\n\n /**\n * \n * @return separate cursor?\n */\n public abstract boolean isSeparateCursor();\n\n /**\n * Move the update position\n * \n * @param y row\n * @param x column\n */\n public abstract void mv(int y, int x);\n\n /**\n * This function conflicts with a (deprecated) JPanel function.\n * <p><em>Use {@link #mv(int, int)} instead.</em></p>\n * @Deprecated use 'mv' instead.\n * @param x x coordinate\n * @param y y coordinate\n */\n @Deprecated\n public abstract void move(int x, int y);\n\n /**\n * Move a block\n * @param numRows number of rows\n * @param numCols number of columns\n * @param origY original Y\n * @param origX original X\n * @param newY new Y\n * @param newX new X\n */\n public abstract void moveBlock(int numRows, int numCols, int origY,\n int origX, int newY, int newX);\n\n /**\n * Move the cursor\n * @param y row\n * @param x column\n */\n public abstract void moveCursor(int y, int x);\n\n /**\n * Move the cursor\n * @param y row\n * @param x column\n * @param cursorColor cursor color\n */\n public abstract void moveCursor(int y, int x, Paint cursorColor);\n\n /**\n * Move and add\n * @param y row\n * @param x column\n * @param what codepoint\n */\n public abstract void mvaddch(int y, int x, int what);\n\n /**\n * \n * @param y row\n * @param x column\n * @param what codepoint\n */\n public abstract void mvoverlaych(int y, int x, int what);\n\n /**\n * \n * @param y row\n * @param x column\n * @param str string\n */\n public abstract void mvputs(int y, int x, String str);\n\n /**\n * @param what codepoint\n */\n public abstract void overlaych(int what);\n\n /**\n * \n * @param what string\n */\n public abstract void puts(String what);\n\n /**\n * refresh the window\n */\n public abstract void refresh();\n\n /**\n * refresh a line\n * @param y row\n */\n public abstract void refreshLine(int y);\n\n /**\n * refresh a region\n * @param height height\n * @param width width\n * @param y1 y1\n * @param x1 x1\n */\n public abstract void refreshRegion(int height, int width, int y1, int x1);\n\n /**\n * Resize the frame\n * \n * <p>This function will only have the expected effect if it is the only\n * panel on the frame.</p>\n * \n * @param frame frame (presumably the one we belong to)\n * @param fontSize the font size you want\n */\n public abstract void resizeFrame(JFrame frame, int fontSize);\n\n /**\n * resize the grid\n * @param rows number of rows\n * @param cols number of columns\n */\n public abstract void resizeGrid(int rows, int cols);\n\n /**\n * set a cell\n * @param y row\n * @param x column\n * @param cell cell\n */\n public abstract void set(int y, int x, AwtCell cell);\n\n /**\n * Set a cell\n * @param y row\n * @param x column\n * @param codepoint codepoint\n * @param back background\n * @param fore foreground\n */\n public abstract void set(int y, int x, int codepoint, Color back, Color fore);\n\n /**\n * Set a cell\n * @param y row\n * @param x column\n * @param codepoint the codepoint\n * @param foreground foreground color\n * @param background background color\n * @param attributes attribute mapping\n * @param walls cell walls\n */\n public abstract void set(int y, int x, int codepoint, Color foreground,\n Color background,\n Map<TextAttribute, Object> attributes,\n EnumSet<CellWalls> walls);\n\n /**\n * set a cell\n * @param y row\n * @param x column\n * @param glyph glyph\n * @param attributes attributes\n */\n public abstract void set(int y, int x, int glyph,\n Map<TextAttribute, Object> attributes);\n\n /**\n * Set a cell\n * @param y row\n * @param x column\n * @param codepoint the codepoint\n * @param attributes attribute mapping\n * @param walls cell walls\n */\n public abstract void set(int y, int x, int codepoint,\n Map<TextAttribute, Object> attributes,\n EnumSet<CellWalls> walls);\n\n /**\n * Set the background color\n * @param colr new color\n */\n public abstract void setCurBackground(Color colr);\n\n /**\n * Set the foreground color\n * @param colr new color\n */\n public abstract void setCurForeground(Color colr);\n\n /**\n * \n * @param y row\n * @param x column\n */\n public abstract void setCursorLocation(int y, int x);\n\n /**\n * Set the empty cell\n * @param empty empty cell\n */\n public abstract void setEmpty(AwtCell empty);\n\n /**\n * Set the font\n * @param font the font\n */\n public abstract void setFont(Font font);\n\n /**\n * \n * @param separateCursor new state\n */\n public abstract void setSeparateCursor(boolean separateCursor);\n\n /**\n * The window has been resized\n */\n public abstract void windowResized();\n\n}",
"private void clearCommandPromptScreen() {\r\n //------------------------------------------------------------\r\n if(APP_INSTANCE.isWindows) {\r\n try {\r\n ProcessBuilder builder = new ProcessBuilder(\"cmd.exe\", \"/c\", \"@echo off & cls & color E\");\r\n Process process = builder.inheritIO().start();\r\n process.waitFor();\r\n } catch (IOException e) {\r\n //> If this fails, its no biggie...\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }else {\r\n for (int ii = 0; ii < 50; ii++) {\r\n System.out.println(\"\");\r\n }\r\n }\r\n }",
"public static void clearConsole() {\n try {\n new ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n System.out.println(CONSOLE_LINE_SEPARATOR);\n }",
"private JTextArea getConsole() {\r\n\t\tif (console == null) {\r\n\t\t\tconsole = new JTextArea();\r\n\t\t}\r\n\t\treturn console;\r\n\t}",
"protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }",
"public void paintFinalScreen() {\n\t\tapp.image(end, 0, 0);\n\t}",
"@Override\n public boolean isTerminal() {\n return false;\n }",
"static void printGoodbyeMessage() {\n System.out.println(\"Goodbye! Thanks for playing.\");\n System.out.println(getAnsiRed() + \"\\n\" +\n \"___________________________________________________________\\n\" +\n \" \\n\" +\n \" ██████ ██████ ██████ ██████ ██████ ██ ██ ███████ \\n\" +\n \"██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ \\n\" +\n \"██ ███ ██ ██ ██ ██ ██ ██ ██████ ████ █████ \\n\" +\n \"██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ \\n\" +\n \" ██████ ██████ ██████ ██████ ██████ ██ ███████ \\n\" +\n \" \\n\" +\n \"___________________________________________________________\\n\" +\n getAnsiReset());\n }",
"private void printEndingStory()\n {\n System.out.println();\n System.out.println(\"Princess Peach: Thanks, Mario. We'll be forever friends!\");\n System.out.println(\"Mario: Oh, no...\");\n System.out.println(\"Mario: Princess Peach you are more than a friend to me...\");\n System.out.println();\n }",
"public void showLine() {\n System.out.print(LINE_SEPARATOR);\n }",
"public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }",
"public int getScreenHeight();",
"public int getScreenHeight();",
"private void skipConsoleLine(){\n\t\tSystem.out.println();\n\t}",
"@Override\r\n public CHScreen getScreen() {\n return curScreen;\r\n }",
"public void drawEndScreen() {\n\t\tint highScore = getHighScore();\n\t\tif (highScore <= score) {\n\t\t\thighScore = score;\n\t\t\tsetHighScore(highScore);\n\t\t}\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Score\" + String.valueOf(score), 0, -100, false);\n\t}",
"public void drawStartScreen() {\n\t\tint highScore = getHighScore();\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Press to Start Game\", 0, -100, false);\n\t}",
"public void drawLine() {\n for(int i=0; i < nCols; i++) {\n System.out.print(\"----\");\n }\n System.out.println(\"\");\n }",
"public abstract int getDisplayHeight();",
"public static void printHome() {\n printSeparator();\n System.out.println(\"Bem Vindo ao Sistema de Cadastros das Babara\");\n printSeparator();\n }",
"public String getScreen() {\n\t\treturn screen;\n\t}",
"public int getScreenHeight()\r\n\t{\r\n\t\treturn mScreen.getHeight();\r\n\t}",
"public int getHeightScreen(){\n return heightScreen ;\n }",
"public void displayPrompt()\n\t{\n\t\tif (ch.usingJog.length() > 0)\n\t\t\treturn;\n\t\t\t\n\t\tif (showPrompt)\n\t\t{\n\t\t\t// Show the pageMode prompt if necessary.\n\t\t\tif (pageMode)\n\t\t\t{\n\t\t\t\tpageMode = false;\n\t\t\t\tsendln(\"\");\n\t\t\t\tsendln(\"{Y[== {CPAGE MODE: {wPush enter to continue. See {W'{chelp pagemode{W' {wfor details. {Y==]{x\");\n\t\t\t\tshowPrompt = false;\n\t\t\t\tpageMode = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Show the editor prompt if necessary.\n\t\t\tif (cs == ConnState.EDITING)\n\t\t\t{\n\t\t\t\tsend(\"{G > {x\");\n\t\t\t\tshowPrompt = false;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsend(\"{x\");\n\t\t\tif (!prefs.get(\"compact\"))\n\t\t\t\tsendln(\"\");\n\t\t\tif (tempPrompt.length() > 0)\n\t\t\t\tsendln(tempPrompt);\n\t\t\telse\n\t\t\t{\n\t\t\t\tString pr = prompt;\n\t\t\t\tif (ch.fighting != null)\n\t\t\t\t\tpr = bprompt;\n\t\t\t\tif (!prefs.get(\"prompt\"))\n\t\t\t\t\tpr = \"\";\n\t\t\t\t\n\t\t\t\tString exitLine = \"\";\n\t\t\t\tfor (Exit e : ch.currentRoom.exits)\n\t\t\t\t\tif (e.flags.get(\"hidden\") && !(e.flags.get(\"door\") && !e.flags.get(\"closed\")))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (e.flags.get(\"door\") && e.flags.get(\"closed\"))\n\t\t\t\t\t\texitLine = exitLine+e.direction.substring(0, 1).toLowerCase();\n\t\t\t\t\telse\n\t\t\t\t\t\texitLine = exitLine+e.direction.substring(0, 1).toUpperCase();\n\t\t\t\t\n\t\t\t\tString lightString = \"\";\n\t\t\t\tint hour = Fmt.getHour();\n\t\t\t\tint season = Fmt.getSeason();\n\t\t\t\tint sunrise = Fmt.getSunrise(season);\n\t\t\t\tint sunset = Fmt.getSunset(season);\n\t\t\t\tif (hour < sunrise || hour > sunset)\n\t\t\t\t\tlightString = \"{D(){x\";\n\t\t\t\telse if (hour >= sunrise && hour < sunrise+2)\n\t\t\t\t\tlightString = \"{D({Y){x\";\n\t\t\t\telse if (hour <= sunset && hour > sunset-2)\n\t\t\t\t\tlightString = \"{Y({D){x\";\n\t\t\t\telse\n\t\t\t\t\tlightString = \"{Y(){x\";\n\n\t\t\t\tpr = pr.replace(\"%%\", \"SPEC_PERCENT\");\n\n\t\t\t\tpr = pr.replace(\"%h\", \"\"+ch.hp);\n\t\t\t\tpr = pr.replace(\"%H\", \"\"+ch.maxHp());\n\t\t\t\tpr = pr.replace(\"%p\", \"\"+((ch.hp*100)/ch.maxHp()));\n\t\t\t\tpr = pr.replace(\"%m\", \"\"+ch.mana);\n\t\t\t\tpr = pr.replace(\"%M\", \"\"+ch.maxMana());\n\t\t\t\tpr = pr.replace(\"%n\", \"\"+((ch.mana*100)/ch.maxMana()));\n\t\t\t\tpr = pr.replace(\"%s\", \"\"+ch.energy);\n\t\t\t\tpr = pr.replace(\"%S\", \"\"+ch.maxEnergy());\n\t\t\t\tpr = pr.replace(\"%i\", \"\"+((ch.energy*100)/ch.maxEnergy()));\n\t\t\t\t\n\t\t\t\tpr = pr.replace(\"%x\", \"\"+ch.tnl);\n\t\t\t\tpr = pr.replace(\"%g\", \"\"+ch.gold);\n\t\t\t\tpr = pr.replace(\"%G\", \"\"+ch.bank);\n\t\t\t\tpr = pr.replace(\"%c\", \"\"+ch.combatQueue.size()/2);\n\n\t\t\t\tpr = pr.replace(\"%a\", ch.currentArea().name);\n\t\t\t\tpr = pr.replace(\"%r\", ch.currentRoom.name);\n\t\t\t\tpr = pr.replace(\"%e\", \"\"+exitLine);\n\t\t\t\tpr = pr.replace(\"%t\", \"\"+savedTells.size());\n\t\t\t\tpr = pr.replace(\"%T\", \"\"+timeFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%d\", \"\"+dateFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%D\", \"\"+longDateFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%l\", lightString);\n\t\t\t\t\n\t\t\t\tpr = pr.replace(\"%A\", \"\"+ch.currentArea().id);\n\t\t\t\tpr = pr.replace(\"%R\", \"\"+ch.currentRoom.id);\n\t\t\t\tpr = pr.replace(\"%o\", olcMode);\n\n\t\t\t\tif (ch.fighting != null)\n\t\t\t\t{\n\t\t\t\t\tpr = pr.replace(\"%O\", Fmt.seeName(ch, ch.fighting));\n\t\t\t\t\tpr = pr.replace(\"%P\", \"\"+((ch.fighting.hp*100)/ch.fighting.maxHp()));\n\t\t\t\t\tpr = pr.replace(\"%N\", \"\"+((ch.fighting.mana*100)/ch.fighting.maxMana()));\n\t\t\t\t\tpr = pr.replace(\"%I\", \"\"+((ch.fighting.energy*100)/ch.fighting.maxEnergy()));\n\t\t\t\t}\n\n\t\t\t\tpr = pr.replace(\"SPEC_PERCENT\", \"%\");\n\t\t\t\t\n\t\t\t\tsend(pr+\"{x\");\n\t\t\t}\n\t\t\tshowPrompt = false;\n\t\t}\n\t}",
"void showInConsole();",
"public void consoleBoardDisplay(){\n\t\tString cell[][] = ttt.getCells();\n\t\tSystem.out.println(\"\\n\" +\n\t\t\t\"R0: \" + cell[0][0] + '|' + cell[0][1] + '|' + cell[0][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R1: \" + cell[1][0] + '|' + cell[1][1] + '|' + cell[1][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R2: \" + cell[2][0] + '|' + cell[2][1] + '|' + cell[2][2] + \"\\n\"\n\t\t);\n\t}",
"public int getLastVisibleLine(){\n int l = Math.min((getOffsetY() + getHeight()) / getLineHeight(), getLineCount() - 1);\n if(l < 0){\n return 0;\n }else{\n return l;\n }\n }",
"public static void main (String[] args) {\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\\033[90m\",\"ANDALUCÍA \",\"\\033[40m\");\n //System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"ANDALUCÍA \",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\"); \n \n \n }",
"public static void splashScreen() {\n System.out.println(printLine(\"-\",100));\n System.out.println(\"Welcome to KaviBase\"); // Display the string.\n System.out.println(\"Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(\"\\nEvery command should end with semicolon ;\");\n System.out.println(printLine(\"-\",100));\n }",
"public static void showPrompt() {\r\n \r\n System.out.print(\"> \");\r\n \r\n }",
"boolean hasConsole();",
"public int getBottom(){\n\t\treturn platformHitbox.y+height;\n\t}",
"private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }",
"protected abstract void showBottomFace();",
"public static void firstDraw() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 1 + \" | \" + 2 + \" | \" + 3);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 4 + \" | \" + 5 + \" | \" + 6);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 7 + \" | \" + 8 + \" | \" + 9);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println();\n\t}",
"public int getHeight() {\r\n return Display.getHeight();\r\n }",
"public static void clear(){\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush(); // flushes the stream\n }",
"public static void printGreeting() {\n printDashLines();\n printLogo();\n System.out.println(GREETING_LINES);\n printDashLines();\n }",
"int getLineHeight() {\n\treturn ascent + descent;\n}",
"public static void printExitMsg() {\r\n CmdUx.printHBars(EXIT_MSG);\r\n }",
"public void enterForeground();",
"public void display(String line) {\r\n\t\tif (console.size() == 50) {\r\n\t\t\tconsole.remove(0);\r\n\t\t}\r\n\t\tconsole.addElement(line);\r\n\t}",
"public void display() {\n System.out.println(\"显示浅蓝色文本框\");\n }",
"private void prompt() {\n System.out.print(Strings.MAIN_PROMPT);\n System.out.flush();\n }",
"public int getYBottom() {\n return getYTop() + getYWidth();\n }",
"public static double getDisplayHeight() {\n\t\treturn javafx.stage.Screen.getPrimary().getVisualBounds().getHeight();\n\t}",
"public static void printNormalPrompt() {\n System.out.println(\"[Normal]\");\n System.out.print(\" > \");\n }",
"public String getActiveOutput()\n\t{\n\t\treturn \"hdb\";\n\t}",
"public void Display() {\n\t\tSystem.out.println(Integer.toHexString(PID) + \"\\t\" + Integer.toString(CreationTime) + \"\\t\"+ Integer.toHexString(CommandCounter) + \"\\t\" + ProcessStatus.toString() \n\t\t+ \"\\t\" + Integer.toString(MemoryVolume) + \"\\t\" + Integer.toHexString(Priority) + \"\\t\" + ((MemorySegments != null)? MemorySegments.toString() : \"null\"));\n\t}",
"Point onScreen();",
"public void showFarewell() {\n showLine();\n System.out.println(\"Bye. Hope to see you again soon!\");\n showLine();\n }",
"public int getDesktopHeight() {\n\t\treturn getClientHeight(PROGRAM_MANAGER);\n\t}",
"@Override\n\tprotected void 关上冰箱门() {\n\t\tSystem.out.println(\"我是张飞,我叫喊着粗鲁的把冰箱门关上\");\n\t}",
"public int m2392d() {\n return VERSION.SDK_INT >= 20 ? ((WindowInsets) this.f1817a).getSystemWindowInsetBottom() : 0;\n }",
"public int getScreenHeight() {\n return this.screenHeight;\n }",
"public int getDisplayHeight() {\n\t\treturn displayHeight;\n\t}",
"public void printGoodbyeMessage() {\n System.out.println(BORDER_LINE + System.lineSeparator()\n + \" Bye, see you again!\" + System.lineSeparator()\n + BORDER_LINE);\n }",
"com.lxd.protobuf.msg.result.console.Console.Console_ getConsole();",
"private void printExitMenu() {\n System.out.println(\"Goodbye! Thanks for using the app!\");\n }",
"private void showCommands() {\n System.out.println(\"\\n Commands:\");\n System.out.println(\"\\t lf: List reference frames\");\n System.out.println(\"\\t af: Add a reference frame\");\n System.out.println(\"\\t rf: Remove a reference frame\");\n System.out.println(\"\\t le: List events\");\n System.out.println(\"\\t ae: Add an event\");\n System.out.println(\"\\t re: Remove an event\");\n System.out.println(\"\\t ve: View all events from a certain frame\");\n System.out.println(\"\\t li: Calculate the Lorentz Invariant of two events\");\n System.out.println(\"\\t s: Save the world to file\");\n System.out.println(\"\\t l: Load the world from file\");\n System.out.println(\"\\t exit: Exit the program\");\n }",
"public int getBottomY() {\n\t\treturn 0;\r\n\t}",
"public int getScreenY()\r\n\t{\r\n\t\treturn mScreen.getY();\r\n\t}",
"public OutputConsole() {\n initComponents();\n setSize (1520, 750);\n }",
"public static void displayProgramEnd() \r\n {\n }",
"public int getLineTop(int line){\n return getLineHeight() * line;\n }"
] |
[
"0.59516853",
"0.5911043",
"0.5803067",
"0.5694313",
"0.56871486",
"0.5618015",
"0.56133753",
"0.5613242",
"0.56062114",
"0.5600524",
"0.5592103",
"0.55825895",
"0.55199015",
"0.5510271",
"0.5465092",
"0.5463606",
"0.544981",
"0.542831",
"0.54258436",
"0.54031646",
"0.5400314",
"0.53535134",
"0.5342247",
"0.5322416",
"0.5317294",
"0.53106123",
"0.52974206",
"0.52845585",
"0.5260744",
"0.52554876",
"0.52477",
"0.524312",
"0.52225393",
"0.52203226",
"0.52191615",
"0.5217598",
"0.5206262",
"0.5199997",
"0.518987",
"0.5187014",
"0.5176537",
"0.516764",
"0.5161188",
"0.5159401",
"0.51588106",
"0.51550436",
"0.5143956",
"0.51408374",
"0.51408374",
"0.5117524",
"0.51163167",
"0.51072395",
"0.5105878",
"0.5102912",
"0.50984603",
"0.5096688",
"0.509179",
"0.50911033",
"0.5087357",
"0.50873077",
"0.50847334",
"0.5076241",
"0.5065966",
"0.5065386",
"0.50578916",
"0.50462633",
"0.50416905",
"0.5034705",
"0.5028491",
"0.5015187",
"0.50127095",
"0.5007413",
"0.5002573",
"0.5001084",
"0.4997291",
"0.4990278",
"0.49880764",
"0.4983462",
"0.49745095",
"0.49739447",
"0.49721378",
"0.4967243",
"0.4953809",
"0.4946489",
"0.49444306",
"0.49391708",
"0.49390388",
"0.49379078",
"0.49329913",
"0.49319613",
"0.49239025",
"0.4920195",
"0.49167758",
"0.49080804",
"0.49060756",
"0.49059138",
"0.4899314",
"0.48985025",
"0.48948577",
"0.48940945",
"0.4891779"
] |
0.0
|
-1
|
Set the new bottom line for this terminal screen
|
void setBottomLineNode(Node<UnderlyingData> bottomLineNode);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setBottom() {\n reset(State.BOTTOM);\n }",
"public void newLine() {\n\t\tcommandLine.append(\"\\n\");\n\t}",
"public int getLineBottom(int line){\n return getLineHeight() * (line + 1);\n }",
"public void modifyBottomGuideline(Guideline guideline) {\n guideline.setGuidelineEnd(0);\n }",
"private void updateLineHeight() {\n Text text = new Text(\"AM\");\n text.setFont(new Font(fontType, fontSize));\n lineHeight = round(text.getLayoutBounds().getHeight());\n }",
"public void appendLine() {\n\t\t\tmBuilder.append(NewLineChar);\n\t\t\tlastAppendNewLine = true;\n\t\t}",
"private void writeHline(final BufferedWriter file) throws IOException {\n file.write(\"\\\\hline\");\n file.newLine();\n }",
"private void drawTopBorder(StringBuffer canvas) {\n \t\t\tfor (int i=0; i<width; i++)\r\n \t\t\t\tcanvas.append('_'); //Top bar.\r\n \t\t\tcanvas.append('\\n');}",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"private void updateCursor() {\n cursor.setHeight(lineHeight);\n }",
"public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public void drawLine() {\n for(int i=0; i < nCols; i++) {\n System.out.print(\"----\");\n }\n System.out.println(\"\");\n }",
"public void setLineHeight(int i) {\n lineHeight = i;\n }",
"public static void printExitLine() {\n printMessage(BYE_LINE);\n }",
"public boolean setOnBottom(String sname) {\n return windows.setOnBottom(sname);\n }",
"public void newline(TermuxSessionBridgeEnd bridgeEnd) {\n String command = inputParser.get(bridgeEnd);\n attemptTuiCommand(bridgeEnd, command);\n }",
"public void showLine() {\n System.out.print(LINE_SEPARATOR);\n }",
"public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }",
"public UtilsPadding setBottom(Number bottom) {\n if (jsBase == null) {\n this.bottom = null;\n this.bottom1 = null;\n \n this.bottom = bottom;\n } else {\n this.bottom = bottom;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".bottom(%s)\", bottom));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".bottom(%s);\", bottom));\n js.setLength(0);\n }\n }\n return this;\n }",
"public void display(String line) {\r\n\t\tif (console.size() == 50) {\r\n\t\t\tconsole.remove(0);\r\n\t\t}\r\n\t\tconsole.addElement(line);\r\n\t}",
"public void onOutputLineAdded(Window window, OutputLine line) {\n\t\t\t\n\t\t\tlinesLayout.addLine(line);\n\t\t}",
"private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }",
"public void setEndLine(int endLine) {\r\n this.endLine = endLine;\r\n }",
"public void showAtBottomPending() {\n if(isKeyBoardOpen())\n showAtBottom();\n else\n pendingOpen = true;\n }",
"public void showAtBottom() {\n showAtLocation(rootView, Gravity.BOTTOM, 0, 0);\n }",
"@Override \n public void paintBorder(Component c, Graphics g, int x, int y, int width, int height){ \n g.setColor( c.getForeground() ); \n g.drawLine(0, height - 1, width, height - 1); //Border Bottom \n }",
"public void newLine() {\n text.append(\"\\n\");\n }",
"protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }",
"public void setEndLine(final int endLine) {\n this.endLine = endLine;\n }",
"public void setBottomWidth(String bottomWidth) {\r\n\t\tthis.bottomWidth = bottomWidth;\r\n\t}",
"private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"public void linefeed() {\r\n\t\tconsole.print(LINESEP);\r\n\t}",
"public void drawEndScreen() {\n\t\tint highScore = getHighScore();\n\t\tif (highScore <= score) {\n\t\t\thighScore = score;\n\t\t\tsetHighScore(highScore);\n\t\t}\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Score\" + String.valueOf(score), 0, -100, false);\n\t}",
"void showNewLine(String lineNumber, String directionId);",
"private void setBottomCounter() {\n\t\tVBox bottomBox = new VBox();\n\t\tbottomBox.setAlignment(Pos.BOTTOM_CENTER);\n\t\tbottomBox.setPadding(new Insets(10, 10, 10, 10));\n\t\tbottomBox.setSpacing(5);\n\t\t\n\t\tlastProperty = new Text(\"\");\n\t\tlastProperty.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\tlastProperty.setFill(Color.GREEN);\n\t\t\n\t\tcounterText = new Text(\"Total number of properties listed: \" + Property.getTotalProperties());\n\t\tcounterText.setFont(Font.font(\"Bauhaus 93\", FontWeight.BOLD, 24));\n\t\tcounterText.setFill(Color.rgb(100, 0, 150));\n\t\t\n\t\t\n\t\tbottomBox.getChildren().addAll(lastProperty, counterText);\n\t\t\n\t\tmainPane.setBottom(bottomBox);\n\t\t\n\t}",
"public static void clearScreen() {\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public void newLine()\n\t{\n\t\toutput.append(\"\\n\");\n\t}",
"public static void clearScreen() { \n \tSystem.out.print(\"\\033[H\\033[2J\"); \n \tSystem.out.flush();\n\t}",
"public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }",
"public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\n \"██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\\n\" +\n \"╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\\n\" +\n \"░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\\n\" +\n \"░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\\n\" +\n \"░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\\n\" +\n \"░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\\n\" +\n \"\\n\" +\n \"░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\\n\" +\n \"██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\\n\" +\n \"██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\\n\" +\n \"██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\\n\" +\n \"╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\\n\" +\n \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }",
"public void writeLineToConsole(String text) {\n writeToConsole(text + \"\\n\\r\");\n }",
"public UtilsPadding setBottom(String bottom1) {\n if (jsBase == null) {\n this.bottom = null;\n this.bottom1 = null;\n \n this.bottom1 = bottom1;\n } else {\n this.bottom1 = bottom1;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".bottom(%s)\", wrapQuotes(bottom1)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".bottom(%s);\", wrapQuotes(bottom1)));\n js.setLength(0);\n }\n }\n return this;\n }",
"public boolean setOnBottom(int i) {\n return windows.setOnBottom(i);\n }",
"public void clearTerminal(){\n\n System.out.println(\"\\033[2J\\033[1;1H\");\n\n }",
"public int getLineHeight() {\n return lineHeight;\n }",
"public void clearScreen() { \n\t System.out.print(\"\\033[H\\033[2J\"); \n\t System.out.flush(); \n\t }",
"public void newChatLine(String line) {\n\t\tSystem.out.println(line);\n\t}",
"public void setShowNowLine(boolean showNowLine) {\n config.showNowLine = showNowLine;\n invalidate();\n }",
"@JSProperty(\"bottom\")\n void setBottom(Chart3dFrameBottomOptions value);",
"public static void printLine() {\r\n if (!isDisabled()) {\r\n print(LINE_SEPARATOR);\r\n }\r\n }",
"public void setPrompt() {\n\t\tcommandLine.append(\"$ \");\n\t}",
"public void newLine()\n {\n rst += NEW_LINE;\n }",
"public void setCurrentHeight(final int currentHeight);",
"public Builder setEndLineNumber(int value) {\n bitField0_ |= 0x00000040;\n endLineNumber_ = value;\n onChanged();\n return this;\n }",
"public void setBottom(int x) {\r\n bottomSide = x;\r\n }",
"public void scrollBottom(int offset) {\n clientRpc.scrollBottom(offset);\n }",
"private final static void clearConsole()\t{\n\t\tSystem.out.print(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"private void consoleAppend(String string){\r\n sbCommandHistory.append(string);\r\n sbCommandHistory.append(\"\\n\");\r\n }",
"private void lineBreak()\n\t{\n\t\tlog += String.format(\"%n\");\n\t\tfor(int i = 0; i < 25; i++)\n\t\t\tlog += \"-\";\n\t\tlog += String.format(\"%n\");\n\t}",
"public void alignBottom() {\n\t\ttop.bottom();\n\t}",
"@Override\n public int heightHint() {\n return isMultiline() ? 45 : 15;\n }",
"private void drawLines()\n {\n getBackground().setColor( Color.BLACK );\n \n for( int i = 200; i < getWidth(); i += 200 )\n {\n getBackground().drawLine(i, 0, i, getHeight() );\n getBackground().drawLine(0, i, getWidth(), i);\n }\n \n Greenfoot.start();\n }",
"public static void BottomRow() {\r\n\t\r\n\tb1.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\r\n\tb2.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\r\n\tb3.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\tGUI1Panel.add(b1);\r\n\tGUI1Panel.add(b2);\r\n\tGUI1Panel.add(b3);\r\n\r\n}",
"private void Add_Bottom_Top(String s) {\n\t\tBottom_Layout b = new Bottom_Layout(s);\n\t\tScrollPane sc = new ScrollPane();\n\t\t\n\t\tthis.mainPanel.add(b.getBottom(), BorderLayout.CENTER);\n\t\t\n\t}",
"public synchronized void drawLineBottom(int xStart, int xEnd)\r\n\t{\r\n\t\treferenceImage.drawLineBottom(xStart, xEnd);\r\n\t\tfinal int startX = transformXStart(xStart);\r\n\t\tfinal int endX = transformXEnd(xEnd);\r\n\t\tdisplayedImage.drawLineBottom(startX, endX);\r\n\t}",
"private void printLineGap() {\r\n\t\tfor (int i = 0; i < 45; i++) {\r\n\t\t\tSystem.out.print('-');\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"protected void scrollToBottom() {\r\n\t\tContainer parent = this.getParent();\r\n\t\tif (parent instanceof JViewport) {\r\n\t\t\t((JViewport) parent).setViewPosition(new Point(0, this.getHeight()));\r\n\t\t}\r\n\t}",
"public Position setBottom(Size size) {\n\t\tbottom = size.clone();\n\t\treturn this;\n\t}",
"protected abstract void showBottomFace();",
"static void clear_console_screen()\n\t{\n\t\tfor (int lines=0; lines<200; lines++)\n\t\t{\n\t\t\tSystem.out.println(\" \");\n\t\t}// end for (int lines=0; lines<200; lines++)\n\t\t\n\t}",
"public void addEmptyLine() {\n addLine(\"\");\n }",
"public void writeLine(String theString, int color)\r\n\t{\r\n\t\t/*\r\n\t\t * 0 = system! 1 = User Input 2 = Socket Input 3 = Other\r\n\t\t */\r\n\t\tStyleContext context = new StyleContext();\r\n\t\tstyle = context.getStyle(StyleContext.DEFAULT_STYLE);\r\n\t\tStyleConstants.setFontSize(style, 14);\r\n\t\tStyleConstants.setSpaceAbove(style, 4);\r\n\t\tStyleConstants.setSpaceBelow(style, 4);\r\n\r\n\t\tswitch (color)\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\tStyleConstants.setForeground(style, Color.GRAY);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLACK);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLUE);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tStyleConstants.setForeground(style, Color.RED);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ttheString = theString + \"\\n\";\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tdoc.insertString(doc.getLength(), theString, style);\r\n\r\n\t\t}\r\n\t\tcatch (BadLocationException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// scroll to the bottom\r\n\t\ttxtDisplayArea.setCaretPosition(txtDisplayArea.getDocument()\r\n\t\t\t\t.getLength());\r\n\r\n\t}",
"public void setOutlineClipBottom(int bottom) {\n if (bottom != mOutlineClipRect.bottom) {\n mOutlineClipRect.bottom = bottom;\n mSourceView.invalidateOutline();\n }\n }",
"public void setEndLineNumber(int foo) { endLineNumber = foo; }",
"public void endl(){\n putc('\\n');\n }",
"void setLinesLimit(int value);",
"public void paintFinalScreen() {\n\t\tapp.image(end, 0, 0);\n\t}",
"public void setEndLineNumber(int endLine) {\n this.endLine = endLine;\n }",
"private void lineCheck(int linesToAdd) {\n\n\t\tTermio terminal = new Termio();\n\n\t\tif (lineCount >= maxLinesDisplayed) {\n\n\t\t\tlineCount = 0;\n\t\t\tSystem.out.print(\"\\n*** Press Enter To Continue ***\");\n\t\t\tterminal.keyboardReadChar();\n\n\t\t} else {\n\n\t\t\tlineCount += linesToAdd;\n\n\t\t} // if\n\n\t}",
"public static void clearScreen()\r\n\t{\r\n\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\r\n\t}",
"private void newline() {}",
"Builder addHeadline(String value);",
"public void scrollToBottom()\n {\n ensureIndexIsVisible(getModel().getSize() - 1);\n }",
"public static SuffixLattice getBottom() {\n\t\treturn BOTTOM;\n\t}",
"private static void printSeparatorLine() {\r\n System.out.print(\"\\n----------------------------------------------------------\" +\r\n \"----------------------------------------------------------\");\r\n }",
"@Override\n\tprotected int getAddWindowHeigh() {\n\t\treturn 170;\n\t}",
"public void setShowNowLineDot(boolean showNowLineDot) {\n config.showNowLineDot = showNowLineDot;\n invalidate();\n }",
"@Override\n\tprotected void endOfLine() {\n\t}",
"public boolean getShowHeaderRowBottomLine() {\n return config.showHeaderRowBottomLine;\n }",
"private static void clearScreen() \n {\n Console c = System.console();\n if (c != null) \n {\n // Clear screen for the first time\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n //c.writer().print(ESC + \"[2J\");\n //c.flush();\n\n // Clear the screen again and place the cursor in the top left\n System.out.print(\"\\033[H\\033[1;1H\");\n System.out.flush();\n //c.writer().print(ESC + \"[1;1H\");\n //c.flush();\n }\n }",
"public void drawHillBottoms() {\n batch.draw(hillBottom, hill1.getX(), hill1.getY()-6, hill1.getWidth(), 20);\n batch.draw(hillBottom, hill2.getX(), hill2.getY()-6, hill2.getWidth(), 20);\n batch.draw(hillBottom, hill3.getX(), hill3.getY()-6, hill3.getWidth(), 20);\n batch.draw(hillBottom, hill4.getX(), hill4.getY()-6, hill4.getWidth(), 20);\n }",
"public void endLine() {\n if (currentLine != null) {\n lines.add(currentLine);\n currentLine = null;\n }\n }",
"public static String lineBreak() {\n return \"\\n*****************************************************\\n\";\n }",
"protected void setPlayerBackground() { Console.setBackground(Console.YELLOW); }",
"@Override\r\n\tpublic void BuildHead() {\n g.drawRoundRect(0, 0, 50, 20, 30, 30);\r\n\t}",
"private void addNewLine(StringBuilder builder, String line){\r\n\t\tbuilder.append(line);\r\n\t\tbuilder.append(\"\\n\");\r\n\t}",
"public abstract Builder setOutputHeight(int value);",
"private static void helpMenuLines(){\n setMenuLines(\"\",7,9,11,13,15,16,18,20);\n setMenuLines(\"Welcome to Ben's CMR program. Here are the main commands:\",1);\n setMenuLines(HIGHLIGHT_COLOR + \"new lead\" + ANSI_RESET + \" - Creates a new Lead\",4);\n setMenuLines(HIGHLIGHT_COLOR + \"convert <ID>\" + ANSI_RESET + \" - Converts a Lead into an Opportunity\",6);\n setMenuLines(HIGHLIGHT_COLOR + \"close-won <ID>\" + ANSI_RESET + \" - Close Won Opportunity\",8);\n setMenuLines(HIGHLIGHT_COLOR + \"close-lost <ID>\" + ANSI_RESET + \" - Close Lost Opportunity\",10);\n setMenuLines(HIGHLIGHT_COLOR + \"lookup <OBJECT> <ID>\" + ANSI_RESET + \" - Search for specific Lead, Opportunity, Account or Contact\",12);\n setMenuLines(HIGHLIGHT_COLOR + \"show <OBJECT PLURAL>\" + ANSI_RESET + \" - List all Leads, Opportunities, Accounts or Contacts\",14);\n setMenuLines(HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" - Explains usage of available commands\",17);\n setMenuLines(HIGHLIGHT_COLOR + \"save\" + ANSI_RESET + \" - Saves the changed data\",19);\n setMenuLines(HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" - Saves and exits the program\",21);\n }",
"static void welcome() {\n System.out.println(getAnsiRed() + \"\\n\" +\n \"███████╗████████╗██████╗ █████╗ ███╗ ██╗ ██████╗ ███████╗██████╗ \\n\" +\n \"██╔════╝╚══██╔══╝██╔══██╗██╔══██╗████╗ ██║██╔════╝ ██╔════╝██╔══██╗\\n\" +\n \"███████╗ ██║ ██████╔╝███████║██╔██╗ ██║██║ ███╗█████╗ ██████╔╝\\n\" +\n \"╚════██║ ██║ ██╔══██╗██╔══██║██║╚██╗██║██║ ██║██╔══╝ ██╔══██╗\\n\" +\n \"███████║ ██║ ██║ ██║██║ ██║██║ ╚████║╚██████╔╝███████╗██║ ██║\\n\" +\n \"╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝\\n\" +\n \" ██████╗ █████╗ ███╗ ███╗███████╗ \\n\" +\n \" ██╔════╝ ██╔══██╗████╗ ████║██╔════╝ \\n\" +\n \" ██║ ███╗███████║██╔████╔██║█████╗ \\n\" +\n \" ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝ \\n\" +\n \" ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗ \\n\" +\n \" ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ \\n\" +\n getAnsiReset());\n\n System.out.println(\"\\n\" +\n \" Built by Team NullPointer (Team 5)\\n\" +\n \" Neill Perry (https://github.com/neillperry)\\n\" +\n \" Bruce West (https://github.com/BruceBAWest)\\n\" +\n \" Tapan Trivedi (https://github.com/tapantriv)\\n\" +\n \" TLG Learning: Capstone Java Project\\n\" +\n \" https://github.com/NullPointer-Team\");\n }"
] |
[
"0.6195583",
"0.5877672",
"0.5658531",
"0.55780697",
"0.5561605",
"0.5543354",
"0.5536419",
"0.5499287",
"0.54676723",
"0.54596144",
"0.5409405",
"0.5360863",
"0.52782077",
"0.52467775",
"0.52417046",
"0.52329737",
"0.522649",
"0.5226285",
"0.52203315",
"0.5213683",
"0.51992416",
"0.5192218",
"0.51893574",
"0.51596683",
"0.5154272",
"0.515306",
"0.51490957",
"0.5147685",
"0.5144799",
"0.51116323",
"0.5092532",
"0.5089014",
"0.5066958",
"0.5064875",
"0.50570476",
"0.50519663",
"0.5029367",
"0.5026134",
"0.5008019",
"0.49998096",
"0.49898824",
"0.4984521",
"0.4979795",
"0.4968361",
"0.4967517",
"0.4963189",
"0.49498054",
"0.4943141",
"0.49404603",
"0.4932733",
"0.49323916",
"0.4928859",
"0.49264657",
"0.4921279",
"0.49200106",
"0.49062663",
"0.48844284",
"0.48726746",
"0.48715726",
"0.48687738",
"0.4868488",
"0.4862317",
"0.4860005",
"0.48562774",
"0.4854297",
"0.4852972",
"0.48307002",
"0.48305613",
"0.4827297",
"0.4816719",
"0.4811813",
"0.4805723",
"0.4803449",
"0.48024637",
"0.4801029",
"0.479668",
"0.479024",
"0.47899377",
"0.4786422",
"0.47807953",
"0.47793162",
"0.47676837",
"0.4761091",
"0.47494465",
"0.47473538",
"0.47447476",
"0.4732202",
"0.47292793",
"0.47263655",
"0.47240376",
"0.47191182",
"0.47149628",
"0.4714809",
"0.47122929",
"0.4704088",
"0.4696302",
"0.46870196",
"0.46791708",
"0.46757117",
"0.46673173"
] |
0.52954686
|
12
|
The next node to the provided
|
Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public DNode getNext() { return next; }",
"public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}",
"public Node getNext() { return next; }",
"public node getNext() {\n\t\t\treturn next;\n\t\t}",
"public Node setNextNode(Node node);",
"public ListNode<T> getNext();",
"public SlideNode getNext() {\n\t\treturn next;\n\t}",
"public Node getNext(){\n\t\t\treturn next;\n\t\t}",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public SimpleNode getNext() {\n return next;\n }",
"public Node getNext(){\n\t\treturn next;\n\t}",
"public Node<E> getNext() { return next; }",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }",
"public Node getNext() {\r\n\t\treturn next;\r\n\t}",
"public Node getNext() {\n\t\treturn next;\n\t}",
"public HL7DataTree next() {\n final int size = Util.size(this.list), i = this.next == null ? size : this.list.indexOf(this.next) + 1;\n final HL7DataTree curr = this.next;\n \n this.next = i == size ? more() : this.list.get(i);\n \n return curr;\n }",
"public Node<S> getNext() { return next; }",
"public LinearNode<T> getNext() {\r\n\t\t\r\n\t\treturn next;\r\n\t\r\n\t}",
"public T getNextElement();",
"public Node getNext() {\t\t//O(1)\n\t\treturn next;\n\t}",
"public LLNode<T> getNext() {\n return next;\n }",
"@Override\n public Node next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Node current = next;\n next = next.getNextSibling();\n return current;\n }",
"Node<T> getNext() {\n\t\t\treturn nextNode;\n\t\t}",
"public Node getNextNode() {\n return nextNode;\n }",
"public MyNode<? super E> getNext()\n\t{\n\t\treturn this.next;\n\t}",
"public Node<E> getNext() {\r\n\t\treturn next;\r\n\t}",
"public Node getNext() {\n return next;\n }",
"int getNext(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 2);\n\t}",
"public Node getNext() {\n return next;\n }",
"public Node<D> getNext(){\n\t\treturn next;\n\t}",
"@Override \r\n\tpublic LLNode<T> next() throws NoSuchElementException{\r\n\t\tLLNode<T> node = nodeptr;\r\n\t\tif (nodeptr == null)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\tnodeptr = nodeptr.getNext();\r\n\t\treturn node;\r\n\t}",
"public Node<T> getNext() {\n\t\treturn next;\n\t}",
"public ElectionNode getNextNode() {\r\n return nextNode;\r\n }",
"@Override\n\t\tpublic Node next() {\n\t\t\tif (this.next == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tNode element = this.next;\n\t\t\t\tthis.next = (Node) this.next.getNextNode();\n\t\t\t\treturn (Node) element;\n\t\t\t}\n\t\t}",
"public ShapeNode getNext()\n {\n return next;\n }",
"protected void next() {\n\t\t// Next node\n\t\tnode = path.remove(0);\n\t\ttransition(NavigatorState.ROTATE_TO);\n\t}",
"@Override\r\n\tpublic String next() {\n\t\tString nx;\r\n\r\n\t\tnx = p.getNext();\r\n\r\n\t\tif (nx != null) {\r\n\t\t\tthisNext = true;\r\n\t\t\tinput(nx);\r\n\t\t}\r\n\t\treturn nx;\r\n\t}",
"public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }",
"ListNode getNext() { /* package access */ \n\t\treturn next;\n\t}",
"public CommitNode getNext(){\r\n\t\treturn next;\r\n\t}",
"public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}",
"public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}",
"public E next(){\r\n E data = node.getData();\r\n node = node.getNext();\r\n return data;\r\n }",
"public Node<T> getNextNode() {\n\t\treturn nextNode;\n\t}",
"public void next() {\n\t\t}",
"public Node getNext() {\n\t\treturn this.next;\n\t}",
"public abstract void nextElement();",
"public ListNode getNext()\r\n {\r\n return next;\r\n }",
"public Node<T> next() {\r\n return next;\r\n }",
"@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}",
"public E next() \n {\n \tfor(int i = 0; i < size; i++)\n \t\tif(tree[i].order == next) {\n \t\t\tnext++;\n \t\t\ttree[i].position = i;\n \t\t\treturn tree[i].element;\n \t\t}\n \treturn null;\n }",
"public Node<E> nextNode() {\n\t\treturn next_node;\n\t}",
"public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}",
"protected final Node<N> getNext() {\n return this.next;\n }",
"public void setNext(Node<E> next) { this.next = next; }",
"public Node getNext()\n {\n return this.next;\n }",
"Object getNextElement() throws NoSuchElementException;",
"public Node<T> getNext()\n\t{\treturn this.next; }",
"private Object getNextElement()\n {\n return __m_NextElement;\n }",
"public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"HNode getNextSibling();",
"public void moveNext() {\n\t\tcurrentElement++;\n\t}",
"public ListNode<E> getNext()\n {\n return nextNode;\n }",
"public Item next() throws XPathException {\n curr = base.next();\n if (curr == null) {\n pos = -1;\n } else {\n pos++;\n }\n return curr;\n }",
"public T next()\n\t\t{\n\t\t\tif(hasNext())\n\t\t\t{\n\t\t\t\tT currentData = current.getData(); //the data that will be returned\n\t\t\t\t\n\t\t\t\t// must continue to keep track of the Node that is in front of\n\t\t\t\t// the current Node whose data is must being returned , in case\n\t\t\t\t// its nextNode must be reset to skip the Node whose data is\n\t\t\t\t// just being returned\n\t\t\t\tbeforePrevious = previous;\n\t\t\t\t\n\t\t\t\t// must continue keep track of the Node that is referencing the\n\t\t\t\t// data that was just returned in case the user wishes to remove()\n\t\t\t\t// the data that was just returned\n\t\t\t\t\n\t\t\t\tprevious = current; // get ready to point to the Node with the next data value\n\t\t\t\t\n\t\t\t\tcurrent = current.getNext(); // move to next Node in the chain, get ready to point to the next data item in the list\n\t\t\t\t\n\t\t\t\tthis.removeCalled = false;\n\t\t\t\t// it's now pointing to next value in the list which is not the one that may have been removed\n\t\t\t\t\n\t\t\t\treturn currentData;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}",
"public abstract void next ();",
"@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}",
"public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }",
"public void next() {\r\n\t\tif (curr != tail)\r\n\t\t\tcurr = curr.next();\r\n\t}",
"public DependencyElement next() {\n\t\treturn next;\n\t}",
"public E getNext() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index >= this.size() - 1)\n\t\t\t\tindex = -1;\n\t\t\treturn this.get(++index);\n\t\t}\n\t\treturn null;\n\t}",
"public void Next();",
"public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }",
"public NextNode getNextNodeNextPointer(MainNode node) {\n return node.next;\n }",
"@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public ListElement getNext()\n\t {\n\t return this.next;\n\t }",
"public final Node<N> next() {\n final Node<N> sink = this.next;\n this.prepareNext();\n return sink;\n }",
"void next();",
"public Node<T> getNext() {\n return this.next;\n }",
"public void goToNext()\n {\n if (current != null)\n {\n previous = current;\n current = current.nLink;\n } // end if\n else if (head != null)\n {\n System.out.println(\"Iteration reached end of line.\");\n System.exit(0);\n } // else if\n else\n {\n System.out.println(\"You can't iterate an empty list.\");\n System.exit(0);\n }\n }",
"public Linkable next();",
"public GameNode getNext() {\n return this.next;\n }",
"public ListNode<Item> getNext() {\n return this.next;\n }",
"public Cell getNext()\n { return next; }",
"public LinkedNode<T> getNext() {\n\t return myNextNode;\n }",
"public abstract void next();",
"@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }",
"public com.Node<T> getNextRef() {\n\t\treturn null;\n\t}",
"@Override\n public NodoL next() {\n posicionActual = posicionActual.getSiguiente();\n return posicionActual;\n }",
"public Variable getNext(){\n\t\treturn this.next;\n\t}",
"@Override\r\n\t\tpublic T next() {\r\n\t\t\tNode<T> temp = currentNode;\r\n\t\t\tcurrentNode = currentNode.nextNode;\r\n\t\t\treturn temp.content;\r\n\t\t}",
"public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}",
"public SortedLinkedListNode getNext() {\n return next;\n }",
"public void setNext(Node n) { next = n; }",
"public MainNode getMainNodeNextPointer(MainNode node) {\n return node.mainNext;\n }",
"public abstract Tuple getNext();",
"@Override\n public int nextIndex()\n {\n return idx+1; \n }"
] |
[
"0.76801866",
"0.75756747",
"0.7566086",
"0.75476193",
"0.74791723",
"0.74564207",
"0.7439971",
"0.74396926",
"0.73973686",
"0.73973686",
"0.73937327",
"0.7388346",
"0.7373073",
"0.7372774",
"0.7372774",
"0.73165435",
"0.7311879",
"0.7309314",
"0.72901255",
"0.7283736",
"0.7283062",
"0.7273119",
"0.7239767",
"0.7233077",
"0.7223059",
"0.7217278",
"0.7216974",
"0.72110206",
"0.71755886",
"0.71715087",
"0.7158787",
"0.7158531",
"0.71563005",
"0.7124254",
"0.7115807",
"0.7103016",
"0.7074737",
"0.70740545",
"0.7072101",
"0.70701957",
"0.706181",
"0.7054725",
"0.7040342",
"0.7028434",
"0.70089453",
"0.7004328",
"0.6983159",
"0.69731843",
"0.6972836",
"0.6968776",
"0.69640636",
"0.6959425",
"0.694339",
"0.6943049",
"0.6927933",
"0.6926486",
"0.6908135",
"0.69062215",
"0.6902429",
"0.6901394",
"0.6900219",
"0.6894464",
"0.6846837",
"0.68451816",
"0.68302584",
"0.6824443",
"0.6821173",
"0.68196374",
"0.67938006",
"0.67728245",
"0.6760063",
"0.67567813",
"0.6752929",
"0.6751987",
"0.6749934",
"0.6746074",
"0.67429465",
"0.67401975",
"0.673746",
"0.67368937",
"0.6735267",
"0.67270154",
"0.6723815",
"0.6709749",
"0.67062855",
"0.6705969",
"0.66931707",
"0.6692143",
"0.6688287",
"0.66872793",
"0.66834843",
"0.66818535",
"0.6680627",
"0.6674518",
"0.6672161",
"0.6652839",
"0.66513985",
"0.66444784",
"0.66443586",
"0.6633248"
] |
0.67390084
|
78
|
The previous node to the provided
|
Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public node getPrevious() {\n\t\t\treturn previous;\n\t\t}",
"public Node getPrevious() {\n return previous;\n }",
"public Node getPrev() {\n return null;\n }",
"public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}",
"public Node<T> previous() {\r\n return previous;\r\n }",
"public Node getPrev() {\n return prev;\n }",
"public Node getPrev()\n {\n return this.prev;\n }",
"public AStarNode getPrevious() {\n return previous;\n }",
"public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}",
"public DNode getPrev() { return prev; }",
"public Node<S> getPrev() { return prev; }",
"public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }",
"public int getPrevNode() {\n\t\treturn this.previousNode;\n\t}",
"public DoublyLinkedNode<E> getPrevious() {\n return prevNode;\n }",
"public Node<T> getPrev() {\n\t\treturn prev;\n\t}",
"public Node setPrevNode(Node node);",
"public Node<T> getPrevNode() {\n\t\treturn prevNode;\n\t}",
"public DependencyElement previous() {\n\t\treturn prev;\n\t}",
"public E previous(){\n\t\t\tE e = tail.element;\n\t\t\tcurrent = current.next;\n\t\t\treturn e;\n\t\t}",
"@Override\r\n\t\tpublic Node getPreviousSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public DoubleNode<T> getPrevious()\n {\n\n return previous;\n }",
"public T previous()\n {\n // TODO: implement this method\n return null;\n }",
"@Override\n public E previous() throws NoSuchElementException\n { \n if(hasPrevious() == false)\n {\n throw new NoSuchElementException();\n }\n idx = idx - 1;\n Node theNode = getNth(idx);\n left = left.prev;\n right = left;\n canRemove = false;\n forward = false;\n return theNode.getElement(); \n }",
"@Override\n\tpublic Node getPreviousSibling() {\n\t\treturn null;\n\t}",
"@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}",
"public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }",
"public SlideNode getPrev() {\n\t\treturn prev;\n\t}",
"Object previous();",
"public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }",
"public void prev();",
"HNode getPreviousSibling();",
"public void previous();",
"public void setPrevious(Node p) {\n previous = p;\n }",
"int getPrev(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 1);\n\t}",
"public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}",
"public Vertex getPrev() {\n return prev;\n }",
"public Vertex getPrevious(){\n return previous;\n }",
"public K prev();",
"public void prev() {\r\n\t\tif (curr == head)\r\n\t\t\treturn; // No previous element\r\n\t\tLink<E> temp = head;\r\n\t\t// March down list until we find the previous element\r\n\t\twhile (temp.next() != curr)\r\n\t\t\ttemp = temp.next();\r\n\t\tcurr = temp;\r\n\t}",
"public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}",
"private Token previous() {\n return tokens.get(current-1);\n }",
"@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }",
"public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }",
"public DListNode2 prev(){\r\n return this.prev;\r\n }",
"public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}",
"public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}",
"public void setPrevious(Node<T> previous) {\r\n this.previous = previous;\r\n }",
"@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}",
"public void setPrevious()\n {\n\tint currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex -1);\n\t\n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = lastObject;\n }",
"@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }",
"private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}",
"public void Prev();",
"public E previous() {\r\n current--;\r\n return elem[current];\r\n }",
"@Override\n\tpublic Node getPreviousChild(Node existing) {\n\t\treturn null;\n\t}",
"public void setPrevNode(int node) {\n\t\tthis.previousNode = node;\n\t}",
"public TreeNode getPreviousSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index > 0) {\r\n return parent.children.get(index - 1);\r\n }\r\n }\r\n\r\n return null;\r\n }",
"public Index previous() {\n return Index.valueOf(value - 1);\n }",
"public int previousIndex() {\r\n \treturn index - 1; \r\n }",
"public T prev() {\n cursor = ((Entry<T>) cursor).prev;\n ready = true;\n return cursor.element;\n }",
"ComponentAgent getPreviousSibling();",
"public void setPrevious(MyNode<? super E> _previous)\n\t{\n\t\tthis.previous = _previous;\n\t\t//this.previous = _previous;\n\t}",
"public AbstractPathElement<V, E> getPrevPathElement()\r\n/* */ {\r\n/* 188 */ return this.prevPathElement;\r\n/* */ }",
"public void setPrevious(DSAGraphNode<E> inPrevious)\n {\n previous = inPrevious;\n }",
"String getPrevious();",
"public void setPrev(Node<T> prev) {\n\t\tthis.prev = prev;\n\t}",
"public NodeD getSelecPrev(){\n if (this.selec == this.head){\n return this.head;\n }else{\n this.selec = this.selec.getPrev();\n return selec;\n }\n }",
"@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}",
"public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}",
"public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public int previousIndex()\n {\n return idx-1;\n }",
"public int previousIndex()\n {\n // TODO: implement this method\n return -1;\n }",
"public int getPrevious() {\n\t\treturn this.previous;\n\t}",
"public void setPrevious(DoublyLinkedNode<E> prev) {\n this.prevNode = prev;\n }",
"public void setPrev(Node prev) {\n this.prev = prev;\n }",
"K previous();",
"protected abstract D getPrevious(D d);",
"public void setPrevious(DoubleNode<T> node)\n {\n\n previous = node;\n }",
"@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }",
"public void setPrev(Node prev)\r\n\t{\r\n\t\tthis.prev = prev;\r\n\t}",
"public void setPrevNode(Node<T> prevNode) {\n\t\tthis.prevNode = prevNode;\n\t}",
"public void setPrev(Level previous) {\n\t\tthis.prev = previous;\n\t}",
"public void setPrevious(AStarNode previous) {\n this.previous = previous;\n }",
"public T previous() {\r\n\t\t// aktu == null ist dann, wenn aktu einen schritt zuvor first war;\r\n\t\tif (aktu == null) {\r\n\t\t\treturn null;\r\n\t\t} else if (first.equals(aktu)) {\r\n\t\t\t// wir sind am Ende, deswegen setzen wir aktu auf null (für die\r\n\t\t\t// Abfrage oberhalb) und geben den ersten Wert zurück;\r\n\t\t\taktu = null;\r\n\t\t\treturn (T) first.getData();\r\n\t\t} else if (first.equals(aktu.getPrevious())) {\r\n\t\t\t// überprüft, ob der Knoten vor dem aktuellen der letzte ist, dass\r\n\t\t\t// hat den Grund, dass beim letzten die Methode .getPrevios eine\r\n\t\t\t// NullPointerException wirft;\r\n\t\t\taktu = first;\r\n\t\t\treturn (T) first.getNext().getData();\r\n\t\t} else {\r\n\t\t\t// das ist der Standardfall solange der nicht beim vorletzten Knoten\r\n\t\t\t// angekommen ist.\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t\treturn (T) aktu.getNext().getData();\r\n\t\t}\r\n\r\n\t}",
"public Node getPrevNode(String hostname)\n\t{\n\t\treturn this.nodeManager.getPrevNode(hostname);\n\t}",
"public\tvoid setprevious (SNode previous) {\r\n\t\tthis.previous=previous;\r\n\t}",
"public void setPrev(SlideNode node) {\n\t\tthis.prev = node;\n\t}",
"public T previous() {\n\t\t\tif(hasPrevious()) {\n\t\t\t\tT temp = vector.elementAt(previousPosition);\n\t\t\t\tpreviousPosition++;\n\t\t\t\tnextPosition++;\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}",
"public Content getNavLinkPrevious() {\n Content li;\n if (prev != null) {\n Content prevLink = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS, prev)\n .label(prevclassLabel).strong(true));\n li = HtmlTree.LI(prevLink);\n }\n else\n li = HtmlTree.LI(prevclassLabel);\n return li;\n }",
"public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }",
"public void setPrev(DNode newPrev) { prev = newPrev; }",
"public String getBackwardNode() {\r\n\t\ttry {\r\n\t\t\treturn path.getPreviousNode(procNode);\r\n\t\t} catch (Exception e) {return null; /* In case of an error!*/}\r\n\t}",
"public IDLink<T> getPrev(){\n \treturn ppointer;\n }",
"public void Previous(int key){\n\t\tif(search(key)!=nil){\n\t\t\tNode res = getPrev(root,key,nil);\n\t\t\tif(res != nil){\n\t\t\t\tSystem.out.println(res.id + \" \" + res.count);\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"0 0\");\n\t\t\t}\n\t\t}else{\n\t\t\tint prev = findPrev(root,key);\n\t\t\tNode res = getNode(root,prev);\n\t\t\tif(res != nil){\n\t\t\t\tSystem.out.println(res.id + \" \" + res.count);\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"0 0\");\n\t\t\t}\n\t\t}\n\t}",
"public CellCoord previousRow() {\n return new CellCoord(column, row - 1);\n }",
"public Position2D getPreviousPosition()\n {\n return previousPosition;\n }",
"public E getPrevEdge()\r\n/* */ {\r\n/* 178 */ return (E)this.prevEdge;\r\n/* */ }",
"public IndexRecord getIteratorPrev() {\n iter = (iter == 0 ? -1 : iter - 1);\n return (iter == -1 ? null : data[iter]);\n }",
"protected JButton getPrevious()\n {\n return previous;\n }",
"public Node getBack(){\n return this.back;\n }",
"public void setPrevious(Vertex v){\n previous = v;\n }"
] |
[
"0.8638066",
"0.85585266",
"0.8384236",
"0.83129996",
"0.8297543",
"0.82367176",
"0.82161844",
"0.8176375",
"0.81711805",
"0.8138159",
"0.8111252",
"0.8099046",
"0.8043426",
"0.80376035",
"0.80113965",
"0.8007234",
"0.7978213",
"0.79223263",
"0.7911696",
"0.7863814",
"0.7858218",
"0.785698",
"0.7750755",
"0.7744314",
"0.7731128",
"0.7709852",
"0.77017766",
"0.76614594",
"0.76423866",
"0.76214904",
"0.7618621",
"0.7616557",
"0.7612399",
"0.7611542",
"0.76106095",
"0.7610389",
"0.758591",
"0.7567797",
"0.7554509",
"0.7547976",
"0.75473243",
"0.75414693",
"0.752216",
"0.7518968",
"0.75013196",
"0.74920774",
"0.7490559",
"0.74808705",
"0.7425815",
"0.741571",
"0.7413926",
"0.7408951",
"0.73938435",
"0.7361926",
"0.7353877",
"0.733487",
"0.7327102",
"0.7323393",
"0.73232454",
"0.7318026",
"0.73107105",
"0.73069376",
"0.72836727",
"0.72573745",
"0.71923",
"0.7192133",
"0.71890485",
"0.7186304",
"0.7159169",
"0.71465707",
"0.71404344",
"0.71225244",
"0.71037763",
"0.7100946",
"0.70953983",
"0.70900595",
"0.70788866",
"0.7045452",
"0.70346016",
"0.69793934",
"0.6972142",
"0.6967998",
"0.6962233",
"0.6933323",
"0.6930736",
"0.6917815",
"0.6914186",
"0.68981236",
"0.68944424",
"0.68809676",
"0.68771154",
"0.6876862",
"0.6873162",
"0.68697965",
"0.6869212",
"0.684668",
"0.68400484",
"0.68309504",
"0.68168414",
"0.6809912"
] |
0.7927923
|
17
|
What is the current line for the terminal screen
|
Node<UnderlyingData> getCurrentLineNode();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getCurrentLine();",
"public int getCurrentLine() {\n return buffer.lineNumber();\n }",
"private int getCurrentLineByCursor() {\n return Math.min((int)cursor.getY() / lineHeight + 1, textBuffer.getMaxLine()-1);\n }",
"public String getLine() {\r\n\t\treturn currentString;\r\n\t}",
"public String getCurrentInputString() { return line; }",
"public static int getLine() {\r\n\t\treturn rline;\r\n\t}",
"public int getLine() {\n\t\treturn line;\n\t}",
"public int getLine() {\r\n\t\treturn line;\r\n\t}",
"public int getLine() {\r\n return line;\r\n }",
"public int getLine() {\n return line;\n }",
"public String getLine() {\n\t\treturn line.toString();\n\t}",
"public int getLine() {\n return line;\n }",
"public String getCurrentScreenDisplay();",
"public CommandLine getLine() {\n return line;\n }",
"public int cursorLineNum() {\n return cursor;\n }",
"public String getLine() {\n return this.line;\n }",
"public String getLine();",
"protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }",
"public int line() {\r\n return line;\r\n }",
"public int getLine() {\n return lineNum;\n }",
"public final int getLine() {\n/* 377 */ return this.bufline[this.bufpos];\n/* */ }",
"public int getLine();",
"public int getLine();",
"public int getLine();",
"String getLine();",
"public String getLine ()\n {\n return line;\n }",
"public int getCursorPosition();",
"public int getCurrentLineNumber () {\n if (SwingUtilities.isEventDispatchThread()) {\n return getCurrentLineNumber_();\n } else {\n final int[] ln = new int[1];\n try {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n ln[0] = getCurrentLineNumber_();\n }\n });\n } catch (InvocationTargetException ex) {\n ErrorManager.getDefault().notify(ex.getTargetException());\n } catch (InterruptedException ex) {\n // interrupted, ignored.\n }\n return ln[0];\n }\n }",
"public int getLineNum() {\n\t\treturn (parser == null) ? 0 : parser.getCurrentLocation().getLineNr();\n\t}",
"public int getLinePosition() {\n return linePosition;\n }",
"public int getLinePos() {\n return linePos;\n }",
"int getLine();",
"int getCursorPosition();",
"public String getLine() {\n \treturn this.lineColor;\n }",
"public final int getLine()\n\t{\n\t\treturn address >>> 8 & 0x0F;\n\t}",
"public String getline() {\n\t\treturn _line;\n\t}",
"public int getLine() { \n\t// * JFlex starts in zero\n\treturn yyline+1;\n}",
"public int getLine() { return cl; }",
"String getLine ();",
"public CursorPosition getCurrentCursorPosition(){\n return XSelection.getCurrentCursorPosition(this);\n }",
"public int getLine() {return _line;}",
"public int getLineNum() {\n\t\treturn lineNum;\n\t}",
"public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }",
"public static CursorPos cursorPos() {\n\n System.out.print(CSI + \"6n\");\n try {\n System.in.skip(2);\n int read = -1;\n StringBuilder row = new StringBuilder();\n while ((read = System.in.read()) != ';') {\n row.append((char) read);\n }\n StringBuilder col = new StringBuilder();\n while ((read = System.in.read()) != 'R') {\n col.append((char) read);\n }\n return new CursorPos(row.length() > 0 ? Integer.parseInt(row.toString()) : 1,\n col.length() > 0 ? Integer.parseInt(col.toString()) : 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public VCFLine getCurrentValidLine () {\n\t\tcurrentLine = reader.getCurrentLine();\n\t\tpassValidation(currentLine);\n\t\treturn currentLine;\n\t}",
"@Override\r\n public CHScreen getScreen() {\n return curScreen;\r\n }",
"public int getLastVisibleLine(){\n int l = Math.min((getOffsetY() + getHeight()) / getLineHeight(), getLineCount() - 1);\n if(l < 0){\n return 0;\n }else{\n return l;\n }\n }",
"public int lineNum() {\n return myLineNum;\n }",
"public String getScreen() {\n\t\treturn screen;\n\t}",
"private int terminalLocation(){\n int answer = 0;\n for(int ii = 0; ii < (currentIm.getRows() * currentIm.getCols()); ii = ii + 1){\n if(126 == getHidden(ii)){\n return answer = ii;\n }\n }\n \n return answer;\n }",
"public abstract TnScreen getCurrentScreen();",
"public int getSelectedLine() {\n\t\treturn selectedLine;\n\t}",
"public String getLine() {\r\n\t\treturn content;\r\n\t}",
"public int getLineToStart() {\r\n\t\treturn this.lineToStart;\r\n\t}",
"public int getLineTop(int line){\n return getLineHeight() * line;\n }",
"private String getCommandWithPrompt() {\n print(\"dbg<\" + pc + getLabel(pc) + \">\");\n return nextLine();\n }",
"public int getPositionWithinLine() {\n\t\treturn positionWithinLine;\n\t}",
"private String nextLine() {\n if (console) {\n return con.nextLine();\n }\n return scan.nextLine();\n\n }",
"public String getLine()\n\t{\n\t\ttry\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn line;\n\t}",
"public int getFirstVisibleLine(){\n int j = Math.min(getOffsetY() / getLineHeight(), getLineCount() - 1);\n if(j < 0){\n return 0;\n }else{\n return j;\n }\n }",
"public Line getLine()\n {\n return line;\n }",
"StatusLine getStatusLine();",
"private String getLineAt(int linenum) {\n\t\ttry {\n\t\t\tint start = mainTextArea.getLineStartOffset(linenum);\n\t\t\tint end = mainTextArea.getLineEndOffset(linenum);\n\t\t\treturn mainTextArea.getText(start, end - start);\n\t\t} catch (BadLocationException e) {\n\t\t\treturn (\"\");\n\t\t}\n\t}",
"@Override\n public Line getLine() {\n return line;\n }",
"public String getStitchingLine() {\n return (String)getAttributeInternal(STITCHINGLINE);\n }",
"public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }",
"private int getLastLine() {\n return lastSourcePosition.line;\n }",
"public String getLineCode() {\n return (String)getAttributeInternal(LINECODE);\n }",
"private int getNextLine() {\n return peekToken().location.start.line;\n }",
"public String getCommand() {\n\t\tString[] lines = commandLine.getText().split(\"\\n\");\n\t\treturn lines[commandLine.getLineCount() - 2];\n\t}",
"public int getLinePosition(int line) {\n\t\treturn linePositions.get(line);\n\t}",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"String getLine (int line);",
"public int getStartLine() {\r\n \r\n return startLine;\r\n }",
"public int getCurIdx() {\n\t\treturn dDisplay.getCurIdx();\n\t}",
"protected Screen getCurrentScreen() {\n return this.currentScreen;\n }",
"public String getSourceLine (int line);",
"private int getSelectedLine(HttpServletRequest request) {\n int selectedLine = -1;\n String parameterName = (String) request.getAttribute(KRADConstants.METHOD_TO_CALL_ATTRIBUTE);\n if (StringUtils.isNotBlank(parameterName)) {\n String lineNumber = StringUtils.substringBetween(parameterName, \".line\", \".\");\n selectedLine = Integer.parseInt(lineNumber);\n }\n\n return selectedLine;\n }",
"public int getLineNumber() {\n return line;\n }",
"void onLine(Terminal terminal, String line);",
"public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }",
"public String getCurrentEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\treturn name+ticket;\r\n\t\t}",
"public String getStatusLine() {\r\n\t\t\r\n\t\treturn statusLine;\r\n\t\r\n\t}",
"public int getStartLine() {\r\n return this.startLine;\r\n }",
"public static String readNextLine() {\n return sc.nextLine();\n }",
"public int getPointLineOnScreen(float y){\n return Math.min(getPointLine(y + getOffsetY()),getLineCount() - 1);\n }",
"public Prompt getCurrent() {\n\t\t\treturn current;\n\t\t}",
"public String getUserInput() {\n\t\tString input;\n\t\tinput = this.console.next();\n\t\treturn input;\n\t}",
"public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }",
"public abstract int getLine();",
"public abstract int getLine();",
"public String ReadErrorLine() {\n\treturn childStderr.Readline();\n }",
"abstract public String readLine() throws TerminalException;",
"public int getLineNr() {\n return this.lineNr;\n }",
"public String readCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }",
"public StatusLine getStatusLine() {\n return statusLine;\n }",
"public String getLineName() {\n return lineName;\n }",
"public int getLineNumber() {\n return line;\n }",
"private static void showCurrentBreakPoints() {\n System.out.print(\"Current BreakPoints: \");\n for (int i=1;i<=dvm.getSourceCodeLength();i++)\n if (dvm.isLineABreakPoint(i)) System.out.print(i + \" \");\n System.out.print(\"\\n\");\n }",
"public abstract boolean terminal();",
"public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}"
] |
[
"0.7605841",
"0.702621",
"0.70090437",
"0.70086426",
"0.6931742",
"0.6763188",
"0.6655331",
"0.66382504",
"0.65438014",
"0.65373665",
"0.65101886",
"0.6495537",
"0.64799446",
"0.647052",
"0.64658964",
"0.64422816",
"0.64420205",
"0.63960576",
"0.6377025",
"0.63536614",
"0.63122714",
"0.6281305",
"0.6281305",
"0.6281305",
"0.627362",
"0.6250859",
"0.62341875",
"0.62186563",
"0.61637014",
"0.61389947",
"0.6129189",
"0.6108423",
"0.61023045",
"0.6090193",
"0.6088259",
"0.6084809",
"0.60597837",
"0.6024753",
"0.60122997",
"0.6007448",
"0.60049313",
"0.5991603",
"0.5970721",
"0.595483",
"0.5923646",
"0.5916307",
"0.5868132",
"0.58588266",
"0.58526564",
"0.5838838",
"0.58382773",
"0.58327895",
"0.5828691",
"0.5805298",
"0.5801588",
"0.5787863",
"0.5774228",
"0.5769484",
"0.5758047",
"0.57534",
"0.57520574",
"0.5729626",
"0.57184166",
"0.5701965",
"0.5653215",
"0.5652717",
"0.5651508",
"0.56269926",
"0.5621508",
"0.5616022",
"0.5610825",
"0.5610503",
"0.5601806",
"0.558652",
"0.55837655",
"0.55826026",
"0.5579745",
"0.55742544",
"0.5572221",
"0.5563396",
"0.555852",
"0.55571735",
"0.5552894",
"0.55485064",
"0.5544798",
"0.5516244",
"0.550854",
"0.5499737",
"0.5496796",
"0.5495882",
"0.5495882",
"0.549461",
"0.5491878",
"0.5490613",
"0.5489792",
"0.5489317",
"0.54880667",
"0.54851925",
"0.5481919",
"0.547519",
"0.5471733"
] |
0.0
|
-1
|
Set the new current line for this terminal screen
|
void setCurrentLineNode(Node<UnderlyingData> currentLineNode);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void markLine() {\n lineMark = cursor;\n }",
"public void newLine() {\n\t\tcommandLine.append(\"\\n\");\n\t}",
"public void newChatLine(String line) {\n\t\tSystem.out.println(line);\n\t}",
"public void appendLine() {\n\t\t\tmBuilder.append(NewLineChar);\n\t\t\tlastAppendNewLine = true;\n\t\t}",
"public void newLine()\n {\n rst += NEW_LINE;\n }",
"public void cosoleText(String line)\n\t{\n\t\tconsole.setText(line);\n\t}",
"String getCurrentLine();",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"void onLine(Terminal terminal, String line);",
"public void setLine(int line);",
"public void newLine() {\n text.append(\"\\n\");\n }",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"public void setLine(String line) {\n this.line = line;\n //System.out.println(this.line + \" \" + line);\n }",
"public void flushCurrentLine()\n {\n line = null;\n }",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public void setLine (int Line);",
"public void setLine ( String value )\n {\n line = value;\n }",
"public void showLine() {\n System.out.print(LINE_SEPARATOR);\n }",
"public void setPrompt() {\n\t\tcommandLine.append(\"$ \");\n\t}",
"public void display(String line) {\r\n\t\tif (console.size() == 50) {\r\n\t\t\tconsole.remove(0);\r\n\t\t}\r\n\t\tconsole.addElement(line);\r\n\t}",
"public void linefeed() {\r\n\t\tconsole.print(LINESEP);\r\n\t}",
"public void setTextline(boolean textline) {\n this.textline = textline;\n }",
"public void onOutputLineAdded(Window window, OutputLine line) {\n\t\t\t\n\t\t\tlinesLayout.addLine(line);\n\t\t}",
"public String getLine() {\r\n\t\treturn currentString;\r\n\t}",
"public void writeLineToConsole(String text) {\n writeToConsole(text + \"\\n\\r\");\n }",
"public void jumpToLine(int line) {\n setSelection(line,0);\n }",
"public String getCurrentInputString() { return line; }",
"public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }",
"public void setLinePosition(int pos) {\n this.linePosition = pos;\n }",
"public void setCurrent(Prompt current) {\n\t\t\tthis.current = current;\n\t\t}",
"public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }",
"public void setLinePos(int linePos) {\n this.linePos = linePos;\n }",
"public static void printUpdateAnswerLine(FlashCard flashCard) {\n // No offset since printing from start of line.\n System.out.println(System.lineSeparator() + flashCard.toString(false, 0));\n System.out.println(NEW_ANSWER_LINE);\n printPrompt();\n }",
"public void newLine()\n\t{\n\t\toutput.append(\"\\n\");\n\t}",
"private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }",
"public void line(String line) {\n\t\t}",
"void resetLine() {\n eof = (cursor == lineMark);\n cursor = lineMark;\n }",
"public void setline(String line) {\n\t\t_line = line;\n\t}",
"public abstract void onLineMode ();",
"@Override\n public void update() {\n CommandNodeGameState gs = (CommandNodeGameState) state;\n String acc = String.valueOf(gs.getAcc());\n accView.setText(acc);\n String bak = String.valueOf(gs.getBak());\n bakView.setText(bak);\n String last = String.valueOf(gs.getLast());\n lastView.setText(last);\n String mode = String.valueOf(gs.getMode());\n modeView.setText(mode);\n String idle = String.valueOf(0);\n idleView.setText(idle);\n\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < gs.lineCount(); i++) {\n builder.append(gs.getLine(i).toString());\n builder.append(\"\\n\");\n }\n textArea.setText(builder.toString());\n\n if (state.isActive()) {\n highlightedLine = gs.getSelectedLine();\n } else {\n highlightedLine = null;\n }\n invalidate();\n }",
"private void updateCursor() {\n cursor.setHeight(lineHeight);\n }",
"public void newLogFileLine(String line) {\n System.out.println(line);\n }",
"protected void beginEnterText()\n\t{\n\t\tdisplayingCaret = true;\n\t\ttext.appendText(\"|\");\n\t\tcaretBlinkTime = 0;\n\t\tclearCharBuffer = true;\n\t}",
"void showNewLine(String lineNumber, String directionId);",
"private void changeCurrentValue()\n {\n String theText = textBox.toString();\n\n // find the first newline\n int index = theText.indexOf(\"\\n\");\n assert index != -1;\n\n // insert new stuff\n StringBuilder newText = new StringBuilder();\n newText.append(currentTag);\n newText.append(\": \");\n newText.append(currentValue);\n newText.append(\"\\n\");\n\n textBox.replaceTextRange(0, index, newText.toString());\n }",
"private void moveToNewLocation() {\r\n System.out.println(\"\\nThis is the move to a new location option\");\r\n }",
"public void setLineMode (boolean lineMode)\r\n\t{\r\n\t\tm_lineMode = lineMode;\r\n\t}",
"public void insertAtCurrentPos(String part)\n {\n StringBuffer newLine = new StringBuffer( this.getLine() );\n\n newLine.insert( this.getPos(), part + ' ' );\n this.line = newLine.toString();\n }",
"public void goToLine(int line) {\n // Humans number lines from 1, the rest of PTextArea from 0.\n --line;\n final int start = getLineStartOffset(line);\n final int end = getLineEndOffsetBeforeTerminator(line);\n centerOnNewSelection(start, end);\n }",
"void setNewFrameText(Motion m);",
"void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }",
"@Override\n\t\t\tpublic void update(Observable o, Object arg) {\n\t\t\t\tupdateCurrentLineForeground(Properties.getDefaultProperties().getOptinalColorProperty(currentLineFontForegroundKey, \n\t\t\t\t\t\t\t\t\t\t\tColor.black));\n\t\t\t}",
"public void DoGoToLine(int spot) {\n\t\tint col = spot % 10;\n\t\txDestination = 175 + (col * 25);\n\t\tyDestination = yEnterBus;\n\t\tcommand = Command.GetInLine;\n\t}",
"public void goNextLine () throws IOException {\n\t\treader.goNextLine();\n\t\tcurrentLine = reader.getCurrentLine();\n\t}",
"private void drawCursor(final Terminal term, int prevOption, int curOption)\n {\n // create a blank string and use it to clear where the cursor used to be\n String blank = \"\";\n for (int i = 0; i < cursor.length(); i++)\n {\n blank += SPACE;\n }\n LanternaUtil.termPrint(term, blank, firstColumn, firstRow + prevOption);\n LanternaUtil.termPrint(term, cursor, firstColumn, firstRow + curOption);\n term.flush();\n }",
"private void newline() {}",
"private void lineJumpHelper(int curX) {\n int accX = 0;\n while (true) {\n if (textBuffer.isEnd()) {\n textBuffer.decreCurrent(false);\n return;\n }\n if (textBuffer.currentPos_current().getText().equals(\"\\n\")) {\n textBuffer.decreCurrent(false);\n return;\n }\n Text text = textBuffer.currentPos_current();\n accX += round(text.getLayoutBounds().getWidth());\n if (accX > curX) {\n textBuffer.decreCurrent(false);\n return;\n }\n textBuffer.increCurrent(false);\n }\n }",
"public void drawLine() {\n for(int i=0; i < nCols; i++) {\n System.out.print(\"----\");\n }\n System.out.println(\"\");\n }",
"public void newline(TermuxSessionBridgeEnd bridgeEnd) {\n String command = inputParser.get(bridgeEnd);\n attemptTuiCommand(bridgeEnd, command);\n }",
"public void setLineTime( float newLineTime )\n\t{\n\t\tlineTime = newLineTime;\n\t}",
"public static void printUpdateQuestionLine(FlashCard flashCard) {\n // No offset since printing from start of line.\n System.out.println(flashCard.toString(true, 0));\n System.out.println(NEW_QUESTION_LINE);\n printPrompt();\n }",
"public void setLineColor(ColorRGB lineColor) {\n this.lineColor = lineColor;\n currentPath = new Path(new MoveTo(myCursor.getPosition().getX(), myCursor.getPosition().getY()));\n currentPath.setStroke(Color.rgb(lineColor.getRed(), lineColor.getGreen(), lineColor.getBlue()));\n group.getChildren().add(currentPath);\n\n }",
"void showsame() {\n\t\tint count;\n\t\tprintstatus = idle;\n\t\tif (newinfo.other[printnewline] != printoldline) {\n\t\t\tSystem.err.println(\"BUG IN LINE REFERENCING\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcount = blocklen[printoldline];\n\t\tprintoldline += count;\n\t\tprintnewline += count;\n\t}",
"private void cmdMultiLine() {\n fMultiLineMode = true;\n }",
"public void writeLine(String theString, int color)\r\n\t{\r\n\t\t/*\r\n\t\t * 0 = system! 1 = User Input 2 = Socket Input 3 = Other\r\n\t\t */\r\n\t\tStyleContext context = new StyleContext();\r\n\t\tstyle = context.getStyle(StyleContext.DEFAULT_STYLE);\r\n\t\tStyleConstants.setFontSize(style, 14);\r\n\t\tStyleConstants.setSpaceAbove(style, 4);\r\n\t\tStyleConstants.setSpaceBelow(style, 4);\r\n\r\n\t\tswitch (color)\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\tStyleConstants.setForeground(style, Color.GRAY);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLACK);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLUE);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tStyleConstants.setForeground(style, Color.RED);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ttheString = theString + \"\\n\";\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tdoc.insertString(doc.getLength(), theString, style);\r\n\r\n\t\t}\r\n\t\tcatch (BadLocationException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// scroll to the bottom\r\n\t\ttxtDisplayArea.setCaretPosition(txtDisplayArea.getDocument()\r\n\t\t\t\t.getLength());\r\n\r\n\t}",
"public void endLine() {\n if (currentLine != null) {\n lines.add(currentLine);\n currentLine = null;\n }\n }",
"public void advance() {\r\n this.command = in.nextLine();\r\n }",
"public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }",
"public void setLine(int line, String value) {\n VirtualTeam team = getOrCreateTeam(line);\n String old = team.getCurrentPlayer();\n\n if (old != null && created)\n getPlayer().sendPacket(removeLine(old));\n\n team.setValue(value);\n sendLine(line);\n }",
"public void setNowLineColor(int nowLineColor) {\n config.nowLineColor = nowLineColor;\n invalidate();\n }",
"public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }",
"public void setShowNowLine(boolean showNowLine) {\n config.showNowLine = showNowLine;\n invalidate();\n }",
"public abstract void newLine();",
"public void setCurrentScreen(Screen newScreen) {\n\t\t// Remove the old screen.\n\t\tif (screen != null) {\n\t\t\tscreen.dispose();\n\t\t}\n\n\t\tscreen = newScreen;\n\t\t// Run the new screen.\n\t\t// _Screen.pack();\n\t\tscreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tscreen.setup();\n\t\tscreen.setVisible(true);\n\t}",
"public void updateScreen()\n {\n field_50064_a.updateCursorCounter();\n }",
"public void markNewLine() throws IOException {\n\t\tout.write(\"\\n\");\n\t\tout.flush();\n\t}",
"public int getCurrentLine() {\n return buffer.lineNumber();\n }",
"public void setMorelinesSymbol(Character symbol);",
"public void updateScreen() {\n/* 25 */ this.ipEdit.updateCursorCounter();\n/* */ }",
"private void lineCheck(int linesToAdd) {\n\n\t\tTermio terminal = new Termio();\n\n\t\tif (lineCount >= maxLinesDisplayed) {\n\n\t\t\tlineCount = 0;\n\t\t\tSystem.out.print(\"\\n*** Press Enter To Continue ***\");\n\t\t\tterminal.keyboardReadChar();\n\n\t\t} else {\n\n\t\t\tlineCount += linesToAdd;\n\n\t\t} // if\n\n\t}",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"Line\");\n\t}",
"public void updateCurrent(double newCurrent) {\r\n\t\toutString = \"C\" + newCurrent + \"\\n\";\r\n\t\tmyPort.write(outString);\r\n\t\tSystem.out.println(outString);\r\n\t}",
"public String getNewLine() {\n return newLine;\n }",
"private void printConsole(String text) {\n\t\tMessage msg = getHandler().obtainMessage(MESSAGE_CONSOLE_CHANGED);\n\t\tmsg.obj = \"\\n\" + text ;\n\t\tmsg.sendToTarget();\t\t\n\t}",
"private void addLine (String line) {\n writer.write (line);\n writer.newLine();\n // blockOut.append (line);\n // blockOut.append (GlobalConstants.LINE_FEED);\n }",
"public void input_entered() {\n\t\t_last_column = 0;\n\t\t_last_line = 0;\n\t\t_last_printed = '\\n';\n\t}",
"@Override\n public Line getLine() {\n return line;\n }",
"private void drawCurrentLineBackground(Canvas canvas, int color){\n if(mCursor.isSelected()) {\n return;\n }\n int curr = mCursor.getLeftLine();\n drawLineBackground(canvas,color,curr);\n }",
"void putLine(String line);",
"private void appendToPane(String line, boolean comment) {\n\n Color textColor;\n if (comment) {\n textColor = theme.getDisabledTextColor();\n } else {\n textColor = theme.getForegroundColor();\n }\n StyleContext styleContext = StyleContext.getDefaultStyleContext();\n AttributeSet attributeSet = styleContext.addAttribute(SimpleAttributeSet.EMPTY,\n StyleConstants.Foreground, textColor);\n\n int length = queryTextPane.getDocument().getLength();\n if (length == queryTextPane.getCaretPosition()) {\n queryTextPane.setCharacterAttributes(attributeSet, false);\n queryTextPane.replaceSelection(line);\n } else {\n queryTextPane.setCaretPosition(length);\n queryTextPane.setCharacterAttributes(attributeSet, false);\n queryTextPane.replaceSelection(line);\n }\n }",
"public void console(String message){\n\t\tactivity.append(message + \"\\n\");\n\t\tactivity.selectAll();\n\t}",
"public void ChangeScreen(CDasherScreen NewScreen) {\r\n\t\tm_Screen = NewScreen;\r\n\t}",
"private void consoleAppend(String string){\r\n sbCommandHistory.append(string);\r\n sbCommandHistory.append(\"\\n\");\r\n }",
"public void setNowLineDotColor(int nowLineDotColor) {\n config.nowLineDotColor = nowLineDotColor;\n invalidate();\n }",
"public String prompt(String newPrompt, boolean newLine)\n\t{\n\t\ttempPrompt = newPrompt;\n\t\tif (newLine)\n\t\t\tsendln(tempPrompt);\n\t\telse\n\t\t\tsend(tempPrompt);\n\t\tString commandLine = read();\n\t\ttempPrompt = \"\";\n\t\treturn commandLine;\n\t}",
"public void setCurrent(String sourcePath, int lineNumber){ // debugger line numbers start at 1...\n\t\tif (lineNumber>0 && sourcePath!=null){\n\t\t\tVector<LineBounds> v=this.lineBounds.get(sourcePath);\n\t\t\tif(v!=null){\n\t\t\t\tfinal LineBounds lb=v.get(lineNumber-1); // src line numbers start at 1, but vectors are like array, start at 0...\n\t\t\t\tif (lb!=null){\n\t\t\t\t\tif (this.curLine!=null){\n\t\t\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\t\t}\n\t\t\t\t\tapplyAttributeSet(lb, currentLineSet);\n\t\t\t\t\t// ensure visibility...\n\t\t\t\t\t// from: http://www.java2s.com/Code/Java/Swing-JFC/AppendingTextPane.htm\n\t\t\t\t\t// The OVERALL protection with invokeLater is mine (LA) and seems very necessary !!\n\t\t\t\t\t SwingUtilities.invokeLater( new Runnable() {\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\tfinal Rectangle r;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tr = textPane.modelToView(lb.start);\n\t\t\t\t\t\t\t\t if (r != null) { // may be null even if no exception has been raised.\n\t\t\t\t\t\t\t\t\t textPane.scrollRectToVisible(r);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t // this.textPane.scrollRectToVisible(r);\n\t\t\t\t\t\t\t} catch (Throwable any) {\n\t\t\t\t\t\t\t\tLogger.getLogger(\"\").logp(Level.WARNING, this.getClass().getName(), \n\t\t\t\t\t\t\t\t\t\t\"setCurrent\", \"modelToView failed !\", any);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t });\t\t\t\n\t\t\t\t\tthis.curLine=lb;\n\t\t\t\t}else{\n\t\t\t\t\t// line not found in file !\n\t\t\t\t\tLogger.getLogger(\"\").logp(Level.SEVERE, this.getClass().getName(), \n\t\t\t\t\t\t\t\"setCurrent\", lineNumber+\" out of range in \"+sourcePath);\n\t\t\t\t\t// TODO: what do we do ?\n\t\t\t\t\t// no more Highlight...\n\t\t\t\t\tif (this.curLine!=null){\n\t\t\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\t\t\tthis.curLine=null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tLogger.getLogger(\"\").logp(Level.SEVERE, this.getClass().getName(), \n\t\t\t\t\t\t\"setCurrent\", sourcePath+\" not loaded in this SourceFrame\");\n\t\t\t}\n\t\t}else{\n\t\t\t// no more Highlight\n\t\t\tif (this.curLine!=null){\n\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\tthis.curLine=null;\n\t\t\t}\n\t\t}\n\t\t// TODO: clean. System.out.println(vScrollbar.getValue()+\" \"+vScrollbar.getMinimum()+\" \"+vScrollbar.getMaximum());\n\t}",
"void setEditFrameText(Motion m);",
"public void setCursorPositionColor(Color color)\n {\n this.jStatusBarColor.setBackground(color);\n this.jStatusBarColor.setText(\"RGB:\"+color.getRed()+\",\"+color.getGreen()+\",\"+color.getBlue());\n }",
"private void updateLineHeight() {\n Text text = new Text(\"AM\");\n text.setFont(new Font(fontType, fontSize));\n lineHeight = round(text.getLayoutBounds().getHeight());\n }",
"void setLineNumber(int lineNumber) {}"
] |
[
"0.65165734",
"0.6505872",
"0.6433536",
"0.63895285",
"0.623037",
"0.62276137",
"0.6201761",
"0.61806107",
"0.6162649",
"0.6133479",
"0.6105823",
"0.61018455",
"0.6096705",
"0.60734373",
"0.60710424",
"0.6069249",
"0.6038613",
"0.6029618",
"0.59964925",
"0.59774935",
"0.5915502",
"0.58825195",
"0.5868808",
"0.57979524",
"0.5785516",
"0.57824445",
"0.57485014",
"0.5730915",
"0.5722598",
"0.5702264",
"0.56992775",
"0.56992763",
"0.569275",
"0.5685352",
"0.5657721",
"0.5643532",
"0.56108034",
"0.5604588",
"0.55929995",
"0.55464095",
"0.55438983",
"0.55422795",
"0.55422014",
"0.5535221",
"0.5533518",
"0.55316067",
"0.5496603",
"0.5495676",
"0.54855293",
"0.5474723",
"0.5465312",
"0.5456862",
"0.5453884",
"0.5447521",
"0.54419565",
"0.54250085",
"0.54206455",
"0.53867704",
"0.5381669",
"0.5374412",
"0.5371798",
"0.53587323",
"0.5339263",
"0.53260624",
"0.53242356",
"0.5323414",
"0.5313447",
"0.5308154",
"0.5304553",
"0.530382",
"0.5303237",
"0.52951944",
"0.5289232",
"0.5287141",
"0.52826184",
"0.52675176",
"0.52664745",
"0.52551144",
"0.5253349",
"0.5249027",
"0.5246592",
"0.5232878",
"0.52084404",
"0.5207098",
"0.52061546",
"0.5202982",
"0.5200748",
"0.5200514",
"0.5179697",
"0.5175216",
"0.51679856",
"0.5166138",
"0.51514107",
"0.5145898",
"0.51446736",
"0.51371616",
"0.5128738",
"0.512752",
"0.51253784",
"0.5124594"
] |
0.5847943
|
23
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.