query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Fetch all students in database.
@GetMapping("/staff") public List<Staff> getStuedents() { return staffService.getStaffs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}", "@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "List<Student> getAll() {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t// hibernate.cfg.xml\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// session = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = null;\n\t\ttry {\n\t\t\ttx = session.beginTransaction();\n\t\t\tList data = session.createQuery(\"FROM Student\").list();\n\t\t\tfor (Iterator iterator = data.iterator(); iterator.hasNext();) {\n\t\t\t\tStudent st = (Student) iterator.next();\n\t\t\t\tSystem.out.print(\"Student ID: \" + st.getStudentId());\n\t\t\t\tSystem.out.print(\" Last Name: \" + st.getName());\n\t\t\t\tSystem.out.println(\" Address: \" + st.getAddress());\n\t\t\t}\n\t\t\ttx.commit();\n\t\t\treturn data;\n\t\t} catch (HibernateException e) {\n\t\t\tif (tx != null)\n\t\t\t\ttx.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\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}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}", "public ArrayList<Student> selectAllStudents() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n ArrayList<Student> studentList = new ArrayList<>();\n try {\n Class.forName(Tools.MYSQL_JDBC_DRIVER);\n\n connection = DriverManager.getConnection(Tools.DB_URL, Tools.USERNAME, Tools.PASSWORD);\n\n statement = connection.createStatement();\n\n String query = \"SELECT * FROM STUDENTS;\";\n\n resultSet = statement.executeQuery(query);\n\n while (resultSet.next()) {\n String id = resultSet.getString(\"STUDENT_ID\");\n String lastName = resultSet.getString(\"LAST_NAME\");\n String firstName = resultSet.getString(\"FIRST_NAME\");\n String dob = resultSet.getString(\"DATE_OF_BIRTH\");\n float fees = resultSet.getFloat(\"TUITION_FEES\");\n Student student = new Student(id, firstName, lastName, dob, fees);\n\n studentList.add(student);\n\n }\n\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } finally {\n if (resultSet != null) {\n try {\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n if (statement != null) {\n try {\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return studentList;\n }", "List<Student> getAllStudents();", "public ArrayList<Student> getStudents() {\n\n ArrayList<Student> students = new ArrayList<Student>();\n String query = \"SELECT * FROM student\";\n try{\n result = statement.executeQuery(query);\n while(result.next()) {\n\n String id = Integer.toString(result.getInt(\"student_id\"));\n String firstName = result.getString(\"student_first_name\");\n String lastName = result.getString(\"student_last_name\");\n String degree = result.getString(\"degree\");\n String yearOfStudy = result.getString(\"year_of_study\");\n String outcome = result.getString(\"outcome\");\n students.add(new Student(id, firstName, lastName, degree, yearOfStudy, outcome));\n\n }\n }\n catch (SQLException e){\n\n }\n\n return students;\n }", "public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }", "@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}", "@Override\r\n\tpublic List<Student> getAllStudents() {\n\t\treturn studentRepository.findAll();\r\n\t}", "public List <Student> getAllStudents();", "public static ArrayList<Student> getAllStudents() throws SQLException {\n\t\t\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\t\t\t\r\n\t\t\t\tConnection connection = SQLUtil.getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\t\t\t\t\r\n\t\t\t\tString sql = \"SELECT * FROM students\";\r\n\t\t\t\t\r\n\t\t\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\t\t\t\r\n\t\t\t\tresultSet.first();\r\n\t\t\t\t\r\n\t\t\t\twhile (!resultSet.isAfterLast()) {\r\n\t\t\t\t\tStudent student = new Student(resultSet.getString(\"firstname\"), resultSet.getString(\"lastname\"), resultSet.getString(\"registration_number\"));\r\n\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t\tresultSet.next();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn students;\r\n\t\t\r\n\t}", "@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}", "@Query(\"from Student\")\n\tList<Student> findAllStudents();", "@Override\n\tpublic Iterator<Student> selectAll() {\n\t\tString sql=\"SELECT a.id,a.num,a.name,a.email,a.phone,a.degree,a.project,a.school,b.name,a.is_cap from tc_student as a,tc_school as b where a.school=b.id\";\n\t\tArrayList<Student> arr=new ArrayList<Student>();\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tStudent stu=new Student();\n\t\t\t\tstu.setId(rs.getInt(1));\n\t\t\t\tstu.setNum(rs.getString(2));\n\t\t\t\tstu.setName(rs.getString(3));\n\t\t\t\tstu.setEmail(rs.getString(4));\n\t\t\t\tstu.setPhone(rs.getString(5));\n\t\t\t\tstu.setDegree(rs.getShort(6));\n\t\t\t\tstu.setProject(rs.getInt(7));\n\t\t\t\tstu.setSchool(rs.getInt(8));\n\t\t\t\tstu.setSchoolstring(rs.getString(9));\n\t\t\t\tstu.setIs_cap(rs.getInt(10));\n\t\t\t\tstu.setDegreestring(degreemap[stu.getDegree()]);\n\t\t\t\tarr.add(stu);\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\treturn arr.iterator();\n\t}", "@Override\n\tpublic List<Student> getAllStudents() {\n\t\tList<Student> students = new ArrayList<Student>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t//select CAST(gpa as DECIMAL(3,2)) AS gpa from student;\n\t\t\t//ResultSet rs = stmt.executeQuery(\"select * from student\");\n\t\t\tResultSet rs = stmt.executeQuery(\"select ID, Firstname, Lastname, Program, CAST(gpa as DECIMAL(3,2)) AS gpa from student\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tStudent stu = new Student();\n\t\t\t\tstu.setStudentid(rs.getInt(\"ID\"));\n\t\t\t\tstu.setFirstname(rs.getString(\"Firstname\"));\n\t\t\t\tstu.setLastname(rs.getString(\"Lastname\"));\n\t\t\t\tstu.setProgram(rs.getString(\"Program\"));\n\t\t\t\tstu.setGpa(rs.getDouble(\"GPA\"));\n\n\t\t\t\tstudents.add(stu);\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn students;\n\t}", "public List<Student> getAllStudentData() {\r\n\t\tList<Student> list = new ArrayList<Student>();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tStudent stud = new Student();\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t\tlist.add(stud);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "@Override\n\t public List<Student> getAllStudent(BigInteger stdId){\n\t \t\n\t\t \n\t \treturn (List<Student>) studentrepo.findAll(); \t\n\t }", "@GetMapping(path = \"/std/all\")\n\tpublic @ResponseBody Iterable<student> getAllStsudents() {\n\t\treturn studentRepo.findAll();\n\n\t}", "public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}", "public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }", "public List<User> getAllStudent() {\n\t\t return userDao.getAllUsers();\r\n\t }", "public ArrayList<Student> getAllStudents() throws SQLException {\r\n\t\tArrayList<Student> studentList = new ArrayList<Student>();\r\n\t\tConnection dbConnection = null;\r\n\r\n\t\ttry {\r\n\t\t\tdbConnection = openConnection();\r\n\r\n\t\t\tString sqlText = \"SELECT id, firstname, lastname, streetaddress, postcode, postoffice \"\r\n\t\t\t\t\t+ \"FROM Student ORDER BY id DESC\";\r\n\r\n\t\t\tPreparedStatement preparedStatement = dbConnection.prepareStatement(sqlText);\r\n\r\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\r\n\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tint id = resultSet.getInt(\"id\");\r\n\t\t\t\tString firstname = resultSet.getString(\"firstname\");\r\n\t\t\t\tString lastname = resultSet.getString(\"lastname\");\r\n\t\t\t\tString streetaddress = resultSet.getString(\"streetaddress\");\r\n\t\t\t\tString postcode = resultSet.getString(\"postcode\");\r\n\t\t\t\tString postoffice = resultSet.getString(\"postoffice\");\r\n\r\n\t\t\t\tstudentList.add(new Student(id, firstname, lastname, streetaddress, postcode, postoffice));\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException sqle) {\r\n\t\t\tthrow sqle; // Let the caller decide what to do with the exception\r\n\r\n\t\t} finally {\r\n\t\t\tcloseConnection(dbConnection);\r\n\t\t}\r\n\t\treturn studentList;\r\n\t}", "public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}", "public ArrayList<Student> getAllStudents()\n {\n Cursor cursor = sqlServices.getData(USER_TABLE, null, USER_IS_TEACHER + \" = ?\",\n new String[]{\"0\"});\n return getStudentFromCursor(cursor);\n }", "public List<student> getAllStudent() { \n List<student> studentArrayList = new ArrayList<>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table; // PALITAN TO NG TABLE NAME NIYO\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n student student = new student(); //PALITAN NG MGA DAPAT PALITAN NA VARIABLES\n student.setId(Integer.parseInt(cursor.getString(0)));\n student.setfName(cursor.getString(1));\n student.setlName(cursor.getString(2));\n studentArrayList.add(student);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return studentArrayList;\n }", "public static ArrayList<Student> getAllStudenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] {};\n\t\t\trp.type = RequestType.GET_ALL_STUDENTS;\n\t\t\tReceiveContent rps = sendReceive(rp);\n\t\t\treturn (ArrayList<Student>) rps.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SendNewsLetter error\");\n\t\t}\n\t\treturn new ArrayList<Student>();\n\t}", "@Override\r\n\tpublic Collection<Student> findAll() {\n\t\treturn null;\r\n\t}", "public List getStudentList() throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n\n return list;\n } finally {\n log.debug(\"finished getStudentList\");\n }\n }", "private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tpublic List<Student> listStudent() {\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Student\").list();\n\t\t}", "public ArrayList<Student> getStudentsForCourse(Course course){\n ArrayList<Student> result = new ArrayList();\n \n String statement = GET_SUDENTS_FOR_COURSE;\n \n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Student student = new Student(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getDate(\"birthday\").toLocalDate(),rs.getDouble(\"tuition_fees\"));\n result.add(student);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getStudentsForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }", "public List<Student>ViewStudentDAO(int id) {\n\t\tList<Student> students = new ArrayList<Student>();\n\t\ttry {\n stmt = connection.prepareStatement(SqlQueries.GetStudents);\n stmt.setInt(1, id);\n stmt.execute();\t \n ResultSet result =stmt.executeQuery();\n while(result.next())\n {\n \tstudents.add(SDAO.GetStudent(result.getInt(1)));\n }\n } catch(Exception ex){\n \tlogger.error(ex.getMessage()); \n } finally{\n \t//close resources\n \tDBUtil.closeStmt(stmt);\n }\n\treturn students ;\t\n\t}", "public List<Student> stulist() throws Exception {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql:///stuu\", \"root\", \"root\");\n\t\tPreparedStatement ps = conn.prepareStatement(\"select * from student\");\n\t\tResultSet rs = ps.executeQuery();\n\t\tList<Student> list = new ArrayList<Student>();\n\t\twhile(rs.next())\n\t\t{\n\t\t\tStudent s = new Student(rs.getInt(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6));\n\t\t\tlist.add(s);\n\t\t}\n\t\trs.close();\n\t\tps.close();\n\t\tconn.close();\n\t\treturn list;\n\t}", "@Override\n\t@Transactional\n\tpublic List<Student> getStudents() {\n\t\tAuthentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tString username = authentication.getName();\n\t\tSystem.out.println(\"The username is: \"+username);\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student s where s.username='\"+username+\"'\", Student.class);\n\t\t\n List<Student> students = query.getResultList();\n\t\t\n\t\treturn students;\n\t}", "private static void showStudentDB () {\n for (Student s : studentDB) {\n System.out.println(\"ID: \" + s.getID() + \"\\n\" + \"Student: \" + s.getName());\n }\n }", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Override\n\tpublic List<Student> queryByGid(int gid) {\n\t\treturn sDao.queryByGid(gid);\n\t}", "public StudentDataBase getStudents() {\n return students;\n }", "public List<StudentDto> getAllStudents() {\n\t\tList<Student> studentList = studentRepository.findAll();\n\t\tif (ObjectUtils.isEmpty(studentList))\n\t\t\tthrow new ResourceNotFoundException(Constants.noDataFound);\n\n\t\tList<StudentDto> studentDtoList = studentList.stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t .map(converter::convert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\t\t\n\t\treturn studentDtoList;\n\t}", "public ArrayList<Student> retrieveAllCurrent() {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE users.type LIKE 'Student';\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.setTime(date);\r\n\t\t\r\n\t\tint currYear = cal.get(cal.YEAR);\r\n\t\tint currMth = cal.get(cal.MONTH);\r\n\t\t\r\n\t\tint year = 0;\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamId \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tint matricYear = Integer.parseInt(username.substring(username.length() - 4, username.length()));\r\n\t\t\t\t\r\n\t\t\t\tyear = currYear - matricYear;\r\n\t\t\t\t\r\n\t\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamId, prefRole);\r\n\t\t\t\t\r\n\t\t\t\tif(currMth > 8){\r\n\t\t\t\t\tyear++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(year == 3 || year == 4){\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}", "@RequestMapping( value = \"/{id}/student\", method = RequestMethod.GET )\n public Set<StudentDTO> readStudents(@PathVariable(value=\"id\") long id){\n return classService.read(id).getStudents();\n }", "@GetMapping(\"/api/students\")\n public ResponseEntity<List<StudentDto>> getAllStudents() {\n return ResponseEntity.ok(studentService.getAllStudents());\n }", "@GetMapping(\"student-list/{id}\")\n\tpublic Student getStudentById(@PathVariable int id) throws SQLException {\n\t\treturn studentSerivce.getStudents(id);\n\t}", "List<User> getAll() throws SQLException;", "public ResultSet getRecords() throws SQLException{\n Statement stmt = getConnection().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n String sqlGet = \"SELECT * FROM myStudents\";\n stmt.executeQuery(sqlGet);\n ResultSet rs = stmt.getResultSet();\n return rs;\n }", "@Override\n\tpublic List<Course> queryAll(Student student) {\n\t\treturn null;\n\t}", "List<Student> getStudent();", "List<StudentRecord> getStudents(String clientId) throws Exception;", "Student fetchBy(String name);", "@GetMapping(\"/students\")\n\tpublic List<Student> getStudents(){\n\t\n\t\treturn theStudents;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Student> retrieveAllStudentObjects() {\r\n\t\tList<Student> listOfStudents = new ArrayList<Student>();\r\n\r\n\t\ttry {\r\n\t\t\tlistOfStudents = readSerializedObject();\r\n\r\n\t\t\tif (listOfStudents == null) {\r\n\t\t\t\tSystem.out.println(\"Unable to read from file!\");\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn listOfStudents;\r\n\t}", "private ArrayList<Student> getStudentsFromRS(ResultSet rs) {\t\n\t\t\n\t\tArrayList<Student> someStudents = new ArrayList<Student>();\n\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent aStudent = new Student();\n\t\t\t\taStudent.setId(rs.getInt(\"id\"));\n\t\t\t\taStudent.setfName(rs.getString(\"first_name\"));\n\t\t\t\taStudent.setlName(rs.getString(\"last_name\"));\n\t\t\t\taStudent.setGpa(rs.getDouble(\"gpa\"));\n\t\t\t\taStudent.setSat(rs.getInt(\"sat\"));\n\t\t\t\taStudent.setMajor(rs.getInt(\"major_id\"));\n\t\t\t\tsomeStudents.add(aStudent);\n\t\t\t}\n\t\t} catch (SQLException ex) {ex.printStackTrace();};\n\t\t\n\t\treturn someStudents.isEmpty() ? null : someStudents;\n\t}", "@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }", "public Iterable<StudentQualificationPersonDetail> getStudentRegisteredData(){\n\t\t\n\t\treturn sqcRepository.findAll();\n\t}", "public static void fetchStudent(Session session) {\n\t\tQuery query = session.createQuery(\"from StudentEntity stud where stud.name=:name_to_be_passed_by_user\");\n\t\tquery.setParameter(\"name_to_be_passed_by_user\", \"Ram\");\n\t\tList studentResult = query.list();\n\t\t\n\t\tfor(Iterator iterator= studentResult.iterator();iterator.hasNext();) { \t\n\t\t\tStudentEntity student = (StudentEntity)iterator.next();\n\t\t\t\n\t\t\tSystem.out.println(student);\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic List<Student> getStudents(String courseName) {\n\t\tList<Student> students=new ArrayList<>();\r\n\t\tString sql=\"select studentid, studentname, studentshv.courseid from studentshv inner join courseshv on studentshv.courseid=courseshv.courseid where coursename=?\";\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, courseName);\r\n\t\t\tResultSet rs=pstmt.executeQuery();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tlong studentId=rs.getLong(\"studentid\");\r\n\t\t\t\tString studentName=rs.getString(\"studentname\");\r\n\t\t\t\tlong courseId=rs.getLong(\"courseid\");\r\n\t\t\t\tstudents.add(new Student(studentId,studentName,courseId));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn students;\r\n\t}", "@Test\n public void testFindAllStudents() throws Exception {\n List<Students> list = cs.findAllStudents();\n for (Students stu :\n list) {\n System.out.println(stu);\n }\n }", "@Override\n\tpublic List<StudentRMBO> getAllStudent() {\n\t\tStudentRMBO bo=null;\n\t\tList<StudentRMBO> lrmbo=null;\n\t\ttry {\n\t\t\t\n\t\t\tMap<String ,RowMapper<?>> logginMapper=new HashMap<String , RowMapper<?>>();\n\t\t\tlogginMapper.put(\"result-1\", new RowMapper<StudentBO>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic StudentBO mapRow(ResultSet rs, int pos) throws SQLException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tStudentBO sbo=new StudentBO();\n\t\t\t\t\tList<StudentBO> lbo=new ArrayList<StudentBO>();\n\t\t\t\t\tResultSetMetaData rsmd=(ResultSetMetaData) rs.getMetaData();\n\t\t\t\t\tint columnCount=rsmd.getColumnCount();\n\t\t\t\n\t\t\t\t\tif(columnCount>1) {\n\t\t\t\t\t\n\t\t\t\t\t\tsbo.setName(rs.getString(\"name\"));\n\t\t\t\t\t\tsbo.setRollNumber(rs.getString(\"rollNumber\"));\n\t\t\t\t\t\tsbo.setMaths(rs.getInt(\"Maths\"));\n\t\t\t\t\t\tsbo.setEnglish(rs.getInt(\"English\"));\n\t\t\t\t\t\tsbo.setScience(rs.getInt(\"Science\"));\n\t\t\t\t\t\tlbo.add(sbo);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn sbo;\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tbo=new StudentRMBO();\n\t\t\tlrmbo=new ArrayList<StudentRMBO>();\n\t\t\tMap<String ,Integer> outParam=SPutil.getEmptyOutputParams();\n\t\t\tMapSqlParameterSource inputParam=SPutil.spInputParameters();\n\t\t\tMap<String, Object> m=SPutil.executeMultiple(ds, null, SPutil.get_Student, inputParam, outParam, logginMapper);\n\t\t\tArrayList al=(ArrayList) m.get(\"result-1\");\n\t\t\tSystem.out.println(\"array in dao \"+al);\n\t\t\tSystem.out.println(\"array size \"+al.size());\n\n\t\t\tfor(int i=0 ;i<=al.size()-1;i++) {\n\t\t\tbo.setBo( (StudentBO) al.get(i));\n\t\t\tlrmbo.add(bo);\n\t\t\tSystem.out.println(\"in for i= \"+ i);\n\t\t\tSystem.out.println(\"in for \"+ bo);\n\t\t\t}\n\t\t\t\n\t\t\t\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\n\t\tSystem.out.println(\"student info\"+bo);\n\n\t\treturn lrmbo;\n\t}", "@Override\r\n public List<String> getStudenti() {\r\n List<Studente> listaStudenti = studenteFacade.findAll();\r\n List<String> result = new ArrayList<>();\r\n\r\n for (Studente s : listaStudenti) {\r\n result.add(s.toString());\r\n }\r\n return result;\r\n }", "@Override\r\n\tpublic Students findStudents() {\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tpublic List<Census> retrieveAll()\n\t{\n\t\t\n\t\topen();\n\t\tList<Census> list=new LinkedList<Census>();\n\t\ttry\n\t\t{\n\t\t\tQuery query=DB.query();\n\t\t\tquery.constrain(Census.class);\n\t\t\t\n\t\t\tObjectSet result =query.execute();\n\t\t\t\n\t\t\twhile(result.hasNext())\n\t\t\t{\n\t\t\t\tlist.add((Census)result.next());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "@HystrixCommand(fallbackMethod = \"reliable\")\n\tpublic List<Student> getStudents() {\n\t\tResponseEntity<List<Student>> response = this.restTemplate.exchange(this.resourceUrl + \"/all\", HttpMethod.GET,\n\t\t\t\tnull, new ParameterizedTypeReference<List<Student>>() {\n\t\t\t\t});\n\t\treturn response.getBody();\n\t}", "@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}", "public List<Student> getAllStudents() throws IOException {\n\t\tstudentList = studentListGenerator.generateList(\"StudentList.txt\");\n\t\treturn studentList;\n\t}", "@CrossOrigin(origins = \"http://localhost:3000\")\n @RequestMapping(value = \"/all\", method = RequestMethod.GET, produces = \"application/json\")\n public List<Student> getAllStudents(){\n return studentService.findAll();\n }", "public List<Student> getCampusStudent(Campus c) {\n\t\tList<Student> allStudentList = new ArrayList<Student>();\n\t\tConnection conn = DBUtil.getConn();\n\t\tStatement stmt = DBUtil.createStmt(conn);\n\t\tString sql = \"select * from student where ville='%s' and region='%s' order by stu_ID \";\n\t\tsql = String.format(sql, c.getVille(), c.getRegion());\n\t\tSystem.out.println(sql);\n\t\tResultSet rst = DBUtil.getRs(stmt, sql);\n\t\ttry {\n\t\t\twhile (rst.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tfillRsStudent(rst, student);\n\t\t\t\tallStudentList.add(student);\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn allStudentList;\n\t}", "abstract public void showAllStudents();", "@Query(\"select firstName,score from Student\")\n\tList<Object[]> findAllStudentWithScores();", "@GetMapping(path = \"/all\")\n public Set<StudentCommand> getAllStudents() {\n Set<StudentCommand> studentCommands = new HashSet<>();\n\n Iterable<Student> students = studentService.getAllStudents();\n\n for (Student s : students) {\n StudentCommand command = studentToStudentCommand.converter(s);\n studentCommands.add(command);\n }\n return studentCommands;\n }", "public List<User> fetchAll()\n {\n String query = \"SELECT * FROM user\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class); // a collection type that holds the results of the query\n List<User> userList; // list of users that will be returned\n try\n {\n userList = template.query(query, userRowMapper); // call the database and assign the results to the userList\n } catch (EmptyResultDataAccessException e)\n {\n userList = new ArrayList<>(); // return an empty arrayList\n }\n return userList;\n }", "static List<Student> getStudents() {\n return students;\n }", "@Override\r\n\tpublic List<StudentBean> getStudentsByClassId(String classId) {\n\t\treturn studentDAO.getStudentsByClassId(classId);\r\n\t}", "public static ArrayList getSchoolList(Connection con) throws ServletException{\n try{\n PreparedStatement ps = con.prepareStatement(\"SELECT * FROM schools;\");\n ResultSet rs = ps.executeQuery();\n ArrayList<School> schoolList = new ArrayList();\n while (rs.next()){\n schoolList.add(new School(rs.getString(\"schoolname\")));\n }\n return schoolList;\n } catch (SQLException ex) {\n throw new ServletException(\"school list load problem\");\n } \n }", "public static void displayStudentRecords() {\n\t\tSystem.out.println(\"Student records in the database are:\");\n\t\tSelectStudentRecords records = new SelectStudentRecords();\n\t\ttry {\n\t\t\tList<Student> studentList = records.selectStudentRecords();\n\t\t\tstudentList.forEach(System.out::println);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public Cursor getStudentData(){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n Cursor res = db.rawQuery(\"SELECT * FROM \"+ TABLE_NAME, null);\r\n return res;\r\n }", "@Override\r\n\tpublic void findAll(List<Student> list) {\n\t\tSystem.out.println(\"查询所有学生\");\r\n\t\tfor(Student i:list){\r\n\t\t\ti.info();\r\n\t\t}\t\t\r\n\t}", "public ArrayList getStudents();", "public ArrayList<Studentdto> studentList() throws Exception {\n\t\tArrayList<Studentdto> studentlist = new ArrayList<Studentdto>();\n\t\tConnection con = null;\n\t\tcon = DBConnector.dbConnection();\n\t\ttry {\n\t\t\tPreparedStatement st = con.prepareStatement(\n\t\t\t\t\t\"select student_name,college_name, course_name,phn_no,address from student s ,college co,course cr where s.course_id=cr.course_id and s.college_id=co.college_id\");\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\tint i = 1;\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudentdto studentdto = new Studentdto();\n\t\t\t\tstudentdto.setSlno(i++);\n\t\t\t\tstudentdto.setStudentname(rs.getString(1));\n\t\t\t\tstudentdto.setCollegename(rs.getString(2));\n\t\t\t\tstudentdto.setCoursename(rs.getString(3));\n\t\t\t\tstudentdto.setAddress(rs.getString(4));\n\t\t\t\tstudentdto.setPhno(rs.getString(5));\n\t\t\t\tstudentlist.add(studentdto);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (SQLSyntaxErrorException e) {\n\t\t\tthrow new SQLSyntaxErrorException(\"Error in SQL syntax\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Connection with database failed\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Some error occured\");\n\t\t}\n\t\treturn studentlist;\n\t}", "public List<Student> search() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.grade > 50.00\");\r\n \tList<Student> result = query.getResultList();\r\n \t\r\n \t \r\n \t// Query for a List of data elements.\r\n// \tQuery query = em.createQuery(\"Select e.firstname FROM Student e\");\r\n// \tList<String> result = query.getResultList();\r\n \t \r\n \t// Query for a List of element arrays.\r\n// \tQuery query = em.createQuery(\"Select e.firstname, e.grade FROM Student e\");\r\n// \tList<Object[]> result = query.getResultList();\r\n \t\r\n\t\t// \tsetFirstResult()\r\n\t\t// \tsetMaxResults()\r\n \t\r\n \treturn result;\r\n }", "@Transactional(propagation = Propagation.SUPPORTS,isolation = Isolation.DEFAULT,readOnly = true)\r\n\tpublic List<Student> findStudentsByStuName(String stuName) {\n\t\treturn studentMapper.findStudentsByStuName(\"%\"+stuName+\"%\");\r\n\t}", "List<User> fetchAllUSers();", "public static List<StudentInfo> searchStudentInfo(String firtname, String lastname) {\r\n \r\n List<StudentInfo> students = new ArrayList<>();\r\n \r\n // declare resultSet\r\n ResultSet rs = null;\r\n \r\n // declare prepared statement\r\n PreparedStatement preparedStatement = null;\r\n \r\n // declare connection\r\n Connection conn = null;\r\n try {\r\n // get connection\r\n conn = DBUtils.getConnection();\r\n\r\n // set prepared statement\r\n preparedStatement = conn\r\n .prepareStatement(\"SELECT instructor.FName, instructor.LName,\" +\r\n \" IF(EXISTS ( SELECT * FROM gra WHERE gra.StudentId = phdstudent.StudentId) , 'GRA', \" +\r\n \" IF(EXISTS ( SELECT * FROM gta WHERE gta.StudentId = phdstudent.StudentId) , 'GTA', \" +\r\n \" IF(EXISTS ( SELECT * FROM scholarshipsupport WHERE scholarshipsupport.StudentId = phdstudent.StudentId) , 'scholarship', \" +\r\n \" IF(EXISTS ( SELECT * FROM selfsupport WHERE selfsupport.StudentId = phdstudent.StudentId) , 'self', ''))\" +\r\n \" )) AS StudentType, \" +\r\n \" milestone.MName, milestonespassed.PassDate\" +\r\n \" FROM phdstudent left join instructor on instructor.InstructorId = phdstudent.Supervisor\"\r\n + \" left join milestonespassed on phdstudent.StudentId = milestonespassed.StudentId\"\r\n + \" left join milestone on milestonespassed.MID = milestone.MID\" +\r\n \" WHERE phdstudent.FName = ? AND phdstudent.LName = ?\");\r\n \r\n // execute query\r\n preparedStatement.setString(1, firtname);\r\n preparedStatement.setString(2, lastname); \r\n\r\n rs = preparedStatement.executeQuery();\r\n \r\n //iterate and create the StudentInfo objects\r\n while (rs.next()) {\r\n \r\n students.add(new StudentInfo(rs.getString(1)+ \" \" + rs.getString(2), rs.getString(3), rs.getString(4), \r\n utils.Utils.toDate(rs.getDate(5))));\r\n\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n finally {\r\n DBUtils.closeResource(conn);\r\n DBUtils.closeResource(preparedStatement);\r\n DBUtils.closeResource(rs);\r\n } \r\n \r\n return students; \r\n }", "@RequestMapping(value=\"/show\",method = RequestMethod.GET)\n\n public List<Student> show_data() \n {\n return srt.findAll();\n }", "@RequestMapping(value=\"/students\", method=RequestMethod.GET) //MediaType.APPLICATION_XML_VALUE\r\n\tpublic List<Student> getStudentsList() {\r\n\t\tArrayList<Student> list = new ArrayList<Student>();\r\n\t\tlist.add(new Student(\"Kaja\", \"Piloun\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Paja\", \"Pilouna\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Vaja\", \"Pilounen\", \"123465\", 25, null));\r\n\t\t\r\n\t\treturn list;\r\n\t}", "@GetMapping(\"/{projectId}/students\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic @ResponseBody List<User> getAllStudentsOnProject(@PathVariable(\"projectId\") int projectId) {\n\t\treturn userService.findAllByProject(projectService.findByProjectId(projectId));\n\t}", "List<NominatedStudentDto> showAll();", "public ArrayList<Student> GetAllStudentData() {\n\t\tArrayList<Student> result = new ArrayList<>();\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tArrayList<Student> theData = curr.data.students.getStudentData();\n\t\t\tfor (int i = 0; i <= curr.data.students.getStudentDataCount() - 1; i++) {\n\t\t\t\tresult.add(theData.get(i));\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn result;\n\t}", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response list() {\n\t\t//System.out.println(\"================================= public Response list()\");\n\t\tIterable<Student> students = this.studentService.findAll();\n\t\tif (students != null) {\n\t\t\tList<StudentModelBasic> sbmList = new ArrayList<>();\n\t\t\tfor (Student s : students) {\n\t\t\t\tsbmList.add(this.studentService.convertToModelBasic(s));\n\t\t\t}\n\t\t\t//System.out.println(students.toString());\n\t\t\treturn Response.ok(sbmList).build();\n\t\t} else {\n\t\t\treturn Response.status(Status.NOT_FOUND).build();\n\t\t}\n\t}", "List<ScoreEntity> findList(int studentId);", "Collection<User> getStaffs() throws DataAccessException;", "@Override\n\tpublic List<Grade> findAll() {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\tList<Grade> grades=gradeDAO.selectAll();\n\t\treturn grades;\n\t}", "public List<String> getStudents();", "public ResultSet fetchSelectAllUsers() {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tTo create connection to the DataBase\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tStore the table data in ResultSet rs and then return it\r\n\t\t\t*/\r\n\t\t\trs = stmt.executeQuery(SELECT_ALL_USERS_QUERY);\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch(ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tcloseDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "List<Course> selectAll();", "@FXML\n public void getStudent() throws FileNotFoundException, IOException, SQLException{\n \n lastclicked =\"s\";\n \n String search = SN.getText();\n ArrayList<String> courses = new ArrayList<>();\n \n \n if(!search.equals(\"\")){\n data.clear();\n Connection myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/users\", \"root\", \"simnew96\"); \n Statement myStatement = myConn.createStatement();\n ResultSet rs = myStatement.executeQuery(\"SELECT users.participants.student_id, users.participants.courses FROM users.participants\\n\" +\n \"WHERE users.participants.student_id = '\"+search+\"'\");\n while(rs.next()){\n courses.add(rs.getString(\"courses\"));\n \n }\n System.out.println(courses.toArray().toString());\n \n \n for(int i=0;i<courses.size(); i++){\n \n String table1 = courses.get(i).toLowerCase()+\"_marks\";\n ResultSet rs1 = myStatement.executeQuery(\"SELECT * FROM users.\"+table1+\" WHERE studentname='\"+search.toUpperCase()+\"'\");\n String currentcourse =courses.get(i);\n this.getData_and_Set(rs1, currentcourse);\n \n }\n //TRACING\n //System.out.println(data.get(1));\n \n myConn.close();\n \n }\n SN.clear();\n }", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "List fetchAll() throws AdaptorException ;", "public List<T> findAll() throws NoSQLException;" ]
[ "0.79222715", "0.78639793", "0.78055656", "0.7753441", "0.774663", "0.77338517", "0.7679723", "0.76151806", "0.75836676", "0.75603414", "0.7532592", "0.752727", "0.7418509", "0.74180615", "0.73666036", "0.73459363", "0.733288", "0.7289839", "0.7258565", "0.72391325", "0.7221215", "0.71734303", "0.71604186", "0.7157217", "0.7151491", "0.7139018", "0.7054432", "0.7001493", "0.6990496", "0.6975177", "0.6915132", "0.6872678", "0.6848399", "0.6833667", "0.683126", "0.67913926", "0.6788454", "0.6769535", "0.67685777", "0.67309064", "0.6722883", "0.67148113", "0.66457254", "0.66249156", "0.66232866", "0.6586589", "0.6566575", "0.6549151", "0.6545656", "0.6537951", "0.6534254", "0.6527939", "0.65261364", "0.6519589", "0.6502106", "0.6499744", "0.6498548", "0.6458871", "0.6449746", "0.64324945", "0.6426346", "0.6410754", "0.63911074", "0.6353146", "0.6342579", "0.6339073", "0.63321424", "0.6323304", "0.63029", "0.6297482", "0.6296893", "0.62902373", "0.6269291", "0.6233913", "0.62075245", "0.6192366", "0.61817145", "0.6181256", "0.6181055", "0.6173259", "0.6162371", "0.61618066", "0.6150434", "0.6150314", "0.6143279", "0.61420316", "0.6137406", "0.6137401", "0.6137027", "0.6133666", "0.6119944", "0.6114433", "0.60899156", "0.6089525", "0.60681075", "0.6067822", "0.6066782", "0.6056565", "0.60517675", "0.6050983", "0.60219735" ]
0.0
-1
/Parses an ipv4 address in the RDATA field
private String parseRDataAType(ByteBuffer response) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < 3; i++) { sb.append(Byte.toUnsignedInt(response.get())); sb.append('.'); } sb.append(Byte.toUnsignedInt(response.get())); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "java.lang.String getIpv4();", "public static byte[] parseIPv4Literal(String s) {\n s = s != null ? s.trim() : \"\";\n String[] toks = s.split(\"\\\\.\");\n byte[] ip = new byte[4];\n if (toks.length == 4) {\n for (int i = 0; i < ip.length; i++) {\n try {\n int val = Integer.parseInt(toks[i]);\n if (val < 0 || val > 255) {\n return null;\n }\n ip[i] = (byte) val;\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip;\n }\n return null;\n }", "public IPV4Address()\n {\n address = new int[4];\n\n address[0] = 0;\n address[1] = 0;\n address[2] = 0;\n address[3] = 0;\n }", "@Test\n public void testValueOfByteArrayOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 3);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {11, 22, // Preamble\n 0, 0, 0, 0,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {11, 22, // Preamble\n (byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff,\n 33}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 2);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIpv4() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = s;\n return s;\n }\n }", "@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPv4 getAddress() {\n return this.address;\n }", "int getClientIpV4();", "@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getReceiverAddress4() {\r\n return receiverAddress4;\r\n }", "public static IPAddressFormatter<IPv4Address> ipv4() {\n return IPv4.INSTANCE;\n }", "public static boolean isWellFormedIPv4Address(String address) {\n \n int addrLength = address.length();\n char testChar;\n int numDots = 0;\n int numDigits = 0;\n \n // make sure that 1) we see only digits and dot separators, 2) that\n // any dot separator is preceded and followed by a digit and\n // 3) that we find 3 dots\n //\n // RFC 2732 amended RFC 2396 by replacing the definition \n // of IPv4address with the one defined by RFC 2373. - mrglavas\n //\n // IPv4address = 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT\n //\n // One to three digits must be in each segment.\n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if ((i > 0 && !isDigit(address.charAt(i-1))) || \n (i+1 < addrLength && !isDigit(address.charAt(i+1)))) {\n return false;\n }\n numDigits = 0;\n if (++numDots > 3) {\n return false;\n }\n }\n else if (!isDigit(testChar)) {\n return false;\n }\n // Check that that there are no more than three digits\n // in this segment.\n else if (++numDigits > 3) {\n return false;\n }\n // Check that this segment is not greater than 255.\n else if (numDigits == 3) {\n char first = address.charAt(i-2);\n char second = address.charAt(i-1);\n if (!(first < '2' || \n (first == '2' && \n (second < '5' || \n (second == '5' && testChar <= '5'))))) {\n return false;\n }\n }\n }\n return (numDots == 3);\n }", "@Test\n public void testValueOfForIntegerIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(0x01020304);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(0xffffffff);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPV4Address(int oct0, int oct1, int oct2, int oct3)\n {\n address = new int[4];\n\n oct0 = oct0 > 255 ? 255 : oct0;\n address[0] = oct0 < 0 ? 0 : oct0;\n\n oct1 = oct1 > 255 ? 255 : oct1;\n address[1] = oct1 < 0 ? 0 : oct1;\n\n oct2 = oct2 > 255 ? 255 : oct2;\n address[2] = oct2 < 0 ? 0 : oct2;\n\n oct3 = oct3 > 255 ? 255 : oct3;\n address[3] = oct3 < 0 ? 0 : oct3;\n }", "public void setReceiverAddress4(java.lang.String receiverAddress4) {\r\n this.receiverAddress4 = receiverAddress4;\r\n }", "public com.google.protobuf.ByteString\n getIpv4Bytes() {\n java.lang.Object ref = ipv4_;\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 ipv4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getIpv4Bytes();", "@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public void setRsv4(String rsv4) {\r\n this.rsv4 = rsv4;\r\n }", "public Address line4(String line4) {\n this.line4 = line4;\n return this;\n }", "public Builder setIpv4(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "private void appendIPv4(long lowAddress, Appendable dest, boolean endsWithColon) throws IOException {\n if (!endsWithColon) {\n dest.append(':');\n }\n IPv4.INSTANCE.append((int) lowAddress, dest);\n }", "@Test\n public void testMakeMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 24);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 0);\n assertThat(ipAddressMasked.toString(), is(\"0.0.0.0\"));\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 32);\n assertThat(ipAddressMasked.toString(), is(\"1.2.3.5\"));\n }", "@Test\n public void testValueOfByteArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(value);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }", "public IPv4Address(byte[] bytes) throws AddressValueException {\n\t\tthis(bytes, null);\n\t}", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "private String longToIpv4(long Ipv4long){\n\t\tString IpStr = \"\";\n\t\tfinal long mask = 0xff;\n\t\t\n\t\tIpStr = Long.toString(Ipv4long & mask);\n\t\tfor (int i = 1; i < 4; ++i){\n\t\t\tIpv4long = Ipv4long >> 8;\n\t\t\tIpStr = (Ipv4long & mask) + \".\" + IpStr;\n\t\t}\n\t\treturn IpStr;\n\t}", "public static byte[] addressToFourBytes(String addr) {\n\t\tint begin=0, end;\n\t\tbyte[] b=new byte[4];\n\t\tfor (int i=0; i<4; i++) {\n\t\t\tString num;\n\t\t\tif (i<3) {\n\t\t\t\tend=addr.indexOf('.',begin);\n\t\t\t\tb[i]=(byte)Integer.parseInt(addr.substring(begin,end));\n\t\t\t\tbegin=end+1;\n\t\t\t}\n\t\telse b[3]=(byte)Integer.parseInt(addr.substring(begin));\n\t\t}\n\t\treturn b;\n\t}", "public static String fourBytesToAddress(byte[] b) {\n\t\treturn Integer.toString(uByte(b[0]))+\".\"+Integer.toString(uByte(b[1]))+\".\"+Integer.toString(uByte(b[2]))+\".\"+Integer.toString(uByte(b[3]));\n\t}", "@Test\n public void testToInt() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toInt(), is(0x01020304));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toInt(), is(0));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toInt(), is(-1));\n }", "public boolean verificarFormatoIPV4(String ip) {\n\t\ttry {\n\t\t\tif (ip == null || ip.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tString[] parts = ip.split(\"\\\\.\");\n\t\t\tif (parts.length != 4) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfor (String s : parts) {\n\t\t\t\tint i = Integer.parseInt(s);\n\t\t\t\tif ((i < 0) || (i > 255)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ip.endsWith(\".\")) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t}", "public Builder setIpv4Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv4_ = value;\n onChanged();\n return this;\n }", "public boolean isIpv4() {\n return isIpv4;\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }", "private static List<String> getIPv4First(List<InetAddress> in)\n {\n List<String> out = new ArrayList<>();\n int i = 0;\n for (InetAddress addr : in) {\n if (addr instanceof Inet4Address) {\n out.add(i++, addr.getHostAddress());\n }\n else {\n out.add(addr.getHostAddress());\n }\n }\n return out;\n }", "public NextPageData getIPv4AddressFirst(int splitCount, String network) {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tsb.append(\"/wapi/v2.3/ipv4address\")\r\n\t\t.append(\"?_paging=1\")\r\n\t\t.append(\"&_max_results=\").append(splitCount)\r\n\t\t.append(\"&_return_as_object=1\")\r\n\t\t.append(\"&_return_type=json\")\r\n\t\t.append(\"&network=\").append(network)\t\t\t\t\t\t\t// '192.168.1.0/25'\r\n\t\t.append(\"&status=USED\")\r\n\t\t.append(\"&_return_fields=\")\r\n\t\t\t.append(\"ip_address,network,mac_address,names\")\r\n\t\t\t.append(\",is_conflict,conflict_types\")\r\n\t\t\t.append(\",discover_now_status\")\r\n\t\t\t.append(\",lease_state,status\")\r\n\t\t\t.append(\",types,usage,fingerprint\")\r\n\t\t\t.append(\",discovered_data.os,discovered_data.last_discovered\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString());\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonObject Parser\r\n\t\tJsonObject jObj = JsonUtils.parseJsonObject(value);\r\n\t\t\r\n\t\tif (jObj == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// next_page_id\r\n\t\tString nextPageId = JsonUtils.getValueToString(jObj, \"next_page_id\", \"\");\r\n\t\t\r\n\t\t// result\r\n\t\tJsonArray resultArray = (JsonArray)jObj.get(\"result\");\r\n\t\t\r\n\t\treturn new NextPageData(resultArray, nextPageId);\r\n\t}", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }", "public IPv4Address(SegmentValueProvider valueProvider) {\n\t\tthis(valueProvider, (Integer) null);\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfArrayInvalidOffsetIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {11, 22, 33, // Preamble\n 1, 2, 3, 4,\n 44, 55}; // Extra bytes\n ipAddress = Ip4Address.valueOf(value, 6);\n }", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "public java.util.List<String> getIpv4Addresses() {\n return ipv4Addresses;\n }", "public IPv4Address(Inet4Address inet4Address, Integer networkPrefixLength) {\n\t\tthis(inet4Address, inet4Address.getAddress(), networkPrefixLength);\n\t}", "String getAddr();", "public static void parseResponse(byte[] response) {\n int qr = ((response[2] & 0b10000000) >> 7);\n int opcode = ((response[2] & 0b01111000) >> 3);\n int aa = ((response[2] & 0b00000100) >> 2);\n int tc = ((response[2] & 0b00000010) >> 1);\n int rd = (response[2] & 0b00000001);\n int ra = ((response[3] & 0b10000000) >> 7);\n int res1 = ((response[3] & 0b01000000) >> 6);\n int res2 = ((response[3] & 0b00100000) >> 5);\n int res3 = ((response[3] & 0b00010000) >> 4);\n int rcode = (response[3] & 0b00001111);\n int qdcount = (response[4] << 8 | response[5]);\n int ancount = (response[6] << 8 | response[7]);\n int nscount = (response[8] << 8 | response[9]);\n int arcount = (response[10] << 8 | response[11]);\n/*\n System.out.println(\"QR: \" + qr);\n System.out.println(\"OPCODE: \"+ opcode);\n System.out.println(\"AA: \" + aa);\n System.out.println(\"TC: \" + tc);\n System.out.println(\"RD: \" + rd);\n System.out.println(\"RA: \" + ra);\n System.out.println(\"RES1: \" + res1);\n System.out.println(\"RES2: \" + res2);\n System.out.println(\"RES3: \" + res3);\n System.out.println(\"RCODE: \" + rcode);\n System.out.println(\"QDCOUNT: \" + qdcount);\n System.out.println(\"ANCOUNT: \" + ancount);\n System.out.println(\"NSCOUNT: \" + nscount);\n System.out.println(\"ARCOUNT: \" + arcount);\n*/\n // WHO DESIGNED THE DNS PACKET FORMAT AND WHY DID THEY ADD POINTERS?!?\n HashMap<Integer, String> foundLabels = new HashMap<>();\n\n int curByte = 12;\n for(int i = 0; i < qdcount; i++) {\n ArrayList<Integer> currentLabels = new ArrayList<>();\n while(true) {\n if((response[curByte] & 0b11000000) != 0) {\n // Labels have a length value, the first two bits have to be 0.\n System.out.println(\"ERROR\\tInvalid label length in response.\");\n System.exit(1);\n }\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n currentLabels.add(pntr);\n for(Integer n : currentLabels) {\n if(foundLabels.containsKey(n)) {\n foundLabels.put(n, foundLabels.get(n) + \".\" + working.toString());\n } else {\n foundLabels.put(n, working.toString());\n }\n }\n }\n\n // Increment curByte every time we use it, meaning it always points to the byte we haven't used.\n short qtype = (short) ((response[curByte++] << 8) | response[curByte++]);\n short qclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n }\n\n // This for loop handles all the Answer section parts.\n for(int i = 0; i < ancount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n // If it is an A record\n if(type == 1) {\n\n // If it is an invalid length\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n\n // Output the IP record\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tnonauth\");\n }\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte++] & 0xFF;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte] & 0xff;\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tnonauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tnonauth\");\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tnonauth\");\n }\n }\n\n for(int i = 0; i < nscount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n if(type == 1) {\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tauth\");\n }\n // If CNAME\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tauth\");\n\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tauth\");\n }\n }\n }", "public interface DNSIPAddress extends DNSObject, Comparable<DNSIPAddress> {\r\n\r\n enum Type { IPv4, IPv6 }\r\n\r\n /**\r\n * Returns the type of this IP address.\r\n *\r\n * @return the type of this IP address\r\n */\r\n Type getType();\r\n\r\n /**\r\n * Returns the value of this IP address (in case of IPv6 the uncompressed version is returned).\r\n *\r\n * @return the (uncompressed) value of this IP address\r\n */\r\n String getAddress();\r\n\r\n /**\r\n * Returns a compressed version of this IP address. If the address cannot be compressed\r\n * the address is returned.\r\n *\r\n * @return the compressed version of this IP address\r\n */\r\n String getCompressedAddress();\r\n\r\n /**\r\n * Returns an array containing the parts of this IP address (uncompressed). Each part of IP address\r\n * is a string.\r\n *\r\n * @return an array of the parts of this IP address.\r\n */\r\n String[] getParts();\r\n\r\n /**\r\n * Returns an array containing the parts of this IP address (uncompressed). Each part of IP address\r\n * is an integer.\r\n *\r\n * @return an array of the parts of this IP address.\r\n */\r\n int[] getInts();\r\n\r\n /**\r\n * Determines whether this IP address has been allocated or assigned\r\n * for special use according to RFC 3330.\r\n *\r\n * @return true if this IP address has been allocated or assigned\r\n * for special use according to RFC 3330; false otherwise.\r\n */\r\n boolean isReserved();\r\n}", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "public java.lang.String getField4() {\n java.lang.Object ref = field4_;\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 field4_ = s;\n }\n return s;\n }\n }", "@Nullable\n Inet4Address getAddress();", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public java.lang.String getField4() {\n java.lang.Object ref = field4_;\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 field4_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public ARPDatagram(String ll3P){\n HeaderFieldFactory fieldFactory = HeaderFieldFactory.getInstance();\n ll3pAddress = fieldFactory.getItem(Constants.LL3P_DESTINATION_ADDRESS_FIELD_ID, ll3P);\n }", "@Override\n public int getClientIpV4() {\n return clientIpV4_;\n }", "public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }", "public IPv4Address(IPv4AddressSegment[] segments) throws AddressValueException {\n\t\tthis(segments, null);\n\t}", "public boolean equals(IPv4 other) {\n return this.address.equals(other);\n }", "void parseQrCode(String qrCodeData);", "public com.google.protobuf.ByteString\n getField4Bytes() {\n java.lang.Object ref = field4_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private static String convertIpAddress(int rawAddress)\n {\n if (ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN)) {\n rawAddress = Integer.reverseBytes(rawAddress);\n }\n\n byte[] ipByteArray = BigInteger.valueOf(rawAddress).toByteArray();\n\n String ipAddressString;\n try {\n ipAddressString = InetAddress.getByAddress(ipByteArray).getHostAddress();\n } catch (UnknownHostException ex) {\n Log.e(\"WIFIIP\", \"Unable to get host address.\");\n ipAddressString = null;\n }\n return ipAddressString;\n }", "private static List<Address> parseAddress(String source) throws IOException {\n FileReader file = new FileReader(source);\n reader = new BufferedReader(file);\n List<Address> addresses = new ArrayList<>();\n String line;\n\n while((line = reader.readLine()) != null){\n int length = 0;\n String number = line.substring(0, line.indexOf(\" \"));\n length += number.length() + 1;\n String street = line.substring(length, line.indexOf(\",\"));\n length += street.length() + 2;\n String city = line.substring(length, line.indexOf(\",\", length));\n length += city.length() + 2;\n String zip = line.substring(length);\n\n addresses.add(new Address(city, zip, number, street));\n }\n\n reader.close();\n return addresses;\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\r\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\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}\r\n\t\t} catch (Exception ex) { } // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "private static InternetAddress[] parse(String var0, boolean var1_1, boolean var2_2) throws AddressException {\n var3_3 = var0.length();\n var4_4 = new Vector<Object>();\n var5_5 = 0;\n var6_6 = -1;\n var7_7 = false;\n var8_8 = false;\n var9_9 = -1;\n var10_10 = 0;\n var11_11 = -1;\n var12_12 = -1;\n do {\n block44 : {\n block61 : {\n block60 : {\n block59 : {\n block55 : {\n block54 : {\n block53 : {\n block46 : {\n block48 : {\n block49 : {\n block58 : {\n block57 : {\n block56 : {\n block50 : {\n block51 : {\n block52 : {\n block45 : {\n block47 : {\n if (var5_5 < var3_3) break block45;\n if (var6_6 < 0) break block46;\n if (var9_9 != -1) {\n var5_5 = var9_9;\n }\n var13_13 = var0.substring(var6_6, var5_5).trim();\n if (var10_10 != 0 || var1_1 || var2_2) break block47;\n var14_14 = new StringTokenizer((String)var13_13);\n break block48;\n }\n if (var1_1 || !var2_2) {\n InternetAddress.checkAddress((String)var13_13, var8_8, false);\n }\n var14_14 = new InternetAddress();\n var14_14.setAddress((String)var13_13);\n if (var11_11 >= 0) {\n var14_14.encodedPersonal = InternetAddress.unquote(var0.substring(var11_11, var12_12).trim());\n }\n var4_4.addElement(var14_14);\n break block46;\n }\n var15_15 = var0.charAt(var5_5);\n if (var15_15 == 9 || var15_15 == 10 || var15_15 == 13 || var15_15 == 32) break block44;\n if (var15_15 == 34) break block49;\n if (var15_15 == 44) break block50;\n if (var15_15 == 62) throw new AddressException(\"Missing '<'\", (String)var0, var5_5);\n if (var15_15 == 91) break block51;\n if (var15_15 == 40) break block52;\n if (var15_15 == 41) throw new AddressException(\"Missing '('\", (String)var0, var5_5);\n block0 : switch (var15_15) {\n default: {\n if (var6_6 == -1) {\n var6_6 = var5_5;\n }\n break block44;\n }\n case 60: {\n if (var8_8 != false) throw new AddressException(\"Extra route-addr\", (String)var0, var5_5);\n var9_9 = var6_6;\n var10_10 = var12_12;\n if (!var7_7) {\n if (var6_6 >= 0) {\n var12_12 = var5_5;\n }\n var11_11 = var6_6;\n var9_9 = var5_5 + 1;\n var10_10 = var12_12;\n }\n ++var5_5;\n var12_12 = 0;\n do {\n if (var5_5 >= var3_3) ** GOTO lbl64\n var6_6 = var0.charAt(var5_5);\n if (var6_6 == 34) ** GOTO lbl74\n if (var6_6 == 62) ** GOTO lbl63\n if (var6_6 == 92) {\n ++var5_5;\n }\n ** GOTO lbl75\nlbl63: // 1 sources:\n if (var12_12 != 0) ** GOTO lbl75\nlbl64: // 2 sources:\n if (var5_5 >= var3_3) {\n if (var12_12 == 0) throw new AddressException(\"Missing '>'\", (String)var0, var5_5);\n throw new AddressException(\"Missing '\\\"'\", (String)var0, var5_5);\n }\n var12_12 = var5_5;\n var8_8 = true;\n var6_6 = var9_9;\n var9_9 = var12_12;\n var12_12 = var10_10;\n break block0;\nlbl74: // 1 sources:\n var12_12 ^= 1;\nlbl75: // 3 sources:\n ++var5_5;\n } while (true);\n }\n case 59: {\n var9_9 = var6_6;\n if (var6_6 == -1) {\n var9_9 = var5_5;\n }\n if (var7_7 == false) throw new AddressException(\"Illegal semicolon, not in group\", (String)var0, var5_5);\n var6_6 = var9_9;\n if (var9_9 == -1) {\n var6_6 = var5_5;\n }\n var13_13 = new InternetAddress();\n var13_13.setAddress(var0.substring(var6_6, var5_5 + 1).trim());\n var4_4.addElement(var13_13);\n var6_6 = -1;\n var7_7 = false;\n var8_8 = false;\n var9_9 = -1;\n break block44;\n }\n case 58: {\n if (var7_7 != false) throw new AddressException(\"Nested group\", (String)var0, var5_5);\n var10_10 = var6_6;\n if (var6_6 == -1) {\n var10_10 = var5_5;\n }\n var7_7 = true;\n var6_6 = var10_10;\n break;\n }\n }\n break block53;\n }\n var10_10 = var9_9;\n if (var6_6 >= 0) {\n var10_10 = var9_9;\n if (var9_9 == -1) {\n var10_10 = var5_5;\n }\n }\n var9_9 = var11_11;\n if (var11_11 == -1) {\n var9_9 = var5_5 + 1;\n }\n ++var5_5;\n var11_11 = 1;\n break block54;\n }\n ++var5_5;\n break block55;\n }\n if (var6_6 != -1) break block56;\n var6_6 = -1;\n var8_8 = false;\n var9_9 = -1;\n var10_10 = 0;\n break block44;\n }\n if (!var7_7) break block57;\n var8_8 = false;\n break block44;\n }\n var15_15 = var9_9;\n if (var9_9 == -1) {\n var15_15 = var5_5;\n }\n var14_14 = var0.substring(var6_6, var15_15).trim();\n if (var10_10 != 0 || var1_1 || var2_2) break block58;\n var18_18 = new StringTokenizer((String)var14_14);\n break block59;\n }\n if (var1_1 || !var2_2) {\n InternetAddress.checkAddress((String)var14_14, var8_8, false);\n }\n var13_13 = new InternetAddress();\n var13_13.setAddress((String)var14_14);\n var9_9 = var11_11;\n var6_6 = var12_12;\n if (var11_11 >= 0) {\n var13_13.encodedPersonal = InternetAddress.unquote(var0.substring(var11_11, var12_12).trim());\n var9_9 = -1;\n var6_6 = -1;\n }\n var4_4.addElement(var13_13);\n var12_12 = var6_6;\n var11_11 = var9_9;\n break block60;\n }\n var10_10 = var6_6;\n if (var6_6 == -1) {\n var10_10 = var5_5;\n }\n ++var5_5;\n break block61;\n }\n while (var14_14.hasMoreTokens()) {\n var0 = var14_14.nextToken();\n InternetAddress.checkAddress((String)var0, false, false);\n var13_13 = new InternetAddress();\n var13_13.setAddress((String)var0);\n var4_4.addElement(var13_13);\n }\n }\n var0 = new InternetAddress[var4_4.size()];\n var4_4.copyInto((Object[])var0);\n return var0;\n }\nlbl170: // 2 sources:\n do {\n var10_10 = 1;\n break block44;\n break;\n } while (true);\n }\n while (var5_5 < var3_3 && var11_11 > 0) {\n var15_15 = var0.charAt(var5_5);\n if (var15_15 != 40) {\n if (var15_15 != 41) {\n if (var15_15 == 92) {\n ++var5_5;\n }\n } else {\n --var11_11;\n }\n } else {\n ++var11_11;\n }\n ++var5_5;\n }\n if (var11_11 > 0) throw new AddressException(\"Missing ')'\", (String)var0, var5_5);\n var5_5 = var16_16 = var5_5 - 1;\n var17_17 = var10_10;\n var11_11 = var9_9;\n var15_15 = var12_12;\n if (var12_12 == -1) {\n var15_15 = var16_16;\n var5_5 = var16_16;\n var17_17 = var10_10;\n var11_11 = var9_9;\n }\n ** GOTO lbl207\n }\n do {\n block64 : {\n block63 : {\n block62 : {\n if (var5_5 >= var3_3) break block62;\n var10_10 = var0.charAt(var5_5);\n if (var10_10 == 92) break block63;\n if (var10_10 != 93) break block64;\n }\n if (var5_5 >= var3_3) throw new AddressException(\"Missing ']'\", (String)var0, var5_5);\n var15_15 = var12_12;\n var17_17 = var9_9;\nlbl207: // 2 sources:\n var9_9 = var17_17;\n var12_12 = var15_15;\n ** continue;\n }\n ++var5_5;\n }\n ++var5_5;\n } while (true);\n }\n while (var18_18.hasMoreTokens()) {\n var13_13 = var18_18.nextToken();\n InternetAddress.checkAddress((String)var13_13, false, false);\n var14_14 = new InternetAddress();\n var14_14.setAddress((String)var13_13);\n var4_4.addElement(var14_14);\n }\n }\n var6_6 = -1;\n var8_8 = false;\n var9_9 = -1;\n var10_10 = 0;\n break block44;\n }\n while (var5_5 < var3_3 && (var6_6 = (int)var0.charAt(var5_5)) != 34) {\n if (var6_6 == 92) {\n ++var5_5;\n }\n ++var5_5;\n }\n if (var5_5 >= var3_3) throw new AddressException(\"Missing '\\\"'\", (String)var0, var5_5);\n var15_15 = 1;\n var6_6 = var10_10;\n var10_10 = var15_15;\n }\n ++var5_5;\n } while (true);\n }\n\n public static InternetAddress[] parseHeader(String string2, boolean bl) throws AddressException {\n return InternetAddress.parse(string2, bl, true);\n }\n\n private static String quotePhrase(String string2) {\n int n = string2.length();\n int n2 = 0;\n int n3 = 0;\n boolean bl = false;\n do {\n if (n3 >= n) {\n CharSequence charSequence = string2;\n if (!bl) return charSequence;\n charSequence = new StringBuffer(n + 2);\n ((StringBuffer)charSequence).append('\\\"');\n ((StringBuffer)charSequence).append(string2);\n ((StringBuffer)charSequence).append('\\\"');\n return ((StringBuffer)charSequence).toString();\n }\n char c = string2.charAt(n3);\n if (c == '\\\"' || c == '\\\\') break;\n if (c < ' ' && c != '\\r' && c != '\\n' && c != '\\t' || c >= '' || rfc822phrase.indexOf(c) >= 0) {\n bl = true;\n }\n ++n3;\n } while (true);\n StringBuffer stringBuffer = new StringBuffer(n + 3);\n stringBuffer.append('\\\"');\n n3 = n2;\n do {\n if (n3 >= n) {\n stringBuffer.append('\\\"');\n return stringBuffer.toString();\n }\n char c = string2.charAt(n3);\n if (c == '\\\"' || c == '\\\\') {\n stringBuffer.append('\\\\');\n }\n stringBuffer.append(c);\n ++n3;\n } while (true);\n }", "public IPv4Address(SegmentValueProvider lowerValueProvider, SegmentValueProvider upperValueProvider) {\n\t\tthis(lowerValueProvider, upperValueProvider, null);\n\t}", "long getAddress(ByteBuffer buffer);", "public static String getIPAddress(boolean useIPv4) {\n\t\ttry {\n\t\t\tList<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t\t\tfor (NetworkInterface intf : interfaces) {\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t\t\t\tfor (InetAddress addr : addrs) {\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\n\t\t\t\t\t\t//boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':')<0;\n\n\t\t\t\t\t\tif (useIPv4) {\n\t\t\t\t\t\t\tif (isIPv4)\n\t\t\t\t\t\t\t\treturn sAddr;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isIPv4) {\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n\t\t\t\t\t\t\t\treturn delim<0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} // for now eat exceptions\n\t\treturn \"\";\n\t}", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "String getAddress();", "String getAddress();", "public static String ip(boolean useIPv4) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n\t for (InetAddress addr : addrs) {\n\t if (!addr.isLoopbackAddress()) {\n\t String sAddr = addr.getHostAddress().toUpperCase();\n\t boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr); \n\t if (useIPv4) {\n\t if (isIPv4) \n\t return sAddr;\n\t } else {\n\t if (!isIPv4) {\n\t int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n\t return delim<0 ? sAddr : sAddr.substring(0, delim);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeTooLongMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 33);\n }", "public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress();\n boolean isIPv4 = sAddr.indexOf(':') < 0;\n\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n } catch (Exception ignored) {\n } // for now eat exceptions\n return \"\";\n }", "public com.google.protobuf.ByteString\n getField4Bytes() {\n java.lang.Object ref = field4_;\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 field4_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "byte[] getReplyAddress();", "com.google.protobuf.ByteString\n getField4Bytes();", "public IPv4Address toNetworkAddress() {\n\t\treturn toZeroHost();\n\t}", "public IPv4Address(int address) {\n\t\tthis(address, null);\n\t}", "java.lang.String getMasterIpv4ReservedRange();", "boolean hasClientIpV4();", "private static boolean isValidIpAddress(String value) {\n boolean status = true;\n try {\n Ip4Address ipAddress = Ip4Address.valueOf(value);\n } catch (Exception e) {\n log.debug(\"Invalid IP address string: {}\", value);\n return false;\n }\n\n return status;\n }", "public String getInternalAddress();", "com.google.protobuf.ByteString getResponseAddress();", "private Shape drawNodeTypeIPv4(Graphics2D g2d, Point2D point, String ipv4) {\n StringTokenizer st = new StringTokenizer(ipv4,\".\");\n int x = (int) point.getX(), y = (int) point.getY(), w = 8, h = 8;\n g2d.setColor(RTColorManager.getColor(st.nextToken())); g2d.fillOval(x-w, y-h, 2*w, 2*h);\n g2d.setColor(RTColorManager.getColor(st.nextToken())); g2d.fillOval(x-w+3, y-h+3, 2*w-6, 2*h-6);\n g2d.setColor(RTColorManager.getColor(st.nextToken())); g2d.fillOval(x-w+6, y-h+6, 2*w-12,2*h-12);\n\treturn new Ellipse2D.Double(x - 8, y - 8, 2*w, 2*h);\n }", "public List<String> restoreIpAddressesThreeLoops(String s) {\n List<String> res = new ArrayList<>();\n int length = s.length();\n if (length < 4 || length > 12) return res;\n for (int a = 1; a < 4 && a < length; a++) { //first loop, check first substring only\n String as = s.substring(0, a);\n if (!isValidNumber(as))\n continue; //if current substring is invalid, skip to next stage, since no way to construct IP address from here\n\n for (int b = a + 1; b < a + 4 && b < length; b++) { //second loop, check second substring only\n String bs = s.substring(a, b);\n if (!isValidNumber(bs)) continue;\n\n for (int c = b + 1; c < b + 4 && c < length; c++) { //third loop, check third and forth substring.\n //no need for another loop, since after we consider the third substring, the rest is just the final substring\n String cs = s.substring(b, c);\n if (!isValidNumber(cs)) continue;\n\n String ds = s.substring(c);\n if (!isValidNumber(ds)) continue;\n\n //If we have four valid substrings, we can construct a valid IP address as well\n //Instead of using String.join(), we simply concatenate these substrings for the sake of runtime simplicity\n res.add(as + \".\" + bs + \".\" + cs + \".\" + ds);\n }\n }\n }\n return res;\n }", "@Test\n\tpublic void testIPV4WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://192.168.91.1:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"192.168.91.1\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "@Override\r\n public String getIPAddress() {\r\n return address;\r\n }", "public static String getIPAddress(boolean useIPv4) {\r\n\t\ttry {\r\n\t\t\tList<NetworkInterface> interfaces = Collections\r\n\t\t\t\t\t.list(NetworkInterface.getNetworkInterfaces());\r\n\t\t\tfor (NetworkInterface intf : interfaces) {\r\n\t\t\t\tList<InetAddress> addrs = Collections.list(intf\r\n\t\t\t\t\t\t.getInetAddresses());\r\n\t\t\t\tfor (InetAddress addr : addrs) {\r\n\t\t\t\t\tif (!addr.isLoopbackAddress()) {\r\n\t\t\t\t\t\tString sAddr = addr.getHostAddress();\r\n\t\t\t\t\t\t// boolean isIPv4 =\r\n\t\t\t\t\t\t// InetAddressUtils.isIPv4Address(sAddr);\r\n\t\t\t\t\t\tboolean isIPv4 = sAddr.indexOf(':') < 0;\r\n\r\n\t\t\t\t\t\tif (useIPv4) {\r\n\t\t\t\t\t\t\tif (isIPv4)\r\n\t\t\t\t\t\t\t\treturn sAddr;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!isIPv4) {\r\n\t\t\t\t\t\t\t\tint delim = sAddr.indexOf('%'); // drop ip6 zone\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// suffix\r\n\t\t\t\t\t\t\t\treturn delim < 0 ? sAddr.toUpperCase() : sAddr\r\n\t\t\t\t\t\t\t\t\t\t.substring(0, delim).toUpperCase();\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}\r\n\t\t} catch (Exception ex) {\r\n\t\t} // for now eat exceptions\r\n\t\treturn \"\";\r\n\t}", "public static ResourceRecord fromBytes(byte[] data, int start) throws ProtocolException {\n if (data.length - start < 11) throw new ProtocolException(\"invalid size for resource record \"+(data.length - start));\n ResourceRecord record = new ResourceRecord();\n \n System.out.println(\"RR.fromBytes() - \"+Tools.describeAsHex(data)); \n \n // TODO check for compression\n Labels labels = Tools.extractLabels(data, start);\n int end_of_name = labels.getEnd();\n record.name = labels.toName();\n record.type = DnsRecordType.valueOf(Tools.bytesToIntBigEndian(data[end_of_name+1],data[end_of_name+2]));\n record.rdataClass = DnsClass.valueOf(Tools.bytesToIntBigEndian(data[end_of_name+3],data[end_of_name+4]));\n record.ttl = Tools.bytesToUnsignedIntBigEndian(data, end_of_name+5);\n record.rdlength = Tools.bytesToIntBigEndian(data[end_of_name+9], data[end_of_name+10]);\n System.out.println(\"ttl=\"+record.ttl);\n if (end_of_name+10+record.rdlength > data.length) {\n throw new ProtocolException(\"rdlength extends beyond size of buffer\");\n }\n \n record.rdata = new byte[record.rdlength];\n System.arraycopy(data, end_of_name+10+1, record.rdata, 0, record.rdlength);\n record.length = (end_of_name-start)+ 10 +1+ record.rdlength;\n \n return record;\n }", "public Inet4Address assignNewIPAddress() {\n\t\tbyte[] rawNewAddr = Arrays.copyOf(subnetAddress.getAddress(), 4);\n\n\t\t//TODO find an available IP address and register it to usedAddresses\n\t\t//TODO hardcoding 256 assuming that mask == 24; all trying ones would be in this subnet\n\t\t// starting from 2 since 0 and 1 are assumed to be used already (for network and gateway)\n\t\tfor (int i = 2; i < 256; i++) {\n\t\t\trawNewAddr[3] = (byte) i;\n\t\t\tInet4Address newAddr;\n\n\t\t\ttry {\n\t\t\t\tnewAddr = (Inet4Address) Inet4Address.getByAddress(rawNewAddr);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t// shouldn't happen\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!isAddressAlreadyRegistered(newAddr)) {\n\t\t\t\t//address not registered yet -> let's register\n\t\t\t\tusedAddresses.add(newAddr);\n\t\t\t\treturn newAddr;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private Instruction decodeL4() {\n String subType = nullIsIllegal(json.get(InstructionCodec.SUBTYPE),\n InstructionCodec.SUBTYPE + InstructionCodec.ERROR_MESSAGE).asText();\n\n if (subType.equals(L4ModificationInstruction.L4SubType.TCP_DST.name())) {\n TpPort tcpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.TCP_PORT),\n InstructionCodec.TCP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modTcpDst(tcpPort);\n } else if (subType.equals(L4ModificationInstruction.L4SubType.TCP_SRC.name())) {\n TpPort tcpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.TCP_PORT),\n InstructionCodec.TCP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modTcpSrc(tcpPort);\n } else if (subType.equals(L4ModificationInstruction.L4SubType.UDP_DST.name())) {\n TpPort udpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.UDP_PORT),\n InstructionCodec.UDP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modUdpDst(udpPort);\n } else if (subType.equals(L4ModificationInstruction.L4SubType.UDP_SRC.name())) {\n TpPort udpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.UDP_PORT),\n InstructionCodec.UDP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modUdpSrc(udpPort);\n }\n throw new IllegalArgumentException(\"L4 Instruction subtype \"\n + subType + \" is not supported\");\n }", "@Test\n public void testAddressToOctetsIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = new byte[] {1, 2, 3, 4};\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toOctets(), is(value));\n\n value = new byte[] {0, 0, 0, 0};\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toOctets(), is(value));\n\n value = new byte[] {(byte) 0xff, (byte) 0xff,\n (byte) 0xff, (byte) 0xff};\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toOctets(), is(value));\n }", "public IpAddress getIpAddress2Value() throws JNCException {\n return (IpAddress)getValue(\"ip-address2\");\n }", "@Nullable public abstract String ipAddress();", "public static String getMyIpv4Address() {\n try {\n Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();\n\n for (NetworkInterface netInterface : Collections.list(nets)) {\n Enumeration<InetAddress> inetAddresses = netInterface.getInetAddresses();\n\n if (!netInterface.isUp() || netInterface.isVirtual() || netInterface.isLoopback())\n continue;\n\n for (InetAddress inetAddress : Collections.list(inetAddresses)) {\n if (!inetAddress.isLinkLocalAddress() && !inetAddress.isLoopbackAddress() && (inetAddress instanceof Inet4Address))\n return inetAddress.getHostAddress();\n }\n\n }\n } catch (SocketException e) {\n // ignore it\n }\n\n return \"127.0.0.1\";\n }", "public String getNatAddress();" ]
[ "0.6703858", "0.6641384", "0.6191745", "0.6077866", "0.6056144", "0.59876484", "0.59563303", "0.59360105", "0.5933454", "0.58701533", "0.5819632", "0.5808845", "0.58029836", "0.57140714", "0.5692328", "0.56806856", "0.5677381", "0.56571764", "0.5651683", "0.5636845", "0.5581953", "0.5580849", "0.54463", "0.542242", "0.54167783", "0.5414841", "0.54126704", "0.54121023", "0.536503", "0.536503", "0.536503", "0.536503", "0.536503", "0.536503", "0.53491956", "0.53430027", "0.53166604", "0.53092325", "0.52809525", "0.5268005", "0.5259742", "0.52218395", "0.5218779", "0.51961845", "0.5194748", "0.5178834", "0.517607", "0.51740724", "0.5145817", "0.512788", "0.51257646", "0.5093961", "0.5092428", "0.509185", "0.506584", "0.50604403", "0.50580436", "0.50499713", "0.5036006", "0.5028019", "0.50259763", "0.5008339", "0.50074726", "0.5001394", "0.49939963", "0.49919075", "0.49826586", "0.49818093", "0.49802274", "0.49769324", "0.4976592", "0.49733627", "0.4970912", "0.49627155", "0.49627155", "0.49606043", "0.49528876", "0.4937732", "0.49246472", "0.49245077", "0.49181926", "0.49031764", "0.48987916", "0.48898968", "0.48875076", "0.4886855", "0.48847297", "0.48847055", "0.48844528", "0.48813617", "0.48730746", "0.48727867", "0.48724705", "0.48711497", "0.4868151", "0.48652878", "0.48625588", "0.48437136", "0.48433095", "0.48391807", "0.48369747" ]
0.0
-1
This is a facade for parseLabels().
private String parseQName(ByteBuffer response) { StringBuilder sb = new StringBuilder(); parseLabels(response, sb); sb.deleteCharAt(sb.length() - 1);//remove trailing '.' return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String[] getLabels();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "ArrayList<String> getLabels();", "Label getLabel();", "Label getLabel();", "Label getLabel();", "@Basic\n Map<String, String> getLabelsMap();", "protected String parseLabel(XmlPullParser xpp) throws XmlPullParserException, IOException {\n return parseText(xpp, \"Label\");\n }", "public interface GraphmlLabelParser<LabelType> extends LabelParser<LabelType> {\n\n /**\n * @return a Set of all possible attribute names\n */\n public Set<String> attributes();\n\n /**\n * @param map\n * @return the label represented by the given map\n * @throws ParseException\n */\n public LabelType parseML(Map<String, String> map) throws ParseException;\n\n /**\n * @param label\n * @return the Map representing the given label\n */\n public Map<String, String> serializeML(LabelType label);\n\n /**\n * compares and set the attributes for this Parser\n *\n * @param foundAttributes\n * @return <code>true</code>, if the attributes are possible, otherwise\n * <code>false</code>\n */\n public boolean setAttributes(Set<String> foundAttributes);\n\n}", "DatasetLabel getLabel();", "private void parseLabels(ByteBuffer response, StringBuilder dest) {\n int labelLen = Byte.toUnsignedInt(response.get());\n if (isPointer(labelLen)) {\n int completePointer = ((labelLen & 0x3f) << 8)\n | Byte.toUnsignedInt(response.get());\n int savedPosition = response.position();\n response.position(completePointer);\n parseLabels(response, dest);\n response.position(savedPosition);\n } else if (!isTerminatingOctet(labelLen)) {\n for (int i = 0; i < labelLen; i++) {\n dest.append((char)response.get());\n }\n dest.append('.');\n parseLabels(response, dest);\n }\n //else, it's the terminating octet, simply return.\n }", "java.lang.String getLabel();", "public List getLabels () {\n return labels;\n }", "String getLabel();", "String getLabel();", "public Map<String,List<Label>> getLabels() {\n return this.labels;\n }", "public List<String> getLabels() {\n return this.labels;\n }", "Collection<? extends Object> getLabel();", "Collection<? extends Object> getLabel();", "public List<String> getLabels() {\n return labels;\n }", "com.google.ads.googleads.v6.resources.Label getLabel();", "public List<LabelModel> getCustomLabels();", "public LabelModel getLabel(String aName);", "public static Object getLabelValue(String Label) {\n Object labels = new Items();\n\n try {\n Field field = labels.getClass().getField(Label);\n return field.get(labels);\n } catch (Exception e) {\n return \"PARSE_LABEL_ERROR\";\n }\n }", "public static ArrayList<String> labels() {\n\n\t\tArrayList<String> labels = new ArrayList<String>();\t\n\n\t\t//\t\tlabels.add(\t\t\"_store\"\t\t\t\t\t);\n\t\t//\t\tlabels.add(\t\t\"_dept\"\t\t\t\t\t\t);\n\t\t//\t\tlabels.add(\t\t\"_date\"\t\t\t\t\t\t);\n\t\t//\t\tlabels.add(\t\t\"weekly_Sales\"\t\t\t\t);\n\t\tlabels.add(\t\t\"intcpt_or_wklySales\"\t\t);\n\t\tlabels.add(\t\t\"size\"\t\t\t\t\t\t);\n\t\tlabels.add(\t\t\"tempImprovement\"\t\t\t);\n\t\tlabels.add(\t\t\"hotness\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"coldness\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"fuel_Price\"\t\t\t\t);\n\t\tlabels.add(\t\t\"gasChange\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown1\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown2\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown3\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown4\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown5\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"markDown1_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown2_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown3_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown4_isNA\"\t\t\t);\n//\t\tlabels.add(\t\t\"markDown5_isNA\"\t\t\t);\n\t\tlabels.add(\t\t\"cpi\"\t\t\t\t\t\t);\n\t\tlabels.add(\t\t\"cpiChange\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"unemployment\"\t\t\t\t);\n\t\tlabels.add(\t\t\"unemploymentChange\"\t\t);\n\t\tlabels.add(\t\t\"isSuperBowl\"\t\t\t\t);\n\t\tlabels.add(\t\t\"isTGiving\"\t\t\t\t\t);\n\t\tlabels.add(\t\t\"isLaborDay\"\t\t\t\t);\n\t\tlabels.add(\t\t\"isChristmas\"\t\t\t\t);\n\t\tlabels.add(\t\t\"isAfterHoliday\"\t\t\t);\n\t\tlabels.add(\t\t\"isBeforeHoliday\"\t\t\t);\n//\t\tlabels.add(\t\t\"type_A\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"type_B\"\t\t\t\t\t);\n//\t\tlabels.add(\t\t\"type_C\"\t\t\t\t\t);\n\n\t\tfor (int i = 0; i < Data.numTypes; i++){\n\t\t\tlabels.add(\"isTypes_\" + Data.typesList.get(i));\n\t\t}\n\n\t\tfor (int i = 0; i < Data.numStores; i++){\n\t\t\tlabels.add(\"isStores_\" + Data.storesList.get(i));\n\t\t}\n//\t\tfor (int i = 0; i < Data.numDepts; i++){\n//\t\t\tlabels.add(\"isDepts_\" + Data.deptsList.get(i));\n//\t\t}\n\t\t\n\t\treturn labels;\n\n\t}", "public AccumuloLabelIn(String... labels) {\n super(labels);\n }", "public List<LabelModel> getAllLabels();", "public abstract String getLabel();", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "public java.lang.String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "public LabelToken(String value, int line) {\n super(value, TokenType.LABEL, line);\n this.origin = -1;\n this.originOffset = 0;\n }", "public Token setLabels(Map<String,List<Label>> labels) {\n this.labels = labels;\n return this;\n }", "public UiLabelsFactory getLabels() {\n if (getLabels == null)\n getLabels = new UiLabelsFactory(jsBase + \".labels()\");\n\n return getLabels;\n }", "private void labelNames(){\n VBox holder = labelContainer.get(containerIndex);\n for(int i = 0; i < group.size(); ++i){\n Label s = (Label)holder.getChildren().get(i);\n s.setText(racers.get(group.get(i))[0] + \":\");\n }\n }", "public Object getLabels() {\r\n if (labels != null) {\r\n return labels;\r\n }\r\n ValueBinding vb = getValueBinding(\"labels\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }", "private void addLabels()\n {\n add(my_score_label);\n add(my_level_label);\n add(my_lines_label);\n }", "public Label newLabelFromString(String encodedLabelStr) {\r\n return newLabel(encodedLabelStr);\r\n }", "public List<LabelModel> getSystemLabels();", "public Object getLabel() \n {\n return label;\n }", "com.google.ads.googleads.v6.resources.LabelOrBuilder getLabelOrBuilder();", "public void setLabels(Object labels) {\r\n this.labels = labels;\r\n }", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public Field label(String label);", "@Override\n\t\tpublic Iterable<Label> getLabels() {\n\t\t\treturn null;\n\t\t}", "public List<Label> getLabels()\n\t{\n\t\treturn labels;\n\t}", "public String getLabel() {\r\n return lbl;\r\n }", "protected Object readResolve() {\n\tlabelSet = Label.parse(labelString);\n\treturn this;\n }", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }", "public int\ngetLabels() {\n\treturn labels;\n}", "@Nonnull\n List<Label> getLabels(@Nonnull final Telegraf telegraf);", "public abstract String getLabelText();", "public abstract void addLabel(String str);", "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }", "public static LabelTarget label() { throw Extensions.todo(); }", "@Override\n\tpublic ImageData[] getLabels() \n\t{\n\t\tImageData[] r = new ImageData[256];\t// BJL: Need to revisit this assumption of 256 pixel values\n\t\tfor (int i=0; i < r.length; i++) {\n\t\t\tr[i] = getLabel((double)i);\n\t\t}\n\t\treturn r;\n\t}", "String getLabel() {\n return label;\n }", "protected Label getLabel(String key) {\n\t\treturn labels.get(key);\n\t}", "public LabelGenerator(ArrayList<String> labels ) {\n this.labels = labels;\n }", "private AupLabelTrack readLabelTrack(XMLStreamReader reader) throws XMLStreamException {\n\t\tAupLabelTrack labelTrack = new AupLabelTrack();\n\t\twhile(reader.hasNext()) {\n\t\t\treader.next();\n\t\t\tif(reader.isEndElement() && reader.getLocalName().equals(\"labeltrack\")) {\n\t\t\t\tbreak;\n\t\t\t}else if(reader.isStartElement() && reader.getLocalName().equals(\"label\")) {\n\t\t\t\tString title = null;\n\t\t\t\tString t = null;\n\t\t\t\tString t1 = null;\n\t\t\t\tfor (int i = 0; i < reader.getAttributeCount(); i++) {\n\t\t\t\t\tString name = reader.getAttributeName(i).getLocalPart();\n\t\t\t\t\tif(name.equals(\"t\")) {\n\t\t\t\t\t\tt = reader.getAttributeValue(i);\n\t\t\t\t\t}else if(name.equals(\"t1\")) {\n\t\t\t\t\t\tt1 = reader.getAttributeValue(i);\n\t\t\t\t\t}else if(name.equals(\"title\")) {\n\t\t\t\t\t\ttitle = reader.getAttributeValue(i);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\tAupLabel label = new AupLabel(t,t1,title,mTransformer);\n\t\t\t\tlabelTrack.add(label);\n\t\t\t}\n\t\t}\n\t\treturn labelTrack;\n\t}", "@Override\n public WikiReference parse(String str)\n {\n str = str.trim();\n String reference = null;\n String label = null;\n if (str.contains(\"|\")) {\n reference = str.substring(0, str.indexOf('|'));\n label = str.substring(str.indexOf('|') + 1);\n } else {\n reference = str;\n }\n \n // special case images ...\n if (reference.matches(PREFIX_IMAGE) || reference.matches(PREFIX_FILE)) {\n reference = reference.substring(reference.indexOf(':') + 1);\n if (label != null) {\n WikiParameters params = this.generateImageParams(label);\n if (params.getParameter(\"alt\") != null) {\n label = params.getParameter(\"alt\").getValue();\n } else {\n label = \"\";\n }\n // copy ALT attribute to TITLE attribute, cause it's more user friendly\n if (params.getParameter(\"title\") == null && \"\".equals(label)) {\n params.addParameter(\"title\", label);\n }\n return new WikiReference(reference, label, params);\n }\n return new WikiReference(reference);\n }\n\n // External link with label\n // Case: [http://mediawiki.org MediaWiki]\n WikiReference wikiReference;\n if (-1 != str.indexOf(' ') && (str.contains(\"://\") || str.matches(PREFIX_MAILTO))) {\n String link = str.substring(0, str.indexOf(' ')).trim();\n label = str.substring(str.indexOf(' ') + 1).trim();\n wikiReference = new WikiReference(link, label);\n } else {\n wikiReference = new WikiReference(reference, label);\n }\n return wikiReference;\n\n }", "@Override\n\tpublic void updateLabels() {\n\n\t}", "public Value label(String label) {\n this.label = label;\n return this;\n }", "public final Label getLabel() {\n return label;\n }", "@Override\n public String getLabel() {\n return label;\n }", "public String getLabelText();", "Set<String> getAllLabels() throws IOException;", "public UMLFragmentLabelFigure()\r\n {\r\n setLayoutManager(new FragmentLabelFigureLayoutManager());\r\n setBackgroundColor(ColorConstants.white);\r\n setOpaque(true);\r\n this.labels = new ArrayList<LabelFigure>();\r\n }", "public String getLabel() {\n return label;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\n { \n return label;\n }", "public String getLabel() {\n return label;\n }", "private void normalizeLabels(Map<String, String> catMap) {\n \tif (getField() != null && getField().equals(\"characteristic_uri_str_multi\") && catMap.containsKey(getTooltip())) {\n \t\t//System.out.println(\"needs to prefix [\" + getValue() + \"] with [\" + catMap.get(getTooltip()) + \"]\");\n \t\tString normalizedLabel = catMap.get(getTooltip()) + \": \" + getValue();\n \t\tsetValue(normalizedLabel);\n \t}\n \t\n \tif (!children.isEmpty()) {\n \t\tfor (Pivot child : children) {\n \tchild.normalizeLabels(catMap);\n }\n }\n \t\n }", "public String getLabel()\n {\n return label;\n }", "public static LabelExpression label(LabelTarget labelTarget) { throw Extensions.todo(); }", "private void assignLabelTolist() {\n this.labelList.add(matchLabel1);\n this.labelList.add(matchLabel2);\n this.labelList.add(matchLabel3);\n this.labelList.add(matchLabel4);\n this.labelList.add(matchLabel5);\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\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 label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel(){\n return label;\n }", "public String getLabel() {\n return label;\n }", "@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}", "public String getLabel()\n {\n return label;\n }", "public String getLabel(String uri){\n \n for(Iterator it = listOfLabels.iterator();it.hasNext();){\n SemanticConcept sc = (SemanticConcept) it.next();\n if(sc.getUrl().equals(uri))\n return sc.getName();\n }\n return \" \";\n }", "public String getLabel() {\r\n return label;\r\n }" ]
[ "0.6738906", "0.6608004", "0.6608004", "0.6608004", "0.6608004", "0.6543126", "0.65162504", "0.65162504", "0.65162504", "0.6369045", "0.6288853", "0.625948", "0.60831", "0.6062027", "0.6011483", "0.6010718", "0.5998329", "0.5998329", "0.5985736", "0.59667253", "0.5957631", "0.5957631", "0.59240097", "0.5899211", "0.5896926", "0.58699644", "0.5852333", "0.584844", "0.58158267", "0.5813241", "0.5794347", "0.5760299", "0.5760299", "0.5759355", "0.5728609", "0.5728609", "0.5728609", "0.5728609", "0.57066935", "0.57066935", "0.5696633", "0.5696633", "0.5696633", "0.5696633", "0.56878227", "0.56746155", "0.5661745", "0.56544024", "0.56522256", "0.56454575", "0.56451213", "0.5627391", "0.56215316", "0.5596263", "0.55823636", "0.5576259", "0.5565762", "0.5564329", "0.5540124", "0.5506661", "0.5502716", "0.5498812", "0.54951835", "0.5467309", "0.54636395", "0.5461318", "0.5456188", "0.54504406", "0.54503334", "0.54400355", "0.54269046", "0.54249257", "0.54239225", "0.5404164", "0.53944725", "0.539314", "0.5392607", "0.5384602", "0.5384152", "0.5381247", "0.5374613", "0.53732395", "0.53472334", "0.5347184", "0.5347184", "0.5339037", "0.5339037", "0.5332536", "0.53262645", "0.5320758", "0.53140736", "0.5313179", "0.53123415", "0.5303548", "0.53005344", "0.5298109", "0.52840304", "0.5279901", "0.52785486", "0.52768725", "0.5265563" ]
0.0
-1
Parses labels of a domain name, handling pointers along the way. PostCondition: The response ByteBuffer's position will be on the terminating octet
private void parseLabels(ByteBuffer response, StringBuilder dest) { int labelLen = Byte.toUnsignedInt(response.get()); if (isPointer(labelLen)) { int completePointer = ((labelLen & 0x3f) << 8) | Byte.toUnsignedInt(response.get()); int savedPosition = response.position(); response.position(completePointer); parseLabels(response, dest); response.position(savedPosition); } else if (!isTerminatingOctet(labelLen)) { for (int i = 0; i < labelLen; i++) { dest.append((char)response.get()); } dest.append('.'); parseLabels(response, dest); } //else, it's the terminating octet, simply return. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void parseResponse(byte[] response) {\n int qr = ((response[2] & 0b10000000) >> 7);\n int opcode = ((response[2] & 0b01111000) >> 3);\n int aa = ((response[2] & 0b00000100) >> 2);\n int tc = ((response[2] & 0b00000010) >> 1);\n int rd = (response[2] & 0b00000001);\n int ra = ((response[3] & 0b10000000) >> 7);\n int res1 = ((response[3] & 0b01000000) >> 6);\n int res2 = ((response[3] & 0b00100000) >> 5);\n int res3 = ((response[3] & 0b00010000) >> 4);\n int rcode = (response[3] & 0b00001111);\n int qdcount = (response[4] << 8 | response[5]);\n int ancount = (response[6] << 8 | response[7]);\n int nscount = (response[8] << 8 | response[9]);\n int arcount = (response[10] << 8 | response[11]);\n/*\n System.out.println(\"QR: \" + qr);\n System.out.println(\"OPCODE: \"+ opcode);\n System.out.println(\"AA: \" + aa);\n System.out.println(\"TC: \" + tc);\n System.out.println(\"RD: \" + rd);\n System.out.println(\"RA: \" + ra);\n System.out.println(\"RES1: \" + res1);\n System.out.println(\"RES2: \" + res2);\n System.out.println(\"RES3: \" + res3);\n System.out.println(\"RCODE: \" + rcode);\n System.out.println(\"QDCOUNT: \" + qdcount);\n System.out.println(\"ANCOUNT: \" + ancount);\n System.out.println(\"NSCOUNT: \" + nscount);\n System.out.println(\"ARCOUNT: \" + arcount);\n*/\n // WHO DESIGNED THE DNS PACKET FORMAT AND WHY DID THEY ADD POINTERS?!?\n HashMap<Integer, String> foundLabels = new HashMap<>();\n\n int curByte = 12;\n for(int i = 0; i < qdcount; i++) {\n ArrayList<Integer> currentLabels = new ArrayList<>();\n while(true) {\n if((response[curByte] & 0b11000000) != 0) {\n // Labels have a length value, the first two bits have to be 0.\n System.out.println(\"ERROR\\tInvalid label length in response.\");\n System.exit(1);\n }\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n currentLabels.add(pntr);\n for(Integer n : currentLabels) {\n if(foundLabels.containsKey(n)) {\n foundLabels.put(n, foundLabels.get(n) + \".\" + working.toString());\n } else {\n foundLabels.put(n, working.toString());\n }\n }\n }\n\n // Increment curByte every time we use it, meaning it always points to the byte we haven't used.\n short qtype = (short) ((response[curByte++] << 8) | response[curByte++]);\n short qclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n }\n\n // This for loop handles all the Answer section parts.\n for(int i = 0; i < ancount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n // If it is an A record\n if(type == 1) {\n\n // If it is an invalid length\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n\n // Output the IP record\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tnonauth\");\n }\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte++] & 0xFF;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte] & 0xff;\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tnonauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tnonauth\");\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tnonauth\");\n }\n }\n\n for(int i = 0; i < nscount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n if(type == 1) {\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tauth\");\n }\n // If CNAME\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tauth\");\n\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tauth\");\n }\n }\n }", "private String parseQName(ByteBuffer response) {\n StringBuilder sb = new StringBuilder();\n parseLabels(response, sb);\n sb.deleteCharAt(sb.length() - 1);//remove trailing '.'\n return sb.toString();\n }", "private ArrayList<String> resolve(String domain, InetAddress dnsServer) {\n // Pointer\n int pos = 12;\n // Cmd buffer\n byte[] sendBuffer = new byte[100];\n // Message head\n sendBuffer[0] = ID[0];\n sendBuffer[1] = ID[1];\n sendBuffer[2] = 0x01;\n sendBuffer[3] = 0x00;\n sendBuffer[4] = 0x00;\n sendBuffer[5] = 0x01;\n sendBuffer[6] = 0x00;\n sendBuffer[7] = 0x00;\n sendBuffer[8] = 0x00;\n sendBuffer[9] = 0x00;\n sendBuffer[10] = 0x00;\n sendBuffer[11] = 0x00;\n\n // Add domain\n String[] part = domain.split(\"\\\\.\");\n for (String s : part) {\n if (s == null || s.length() <= 0)\n continue;\n int sLength = s.length();\n sendBuffer[pos++] = (byte) sLength;\n int i = 0;\n char[] val = s.toCharArray();\n while (i < sLength) {\n sendBuffer[pos++] = (byte) val[i++];\n }\n }\n\n // 0 end\n sendBuffer[pos++] = 0x00;\n sendBuffer[pos++] = 0x00;\n // 1 A record query\n sendBuffer[pos++] = 0x01;\n sendBuffer[pos++] = 0x00;\n // Internet record query\n sendBuffer[pos++] = 0x01;\n\n /**\n * UDP Send\n */\n DatagramSocket ds = null;\n byte[] receiveBuffer = null;\n try {\n ds = new DatagramSocket();\n ds.setSoTimeout(TIME_OUT);\n\n // Send\n DatagramPacket dp = new DatagramPacket(sendBuffer, pos, dnsServer, 53);\n ds.send(dp);\n\n // Receive\n dp = new DatagramPacket(new byte[512], 512);\n ds.receive(dp);\n\n // Copy\n int len = dp.getLength();\n receiveBuffer = new byte[len];\n System.arraycopy(dp.getData(), 0, receiveBuffer, 0, len);\n } catch (UnknownHostException e) {\n mError = Cmd.UNKNOWN_HOST_ERROR;\n } catch (SocketException e) {\n mError = Cmd.NETWORK_SOCKET_ERROR;\n e.printStackTrace();\n } catch (IOException e) {\n mError = Cmd.NETWORK_IO_ERROR;\n e.printStackTrace();\n } finally {\n if (ds != null) {\n try {\n ds.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n /**\n * Resolve data\n */\n\n // Check is return\n if (mError != Cmd.SUCCEED || receiveBuffer == null)\n return null;\n\n // ID\n if (receiveBuffer[0] != ID[0] || receiveBuffer[1] != ID[1]\n || (receiveBuffer[2] & 0x80) != 0x80)\n return null;\n\n // Count\n int queryCount = (receiveBuffer[4] << 8) | receiveBuffer[5];\n if (queryCount == 0)\n return null;\n\n int answerCount = (receiveBuffer[6] << 8) | receiveBuffer[7];\n if (answerCount == 0)\n return null;\n\n // Pointer restore\n pos = 12;\n\n // Skip the query part head\n for (int i = 0; i < queryCount; i++) {\n while (receiveBuffer[pos] != 0x00) {\n pos += receiveBuffer[pos] + 1;\n }\n pos += 5;\n }\n\n // Get ip form data\n ArrayList<String> iPs = new ArrayList<>();\n for (int i = 0; i < answerCount; i++) {\n if (receiveBuffer[pos] == (byte) 0xC0) {\n pos += 2;\n } else {\n while (receiveBuffer[pos] != (byte) 0x00) {\n pos += receiveBuffer[pos] + 1;\n }\n pos++;\n }\n byte queryType = (byte) (receiveBuffer[pos] << 8 | receiveBuffer[pos + 1]);\n pos += 8;\n int dataLength = (receiveBuffer[pos] << 8 | receiveBuffer[pos + 1]);\n pos += 2;\n // Add ip\n if (queryType == (byte) 0x01) {\n int address[] = new int[4];\n for (int n = 0; n < 4; n++) {\n address[n] = receiveBuffer[pos + n];\n if (address[n] < 0)\n address[n] += 256;\n }\n iPs.add(String.format(\"%s.%s.%s.%S\", address[0], address[1], address[2], address[3]));\n }\n pos += dataLength;\n }\n return iPs;\n }", "String getDNSAnswers(DataInputStream dataInputStream) throws IOException {\n dataInputStream.readShort();\r\n short hexCode = dataInputStream.readShort();\r\n dataInputStream.readShort();\r\n dataInputStream.readInt();\r\n short addressLength = dataInputStream.readShort();\r\n byte[] address = new byte[addressLength];\r\n dataInputStream.read(address, 0, addressLength);\r\n\r\n Converter converter = new Converter(address, addressLength);\r\n\r\n try {\r\n if (hexCode == 0x0001 || hexCode == 0x0028) {\r\n if (!ipFound) {\t//Checks for IP returned address\r\n ipArrayList.add(converter.convert());\t///Adds to the list\r\n ipFound = true;\r\n return ipArrayList.get(ipArrayList.size() - 1);\r\n } else {\r\n ipArrayList.add(converter.convert());\r\n }\r\n } else if (hexCode == 0x0005) {\r\n if (!cnameFound) {\t//Checks for returned cname\r\n cnameIP = converter.convert();\r\n cnameFound = true;\r\n return cnameIP;\r\n } else\r\n return converter.convert();\r\n }\r\n else if(hexCode == 0x0006) {\r\n hostnameFound = true;\r\n return null;\r\n }\r\n else\r\n return null;\r\n }\r\n catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "private String parseName(byte[] buffer, final int offset, final int length, final ArchiveEntryEncoding encoding) throws IOException {\n int len = length;\n for (; len > 0; len--) {\n if (buffer[offset + len - 1] != 0) {\n break;\n }\n }\n if (len > 0) {\n byte[] b = new byte[len];\n System.arraycopy(buffer, offset, b, 0, len);\n return encoding.decode(b);\n }\n return \"\";\n }", "@Test\n public void testSplitDomain1() {\n System.out.println(\"splitDomain1\");\n String domain = \"www.cars.example.co.uk\";\n Map<URLParser.DomainParts, String> expResult = new HashMap<>();\n expResult.put(URLParser.DomainParts.TLD, \"co.uk\");\n expResult.put(URLParser.DomainParts.DOMAINNAME, \"example\");\n expResult.put(URLParser.DomainParts.SUBDOMAIN, \"www.cars\");\n \n \n Map<URLParser.DomainParts, String> result = URLParser.splitDomain(domain);\n assertEquals(expResult, result);\n }", "private String parseName(byte[] buffer, final int offset, final int length) {\n try {\n return parseName(buffer, offset, length, ArchiveUtils.DEFAULT_ENCODING);\n } catch (IOException ex) {\n try {\n return parseName(buffer, offset, length, ArchiveUtils.FALLBACK_ENCODING);\n } catch (IOException ex2) {\n // impossible\n throw new RuntimeException(ex2);\n }\n }\n }", "private static String getRawLabelString(String s) {\n\t\tint labelEnd = labelEnd(s);\n\t\tif (labelEnd == -1) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tString label = s.substring(0, labelEnd(s));\n\t\t\tint index = 0;\n\t\t\twhile ((index < label.length())\n\t\t\t\t&& ((label.charAt(index) == ' ') || (label.charAt(index) == '\\t'))) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tlabel = label.substring(index, label.length());\n\t\t\treturn label;\n\t\t}\n\t}", "public String getDomainLabel() {\n return domainLabel;\n }", "public final CQLParser.labelName_return labelName() throws RecognitionException {\n CQLParser.labelName_return retval = new CQLParser.labelName_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token i=null;\n Token qs=null;\n\n Object i_tree=null;\n Object qs_tree=null;\n RewriteRuleTokenStream stream_QUOTED_STRING=new RewriteRuleTokenStream(adaptor,\"token QUOTED_STRING\");\n RewriteRuleTokenStream stream_ID=new RewriteRuleTokenStream(adaptor,\"token ID\");\n\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:264:2: ( (i= ID | qs= QUOTED_STRING ) -> ^( LABEL ( $i)? ( $qs)? ) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:264:4: (i= ID | qs= QUOTED_STRING )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:264:4: (i= ID | qs= QUOTED_STRING )\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==ID) ) {\n alt12=1;\n }\n else if ( (LA12_0==QUOTED_STRING) ) {\n alt12=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n }\n switch (alt12) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:264:5: i= ID\n {\n i=(Token)match(input,ID,FOLLOW_ID_in_labelName782); \n stream_ID.add(i);\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:264:10: qs= QUOTED_STRING\n {\n qs=(Token)match(input,QUOTED_STRING,FOLLOW_QUOTED_STRING_in_labelName786); \n stream_QUOTED_STRING.add(qs);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: qs, i\n // token labels: qs, i\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_qs=new RewriteRuleTokenStream(adaptor,\"token qs\",qs);\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 // 265:3: -> ^( LABEL ( $i)? ( $qs)? )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:265:6: ^( LABEL ( $i)? ( $qs)? )\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(LABEL, \"LABEL\"), root_1);\n\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:265:14: ( $i)?\n if ( stream_i.hasNext() ) {\n adaptor.addChild(root_1, stream_i.nextNode());\n\n }\n stream_i.reset();\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:265:18: ( $qs)?\n if ( stream_qs.hasNext() ) {\n adaptor.addChild(root_1, stream_qs.nextNode());\n\n }\n stream_qs.reset();\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\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 }\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 static byte[] parseIPv4Literal(String s) {\n s = s != null ? s.trim() : \"\";\n String[] toks = s.split(\"\\\\.\");\n byte[] ip = new byte[4];\n if (toks.length == 4) {\n for (int i = 0; i < ip.length; i++) {\n try {\n int val = Integer.parseInt(toks[i]);\n if (val < 0 || val > 255) {\n return null;\n }\n ip[i] = (byte) val;\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip;\n }\n return null;\n }", "private String parseDescrName(String line) {\n\t\t// d1f74a_ 201-209;3-11 DGAIGSTFN LKGIFSALL #7\n\t\t// d1nvra_ 226-253;184-204 IDSAPLALL GIVLTAMLA 0_0:-5_-8 0.477587\n\t\t// GroupName is created as name of domain (remove proceeding 'd') + pdb\n\t\t// number of the first residue\n\t\t// in the second segment (3-11 in the example) increased by 10000 + '_'\n\t\t// + number of cluster (7 in the case)\n\t\t// the residue with fasta number 3 is translated into address A4_ - so\n\t\t// the pdb number is 4\n\t\t// finally the group name will be 1f74a_#10004_7\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tString dom = tokens[0].substring(1);\n\t\tString noClust = \"\";\n\t\t@SuppressWarnings(\"unused\")\n\t\tint shift1 = 0; // segment1 shift\n\t\tint shift2 = 0; // segment2 shift\n\t\ttry {\n\t\t\tif (tokens[4].startsWith(\"#\")) {\n\t\t\t\tnoClust = \"_\" + tokens[4].substring(1);\n\t\t\t} else {\n\t\t\t\tnoClust = \"\";\n\t\t\t}\n\t\t\tif (tokens[4].startsWith(\"0_0\")) {\n\t\t\t\ttokens[4] = tokens[4].replaceFirst(\"0_0:\", \"\");\n\t\t\t\tString[] shifts = tokens[4].split(\"_\");\n\t\t\t\tshift1 = Integer.valueOf(shifts[0]);\n\t\t\t\tshift2 = Integer.valueOf(shifts[1]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// do nothing keep default values\n\t\t}\n\t\t// get the first number of second segment : e.g. 3 from 201-209;3-11\n\t\tString[] tokensA = tokens[1].split(\";\");\n\t\tString[] tokensB = tokensA[1].split(\"-\");\n\t\tInteger fastaNo = (Integer.valueOf(tokensB[0]) - shift2 >= 0 ? Integer\n\t\t\t\t.valueOf(tokensB[0]) - shift2 : Integer.valueOf(tokensB[0]));\n\n\t\t// get pdb address\n\t\tString pdbResAddr = hashResMapInt2Str.get(dom).get(fastaNo);\n\t\tpdbResAddr = pdbResAddr.substring(1, pdbResAddr.length() - 1);\n\t\tint pdbResNo = Integer.valueOf(pdbResAddr);\n\n\t\treturn (dom + \"#\" + (10000 + pdbResNo) + noClust);\n\t}", "public static String[] getDblpUrlEnding( String name ) {\r\n if( name == null ) {\r\n return null;\r\n }; // if\r\n \r\n name = StringEscapeUtils.escapeHtml( name );\r\n \r\n String modifiedName = null;\r\n String retName = name;\r\n \r\n // get the index of the last space in the name\r\n int index = name.lastIndexOf( \" \" );\r\n\r\n if( index == -1 ) {\r\n modifiedName = name;\r\n }\r\n else {\r\n String lastName = name.substring( index + 1, name.length() );\r\n Integer number = null;\r\n try {\r\n number = new Integer( lastName );\r\n }\r\n catch( Exception e ) {\r\n number = null;\r\n }; // try\r\n if( number == null ) {\r\n modifiedName = lastName.substring( 0, 1 ).toLowerCase() + \"/\" + lastName + \":\" + name.substring( 0, index );\r\n }\r\n else {\r\n //System.err.println( \"HERE lastName: -->\" + lastName + \"<-- number: \" + number );\r\n int index2 = name.lastIndexOf( \" \", index - 1 );\r\n lastName = name.substring( index2 + 1, name.length() );\r\n modifiedName = lastName.substring( 0, 1 ).toLowerCase() + \"/\" + lastName + \":\" + name.substring( 0, index2 );\r\n retName = name.substring( 0, index );\r\n //System.err.println( \"HERE lastName: \" + lastName + \", modifiedName: -->\" + modifiedName + \"<--\" );\r\n //System.err.println( \"HERE label: -->\" + name.substring( 0, index ) + \"<--\" );\r\n }; // if\r\n }; // if\r\n \r\n modifiedName = modifiedName.replace( ' ', '_' );\r\n modifiedName = modifiedName.replace( '.', '=' );\r\n modifiedName = modifiedName.replace( '-', '=' );\r\n modifiedName = modifiedName.replace( '&', '=' );\r\n modifiedName = modifiedName.replace( ';', '=' );\r\n modifiedName = modifiedName.replace( '\\'', '=' );\r\n \r\n return new String[] { modifiedName, \r\n StringEscapeUtils.escapeXml( StringEscapeUtils.unescapeHtml( retName ) ) };\r\n }", "private String resolveLabel(String aLabel){\n\t\t// Pre-condition\n\t\tif(aLabel == null) return aLabel;\n\t\t// Main code\n\t\tif (aLabel == \"univ\") return null;\n\t\tString actualName = aLabel.contains(\"this/\")?aLabel.substring(\"this/\".length()):aLabel;\n\t\treturn actualName;\n\t}", "@Test\n public void testSplitDomain2() {\n System.out.println(\"splitDomain2\");\n String domain = \"example.com\";\n Map<URLParser.DomainParts, String> expResult = new HashMap<>();\n expResult.put(URLParser.DomainParts.TLD, \"com\");\n expResult.put(URLParser.DomainParts.DOMAINNAME, \"example\");\n expResult.put(URLParser.DomainParts.SUBDOMAIN, null);\n \n \n Map<URLParser.DomainParts, String> result = URLParser.splitDomain(domain);\n assertEquals(expResult, result);\n }", "public String normalizeDomainName( final String name );", "@Test\n public void testSplitDomain3() {\n System.out.println(\"splitDomain3\");\n String domain = \"www.example.com\";\n Map<URLParser.DomainParts, String> expResult = new HashMap<>();\n expResult.put(URLParser.DomainParts.TLD, \"com\");\n expResult.put(URLParser.DomainParts.DOMAINNAME, \"example\");\n expResult.put(URLParser.DomainParts.SUBDOMAIN, \"www\");\n \n \n Map<URLParser.DomainParts, String> result = URLParser.splitDomain(domain);\n assertEquals(expResult, result);\n }", "private int getAddress(String label) {\n for (int i = 0; i < symbols.length; i++) {\n if (symbols[i].equals(label)) {\n return addresses[i];\n }\n }\n return NO_LABEL;\n }", "private String parseDN(byte[] buffer, TLV dn) {\n TLV attribute;\n TLV type;\n TLV value;\n StringBuffer name = new StringBuffer(256);\n\n /*\n * Name ::= CHOICE { RDNSequence } # CHOICE does not encoded\n *\n * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName\n *\n * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue\n *\n * AttributeTypeAndValue ::= SEQUENCE {\n * type AttributeType,\n * value AttributeValue }\n *\n * AttributeType ::= OBJECT IDENTIFIER\n *\n * AttributeValue ::= ANY DEFINED BY AttributeType\n *\n * basically this means that each attribute value is 3 levels down\n */\n\n // sequence drop down a level\n attribute = dn.child;\n \n while (attribute != null) {\n if (attribute != dn.child) {\n name.append(\";\");\n }\n\n /*\n * we do not handle relative distinguished names yet\n * which should not be used by CAs anyway\n * so only take the first element of the sequence\n */\n\n type = attribute.child.child;\n\n /*\n * At this point we tag the name component, e.g. C= or hex\n * if unknown.\n */\n if ((type.length == 3) && (buffer[type.valueOffset] == 0x55) &&\n (buffer[type.valueOffset + 1] == 0x04)) {\n // begins with id-at, so try to see if we have a label\n int temp = buffer[type.valueOffset + 2] & 0xFF;\n if ((temp < AttrLabel.length) &&\n (AttrLabel[temp] != null)) {\n name.append(AttrLabel[temp]);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n } else if (TLV.byteMatch(buffer, type.valueOffset,\n type.length, EMAIL_ATTR_OID,\n 0, EMAIL_ATTR_OID.length)) {\n name.append(EMAIL_ATTR_LABEL);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n\n name.append(\"=\");\n\n value = attribute.child.child.next;\n if (value.type == TLV.PRINTSTR_TYPE ||\n value.type == TLV.TELETEXSTR_TYPE ||\n value.type == TLV.UTF8STR_TYPE ||\n value.type == TLV.IA5STR_TYPE ||\n value.type == TLV.UNIVSTR_TYPE) {\n try {\n name.append(new String(buffer, value.valueOffset,\n value.length, \"UTF-8\"));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e.toString());\n }\n } else {\n name.append(TLV.hexEncode(buffer, value.valueOffset,\n value.length, -1));\n }\n\n attribute = attribute.next;\n }\n\n return name.toString();\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "private void decodeName(ByteBuffer buffer) throws Exception {\n byte b = 0;\n int head = buffer.position();\n while (buffer.hasRemaining()) {\n b = buffer.get();\n if (b == '=' || b == '&') {\n context.done = true;\n break;\n } else if (b == '+' || b == '%' || b > 127) {\n context.nameNeedDecode = true;\n }\n }\n\n int len = buffer.position() - head;\n if (context.done) {\n len--;\n }\n\n if (len > 0) {\n context.name.write(buffer.array(), buffer.arrayOffset() + head, len);\n }\n\n if (context.done) {\n if (b == '&') {\n addParameter();\n context.reset();\n state = State.NAME;\n } else {\n state = State.VALUE;\n }\n context.done = false;\n }\n }", "protected String parseLabel(XmlPullParser xpp) throws XmlPullParserException, IOException {\n return parseText(xpp, \"Label\");\n }", "public static String getLabel(String line) throws Exception {\n\t\tif(line.equalsIgnoreCase(\"\")) return null;\n\t\tString[] st = FileChecker.splitNonRegex(line, \" \");\n\t\tString labelFound = null;\n//\t\tif(line.charAt(0) == '%') return null;\n\t\tfor(String s:st) {\n\t\t\tif(s.equalsIgnoreCase(\"\")) continue;\n\t\t\ttry {\n\t\t\t\tOpCodes.getOpCode(s);\n\t\t\t\treturn labelFound;\n\t\t\t}catch(Exception e) {\n\t\t\t\ts = FileChecker.replaceAll(s, \":\", \"\");\n\t\t\t\tif(Mem.getTypeInt(s)!= Integer.MIN_VALUE)\n\t\t\t\t\tthrow new Exception(\"Expected label not number: \"+s+\" (previous label=\"+labelFound+\") L= \"+line);\n\t\t\t\tif(labelFound != null)\n\t\t\t\t\tthrow new Exception(\"Expected a command: \"+s+\" (previous label=\"+labelFound+\")\");\n\t\t\t\tlabelFound = s;\n\t\t\t}\n\t\t}\n\t\treturn labelFound;\n\t}", "public void getDomain(){\n String requestDomain = IPAddressTextField.getText();\n Connection conn = new Connection();\n\n String ip = conn.getDomain(requestDomain);\n\n output.writeln(requestDomain + \" --> \" + ip);\n }", "private ServerAddress parseResponse(String response, InetAddress address) {\n\n\t\tHashMap<String, String> values = parseBDP1Xml(response);\n\t\tif (values == null)\n\t\t\treturn null;\n\n\t\t// Validate \"response\" and \"signature\"\n\t\tString challenge_response = values.get(\"response\");\n\t\tString signature = values.get(\"signature\");\n\t\tif (challenge_response != null && signature != null) {\n\t\t\tString legit_response = getSignature(challenge_response)\n\t\t\t\t\t.toLowerCase();\n\t\t\tif (!legit_response.equals(signature.toLowerCase())) {\n\t\t\t\tLog.e(TAG, \"Signature verification failed \" + legit_response\n\t\t\t\t\t\t+ \" vs \" + signature);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\t// Validate \"cmd\"\n\t\tString cmd = values.get(\"cmd\");\n\t\tif (cmd == null || !cmd.equals(\"found\")) {\n\t\t\t// We'll get the discovery packet we sent out, where cmd=\"discovery\"\n\t\t\tLog.e(TAG, \"Bad cmd \" + response);\n\t\t\treturn null;\n\t\t}\n\n\t\t// Validate \"application\"\n\t\tString app = values.get(\"application\");\n\t\tif (app == null || !app.equals(\"boxee\")) {\n\t\t\tLog.e(TAG, \"Bad app \" + app);\n\t\t\treturn null;\n\t\t}\n\n\t\tServerAddress server = new ServerAddress(\"Boxee\", \n\t\t\t\tvalues.get(\"version\"), values.get(\"name\"),\n\t\t\t\t\"true\".equalsIgnoreCase(values.get(\"httpAuthRequired\")),\n\t\t\t\taddress, Integer.parseInt(values.get(\"httpPort\")));\n\t\tLog.d(TAG, \"Discovered server \" + server);\n\t\treturn server;\n\t}", "private String[] getChartLabels(String[] outputLabels){\n\t\tString[] chartLabels = new String[2];\n\t\tif (outputLabels[1].equalsIgnoreCase(\"At stop\")){\n\t\t\tchartLabels[0] = \"Stops\";\n\t\t\tchartLabels[1] = \"Routes\";\n\t\t}\n\t\telse {\n\t\t\tchartLabels[0] = \"Routes\";\n\t\t\tchartLabels[1] = \"Stops\";\n\t\t}\n\t\treturn chartLabels;\n\t}", "private void labelNames(){\n VBox holder = labelContainer.get(containerIndex);\n for(int i = 0; i < group.size(); ++i){\n Label s = (Label)holder.getChildren().get(i);\n s.setText(racers.get(group.get(i))[0] + \":\");\n }\n }", "private void handleRawDnsResponse(IpPacket parsedPacket, DatagramSocket dnsSocket) throws IOException {\n byte[] datagramData = new byte[1024];\n DatagramPacket replyPacket = new DatagramPacket(datagramData, datagramData.length);\n dnsSocket.receive(replyPacket);\n dnsPacketProxy.handleDnsResponse(parsedPacket, datagramData);\n }", "void handlePacket(String devReplyStr);", "static int check_for_label(String instruction){\n\t\tif(instruction.length()<=4)//For memory values\n\t\t\treturn 0;\n\t\tString first_code = instruction.split(\" \")[0];\n\t\tint len = -1;\n\t\tfor(int i=0;i<possible_codes.length;i++)\n\t\t\tif(possible_codes[i].equals(first_code))\n\t\t\t\tlen = 0;\n\t\tif(len!=0){\n\t\t\tlabels.put(first_code,address);\n\t\t\tlen = first_code.length()+1;\n\t\t}\n\t\treturn len;\n\t}", "String label(String line) {\n\t\tint idx = line.lastIndexOf(':');\n\t\tint idxQuote = line.lastIndexOf('\\'');\n\t\tif (idx < 0 || idx < idxQuote) return line.trim();\n\n\t\tString label = line.substring(0, idx).trim();\n\t\tString rest = line.substring(idx + 1).trim();\n\n\t\t// Is 'label' a function signature?\n\t\tif (label.indexOf('(') > 0 && label.indexOf(')') > 0) {\n\t\t\tbdsvm.updateFunctionPc(label, pc());\n\t\t} else {\n\t\t\tbdsvm.addLabel(label, pc());\n\t\t}\n\n\t\treturn rest.trim();\n\t}", "public void decodeIndexEntry(IEntryResult entryResult){\n char[] word = entryResult.getWord();\n int size = word.length;\n int tagLength = REF.length;\n int nameLength = CharOperation.indexOf(SEPARATOR, word, tagLength);\n if (nameLength < 0) nameLength = size;\n this.decodedSegment = CharOperation.subarray(word, tagLength, nameLength); }", "public static ArrayList<Packet> segmentation(String request) throws Exception {\r\n String fileName = parseRequest(request);\r\n ArrayList<Packet> packetList = new ArrayList<Packet>();\r\n int sequenceNum = 0;\r\n if (fileName == null) {\r\n System.out.println(\"That's not an HTTP request!\");\r\n return null;\r\n }\r\n InputStream fileInput = new FileInputStream(fileName);\r\n int bytesRead = 0;\r\n String headerInfo = \"HTTP/1.0 200 Document Follows \\r\\nContent-Type: text/plain\\r\\nContent-Length: \" \r\n + new File(fileName).length() + \"\\r\\n\\r\\n\";\r\n int headerSize = headerInfo.length();\r\n int numDataBytes = Packet.maxDataBytes - headerSize;\r\n byte[] packetData = Arrays.copyOfRange(headerInfo.getBytes(), 0, Packet.maxDataBytes);\r\n \r\n // Read in file in segments, add to packetList\r\n while ((bytesRead = fileInput.read(packetData, headerSize, numDataBytes)) != -1) {\r\n int dataLength = bytesRead + headerSize;\r\n packetList.add(new Packet(sequenceNum, Arrays.copyOfRange(packetData, 0, dataLength), dataLength));\r\n sequenceNum++;\r\n headerSize = 0;\r\n numDataBytes = Packet.maxDataBytes;\r\n }\r\n \r\n fileInput.close();\r\n System.out.println(\"Closed the file.\");\r\n \r\n // Add last packet with null character:\r\n packetList.add(new Packet(sequenceNum, new byte[] {0b0}));\r\n \r\n return packetList;\r\n }", "public static StringBuffer parseName(byte[] header, long length) {\n int end = (int) length;\n int i;\n for (i = 0; i < end; ++i)\n if (header[i] == 0)\n break;\n byte[] stringBuffer = Arrays.copyOfRange(header, 0, (int)(length));\n StringBuffer result = new StringBuffer(new String(stringBuffer));\n return result;\n }", "public abstract String[] getLabels();", "com.google.protobuf.ByteString\n getLabelBytes();", "public ListDNS labelSelector(String labelSelector) {\n put(\"labelSelector\", labelSelector);\n return this;\n }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "public void addDomainName() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n null,\n childrenNames());\n }", "@kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000T\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\t\\n\\u0002\\b\\u0007\\n\\u0002\\u0010\\u000b\\n\\u0002\\b\\u0005\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0005\\n\\u0002\\u0010 \\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\n\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\bv\\u0018\\u00002\\u00020\\u0001:\\u0004./01J\\b\\u0010,\\u001a\\u00020\\u000fH&J\\b\\u0010-\\u001a\\u00020\\u000fH&R\\u0014\\u0010\\u0002\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0004\\u0010\\u0005R\\u0012\\u0010\\u0006\\u001a\\u00020\\u0007X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\b\\u0010\\tR\\u0014\\u0010\\n\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u000b\\u0010\\u0005R\\u0014\\u0010\\f\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\r\\u0010\\u0005R\\u0012\\u0010\\u000e\\u001a\\u00020\\u000fX\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u000e\\u0010\\u0010R\\u0012\\u0010\\u0011\\u001a\\u00020\\u000fX\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0011\\u0010\\u0010R\\u0014\\u0010\\u0012\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0013\\u0010\\u0005R\\u0014\\u0010\\u0014\\u001a\\u0004\\u0018\\u00010\\u0015X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0016\\u0010\\u0017R\\u0014\\u0010\\u0018\\u001a\\u0004\\u0018\\u00010\\u0019X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u001a\\u0010\\u001bR\\u0014\\u0010\\u001c\\u001a\\u0004\\u0018\\u00010\\u001dX\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u001e\\u0010\\u001fR\\u0014\\u0010 \\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b!\\u0010\\u0005R\\u0018\\u0010\\\"\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030#X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b$\\u0010%R\\u0014\\u0010&\\u001a\\u0004\\u0018\\u00010\\'X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b(\\u0010)R\\u0018\\u0010*\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030#X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b+\\u0010%\\u0082\\u0001\\u000223\\u00a8\\u00064\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent;\", \"Lcom/stripe/android/model/StripeModel;\", \"clientSecret\", \"\", \"getClientSecret\", \"()Ljava/lang/String;\", \"created\", \"\", \"getCreated\", \"()J\", \"description\", \"getDescription\", \"id\", \"getId\", \"isConfirmed\", \"\", \"()Z\", \"isLiveMode\", \"lastErrorMessage\", \"getLastErrorMessage\", \"nextActionData\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"getNextActionData\", \"()Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"nextActionType\", \"Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"getNextActionType\", \"()Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"paymentMethod\", \"Lcom/stripe/android/model/PaymentMethod;\", \"getPaymentMethod\", \"()Lcom/stripe/android/model/PaymentMethod;\", \"paymentMethodId\", \"getPaymentMethodId\", \"paymentMethodTypes\", \"\", \"getPaymentMethodTypes\", \"()Ljava/util/List;\", \"status\", \"Lcom/stripe/android/model/StripeIntent$Status;\", \"getStatus\", \"()Lcom/stripe/android/model/StripeIntent$Status;\", \"unactivatedPaymentMethods\", \"getUnactivatedPaymentMethods\", \"requiresAction\", \"requiresConfirmation\", \"NextActionData\", \"NextActionType\", \"Status\", \"Usage\", \"Lcom/stripe/android/model/PaymentIntent;\", \"Lcom/stripe/android/model/SetupIntent;\", \"payments-core_release\"})\npublic abstract interface StripeIntent extends com.stripe.android.model.StripeModel {\n \n /**\n * Unique identifier for the object.\n */\n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getId();\n \n /**\n * Time at which the object was created. Measured in seconds since the Unix epoch.\n */\n public abstract long getCreated();\n \n /**\n * An arbitrary string attached to the object. Often useful for displaying to users.\n */\n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getDescription();\n \n /**\n * Has the value true if the object exists in live mode or the value false if the object exists\n * in test mode.\n */\n public abstract boolean isLiveMode();\n \n /**\n * The expanded [PaymentMethod] represented by [paymentMethodId].\n */\n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();\n \n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getPaymentMethodId();\n \n /**\n * The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.\n */\n @org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();\n \n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.StripeIntent.NextActionType getNextActionType();\n \n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getClientSecret();\n \n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.StripeIntent.Status getStatus();\n \n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.StripeIntent.NextActionData getNextActionData();\n \n /**\n * Whether confirmation has succeeded and all required actions have been handled.\n */\n public abstract boolean isConfirmed();\n \n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getLastErrorMessage();\n \n /**\n * Payment types that have not been activated in livemode, but have been activated in testmode.\n */\n @org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getUnactivatedPaymentMethods();\n \n public abstract boolean requiresAction();\n \n public abstract boolean requiresConfirmation();\n \n /**\n * Type of the next action to perform.\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0012\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0010\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\f\\b\\u0086\\u0001\\u0018\\u0000 \\u000e2\\b\\u0012\\u0004\\u0012\\u00020\\u00000\\u0001:\\u0001\\u000eB\\u000f\\b\\u0002\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\b\\u0010\\u0007\\u001a\\u00020\\u0003H\\u0016R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006j\\u0002\\b\\bj\\u0002\\b\\tj\\u0002\\b\\nj\\u0002\\b\\u000bj\\u0002\\b\\fj\\u0002\\b\\r\\u00a8\\u0006\\u000f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"\", \"code\", \"\", \"(Ljava/lang/String;ILjava/lang/String;)V\", \"getCode\", \"()Ljava/lang/String;\", \"toString\", \"RedirectToUrl\", \"UseStripeSdk\", \"DisplayOxxoDetails\", \"AlipayRedirect\", \"BlikAuthorize\", \"WeChatPayRedirect\", \"Companion\", \"payments-core_release\"})\n public static enum NextActionType {\n /*public static final*/ RedirectToUrl /* = new RedirectToUrl(null) */,\n /*public static final*/ UseStripeSdk /* = new UseStripeSdk(null) */,\n /*public static final*/ DisplayOxxoDetails /* = new DisplayOxxoDetails(null) */,\n /*public static final*/ AlipayRedirect /* = new AlipayRedirect(null) */,\n /*public static final*/ BlikAuthorize /* = new BlikAuthorize(null) */,\n /*public static final*/ WeChatPayRedirect /* = new WeChatPayRedirect(null) */;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String code = null;\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.NextActionType.Companion Companion = null;\n \n NextActionType(java.lang.String code) {\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getCode() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u001a\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0080\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0019\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\b\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0006H\\u0000\\u00a2\\u0006\\u0002\\b\\u0007\\u00a8\\u0006\\b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionType$Companion;\", \"\", \"()V\", \"fromCode\", \"Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"code\", \"\", \"fromCode$payments_core_release\", \"payments-core_release\"})\n public static final class Companion {\n \n private Companion() {\n super();\n }\n \n @org.jetbrains.annotations.Nullable()\n public final com.stripe.android.model.StripeIntent.NextActionType fromCode$payments_core_release(@org.jetbrains.annotations.Nullable()\n java.lang.String code) {\n return null;\n }\n }\n }\n \n /**\n * - [The Intent State Machine - Intent statuses](https://stripe.com/docs/payments/intents#intent-statuses)\n * - [PaymentIntent.status API reference](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status)\n * - [SetupIntent.status API reference](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-status)\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0012\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0010\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\r\\b\\u0086\\u0001\\u0018\\u0000 \\u000f2\\b\\u0012\\u0004\\u0012\\u00020\\u00000\\u0001:\\u0001\\u000fB\\u000f\\b\\u0002\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\b\\u0010\\u0007\\u001a\\u00020\\u0003H\\u0016R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006j\\u0002\\b\\bj\\u0002\\b\\tj\\u0002\\b\\nj\\u0002\\b\\u000bj\\u0002\\b\\fj\\u0002\\b\\rj\\u0002\\b\\u000e\\u00a8\\u0006\\u0010\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Status;\", \"\", \"code\", \"\", \"(Ljava/lang/String;ILjava/lang/String;)V\", \"getCode\", \"()Ljava/lang/String;\", \"toString\", \"Canceled\", \"Processing\", \"RequiresAction\", \"RequiresConfirmation\", \"RequiresPaymentMethod\", \"Succeeded\", \"RequiresCapture\", \"Companion\", \"payments-core_release\"})\n public static enum Status {\n /*public static final*/ Canceled /* = new Canceled(null) */,\n /*public static final*/ Processing /* = new Processing(null) */,\n /*public static final*/ RequiresAction /* = new RequiresAction(null) */,\n /*public static final*/ RequiresConfirmation /* = new RequiresConfirmation(null) */,\n /*public static final*/ RequiresPaymentMethod /* = new RequiresPaymentMethod(null) */,\n /*public static final*/ Succeeded /* = new Succeeded(null) */,\n /*public static final*/ RequiresCapture /* = new RequiresCapture(null) */;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String code = null;\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.Status.Companion Companion = null;\n \n Status(java.lang.String code) {\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getCode() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u001a\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0080\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0019\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\b\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0006H\\u0000\\u00a2\\u0006\\u0002\\b\\u0007\\u00a8\\u0006\\b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Status$Companion;\", \"\", \"()V\", \"fromCode\", \"Lcom/stripe/android/model/StripeIntent$Status;\", \"code\", \"\", \"fromCode$payments_core_release\", \"payments-core_release\"})\n public static final class Companion {\n \n private Companion() {\n super();\n }\n \n @org.jetbrains.annotations.Nullable()\n public final com.stripe.android.model.StripeIntent.Status fromCode$payments_core_release(@org.jetbrains.annotations.Nullable()\n java.lang.String code) {\n return null;\n }\n }\n }\n \n /**\n * See [setup_intent.usage](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-usage) and\n * [Reusing Cards](https://stripe.com/docs/payments/cards/reusing-cards).\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0012\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0010\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\t\\b\\u0086\\u0001\\u0018\\u0000 \\u000b2\\b\\u0012\\u0004\\u0012\\u00020\\u00000\\u0001:\\u0001\\u000bB\\u000f\\b\\u0002\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\b\\u0010\\u0007\\u001a\\u00020\\u0003H\\u0016R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006j\\u0002\\b\\bj\\u0002\\b\\tj\\u0002\\b\\n\\u00a8\\u0006\\f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Usage;\", \"\", \"code\", \"\", \"(Ljava/lang/String;ILjava/lang/String;)V\", \"getCode\", \"()Ljava/lang/String;\", \"toString\", \"OnSession\", \"OffSession\", \"OneTime\", \"Companion\", \"payments-core_release\"})\n public static enum Usage {\n /*public static final*/ OnSession /* = new OnSession(null) */,\n /*public static final*/ OffSession /* = new OffSession(null) */,\n /*public static final*/ OneTime /* = new OneTime(null) */;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String code = null;\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.Usage.Companion Companion = null;\n \n Usage(java.lang.String code) {\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getCode() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u001a\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0080\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0019\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\b\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0006H\\u0000\\u00a2\\u0006\\u0002\\b\\u0007\\u00a8\\u0006\\b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Usage$Companion;\", \"\", \"()V\", \"fromCode\", \"Lcom/stripe/android/model/StripeIntent$Usage;\", \"code\", \"\", \"fromCode$payments_core_release\", \"payments-core_release\"})\n public static final class Companion {\n \n private Companion() {\n super();\n }\n \n @org.jetbrains.annotations.Nullable()\n public final com.stripe.android.model.StripeIntent.Usage fromCode$payments_core_release(@org.jetbrains.annotations.Nullable()\n java.lang.String code) {\n return null;\n }\n }\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000&\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0007\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\b6\\u0018\\u00002\\u00020\\u0001:\\u0006\\u0003\\u0004\\u0005\\u0006\\u0007\\bB\\u0007\\b\\u0004\\u00a2\\u0006\\u0002\\u0010\\u0002\\u0082\\u0001\\u0006\\t\\n\\u000b\\f\\r\\u000e\\u00a8\\u0006\\u000f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"Lcom/stripe/android/model/StripeModel;\", \"()V\", \"AlipayRedirect\", \"BlikAuthorize\", \"DisplayOxxoDetails\", \"RedirectToUrl\", \"SdkData\", \"WeChatPayRedirect\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$DisplayOxxoDetails;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$RedirectToUrl;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$AlipayRedirect;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$BlikAuthorize;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$WeChatPayRedirect;\", \"payments-core_release\"})\n public static abstract class NextActionData implements com.stripe.android.model.StripeModel {\n \n private NextActionData() {\n super();\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u00004\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\r\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\'\\u0012\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\n\\b\\u0002\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u0012\\n\\b\\u0002\\u0010\\u0006\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\u0002\\u0010\\u0007J\\t\\u0010\\r\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000b\\u0010\\u000e\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0003J\\u000b\\u0010\\u000f\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0003J+\\u0010\\u0010\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\n\\b\\u0002\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u00052\\n\\b\\u0002\\u0010\\u0006\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0001J\\t\\u0010\\u0011\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0013\\u0010\\u0012\\u001a\\u00020\\u00132\\b\\u0010\\u0014\\u001a\\u0004\\u0018\\u00010\\u0015H\\u00d6\\u0003J\\t\\u0010\\u0016\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\t\\u0010\\u0017\\u001a\\u00020\\u0005H\\u00d6\\u0001J\\u0019\\u0010\\u0018\\u001a\\u00020\\u00192\\u0006\\u0010\\u001a\\u001a\\u00020\\u001b2\\u0006\\u0010\\u001c\\u001a\\u00020\\u0003H\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\b\\u0010\\tR\\u0013\\u0010\\u0006\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\n\\u0010\\u000bR\\u0013\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\f\\u0010\\u000b\\u00a8\\u0006\\u001d\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$DisplayOxxoDetails;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"expiresAfter\", \"\", \"number\", \"\", \"hostedVoucherUrl\", \"(ILjava/lang/String;Ljava/lang/String;)V\", \"getExpiresAfter\", \"()I\", \"getHostedVoucherUrl\", \"()Ljava/lang/String;\", \"getNumber\", \"component1\", \"component2\", \"component3\", \"copy\", \"describeContents\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class DisplayOxxoDetails extends com.stripe.android.model.StripeIntent.NextActionData {\n \n /**\n * The timestamp after which the OXXO expires.\n */\n private final int expiresAfter = 0;\n \n /**\n * The OXXO number.\n */\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String number = null;\n \n /**\n * URL of a webpage containing the voucher for this OXXO payment.\n */\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String hostedVoucherUrl = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails copy(int expiresAfter, @org.jetbrains.annotations.Nullable()\n java.lang.String number, @org.jetbrains.annotations.Nullable()\n java.lang.String hostedVoucherUrl) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public DisplayOxxoDetails() {\n super();\n }\n \n public DisplayOxxoDetails(int expiresAfter, @org.jetbrains.annotations.Nullable()\n java.lang.String number, @org.jetbrains.annotations.Nullable()\n java.lang.String hostedVoucherUrl) {\n super();\n }\n \n /**\n * The timestamp after which the OXXO expires.\n */\n public final int component1() {\n return 0;\n }\n \n /**\n * The timestamp after which the OXXO expires.\n */\n public final int getExpiresAfter() {\n return 0;\n }\n \n /**\n * The OXXO number.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component2() {\n return null;\n }\n \n /**\n * The OXXO number.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getNumber() {\n return null;\n }\n \n /**\n * URL of a webpage containing the voucher for this OXXO payment.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component3() {\n return null;\n }\n \n /**\n * URL of a webpage containing the voucher for this OXXO payment.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getHostedVoucherUrl() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails[] newArray(int size) {\n return null;\n }\n }\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000:\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\t\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\u0017\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\b\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\u0002\\u0010\\u0006J\\t\\u0010\\u000b\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000b\\u0010\\f\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0003J\\u001f\\u0010\\r\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\n\\b\\u0002\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0001J\\t\\u0010\\u000e\\u001a\\u00020\\u000fH\\u00d6\\u0001J\\u0013\\u0010\\u0010\\u001a\\u00020\\u00112\\b\\u0010\\u0012\\u001a\\u0004\\u0018\\u00010\\u0013H\\u00d6\\u0003J\\t\\u0010\\u0014\\u001a\\u00020\\u000fH\\u00d6\\u0001J\\t\\u0010\\u0015\\u001a\\u00020\\u0005H\\u00d6\\u0001J\\u0019\\u0010\\u0016\\u001a\\u00020\\u00172\\u0006\\u0010\\u0018\\u001a\\u00020\\u00192\\u0006\\u0010\\u001a\\u001a\\u00020\\u000fH\\u00d6\\u0001R\\u0013\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0007\\u0010\\bR\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\t\\u0010\\n\\u00a8\\u0006\\u001b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$RedirectToUrl;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"url\", \"Landroid/net/Uri;\", \"returnUrl\", \"\", \"(Landroid/net/Uri;Ljava/lang/String;)V\", \"getReturnUrl\", \"()Ljava/lang/String;\", \"getUrl\", \"()Landroid/net/Uri;\", \"component1\", \"component2\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class RedirectToUrl extends com.stripe.android.model.StripeIntent.NextActionData {\n \n /**\n * The URL you must redirect your customer to in order to authenticate.\n */\n @org.jetbrains.annotations.NotNull()\n private final android.net.Uri url = null;\n \n /**\n * If the customer does not exit their browser while authenticating, they will be redirected\n * to this specified URL after completion.\n */\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String returnUrl = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl> CREATOR = null;\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl copy(@org.jetbrains.annotations.NotNull()\n android.net.Uri url, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n return null;\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public RedirectToUrl(@org.jetbrains.annotations.NotNull()\n android.net.Uri url, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n super();\n }\n \n /**\n * The URL you must redirect your customer to in order to authenticate.\n */\n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri component1() {\n return null;\n }\n \n /**\n * The URL you must redirect your customer to in order to authenticate.\n */\n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri getUrl() {\n return null;\n }\n \n /**\n * If the customer does not exit their browser while authenticating, they will be redirected\n * to this specified URL after completion.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component2() {\n return null;\n }\n \n /**\n * If the customer does not exit their browser while authenticating, they will be redirected\n * to this specified URL after completion.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getReturnUrl() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl[] newArray(int size) {\n return null;\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000<\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0004\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\r\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\b\\u0081\\b\\u0018\\u0000 \\\"2\\u00020\\u0001:\\u0001\\\"B#\\b\\u0010\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\u0003\\u0012\\n\\b\\u0002\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0006B+\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\b\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\b\\u0012\\n\\b\\u0002\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\u0002\\u0010\\tJ\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000b\\u0010\\u0011\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0012\\u001a\\u00020\\bH\\u00c6\\u0003J\\u000b\\u0010\\u0013\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0003J5\\u0010\\u0014\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\n\\b\\u0002\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u00032\\b\\b\\u0002\\u0010\\u0004\\u001a\\u00020\\b2\\n\\b\\u0002\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0001J\\t\\u0010\\u0015\\u001a\\u00020\\u0016H\\u00d6\\u0001J\\u0013\\u0010\\u0017\\u001a\\u00020\\u00182\\b\\u0010\\u0019\\u001a\\u0004\\u0018\\u00010\\u001aH\\u00d6\\u0003J\\t\\u0010\\u001b\\u001a\\u00020\\u0016H\\u00d6\\u0001J\\t\\u0010\\u001c\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u001d\\u001a\\u00020\\u001e2\\u0006\\u0010\\u001f\\u001a\\u00020 2\\u0006\\u0010!\\u001a\\u00020\\u0016H\\u00d6\\u0001R\\u0013\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\n\\u0010\\u000bR\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\f\\u0010\\u000bR\\u0013\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\r\\u0010\\u000bR\\u0011\\u0010\\u0004\\u001a\\u00020\\b\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000e\\u0010\\u000f\\u00a8\\u0006#\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$AlipayRedirect;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"data\", \"\", \"webViewUrl\", \"returnUrl\", \"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V\", \"authCompleteUrl\", \"Landroid/net/Uri;\", \"(Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;)V\", \"getAuthCompleteUrl\", \"()Ljava/lang/String;\", \"getData\", \"getReturnUrl\", \"getWebViewUrl\", \"()Landroid/net/Uri;\", \"component1\", \"component2\", \"component3\", \"component4\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"Companion\", \"payments-core_release\"})\n public static final class AlipayRedirect extends com.stripe.android.model.StripeIntent.NextActionData {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String data = null;\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String authCompleteUrl = null;\n @org.jetbrains.annotations.NotNull()\n private final android.net.Uri webViewUrl = null;\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String returnUrl = null;\n @org.jetbrains.annotations.NotNull()\n private static final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect.Companion Companion = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect copy(@org.jetbrains.annotations.NotNull()\n java.lang.String data, @org.jetbrains.annotations.Nullable()\n java.lang.String authCompleteUrl, @org.jetbrains.annotations.NotNull()\n android.net.Uri webViewUrl, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public AlipayRedirect(@org.jetbrains.annotations.NotNull()\n java.lang.String data, @org.jetbrains.annotations.Nullable()\n java.lang.String authCompleteUrl, @org.jetbrains.annotations.NotNull()\n android.net.Uri webViewUrl, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getData() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component2() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getAuthCompleteUrl() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri component3() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri getWebViewUrl() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component4() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getReturnUrl() {\n return null;\n }\n \n public AlipayRedirect(@org.jetbrains.annotations.NotNull()\n java.lang.String data, @org.jetbrains.annotations.NotNull()\n java.lang.String webViewUrl, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n super();\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect[] newArray(int size) {\n return null;\n }\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0014\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0082\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0012\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\u0006\\u0010\\u0005\\u001a\\u00020\\u0004H\\u0002\\u00a8\\u0006\\u0006\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$AlipayRedirect$Companion;\", \"\", \"()V\", \"extractReturnUrl\", \"\", \"data\", \"payments-core_release\"})\n static final class Companion {\n \n private Companion() {\n super();\n }\n \n /**\n * The alipay data string is formatted as query parameters.\n * When authenticate is complete, we make a request to the\n * return_url param, as a hint to the backend to ping Alipay for\n * the updated state\n */\n private final java.lang.String extractReturnUrl(java.lang.String data) {\n return null;\n }\n }\n }\n \n /**\n * When confirming a [PaymentIntent] or [SetupIntent] with the Stripe SDK, the Stripe SDK\n * depends on this property to invoke authentication flows. The shape of the contents is subject\n * to change and is only intended to be used by the Stripe SDK.\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0016\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\b6\\u0018\\u00002\\u00020\\u0001:\\u0002\\u0003\\u0004B\\u0007\\b\\u0004\\u00a2\\u0006\\u0002\\u0010\\u0002\\u0082\\u0001\\u0002\\u0005\\u0006\\u00a8\\u0006\\u0007\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"()V\", \"Use3DS1\", \"Use3DS2\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS1;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2;\", \"payments-core_release\"})\n public static abstract class SdkData extends com.stripe.android.model.StripeIntent.NextActionData {\n \n private SdkData() {\n super();\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u00004\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0006\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\r\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\t\\u0010\\u0007\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u0013\\u0010\\b\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u0003H\\u00c6\\u0001J\\t\\u0010\\t\\u001a\\u00020\\nH\\u00d6\\u0001J\\u0013\\u0010\\u000b\\u001a\\u00020\\f2\\b\\u0010\\r\\u001a\\u0004\\u0018\\u00010\\u000eH\\u00d6\\u0003J\\t\\u0010\\u000f\\u001a\\u00020\\nH\\u00d6\\u0001J\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u0011\\u001a\\u00020\\u00122\\u0006\\u0010\\u0013\\u001a\\u00020\\u00142\\u0006\\u0010\\u0015\\u001a\\u00020\\nH\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006\\u00a8\\u0006\\u0016\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS1;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"url\", \"\", \"(Ljava/lang/String;)V\", \"getUrl\", \"()Ljava/lang/String;\", \"component1\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class Use3DS1 extends com.stripe.android.model.StripeIntent.NextActionData.SdkData {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String url = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1 copy(@org.jetbrains.annotations.NotNull()\n java.lang.String url) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public Use3DS1(@org.jetbrains.annotations.NotNull()\n java.lang.String url) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getUrl() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1 createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1[] newArray(int size) {\n return null;\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000<\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\r\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001:\\u0001!B%\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0005\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0006\\u001a\\u00020\\u0007\\u00a2\\u0006\\u0002\\u0010\\bJ\\t\\u0010\\u000f\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0011\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0012\\u001a\\u00020\\u0007H\\u00c6\\u0003J1\\u0010\\u0013\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0004\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0005\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0006\\u001a\\u00020\\u0007H\\u00c6\\u0001J\\t\\u0010\\u0014\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\u0013\\u0010\\u0016\\u001a\\u00020\\u00172\\b\\u0010\\u0018\\u001a\\u0004\\u0018\\u00010\\u0019H\\u00d6\\u0003J\\t\\u0010\\u001a\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\t\\u0010\\u001b\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u001c\\u001a\\u00020\\u001d2\\u0006\\u0010\\u001e\\u001a\\u00020\\u001f2\\u0006\\u0010 \\u001a\\u00020\\u0015H\\u00d6\\u0001R\\u0011\\u0010\\u0006\\u001a\\u00020\\u0007\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\t\\u0010\\nR\\u0011\\u0010\\u0004\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000b\\u0010\\fR\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\r\\u0010\\fR\\u0011\\u0010\\u0005\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000e\\u0010\\f\\u00a8\\u0006\\\"\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"source\", \"\", \"serverName\", \"transactionId\", \"serverEncryption\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;\", \"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;)V\", \"getServerEncryption\", \"()Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;\", \"getServerName\", \"()Ljava/lang/String;\", \"getSource\", \"getTransactionId\", \"component1\", \"component2\", \"component3\", \"component4\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"DirectoryServerEncryption\", \"payments-core_release\"})\n public static final class Use3DS2 extends com.stripe.android.model.StripeIntent.NextActionData.SdkData {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String source = null;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String serverName = null;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String transactionId = null;\n @org.jetbrains.annotations.NotNull()\n private final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption serverEncryption = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2 copy(@org.jetbrains.annotations.NotNull()\n java.lang.String source, @org.jetbrains.annotations.NotNull()\n java.lang.String serverName, @org.jetbrains.annotations.NotNull()\n java.lang.String transactionId, @org.jetbrains.annotations.NotNull()\n com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption serverEncryption) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public Use3DS2(@org.jetbrains.annotations.NotNull()\n java.lang.String source, @org.jetbrains.annotations.NotNull()\n java.lang.String serverName, @org.jetbrains.annotations.NotNull()\n java.lang.String transactionId, @org.jetbrains.annotations.NotNull()\n com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption serverEncryption) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getSource() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component2() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getServerName() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component3() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getTransactionId() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption component4() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption getServerEncryption() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2 createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2[] newArray(int size) {\n return null;\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000<\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\n\\u0002\\u0010 \\n\\u0002\\b\\u000e\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B-\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\u0003\\u0012\\f\\u0010\\u0005\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u0006\\u0012\\b\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\u0002\\u0010\\bJ\\t\\u0010\\u000f\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000f\\u0010\\u0011\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u0006H\\u00c6\\u0003J\\u000b\\u0010\\u0012\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0003J9\\u0010\\u0013\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0004\\u001a\\u00020\\u00032\\u000e\\b\\u0002\\u0010\\u0005\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u00062\\n\\b\\u0002\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0001J\\t\\u0010\\u0014\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\u0013\\u0010\\u0016\\u001a\\u00020\\u00172\\b\\u0010\\u0018\\u001a\\u0004\\u0018\\u00010\\u0019H\\u00d6\\u0003J\\t\\u0010\\u001a\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\t\\u0010\\u001b\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u001c\\u001a\\u00020\\u001d2\\u0006\\u0010\\u001e\\u001a\\u00020\\u001f2\\u0006\\u0010 \\u001a\\u00020\\u0015H\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\t\\u0010\\nR\\u0011\\u0010\\u0004\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000b\\u0010\\nR\\u0013\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\f\\u0010\\nR\\u0017\\u0010\\u0005\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u0006\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\r\\u0010\\u000e\\u00a8\\u0006!\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;\", \"Landroid/os/Parcelable;\", \"directoryServerId\", \"\", \"dsCertificateData\", \"rootCertsData\", \"\", \"keyId\", \"(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)V\", \"getDirectoryServerId\", \"()Ljava/lang/String;\", \"getDsCertificateData\", \"getKeyId\", \"getRootCertsData\", \"()Ljava/util/List;\", \"component1\", \"component2\", \"component3\", \"component4\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class DirectoryServerEncryption implements android.os.Parcelable {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String directoryServerId = null;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String dsCertificateData = null;\n @org.jetbrains.annotations.NotNull()\n private final java.util.List<java.lang.String> rootCertsData = null;\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String keyId = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption copy(@org.jetbrains.annotations.NotNull()\n java.lang.String directoryServerId, @org.jetbrains.annotations.NotNull()\n java.lang.String dsCertificateData, @org.jetbrains.annotations.NotNull()\n java.util.List<java.lang.String> rootCertsData, @org.jetbrains.annotations.Nullable()\n java.lang.String keyId) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public DirectoryServerEncryption(@org.jetbrains.annotations.NotNull()\n java.lang.String directoryServerId, @org.jetbrains.annotations.NotNull()\n java.lang.String dsCertificateData, @org.jetbrains.annotations.NotNull()\n java.util.List<java.lang.String> rootCertsData, @org.jetbrains.annotations.Nullable()\n java.lang.String keyId) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getDirectoryServerId() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component2() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getDsCertificateData() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.util.List<java.lang.String> component3() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.util.List<java.lang.String> getRootCertsData() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component4() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getKeyId() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption[] newArray(int size) {\n return null;\n }\n }\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000.\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u00c7\\u0002\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\t\\u0010\\u0003\\u001a\\u00020\\u0004H\\u00d6\\u0001J\\u0013\\u0010\\u0005\\u001a\\u00020\\u00062\\b\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\bH\\u0096\\u0002J\\b\\u0010\\t\\u001a\\u00020\\u0004H\\u0016J\\u0019\\u0010\\n\\u001a\\u00020\\u000b2\\u0006\\u0010\\f\\u001a\\u00020\\r2\\u0006\\u0010\\u000e\\u001a\\u00020\\u0004H\\u00d6\\u0001\\u00a8\\u0006\\u000f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$BlikAuthorize;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"()V\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class BlikAuthorize extends com.stripe.android.model.StripeIntent.NextActionData {\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize INSTANCE = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize> CREATOR = null;\n \n private BlikAuthorize() {\n super();\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize[] newArray(int size) {\n return null;\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @androidx.annotation.RestrictTo(value = {androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP})\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000:\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0006\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\u000e\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\r\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\t\\u0010\\u0007\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u0013\\u0010\\b\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u0003H\\u00c6\\u0001J\\t\\u0010\\t\\u001a\\u00020\\nH\\u00d6\\u0001J\\u0013\\u0010\\u000b\\u001a\\u00020\\f2\\b\\u0010\\r\\u001a\\u0004\\u0018\\u00010\\u000eH\\u00d6\\u0003J\\t\\u0010\\u000f\\u001a\\u00020\\nH\\u00d6\\u0001J\\t\\u0010\\u0010\\u001a\\u00020\\u0011H\\u00d6\\u0001J\\u0019\\u0010\\u0012\\u001a\\u00020\\u00132\\u0006\\u0010\\u0014\\u001a\\u00020\\u00152\\u0006\\u0010\\u0016\\u001a\\u00020\\nH\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006\\u00a8\\u0006\\u0017\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$WeChatPayRedirect;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"weChat\", \"Lcom/stripe/android/model/WeChat;\", \"(Lcom/stripe/android/model/WeChat;)V\", \"getWeChat\", \"()Lcom/stripe/android/model/WeChat;\", \"component1\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class WeChatPayRedirect extends com.stripe.android.model.StripeIntent.NextActionData {\n @org.jetbrains.annotations.NotNull()\n private final com.stripe.android.model.WeChat weChat = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect copy(@org.jetbrains.annotations.NotNull()\n com.stripe.android.model.WeChat weChat) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public WeChatPayRedirect(@org.jetbrains.annotations.NotNull()\n com.stripe.android.model.WeChat weChat) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.WeChat component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.WeChat getWeChat() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect[] newArray(int size) {\n return null;\n }\n }\n }\n }\n}", "private String readBlankNodeLabel() {\n stringBuilder.setLength(0);\n // First character.\n {\n int ch = reader.peekChar();\n if (ch == Chars.EOF) exception(\"Blank node label missing (EOF found)\");\n if (isWhitespace(ch)) exception(\"Blank node label missing\");\n // if ( ! isAlpha(ch) && ch != '_' )\n // Not strict\n if (!isAlphaNumeric(ch) && ch != '_')\n exception(\"Blank node label does not start with alphabetic or _ :\" + (char) ch);\n reader.readChar();\n stringBuilder.append((char) ch);\n }\n // Remainder.\n for (; ; ) {\n int ch = reader.peekChar();\n if (ch == Chars.EOF) break;\n if (!isAlphaNumeric(ch) && ch != '-' && ch != '_') break;\n reader.readChar();\n stringBuilder.append((char) ch);\n }\n // if ( ! seen )\n // exception(\"Blank node label missing\") ;\n return stringBuilder.toString();\n }", "private String getLabel(String labelAudit) {\n\t\tString label = null;\n\t\tif(labelForAuditLabel.containsKey(labelAudit)) {\n\t\t\tlabel = labelForAuditLabel.get(labelAudit);\n\t\t\tif(label != null) {\n\t\t\t\tif(label.isEmpty())\n\t\t\t\t\tlabel = null;\n\t\t\t\telse\n\t\t\t\t\tlabel = messageSource.getMessage(label, null, Locale.getDefault());\n\t\t\t\t\t//messageSource.getMessage(\"label.dati_verbale\", values, Locale.getDefault())\n\t\t\t}\n\t\t} else {\n\t\t\t//LOGGER.info(\"label_mancante\");\n\t\t\tLOGGER.info(labelAudit);\n\t\t\tlabel = \"??key \" + labelAudit + \" not found??\";\n\t\t}\n\t\treturn label;\n\t}", "public byte[] getLabelBytes() {\n int labelBytesLength = readInt(this.bytes, 0);\n return Arrays.copyOfRange(this.bytes, 4, 4 + labelBytesLength);\n }", "protected void decodeIndexEntry(IEntryResult entryResult) {\n\tchar[] word = entryResult.getWord();\n\tint tagLength = currentTag.length;\n\tint nameLength = CharOperation.indexOf(SEPARATOR, word, tagLength);\n\tif (this.simpleName == null)\n\t\t// Optimization, eg. type reference is 'org.eclipse.jdt.core.*'\n\t\tthis.decodedSegment = CharOperation.subarray(word, tagLength, nameLength);\n\telse\n\t\tthis.decodedSimpleName = CharOperation.subarray(word, tagLength, nameLength);\n}", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "com.google.ads.googleads.v6.resources.LabelOrBuilder getLabelOrBuilder();", "public LabelToken(String value, int line) {\n super(value, TokenType.LABEL, line);\n this.origin = -1;\n this.originOffset = 0;\n }", "public LabelRequestWATMLabelRange(byte[] bytes, int offset){\r\n\t\t\r\n\t\tthis.decodeHeader(bytes,offset);\r\n\t\tthis.bytes = new byte[this.getLength()];\r\n\t\t\r\n\t\tlog.debug(\"Label Request With ATM Label Range Object Created\");\r\n\t\t\r\n\t}", "public List<IContactLabel> getContactLabels();", "@Override\r\n\tpublic String parseResponses(String unfriendlyString) {\n\t\treturn null;\r\n\t}", "void registerLabel(SNode inputNode, Iterable<SNode> outputNodes, String mappingLabel);", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t//由主机名得到InetAddress对象\n\t\t\tInetAddress address1=InetAddress.getByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"address1:\"+address1);\n\t\t\t//由ip得到InetAddress对象\n\t\t\tInetAddress address2=InetAddress.getByName(\"13.229.188.59\");\n\t\t\tSystem.out.println(\"address2:\"+address2.getHostName()+\"/\"+address2.getHostAddress());\n\t\t\t//由主机名得到多个InetAddress对象数组,因为一个主机名可以对应多个ip\n\t\t\tInetAddress addressArr1[]=InetAddress.getAllByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"addressArr1:\");\n\t\t\tfor(int i=0; i<addressArr1.length; i++)\n\t\t\t\tSystem.out.println(addressArr1[i]);\n\t\t\t//得到本机的InetAddress对象\n\t\t\tInetAddress me=InetAddress.getLocalHost();\n\t\t\tSystem.out.println(\"me:\"+me);\n\t\t\t//getByName(xxx.xxx.com.cn)会立刻请求解析域名为IP地址,而getByAddress不会立刻请求解析IP地址为域名\n\t\t\tbyte []ip1={(byte)202,(byte)201,(byte)179,110};//int转byte会截断int\n\t\t\tInetAddress address3=InetAddress.getByAddress(ip1);\n\t\t\tbyte []ip2={61,(byte)135,(byte)169,121};\n\t\t\tInetAddress address4=InetAddress.getByAddress(\"www.baidu.com\", ip2);\n\t\t\tSystem.out.println(\"address3:\"+address3);\n\t\t\tSystem.out.println(\"address3 hostname:\"+address3.getHostName());\n\t\t\tSystem.out.println(\"address4:\"+address4);\n\t\t\t//下面这行会抛异常,因为如果调用getByName创建InetAddress对象时,如果参数是主机名,就会立即进行dns解析,但是参数中的主机名\n\t\t\t//又不存在,所以程序抛异常\n\t\t\tInetAddress address5=InetAddress.getByName(\"www.baidxxx.com\");\n\t\t\t//下面这两行代码不会抛异常,虽然参数中的ip是不存在的(不知道为什么,反正是这样规定的)\n\t\t\tInetAddress address6=InetAddress.getByName(\"202.117.179.110\");\n\t\t\taddress6.getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public LabelModel getLabel(String aName);", "DatasetLabel getLabel();", "public final CQLParser.labelDefinition_return labelDefinition() throws RecognitionException {\n CQLParser.labelDefinition_return retval = new CQLParser.labelDefinition_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token AS29=null;\n CQLParser.labelName_return labelName30 = null;\n\n\n Object AS29_tree=null;\n\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:260:2: ( AS labelName )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:260:4: AS labelName\n {\n root_0 = (Object)adaptor.nil();\n\n AS29=(Token)match(input,AS,FOLLOW_AS_in_labelDefinition761); \n pushFollow(FOLLOW_labelName_in_labelDefinition764);\n labelName30=labelName();\n\n state._fsp--;\n\n adaptor.addChild(root_0, labelName30.getTree());\n\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 }\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 }", "Nda<V> withLabels( Map<Object, List<Object>> labels );", "Label getLabel();", "Label getLabel();", "Label getLabel();", "public LabelModel getLabel(LabelUUID aLabelUUID);", "com.google.ads.googleads.v6.resources.Label getLabel();", "void mo1927a(NLPResponseData nLPResponseData);", "public static String[] parseEntityName(String entityName) {\n String[] nameComponents = new String[2];\n\n if (entityName != null) {\n Matcher m = prefixedNamePattern.matcher( entityName.trim() );\n\n if (m.matches()) {\n nameComponents[0] = m.group( 1 );\n nameComponents[1] = m.group( 2 );\n } else {\n nameComponents[1] = entityName;\n }\n }\n return nameComponents;\n }", "public String getLabel(String s) {\n\t\ts = s.toUpperCase();\n\t\tString label = getRawLabelString(s);\n\t\tif (label != null) {\n\t\t\tif ((label.contains(\" \")) || (label.contains(\"\\t\")) || (label.contains(\"'\"))) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint labeltype = getOperandType(label);\n\t\t\t//if (commandLoader.commandExists(label)) {\n\t\t\t//\treturn null;\n\t\t\t//}\n\t\t\tif (Op.matches(labeltype, Op.ERROR | Op.LABEL | Op.VARIABLE | Op.CONST)) {\n\t\t\t\treturn label;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private String getDeasLabel(int address) {\n int key = Arrays.binarySearch(addresses, address);\n if (key >= 0) {\n return symbols[key] + \": \";\n }\n return \"\";\n }", "@Test(expected = IllegalLabelException.class)\n\tpublic void testIllegalLabelException() throws Exception {\n\t\tnew GraphPoetFactory().parse(\"Edge=<ab!,WordNeighborhood,1,a,b,Yes>\");\n\t}", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }", "public ByteBuffer postParse(ByteBuffer byteBuffer);", "public static void decodeNodeDescriptor(ChannelBuffer buffer, BgpLsNodeDescriptor nd) {\n\n\t\twhile(buffer.readable()) {\n\t\t\tint subType = buffer.readUnsignedShort();\n\t\t\tint valueLength = buffer.readUnsignedShort();\n\t\t\t\n\t\t\tChannelBuffer valueBuffer = ChannelBuffers.buffer(valueLength);\n\t\t\tbuffer.readBytes(valueBuffer);\n\t\t\t\n\t\t\tswitch(BgpLsType.fromCode(subType)) {\n\t\t\tcase AutonomousSystem:\n\t\t\t\tdecodeAutonomousSystem(valueBuffer, nd);\n\t\t\t\tbreak;\n\t\t\tcase BGPLSIdentifier:\n\t\t\t\tdecodeBgpLsIdentifier(valueBuffer, nd);\n\t\t\t\tbreak;\n\t\t\tcase AreaID:\n\t\t\t\tdecodeOspfAreaId(valueBuffer, nd);\n\t\t\t\tbreak;\n\t\t\tcase IGPRouterID:\n\t\t\t\tdecodeIgpRouterId(valueBuffer, nd);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.error(\"Unsupported descriptor type \" + subType);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void resolveAddress(){\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof LabelCode){\n LabelCode code = (LabelCode)byteCodeList.get(i);\n labels.put(code.getLabel(), i);\n }else if(byteCodeList.get(i) instanceof LineCode){\n LineCode code = (LineCode)byteCodeList.get(i);\n lineNums.add(code.n);\n }\n }\n \n //walk through byteCodeList and assgin proper address\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof GoToCode){\n GoToCode code = (GoToCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof FalseBranchCode){\n FalseBranchCode code = (FalseBranchCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof CallCode){\n CallCode code = (CallCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getFuncName()));\n }\n }\n }", "static String getNextDomain(String curDomain) {\n String nextDomain;\n\n int idxCheckedChar = curDomain.length() - 1; // right most character\n char checkedCh;\n\n while (idxCheckedChar >= 0) { // to the first character\n checkedCh = curDomain.charAt(idxCheckedChar);\n if (checkedCh < 'z') { //\n nextDomain = curDomain.substring(0, idxCheckedChar) + (char) (checkedCh + 1)\n + curDomain.substring(idxCheckedChar + 1);\n return nextDomain;\n } else { // last character reaches to 'z'\n // check the left side character\n idxCheckedChar--;\n }\n }\n nextDomain = curDomain + 'a';\n\n return nextDomain;\n }", "private List<String> getLabels(Image image) {\n\t\ttry (ImageAnnotatorClient vision = ImageAnnotatorClient.create()) {\n\n\t\t\t// Creates the request for label detection. The API requires a list, but since the storage\n\t\t\t// bucket doesn't support batch uploads, the list will have only one request per function call\n\t\t\tList<AnnotateImageRequest> requests = new ArrayList<>();\n\t\t\tFeature feat = Feature.newBuilder().setType(Type.LABEL_DETECTION).build();\n\t\t\tAnnotateImageRequest request = AnnotateImageRequest.newBuilder().addFeatures(feat).setImage(image).build();\n\t\t\trequests.add(request);\n\n\t\t\t// Performs label detection on the image file\n\t\t\tList<AnnotateImageResponse> responses = vision.batchAnnotateImages(requests).getResponsesList();\n\n\t\t\t// Iterates through the responses, though in reality there will only be one response\n\t\t\tfor (AnnotateImageResponse res : responses) {\n\t\t\t\tif (res.hasError()) {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"Error getting annotations: \" + res.getError().getMessage());\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\t// Return the first 3 generated labels\n\t\t\t\treturn res.getLabelAnnotationsList().stream().limit(3L).map(e -> e.getDescription())\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private Label handleLabel(String line, int lineNum, SymbolTable table) {\n\t\tLabel l = new Label(line.substring(1, line.length()-1));\n\t\tl.addToTable(lineNum, table);\n\t\treturn l;\n\t}", "com.google.protobuf.ByteString\n getViewsLabelBytes();", "public static List<String> processLabel(String label) {\n\t\tList<String> keywords = new ArrayList<String>();\n\t\t\n\t\tfor (String word : parseKeywords(label)) {\n\t\t\tword = removeApostrophe(word);\n\t\t\tword.toLowerCase();\n\t\t\tword = stem(word);\n\t\t\tkeywords.add(word);\n\t\t}\n\t\t\n\t\treturn keywords;\n\t}", "com.google.protobuf.ByteString getUserDNBytes();", "private static HeaderData readHeader(byte[] data) throws UnknownHostException {\n\t\tInetAddress ip = InetAddress.getByAddress(Arrays.copyOfRange(data, 4, 8));\n\t\t\n\t\tString label = new String(Arrays.copyOfRange(data, 0, 4), Charset.forName(\"UTF-8\"));\n\n\t\tint port = 0;\n\t\tport += data[8] << 24 & 0xFF000000;\n\t\tport += data[9] << 16 & 0xFF0000;\n\t\tport += data[10] << 8 & 0xFF00;\n\t\tport += data[11] & 0xFF;\n\t\t\n\t\treturn new HeaderData(label, ip, port);\n\t}", "public interface DNSIPAddress extends DNSObject, Comparable<DNSIPAddress> {\r\n\r\n enum Type { IPv4, IPv6 }\r\n\r\n /**\r\n * Returns the type of this IP address.\r\n *\r\n * @return the type of this IP address\r\n */\r\n Type getType();\r\n\r\n /**\r\n * Returns the value of this IP address (in case of IPv6 the uncompressed version is returned).\r\n *\r\n * @return the (uncompressed) value of this IP address\r\n */\r\n String getAddress();\r\n\r\n /**\r\n * Returns a compressed version of this IP address. If the address cannot be compressed\r\n * the address is returned.\r\n *\r\n * @return the compressed version of this IP address\r\n */\r\n String getCompressedAddress();\r\n\r\n /**\r\n * Returns an array containing the parts of this IP address (uncompressed). Each part of IP address\r\n * is a string.\r\n *\r\n * @return an array of the parts of this IP address.\r\n */\r\n String[] getParts();\r\n\r\n /**\r\n * Returns an array containing the parts of this IP address (uncompressed). Each part of IP address\r\n * is an integer.\r\n *\r\n * @return an array of the parts of this IP address.\r\n */\r\n int[] getInts();\r\n\r\n /**\r\n * Determines whether this IP address has been allocated or assigned\r\n * for special use according to RFC 3330.\r\n *\r\n * @return true if this IP address has been allocated or assigned\r\n * for special use according to RFC 3330; false otherwise.\r\n */\r\n boolean isReserved();\r\n}", "public static LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "private ParsedDottedName parseDottedName(String dottedString, String command)\n throws MalformedNameException {\n ArrayList tokenList = new ArrayList();\n Name dottedName = new Name(dottedString);\n int nTokens = dottedName.getNumParts();\n if (nTokens < 1) {\n\t\t\tString msg = localStrings.getString( \"admin.monitor.name_does_not_contain_any_tokens\", dottedString );\n throw new MalformedNameException( msg );\n }\n for (int j = 0; j < nTokens; j++) {\n tokenList.add(dottedName.getNamePart(j).toString());\n }\n return parseTokens(tokenList, command, dottedString);\n }", "public static void notificationParser(String response)\r\n {\r\n if (response == null)\r\n return;\r\n String prefix = \"for (;;);\";\r\n if (response.startsWith(prefix))\r\n response = response.substring(prefix.length());\r\n }", "private static InternetAddress[] parse(String var0, boolean var1_1, boolean var2_2) throws AddressException {\n var3_3 = var0.length();\n var4_4 = new Vector<Object>();\n var5_5 = 0;\n var6_6 = -1;\n var7_7 = false;\n var8_8 = false;\n var9_9 = -1;\n var10_10 = 0;\n var11_11 = -1;\n var12_12 = -1;\n do {\n block44 : {\n block61 : {\n block60 : {\n block59 : {\n block55 : {\n block54 : {\n block53 : {\n block46 : {\n block48 : {\n block49 : {\n block58 : {\n block57 : {\n block56 : {\n block50 : {\n block51 : {\n block52 : {\n block45 : {\n block47 : {\n if (var5_5 < var3_3) break block45;\n if (var6_6 < 0) break block46;\n if (var9_9 != -1) {\n var5_5 = var9_9;\n }\n var13_13 = var0.substring(var6_6, var5_5).trim();\n if (var10_10 != 0 || var1_1 || var2_2) break block47;\n var14_14 = new StringTokenizer((String)var13_13);\n break block48;\n }\n if (var1_1 || !var2_2) {\n InternetAddress.checkAddress((String)var13_13, var8_8, false);\n }\n var14_14 = new InternetAddress();\n var14_14.setAddress((String)var13_13);\n if (var11_11 >= 0) {\n var14_14.encodedPersonal = InternetAddress.unquote(var0.substring(var11_11, var12_12).trim());\n }\n var4_4.addElement(var14_14);\n break block46;\n }\n var15_15 = var0.charAt(var5_5);\n if (var15_15 == 9 || var15_15 == 10 || var15_15 == 13 || var15_15 == 32) break block44;\n if (var15_15 == 34) break block49;\n if (var15_15 == 44) break block50;\n if (var15_15 == 62) throw new AddressException(\"Missing '<'\", (String)var0, var5_5);\n if (var15_15 == 91) break block51;\n if (var15_15 == 40) break block52;\n if (var15_15 == 41) throw new AddressException(\"Missing '('\", (String)var0, var5_5);\n block0 : switch (var15_15) {\n default: {\n if (var6_6 == -1) {\n var6_6 = var5_5;\n }\n break block44;\n }\n case 60: {\n if (var8_8 != false) throw new AddressException(\"Extra route-addr\", (String)var0, var5_5);\n var9_9 = var6_6;\n var10_10 = var12_12;\n if (!var7_7) {\n if (var6_6 >= 0) {\n var12_12 = var5_5;\n }\n var11_11 = var6_6;\n var9_9 = var5_5 + 1;\n var10_10 = var12_12;\n }\n ++var5_5;\n var12_12 = 0;\n do {\n if (var5_5 >= var3_3) ** GOTO lbl64\n var6_6 = var0.charAt(var5_5);\n if (var6_6 == 34) ** GOTO lbl74\n if (var6_6 == 62) ** GOTO lbl63\n if (var6_6 == 92) {\n ++var5_5;\n }\n ** GOTO lbl75\nlbl63: // 1 sources:\n if (var12_12 != 0) ** GOTO lbl75\nlbl64: // 2 sources:\n if (var5_5 >= var3_3) {\n if (var12_12 == 0) throw new AddressException(\"Missing '>'\", (String)var0, var5_5);\n throw new AddressException(\"Missing '\\\"'\", (String)var0, var5_5);\n }\n var12_12 = var5_5;\n var8_8 = true;\n var6_6 = var9_9;\n var9_9 = var12_12;\n var12_12 = var10_10;\n break block0;\nlbl74: // 1 sources:\n var12_12 ^= 1;\nlbl75: // 3 sources:\n ++var5_5;\n } while (true);\n }\n case 59: {\n var9_9 = var6_6;\n if (var6_6 == -1) {\n var9_9 = var5_5;\n }\n if (var7_7 == false) throw new AddressException(\"Illegal semicolon, not in group\", (String)var0, var5_5);\n var6_6 = var9_9;\n if (var9_9 == -1) {\n var6_6 = var5_5;\n }\n var13_13 = new InternetAddress();\n var13_13.setAddress(var0.substring(var6_6, var5_5 + 1).trim());\n var4_4.addElement(var13_13);\n var6_6 = -1;\n var7_7 = false;\n var8_8 = false;\n var9_9 = -1;\n break block44;\n }\n case 58: {\n if (var7_7 != false) throw new AddressException(\"Nested group\", (String)var0, var5_5);\n var10_10 = var6_6;\n if (var6_6 == -1) {\n var10_10 = var5_5;\n }\n var7_7 = true;\n var6_6 = var10_10;\n break;\n }\n }\n break block53;\n }\n var10_10 = var9_9;\n if (var6_6 >= 0) {\n var10_10 = var9_9;\n if (var9_9 == -1) {\n var10_10 = var5_5;\n }\n }\n var9_9 = var11_11;\n if (var11_11 == -1) {\n var9_9 = var5_5 + 1;\n }\n ++var5_5;\n var11_11 = 1;\n break block54;\n }\n ++var5_5;\n break block55;\n }\n if (var6_6 != -1) break block56;\n var6_6 = -1;\n var8_8 = false;\n var9_9 = -1;\n var10_10 = 0;\n break block44;\n }\n if (!var7_7) break block57;\n var8_8 = false;\n break block44;\n }\n var15_15 = var9_9;\n if (var9_9 == -1) {\n var15_15 = var5_5;\n }\n var14_14 = var0.substring(var6_6, var15_15).trim();\n if (var10_10 != 0 || var1_1 || var2_2) break block58;\n var18_18 = new StringTokenizer((String)var14_14);\n break block59;\n }\n if (var1_1 || !var2_2) {\n InternetAddress.checkAddress((String)var14_14, var8_8, false);\n }\n var13_13 = new InternetAddress();\n var13_13.setAddress((String)var14_14);\n var9_9 = var11_11;\n var6_6 = var12_12;\n if (var11_11 >= 0) {\n var13_13.encodedPersonal = InternetAddress.unquote(var0.substring(var11_11, var12_12).trim());\n var9_9 = -1;\n var6_6 = -1;\n }\n var4_4.addElement(var13_13);\n var12_12 = var6_6;\n var11_11 = var9_9;\n break block60;\n }\n var10_10 = var6_6;\n if (var6_6 == -1) {\n var10_10 = var5_5;\n }\n ++var5_5;\n break block61;\n }\n while (var14_14.hasMoreTokens()) {\n var0 = var14_14.nextToken();\n InternetAddress.checkAddress((String)var0, false, false);\n var13_13 = new InternetAddress();\n var13_13.setAddress((String)var0);\n var4_4.addElement(var13_13);\n }\n }\n var0 = new InternetAddress[var4_4.size()];\n var4_4.copyInto((Object[])var0);\n return var0;\n }\nlbl170: // 2 sources:\n do {\n var10_10 = 1;\n break block44;\n break;\n } while (true);\n }\n while (var5_5 < var3_3 && var11_11 > 0) {\n var15_15 = var0.charAt(var5_5);\n if (var15_15 != 40) {\n if (var15_15 != 41) {\n if (var15_15 == 92) {\n ++var5_5;\n }\n } else {\n --var11_11;\n }\n } else {\n ++var11_11;\n }\n ++var5_5;\n }\n if (var11_11 > 0) throw new AddressException(\"Missing ')'\", (String)var0, var5_5);\n var5_5 = var16_16 = var5_5 - 1;\n var17_17 = var10_10;\n var11_11 = var9_9;\n var15_15 = var12_12;\n if (var12_12 == -1) {\n var15_15 = var16_16;\n var5_5 = var16_16;\n var17_17 = var10_10;\n var11_11 = var9_9;\n }\n ** GOTO lbl207\n }\n do {\n block64 : {\n block63 : {\n block62 : {\n if (var5_5 >= var3_3) break block62;\n var10_10 = var0.charAt(var5_5);\n if (var10_10 == 92) break block63;\n if (var10_10 != 93) break block64;\n }\n if (var5_5 >= var3_3) throw new AddressException(\"Missing ']'\", (String)var0, var5_5);\n var15_15 = var12_12;\n var17_17 = var9_9;\nlbl207: // 2 sources:\n var9_9 = var17_17;\n var12_12 = var15_15;\n ** continue;\n }\n ++var5_5;\n }\n ++var5_5;\n } while (true);\n }\n while (var18_18.hasMoreTokens()) {\n var13_13 = var18_18.nextToken();\n InternetAddress.checkAddress((String)var13_13, false, false);\n var14_14 = new InternetAddress();\n var14_14.setAddress((String)var13_13);\n var4_4.addElement(var14_14);\n }\n }\n var6_6 = -1;\n var8_8 = false;\n var9_9 = -1;\n var10_10 = 0;\n break block44;\n }\n while (var5_5 < var3_3 && (var6_6 = (int)var0.charAt(var5_5)) != 34) {\n if (var6_6 == 92) {\n ++var5_5;\n }\n ++var5_5;\n }\n if (var5_5 >= var3_3) throw new AddressException(\"Missing '\\\"'\", (String)var0, var5_5);\n var15_15 = 1;\n var6_6 = var10_10;\n var10_10 = var15_15;\n }\n ++var5_5;\n } while (true);\n }\n\n public static InternetAddress[] parseHeader(String string2, boolean bl) throws AddressException {\n return InternetAddress.parse(string2, bl, true);\n }\n\n private static String quotePhrase(String string2) {\n int n = string2.length();\n int n2 = 0;\n int n3 = 0;\n boolean bl = false;\n do {\n if (n3 >= n) {\n CharSequence charSequence = string2;\n if (!bl) return charSequence;\n charSequence = new StringBuffer(n + 2);\n ((StringBuffer)charSequence).append('\\\"');\n ((StringBuffer)charSequence).append(string2);\n ((StringBuffer)charSequence).append('\\\"');\n return ((StringBuffer)charSequence).toString();\n }\n char c = string2.charAt(n3);\n if (c == '\\\"' || c == '\\\\') break;\n if (c < ' ' && c != '\\r' && c != '\\n' && c != '\\t' || c >= '' || rfc822phrase.indexOf(c) >= 0) {\n bl = true;\n }\n ++n3;\n } while (true);\n StringBuffer stringBuffer = new StringBuffer(n + 3);\n stringBuffer.append('\\\"');\n n3 = n2;\n do {\n if (n3 >= n) {\n stringBuffer.append('\\\"');\n return stringBuffer.toString();\n }\n char c = string2.charAt(n3);\n if (c == '\\\"' || c == '\\\\') {\n stringBuffer.append('\\\\');\n }\n stringBuffer.append(c);\n ++n3;\n } while (true);\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\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 label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void checkAndCorrectLabelReferences() {\n\t\t\n\t\tboolean madeChange;\n\t\tCodeItem codeItem = getCodeItem();\n\t\tList<Label> labels = codeItem.getLabels();\n\n\t\t// Parses all the Labels, and all the OffsetInstructions inside the Labels.\n\t\t// We stop the parsing whenever a change of instruction has been made, to restart the parsing\n\t\t// once again till everything is valid.\n\t\tdo {\n\t\t\tmadeChange = false;\n\t\t\tIterator<Label> labelIterator = labels.iterator();\n\t\t\twhile (!madeChange && labelIterator.hasNext()) {\n\t\t\t\tLabel label = labelIterator.next();\n\t\t\t\tArrayList<Instruction> instructions = label.getReferringInstructions();\n\t\n\t\t\t\tint insnIndex = 0;\n\t\t\t\tint nbInsn = instructions.size();\n\t\t\t\twhile (!madeChange && (insnIndex < nbInsn)) {\n\t\t\t\t\tInstruction insn = instructions.get(insnIndex);\n\t\t\t\t\t\n\t\t\t\t\tIOffsetInstruction offsetInsn = (IOffsetInstruction)insn;\n\t\t\t\t\tint instructionOffset = offsetInsn.getInstructionOffset();\n\t\t\t\t\t// The offset have to be divided by two, because the encoded offset is word based.\n\t\t\t\t\t// The relativeOffset is the offset for the Instruction to reach the Label.\n\t\t\t\t\t// It is negative if the Label is before the Instruction.\n\t\t\t\t\tint relativeOffset = (label.getOffset() - instructionOffset) / 2;\n\t\t\t\t\t\n\t\t\t\t\tint opcode = insn.getOpcodeByte();\n\t\t\t\t\tint maximumOffset = 0;\n\t\t\t\t\t// Check if the relative offset is valid for the instruction range. \n\t\t\t\t\tswitch (opcode) {\n\t\t\t\t\tcase 0x28: // Goto 8 bits.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_8_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x29: // Goto 16 bits.\n\t\t\t\t\tcase 0x32: // If-test.\n\t\t\t\t\tcase 0x33:\n\t\t\t\t\tcase 0x34:\n\t\t\t\t\tcase 0x35:\n\t\t\t\t\tcase 0x36:\n\t\t\t\t\tcase 0x37:\n\t\t\t\t\tcase 0x38: // If-testz.\n\t\t\t\t\tcase 0x39:\n\t\t\t\t\tcase 0x3a:\n\t\t\t\t\tcase 0x3b:\n\t\t\t\t\tcase 0x3c:\n\t\t\t\t\tcase 0x3d:\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_16_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x2a: // Goto 32 bits.\n\t\t\t\t\tcase 0x2b: // Packed Switch.\n\t\t\t\t\tcase 0x2c: // Sparse Switch.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_32_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry { throw new Exception(\"Opcode error : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint minimumOffset = -maximumOffset - 1;\n\t\t\t\t\t\n\t\t\t\t\tif ((relativeOffset < minimumOffset) || (relativeOffset > maximumOffset)) {\n\t\t\t\t\t\t// Must change to an Instruction with a bigger range. This is only possible for\n\t\t\t\t\t\t// the GOTO 8/16 bits.\n\t\t\t\t\t\tif ((opcode == Opcodes.INSN_GOTO) || (opcode == Opcodes.INSN_GOTO_16)) {\n\t\t\t\t\t\t\tInstruction newInsn;\n\t\t\t\t\t\t\t// Change to 16 or 32 bits ?\n\t\t\t\t\t\t\tif ((relativeOffset > MAXIMUM_SIGNED_VALUE_16_BITS) || (relativeOffset < MINIMUM_SIGNED_VALUE_16_BITS)) {\n\t\t\t\t\t\t\t\t// 32 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat30T(Opcodes.INSN_GOTO_32, label, instructionOffset);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// 16 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat20T(Opcodes.INSN_GOTO_16, label, instructionOffset);\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t\t// Removes the instruction from the codeItem and replaces it with the new one.\n\t\t\t\t\t\t\tcodeItem.replaceInstructions(insn, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Replaces the old instruction with the new one in the Label Instructions list.\n\t\t\t\t\t\t\tinstructions.remove(insnIndex);\n\t\t\t\t\t\t\tinstructions.add(insnIndex, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Shifts all the Jump related instructions and the labels AFTER this instruction.\n\t\t\t\t\t\t\tshiftOffsetInstructionsAndLabels(instructionOffset, newInsn.getSize() - insn.getSize());\n\t\t\t\t\t\t\tmadeChange = true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry { throw new IllegalArgumentException(\"Instruction Range extension unhandled. Opcode : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tinsnIndex++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} while (madeChange);\n\t}", "private static String parse( String hostName, String input ) {\n final String prop_name = hostName + \" -> \";\n// System.out.println(\"XXXXX \" + input.indexOf( prop_name ) );\n if( input.indexOf( prop_name ) >= 0 ) { // has the required property (= html input tag with specified name)\n return input.split( prop_name )[ 1 ].split( \"<br>\" )[0];\n }\n return \"\";\n }", "private String[] BreakDiscoveryMessageToStrings(String input) {\n return input.split(\"[\" + Constants.STANDART_FIELD_SEPERATOR + \"]\"); //parse the string by the separator char\n }", "public void setDomainNameValue(YangString domainNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n domainNameValue,\n childrenNames());\n }", "public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "java.util.Map<java.lang.String, java.lang.String> getLabelsMap();", "public static String\n networkNameToString(byte[] data, int offset, int length) {\n String ret;\n\n if ((data[offset] & 0x80) != 0x80 || length < 1) {\n return \"\";\n }\n\n switch ((data[offset] >>> 4) & 0x7) {\n case 0:\n // SMS character set\n int countSeptets;\n int unusedBits = data[offset] & 7;\n countSeptets = (((length - 1) * 8) - unusedBits) / 7 ;\n ret = GsmAlphabet.gsm7BitPackedToString(data, offset + 1, countSeptets);\n break;\n case 1:\n // UCS2\n try {\n ret = new String(data,\n offset + 1, length - 1, \"utf-16\");\n } catch (UnsupportedEncodingException ex) {\n ret = \"\";\n Rlog.e(LOG_TAG,\"implausible UnsupportedEncodingException\", ex);\n }\n break;\n\n // unsupported encoding\n default:\n ret = \"\";\n break;\n }\n\n // \"Add CI\"\n // \"The MS should add the letters for the Country's Initials and\n // a separator (e.g. a space) to the text string\"\n\n if ((data[offset] & 0x40) != 0) {\n // FIXME(mkf) add country initials here\n }\n\n return ret;\n }", "public Field label(String label);", "public int dissect(byte[] source, Map<String, Object> keyValueMap) {\n final Map<Field, ValueRef> fieldValueRefMap = createFieldValueRefMap();\n // here we take the bytes (from a Ruby String), use the fields list to find each delimiter and\n // record the indexes where we find each fields value in the fieldValueRefMap\n // note: we have not extracted any strings from the source bytes yet.\n int pos = dissectValues(source, fieldValueRefMap);\n // dissectValues returns the position the last delimiter was found\n ValueResolver resolver = new ValueResolver(source, fieldValueRefMap);\n // iterate through the sorted saveable fields only\n for (Field field : saveableFields) {\n // allow the field to append its key and\n // use the resolver to extract the value from the source bytes\n field.append(keyValueMap, resolver);\n }\n return pos;\n }", "public Label newLabelFromString(String encodedLabelStr) {\r\n return newLabel(encodedLabelStr);\r\n }", "public static InetAddress getByName(final String name) \n throws DNSSECException, IOException {\n final Name full = Name.concatenate(Name.fromString(name), Name.root);\n\n System.out.println(\"Verifying record: \"+ full);\n //final String [] servers = ResolverConfig.getCurrentConfig().servers();\n final Resolver res = newResolver();\n final Record question = Record.newRecord(full, Type.A, DClass.IN);\n final Message query = Message.newQuery(question);\n System.out.println(\"Sending query...\");\n final Message response = res.send(query);\n System.out.println(\"RESPONSE: \"+response);\n final RRset[] answer = response.getSectionRRsets(Section.ANSWER);\n \n final ArrayList<InetAddress> addresses = new ArrayList<InetAddress>();\n for (final RRset set : answer) {\n System.out.println(\"\\n;; RRset to chase:\");\n\n // First check for a CNAME and target.\n Iterator<Record> rrIter = set.rrs();\n boolean hasCname = false;\n Name cNameTarget = null;\n while (rrIter.hasNext()) {\n final Record rec = rrIter.next();\n final int type = rec.getType();\n \n if (type == Type.CNAME) {\n final CNAMERecord cname = (CNAMERecord) rec;\n hasCname = true;\n cNameTarget = cname.getTarget();\n } \n }\n \n rrIter = set.rrs();\n while (rrIter.hasNext()) {\n final Record rec = rrIter.next();\n System.out.println(rec);\n final int type = rec.getType();\n if (type == Type.A) {\n final ARecord arec = (ARecord) rec;\n if (hasCname) {\n if (rec.getName().equals(cNameTarget)) {\n addresses.add(arec.getAddress());\n }\n } else {\n addresses.add(arec.getAddress());\n }\n }\n }\n final Iterator<Record> sigIter = set.sigs();\n while (sigIter.hasNext()) {\n final RRSIGRecord rec = (RRSIGRecord) sigIter.next();\n System.out.println(\"\\n;; RRSIG of the RRset to chase:\");\n System.out.println(rec);\n verifyZone(set, rec);\n }\n }\n return addresses.get(0);\n }" ]
[ "0.6400538", "0.53858525", "0.5038353", "0.50328094", "0.49717155", "0.48836517", "0.48778358", "0.48643413", "0.48516542", "0.48396438", "0.48393947", "0.48036748", "0.48029345", "0.47618395", "0.4759036", "0.47587997", "0.4756177", "0.47189155", "0.4718329", "0.4713012", "0.4712458", "0.4659666", "0.45553327", "0.4540983", "0.45234624", "0.45034796", "0.4490209", "0.44705164", "0.44424653", "0.44249415", "0.4417697", "0.44145918", "0.44009107", "0.43845528", "0.43777424", "0.437742", "0.43688893", "0.4365148", "0.43574277", "0.43527195", "0.4352233", "0.43495917", "0.43465173", "0.43431827", "0.4326865", "0.4326865", "0.4326865", "0.4326865", "0.43241745", "0.43190247", "0.43172058", "0.43107855", "0.43103796", "0.43103293", "0.43080014", "0.43024087", "0.42968515", "0.42788854", "0.42784294", "0.42782152", "0.42782152", "0.42782152", "0.42683893", "0.4266321", "0.42640078", "0.42635754", "0.42610443", "0.42587253", "0.42580968", "0.42520788", "0.42395213", "0.4238121", "0.42306253", "0.42246944", "0.42225498", "0.42223302", "0.4216918", "0.42125908", "0.42093477", "0.42085153", "0.41950047", "0.4194632", "0.4190416", "0.41760167", "0.41715434", "0.4164325", "0.4163877", "0.41609564", "0.415231", "0.4148665", "0.41465664", "0.41437396", "0.41437396", "0.41437396", "0.41437396", "0.41410097", "0.41410077", "0.4140861", "0.41388103", "0.41387168" ]
0.77945685
0
Page object's basic constructor.
public BasePage(WebDriver driver) { this.driver = driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Page(String name)\r\n {\r\n super(name,0,0,0,0);\r\n }", "public PageUtil() {\n\n\t}", "public Page() {\n PageFactory.initElements(getDriver(), this); //snippet to use for @FindBy\n }", "public BasePageObject() {\n this.driver = BrowserManager.getInstance().getDriver();\n this.wait = BrowserManager.getInstance().getWait();\n PageFactory.initElements(driver, this);\n }", "public PageControl() {}", "private LWPageUtilities()\n {\n }", "public PlanPage() {\n this( new PageParameters() );\n }", "public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public VideoPage()\r\n\t{\r\n\t}", "public Page(PageInformation pageInfo)\n\t{\n\t\tthis.pageInfo = pageInfo;\n\t\tthis.contentInstructions = new ArrayList<ContentInstruction>();\n\t\tthis.pageContent = new HashMap<Integer, Content>();\n\t\tnextContentNumber = 0;\n\t}", "public HomePage() \r\n\t{\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "public TLWebPage() {\n super();\n }", "public FeedPage() {\n }", "public UserPage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public TreinamentoPage() {\r\n\t\tPageFactory.initElements(TestRule.getDriver(), this);\r\n\t}", "public PageList() { \n// fileIO = new CharFileIO(\"utf-8\");\n// We are not currently using this to extract 'title' because it doesn't work \n// for whose title and meta-description tags are not explicitly specified;\n// Such as pages written in scripting languages like .jsp, .asp etc \n// parseJob = new ParseJob();\n }", "Page createPage();", "public PIMPage()throws IOException\n\t{\n\t\tPageFactory.initElements(driver,this);\n\t\t\n\t}", "public HomePage(){\n PageFactory.initElements(driver, this);\n }", "public HomePage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "@SuppressWarnings(\"serial\")\n\tpublic ProjectPage() {\n\t\tagregarForm();\n\t}", "public HomePage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\r\n\r\n\t}", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public NewCZ_DPPHRProcessPage(){ super(); }", "public MyProfilePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}", "public HomePage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public PagesRecord() {\n super(Pages.PAGES);\n }", "public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}", "public WikipediaPage() {\n wikiModel = new WikiModel(\"\", \"\");\n textConverter = new PlainTextConverter();\n }", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public ContactPage() {\n\t\t\t\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "public SearchResultsPage(WebDriver page) {\n super(page);\n }", "public SearchPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public BasePage(WebDriver driver) {\r\n\t\tsuper(driver);\r\n\t}", "public MockPageContext() {\n super();\n MockPageContext.init();\n }", "public SOASearchPage() {\r\n\t\tsuper();\r\n\t}", "public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}", "@Override\n protected void init(PageDto page, HttpServletRequest request, HttpServletResponse response, Model model) {\n\n }", "public HomePage() {\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public PageAdapter() {\n this.mapper = new MapperImpl();\n }", "public Page(WebDriver driver) {\r\n\t\tthis.driver = driver;\r\n\t}", "public HomePage() {\n \t\tPageFactory.initElements(driver, this);\n \t}", "public LoginPage(){\n PageFactory.initElements(driver, this); //all vars in this class will be init with this driver\n }", "public LoginPage()\n{\n\tPageFactory.initElements(driver, this);\n}", "public ContactsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n }", "public PageUtil(int currentPage) {\n\t\tthis.currentPage = currentPage;\n\t}", "public LoginPage() {\n }", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Page(WebDriver driver) {\n this.driver = driver;\n }", "public StartPage() {\n initComponents();\n \n }", "public PageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n }", "public Paging() {\n }", "public PDFPageTree(PDFFile file)\n {\n _dict.put(\"Type\", \"/Pages\");\n }", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public WebpageFactoryImpl() {\n\t\tsuper();\n\t}", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "public DocsAppHomePO ()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Page(Class<?> root) {\n\t\tentityName = StringUtils.uncapitalize(root.getSimpleName());\n\t\tentityClass = root;\n\t\ttitle = new StringBuilder(entityName).append(\".page.title\").toString();\n\t\textractFormFields(root, \"\");\n\t}", "public BasePage(WebDriver driver)\n\t{\n\t\tpageDriver= driver;\n\t\tPageFactory.initElements(new AjaxElementLocatorFactory(driver, 25), this);\n\t}", "public Page(WebDriver webDriver) {\n this.webDriver = webDriver;\n\t}", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "public MainPage() {\n initComponents();\n \n initPage();\n }", "public CheckOutPageTest()\n\t{\n\t\tsuper();\n\t}", "public PageLink(int page, String label) {\r\n this(page, label, null);\r\n }", "public PropertyClassificationPage() {\n initComponents();\n }", "public ExcursionPage( WebDriver driver ) {\r\n\t\r\n\t\tsuper( driver );\r\n\t}", "public HTMLParser () {\r\n this.pagepart = null;\r\n }", "public LoginPage() {\r\n\t\t\t\r\n\t\t\t//Initialize webElements.\r\n\t\t\tPageFactory.initElements(driver, this);\r\n\t\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HeaderSettingsPage()\n {\n initialize();\n }", "public Zip_Code(WebDriver driver){\n super();\n PageFactory.initElements(driver,this);\n //local page logger gets set to abstract class logger when you use it in\n //page object\n this.logger = super.logger;\n\n }", "public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }", "Page getPage();", "public RemovePage() {\n }", "public RegistrationPage() {\t\t\r\n\t\tdriver = DriverManager.getThreadSafeDriver();\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public TextFieldPage() {\n initView();\n }", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public MainPage(WebDriver driver) {\n super(driver);\n }", "public LoginPageTest()\n\t{\n\t\tsuper();\n\t}", "public void setPage(Page page) {this.page = page;}", "public PageVisits() {\n LOG.info(\"=========================================\");\n LOG.info(\"Page Visit Counter is being created\");\n LOG.info(\"=========================================\");\n }", "public PageGeneratorLanguareFactoryImpl()\n {\n super();\n }", "public CopyPage() {\n initComponents();\n }", "public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "public HomePage(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this); //now all Page Factory elements will have access to the driver, \n\t\t\t\t\t\t\t\t\t\t\t\t//which is need to get a hold of all the elements. w/o it, tests will fail. \n\t\t\t\t\t\t\t\t\t\t\t\t//\"this\" is referring to the Class HomePage\n\t}", "public HtmlPage(String h){\r\n\t\t//extract the hrefs:\r\n\t\tHREF.setHref(getHrefs(h));\r\n\t\t//extract the encoding:\r\n\t\t\r\n\t}", "protected void construct()\n\t{\n\t\tassert(driver != null);\n\t\t// V�rification que l'on est bien sur la bonne page\n\t String sTitle = driver.getTitle();\n\t\tif(!sTitle.equals(TITLE)) {\n throw new IllegalStateException(\"This is not Login Page, current page is: \" +driver.getCurrentUrl());\n\t\t}\t\t\n\t\ttbUserName = driver.findElement(ByUserName);\n\t\ttbPassword = driver.findElement(ByPassword);\n\t\tbtnConnect = driver.findElement(ByConnect);\n\t}", "public WebPage(){\n dom = new LinkedList<String>() /* TODO\n//Initialize this to some kind of List */;\n }", "public AmazonHomePage(WebDriver driver) {\n\t\tsuper(driver);\n\t}", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public SearchPage() {\n\t\tdoRender();\n\t}", "public TaggedPagePipeline() {\r\n\t\t//设定默认绝对路径,如果初始化的时候没有设定(只支持win)\r\n\t\tsetPath(\"c:/temp/myspider/cnblogs/\");\r\n\t}" ]
[ "0.7891488", "0.78895324", "0.77237886", "0.7605521", "0.7570372", "0.7530729", "0.7505596", "0.7479265", "0.7430141", "0.73075557", "0.7263368", "0.7188996", "0.7184129", "0.7180177", "0.71741533", "0.71602684", "0.715695", "0.71441627", "0.70764637", "0.7050257", "0.7046465", "0.70368904", "0.7012767", "0.7009358", "0.700795", "0.7006481", "0.7005082", "0.6999268", "0.6970059", "0.6952762", "0.6940532", "0.69387674", "0.69387674", "0.69387674", "0.69387674", "0.6937842", "0.6927388", "0.6911192", "0.68972576", "0.6887092", "0.688646", "0.6861029", "0.68112123", "0.680015", "0.67984223", "0.67829704", "0.67726576", "0.67712027", "0.6751628", "0.675161", "0.6732733", "0.67308474", "0.67161024", "0.6675714", "0.66730654", "0.6669036", "0.66672546", "0.6651108", "0.6644928", "0.66311824", "0.66298157", "0.6622285", "0.66162884", "0.6613397", "0.6610495", "0.6599957", "0.65965354", "0.65922", "0.65463567", "0.65387946", "0.6537594", "0.6522402", "0.6520643", "0.65136665", "0.65094733", "0.6505774", "0.6505774", "0.6480897", "0.64733356", "0.64696425", "0.64661455", "0.6458991", "0.6444914", "0.64402544", "0.6419288", "0.6409215", "0.63978803", "0.63836634", "0.63735306", "0.6369751", "0.6346535", "0.63443077", "0.6340459", "0.6329609", "0.63219035", "0.6321211", "0.63186705", "0.6311612", "0.63101983", "0.6304041" ]
0.6432242
84
Locate a web element using CSS selector.
public WebElement $(String cssSelector) { return driver.findElement(By.cssSelector(cssSelector)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private WebElement getCssSelectorElement(String cssSelectorInfo) {\n\t\tWebElement element = null;\n\t\t// WebDriverWait wait = new WebDriverWait(driver, 60);\n\t\telement = SearchTest.wait.until(visibilityOfElementLocated(By.cssSelector(cssSelectorInfo)));\n\t\treturn element;\n\t}", "protected WebElement findWebElement (By webElementSelector){\n\t\ttry {\n\t\t\treturn webDriver.findElement(webElementSelector);\t\n\t\t} catch (NoSuchElementException noSuchElement) {\n\t\t\tthrow new AssertionError(\"Cannot find the web element with selector \" + webElementSelector.toString());\n\t\t}\t\t\n\t}", "public static ByCssSelector cssSelector(final String selector) {\r\n if (selector == null)\r\n throw new IllegalArgumentException(\r\n \"Cannot find elements when the selector is null\");\r\n\r\n return cssSelector(selector, \"\");\r\n }", "public WebElement findElement(By locator){\n\t\tWebElement element = null;\n\t\tif(driver == null){\n\t\t\tthrow new IllegalArgumentException(\"WebDriver cannot be null\");\n\t\t}\n\n\t\ttry {\n\t\t\twaitForElement(locator);\n\t\t\twaitForElement(ExpectedConditions.refreshed(ExpectedConditions.presenceOfElementLocated(locator)));\n\t\t\twaitForElement(ExpectedConditions.refreshed(ExpectedConditions.visibilityOfElementLocated(locator)));\n\t\t\telement = driver.findElement(locator);\n\t\t\t//((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", element);\n\n\t\t}catch(Exception e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Element with locator [\"+ locator.toString() +\"] was not found.\");\n\t\t}\n\t\treturn element;\n\t}", "public WebElement getElement(String locator){\n\t\tWebElement webElement = null;\n\t\twaitForElementVisibility(locator);\n\t\ttry{\n\t\t\tif(locator.startsWith(\"//\")) {\t\n\t\t\t\twebElement = driver.findElement(By.xpath(locator));\t\t\t\t\n\t\t\t}else if( locator.startsWith(\"css=\")) {\n\t\t\t\tlocator=locator.substring(4);\n\t\t\t\twebElement = driver.findElement(By.cssSelector(locator));\n\t\t\t}else if( locator.startsWith(\"class=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.className(locator));\n\t\t\t}else if( locator.startsWith(\"name=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.name(locator));\n\t\t\t}else if( locator.startsWith(\"link=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.linkText(locator));\n\t\t\t}else if( locator.startsWith(\"tag=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.tagName(locator));\n\t\t\t} else\n\t\t\t\twebElement = driver.findElement(By.id(locator));\n\t\t\tlog.debug(\"ELEMENT FOUND WITH LOCATOR : \"+locator);\n\t\t}catch (NoSuchElementException ex) {\n\t\t\tlog.debug(\"No such element \"+locator);\n\t\t\treturn webElement;\n\t\t} catch(Exception ex) {\n\t\t\tlog.debug(\"ELEMENT NOT FOUND WITH LOCATOR : \"+locator);\n\t\t ex.printStackTrace();\n\t\t return webElement;\n\t\t}\n\t\treturn webElement;\t\t\n\t}", "public WebElement findElement(By element) {\r\n\t\t\r\n\t\treturn driver.findElement(element);\r\n\t\t\t\r\n\t}", "public WebElement findElementClickable(By locator){\n\t\tWebElement element = null;\n\t\tif(driver == null){\n\t\t\tthrow new IllegalArgumentException(\"WebDriver cannot be null\");\n\t\t}\n\n\t\ttry {\n\n\t\t\twaitForElement(locator);\n\t\t\twaitForElement(ExpectedConditions.refreshed(ExpectedConditions.elementToBeClickable(locator)));\n\t\t\telement = driver.findElement(locator);\n\t\t\t//((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", element);\n\t\t\treturn element;\n\n\t\t}catch(Exception e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Element with locator [\"+ locator.toString() +\"] was not found.\");\n\n\t\t}\n\t}", "public WebElement findElement(String sElement) {\n\t\treturn findElement(sCurrentPage,sElement);\n\t}", "public WebElement findElement(By locator) {\n try {\n WebElement element = getDriver().findElement(locator);\n return element;\n } catch (NoSuchElementException e) {\n error(\"Exception Occurred in while finding element with definition :: \" + locator);\n error(Throwables.getStackTraceAsString(e));\n throw new NoSuchElementException(e.getMessage());\n }\n }", "public WebElement findElementByCSS(String CSSValue) {\n\t\ttry {\n\t\t\tElement = driver.findElement(By.cssSelector(CSSValue));\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t\treturn Element;\n\n\t}", "public static void clickOnElem(String locator) {\n try {\n // Check and click by cssSelector\n driver.findElement(By.cssSelector(locator)).click();\n } catch (Exception e1) {\n try {\n // Check and click by name\n driver.findElement(By.name(locator)).click();\n } catch (Exception e2) {\n try {\n // Check and click by xpath\n driver.findElement(By.xpath(locator)).click();\n } catch (Exception e3) {\n // Check and click by id\n driver.findElement(By.id(locator)).click();\n }\n }\n }\n }", "protected WebElement find(By locator) {\n try {\n return driver.findElement(locator);\n } catch (NoSuchElementException e) {\n log.error(\"Element not found: [\" + locator + \"]\");\n log.error(e.toString());\n return null;\n }\n }", "public WebElement getElement(By locator) {\n\t\tWebElement element= driver.findElement(locator);\n\t\treturn element;\n\t}", "public WebElement returnElementByXpath(String xpath){\n WebElement element;\n element = driver.findElement(By.xpath(xpath));\n return element;\n }", "static ElementExists containsElement(String cssSelector) {\n return new ElementExists(cssSelector);\n }", "public WebElement getElement(By locator ){\n \tWebElement element=null;\n \ttry{\n \t\t element=driver.findElement(locator);\n \t}catch(Exception e){\n \t\tSystem.out.println(\"some exception occured while creating web element \"+ locator);\n \t} \t\n \treturn element;\n }", "public void clickOnElement (String locator){\n String jQuerySelector = \"return $(\\\"\" + locator + \"\\\").get(0);\";\n WebElement element = (WebElement) js.executeScript(jQuerySelector);\n element.click();\n }", "Element getElement(String id);", "protected void findWebElementAndType (By webElementSelector, String text){\n\t\tWebElement inputBox = findWebElement(webElementSelector);\n\t\ttry {\n\t\t\tinputBox.sendKeys(text);\n\t\t} catch (ElementNotVisibleException e){\n\t\t\tthrow new AssertionError(\"Found the web element, but it's not visible to send keys. \" + webElementSelector.toString());\n\t\t}\n\t}", "Selector getSelector();", "public WebElement getElement(By locator) {\n\t\tWebElement ele = null;\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, EXPLICIT_WAIT_S);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t\tele = driver.findElement(locator);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TimeoutException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\treturn ele;\n\n\t}", "public WebElement getElementShort(By locator) {\n\t\tWebElement ele = null;\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, IMPLICITE_WAIT_S);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t\tele = driver.findElement(locator);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TimeoutException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\treturn ele;\n\n\t}", "public void clickByXpath (String locator){\n\t\tdriver.findElement (By.xpath(locator)).click();\n\n\t}", "@Override\npublic void findElement(String by) {\n\t\n}", "protected void findWebElementAndClick (By webElementSelector){\n\t\tWebElement button = findWebElement(webElementSelector);\n\t\ttry {\t\t\n\t\t\tbutton.click();\n\t\t} catch (StaleElementReferenceException e) {\n\t\t\tthrow new AssertionError(\"Found the web element, but cannot perform click action. \" + webElementSelector.toString());\n\t\t}\t\t\n\t}", "@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}", "@CssSelector(\"${williamsSProducts}\")\n\tpublic AspireWebElements williamsSProducts();", "public static MobileElement element(By locator) {\n return w(driver.findElement(locator));\n }", "private boolean isElementPresent(By cssSelector) {\n\treturn false;\n}", "WebElement getSearchButton();", "public void ClickAtDesireProduct(String product){ //clicarNoProdutoDesejado\n driver.findElement(By.xpath(\"//h3[contains(text(),'\" + product + \"')]\")).click();\n\n }", "public static List<WebElement> getElementBycssSelector(WebElement listElements, String cssSelector)\n\t\t\tthrows Exception {\n\t\tList<WebElement> element;\n\t\tList<WebElement> cssSelectorLocator;\n\t\ttry {\n\t\t\telement = listElements.findElements((By.cssSelector(cssSelector)));\n//\t\t\tcssSelectorLocator = listElements.findElements(By.cssSelector(cssSelector));\n//\t\t\telement = explicitlyWait.until(ExpectedConditions.visibilityOfAllElements(cssSelectorLocator));\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn element;\n\t}", "protected List<WebElement> locate(final String passedInCssSelector) {\n if (this.cssSelector != null) {\n this.cssSelector = passedInCssSelector;\n return this.driver.findElements(By.cssSelector(this.cssSelector));\n }\n\n return new ArrayList<>();\n }", "public Selector getSelector();", "public Selector getSelector();", "public static WebElement getElementByxpath(String xpath) throws Exception {\n\t\tWebElement element = null;\n\t\ttry {\n\t\t\telement = driver.findElement(By.xpath(xpath));\n\t\t\t// element =\n\t\t\t// explicitlyWait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn element;\n\t}", "public static WebElement getObject(String xpathKey){\n\t\tString strXpath = xpathKey;\n\t\t\n\t\tif(strXpath.startsWith(\"//\")){\n\t\t\t\n\t\t\treturn driver.findElement(By.xpath((xpathKey).trim()));\n\t\t\n\t\t}else{\n\t\t\t\n\t\t\treturn driver.findElement(By.id((xpathKey).trim()));\n\t\t}\n\t}", "public By autoLocator(String locator){\n \ttry{\n \t\tif(locator.startsWith(\"//\")){\n \t\t\treturn By.xpath(locator);\n \t\t}else if (locator.startsWith(\"class=\")){\n \t\t\tlocator = locator.split(\"=\")[1];\n \t\t return By.className(locator);\n \t\t}else if (locator.startsWith(\"css=\")) {\n \t\t\tlocator=locator.substring(4);\n \t\t\t\treturn By.cssSelector(locator);\n \t\t}else\n \t\t\treturn By.id(locator);\n \t} catch (NoSuchElementException noSuchElementException){\n \t\treturn null;\n \t}\n }", "public WebElement apply(WebDriver driver ) {\n return driver.findElement(By.xpath(\"/html/body/div[1]/section/div[2]/div/div[1]/div/div[1]/div/div/div/div[2]/div[2]/div/div/div/div/div[1]/div/div/a/i\"));\n }", "public List<WebElement> $$(String cssSelector) {\n return driver.findElements(By.cssSelector(cssSelector));\n }", "String getSelector();", "static ElementDoesNotExist doesNotContainElement(String cssSelector) {\n return new ElementDoesNotExist(cssSelector);\n }", "public T find(T element);", "private WebElement getXpath(String xpathInfo) {\n\t\tWebElement element = null;\n\t\t// WebDriverWait wait = new WebDriverWait(driver, 60);\n\t\telement = SearchTest.wait.until(visibilityOfElementLocated(By.xpath(xpathInfo)));\n\t\treturn element;\n\t}", "public WebElement locateElement(String locatorValue) {\n\t\tWebElement findElementById = getter().findElement(By.id(locatorValue));\r\n\t\treturn findElementById;\r\n\t}", "protected void findWebElementAndSelect(By webElementSelector, String value){\n\t\ttry {\n\t\t\tSelect dropdown = new Select(findWebElement(webElementSelector));\n\t\t\tdropdown.selectByVisibleText(value);\n\t\t} catch (UnexpectedTagNameException e) {\n\t\t\tthrow new AssertionError(\"Cannot create select item basing on webElement \" + webElementSelector.toString());\n\t\t}\t\t\n\t}", "public static WebElement getObject(String xpathKey){\n\ttry{\n\treturn driver.findElement(By.xpath(OR.getProperty(xpathKey)));\n\t}catch(Throwable t){\n\t\t//report error\n\t\treturn null;\n\t\n}\n}", "Element getElement(Position pos);", "public String findAndReturnFirstLink() {\n\t\tString xpath = \"//div[@id='search']/div/div/div/div/div/div[1]/div/div/h3/a\";\r\n\t\telement = webDriver.findElement(By.xpath(xpath));\r\n\t\t//element = webDriver.findElement(By.cssSelector(css));\r\n\t\treturn element.getText();\r\n\t}", "@Test\r\n public void findShadowDOMWithSeleniumFindElement () {\n WebElement shadowHost = driver.findElement(By.tagName(\"book-app\"));\r\n\r\n // #2 Execute JavaScript To Return The Shadow Root\r\n JavascriptExecutor jsExecutor = (JavascriptExecutor) driver;\r\n WebElement shadowRoot = (WebElement) jsExecutor.executeScript(\r\n \"return arguments[0].shadowRoot\", shadowHost);\r\n\r\n // #3 Find The WebElement Then Perform An Action On The WebElement\r\n WebElement app_header = shadowRoot.findElement(By.tagName(\"app-header\"));\r\n WebElement app_toolbar\r\n = app_header.findElement(By.cssSelector(\".toolbar-bottom\"));\r\n WebElement book_input_decorator\r\n = app_toolbar.findElement(By.tagName(\"book-input-decorator\"));\r\n WebElement searchField = book_input_decorator.findElement(By.id(\"input\"));\r\n searchField.sendKeys(\"Shadow DOM With Find Element\");\r\n }", "Element getElement();", "public static JQueryLocator jq(String jquerySelector) {\n return new JQueryLocator(jquerySelector);\n }", "public static WebElement findElement(String locatorType, String locatorPath) {\r\n\r\n\t\telement = returnElement(locatorType, locatorPath);\r\n\t\telement.isDisplayed();\r\n\r\n\t\treturn element;\r\n\t}", "public static void selectByVisibleText (By element , String text){\n new Select(driver.findElement(element)).selectByVisibleText(text);\n }", "public WebElement getElement(String locatorKey){\r\n\t\tWebElement e=null;\r\n\t\ttry{\r\n\t\tif(locatorKey.endsWith(\"_id\"))\r\n\t\t\te = driver.findElement(By.id(prop.getProperty(locatorKey)));\r\n\t\telse if(locatorKey.endsWith(\"_name\"))\r\n\t\t\te = driver.findElement(By.name(prop.getProperty(locatorKey)));\r\n\t\telse if(locatorKey.endsWith(\"_xpath\"))\r\n\t\t\te = driver.findElement(By.xpath(prop.getProperty(locatorKey)));\r\n\t\telse if(locatorKey.endsWith(\"_class\"))\r\n\t\t\te = driver.findElement(By.className(prop.getProperty(locatorKey)));\r\n\t\telse{\r\n\t\t\treportFailure(\"Locator not correct - \" + locatorKey);\r\n\t\t\tAssert.fail(\"Locator not correct - \" + locatorKey);\r\n\t\t}\r\n\t\t\r\n\t\t}catch(Exception ex){\r\n\t\t\t// fail the test and report the error\r\n\t\t\treportFailure(ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t\tAssert.fail(\"Failed the test - \"+ex.getMessage());\r\n\t\t}\r\n\t\treturn e;\r\n\t}", "public void clickEvent(String CSSSelector) throws InterruptedException {\n driver.findElement(By.cssSelector(CSSSelector)).click();\n Thread.sleep(5000);\n }", "public void scrollToElementByWebElementLocator(WebElement element) {\n try {\n this.wait.until(ExpectedConditions.visibilityOf(element)).isEnabled();\n js.executeScript(\"arguments[0].scrollIntoView();\", element);\n// js.executeScript(\"window.scrollBy(0, -400)\");\n log.info(\"Succesfully scrolled to the WebElement, using locator: \" + \"<\" + element.toString() + \">\");\n } catch (Exception e) {\n log.error(\"Unable to scroll to the WebElement, using locator: \" + \"<\" + element.toString() + \">\");\n Assert.fail(\"Unable to scroll to the WebElement, Exception: \" + e.getMessage());\n }\n }", "Object getComponent(WebElement element);", "public static String selectTextUnderHeader(final String selector, final Element element) {\n String text = null;\n for(String partOfSelector: selector.split(\", \")){\n text = selectText(\"h3:containsOwn(\" + partOfSelector + \") + dl > dd\", element);\n if(text != null){\n return text;\n }\n }\n return null;\n }", "<T extends IElement> T findChildElement(IElement parentElement, By childLoc, Class<? extends IElement> clazz);", "public static WebElement getObject(String xpathKey){\n\t\t\n\t\tWebElement obj = null;\n\t\tobj = driver.findElement(By.xpath(OR.getProperty(xpathKey)));\n\t\treturn obj;\n\t}", "public int indexOfElement(DomainElement element);", "Selector getSelector(final String selector, final String query) throws FittingException;", "public static WebElement webAction(final By locator) {\n\t\tWait<WebDriver> wait = new FluentWait<WebDriver>(SharedSD.getDriver())\n\t\t\t\t.withTimeout(15, TimeUnit.SECONDS)\n\t\t\t\t.pollingEvery(1, TimeUnit.SECONDS)\n\t\t\t\t.ignoring(NoSuchElementException.class)\n\t\t\t\t.ignoring(StaleElementReferenceException.class)\n\t\t\t\t.ignoring(ElementNotFoundException.class)\n\t\t\t\t.withMessage(\n\t\t\t\t\t\t\"Webdriver waited for 15 seconds but still could not find the element therefore Timeout Exception has been thrown\");\n\n\t\tWebElement element = wait.until(new Function<WebDriver, WebElement>() {\n\t\t\tpublic WebElement apply(WebDriver driver) {\n\t\t\t\treturn driver.findElement(locator);\n\t\t\t}\n\t\t});\n\n\t\treturn element;\n\t}", "static public Element lookup(Color color)\n {\n return lookup(color.getRGB());\n }", "public NetElement lookupNetElement(String id);", "public static CssLocator css(String cssSelector) {\n return new CssLocator(cssSelector);\n }", "public void hoverElement(WebDriver driver, String xpath) {\t\t\n\t\tWebElement Element = driver.findElement(By.xpath(xpath));\n Actions builder = new Actions(driver);\n builder.moveToElement(Element).build().perform(); \n\t}", "public boolean find(String sElement){\n\t\tboolean bReturn = false;\n\t\ttry{\n\t\t\tbReturn = findElement(sElement).isDisplayed();\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Exception occured in finding the WebElement: \"+e.getMessage());\n\t\t}\n\t\t\n\t\treturn bReturn;\n\t}", "public WebElement getElement(WebDriver driver, By locator, int timeout) throws Exception {\n for (int i = 0; i <= timeout; i++) {\n try {\n element = driver.findElement(locator);\n log.info(\"Found element with : \" + locator);\n return element;\n } catch (Exception e) {\n log.info(i + \". Trying to find element with \" + locator);\n }\n Thread.sleep(2000);\n }\n StackTraceElement stackTrace = new Throwable().getStackTrace()[1];\n log.error(\"Cannot find element with : \" + locator);\n log.error(\"Cannot find element : \" + stackTrace.getClassName() + \".\" + stackTrace.getMethodName());\n throw new Exception(\"Unable to find Element\");\n }", "@Override\n\tpublic WebElement $x(String xpath) {\n\t\tList<WebElement> els = this.findElements(By.xpath(xpath));\n\t\tif (els.size() >= 0) {\n\t\t\treturn els.get(0);\n\t\t}\n\t\treturn null;\n\t}", "public WebElement findElementByXPath(String XPathValue) {\n\t\ttry {\n\t\t\tElement = driver.findElement(By.xpath(XPathValue));\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t\treturn Element;\n\n\t}", "@Test\n public void findElementByXPath_nativeContext() {\n WebElement element = driver.findElement(By.xpath(\n \"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget\" +\n \".FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view\" +\n \".View/android.view.View/android.view.View/android.view.View/android.view\" +\n \".View/android.view.View[2]/android.view.View/android.view.View[2]/android.view\" +\n \".View[2]/android.view.View[1]\"));\n assertThat(element.getText()).contains(\"Ionic Documentation\");\n }", "public WebElement element(String strElement) throws Exception {\n String locator = prop.getProperty(strElement); \n // extract the locator type and value from the object\n String locatorType = locator.split(\";\")[0];\n String locatorValue = locator.split(\";\")[1];\n // System.out.println(By.xpath(\"AppLogo\"));\n \n // for testing and debugging purposes\n System.out.println(\"Retrieving object of type '\" + locatorType + \"' and value '\" + locatorValue + \"' from the Object Repository\");\n \n // wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//input[@id='text3']\")));\n try {\n\n\n \tif(locatorType.equalsIgnoreCase(\"Id\"))\n \t\treturn driver.findElement(By.id(locatorValue)); \n \telse if(locatorType.equalsIgnoreCase(\"Xpath\")) \n \t\t\treturn driver.findElement(By.xpath(locatorValue)); \n// \t\t}catch(Exception e) {\n// \t\t\tdriver.navigate().refresh();\n//\n// \t\t\t@SuppressWarnings({ \"unchecked\", \"deprecation\", \"rawtypes\" })\n// \t\t\tWait<WebDriver> wait = new FluentWait(driver) \n// \t\t\t.withTimeout(8, TimeUnit.SECONDS) \n// \t\t\t.pollingEvery(1, TimeUnit.SECONDS) \n// \t\t\t.ignoring(NoSuchElementException.class);\n// \t\t\twait.until(ExpectedConditions.visibilityOf(driver.findElement(By.xpath(locatorValue))));\n// \t\t\treturn driver.findElement(By.xpath(locatorValue)); \n// \t\t}\n \n \n \n else if(locatorType.equalsIgnoreCase(\"Name\"))\n \treturn driver.findElement(By.name(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Classname\")) \n \treturn driver.findElement(By.className(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Tagname\"))\n \treturn driver.findElement(By.className(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Linktext\"))\n \treturn driver.findElement(By.linkText(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Partiallinktext\"))\n \treturn driver.findElement(By.partialLinkText(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Cssselector\")) \n \treturn driver.findElement(By.cssSelector(locatorValue));\n\n \n } catch (NoSuchElementException | StaleElementReferenceException e) {\n \t\t\n if(locatorType.equalsIgnoreCase(\"Id\"))\n return driver.findElement(By.id(locatorValue)); \n else if(locatorType.equalsIgnoreCase(\"Xpath\")) \n return driver.findElement(By.xpath(locatorValue)); \n else if(locatorType.equalsIgnoreCase(\"Name\"))\n \treturn driver.findElement(By.name(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Classname\")) \n \treturn driver.findElement(By.className(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Tagname\"))\n \treturn driver.findElement(By.className(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Linktext\"))\n \treturn driver.findElement(By.linkText(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Partiallinktext\"))\n \treturn driver.findElement(By.partialLinkText(locatorValue));\n else if(locatorType.equalsIgnoreCase(\"Cssselector\")) \n \treturn driver.findElement(By.cssSelector(locatorValue));\n }\n throw new NoSuchElementException(\"Unknown locator type '\" + locatorType + \"'\"); \n \t}", "public WebElement find_Element_Locators(String locators, String id) {\n\t\tWebElement find_Element = null;\n\t\ttry {\n\t\t\tif (locators.equalsIgnoreCase(\"id\")) {\n\t\t\t\tfind_Element = driver.findElement(By.id(id));\n\t\t\t}\n\t\t\telse if (locators.equalsIgnoreCase(\"name\")) {\n\t\t\t\tfind_Element=driver.findElement(By.name(id));\n\t\t\t}\n\t\t\telse if (locators.equalsIgnoreCase(\"xpath\")) {\n\t\t\t\t find_Element = driver.findElement(By.xpath(id));\n\t\t\t}\n\t\t\telse if (locators.equalsIgnoreCase(\"tagName\")) {\n\t\t\t\tfind_Element = driver.findElement(By.tagName(id));\n\t\t\t}\n\t\t\telse if (locators.equalsIgnoreCase(\"className\")) {\n\t\t\t\tfind_Element = driver.findElement(By.className(id));\n\t\t\t}\n\t\t\telse if (locators.equalsIgnoreCase(\"cssSelector\")) {\n\t\t\t\tfind_Element = driver.findElement(By.cssSelector(id));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn find_Element;\n\t}", "public abstract OneCampaignAbstract accessToElementSearched(final String key, final String element);", "public abstract ServiceLocator find(String name);", "<T extends IElement> T findChildElement(IElement parentElement, By childLoc, ElementType type);", "public static WebElement selectHighlightedtext(WebDriver driver)\n\t{\n\t\telement = driver.findElement(By.xpath(\"//span[contains(text(),'+91 India')]\"));\n\t\treturn element; \n\t\t\t\t\n\t}", "public static MobileElement getElement(By by)\n\t{\n\t\treturn LocalDriverManagerMobile.INSTANCE.getDriver().findElement(by);\n\t}", "public SeleniumQueryObject closest(String selector) {\n\t\treturn ClosestFunction.closest(this, elements, selector);\n\t}", "private WebElement getid(String idInfo) {\n\t\tWebElement element = null;\n\t\t// WebDriverWait wait = new WebDriverWait(driver, 60);\n\t\telement = SearchTest.wait.until(visibilityOfElementLocated(By.id(idInfo)));\n\t\treturn element;\n\t}", "@Override\n\tpublic T find(T targetElement) {\n\t\tif(contains(targetElement))\n\t\t return targetElement;\n\t\telse \n\t\t\treturn null;\n\t\t\n\t}", "public static void click(By locator) throws CheetahException {\n\t\ttry {\n\t\t\twait_for_element(locator);\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\telement.click();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "public void clickOnElement (By locator){\n appiumDriver.findElement(locator).click();\n }", "public void enterOnElem(String locator) {\n try {\n // Check and enter by cssSelector\n driver.findElement(By.cssSelector(locator)).sendKeys(Keys.ENTER);\n } catch (Exception e1) {\n try {\n // Check and enter by name\n driver.findElement(By.name(locator)).sendKeys(Keys.ENTER);\n } catch (Exception e2) {\n try {\n // Check and enter by xpath\n driver.findElement(By.xpath(locator)).sendKeys(Keys.ENTER);\n } catch (Exception e3) {\n // Check and enter by id\n driver.findElement(By.id(locator)).sendKeys(Keys.ENTER);\n }\n }\n }\n }", "public Locomotive scrollTo(String css) {\n return scrollTo(By.cssSelector(css));\n }", "public SelenideElement searchByUser() {\n return formPageRoot().$(By.xpath(\"//input[@type='text']\"));\n }", "public WebElement findElementByName(String NameValue) {\n\t\ttry {\n\t\t\tElement = driver.findElement(By.name(NameValue));\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t\treturn Element;\n\n\t}", "public static void selectByVisibletext(By element, String text)\n {\n new Select(driver.findElement(element)).selectByVisibleText(text);\n }", "private Element traverse_search(Element element) {\n \ttry {\n\t \tString userid = profile.getAttributeValue(\"personal\", \"id\");\n\t \tString course = profile.getAttributeValue(\"personal\", \"course\");\n\t \tString context = WOWStatic.config.Get(\"CONTEXTPATH\");\n\n\t \tElement a = doc.createElement(\"a\");\n\t \ta.setAttribute(\"href\", context + \"/Get?wndName=Search\");\n\t \ta.setAttribute(\"target\", userid + \"$\" + course);\n\t \ta.appendChild(doc.createTextNode(\"Search\"));\n\t \treturn (Element)replaceNode(element, a);\n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\treturn (Element)replaceNode(element, createErrorElement(\"Error!\"));\n \t}\n }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "public WebElement waitForElement(By by) {\n List<WebElement> elements = waitForElements(by);\n int size = elements.size();\n\n if (size == 0) {\n Assertions.fail(String.format(\"Could not find %s after %d attempts\",\n by.toString(),\n configuration.getRetries()));\n } else {\n // If an element is found then scroll to it.\n scrollTo(elements.get(0));\n }\n\n if (size > 1) {\n Logger.error(\"WARN: There are more than 1 %s 's!\", by.toString());\n }\n\n return getDriver().findElement(by);\n }", "public Node searchElement(Object el) {\n\t\n\t\tfor (Node elemento : this.set) {\n\t\t\tif(elemento.getElemento().equals(el)) {\n\t\t\t\treturn elemento;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "abstract protected void selectUiNode(UiElementNode uiNode);", "@Test\n\t@TestProperties(name = \"Click element ${by}:${locator}\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void clickElement() {\n\t\tfindElement(by, locator).click();\n\t}", "public WebElement findElement(final WebDriver driver, final By locator, final int timeoutSeconds) {\n\t\tFluentWait<WebDriver> wait = new FluentWait<WebDriver>(driver).withTimeout(timeoutSeconds, TimeUnit.SECONDS)\n\t\t\t\t.pollingEvery(500, TimeUnit.MILLISECONDS).ignoring(NoSuchElementException.class);\n\n\t\treturn wait.until(new Function<WebDriver, WebElement>() {\n\t\t\tpublic WebElement apply(WebDriver webDriver) {\n\t\t\t\treturn driver.findElement(locator);\n\t\t\t}\n\t\t});\n\t}", "public By getLocator(String elementName) {\n\t\t// Read value using the logical name as Key\n\t\tString locator = properties.getProperty(elementName);\n\t\t// Split the value which contains locator type and locator value\n\t\tString temp[] = locator.split(\":\", 2);\n\t\tString locatorType = temp[0];\n\t\tString locatorValue = temp[1];\n\t\t// Return a instance of By class based on type of locator\n\t\tif (locatorType.toLowerCase().equals(\"id\")) {\n\t\t\treturn By.id(locatorValue);\n\t\t} else if (locatorType.toLowerCase().equals(\"name\"))\n\t\t\treturn By.name(locatorValue);\n\t\telse if ((locatorType.toLowerCase().equals(\"classname\")) || (locatorType.toLowerCase().equals(\"class\")))\n\t\t\treturn By.className(locatorValue);\n\t\telse if ((locatorType.toLowerCase().equals(\"tagname\")) || (locatorType.toLowerCase().equals(\"tag\")))\n\t\t\treturn By.tagName(locatorValue);\n\t\telse if ((locatorType.toLowerCase().equals(\"mtagname\")) || (locatorType.toLowerCase().equals(\"mtag\")))\n\t\t\treturn MobileBy.tagName(locatorValue);\n\t\telse if ((locatorType.toLowerCase().equals(\"linktext\")) || (locatorType.toLowerCase().equals(\"link\")))\n\t\t\treturn By.linkText(locatorValue);\n\t\telse if (locatorType.toLowerCase().equals(\"partiallinktext\"))\n\t\t\treturn By.partialLinkText(locatorValue);\n\t\telse if ((locatorType.toLowerCase().equals(\"cssselector\")) || (locatorType.toLowerCase().equals(\"css\")))\n\t\t\treturn By.cssSelector(locatorValue);\n\t\telse if (locatorType.toLowerCase().equals(\"xpath\"))\n\t\t\treturn By.xpath(locatorValue);\n\t\telse\n\t\t\tAssert.fail(\"Locator type '\" + locatorType + \"' not defined!!\");\n\t\treturn null;\n\t}", "public void setSelector(final String selector) {\n\t\tthis.selector = selector;\n\t}", "public void clickElementLocation(By anyElement)\n {\n\n Actions execute = new Actions(driver);\n execute.moveToElement(findElement(anyElement)).click().perform();\n }" ]
[ "0.6473035", "0.62322325", "0.6231441", "0.6138094", "0.6093535", "0.6021293", "0.5964342", "0.5883695", "0.588236", "0.5809574", "0.5807634", "0.578767", "0.57427347", "0.5703719", "0.5636064", "0.55780625", "0.55651027", "0.5500876", "0.54702675", "0.54546857", "0.5403682", "0.5392611", "0.53731227", "0.53564805", "0.53369176", "0.5320344", "0.52847946", "0.52652067", "0.5247596", "0.5246959", "0.52378875", "0.52345675", "0.5230568", "0.52287", "0.52287", "0.518713", "0.5186674", "0.5170042", "0.51576304", "0.51568013", "0.5153268", "0.51496273", "0.5138051", "0.51328415", "0.512975", "0.5121431", "0.51011556", "0.5065772", "0.5057478", "0.5044673", "0.50421995", "0.5036291", "0.502352", "0.50195014", "0.50193477", "0.50082505", "0.5006651", "0.5006529", "0.50000995", "0.49922064", "0.4977312", "0.49634048", "0.494597", "0.49451876", "0.4944337", "0.49205622", "0.49178725", "0.49178115", "0.4917303", "0.49112666", "0.4910765", "0.4905119", "0.48937026", "0.48870605", "0.48848376", "0.486767", "0.48622364", "0.48607004", "0.48507264", "0.48445356", "0.48333216", "0.48131076", "0.48104832", "0.48061475", "0.4800457", "0.47966355", "0.47936052", "0.47919536", "0.47912118", "0.4786952", "0.4777243", "0.47703236", "0.4770059", "0.47682726", "0.47648245", "0.475656", "0.47485977", "0.47271925", "0.4726569", "0.47253796" ]
0.68379337
0
Locate a list of web elements using CSS selector.
public List<WebElement> $$(String cssSelector) { return driver.findElements(By.cssSelector(cssSelector)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<WebElement> getElementBycssSelector(WebElement listElements, String cssSelector)\n\t\t\tthrows Exception {\n\t\tList<WebElement> element;\n\t\tList<WebElement> cssSelectorLocator;\n\t\ttry {\n\t\t\telement = listElements.findElements((By.cssSelector(cssSelector)));\n//\t\t\tcssSelectorLocator = listElements.findElements(By.cssSelector(cssSelector));\n//\t\t\telement = explicitlyWait.until(ExpectedConditions.visibilityOfAllElements(cssSelectorLocator));\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn element;\n\t}", "protected List<WebElement> findListOfElements(By locator) {\n waitForVisibilityOf(locator);\n return driver.findElements(locator);\n }", "protected List<WebElement> locate(final String passedInCssSelector) {\n if (this.cssSelector != null) {\n this.cssSelector = passedInCssSelector;\n return this.driver.findElements(By.cssSelector(this.cssSelector));\n }\n\n return new ArrayList<>();\n }", "protected List<WebElement> jsFindListOfElements(String locator) {\n JavascriptExecutor js = (JavascriptExecutor) driver;\n\n List<WebElement> listOfElements = (List<WebElement>) js.executeScript(\n \"var results = new Array();\"\n + \"var element = document.evaluate(\\\"\" + locator + \"\\\", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);\"\n + \"for (var i=0; i<element.snapshotLength; i++)\"\n + \"{\"\n + \"results.push(element.snapshotItem(i));\"\n + \"}\"\n + \"return results;\", \"\");\n return listOfElements;\n }", "<T extends IElement> List<T> findElements(By locator, ElementType type, ElementsCount count);", "<T extends IElement> List<T> findElements(By locator, Class<? extends IElement> clazz, ElementsCount count);", "public static List<MobileElement> elements(By locator) {\n return w(driver.findElements(locator));\n }", "public WebElement $(String cssSelector) {\n return driver.findElement(By.cssSelector(cssSelector));\n }", "public List<WebElement> findElements(By locator) {\n try {\n List<WebElement> element = getDriver().findElements(locator);\n return element;\n } catch (NoSuchElementException e) {\n error(\"element not found\" + locator);\n throw new NoSuchElementException(e.getMessage());\n }\n }", "public List<WebElement> fillCssElements(String cssSelector)\n\t{\n\t\tList<WebElement> elems = new ArrayList<>();\n\t\tTimer timer = new Timer(10000);\n\t\twhile(elems.isEmpty() && timer.stillWaiting())\n\t\t{\n\t\t\telems = findElements(By.cssSelector(cssSelector));\n\t\t}\n\t\treturn elems;\n\t}", "public List<WebElement> getElementList(String[] cssSelectors) throws InterruptedException {\n\n\t\tWebElement root = LibraryTest.driver.findElement(By.cssSelector(cssSelectors[0]));\n\t\tWebElement shadowRoot = null;\n\n\t\tfor (int i = 1; i < cssSelectors.length - 2; i++) {\n\t\t\tshadowRoot = expandRootElement(root);\n\t\t\troot = shadowRoot.findElement(By.cssSelector(cssSelectors[i]));\n\t\t\tThread.sleep(2000);\n\t\t}\n\n\t\tshadowRoot = expandRootElement(root);\n\t\tList<WebElement> Firstlist = shadowRoot.findElements(By.cssSelector(cssSelectors[cssSelectors.length - 2]));\n\t\tList<WebElement> Finallist = new ArrayList();\n\t\tfor (WebElement x : Firstlist) {\n\t\t\tshadowRoot = expandRootElement(x);\n\t\t\tFinallist.addAll(shadowRoot.findElements(By.cssSelector(cssSelectors[cssSelectors.length - 1])));\n\t\t}\n\n\t\treturn Finallist;\n\t}", "default <T extends IElement> List<T> findElements(By locator, Class<? extends IElement> clazz) {\n return findElements(locator, clazz, ElementsCount.MORE_THEN_ZERO);\n }", "private List<WebElement> findElements(String strategy, String locator, boolean xpath) {\n if (elementId.equals(\"\")) {\n return (List<WebElement>) driver.executeAtom(atoms.findElementsJs, xpath, strategy, locator);\n } else {\n return (List<WebElement>) driver.executeAtom(atoms.findElementsJs, xpath, strategy, locator, this);\n }\n }", "<T extends IElement> List<T> findElements(By locator, IElementSupplier<T> supplier, ElementsCount count);", "default <T extends IElement> List<T> findElements(By locator, ElementType type) {\n return findElements(locator, type, ElementsCount.MORE_THEN_ZERO);\n }", "public ArrayList<Element> getElementBySelector(String selectorGroupText, Document document){\n\t\tArrayList<Element> result = new ArrayList<Element>();\n\t\t\n\t\t// Split group by comma symbol and spaces\n\t\tString[] selectorTexts = selectorGroupText.split(\"\\\\s*,\\\\s*\");\n\t\tfor(String selectorText : selectorTexts){\n\t\t\tSelector selector = compiler.compile(selectorText);\n if( selector != null ) {\n ArrayList<Element> elements = select(selector, document);\n result.addAll(elements);\n }\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "private ArrayList<Element> select(Selector selector, Document document){\n\t\tArrayList<Element> result = new ArrayList<Element>();\n\t\t\n\t\tselectTraverse(selector, document.documentElement(), result);\n\t\t\n\t\treturn result;\n\t}", "@Override\r\n\tpublic List<WebElement> findElements() {\n\t\thandleContext(bean.getIn());\r\n\t\treturn driver.getRealDriver().findElements(bean.getBys().get(0));\r\n\t}", "@CssSelector(\"${williamsSProducts}\")\n\tpublic AspireWebElements williamsSProducts();", "public List<WebElement> GetBulkWebElementusingxpath(String xpath){\r\n\t\t\t\t List<WebElement> lst =Driver.driver.findElements(By.xpath(xpath));\r\n\t\t\t\treturn lst;\r\n\t\t\t\t\r\n\t\t\t}", "public List<AndroidElement> getListOfElementFromLocator(By locator) {\n return (List<AndroidElement>) appiumDriver.findElements(locator);\n }", "public List<WebElement> getWebElementList(By by) {\n List<WebElement> elementList = (List<WebElement>) driver.findElements(by);\n return elementList;\n }", "public List<WebElement> locateElements(String type, String value) {\n\t\ttry {\r\n\t\t\tswitch(type.toLowerCase()) {\r\n\t\t\tcase \"id\": return getter().findElements(By.id(value));\r\n\t\t\tcase \"name\": return getter().findElements(By.name(value));\r\n\t\t\tcase \"class\": return getter().findElements(By.className(value));\r\n\t\t\tcase \"link\": return getter().findElements(By.linkText(value));\r\n\t\t\tcase \"xpath\": return getter().findElements(By.xpath(value));\r\n\t\t\t}\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.err.println(\"The Element locator:\"+type+\" value not found: \"+value);\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static List<WebElement> getElementByclass(WebElement listElements, String className) throws Exception {\n\t\tList<WebElement> element;\n//\t\tList<WebElement> classLocator;\n\t\ttry {\n\t\t\telement = listElements.findElements(By.className(className));\n//\t\t\tclassLocator = listElements.findElements(By.className(className));\n//\t\t\telement = explicitlyWait.until(ExpectedConditions.visibilityOfAllElements(classLocator));\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn element;\n\t}", "@Test\n public void locatorsCombinationTest() throws Exception {\n /* Search the word \"test\" on Google */\n driver.get(\"https://www.google.co.uk/search?dcr=0&ei=qTR0WquJOojosAXBu5KoBA&q=octane&oq=octane&gs_l=psy-ab.3..0i71k1l4.861.861.0.1157.1.1.0.0.0.0.0.0..0.0....0...1c.1.64.psy-ab..1.0.0....0.rHW5osH_iok\");\n\n /* Using the standard devtools */\n driver.findElement(By.xpath(\"//*[@id='rhs_block']/div[1]/div[1]/div/div[1]/div[2]/div[1]/div/div[1]/div/div/div[2]/div[1]/span\"));\n\n /* Using the selenium OIC and combination of locators */\n driver.findElement(new ByEach(\n By.tagName(\"span\"),\n By.visibleText(\"Octane\")\n ));\n\n /* This test demonstrates the power of combinated locators :\n * Provide new ways to locate Web elements\n * Give more flexibility, accuracy and robustness\n * */\n }", "public static ByCssSelector cssSelector(final String selector) {\r\n if (selector == null)\r\n throw new IllegalArgumentException(\r\n \"Cannot find elements when the selector is null\");\r\n\r\n return cssSelector(selector, \"\");\r\n }", "private List<WebElement> findSpacesListElements(WebDriver d) {\n\t\treturn d.findElements(By.cssSelector(\"td.space-name>a\"));\n\t}", "@WebElementLocator(webDesktop = \"section#faq div.container div.col-md-12 a.faq-title\",\n webPhone = \"section#faq div.container div.col-md-12 a.faq-title\")\n private static List<WebElement> faqElements() {\n return getDriver().findElements(By.cssSelector(new WebElementLocatorFactory().getLocator(ProductPage.class, \"faqElements\")));\n }", "public static List<MobileElement> waitAll(By locator) {\n return w(driverWait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(locator)));\n }", "private WebElement getCssSelectorElement(String cssSelectorInfo) {\n\t\tWebElement element = null;\n\t\t// WebDriverWait wait = new WebDriverWait(driver, 60);\n\t\telement = SearchTest.wait.until(visibilityOfElementLocated(By.cssSelector(cssSelectorInfo)));\n\t\treturn element;\n\t}", "public List<WebElement> getElements(WebDriver driver, By locator, int timeout) throws Exception {\n for (int i = 0; i <= timeout; i++) {\n try {\n if (driver.findElements(locator).size() == 0) throw new Exception();\n elements = driver.findElements(locator);\n log.info(\"Found total \" + elements.size() + \" elements with : \" + locator);\n return elements;\n } catch (Exception e) {\n log.info(i + \". Trying to find all elements with \" + locator);\n }\n Thread.sleep(2000);\n }\n StackTraceElement stackTrace = new Throwable().getStackTrace()[1];\n log.error(\"Cannot find all elements with : \" + locator);\n log.error(\"Cannot find all elements : \" + stackTrace.getClassName() + \".\" + stackTrace.getMethodName());\n throw new Exception(\"Unable to find all Elements\");\n }", "public List<WebElement> waitUntilElementList(WebDriver driver, final String xpath) throws NumberFormatException, IOException, InterruptedException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) {\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\t\t\t\t\t\n\t\t\t\t\ttry { wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(xpath))); }\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { fileWriterPrinter(\"\\nList of Elements is empty!\\nXPATH: \" + xpath); }\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t fileWriterPrinter(\"Waiting time for List of Elements:\" + padSpace(54 - \"Waiting time for List of Elements:\".length()) + waitTimeConroller(start, 30, xpath) + \" sec\");\n\t\t\t\t return (driver.findElements(By.xpath(xpath)));\n\t\t\t\t}", "public static List<MobileElement> getElements(By by)\n\t{\n\t\treturn LocalDriverManagerMobile.INSTANCE.getDriver().findElements(by);\n\t}", "@Test\n public void regularExpressionTest() throws Exception {\n /* Navigate to the Challenging Dom section */\n driver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/ul/li[4]/a\")).click();\n\n /* Using the standard devtools */\n ArrayList<WebElement> ItemsListStandard = new ArrayList<>();\n for(int i=1; i<11 ; i++){\n ItemsListStandard.add(driver.findElement(By.xpath(\"//*[@id='content']/div/div/div/div[2]/table/tbody/tr[\"+i+\"]/td[4]\")));\n }\n\n /* Using the selenium OIC and the regular expressions */\n ArrayList<WebElement> ItemsListWithRegEx = new ArrayList<>();\n ItemsListWithRegEx.addAll(driver.findElements(By.visibleText(Pattern.compile(\"^Definiebas*\"))));\n\n /* Check results */\n System.out.println(\"size of ItemsListStandard \" + ItemsListStandard.size());\n System.out.println(\"size of ItemsListWithRegEx \" + ItemsListWithRegEx.size());\n\n /* This test demonstrates the by visible text value combined with regular expression power :\n * Enhance Readability (easy to see what is tested)\n * Enhance code writing ease\n * Enhance Maintainability (the xpath is not used n times as it is in the for loop)\n * */\n\n }", "public static void main(String[] args) throws InterruptedException {\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"F:\\\\selenium driver\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\tdriver.get(\"https://www.google.com/\");\r\nWebElement value =\tdriver.findElement(By.xpath(\"//input[@class='gLFyf gsfi']\"));\r\n\t\t\r\n value.sendKeys(\"testing\");\r\n Thread.sleep(2000);\r\n\t\t\t\r\nList<WebElement> list = driver.findElements(By.xpath(\"//ul[@class='erkvQe']//li/div/div/div[@class='sbl1']/span\"));\r\n\t\t\t\r\n//\"//ul[@class='erkvQe']//li/div/div/div[@class='sbl1']/span\")\r\n\r\n//\"//ul[@class='erkvQe']//li//div[@class='sbl1']/span\r\n\r\n\r\n\r\nint sizeoflist =list.size();\r\n\r\n\r\n//this will print the xpath of every webelement\r\nSystem.out.println(list);\r\n\r\nSystem.out.println(\"Size of list is : \" +sizeoflist );\r\n\r\nfor (WebElement webElement : list) \r\n\r\n{\r\n\t\r\nString nameofsuggestion =\twebElement.getText();\r\n\r\nSystem.out.println(nameofsuggestion);\r\n\t\r\n}\r\n\t}", "@Nullable\n public static Elements getContentsList(String contentHtml) {\n Document document = Jsoup.parse(contentHtml);\n Elements elements = document.select(\".widget-progress-enabled\");\n Elements contents = new Elements();\n contents.add(elements.first());\n contents.addAll(elements.get(1).select(\"li\"));\n return contents;\n }", "public void findElementInListByText(String value, By locator) {\n waitForVisibilityOf(locator);\n List<WebElement> listOfElements = findListOfElements(locator);\n if (listOfElements != null && !listOfElements.isEmpty()) {\n for (WebElement element : listOfElements) {\n if (value.toLowerCase(Locale.ROOT).equals(element.getText().toLowerCase(Locale.ROOT))) {\n element.click();\n break;\n }\n }\n } else {\n log.info(\"List is null or empty! Elements not found by locator: [\" + locator + \"]\");\n }\n }", "protected WebElement findWebElement (By webElementSelector){\n\t\ttry {\n\t\t\treturn webDriver.findElement(webElementSelector);\t\n\t\t} catch (NoSuchElementException noSuchElement) {\n\t\t\tthrow new AssertionError(\"Cannot find the web element with selector \" + webElementSelector.toString());\n\t\t}\t\t\n\t}", "public WebElement getElement(String[] cssSelectors) throws InterruptedException {\n\n\t\tWebElement root = LibraryTest.driver.findElement(By.cssSelector(cssSelectors[0]));\n\t\tWebElement shadowRoot = null;\n\n\t\tfor (int i = 1; i < cssSelectors.length; i++) {\n\t\t\tshadowRoot = expandRootElement(root);\n\t\t\troot = shadowRoot.findElement(By.cssSelector(cssSelectors[i]));\n\t\t\t// Thread.sleep(2000);\n\t\t}\n\n\t\treturn root;\n\t}", "public void genericLocatorList(String elementToBeClick, List<WebElement> myList, WebElement element) {\n\t\twaitHelper.waitForElement(element, ObjectReader.reader.getExplicitWait());\n\t\tthis.myList = myList;\n\t\tfor (int i = 0; i < this.myList.size(); i++) {\n\t\t\tif (this.myList.get(i).getText().contains(elementToBeClick)) {\n\t\t\t\tthis.myList.get(i).click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public List<Element> findElements()\r\n {\n return null;\r\n }", "public static List<Element> getElements(String xpath, Node context) throws XPathExpressionException\n {\n List<Element> ret = new ArrayList<>();\n NodeList lst = search(xpath, context);\n for (int i = 0; i < lst.getLength(); ++i)\n {\n // will throw a ClassCastExpression if Node is not an Element,\n // that's what we want\n ret.add((Element)lst.item(i));\n }\n return ret;\n }", "private List<EObject> getElements(ISelector s) {\n\t\tList<EObject> result = new ArrayList<EObject>();\n\t\t\n\t\tfor (EObject next : charStartMap.keySet()) {\n\t\t\tint start = charStartMap.get(next);\n\t\t\tint end = charEndMap.get(next);\n\t\t\tif (s.accept(start, end)) {\n\t\t\t\tresult.add(next);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(result, new Comparator<EObject>() {\n\t\t\tpublic int compare(EObject objectA, EObject objectB) {\n\t\t\t\tint lengthA = getCharEnd(objectA) - getCharStart(objectA);\n\t\t\t\tint lengthB = getCharEnd(objectB) - getCharStart(objectB);\n\t\t\t\treturn lengthA - lengthB;\n\t\t\t}\n\t\t});\n\t\treturn result;\n\t}", "public static List<WebElement> getElements(WebDriver driver, String element) throws ConfigurationException,\r\n SecurityException, InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, InterruptedException {\r\n String xPath = getXPath(element);\r\n waitUntilDocumentIsReady(driver);\r\n WebDriverWait wait = new WebDriverWait(driver, 30);\r\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy((By.xpath(xPath))));\r\n return driver.findElements(By.xpath(xPath));\r\n }", "public void iterateThroughtEachElement(){\r\n ArrayList<String> links = examineHTML.getHrefOffers();\r\n \r\n int index = 0;\r\n \r\n for(String link:links){\r\n getHTMLOffer(link, index);\r\n ++index;\r\n }\r\n /*for(int i = 0; i < 10; i++){\r\n getHTMLOffer(links.get(i), index);\r\n ++index;\r\n }*/\r\n \r\n analyzeEachOffer();\r\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 List<WebElement> visibilityOfAllElementsLocatedBy(final By by) {\n return (new WebDriverWait(webDriver, DRIVER_WAIT_TIME))\n .until(ExpectedConditions.visibilityOfAllElementsLocatedBy(by));\n }", "public static void main(String[] args) throws InterruptedException {\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n //driver.get(\"https://twitter.com/explore\");\n driver.get(\"https://twitter.com/sachintendulkar\");\n sleep(5);\n\n JavascriptExecutor js = (JavascriptExecutor) driver;\n //js.executeScript(\"window.scrollTo(0, document.body.scrollHeight)\");\n //js.executeScript(\"window.scrollTo(0, 275)\");\n List<WebElement> elements = new ArrayList<>();\n //elements = driver.findElements(By.tagName(\"article\"));\n\n //System.out.println(\"Size of elements: \"+elements.size());\n //elements = driver.findElements(By.tagName(\"article\"));\n while (true){\n if(elements.size()>5){\n System.out.println(\"Inside loop : \"+elements.size());\n break;\n //System.out.println(\"Inside loop : \"+elements.size());\n }else {\n\n elements = driver.findElements(By.tagName(\"article\"));\n //sleep(5);\n //js.executeScript(\"window.scrollTo(0, 275)\");\n }\n // js.executeScript(\"window.scrollTo(0, document.body.scrollHeight)\");\n }\n\n //List<WebElement> elements = driver.findElements(By.tagName(\"article\"));\n\n // js.executeScript(\"window.scrollTo(0, document.body.scrollHeight)\");\n // WebElement element = driver.findElement(By.id(\"id__8k8p749gobl\"));\n //System.out.println(element);\n // List<WebElement> elements = driver.findElements(By.className(\"css-1dbjc4n r-14lw9ot r-jxzhtn r-1ljd8xs r-13l2t4g r-1phboty r-1jgb5lz r-11wrixw r-61z16t r-1ye8kvj r-13qz1uu r-184en5c\"));\n\n// WebElement webElement= driver.findElement(By.xpath(\"//span[@class='css-901oao css-16my406 r-poiln3 r-bcqeeo r-qvutc0']\"));\n// System.out.println(webElement.getText());\n List<String> list = new ArrayList<>();\n for(WebElement webElement: elements){\n list.add(webElement.getText());\n }\n //System.out.println(elements);\n System.out.println(\"List of size: \"+list.size());\n System.out.println(list);\n }", "protected void findWebElementAndSelect(By webElementSelector, String value){\n\t\ttry {\n\t\t\tSelect dropdown = new Select(findWebElement(webElementSelector));\n\t\t\tdropdown.selectByVisibleText(value);\n\t\t} catch (UnexpectedTagNameException e) {\n\t\t\tthrow new AssertionError(\"Cannot create select item basing on webElement \" + webElementSelector.toString());\n\t\t}\t\t\n\t}", "private List<HtmlElement> findComparisonSections()\n\t{\n\t\tfinal By findBy = By.cssSelector( \".compare-section.comparison:not(.detailed-preview)\" );\n\t\treturn getDriver().findElements( findBy );\n\t}", "private List<Element> selectDiv(){\n\t\tElements allDiv = htmlParsed.select(\"div\");\n\t\treturn allDiv.stream().filter(div -> div.children().select(\"div\").isEmpty()).collect(Collectors.toList());\n\t}", "public ArrayList<String> WebElementArrayList(By locator) {\n List<WebElement> elementList = getDriver().findElements(locator);\n ArrayList<String> elementArrayList= new ArrayList<>();\n String temp = null;\n for (int i = 0; i < elementList.size()-1; i++) {\n temp = elementList.get(i).getText();\n\n elementArrayList.add(temp);\n }\n return elementArrayList;\n }", "public static List<WebElement> explictWaitForElementList(final String object) {\n \t\n \t\t \n Wait<WebDriver> wait = new FluentWait<WebDriver>(driver).withTimeout(explicitwaitTime, TimeUnit.SECONDS).pollingEvery(pollingTime, TimeUnit.MILLISECONDS).ignoring(NoSuchElementException.class);\n uiBlockerTest(\"\", \"\");\n \n try {\n List<WebElement> elements = wait.until(new Function<WebDriver, List<WebElement>>() {\n\n @Override\n public List<WebElement> apply(WebDriver driver) {\n\n List<WebElement> listElements=driver.findElements(By.xpath(OR.getProperty(object)));\n return listElements.size()>0 ?listElements:null; // Modified By Karan\n }\n });\n return elements;\n }\n \t\n catch(TimeoutException e)\n { \n \treturn Collections.emptyList();\n }\n }", "@Test\n public void testFindElements() {\n\tList<WebElement> links = driver.findElements(By.tagName(\"a\"));\n\n\t// Verify there are 41 Links displayed on the page\n\tAssert.assertEquals(links.size(), 41);\n\n\t// Print each link value\n\tfor (WebElement link : links) {\n\t System.out.println(link.getAttribute(\"href\"));\n\t}\n }", "@Override\npublic void findElement(String by) {\n\t\n}", "public static List<WebElement> waitForListElementsPresent(WebDriver driver,\n\t\t\tfinal By by)\n\t\t\t{\n\t\tList<WebElement> elements;\n\t\tint timeOutInSeconds=Integer.parseInt(Cls_Generic_methods.getConfigValues(\"timeOutInSeconds\"));\n\t\ttry {\n\n\t\t\tlogger.info(\"Waiting for List of Elements to be present\");\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, timeOutInSeconds);\n\t\t\twait.until((new ExpectedCondition<Boolean>() {\n\t\t\t\tpublic Boolean apply(WebDriver driverObject) {\n\t\t\t\t\treturn areElementsPresent(driverObject, by);\n\t\t\t\t}\n\t\t\t}));\n\n\t\t\telements = driver.findElements(by);\n\n\t\t\treturn elements; // return the element\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Exception ocurred \" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t\t\t}", "public static void main(String[] args) {\nSystem.setProperty(\"webdriver.chrome.driver\", \"F:\\\\SELENIUM\\\\chrome\\\\chromedriver.exe\");\r\nWebDriver driver=new ChromeDriver();\r\ndriver.get(\"https://google.com/\");\r\n//WebElement textBox=driver.findElement(By.xpath(\"//input[@name='q']\"));\r\n//textBox.sendKeys(\"rajani thite\");\r\n\r\nlist<WebElement> listOfInputElements =driver.findElements(By.xpath(\"//input\"));\r\nlistOfInputElements.si\r\ndriver.close();\r\n\t}", "private static List<MobileElement> w(List<WebElement> elements) {\n List list = new ArrayList(elements.size());\n for (WebElement element : elements) {\n list.add(w(element));\n }\n\n return list;\n }", "@Test\n public void amazonTest() throws InterruptedException {\n driver.get(\"https://amazon.com\");\n WebElement input = driver.findElement(By.id(\"twotabsearchtextbox\"));\n input.sendKeys(\"paper towels\" + Keys.ENTER);\n\n List<WebElement> allResults = driver.findElements(By.cssSelector(\"span.a-size-base-plus\"));\n\n Thread.sleep(2000);\n System.out.println(\"Number of results: \" + allResults.size());\n\n System.out.println(\"First result: \" + allResults.get(0).getText());\n System.out.println(\"Second result: \" + allResults.get(1).getText());\n System.out.println(\"Last result: \" + allResults.get(allResults.size() - 1).getText());\n\n\n }", "public void drpdownList(WebElement element,String text) throws InterruptedException {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSelect oSelect = new Select(element);\n\t\t\t\t\t\tList <WebElement> elementCount = oSelect.getOptions();\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t\tfor(WebElement we:elementCount){\n\t\t\t\t\t\t\t//System.out.println(we.getText());\n\t\t\t\t\t\t\tif(we.getText().equalsIgnoreCase(text)) {\n\t\t\t\t\t\t\t\twe.click();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public WebElement getElement(String locator){\n\t\tWebElement webElement = null;\n\t\twaitForElementVisibility(locator);\n\t\ttry{\n\t\t\tif(locator.startsWith(\"//\")) {\t\n\t\t\t\twebElement = driver.findElement(By.xpath(locator));\t\t\t\t\n\t\t\t}else if( locator.startsWith(\"css=\")) {\n\t\t\t\tlocator=locator.substring(4);\n\t\t\t\twebElement = driver.findElement(By.cssSelector(locator));\n\t\t\t}else if( locator.startsWith(\"class=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.className(locator));\n\t\t\t}else if( locator.startsWith(\"name=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.name(locator));\n\t\t\t}else if( locator.startsWith(\"link=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.linkText(locator));\n\t\t\t}else if( locator.startsWith(\"tag=\")) {\n\t\t\t\tlocator = locator.split(\"\\\\=\")[1];\n\t\t\t\twebElement = driver.findElement(By.tagName(locator));\n\t\t\t} else\n\t\t\t\twebElement = driver.findElement(By.id(locator));\n\t\t\tlog.debug(\"ELEMENT FOUND WITH LOCATOR : \"+locator);\n\t\t}catch (NoSuchElementException ex) {\n\t\t\tlog.debug(\"No such element \"+locator);\n\t\t\treturn webElement;\n\t\t} catch(Exception ex) {\n\t\t\tlog.debug(\"ELEMENT NOT FOUND WITH LOCATOR : \"+locator);\n\t\t ex.printStackTrace();\n\t\t return webElement;\n\t\t}\n\t\treturn webElement;\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected List<WebElement> proxyForListLocator(ClassLoader loader,\n\t\t\tElementLocator locator) {\n\t\tInvocationHandler handler = new LocatingElementListHandler(locator);\n\n\t\tList proxy = (List) Proxy.newProxyInstance(loader,\n\t\t\t\tnew Class[] {List.class }, handler);\n\t\treturn proxy;\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\t\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\t\n\t\t\tFile file = new File(\"users.text\");\n\n\t if (!file.exists()) {\n\t file.createNewFile();\n\t }\n\n\t\t\tPrintWriter output = new PrintWriter(file);\n\t\t\t\n\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\n\t\t\tdriver.get(\"https://www.dice.com/jobs/advancedSearch.html\");\n\t\t\t\n\t\t\tdriver.manage().window().maximize();\n\t\t\t\n\t\t driver.manage().deleteAllCookies();\n\t\t\t\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.findElement(By.id(\"monetate_lightbox_mask\")).click();\n\t\t\t\n\t\t\t\n\t\t\tdriver.findElement(By.id(\"for_one\")).click();\n\t\t\t// enter the keyword in search field\n\t\t\tdriver.findElement(By.id(\"for_one\")).sendKeys(\"java developer\");\n\t\t\t// select preferences \n\t\t\t\n\t\t\tdriver.findElement(By.id(\"jtype\")).clear();\n\t\t\t\n\t\t\tdriver.findElement(By.id(\"jtype\")).sendKeys(\"Contracts\");\n\t\t\tdriver.findElement(By.id(\"sort2\")).click();\n\t\t\tdriver.findElement(By.id(\"telecommute2\")).click();\n\t\t\t\n\t\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\n\t\t\tWebElement a = driver.findElement(By.xpath(\"//div[@id='limitS']/a\"));\n\n\t\t\tjs.executeScript(\"arguments[0].setAttribute('style', 'left: 99%;')\",a);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\tdriver.findElement(By.xpath(\"//input[@class='btn btn-lg btn-primary btn-block dice-btn']\")).click();\n\t\t\n\t\t\tThread.sleep(3000);\n\t\t\t//driver.findElement(By.id(\"monetate_lightbox_mask\")).click();\n\t\t\t\n\t\t\t\n\n\t\t\tString Tit = \"//html/body/div[3]/div[3]/div[2]/div[2]/div[1]/div[1]/div[\";\n\t\t\tString Tit1= \"]/h3/a\";\n\t\t\t\n\n\t \tString Loc1 =\"//html/body/div[3]/div[3]/div[2]/div[2]/div[1]/div[1]/div[\";\n\t \tString Loc2 = \"]/ul/li[2]\";\n\t \t\n\n\t \tString Cli =\"//html/body/div[3]/div[3]/div[2]/div[2]/div[1]/div[1]/div[\";\n\t \tString Cli1=\"]/div\";\n\t \t\n\t \tString sub =\"//html/body/div[3]/div[3]/div[2]/div[2]/div[1]/div[1]/div[\";\n\t \tString sub1=\"]/ul/li[1]/a\";\n\t\t\t\n\t \t\n\t // String result = driver.findElement(By.xpath(\"//html/body/div[3]/div[3]/div[2]/div[2]\")).getText();\n\n\t //System.out.println(driver);\n\t\t/*\n\t\t\tString post = driver.findElement(By.xpath(\"//html/body/div[3]/div[3]/div[2]/div[2]/div[1]/div[1]/div[1]/ul/li[3]\")).getText();\n\t\t\tSystem.out.println(\"Whenjob posted:\"+post);\n\t*/\n\t\t\tString ab=\"//html/body/div[3]/div[3]/div[2]/div[2]/div[1]/div[1]/div[\";\n\t\t\tString c=\"]/ul/li[3]\";\n\n\t\t\tString zz=\"//html/body/div[3]/div[3]/div[2]/div[2]/div[1]/div[1]/div[\";\n\t\t\tString zz1=\"]/h3/a\";\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString cd,e,T,T1,L,L1,C,C1,S,S1,U,U1;\n\t\t String j,time,hours=\"Hours\",m,title,position=\"String\",l,loca,location=\"String\",u,ur,url=\"String\",c1,clin,client=\"String\",s,sit,subbu=\"String\";\n\t\t \n\t for (int i = 1; i < 30 ; i++)\n\t {\n\t \t\n\n\t \tT1=Integer.toString(i);\n\t\t\t\tT=Tit+T1+Tit1;\n\t\t\t\tposition=driver.findElement(By.xpath(T)).getText();\n\t\t\t\tif(position.contains(position))\n\t\t\t\t{\n\t\t\t\t\tm=(Tit+(i+1)+Tit1);\n\t\t\t\t\tString Pos=driver.findElement(By.xpath(m)).getText();\n\t\t\t\t\toutput.println(\"Position Name\" +Pos);\n\t\t\n\t }\n\t\t\t\t\n\t\t\n\t\t\t\t\n\n\t\t\t\tS1=Integer.toString(i);\n\t\t\t\tS=sub+S1+sub1;\n\t\t\t\tsubbu=driver.findElement(By.xpath(S)).getText();\n\t\t\t\tif(subbu.contains(subbu))\n\t\t\t\t{\n\t\t\t\t\ts=(sub+(i+1)+sub1);\n\t\t\t\t\tString name=driver.findElement(By.xpath(s)).getText();\n\t\t\t\t\toutput.println(\"Client Name:\" + name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tU1=Integer.toString(i);\n\t\t\t\tU=zz+U1+zz1;\n\t\t\t\turl=driver.findElement(By.xpath(U)).getAttribute(\"href\");\n\t\t\t\tif(url.contains(url))\n\t\t\t\t{\n\t\t\t\t\tu=(zz+(i+1)+zz1);\n\t\t\t\t\tString ssss=driver.findElement(By.xpath(u)).getAttribute(\"href\");\n\t\t \t\n\t\t\t\t\toutput.println(\"URL : \" +ssss);\n\t\t\t\t\t\n\n\t \t\t\n\t\t \t//System.out.println(\"URL : \" + driver.findElement(By.xpath(u)).getAttribute(\"href\"));\n\t\t \t\n\t\t\n\t }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\te=Integer.toString(i);\n\t\t\t\t\n\t \tcd=ab+e+c;\n\t \ttime=driver.findElement(By.xpath(cd)).getText();\n\t \tif(time.contains(hours))\n\t \t\t\n\t \t{\n\t \t\tj=(ab+(i+1)+c);\n\t \t\tString post1 =driver.findElement(By.xpath(j)).getText();\n\t \t\t\n\t \t\toutput.println(\"Whenjob posted:\"+ post1);\n\n\n\t \t}\n\t \t\n\t \tL1=Integer.toString(i);\n\t \t\n\t \tL=Loc1+L1+Loc2;\n\t \tloca=driver.findElement(By.xpath(L)).getText();\n\t \tif(loca.contains(loca))\n\t \t{\n\t \t\t\n\t \t\tl=(Loc1+(i+1)+Loc2);\n\t \t\tString locati=driver.findElement(By.xpath(l)).getText();\n\t \t\toutput.println(\"Location:\" + locati);\n\n\t \t}\n\t \t\n\t \t\n\t \tC1=Integer.toString(i);\n\t \t\n\t \tc1=Cli+C1+Cli1;\n\t \tclin=driver.findElement(By.xpath(c1)).getText();\n\t \toutput.println(\"Disciption\" + clin);\n\t \t\n\t \toutput.println(\"\"\n\t \t\t\t+ \"\"\n\t \t\t\t+ \"\"\n\t \t\t\t+ \"\");\n\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\t\toutput.close();\n\t\t\t\n\t\t}catch (IOException ex) {\n\t\t\tSystem.out.printf(\"Error %s\\n\", ex);\n\t\t}\n\t\n\t\t\n\t\t\n\t\t\n\t}", "public HashMap<String, Integer> FindElements() {\n\t\tBy elementsCount = By.cssSelector(\".questions-container.c-center.row> div\");\n\n\t\tList<WebElement> listWebElementLabel = driver.findElements(elementsCount);\n\n\t\tHashMap<String, Integer> ele = new HashMap<String, Integer>();\n\n\t\tHashMap<String, Integer> ele1 = null;\n\n\t\tSystem.out.println(\"found webelements: \" + listWebElementLabel.size());\n\n\t\tIterator<WebElement> l;\n\n\t\tl = listWebElementLabel.iterator();\n\n\t\t//\n\n\t\tint i = 0;\n\t\tString fieldType = null, className = null;\n\t\tBy byElements = null;\n\n\t\twhile (l.hasNext()) {\n\n\t\t\tWebElement elementL = l.next();\n\t\t\ti++;\n\n\t\t\tfieldType = null;\n\t\t\tclassName = null;\n\n\t\t\tclassName = elementL.getAttribute(\"class\").toString();\n\n\t\t\tswitch (className) {\n\n\t\t\tcase \"questions-content-container\":\n\t\t\t\t// byElements =\n\t\t\t\t// By.xpath(\"//div[@class='questions-content-container']//div//following-sibling::*\");\n\t\t\t\tele1 = childElements();\n\t\t\t\tele.putAll(ele1);\n\t\t\t\tbreak;\n\n\t\t\tcase \"form-group\":\n\n\t\t\t\tfieldType = \"formFlag\";\n\n\t\t\t\tbreak;\n\t\t\tcase \"question-action-btn-container\":\n\t\t\t\tbyElements = By.cssSelector(\".question-action-btn-container\");\n\t\t\t\t// if (i>1) className =\n\t\t\t\t// driver.findElement(byElements).getAttribute(\"class\").toString();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t\n\n\t\t\tSystem.out.println(\"className: \" + className);\n\n\t\t\tif (className == \"form-group\")\n\t\t\t\tfieldType = \"formFlag\";\n\n\t\t\tif (className.contains(\"c-custom-select\"))\n\t\t\t\tfieldType = \"dropDownFlag\";\n\n\t\t\tif (className.contains(\"auto\"))\n\t\t\t\tfieldType = \"autoSuggFlag\";\n\n\t\t\tif (className.contains(\"date\"))\n\t\t\t\tfieldType = \"datePickerFlag\";\n\n\t\t\t// if (className.contains(\"btn\")) fieldType = \"buttonFlag\";\n\n\t\t\tSystem.out.println(\"fieldType: \" + fieldType);\n\n\t\t\t\n\n\t\t\tif (i > 1 && fieldType != null)\n\t\t\t\tif (ele.get(className) == null)\n\t\t\t\t\tele.put(fieldType, 1);\n\t\t\t\telse\n\t\t\t\t\tele.put(fieldType, i++);\n\n\t\t}\n\t\treturn ele;\n\n\t}", "protected void findWebElementAndType (By webElementSelector, String text){\n\t\tWebElement inputBox = findWebElement(webElementSelector);\n\t\ttry {\n\t\t\tinputBox.sendKeys(text);\n\t\t} catch (ElementNotVisibleException e){\n\t\t\tthrow new AssertionError(\"Found the web element, but it's not visible to send keys. \" + webElementSelector.toString());\n\t\t}\n\t}", "public WebElement findElementClickable(By locator){\n\t\tWebElement element = null;\n\t\tif(driver == null){\n\t\t\tthrow new IllegalArgumentException(\"WebDriver cannot be null\");\n\t\t}\n\n\t\ttry {\n\n\t\t\twaitForElement(locator);\n\t\t\twaitForElement(ExpectedConditions.refreshed(ExpectedConditions.elementToBeClickable(locator)));\n\t\t\telement = driver.findElement(locator);\n\t\t\t//((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", element);\n\t\t\treturn element;\n\n\t\t}catch(Exception e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Element with locator [\"+ locator.toString() +\"] was not found.\");\n\n\t\t}\n\t}", "public WebElement getXpathElements(String XPlocator, String XPtype) {\n\t\t\tXPtype = XPtype.toLowerCase();\n\t\t\tif (XPtype.equals(\"textarea\")) {\n\t\t\t\tSystem.out.println(\"Element found with textarea: \" + XPlocator);\n\t\t\t\treturn this.driver.findElement(By.xpath(XPlocator));\n\t\t\t\t\n\t\t\t}\n\n\t\t\telse if (XPtype.equals(\"input\")) {\n\t\t\t\tSystem.out.println(\"Element found with input: \" + XPlocator);\n\t\t\t\treturn this.driver.findElement(By.xpath(XPlocator));\n\t\t\t}\n\n\t\t\t// add more locator types here\n\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Locator type not supported\");\n\t\t\treturn null;\n\t\t}", "public WebElement findElementByCSS(String CSSValue) {\n\t\ttry {\n\t\t\tElement = driver.findElement(By.cssSelector(CSSValue));\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t\treturn Element;\n\n\t}", "public static List<WebElement> explictWaitForElementListByLinkText(final String object) {\n Wait<WebDriver> wait = new FluentWait<WebDriver>(driver).withTimeout(explicitwaitTime, TimeUnit.SECONDS).pollingEvery(pollingTime, TimeUnit.MILLISECONDS).ignoring(NoSuchElementException.class);\n uiBlockerTest(\"\", \"\");\n \ttry{\n \t\tList<WebElement> elements = wait.until(new Function<WebDriver, List<WebElement>>() {\n\n \t\t\t@Override\n \t\t\tpublic List<WebElement> apply(WebDriver driver) {\n\n \t\t\t\tList<WebElement> listElements=driver.findElements(By.linkText(OR.getProperty(object)));\n \t\t\t\treturn listElements.size()>0?listElements:null; // Modified By Karan \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t});\n \n \t\t\t\treturn elements;\n \t}\n catch(TimeoutException e)\n { \n \treturn Collections.emptyList();\n }\n \n }", "public WebElement findElement(By locator){\n\t\tWebElement element = null;\n\t\tif(driver == null){\n\t\t\tthrow new IllegalArgumentException(\"WebDriver cannot be null\");\n\t\t}\n\n\t\ttry {\n\t\t\twaitForElement(locator);\n\t\t\twaitForElement(ExpectedConditions.refreshed(ExpectedConditions.presenceOfElementLocated(locator)));\n\t\t\twaitForElement(ExpectedConditions.refreshed(ExpectedConditions.visibilityOfElementLocated(locator)));\n\t\t\telement = driver.findElement(locator);\n\t\t\t//((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", element);\n\n\t\t}catch(Exception e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Element with locator [\"+ locator.toString() +\"] was not found.\");\n\t\t}\n\t\treturn element;\n\t}", "WebElement getSearchButton();", "public List<WebElement> presenceOfAllElementsLocatedBy(final By by) {\n return (new WebDriverWait(webDriver, DRIVER_WAIT_TIME))\n .until(ExpectedConditions.presenceOfAllElementsLocatedBy(by));\n }", "public WebElement apply(WebDriver driver ) {\n return driver.findElement(By.xpath(\"/html/body/div[1]/section/div[2]/div/div[1]/div/div[1]/div/div/div/div[2]/div[2]/div/div/div/div/div[1]/div/div/a/i\"));\n }", "public List<String> getListFromZipCodeElementList(List<WebElement> element);", "public JodeList xPathFind(String path) {\n return new XPath(path).find(this);\n }", "public void waitForVisibilityOfAllWebElements(List<WebElement> webElement){\r\n\t\twait.until(ExpectedConditions.visibilityOfAllElements(webElement));\r\n\t}", "@Override\n public void getHomepageElementList() {\n String elementTypes = firebaseRemoteConfig.getString(Constants.FIREBASE_ELEMENT_LIST);\n List<String> elementTypeArray = Arrays.asList(elementTypes.split(\",\"));\n\n List<ElementView> elementViewList = new ArrayList<>();\n for (String elementType : elementTypeArray) {\n ElementView elementView = elementViewFactory.convert(elementType);\n if (elementView != null) {\n elementViewList.add(elementView);\n }\n }\n\n homepageView.setupElementViewAdapter(elementViewList);\n }", "private static native JavaScriptObject searchForRule(\n final JavaScriptObject sheet, final String selector,\n final boolean deep)\n /*-{\n if(!$doc.styleSheets)\n return null;\n\n selector = selector.toLowerCase();\n\n var allMatches = [];\n\n // IE handles imported sheet differently\n if(deep && sheet.imports && sheet.imports.length > 0) {\n for(var i=0; i < sheet.imports.length; i++) {\n // $entry not needed as function is not exported\n var imports = @com.vaadin.client.CSSRule::searchForRule(Lcom/google/gwt/core/client/JavaScriptObject;Ljava/lang/String;Z)(sheet.imports[i], selector, deep);\n allMatches.concat(imports);\n }\n }\n\n var theRules = new Array();\n if (sheet.cssRules)\n theRules = sheet.cssRules\n else if (sheet.rules)\n theRules = sheet.rules\n\n var j = theRules.length;\n for(var i=0; i<j; i++) {\n var r = theRules[i];\n if(r.type == 1 || sheet.imports) {\n var selectors = r.selectorText.toLowerCase().split(\",\");\n var n = selectors.length;\n for(var m=0; m<n; m++) {\n if(selectors[m].replace(/^\\s+|\\s+$/g, \"\") == selector) {\n allMatches.unshift(r);\n break; // No need to loop other selectors for this rule\n }\n }\n } else if(deep && r.type == 3) {\n // Search @import stylesheet\n // $entry not needed as function is not exported\n var imports = @com.vaadin.client.CSSRule::searchForRule(Lcom/google/gwt/core/client/JavaScriptObject;Ljava/lang/String;Z)(r.styleSheet, selector, deep);\n allMatches = allMatches.concat(imports);\n }\n }\n\n return allMatches;\n }-*/;", "public void searchProduct(String product){\n driver.findElement(By.id(\"search_query_top\")).sendKeys(product);\n List<WebElement> options = driver.findElements(By.className(\"ac_results\"));\n for(WebElement option:options){\n if(option.getText().equalsIgnoreCase(\"printed dress\")){\n option.click();\n break;\n }\n }\n driver.findElement(By.name(\"submit_search\")).click();\n }", "public static void main(String[] args) {\n \tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"C:\\\\Users\\\\4195\\\\Downloads\\\\Version 76.0.3865.10\\\\chromedriver.exe\");\n //driver.get(\"http://findnerd.com\");\n \n driver.navigate().to(\"http://findnerd.com\");\n \n List<WebElement> links = driver.findElements(By.xpath(\"//a\")); //Identify the number of Link on webpage and assign into Webelement List \n \n int linkCount = links.size(); // Count the total Link list on Web Page\n \n System.out.println(\"Total Number of link count on webpage = \" + linkCount); //Print the total count of links on webpage\n \n List<WebElement> allElements = driver.findElements(By.xpath(\"//*\")); //Identify all the elements on web page\n \n int elementsCount = allElements.size(); //Count the total all element on web page\n \n System.out.println(\"Total Number of All Element on webpage = \" + elementsCount); //Print the total count of all element on webpage\n \n \n }", "public List<T> getPageElementsList();", "@Test public void posAsFirstPredicate() {\n // return first\n query(\"//ul/li[1]['']\", \"\");\n query(\"//ul/li[1]['x']\", LI1);\n query(\"//ul/li[1][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1);\n\n query(\"//ul/li[1][0]\", \"\");\n query(\"//ul/li[1][1]\", LI1);\n query(\"//ul/li[1][2]\", \"\");\n query(\"//ul/li[1][last()]\", LI1);\n\n // return second\n query(\"//ul/li[2]['']\", \"\");\n query(\"//ul/li[2]['x']\", LI2);\n query(\"//ul/li[2][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI2);\n\n query(\"//ul/li[2][0]\", \"\");\n query(\"//ul/li[2][1]\", LI2);\n query(\"//ul/li[2][2]\", \"\");\n query(\"//ul/li[2][last()]\", LI2);\n\n // return second\n query(\"//ul/li[3]['']\", \"\");\n query(\"//ul/li[3]['x']\", \"\");\n query(\"//ul/li[3][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", \"\");\n\n query(\"//ul/li[3][0]\", \"\");\n query(\"//ul/li[3][1]\", \"\");\n query(\"//ul/li[3][2]\", \"\");\n query(\"//ul/li[3][last()]\", \"\");\n\n // return last\n query(\"//ul/li[last()]['']\", \"\");\n query(\"//ul/li[last()]['x']\", LI2);\n query(\"//ul/li[last()][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI2);\n\n query(\"//ul/li[last()][0]\", \"\");\n query(\"//ul/li[last()][1]\", LI2);\n query(\"//ul/li[last()][2]\", \"\");\n query(\"//ul/li[last()][last()]\", LI2);\n\n // multiple positions\n query(\"//ul/li[position() = 1 to 2]['']\", \"\");\n query(\"//ul/li[position() = 1 to 2]['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[position() = 1 to 2]\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[position() = 1 to 2][0]\", \"\");\n query(\"//ul/li[position() = 1 to 2][1]\", LI1);\n query(\"//ul/li[position() = 1 to 2][2]\", LI2);\n query(\"//ul/li[position() = 1 to 2][3]\", \"\");\n query(\"//ul/li[position() = 1 to 2][last()]\", LI2);\n\n // variable position\n query(\"for $i in 1 to 2 return //ul/li[$i]['']\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[$i]['x']\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li[$i]\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"for $i in 1 to 2 return //ul/li[$i][0]\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[$i][1]\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li[$i][2]\");\n query(\"for $i in 1 to 2 return //ul/li[$i][last()]\", LI1 + '\\n' + LI2);\n\n // variable predicates\n query(\"for $i in (1, 'a') return //ul/li[$i]['']\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[$i]['x']\", LI1 + '\\n' + LI1 + '\\n' + LI2);\n query(\"for $i in (1, 'a') return //ul/li[$i][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\",\n LI1 + '\\n' + LI1 + '\\n' + LI2);\n\n query(\"for $i in (1, 'a') return //ul/li[$i][0]\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[$i][1]\", LI1 + '\\n' + LI1);\n query(\"for $i in (1, 'a') return //ul/li[$i][2]\");\n query(\"for $i in (1, 'a') return //ul/li[$i][last()]\", LI1 + '\\n' + LI2);\n }", "public WebElement highlight(WebElement element){\nfor(int i=0; i<2; i++) {\n WrapsDriver wrappedElement = (WrapsDriver) element;\n JavascriptExecutor executor = (JavascriptExecutor) wrappedElement.getWrappedDriver();\n waitSec(0.4);\n executor.executeScript(\"arguments[0].setAttribute('style', arguments[1]);\", element, \"color: purple; border: 2px solid LightCyan;background: PaleTurquoise ;\");\n waitSec(0.4);\n executor.executeScript(\"arguments[0].setAttribute('style', arguments[1]);\", element, \"\");\n\n}\nreturn element;\n }", "public WebElement getElement(By locator) {\n\t\tWebElement element= driver.findElement(locator);\n\t\treturn element;\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"//Users//priya//Documents//workspace//testingRequsites//chromedriver\");\n\t\tWebDriver driver =new ChromeDriver();\n\t\t\n\t\tdriver.get(\"https://www.macys.com/?cm_sp=navigation-_-top_nav-_-macys_icon&lid=glbtopnav_macys_icon-us\");\n\t\t\n\t\tList<WebElement> lstElement= driver.findElements(By.tagName(\"a\"));\n\t\t\n\t\tSystem.out.println(lstElement.size());\n\t\t\n\t\tfor (int i=0;i<lstElement.size();i=i+1)\n\t\t{\n\t\t\tSystem.out.println(lstElement.get(i).getText());\n\t\t}\n\t\tThread.sleep(3000);\n\t\t\n\t\tdriver.close();\n\t}", "private void scrollToPosition() {\n String name;\n String description;\n for (Item item : itemList) {\n name = item.getName().toLowerCase();\n description = item.getDescription().toLowerCase();\n if (name.contains(searchQuery) || description.contains(searchQuery)){\n layoutManager.scrollToPositionWithOffset(item.getId(), 0);\n break;\n }\n }\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tWebDriver driver;\n\nSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Selenium_Class\\\\geckodriver-v0.18.0-win32\\\\geckodriver.exe\");\ndriver=new FirefoxDriver();\ndriver.get(\"https://www.ebay.in/\");\n\ndriver.findElement(By.id(\"gh-ac\")).sendKeys(\"Apple Watches\");\ndriver.findElement(By.id(\"gh-btn\")).click();\ndriver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);\n//get all the products--\n\nList<WebElement> list= driver.findElements(By.xpath(\"//*[@id='ListViewInner')/li/h3/a]\"));\n/*\n Iterator<WebElement> itr= list.iterator();\nwhile(itr.hasNext()){\n\tSystem.out.println(itr.next().getText());\n}\n\t*/\n\t\n\t}", "@Test\n public void byAttributesAndStylesTest() throws Exception {\n /* Navigate to the Checkboxes section */\n driver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/ul/li[5]/a\")).click();\n\n /* Using the standard devtools */\n WebElement checkedCheckboxByTagName;\n ArrayList<WebElement> checkboxesByTagName = new ArrayList<>();\n checkboxesByTagName.addAll(driver.findElements(By.tagName(\"input\")));\n Iterator<WebElement> it = checkboxesByTagName.iterator();\n while (it.hasNext()){\n checkedCheckboxByTagName = it.next();\n if(checkedCheckboxByTagName.getAttribute(\"checked\") == null){\n checkedCheckboxByTagName = null;\n }\n }\n\n /* Using the selenium OIC and the by attribute locator */\n WebElement checkedCheckboxByAttributes = driver.findElement(By.attribute(\"checked\", \"\"));\n\n /* This test demonstrates the byAttribute locator power :\n * It obviously add another way to locate elements\n * Enhance readability of code\n * Enhance dev-tester efficiency : find directly the item that has the correct attribute VS find all item and then implement a treatment to find the good one\n * */\n }", "public static void ismultple(By locator) throws CheetahException {\n\t\twait_for_element(locator);\n\t\tSelect element = new Select(CheetahEngine.getDriverInstance().findElement(locator));\n\t\tWebElement elem = CheetahEngine.getDriverInstance().findElement(locator);\n\t\tdriverUtils.highlightElement(elem);\n\t\tdriverUtils.unHighlightElement(elem);\n\n\t\telement.isMultiple();\n\n\t}", "public WebElement findElement(By element) {\r\n\t\t\r\n\t\treturn driver.findElement(element);\r\n\t\t\t\r\n\t}", "public static void clickOnMatchValue(List<WebElement> listOfElements, String valueToBeMatched) {\n \t\n \tfor(WebElement element : listOfElements) {\n \t\tif(element.getText().equalsIgnoreCase(valueToBeMatched)) {\n \t\t\telement.click();\n \t\t\treturn;\n \t\t}\n \t}\n }", "public List<WebElement> getProductHeaderInWishList()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n List<WebElement> productList = pageFactory.wishListProductList;\r\n return productList;\r\n }", "public SeleniumQueryObject children(String selector) {\n\t\treturn ChildrenFunction.children(this, elements, selector);\n\t}", "public static WebElement icon_selectListView() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.className(\"ppListIco\"));\r\n \t\telement.click();\r\n \t\tAdd_Log.info(\"List View icon is click on the page.\");\r\n \t\t\r\n \t}\r\n \tcatch(Exception e){\r\n \t\tAdd_Log.error(\"List View icon is NOT found on the page.\");\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }", "public static NodeList search(String xpath, Node context) throws XPathExpressionException\n {\n NodeList ret = null;\n XPath xp = XPathFactory.newInstance().newXPath();\n XPathExpression exp = xp.compile(xpath);\n ret = (NodeList)exp.evaluate(context, XPathConstants.NODESET);\n return ret;\n }", "public static List<String> getElementsText(List<WebElement> list){\n List<String> elementTexts = new ArrayList<>();\n for (WebElement el : list ){\n elementTexts.add(el.getText());\n }\n return elementTexts;\n }", "private List<DiscoverySelector> getDiscoverySelectors(List<Class<?>> clazzes\n , List<String> methodNames, List<ArrayList<String>> parametersLists) \n {\n Map<String, List<String>> testfaelleNachKlasseGeordnet \n = filterAllOrderedTests(clazzes, methodNames);\n List<DiscoverySelector> discoverySelectors \n = getClassLevelDiscoverySelectors(clazzes, methodNames, \n parametersLists, testfaelleNachKlasseGeordnet);\n // Method-Selectors generieren:\n for(int i = 0; i < clazzes.size(); i++)\n {\n int argIndex = 0;\n StringBuilder parametersString = new StringBuilder();\n for(String parameter : parametersLists.get(i))\n {\n if(argIndex < parametersLists.get(i).size() - 1)\n parametersString.append(parameter + \",\");\n else\n parametersString.append(parameter);\n argIndex++;\n }\n discoverySelectors.add(selectMethod(clazzes.get(i), methodNames.get(i)\n , parametersString.toString()));\n }\n return discoverySelectors;\n }", "static ElementExists containsElement(String cssSelector) {\n return new ElementExists(cssSelector);\n }", "public List<WebElement> visibilityOfAllElements(final List<WebElement> elements) {\n return (new WebDriverWait(webDriver, DRIVER_WAIT_TIME))\n .until(ExpectedConditions.visibilityOfAllElements(elements));\n }", "List<Crawl> selectByExample(CrawlExample example);" ]
[ "0.68706", "0.65372837", "0.64333296", "0.63952565", "0.63057834", "0.6191467", "0.60747355", "0.6067057", "0.6038581", "0.6033143", "0.603174", "0.587209", "0.58213615", "0.580565", "0.579055", "0.5778151", "0.5707961", "0.569653", "0.5576135", "0.55595875", "0.547237", "0.5448297", "0.5409792", "0.53802574", "0.53747046", "0.5350215", "0.5334393", "0.5315488", "0.5259378", "0.5256208", "0.523401", "0.5204213", "0.5204144", "0.5198109", "0.51651835", "0.51604986", "0.5087974", "0.5067184", "0.5037137", "0.50327194", "0.5027479", "0.49824068", "0.4981947", "0.49680576", "0.49565694", "0.49148056", "0.49046457", "0.48930466", "0.489211", "0.48836145", "0.48810074", "0.48515174", "0.48428443", "0.48317775", "0.48236486", "0.47867075", "0.47861618", "0.47406965", "0.47404695", "0.47298136", "0.47223717", "0.47103384", "0.46992958", "0.469917", "0.46973813", "0.4695154", "0.46922997", "0.46887532", "0.46857953", "0.46761262", "0.46663514", "0.4662457", "0.46458453", "0.46454245", "0.46350712", "0.46145943", "0.46139926", "0.4603036", "0.457764", "0.45775184", "0.45496517", "0.45470867", "0.45454803", "0.45408976", "0.4534548", "0.45324528", "0.45322695", "0.4530581", "0.45282367", "0.45253605", "0.45233256", "0.45207247", "0.45168263", "0.4510374", "0.4505288", "0.4503695", "0.44941917", "0.44909513", "0.44902238", "0.4486778" ]
0.6971345
0
Payment payment =new Payment(); //User user =userRepository.findById(id).get(); System.out.println(payment); paymentRepository.save(payment);
@Override public String addPayment(PaymentRequest paymentRequest) { return "Courier Booked successfully"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Payment save(Payment payment) {\n\t\treturn paymentRepository.save(payment);\n\t}", "public Optional<Payment> savePayment(Payment payment);", "Payment find(int paymentID);", "public interface PurchPaymentDao extends JpaRepository<PurchPayment, Serializable> {\n}", "public User saveUser(User user){\n return userRepository.save(user);\n }", "public Payment getPayment(){\n return payment;\n }", "int insert(Payment record);", "@PostMapping(\"/payments\")\n\tpublic Payment addPayment(@RequestBody Payment thePayment) {\n\t\t\n\t\tthePayment.setId(0);\n\t\t\n\t\tpaymentService.save(thePayment);\n\t\t\n\t\treturn thePayment;\n\t}", "public boolean insertPaymentDetails(Payment payment) throws ApplicationException {\n\t Transaction transaction = null;\n\t Session session = null;\n try {\n session = getSession();\n\t session.flush();\n\t transaction = session.beginTransaction();\n\t System.out.println(payment);\n\t session.save(payment);\n\t System.out.println(session.save(payment));\n\t transaction.commit();\n\t session.clear();\n\t return true;\n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t throw new ApplicationException(\"Some error occured while inserting details of Cart: \"\n\t +payment.getId(),e);\n\t }\n\t}", "@PostMapping(\"/payments\")\n public ResponseEntity<Payment> createPayment(@Valid @RequestBody Payment payment) throws URISyntaxException {\n log.debug(\"REST request to save Payment : {}\", payment);\n if (payment.getId() != null) {\n throw new BadRequestAlertException(\"A new payment cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Payment result = paymentRepository.save(payment);\n return ResponseEntity.created(new URI(\"/api/payments/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString())).body(result);\n }", "@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}", "@Test\n\n public void create() {\n User user = new User();\n user.setAccount(\"TestUser03\");\n user.setEmail(\"[email protected]\");\n user.setPhoneNumber(\"010-1111-3333\");\n user.setCreatedAt(LocalDateTime.now());\n user.setCreatedBy(\"TestUser3\");\n\n User newUser = userRepository.save(user);\n System.out.println(\"newUser : \" + newUser);\n }", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, UUID> {\n}", "public Payment saveNewPayment(PaymentFormInDTO dto){\n User user = userService.findDummyTestUser();\n Payment payment = new Payment();\n payment.setUser(user);\n PaymentForm mappedForm = beanMapper.map(dto, PaymentForm.class);\n PaymentForm savedForm = paymentFormRepository.save(mappedForm);\n payment.setForm(savedForm);\n payment.setCreationDate(LocalDateTime.now());\n if (dto.isAddToBasket()){\n payment.setStatus(PaymentStatus.CREATED);\n } else {\n payment.setStatus(PaymentStatus.COMPLETED);\n payment.setCompletedDate(LocalDateTime.now());\n }\n return paymentRepository.save(payment);\n }", "UserOrder save(UserOrder order);", "@Override\r\n\tpublic void save(XftPayment xtp) {\n\t\ttry {\r\n\t\t\tlogger.info(\"save..........servicr.....:\"+JSONUtils.beanToJson(xtp));\t\r\n\t\t\txftPaymentMapper.insert(xtp);\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "User save(User user);", "int insert(PurchasePayment record);", "@PreAuthorize(\"hasRole('ROLE_USER')\")\n\t@PostMapping(\"/payments\")\n public Payments createPayments(@Valid @RequestBody Payments payments) \n\t{\t\n\t\treturn paymentsRepository.save(payments);\n }", "public boolean addPayment(Payment a) {\n\t\tSession session=sessionFactory.getCurrentSession();\r\n\t\tsession.save(a);\r\n\t\treturn true;\r\n\t}", "User saveUser(User user);", "@Test\r\n public void testSave() {\r\n\r\n PaymentDetailPojo result = instance.save(paymentDetail1);\r\n assertTrue(paymentDetail1.hasSameParameters(result));\r\n assertTrue(result.getId() > 0);\r\n }", "public User save(User user);", "int insert(BusinessRepayment record);", "public User save(User usuario);", "public User saveUser(User user);", "Product save(Product product);", "public interface PaymentContextRepository extends CrudRepository<PaymentContext, Long> {\n\n}", "@Test\r\n public void testRetrieve() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.retrieve(paymentDetail1));\r\n }", "Account save(Account account);", "Transaction save(Transaction transaction);", "Payment selectByPrimaryKey(Long id);", "public interface PaymentDao {\n\n /**\n * Retrieves the list of all the payments in the repository\n *\n * @return a list of {@link Payment}s\n */\n List<Payment> findAll();\n\n /**\n * Retrieves a payment from the repository, given its id\n *\n * @param id the payment unique identifier\n * @return an {@link Optional} class with a {@link Payment},\n * or an empty one if no payment with the given id exists.\n */\n Optional<Payment> findById(String id);\n\n /**\n * Inserts or updates a payment in the repository\n *\n * @param payment the {@link Payment} to save\n * @return the newly saved {@link Payment}\n */\n Payment save(Payment payment);\n\n /**\n * Deletes a {@link Payment} from the repository\n *\n * @param payment the {@link Payment} to delete\n */\n void delete(Payment payment);\n}", "@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, Long> {\n\n public List<Payment> findByOrganizationId(Long orgId);\n}", "@GetMapping(\"/payments/{id}\")\n public ResponseEntity<Payment> getPayment(@PathVariable Long id) {\n log.debug(\"REST request to get Payment : {}\", id);\n Optional<Payment> payment = paymentRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(payment);\n }", "@Test\n public void test(){\n User user = new User();\n\n userService.save(user);\n }", "public Payment findOne(Long paymentid) {\n\t\treturn paymentRepository.findOne(paymentid);\n\t}", "public interface PaymentInfoRepo {\n PaymentInfo findByMatch(PaymentInfo paymentInfo);\n\n PaymentInfo create(PaymentInfo paymentInfo);\n\n void update(PaymentInfo paymentInfo);\n}", "public boolean savepayment(Payment payment) {\n\t\treturn false;\n\t}", "@Transactional\n\tpublic User save(User user) {\n\t\treturn userRepository.save(user);\n\t}", "void save(User user);", "public boolean savePayment(Pagamento payment) {\n\t\tString pattern = \"yyyy-MM-dd HH:mm:ss\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tString query = \"INSERT INTO pagamenti (id_veicolo, importo, orario, tipologia) VALUES (\";\n\t\tquery += \"'\" + payment.idVeicolo + \"',\" + Double.toString(payment.importo) + \",\";\n\t\tquery += \"'\" + simpleDateFormat.format(payment.orario) + \"','\" + payment.tipologia + \"')\";\n\t\t\n\t\treturn db.writeData(query);\n\t}", "void pay(Payment payment) {\n\n\t}", "public void savePosPay(PosPay posPay) throws DataAccessException;", "@PostMapping(\"/payment_info/{userId}\")\n\t public payment_info createPaymentInfo(@PathVariable(value = \"userId\") String userId, \n\t \t\t@Valid @RequestBody payment_info paymentInfo) {\n\t \t\n\t \tpaymentInfo.setUserId(userId);\n\t \t//paymentInfo.setCardNumber(convert(paymentInfo.getCardNumber()));\n\t return paymentInfoRepository.save(paymentInfo);\n\t }", "CustomerOrder save(CustomerOrder customerOrder);", "@PostMapping(\"/payment\")\n\tpublic ResponseEntity<Payment> addPayment(@Valid @RequestBody Payment payment) {\n\t\tlogger.info(\"Adding new Payment\");\n\t\tpayService.addPayment(payment);\n\t\treturn ResponseEntity.ok(payment);\n\t}", "@Override\n @Transactional\n public Producto save(Producto producto) {\n Presentacion presentacion = presentacionDao.findById(producto.getPresentacion().getId());\n producto.setPresentacion(presentacion);\n return productoDao.save(producto);\n }", "public void addindbpayment(){\n \n \n double tot = calculateTotal();\n Payment pms = new Payment(0,getLoggedcustid(),tot);\n \n System.out.println(\"NI Payment \"+getLoggedcustid()+\" \"+pms.getPaymentid()+\" \"+pms.getTotalprice());\n session = NewHibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n session.save(pms);\n try \n {\n session.getTransaction().commit();\n session.close();\n } catch(HibernateException e) {\n session.getTransaction().rollback();\n session.close();\n }\n clear();\n setBookcart(null);\n test.clear();\n itemdb.clear();\n \n \n try{\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"/BookStorePelikSangat/faces/index.xhtml\");\n } \n catch (IOException e) {}\n \n\t}", "@PostMapping(\"/order/add\")\n String addOrder(@RequestBody OrderDto orderDto) {\n Order order = new Order();\n order.setAmount(orderDto.getAmount());\n\n\n Optional<User> user = userRepository.findById(orderDto.getUserId());\n if (user.isPresent()) {\n order.setUser(user.get());\n orderRepository.save(order);\n }\n return \"success\";\n }", "public ModelPayment(double payment) {\n this.payment = payment;\n }", "void insert(PaymentTrade record);", "public void saveUser(User user);", "public User saveUser(User user) {\n return userRepository.save(user);\n }", "@Test\n public void createBasket(){\n BasketRepositoryImpl basketRepository=new BasketRepositoryImpl(basketCrudRepository);\n // basketRepository.save(basket);\n var response= basketRepository.findByProductId(\"11\");\n System.out.println(response.toString());\n }", "public static int insertPayment(User u) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n System.out.println(\"DBSetup @ LINE 101\");\n String query\n = \"INSERT INTO payment (userID, creditCardType, cardNumber, expireMonth, expireYear, cvv) \"\n + \"VALUES (?, ?, ?, ?, ?, ?)\";\n try {\n ps = connection.prepareStatement(query);\n ps.setInt(1, u.getUserID());\n ps.setString(2, u.getPaymentType().getCreditCardType());\n ps.setString(3, u.getPaymentType().getCardNumber());\n ps.setString(4, u.getPaymentType().getExpireMonth());\n ps.setString(5, u.getPaymentType().getExpireYear());\n ps.setInt(6, Integer.parseInt(u.getPaymentType().getCvv()));\n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "public interface MemberProfileRepository extends CrudRepository<MemberProfile, Long> {\n\n @Override\n List<MemberProfile> findAll();\n\n @Override\n MemberProfile save(MemberProfile memberProfile);\n}", "public interface UserDataRepository extends JpaRepository<UserData, Long> {\n //Object save(UserDataVO userData);\n UserData findById(long id);\n}", "public interface UserBillingRepository extends CrudRepository<UserBilling, Long> {\n\n}", "@Override\n\tpublic User save(User user) {\n\t\treturn user;\n\t}", "@Transactional\n\t@Override\n\tpublic Paradero save(Paradero t) throws Exception {\n\t\treturn paraderoRespository.save(t);\n\t}", "@Test\r\n public void testSave_again() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.save(paymentDetail1));\r\n }", "@Test\n public void testInsert() {\n\n User user = new User();\n user.setUsername(\"yinka\");\n\n user = repository.save(user);\n\n assertEquals(user, repository.findOne(user.getId()));\n assertThat(user.getFirstName(), is(\"yinka\"));\n }", "public static void addPayment(Payment payment) {\r\n\t\tEntityManager em = DBUtil.getEntityManagerFactory()\r\n\t\t\t\t.createEntityManager();\r\n\t\tEntityTransaction entityTrans = em.getTransaction();\r\n\t\tentityTrans.begin();\r\n\r\n\t\ttry {\r\n\t\t\tem.persist(payment);\r\n\t\t\tentityTrans.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\tentityTrans.rollback();\r\n\t\t} finally {\r\n\t\t\tem.close();\r\n\t\t}\r\n\t}", "void save(UserDetails userDetails);", "@Override\n public void save(Promocion prm) {\n promocionRepository.save(prm);\n }", "@Override\n\tpublic int savePayment(RotatePayment record) {\n\t\trecord.setId(UUID.randomUUID().toString().replaceAll(\"-\", \"\"));\n\t\tDate date = Calendar.getInstance().getTime();\n\t\trecord.setReportDate(date);\n\t\tint i =(int)(Math.random()*1000);\n\t\tString serial = String.format(\"%s%s%03d\", PREFIX,date.getTime(),i);\n\t\trecord.setPaySerial(serial);\n//\t\trecord.setOperator(TokenManager.getNickname());\n\t\tList<RotatePaymentDetail> detailList = record.getDetailList();\n\t\tfor(RotatePaymentDetail detail:detailList) {\n\t\t\tdetail.setId(UUID.randomUUID().toString().replaceAll(\"-\", \"\"));\n\t\t\t\n\t\t}\n\t\treturn paymentDao.savePayment(record);\n\t}", "@Override\r\n\tpublic void save(User user) {\n\t\t\r\n\t}", "public Employee save(Employee employee){\n return employeeRepository.save(employee);\n }", "public User InsertUser(User user){\n\t\t\t//step to call the jpa class and insert user into the db\n\t\t\treturn user;\n\t\t}", "int insert(SsPaymentBillPerson record);", "BusinessRepayment selectByPrimaryKey(String id);", "PurchasePayment selectByPrimaryKey(Long id);", "@RequestMapping(method = RequestMethod.GET)\n public PaymentDTO getPayment(@PathVariable(value = \"paymentId\") String paymentId){\n Payment payment = this.readPaymentService.execute(paymentId);\n PaymentDTO paymentDTO = modelMapper.map(payment, PaymentDTO.class);\n BeanUtils.copyProperties(paymentDTO, payment);\n return paymentDTO;\n }", "@GetMapping(\"/payments-byuser/{id}\")\n public List<Payment> getPaymentByUser(@PathVariable Long id) {\n log.debug(\"REST request to get Payment : {}\", id);\n return paymentRepository.findByUserIsCurrentUser();\n }", "public UserEntity save(UserEntity userEntity);", "@Transactional\n\t@Override\n\tpublic Primaryuser save(Primaryuser entity) throws Exception {\n\t\treturn primaryRepository.save(entity);\n\t}", "public Participacao createParticipacao(Participacao model) {\n return participacaoRepository.save(model);\n}", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @GetMapping(\"/payments/{id}\")\n public Payments getPaymentById(@PathVariable(value = \"id\") Integer paymentId) \n {\n return paymentsRepository.findById(paymentId)\n .orElseThrow(() -> new ResourceNotFoundException(\"Technologies\", \"id\", paymentId));\n }", "Accessprofile save(Accessprofile accessprofile);", "@Test\n void findOne() {\n UserEntity userEntity = new UserEntity();\n userEntity.setId(1);\n userEntity.setFirstName(\"mickey\");\n userEntity.setLastName(\"mouse\");\n UserEntity save = repository.save(userEntity);\n\n // then find\n UserEntity byId = repository.getById(1);\n\n System.out.println(\"byId.getId() = \" + byId.getId());\n\n Assert.isTrue(1 == byId.getId());\n }", "public void saveUserData(UserData userData){\n userDataRepository.save(userData);\n }", "public int saveUser(User user);", "public void saveUser(IUser user);", "@Override\n\tpublic int makepayment(Payment payment) {\n\t\treturn paydao.doPayment(payment);\n\t}", "Patient save(Patient patient);", "public User saveuser(User newUser){\n Optional<User> user = userRepo.findById(newUser.getGoogleId());\n if(!user.isPresent()){\n userRepo.save(newUser);\n return newUser;\n }\n else{\n throw new UserNotFoundException(\" \");\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String err = \" \";\n\n String applicationNumOrStudentID = request.getParameter(\"paymentApplicationNumOrStudentID\");\n String paymentAmmount = request.getParameter(\"paymentAmount\");\n String paymentType = request.getParameter(\"paymentType\");\n String paymentBank = request.getParameter(\"paymentBank\");\n String examID = request.getParameter(\"examID\");\n Date paymentDate = Date.valueOf(request.getParameter(\"paymentDate\"));\n\n HttpSession httpSession = request.getSession(true);\n String auther = (String) httpSession.getAttribute(\"id\");\n\n Payment payment = new Payment();\n payment.setApplicationNumOrStudentID(applicationNumOrStudentID);\n payment.setPaymentAmmount(paymentAmmount);\n payment.setPaymentType(paymentType);\n payment.setPaymentBank(paymentBank);\n payment.setExamID(examID);\n payment.setPaymentDate(paymentDate);\n payment.setAuthor(auther);\n\n SessionFactory sessionFactry = new Configuration().configure().buildSessionFactory();\n Session session = sessionFactry.openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n session.save(payment);\n if (paymentType.equalsIgnoreCase(\"Application_Payment\")) {\n Applicant applicant = new Applicant();\n applicant = (Applicant) session.get(Applicant.class, applicationNumOrStudentID);\n applicant.setDoPayment(1);\n session.update(applicant);\n \n\n }\n session.getTransaction().commit();\n response.sendRedirect(\"user/coordinator/coordinate.jsp\");\n } catch (HibernateException hex) {\n System.out.println(\"--->\" + hex);\n tx.rollback();\n response.sendRedirect(\"user/coordinator/coordinate.jsp?msg=error\");\n } catch (Exception e) {\n System.out.println(\"--->\" + e);\n tx.rollback();\n response.sendRedirect(\"user/coordinator/coordinate.jsp?msg=error\");\n } finally {\n session.close();\n }\n\n }", "public void save(Payment payment) {\n\t\ttry {\n\t\t\thashOperations.put(KEY, payment.getTokenKey(), payment);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n//\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST);\n\t\t}\n\t}", "@Override\n\tpublic int save(User user) {\n\t\treturn dao.save(user);\n\t}", "public interface ImprimeRepository extends JpaRepository<Imprime,Long> {\n\n Imprime findById(Long id);\n\n}", "public Integer save(User user) {\n System.out.println(\" save user ()\");\n Session session = HibernateSessionFactory.getSessionFactory().openSession();\n Transaction tx = null;\n Integer userID = null;\n try {\n tx = session.beginTransaction();\n userID = (Integer) session.save(user);\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n return userID;\n }", "@Override\r\n\tpublic void save() {\n\t\tSystem.out.println(\"UserServiceImplÍ┤đđ┴╦\");\r\n\t\tuserDao.save();\r\n\t}", "void save(Account account);", "public IBankTransfert payment();", "public static void main(String[] args) {\n\n UserDao userDao = new UserDao();\n User user = new User();\n user.setName(\"cai\");\n user.setPassword(\"123456\");\n try {\n System.out.println(userDao.save(user));\n } catch (IllegalArgumentException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public boolean save(User user);", "@Override\n\tpublic User save(User user) {\n\t\treturn null;\n\t}", "void save(Bill bill);", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }" ]
[ "0.73510224", "0.73111016", "0.69270617", "0.6730364", "0.6721706", "0.66462165", "0.6614484", "0.6611686", "0.66036266", "0.6578846", "0.6547699", "0.6484367", "0.64743537", "0.6471792", "0.6458552", "0.64543855", "0.6448782", "0.64352316", "0.6423575", "0.64223915", "0.64178205", "0.63855356", "0.6312485", "0.63112813", "0.63053393", "0.6294957", "0.6274103", "0.62250686", "0.6207757", "0.6196267", "0.61962354", "0.61944425", "0.6179531", "0.6173526", "0.61606705", "0.615481", "0.6147934", "0.6143467", "0.613627", "0.6128223", "0.6113167", "0.61056525", "0.60881287", "0.60753256", "0.6072535", "0.6067396", "0.6065883", "0.60323244", "0.60248876", "0.60187477", "0.6015373", "0.6003745", "0.5985038", "0.5984699", "0.5972404", "0.59686375", "0.595519", "0.5952619", "0.5945528", "0.59350383", "0.5929773", "0.5918182", "0.59116685", "0.59048325", "0.59025985", "0.5900473", "0.5896103", "0.5895825", "0.5890919", "0.5885978", "0.5881656", "0.5872756", "0.58654696", "0.5860313", "0.58587706", "0.5852261", "0.58458525", "0.5843501", "0.58384985", "0.58362925", "0.5829198", "0.5816721", "0.5809598", "0.5808825", "0.5800096", "0.5790988", "0.5790853", "0.57835567", "0.57754874", "0.5769061", "0.5752615", "0.5747748", "0.5743785", "0.57413673", "0.5740365", "0.57328093", "0.5725354", "0.5707712", "0.57005197", "0.5687873", "0.56858206" ]
0.0
-1
Created by Vladimir on 05.04.2017.
public interface MainView extends BaseView { void showProgress(); void hideProgress(); void setUserInfo(User user); void error(String error); }
{ "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\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void init() {\n\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\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 anular() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "private void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void initialize() { \n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@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}", "public void mo38117a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void m50366E() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "Consumable() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo4359a() {\n }", "@Override\n public int getSize() {\n return 1;\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }" ]
[ "0.57923055", "0.5627784", "0.55796576", "0.553876", "0.54449606", "0.54449606", "0.5415829", "0.5400086", "0.5391614", "0.5388773", "0.5372055", "0.53696555", "0.53652966", "0.53652966", "0.53652966", "0.53652966", "0.53652966", "0.53652966", "0.5361523", "0.5340872", "0.5337779", "0.5334737", "0.53199965", "0.53178513", "0.53108877", "0.52896965", "0.5279942", "0.5279942", "0.5279629", "0.52774554", "0.5277044", "0.5277044", "0.5277044", "0.5277044", "0.5277044", "0.52718496", "0.5269419", "0.5266154", "0.5265203", "0.5258923", "0.5257365", "0.524213", "0.52399963", "0.52379954", "0.5222308", "0.5221547", "0.5221547", "0.52210325", "0.5199264", "0.5184479", "0.5184479", "0.51832426", "0.5182837", "0.5182837", "0.5182837", "0.5181594", "0.51795614", "0.5156372", "0.5156372", "0.5156372", "0.515255", "0.515255", "0.515255", "0.51522535", "0.5145393", "0.51399034", "0.51399034", "0.51399034", "0.513893", "0.5121938", "0.512157", "0.51192784", "0.5118688", "0.5118688", "0.5118057", "0.5112276", "0.5110387", "0.5103766", "0.5098515", "0.50930357", "0.50901043", "0.5083569", "0.50818634", "0.5078347", "0.50709283", "0.5067939", "0.50632155", "0.50595224", "0.50570893", "0.5052628", "0.5048763", "0.50477684", "0.50428754", "0.5041639", "0.50409925", "0.5040444", "0.500952", "0.500952", "0.500952", "0.500952", "0.500952" ]
0.0
-1
This method retrieves all the available cars for the given Dates and groups them by type (optional) and name (optional)
public Set<Cars> getCars(String fromDate, String toDate, String type, String name) { CarsDao carsDao = CarsDaoImpl.getInstance(); Set<Cars> cars = carsDao.getCarsByDate(fromDate, toDate, type, name); return cars; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<CabDto> viewCabsOfType(String carType) throws CabNotFoundException {\r\n\t\tList<Cab> cabList = cabRepository.findByCarType(carType);\r\n\t\tList<CabDto> cabdtoList = new ArrayList<>();\r\n\r\n\t\tif (!cabList.isEmpty()) {\r\n\t\t\tfor (Cab c : cabList) {\r\n\t\t\t\tcabdtoList.add(Convertor.convertCabEntitytoDTO(c));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new CabNotFoundException(\"Cab List is empty\");\r\n\t\t}\r\n\t\treturn cabdtoList;\r\n\t}", "private void searchAvailableCar() throws Exception {\t\n\t\tString type;\n\t\tSystem.out.print(\"Enter Type (SD/SS): \");\n\t\ttype = console.nextLine().toUpperCase();\n\t\t\n\t\tif (!type.equals(\"SD\") && !type.equals(\"SS\")) {\n\t\t\tthrow new InvalidServiceTypeException(\"Error: Service Type is invalid.\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Enter Date: \");\n\t\tString dateEntered = console.nextLine();\n\t\tDateRegex dateChecker = new DateRegex(dateEntered);\n\t\tint day = Integer.parseInt(dateEntered.substring(0, 2));\n\t\tint month = Integer.parseInt(dateEntered.substring(3, 5));\n\t\tint year = Integer.parseInt(dateEntered.substring(6));\n\t\tDateTime dateRequired = new DateTime(day, month, year);\n\t\tapplication.book(dateRequired, type);\n//\t\tfor (int i = 0; i < availableCars.length; i++) {\n//\t\t\tSystem.out.println(availableCars[i]);\n//\t\t}\n\t}", "public ArrayList<CarDetail> gettingAllAvailableCars() throws Exception;", "public static Car[] getAll() {\n Car[] cars = null;\n RequestGetObject requestGetObject = new RequestGetObject();\n try {\n String carsString = requestGetObject.execute(\"https://waiting-list-garage.herokuapp.com/car\").get();\n Gson gson = new Gson();\n cars = gson.fromJson(carsString, Car[].class);\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return cars;\n }", "List<String> getResevedDatesList(int carId) throws ServiceException;", "List<Doctor> getAvailableDoctors(java.util.Date date, String slot) throws CliniqueException;", "public List<Serie> getCaloriesByDate(){\r\n\t\t\r\n\t\treturn daoEjercicio.getCaloriesByDate();\r\n\t\t\r\n\t}", "@Override\n\tpublic List<Object[]> categoriesDataForDates(LocalDate date) { \n\t\tHashMap<Integer, Category> map = new HashMap<>();\n\t\tList<Category> categories = getAllCategories(); \n\t\tcategories.forEach(c -> {\n\t\t\tmap.put(c.getId(), c); \n\t\t});\n\n\t\tfinal String sql = \"SELECT DATE_FORMAT(dateIncurred,'%Y-%m') as date, \"\n\t\t\t\t+ \"category as cat, Count(*) as count, ROUND(SUM(amount),2) as sum \"\n\t\t\t\t+ \"FROM Transaction \"\n\t\t\t\t+ \"WHERE amount < 0 and (dateIncurred between ? and ?)\"\n\t\t\t\t+ \"GROUP BY Year(dateIncurred) , Month(dateIncurred), category \"\n\t\t\t\t+ \"ORDER BY dateIncurred DESC\";\n\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tSQLQuery query = session.createSQLQuery(sql);\n\n\t\t// TODO: simplify\n\t\tLocalDate from \t\t= date; \n\t\tLocalDate to\t\t= from.plusDays(from.lengthOfMonth() - 1);\n\t\tTimestamp from1 = Timestamp.valueOf(from.atStartOfDay());\n\t\tTimestamp to1\t= Timestamp.valueOf(to.atStartOfDay());\n\t\t\n\t\tquery.setTimestamp(0, from1);\n\t\tquery.setTimestamp(1, to1);\n\t\t\n\t\t/* replace Category_id with the actual category object by fetching the objects from db */ \n\t\tList<Object[]> results = query.list();\n\t\tresults.forEach(o -> {\n\t\t\tif (o[1] != null) { \n\t\t\t\t/* get category id */ \n\t\t\t\tInteger cat_id = Integer.parseInt(o[1].toString());\n\n\t\t\t\t/* put category object in map */ \n\t\t\t\to[1] = map.get(cat_id);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsession.getTransaction().commit();\n\t\treturn results;\n\t}", "public List<ICase> searchCases(Date date) {\n List<ICase> cases = new ArrayList<>();\n for (ICase aCase : allCases) {\n if (aCase.getCreationDate().equals(calendar.formatToString(date))) {\n cases.add(aCase);\n }\n }\n return cases;\n }", "public List<Car>getAllCars(){\r\n return (List<Car>) repository.findAll();\r\n }", "public Collection<CarrierMasterDTO> getCarriers(CarrierParams cparams) throws Exception;", "@Override\n\tpublic ArrayList<Carpo> getAllCars() {\n\t\treturn inList.getAll();\n\t}", "public static List<Carro> getCarros() {\n CarroDAO dao = CarrosApplication.getInstance().getCarroDAO();\n List<Carro> carros = dao.findAll();\n return carros;\n }", "public List<Car> getCars() {\n List<Car> cars = new ArrayList<>();\n\n for (Car car : DatabaseManager.getCars()) {\n if (!car.isReserved()) {\n cars.add(car);\n }\n }\n\n return cars;\n }", "public List<Order> getOrdersByDate(Date date);", "List<SpotPrice> getByCommodityAndFromDateAndToDateAndLocation(\n Commodity commodity,\n Date fromDate,\n Date toDate,\n Location location\n );", "public List findRecordsFrom(String informationType, Date date) throws DatabaseException;", "public List<Card> getCards(CardType type) {\n List<Card> cards = new ArrayList<>();\n for (Card card : this) {\n if (card.getCardType() == type) {\n cards.add(card);\n }\n }\n return cards;\n }", "public List<TblReservationRoomTypeDetailRoomPriceDetail>getAllDataReservationRoomPriceDetailByDate(Date date);", "List<Car> getByBrandAndColor(String brand, String color);", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public abstract List<CarTO> listAll();", "@GetMapping(value=\"/gps\", params=\"date\")\n @ResponseBody\n public List<GPSInfo> allFromDate(@RequestParam @DateTimeFormat(pattern = \"yyyy-MM-dd\") LocalDate date) {\n return repository.findByDate(date);\n }", "public Vector<Cars> getCars() {\n\t\tVector<Cars> v = new Vector<Cars>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt\n\t\t\t\t\t.executeQuery(\"select * from vehicle_details order by vehicle_reg\");\n\t\t\twhile (rs.next()) {\n\t\t\t\tString reg = rs.getString(1);\n\t\t\t\tString make = rs.getString(2);\n\t\t\t\tString model = rs.getString(3);\n\t\t\t\tString drive = rs.getString(4);\n\t\t\t\tCars cars = new Cars(reg, make, model, drive);\n\t\t\t\tv.add(cars);\n\t\t\t}\n\t\t}\n\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}", "List<VehicleTypeDto> findAll();", "public List<Service> getServiceFromDateNPlate(String date,String plate){\n \n List<Service> lista = new ArrayList<>(); \n \n try {\n stmt = conn.createStatement();\n rs = stmt.executeQuery(\"SELECT QNT,DESC,PRICE FROM \" + plate + \" WHERE DATA = '\" + date + \"';\" );\n \n while(rs.next()){\n lista.add(new Service( rs.getDouble(\"QNT\"), rs.getString(\"DESC\"), rs.getDouble(\"PRICE\") ) ); \n }\n \n stmt.close();\n rs.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n return lista;\n }", "private List<DailyRecord> getDaily(int year, Month month, String type) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\"select date, sum(Amount) from transaction where date between ? and ? and type=? group by date\" )) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setString(3, type);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<DailyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tLocalDate resultDate = resultSet.getDate(1).toLocalDate();\n\t\t\t\t\tint day = resultDate.getDayOfMonth();\n\t\t\t\t\tDayOfWeek weekDay = resultDate.getDayOfWeek();\n\t\t\t\t\tdouble amount = resultSet.getDouble(2);\t\t\t\t\t\n\t\t\t\t\tlist.add(new DailyRecord(amount, day, weekDay));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}", "List<Car> getByBrandOrderByYearAsc(String brand);", "@Override\n\tpublic ArrayList<Carpo> showAllCars() {\n\t\treturn inList.showAll();\n\t}", "public List<Goods> selectByDate(int page,int maxResults);", "ArrayList<Course> findByDate(LocalDate date);", "@Override\r\n\tpublic List<ContractDetailTO> findRangedContractDetailList(HashMap<String, Object> searchDate) {\r\n\t\treturn contractApplicationService.findRangedContractDetailList(searchDate);\r\n\t}", "public static ArrayList<Match> matchesByDate(String date, String season){\n PremierLeagueManager.loadingData();\n\n // getting the clubs with the filtered matches by season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n ArrayList<FootballClub> filteredClubsByDateForSeason;\n ArrayList<Match> filteredMatchedOnDate = null;\n\n try {\n // returns the clubs with the filtered matches by date\n filteredClubsByDateForSeason = filterMatchesByDate(guiSeasonFilteredClubs, date);\n\n // returns the matches form the filtered club by date\n filteredMatchedOnDate = getMatchesForSeason(filteredClubsByDateForSeason);\n\n } catch (CloneNotSupportedException e) {\n // Handles the exception\n e.printStackTrace();\n\n }\n return filteredMatchedOnDate;\n }", "private void dispAllCar() throws Exception {\n\t\tString type, sortOrder;\n\t\tSystem.out.println(\"Enter Type (SD/SS): \");\n\t\ttype = console.nextLine().toUpperCase();\n\t\t\n\t\tif (!type.equals(\"SD\") && !type.equals(\"SS\")) {\n\t\t\tthrow new InvalidServiceTypeException(\"Error: Service Type is invalid.\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Enter Sorting Order (A/D): \");\n\t\tsortOrder = console.nextLine().toUpperCase();\n\t\t\n\t\tif (!sortOrder.equals(\"A\") && !sortOrder.equals(\"D\")) {\n\t\t\tthrow new InvalidSortingOrderException(\"Error: Sorting Order is invalid.\");\n\t\t}\n\t\t\n\t\tSystem.out.println(application.displayAllBookings(type, sortOrder));\n\t}", "private void setCarList(){\n List<com.drife.digitaf.ORM.Database.CarModel> models = new ArrayList<>();\n\n if(nonPackageGrouping != null && nonPackageGrouping.size()>0){\n //cars = CarController.getAllAvailableCarInPackage(nonPackageGrouping.get(0).getCategoryGroupId());\n for (int i=0; i<nonPackageGrouping.size(); i++){\n List<com.drife.digitaf.ORM.Database.CarModel> carModels = CarController.getAllAvailableCarInPackage(nonPackageGrouping.get(i).getCategoryGroupId());\n for (int j=0; j<carModels.size(); j++){\n com.drife.digitaf.ORM.Database.CarModel model = carModels.get(j);\n models.add(model);\n }\n }\n }\n\n TextUtility.sortCar(models);\n\n for (int i=0; i<models.size(); i++){\n com.drife.digitaf.ORM.Database.CarModel model = models.get(i);\n String car = model.getCarName();\n if(!carModel.contains(car)){\n carModel.add(car);\n cars.add(model);\n }\n }\n\n /*for (int i=0; i<cars.size(); i++){\n com.drife.digitaf.ORM.Database.CarModel carModel = cars.get(i);\n String model = carModel.getCarName();\n this.carModel.add(model);\n }*/\n\n atModel.setAdapter(new ArrayAdapter<com.drife.digitaf.ORM.Database.CarModel>(this, android.R.layout.simple_list_item_1, this.cars));\n\n //SpinnerUtility.setSpinnerItem(getApplicationContext(), spinModel, this.carModel);\n }", "public List<ServiceType> getAllByDate(Date startDate , Date endDate) {\n\t\t// TODO Auto-generated method stub\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tsession.beginTransaction();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList <ServiceType> lst =(List<ServiceType>) session.createCriteria(ServiceType.class)\n\t\t.add(Restrictions.ge(\"createDate\", startDate))\n\t\t.add(Restrictions.lt(\"createDate\", endDate))\n\t\t.list();\n\t\tsession.close();\n\t\treturn lst;\n\t}", "private void getRecords(LocalDate startDate, LocalDate endDate) {\n foods = new ArrayList<>();\n FoodRecordDao dao = new FoodRecordDao();\n try {\n foods = dao.getFoodRecords(LocalDate.now(), LocalDate.now(), \"\");\n } catch (DaoException ex) {\n Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public List<Car> findCarsByBrand(String brand){\r\n return repository.findCarsByBrand(brand);\r\n }", "public List getCalendarios(Map criteria);", "public List<Vehicle> getVehicles\n\t(Calendar since, Collection<VehicleType> typesReq, VehicleState stateReq) {\t\t\n\t\tList<Vehicle> vehiclesRequested = new ArrayList<Vehicle>();\n\t\t\n\t\tfor(Vehicle v: vehiclesByUri.values()){\n\t\t\tsynchronized(this.getVehicleLock()){\n\t\t\t\tboolean timeOk = true;\t\t\n\t\t\t\tif(since != null){\n\t\t\t\t\ttimeOk = v.getEntryTime().toGregorianCalendar().after(since);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean typeOk = true;\n\t\t\t\tif(typesReq != null && !typesReq.isEmpty()){\n\t\t\t\t\ttypeOk = typesReq.contains(v.getType());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean stateOk = true;\n\t\t\t\tif(stateReq != null){\n\t\t\t\t\tstateOk = v.getState().equals(stateReq);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tString intTimeOk = timeOk ? \"1\" : \"0\";\n//\t\t\t\tString intTypeOk = typeOk ? \"1\" : \"0\";\n//\t\t\t\tString intStateOk = stateOk ? \"1\" : \"0\";\n//\t\t\t\tSystem.out.println(\"Vehicle values \" + intTimeOk + intTypeOk + intStateOk);\n\t\t\t\tif(timeOk && stateOk && typeOk){\n\t\t\t\t\tvehiclesRequested.add(v);\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn vehiclesRequested;\n\t}", "private void addArrivingCars(int numberOfCars, String type) {\n\t\tswitch (type) {\n\t\tcase AD_HOC:\n\t\t\tfor (int i = 0; i < numberOfCars; i++) {\n\t\t\t\tentranceCarQueue.addCar(new AdHocCar());\n\t\t\t\tnormaal++;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PASS:\n\t\t\tfor (int i = 0; i < numberOfCars; i++) {\n\t\t\t\tentrancePassQueue.addCar(new ParkingPassCar());\n\t\t\t\treservering++;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "private void addArrivingCars(int numberOfCars, String type){\n\t\t\tswitch(type) {\r\n\t\t\tcase NORMCAR: \r\n\t\t\t\tfor (int i = 0; i < numberOfCars; i++) {\r\n\t\t\t\t\tentranceCarQueue.addCar(new NormalCar());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase PASS:\r\n\t\t\t\tfor (int i = 0; i < numberOfCars; i++) {\r\n\t\t\t\t\tentrancePassQueue.addCar(new ParkingPassCar());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\t \r\n\t\t\t}\r\n\t\t}", "public List<cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TOfferGoods> fetchByCdate(Timestamp... values) {\n return fetch(TOfferGoods.T_OFFER_GOODS.CDATE, values);\n }", "public List<Car> searchByYear(List<Car> cars, int year) {\n List<Car> resultList = new ArrayList<>();\n // find all cars that were made in year or newer and add to resultList\n for (Car c: cars) {\n if (c.getYear() >= year) {\n resultList.add(c);\n }\n }\n return resultList;\n }", "@Override\n public Result getCommodityTypeList(Pageable pageable,String commodityName) throws FruitException {\n\n Result result = new Result();\n\n try {\n\n Page<CommodityTypeList> commodityTypePage = null;\n\n if( !StringUtils.isEmpty(commodityName)){\n\n }else{\n\n commodityTypePage = commodityRepository.findAllByParentIdIsNull(pageable);\n }\n\n if(commodityTypePage == null || commodityTypePage.getContent() == null\n || commodityTypePage.getContent().isEmpty()){\n\n throw new FruitException(FruitMsgEnum.CommodityTypeResultEmpty);\n }else{\n\n result.setResponseReplyInfo(commodityTypePage);\n\n }\n }catch (Exception e){\n\n throw new FruitException(FruitMsgEnum.Exception);\n }\n return result;\n }", "public List<VehicleCategoryMasterBean> categoryList() throws Exception;", "private void addArrivingCars(int numberOfCars, String type){\n\t \tswitch(type) {\n\t \tcase AD_HOC: \n\t for (int i = 0; i < numberOfCars; i++) {\n\t \tentranceCarQueue.addCar(new AdHocCar());\n\t }\n\t break;\n\t \tcase PASS:\n\t for (int i = 0; i < numberOfCars; i++) {\n\t \tentrancePassQueue.addCar(new ParkingPassCar());\n\t }\n\t break;\t \n\t \t}\n\t }", "public List<Contract> getFoodContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=0 AND \"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}", "public List<RWDCar> getCars() {\n return game.getCars();\n }", "public List<Vehicle> getAllVehicle() {\n // array of columns to fetch\n String[] columns = {\n COLUMN_VEHICLE_ID,\n COLUMN_VEHICLE_NAME,\n COLUMN_VEHICLE_NUMBER,\n COLUMN_VEHICLE_CC,\n COLUMN_VEHICLE_YEAR,\n COLUMN_VEHICLE_TYPE,\n COLUMN_VEHICLE_FUEL,\n COLUMN_VEHICLE_CATEGORY,\n COLUMN_VEHICLE_DATE\n };\n // sorting orders\n String sortOrder =\n COLUMN_VEHICLE_NAME + \" ASC\";\n List<Vehicle> vehicleList = new ArrayList<Vehicle>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n\n // query the vehicle table\n /**\n * Here query function is used to fetch records from vehicle table this function works like we use sql query.\n */\n Cursor cursor = db.query(TABLE_VEHICLE, //Table to query\n columns, //columns to return\n null, //columns for the WHERE clause\n null, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n sortOrder); //The sort order\n\n\n // Traversing through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Vehicle vehicle = new Vehicle();\n vehicle.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_ID))));\n vehicle.setName(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_NAME)));\n vehicle.setNumber(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_NUMBER)));\n vehicle.setCc(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_CC)));\n vehicle.setYear(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_YEAR)));\n vehicle.setType(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_TYPE)));\n vehicle.setFuel(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_FUEL)));\n vehicle.setCategory(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_CATEGORY)));\n vehicle.setDate(cursor.getString(cursor.getColumnIndex(COLUMN_VEHICLE_DATE)));\n // Adding vehicle record to list\n vehicleList.add(vehicle);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n // return vehicle list\n return vehicleList;\n }", "@Transactional\r\n\tpublic List<Car> getAllCars() {\n\t\treturn (List<Car>)cr.findAll();\r\n\t}", "public List<Carro> getCarros(){\n\t\t\n\t\ttry {\t\t\t\n\t\t\tList<Carro> carros = db.getCarros();\n\t\t\treturn carros;\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t}", "public List<Car> getCarsData() { return carsData; }", "List<CabResponse> getCountByMedallionAndPickupDate(List<String> medallions, Date pickupDate);", "public static Object[] getVehicleData(){\n String make, model;\n double price, fuelConsumption;\n int power, year;\n FuelType fuelType;\n\n System.out.println(\"\\n1. Car\\n2. Truck\");\n int res = ConsoleReader.getInt();\n System.out.print(\"\\nEnter make :\");\n ConsoleReader.getString();\n make = ConsoleReader.getString();\n System.out.print(\"Enter model :\");\n model = ConsoleReader.getString();\n System.out.print(\"Enter price($) :\");\n price = Double.parseDouble(ConsoleReader.getString());\n System.out.print(\"Enter fuelConsumption(l) :\");\n fuelConsumption = Double.parseDouble(ConsoleReader.getString());\n System.out.print(\"Enter power(kW) :\");\n power = ConsoleReader.getInt();\n System.out.print(\"Enter year :\");\n year = ConsoleReader.getInt();\n System.out.print(\"Enter fuelType :\\n\");\n\n FuelType[] fuelTypes = FuelType.values();\n for(int i = 0; i < fuelTypes.length; i++){\n System.out.print(\" \" + i + \". \" + fuelTypes[i].toString() + \"\\n\");\n }\n fuelType = FuelType.valueOf((fuelTypes[ConsoleReader.getInt()]).toString());\n\n if (res == 1){\n int seatCount, doorCount;\n BodyType bodyType;\n\n System.out.print(\"Enter seatCount :\");\n seatCount = ConsoleReader.getInt();\n System.out.print(\"Enter doorCount :\\n\");\n doorCount = ConsoleReader.getInt();\n\n BodyType[] bodyTypes = BodyType.values();\n for(int i = 0; i < bodyTypes.length; i++){\n System.out.print(\" \" + i + \". \" + bodyTypes[i].toString() + \"\\n\");\n }\n bodyType = BodyType.valueOf((bodyTypes[ConsoleReader.getInt()]).toString());\n\n return new Object[] {res, make, model, price, fuelConsumption,\n power, year, fuelType, seatCount, doorCount, bodyType};\n }else {\n int capacity;\n TruckCategory truckCategory;\n\n System.out.print(\"Enter capacity :\");\n capacity = ConsoleReader.getInt();\n\n TruckCategory[] truckCategories = TruckCategory.values();\n for (int i = 0; i < truckCategories.length; i++) {\n System.out.print(\" \" + i + \". \" + truckCategories[i].toString() + \"\\n\");\n }\n truckCategory = TruckCategory.valueOf((truckCategories[ConsoleReader.getInt()]).toString());\n\n return new Object[]{res, make, model, price, fuelConsumption,\n power, year, fuelType, capacity, truckCategory};\n }\n }", "List<Car> getByBrandAndModel(String brand, String model);", "@Override\n\tpublic List<Vehicle> getAll() {\n\t\tList<Vehicle> list = new LinkedList<Vehicle>();\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT v.vehicle_ID, v.plate_number, v.mv_number, v.engine_number, v.chassis_number, m.description as model_name, c.description as category, v.encumbered_to, v.amount, v.maturity_date, v.status, v.image FROM models m INNER JOIN vehicles v ON m.model_ID=v.model_ID INNER JOIN vehicle_categories c ON c.category_ID=v.category_ID\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tBlob blob = rs.getBlob(\"image\");\n\t\t\t\tInputStream is = blob.getBinaryStream(1, (int)blob.length());\n\t\t\t\tBufferedImage bf = ImageIO.read(is);\n\t\t\t\tImage img = SwingFXUtils.toFXImage(bf, null);\n\t\t\t\t\n\t\t\t\tlist.add(new Vehicle(rs.getInt(\"vehicle_ID\"), rs.getString(\"plate_number\"), rs.getString(\"mv_number\"), rs.getString(\"engine_number\"), rs.getString(\"chassis_number\"),rs.getString(\"model_name\"), rs.getString(\"category\"), rs.getString(\"encumbered_to\"), rs.getDouble(\"amount\"), Date.parse(rs.getString(\"maturity_date\")), rs.getString(\"status\"), img));\n\t\t\t}\n\t\t\t\n\t\t\tst.close();\n\t\t\trs.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public List<PetDTO> getAllPetsEventsDate(Date date) { \n EntityManager em = emf.createEntityManager();\n Query query = em.createQuery(\"SELECT NEW dto.PetDTO(p) FROM Pet p JOIN p.eventCollection e WHERE e.date = :date\");\n query.setParameter(\"date\", date);\n return query.getResultList();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic JSONCalendar availableHouses(String startDate, String endDate) {\n\t\t// Create a new list with house ID'sz\n\t\tList<String> houseIDs = new ArrayList<>();\n\t\tList<Calendar> dates = null;\n\t\tList<String> housed = null;\n\t\tList<Calendar> d = null;\n\t\tJSONCalendar ca = new JSONCalendar();\n\t\tEntityManager em = JPAResource.factory.createEntityManager();\n\t\tEntityTransaction tx = em.getTransaction();\n\t\ttx.begin();\n\t\t\n\t\t// Find the houses id's\n\t\t\n\t\tQuery q1 = em.createQuery(\"SELECT h.houseID from House h\");\n\t\t// It has all the houseIDs\n\t\thoused = q1.getResultList();\n\t\t//System.out.println(housed);\n\t\t\n\t\tQuery q = em.createNamedQuery(\"Calendar.findAll\");\n\t\tdates = q.getResultList();\n\t\t\n\t\tfor( int i = 0; i < housed.size(); i++ ) {\n\t\t\t// Select all the dates for every house\n\t\t\tint k = 0;\n\t\t\tQuery q2 = em.createQuery(\"SELECT c from Calendar c WHERE c.houseID = :id AND c.date >= :startDate AND c.date < :endDate\");\n\t\t\tq2.setParameter(\"id\", housed.get(i));\n\t\t\tq2.setParameter(\"startDate\", startDate);\n\t\t\tq2.setParameter(\"endDate\", endDate);\n\t\t\td = q2.getResultList();\n\t\t\t\n\t\t\tlong idHouse = 0;\n\t\t\tfor(int j = 0; j < d.size(); j++) {\n\t\t\t\t//System.out.println(d.get(j).getHouseID());\n\t\t\t\tidHouse = d.get(j).getHouseID();\n\t\t\t\tif(d.get(j).getAvailable() == true) {\n\t\t\t\t\tk++;\n\t\t\t\t\t// System.out.println(k);\n\t\t\t\t}\n\t\t\t\t// Find out if the houses are available these days\n\t\t\t\t\n\t\t\t}\n\t\t\tif(k == d.size() && k != 0) {\n\t\t\t\t// System.out.println(k);\n\t\t\t\thouseIDs.add(String.valueOf(idHouse));\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// Select all the houses\n\t\t\n\t\tca.setResults(houseIDs);\n\t\tca.setNumDates(d.size());\n\t\t// System.out.println(startDate + \" \" + endDate);\n\t\t// System.out.println(houseIDs);\n\t\t\n\t\t\n\t\treturn ca;\n\t}", "public ArrayList<Record> getRecordsForDate(final Date date) {\n ArrayList<Record> resultList = new ArrayList<>();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(FOLDER_DATE_FORMAT);\n String folderString = dateFormat.format(date);\n File baseFolder = getBaseFolder();\n if (baseFolder != null) {\n String[] allRecords = baseFolder.list();\n if (allRecords == null || allRecords.length == 0) {\n return resultList;\n }\n\n for (String eachRecord : allRecords) {\n if (eachRecord.contains(folderString)) {\n Record record = loadRecordFromFolderName(eachRecord);\n resultList.add(record);\n }\n }\n }\n\n return resultList;\n }", "@Override\r\n\tpublic List<IAutomatedVehicle> getVehiclesOfFuelType(Fuel fuel) {\r\n\t\tList<IAutomatedVehicle> allVehiclesOfFuelType = new ArrayList<>();\r\n\r\n//\t\tfor (INonAutomatedVehicle notAuto : this.vehicleDatabase.get(CAR)) {\r\n//\t\t\tIAutomatedVehicle auto = (IAutomatedVehicle) notAuto;\r\n//\t\t\tif (auto.getFuel().equals(fuel)) {\r\n//\t\t\t\tallVehiclesOfFuelType.add(auto);\r\n//\t\t\t}\r\n//\t\t}\r\n//\r\n//\t\tfor (INonAutomatedVehicle notAuto : this.vehicleDatabase.get(MOTORCYCLE)) {\r\n//\t\t\tIAutomatedVehicle auto = (IAutomatedVehicle) notAuto;\r\n//\t\t\tif (auto.getFuel().equals(fuel)) {\r\n//\t\t\t\tallVehiclesOfFuelType.add(auto);\r\n//\t\t\t}\r\n//\t\t}\r\n\r\n\t\tList<INonAutomatedVehicle> nonAuto = new ArrayList<>();\r\n\t\tnonAuto.addAll(this.vehicleDatabase.get(CAR));\r\n\t\tnonAuto.addAll(this.vehicleDatabase.get(MOTORCYCLE));\r\n\t\tfor (INonAutomatedVehicle nonVehicle : nonAuto) {\r\n\t\t\tIAutomatedVehicle auto = (IAutomatedVehicle) nonVehicle;\r\n\t\t\tif (auto.getFuel().equals(fuel)) {\r\n\t\t\t\tallVehiclesOfFuelType.add(auto);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn allVehiclesOfFuelType;\r\n\t}", "private ApiReturnModel getBookingsOnclinic(Clinic clinic,String date) {\n\t\tlogger.debug(\"In get bookings on clinic\");\r\n\t\tUtils utils=new Utils();\r\n\t\tApiReturnModel returnModel = null;\r\n\t\tList<BookingModel> bookings=null;\r\n\t\t\r\n\t\tif(date!=null){\r\n\t\t\tDate bookingByDate=utils.convertStringToDateOnly(date);\r\n\t\t\tbookings = contentDao.findBookingsOnClinic(clinic,utils.convertStringToDateOnly(bookingByDate));\r\n\t\t}else\r\n\t\t\tbookings = contentDao.findBookingsOnClinic(clinic);\r\n\t\t// User user=userDao.findByid(Integer.parseInt(userId));\r\n\t\treturnModel=commonReturnBookingModel(bookings);\r\n\t\treturn returnModel;\r\n\t}", "@GET\n\t@Path(\"/carrocerias\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<CarroceriaDTO> listarCarrocerias(){\n\t\tSystem.out.println(\"ini: listarCarrocerias()\");\n\t\t\n\t\tCarroceriaService tipotService = new CarroceriaService();\n\t\tArrayList<CarroceriaDTO> lista = tipotService.ListadoCarroceria();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarCarrocerias()\");\n\t\t\n\t\treturn lista;\n\t}", "public Map<FruitType, List<Fruit>> groupByTypeConcrrently() {\n\t\treturn fruits.parallelStream().collect(Collectors.groupingByConcurrent(Fruit::getType));\n\t}", "public ArrayList getDataforVol_EurGbp(String date1){\n \n //Date date;\n List stPrices = new ArrayList();\n String sqlQuery = \"SELECT close_price FROM eur_gbp\"\n + \"WHERE day_date <'\"+ date1 +\"' AND \"\n + \"day_date >= DATE_SUB('\" +date1 +\"',INTERVAL 30 DAY);\";\n try {\n rs = dbCon.getData(sqlQuery);\n \n while (rs.next()) {\n stPrices.add(rs.getString(\"close_price\"));\n } \n } catch(SQLException e){} \n return (ArrayList) stPrices; \n }", "@WebMethod public ArrayList<Event> getEvents(LocalDate date);", "public List<ICase> searchCases(Date date, int id) {\n List<ICase> cases = new ArrayList<>();\n for (ICase aCase : allCases) {\n if (aCase.getCreationDate().equals(calendar.formatToString(date)) && aCase.getCaseNumber() == id) {\n cases.add(aCase);\n }\n }\n return cases;\n }", "public ReactorResult<java.util.Calendar> getAllDate_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), DATE, java.util.Calendar.class);\r\n\t}", "@Override\r\n\tpublic List<Resource> getAllResources(String category, String type) {\r\n\t\tList<Resource> getAll = resourceDao.findByCategoryAndType(category, type);\r\n\t\tlogger.info(\"Resources fetched by category: \" + category + \" and type: \" + type);\r\n\t\treturn getAll;\r\n\t}", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "@Override\n\t@Transactional\n\tpublic List<CategoryCar> getCategoryCarList() {\n\t\treturn categoryCarDAO.getCategoryCarList();\n\t}", "private static List<Car> getCarsByCriteria(Iterable<Car> iter, CarCriteria criteria) {\n List<Car> returnCars = new ArrayList<>();\n\n for (Car c : iter) {\n\n //Passing the criteria based on the users input\n if (criteria.test(c)) {\n returnCars.add(c);\n }\n }\n return returnCars;\n }", "@Override\n\tpublic List<MyFoodDTO> findDate(String mf_date) {\n\t\treturn null;\n\t}", "public int availableCars(String type) {\r\n\t\tString typeCar = type.trim().toLowerCase();\r\n\t\tint count = 0;\r\n\r\n\t\tif (typeCar.equals(\"small\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.SMALL) && !car.isCarRented()) {\r\n\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (typeCar.equals(\"large\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.LARGE) && !car.isCarRented()) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Type of car has been entered incorrectly. Needs to be 'small' or 'large'\");\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\t}", "@GetMapping(\"/age-group-types\")\n @Timed\n public List<AgeGroupType> getAllAgeGroupTypes() {\n log.debug(\"REST request to get all AgeGroupTypes\");\n List<AgeGroupType> ageGroupTypes = ageGroupTypeRepository.findAll();\n return ageGroupTypes;\n }", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public interface CarService {\n //查询可预约车辆\n public String queryCars(CookieStore cookies);\n\n //查询可预约车辆 指定日期\n public String queryCarsByDate(CookieStore cookies,String date);\n\n //查询可预约车辆 指定时间 上午812 下午15\n public String queryCars(CookieStore cookies,String date,String time);\n\n public String queryCars(CookieStore cookies,BookCarBean bcb);\n\n public List<String> getCarList(String json);\n //预约车辆\n public String bookCars(CookieStore cookies);\n\n public String bookCars(CookieStore cookies,BookCarBean bcb);\n\n}", "public List<PopularServicesVO> getPopularServicesByBuyerType(int buyerTypeId) throws DataServiceException;", "public void getOrdersByDate() throws FlooringDaoException {\n boolean validDate = true;\n do {\n try {\n String date = view.getOrdersDate();\n List<Order> ordersByDate = new ArrayList<>();\n ordersByDate = service.getOrdersByDate(date);\n validDate = true;\n view.displayOrdersByDate(ordersByDate);\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDate = false;\n }\n } while (!validDate);\n }", "public List<ICase> searchCases(Date date, String CPR) {\n List<ICase> cases = new ArrayList<>();\n for (ICase aCase : allCases) {\n if (aCase.getCreationDate().equals(calendar.formatToString(date)) && aCase.getCPR().equals(CPR)) {\n cases.add(aCase);\n }\n }\n return cases;\n }", "List<RocketDTO> findAllRockets();", "public ArrayList<Event> getAllEventsFromDate(Calendar date)\r\n\t{\r\n\t\tArrayList<Event> eventsList = new ArrayList<Event>();\r\n\t\t\r\n\t\tfor(Event event : this.getAllEvents() )\r\n\t\t{\t\t\t\r\n\t\t\tif (event.getCalendar().get(Calendar.YEAR) == date.get(Calendar.YEAR) && \r\n\t\t\t\tevent.getCalendar().get(Calendar.MONTH)\t== date.get(Calendar.MONTH) && \r\n\t\t\t\tevent.getCalendar().get(Calendar.DATE) == date.get(Calendar.DATE))\r\n\t\t\t{\r\n\t\t\t\teventsList.add(event);\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn eventsList;\r\n\t}", "public static void carlist() {\n Cars xx = new Cars();\n System.out.println(\"You have \" + String.valueOf(listcars.size())+ \" cars\");\n System.out.println(\"List of all your cars \");\n for (int i = 0; i < listcars.size();i++) {\n xx = listcars.get(i);\n System.out.println(xx.getBrand()+ \" \"+ xx.getModel()+ \" \"+ xx.getReference()+ \" \"+ xx.getYear()+ \" \");\n }\n }", "@Override\n public List<Order> getAllOrders(String date) throws FlooringMasteryPersistenceException {\n \n Map<Integer, Order> hm = ordersByDate.get(date); // get the hashmap by the date\n\n return new ArrayList<>(hm.values()); // get and return the list of orders from the <Integer, Order> hashmap\n \n }", "@Override\n @Transactional(readOnly = true)\n public List<CatCarburantDTO> findAll() {\n log.debug(\"Request to get all CatCarburants\");\n return catCarburantRepository.findAll().stream()\n .map(catCarburantMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public ArrayList<Vehicle> get(LocalDate from,LocalDate to) {\n return vehicles;\n }", "private static void populateList(List<UsedCar> carList) {\n carList.add(new UsedCar(\"Ford\", \"Fiesta ST\", 2016, 25000.00));\n carList.add(new UsedCar(\"Ford\", \"Focus RS\", 2017, 40000.00));\n carList.add(new UsedCar(\"Ariel\", \"Atom\", 2018, 65000.00));\n carList.add(new UsedCar(\"Ford\", \"Pinto\", 1985, 1.00, 500.1));\n carList.add(new UsedCar(\"DMC\", \"DeLorean\", 1985, 20000.00, 50.0));\n carList.add(new UsedCar(\"Lamborghini\", \"Spyder\", 2006, 95995.00, 42.4));\n }", "public ArrayList<Seance> getSeances(String date){\n ArrayList<Seance> seancesDate = new ArrayList();\n for(Seance s : seances){\n if(s.getDate().toString().equals(date)){\n seancesDate.add(s);\n }\n }\n return seancesDate;\n }", "public void searchAvailabilityType(Connection connection, String hotel_name, int branchID, String type, LocalDate from, LocalDate to) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT num_avail, price FROM Information WHERE hotel_name = ? AND branch_ID = ? AND type >= ? AND date_from <= to_date(?, 'YYYY-MM-DD') AND date_to = to_date(?, 'YYYY-MM-DD')\";\n\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n setType(type);\n pStmt.setString(3, getType());\n pStmt.setString(4, from.toString());\n pStmt.setString(5, to.toString());\n\n try {\n\n System.out.printf(\" Availabilities for %S type at %S, branch ID (%d): \\n\", getType(), getHotelName(), getBranchID());\n System.out.printf(\" Date Listing: \" + String.valueOf(from) + \" TO \" + String.valueOf(to) + \"\\n\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while(rs.next()) {\n System.out.println(rs.getInt(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "@Override\n public List<Vehicle> getVehiclesByMake(String make){\n List<VehicleDetails> results = repo.findByMake(make);\n return mapper.mapAsList(results, Vehicle.class);\n }", "public ArrayList<Menu> buscarPorFecha(Date fechaIni,Date fechaTer );", "public List<Zadania> getAllTaskByDate(String date){\n String startDate = \"'\"+date+\" 00:00:00'\";\n String endDate = \"'\"+date+\" 23:59:59'\";\n\n List<Zadania> zadanias = new ArrayList<Zadania>();\n String selectQuery = \"SELECT * FROM \" + TABLE_NAME + \" WHERE \"+TASK_DATE+\" BETWEEN \"+startDate+\" AND \"+endDate+\" ORDER BY \"+TASK_DATE+\" ASC\";\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()){\n do {\n Zadania zadania = new Zadania();\n zadania.setId(cursor.getInt(cursor.getColumnIndex(_ID)));\n zadania.setAction(cursor.getInt(cursor.getColumnIndex(KEY_ACTION)));\n zadania.setDesc(cursor.getString(cursor.getColumnIndex(TASK_DESC)));\n zadania.setDate(cursor.getString(cursor.getColumnIndex(TASK_DATE)));\n zadania.setBackColor(cursor.getString(cursor.getColumnIndex(BACK_COLOR)));\n zadanias.add(zadania);\n } while (cursor.moveToNext());\n }\n return zadanias;\n }", "public ArrayList<Course> getCoursesAreActiveIn(LocalDate date){\n ArrayList<Course> allCourses = new ArrayList();\n String statement = GET_COURSES_ARE_ACTIVE_IN;\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object) date,(Object) date});\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getCoursesAreActiveIn()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n return allCourses;\n }", "@Override\n public List<LocalDate> getAvailableDatesForService(final com.wellybean.gersgarage.model.Service service) {\n // Final list\n List<LocalDate> listAvailableDates = new ArrayList<>();\n\n // Variables for loop\n LocalDate tomorrow = LocalDate.now().plusDays(1);\n LocalDate threeMonthsFromTomorrow = tomorrow.plusMonths(3);\n\n // Loop to check for available dates in next three months\n for(LocalDate date = tomorrow; date.isBefore(threeMonthsFromTomorrow); date = date.plusDays(1)) {\n // Pulls bookings for specific date\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n /* If there are bookings for that date, check for time availability for service,\n if not booking then date available */\n if(optionalBookingList.isPresent()) {\n if(getAvailableTimesForServiceAndDate(service, date).size() > 0) {\n listAvailableDates.add(date);\n }\n } else {\n listAvailableDates.add(date);\n }\n }\n return listAvailableDates;\n }", "public interface CarService {\n LsResponse add(Car car,String endTime,Associator associator);\n LsResponse update(Car car);\n\n LsResponse getCarList(Associator associator,Integer pageNum,Integer pageSize,String endTime);\n\n LsResponse removeAll(Associator associator);\n\n LsResponse deleteCar(List<Car> cars, Associator associator,Integer time);\n\n LsResponse seeCarOrder(List<Car> cars);\n\n List<List<Car>> getCarsByType(List<Car> cares, Canteen canteen);\n}", "public VehicleSearchRS getVehicles() {\r\n\t\tVehicleSearchRS response = null;\r\n\t\t//VehicleSearchService vehiclesearch = new VehicleSearchService();\r\n\t\t\r\n\t\t///Suppliers are useful when we donít need to supply any value and obtain a result at the same time.\r\n\t\tSupplier<VehicleSearchService> vehiclesearch = VehicleSearchService::new;\r\n\t\ttry {\r\n\t\t\tresponse = vehiclesearch.get().getVehicles(searchRQ);\r\n\t\t\t//System.out.println(response);\r\n\t\t} catch (VehicleValidationException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public List<VehicleVO> getCarList() {\n return carList;\n }", "public ArrayList<DateAndCount> ShowDateAndCount(){\n SQLiteDatabase db = this.getReadableDatabase();\n// Cursor cursor = db.rawQuery(showDateAndCountQuery, null);\n Cursor cursor = db.query(TABLE_CLOTHES, new String[]{COLUMN_ID, COLUMN_CLOTHES_DATE,\n COLUMN_CLOTHES_SHIRTS + \" + \" +COLUMN_CLOTHES_PANTS + \" + \" +COLUMN_CLOTHES_INNERS + \" AS \" +\n COLUMN_CLOTHES_COUNT}, null, null, null, null, null);\n\n ArrayList<DateAndCount> dateAndCount = new ArrayList<>();\n if(cursor.moveToFirst()) {\n do {\n DateAndCount dateAndCount1 = new DateAndCount();\n dateAndCount1.setDate(cursor.getString(1));\n dateAndCount1.setCount(cursor.getInt(2));\n dateAndCount.add(dateAndCount1);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n return dateAndCount;\n }", "public ArrayList<PatientHealthContract> getHealthListByDate(String date) {\n SQLiteDatabase db = helper.getReadableDatabase();\n String selectQuery = \"SELECT \" +\n PatientHealthEntry.COLUMN_AGE + \",\" +\n PatientHealthEntry.COLUMN_EMAIL + \",\" +\n PatientHealthEntry.COLUMN_BLOOD_GROUP + \",\" +\n PatientHealthEntry.COLUMN_MEDICATION + \",\" +\n PatientHealthEntry.COLUMN_CONDITION + \",\" +\n PatientHealthEntry.COLUMN_NOTES + \",\" +\n PatientHealthEntry.COLUMN_DATE_OF_VISIT +\n \" FROM \" + PatientHealthEntry.TABLE_NAME +\n \" WHERE \" + PatientHealthEntry.COLUMN_DATE_OF_VISIT + \" = \" + \"'\" + date + \"'\" + \";\";\n\n //PatientHealthEntry patient = new PatientHealthEntry();\n ArrayList<PatientHealthContract> healthList = new ArrayList<>();\n\n Cursor cursor = db.rawQuery(selectQuery, null);\n // looping through all rows and adding to list\n\n if (cursor.moveToFirst()) {\n do {\n PatientHealthContract patient = new PatientHealthContract();\n patient.setAge(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_AGE)));\n patient.setBloodGroup(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_BLOOD_GROUP)));\n patient.setCondition(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_CONDITION)));\n patient.setMedication(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_MEDICATION)));\n patient.setNotes(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_NOTES)));\n patient.setDateVisit(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_DATE_OF_VISIT)));\n patient.setEmail(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_EMAIL)));\n healthList.add(patient);\n\n } while (cursor.moveToNext());\n }\n\n cursor.close();\n db.close();\n return healthList;\n }", "void getSearchSeasonData();" ]
[ "0.60764605", "0.58725363", "0.5752941", "0.5737054", "0.56120557", "0.5543971", "0.55229", "0.54551065", "0.54077774", "0.5385285", "0.5360839", "0.5342096", "0.5331239", "0.52888703", "0.52792525", "0.5255336", "0.52515894", "0.5241901", "0.52404714", "0.5240017", "0.52397627", "0.52139956", "0.51848394", "0.51554066", "0.5131881", "0.51243526", "0.5109159", "0.5094914", "0.50834984", "0.5072978", "0.5064016", "0.5043163", "0.50425875", "0.50306875", "0.50168085", "0.4977241", "0.49655718", "0.49642512", "0.49525052", "0.49360055", "0.4919039", "0.4915109", "0.49130857", "0.4901902", "0.48933205", "0.48885205", "0.48867768", "0.48770708", "0.48765832", "0.48704982", "0.48680663", "0.4866211", "0.4842066", "0.4837869", "0.4824996", "0.48173183", "0.48139665", "0.48126376", "0.4812198", "0.48084235", "0.480834", "0.48066133", "0.47910833", "0.4777107", "0.47731638", "0.4771301", "0.47658563", "0.47608003", "0.4760457", "0.4748996", "0.47345358", "0.4732197", "0.47284955", "0.47271752", "0.47210544", "0.47171524", "0.47150776", "0.47133142", "0.4705933", "0.4701221", "0.4699729", "0.46985134", "0.4695812", "0.46819106", "0.4679934", "0.46786213", "0.46779576", "0.46735343", "0.46668866", "0.46630964", "0.4652614", "0.46525034", "0.4651878", "0.46495247", "0.46384874", "0.46354923", "0.46318817", "0.46299773", "0.46212366", "0.46193853" ]
0.7065338
0
This method returns a particular Car by passing the primary key (ID)
public Cars getCarsById(String id) { CarsDao carsDao = CarsDaoImpl.getInstance(); Cars cars = carsDao.getCarById(Integer.parseInt(id)); return cars; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Car getCarById(Integer id){\n\n return this.carCrudInterface.getById(id);\n\n }", "@Override\n\tpublic Carpo findCar(String id) {\n\t\treturn inList.find(id);\n\t}", "public Car findCarById(int id) {\r\n return repository.findById(id).orElse(null);\r\n }", "@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "@Override\n\tpublic Car selectById(int carId) {\n\t\treturn carMapper.selectById(carId);\n\t}", "@Transactional\r\n\tpublic Car getCarById(String id) {\n\t\tOptional<Car> c=cr.findById(id);\r\n\t\tif(!c.isPresent())\r\n\t\t{\r\n\t\t\tthrow new NotFoundRes(\"Car with ID : \"+id+\" does not exist\");\r\n\t\t}\r\n\t\treturn c.get();\r\n\t}", "public abstract CarTO findCarById(Long id);", "@RequestMapping(value = \"/cars/{id}\", method=RequestMethod.GET)\n\tpublic Car getCar(@PathVariable int id) {\n\t\tCar aCar = _carDao.findById(id);\n\t\t\n\t\treturn aCar;\n\t}", "@Override\n\tpublic CarInfoDto findCarById(String carId) {\n\t\t\n\t\treturn chargeCarMapper.selectCarInfoById(carId);\n\t}", "@Override\n\tpublic CarModel getCarDetail(String id) {\n\t\tfor(int i=0; i< archiveCar.size(); i++) {\n\t\t\tCarModel car = archiveCar.get(i);\n\t\t\tif(car.getId().equalsIgnoreCase(id)) {\n\t\t\t\treturn car;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic CarModel selectCar(String id) {\n\t\tfor(int i=0; i < archiveCar.size(); i++) {\n\t\t\tCarModel car = archiveCar.get(i);\n\t\t\tif(car.getId().equals(id)) {\n\t\t\t\treturn car;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Carro getCarro(Long id){\n\t\t\n\t\ttry {\n\t\t\treturn db.getCarroById(id);\n\t\t\t\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic car getByVin(String vinId) {\n\t\t\t\ttry{\n\t\t\t\t\tcar so=carDataRepository.getByVin(vinId);\n\t\t\t\t\t\n\t\t\t\t\treturn so;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t}", "public Carport getCarportById(int id);", "@GetMapping(\"/api/rents/findbycar/{id}\")\r\n public ResponseEntity<List<Rent>> findByCar(@PathVariable(name = \"id\") Long id){\r\n final List<Rent> rent = rentService.findByCarId(id);\r\n return rent != null\r\n ? new ResponseEntity<>(rent, HttpStatus.OK)\r\n : new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Car getChildCarById(Long childCarId){\n\t\tList list = getHibernateTemplate().find(\"FROM Car WHERE statusCd='ACTIVE' AND carId =\" + childCarId );\n\t\tCar car = null;\n\t\tif(list!=null && list.size()>0){\n\t\t\tcar = (Car) list.get(0);\n\t\t}\n\t\treturn car;\n\t}", "T get(PK id);", "public static Car getCarById(int id_user) {\n Car car = null;\n Car[] cars = getAll();\n\n if (cars != null){\n for (Car c : getAll()) {\n if (c.getId_user() == id_user) {\n car = c;\n }\n }\n }\n\n return car;\n }", "Cargo selectByPrimaryKey(Integer idCargo);", "@Override\n\tpublic Contract get(String id) {\n\t\treturn contractDao.findOne(id);\n\t}", "public String getCarid() {\n return carid;\n }", "public Car findCarByName(String name){\r\n return repository.findCarByName(name);\r\n }", "T getById(PK id);", "public java.lang.Long getCarId() {\n return carId;\n }", "public java.lang.Long getCarId() {\n return carId;\n }", "@Override\r\n\tpublic Customer findByKey(int id) throws SQLException {\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \" WHERE (id = ?)\";\r\n\t\tCustomer customer = null;\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t}\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn customer;\r\n\t}", "@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }", "@Override\n public ResultSet getByID(String id) throws SQLException {\n return db.getConnection().createStatement().executeQuery(\"select * from comic where idcomic=\"+id);\n }", "@Override\n\t@Transactional\n\tpublic Optional<DetalleCarrito> findById(Integer id) throws Exception {\n\t\treturn detalleCarritoRepository.findById(id);\n\t}", "public ZyCorporation selectByPrimaryKey(Integer rowid) {\r\n ZyCorporation key = new ZyCorporation();\r\n key.setRowid(rowid);\r\n ZyCorporation record = (ZyCorporation) getSqlMapClientTemplate().queryForObject(\"zy_corporation.selectByPrimaryKey\", key);\r\n return record;\r\n }", "CartDO selectByPrimaryKey(Integer id);", "Contract findById(int id);", "RecipeObject getRecipe(int recipeID);", "@Override\n\tpublic Goods selectById(Integer id) {\n\t\treturn goodsDao.selectById(id);\n\t}", "Card selectByPrimaryKey(String card);", "Book selectByPrimaryKey(String id);", "@Override\n public Vehicle getByVehicleId(Integer id){\n VehicleDetails domain = throwIfNotFound(repo.findById(id));\n \n return mapper.map(domain, Vehicle.class);\n \n }", "@Override\n\tpublic Brand get(int id) {\n\t\t\n \ttry {\n \t\tsql=\"select * from brands where id=?\";\n\t\t\tquery=connection.prepareStatement(sql);\n \t\tquery.setInt(1, id);\n\t\t\t\n\t\t\tResultSet result=query.executeQuery();\n\t\t\tresult.next();\n\t\t\t\n\t\t\tBrand brand=new Brand(result.getInt(\"Id\"),result.getString(\"Name\"));\n\t\t\t\n\t\t\treturn brand;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tnew Exception(e.getMessage());\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "Car findByName(String name);", "Dormitory selectByPrimaryKey(Integer id);", "Clazz selectByPrimaryKey(Integer id);", "Car readCar(String plateNo) throws CarNotFoundException;", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "@Override\n public Vehicle findById(BigDecimal id) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getMatchOperation(\"cars.vehicles._id\", Operation.EQ, id));\n operations.add(getVehicleProjection());\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getUniqueMappedResult();\n }", "O obtener(PK id) throws DAOException;", "Sequipment selectByPrimaryKey(Integer id);", "@Override\n public FasciaOrariaBean doRetrieveByKey(int id) throws SQLException {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria WHERE id=?\";\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n statement.setInt(1, id);\n System.out.println(\"DoRetrieveByKey\" + statement);\n ResultSet rs = statement.executeQuery();\n if (rs.next()) {\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n return bean;\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return null;\n }", "@Override\n @Transactional(readOnly = true)\n public CatCarburantDTO findOne(Long id) {\n log.debug(\"Request to get CatCarburant : {}\", id);\n CatCarburant catCarburant = catCarburantRepository.findOne(id);\n return catCarburantMapper.toDto(catCarburant);\n }", "public Conge find( Integer idConge ) ;", "protected int queryPrice(int id, String key) {\n Trace.info(\"RM::queryCarsPrice(\" + id + \", \" + key + \") called\" );\n ReservableItem curObj = (ReservableItem) readData( id, key);\n int value = 0; \n if ( curObj != null ) {\n value = curObj.getPrice();\n } // else\n Trace.info(\"RM::queryCarsPrice(\" + id + \", \" + key + \") returns cost=$\" + value );\n return value; \n }", "Dish selectByPrimaryKey(String id);", "Computer selectByPrimaryKey(Long id);", "public abstract T byId(ID id);", "Owner selectByPrimaryKey(String id);", "D getById(K id);", "public Company findCompany(long id);", "Corretor findOne(Long id);", "CityDO selectByPrimaryKey(Integer id);", "RiceCooker getById(long id);", "Price find(Object id);", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "Caiwu selectByPrimaryKey(Integer id);", "public static Carro consutarPorId(int Id) throws ClassNotFoundException, SQLException {\n\t\treturn CarroDAO.consultarPorId(Id);\n\t}", "@Override\n\tpublic Product getById(int id) throws SQLException {\n\t\treturn productDao.getById(id);\n\t}", "public CustomerPurchase getById(Integer id) throws SQLException;", "TCpySpouse selectByPrimaryKey(Integer id);", "public Product get(String id);", "MVoucherDTO selectByPrimaryKey(String id);", "public Product findById(int id) {\n\t\tProduct p = null;\n\t\ttry (Connection c = JdbcUtil.getConnection()) {\n\t\t\tPreparedStatement s = c.prepareStatement(\"select * from product where product_id=?\");\n\t\t\ts.setInt(1, id);\n\t\t\tResultSet rs = s.executeQuery(); // 0 or 1 row as primary key is compared here\n\t\t\tif (rs.next()) {// rs.next() : moves cursor to first row\n\t\t\t\tp = mapRow(rs);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn p;\n\t}", "public abstract Company get(int id);", "public abstract T findOne(int id);", "@Test\n\tpublic void test_givenCar_whenFindCarById_thenReturnCarById() {\n\t\t// given or arrange\n\n\t\tMockito.when(mockCarRepository.findById(ID)).thenReturn(Optional.of(new Car() {\n\t\t\t{\n\t\t\t\tsetId(ID);\n\t\t\t}\n\t\t}));\n\t\t// when or act\n\t\tCarServiceModel carFount = carServiceWithMockedRepository.findCarById(ID);\n\n\t\t// then or assert\n\t\tassertEquals(ID, carFount.getId());\n\n\t}", "BookInfo selectByPrimaryKey(Integer id);", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\treturn theCustomer;\n\t}", "public Data findById(Object id);", "Product selectByPrimaryKey(Integer id);", "PrhFree selectByPrimaryKey(Integer id);", "@Override\n\tpublic Marca obtener(int id) {\n\t\treturn marcadao.obtener(id);\n\t}", "SpecialCircumstance selectByPrimaryKey(Long id);", "Prueba selectByPrimaryKey(Integer id);", "Book getBookById(Integer id);", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\n\t\treturn theCustomer;\n\t}", "@Override\n\tpublic DvdCd getById(Integer id) {\n\t\tlogger.info(\"Buscando DVD/CD por ID \"+id);\n\t\tOptional<DvdCd> obj = itemRepository.findById(id);\n\t\tif (!obj.isPresent()) {\n\t\t\tlogger.error(\"DvdCd nao encontrado, \"+DvdCdServiceImpl.class);\n\t\t\tthrow new ObjectNotFoundException(\"DvdCd nao encontrado, id: \"+id);\n\t\t}\n\t\t\n\t\treturn obj.get();\n\t}", "AccessModelEntity selectByPrimaryKey(String id);", "@Override\n public Pessoa buscar(int id) {\n try {\n for (Pessoa p : pessoa.getPessoas()){\n if(p.getCodPessoa()== id){\n return p;\n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AnimalDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "@Override\n\tpublic Stock Find(Integer id) {\n\t\tStock stock = _stockDao.selectByPrimaryKey(id);\n\t\tif (stock == null) {\n\t\t\treturn new Stock();\n\t\t}\n\t\treturn stock;\n\t}", "@Override\n\tpublic Contract selectByPrimaryKey(Integer contractId) {\n\t\treturn contractMapper.selectByPrimaryKey(contractId);\n\t}", "Club getOne(Integer idClub);", "public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }", "@Override\n\tpublic Cat getById(Integer id) {\n\t\tOptional<Cat> cat = catRepository.findById(id);\n\t\tif(cat.isPresent()) {\n\t\t\treturn cat.get();\n\t\t} else {\n\t\t\tthrow new CatNotFoundException();\n\t\t}\n\t}", "@Override\n Optional<Complaint> findById(Integer id);", "@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\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\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }", "public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "public Car exampleAccessToYourData(String key) {\n // When you recover your value, you directly recover your value and not a DacasElement.\n // Cast your recovered data, that's all.\n return (Car) DacasTransaction.get(key);\n }", "Model selectByPrimaryKey(Integer id);", "@Override\n public CartEntity getById(int id) {\n return entityManager.find(CartEntity.class,id);\n }", "public BankThing retrieve(String id);", "@Transactional(readOnly = true)\n public Result getVehicle(int vehicleId)\n {\n TypedQuery<VehicleDetail> query = db.em().\n createQuery(\"SELECT NEW VehicleDetail(v.vehicleId, v.VIN, v.vehicleYear, v.nickname, m.makeId, m.makeName, mo.modelId, mo.modelName, s.submodelId, s.submodelName, v.tradedForVehicleId, v2.nickname, s2.submodelName, v2.vehicleYear, mo2.modelName) \" +\n \"FROM Vehicle v JOIN Model mo ON v.modelId = mo.modelId \" +\n \"LEFT JOIN Submodel s ON v.submodelId = s.submodelId \" +\n \"JOIN Make m ON m.makeId = mo.makeId \" +\n \"LEFT JOIN Vehicle v2 ON v.tradedForVehicleId = v2.vehicleId \" +\n \"LEFT JOIN Model mo2 ON v2.modelId = mo2.modelId \" +\n \"LEFT JOIN Submodel s2 ON v2.submodelId = s2.submodelId \" +\n \"LEFT JOIN Make m2 ON m2.makeId = mo2.makeId \" +\n \"WHERE v.vehicleId = :vehicleId\", VehicleDetail.class);\n query.setParameter(\"vehicleId\", vehicleId);\n VehicleDetail vehicle = query.getSingleResult();\n\n return ok(views.html.vehicle.render(vehicle));\n }", "public Contract getContract(int contractID) {\r\n\r\n\t\ttry {\r\n\t\t\treturn em.find(Contract.class, contractID);\r\n\t\t} catch (PersistenceException e) {\r\n\t\t\tthrow new TechnicalException(\r\n\t\t\t\t\t\"Technical Exception in ContractDaoImpl.getContract()\",\r\n\t\t\t\t\te);\r\n\t\t}\r\n\t}" ]
[ "0.83404523", "0.79548496", "0.79349196", "0.7912924", "0.77693564", "0.774372", "0.7683439", "0.74481803", "0.7284615", "0.7202572", "0.7180293", "0.71168953", "0.70979846", "0.70829695", "0.69255567", "0.6894157", "0.6692879", "0.6643615", "0.66395766", "0.6602827", "0.6592866", "0.65736103", "0.654298", "0.6524436", "0.64864624", "0.64491767", "0.6412015", "0.64105076", "0.64073867", "0.63687384", "0.63525367", "0.63520926", "0.6332811", "0.63308966", "0.6319131", "0.6308621", "0.6281953", "0.6268465", "0.62580657", "0.62545335", "0.6253283", "0.6250849", "0.62470484", "0.6242673", "0.6234905", "0.6199514", "0.61868805", "0.6184408", "0.6184004", "0.61836284", "0.6181147", "0.61801445", "0.61733806", "0.61667556", "0.61640257", "0.6163907", "0.6158928", "0.61494905", "0.6147019", "0.6127836", "0.61276525", "0.61039", "0.61004674", "0.6098395", "0.6085523", "0.6084886", "0.60807323", "0.6079045", "0.60789037", "0.60746765", "0.60726887", "0.60718656", "0.60672086", "0.606618", "0.60562503", "0.605615", "0.60560375", "0.6055941", "0.6048998", "0.60488665", "0.6045722", "0.6045444", "0.60374206", "0.6028811", "0.60275096", "0.6027351", "0.6027239", "0.60268307", "0.6024693", "0.6019761", "0.601968", "0.6017036", "0.601601", "0.6009508", "0.60067713", "0.6006449", "0.6005364", "0.60034835", "0.6000072", "0.5998097" ]
0.6819371
16
/ Common JUnit 4 Annotations
@BeforeClass // runs before all test cases; runs only once public static void setUpSuite() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n @TestLog(title = \"Test3\", id = \"444\")\n public void test3() {\n }", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "@Test\n\tpublic void test4() {\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotated_cf3_cf206_failAssert34() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_2 = (java.lang.Object)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_2;\n // AssertGenerator replace invocation\n boolean o_annotated_cf3__13 = // StatementAdderMethod cloned existing statement\n annotated.equals(vc_2);\n // MethodAssertGenerator build local variable\n Object o_17_0 = o_annotated_cf3__13;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_110 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_108 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_106 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_106.get(vc_108, vc_110);\n // MethodAssertGenerator build local variable\n Object o_27_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf3_cf206 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@Test\n public void a1a6() {\n }", "@Test\n\tpublic void something() {\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotated_cf14_cf552_failAssert16() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // AssertGenerator replace invocation\n boolean o_annotated_cf14__11 = // StatementAdderMethod cloned existing statement\n annotated.isPrimitive();\n // MethodAssertGenerator build local variable\n Object o_13_0 = o_annotated_cf14__11;\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_264 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_262 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_260 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_260.get(vc_262, vc_264);\n // MethodAssertGenerator build local variable\n Object o_23_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf14_cf552 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16511_failAssert32_literalMutation18178_cf19554_failAssert7() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.langx.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.util.List<com.squareup.javapoet.AnnotationSpec> vc_7188 = (java.util.List)null;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_8534 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_8532 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_8532, vc_8534);\n // MethodAssertGenerator build local variable\n Object o_22_0 = vc_7188;\n // StatementAdderMethod cloned existing statement\n type.concatAnnotations(vc_7188);\n org.junit.Assert.fail(\"annotatedTwice_cf16511 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedTwice_cf16511_failAssert32_literalMutation18178_cf19554 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotated_cf70_failAssert16() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_48 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_46 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_44 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_44.get(vc_46, vc_48);\n // MethodAssertGenerator build local variable\n Object o_19_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf70 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotated_cf83_failAssert19() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderMethod cloned existing statement\n annotated.unbox();\n // MethodAssertGenerator build local variable\n Object o_13_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf83 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@Test\n public void someTest() {\n }", "@Test\n public void simpleUse(){\n }", "@org.junit.Test(timeout = 10000)\n public void annotated_cf46_failAssert10() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_32 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_30 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_30.get(vc_32);\n // MethodAssertGenerator build local variable\n Object o_17_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf46 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotated_cf66_failAssert15() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_42 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n simpleString.get(vc_42);\n // MethodAssertGenerator build local variable\n Object o_15_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf66 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16481_failAssert23() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_7170 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_7170);\n org.junit.Assert.fail(\"annotatedTwice_cf16481 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Ignore\n @Test\n public void discoverSeveralTypes() throws Exception {\n }", "public void testDumbJUnit() {\n }", "@Test\r\n public void testCompareMovies() {\r\n // Not required\r\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16507_cf17615_failAssert46() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // AssertGenerator replace invocation\n java.lang.String o_annotatedTwice_cf16507__10 = // StatementAdderMethod cloned existing statement\n type.toString();\n // MethodAssertGenerator build local variable\n Object o_12_0 = o_annotatedTwice_cf16507__10;\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_7680 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_7678 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_7676 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_7676.get(vc_7678, vc_7680);\n org.junit.Assert.fail(\"annotatedTwice_cf16507_cf17615 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n public void doTest4() {\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21192_failAssert20_add22488_cf25319_failAssert10() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_9254 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_11_0 = vc_9254;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_9252 = (java.lang.reflect.Type)null;\n // StatementAddOnAssert local variable replacement\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // StatementAdderMethod cloned existing statement\n simpleString.unbox();\n // MethodAssertGenerator build local variable\n Object o_20_0 = vc_9252;\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n type.get(vc_9252, vc_9254);\n // StatementAdderMethod cloned existing statement\n type.get(vc_9252, vc_9254);\n org.junit.Assert.fail(\"annotatedType_cf21192 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedType_cf21192_failAssert20_add22488_cf25319 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21188_failAssert19_add22480() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_9254 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9254);\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_9252 = (java.lang.reflect.Type)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9252);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_9250 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9250);\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n vc_9250.get(vc_9252, vc_9254);\n // StatementAdderMethod cloned existing statement\n vc_9250.get(vc_9252, vc_9254);\n org.junit.Assert.fail(\"annotatedType_cf21188 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test\n public void setName() {\n }", "@Test\n public void aa(){\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16463_failAssert19() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_7160 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_7160);\n org.junit.Assert.fail(\"annotatedTwice_cf16463 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16498_failAssert27() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedTwice_cf16498 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@Test\r\n @Ignore\r\n public void testRun() {\r\n }", "@Test\n\tvoid test() {\n\t\t\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8805_failAssert15_literalMutation10212_cf14321_failAssert18() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"o\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<java.lang.String>\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.List<com.squareup.javapoet.AnnotationSpec> vc_3696 = (java.util.List)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_3696;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_3694 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n type.unbox();\n // MethodAssertGenerator build local variable\n Object o_19_0 = vc_3694;\n // StatementAdderMethod cloned existing statement\n vc_3694.annotated(vc_3696);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8805 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8805_failAssert15_literalMutation10212_cf14321 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@Test\r\n public void test1() {\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotated_cf89_cf663_failAssert5() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_13_1 = 1362420326;\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // MethodAssertGenerator build local variable\n Object o_3_0 = simpleString.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_5_0 = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n // MethodAssertGenerator build local variable\n Object o_9_0 = annotated.isAnnotated();\n // AssertGenerator replace invocation\n int o_annotated_cf89__11 = // StatementAdderMethod cloned existing statement\n annotated.hashCode();\n // MethodAssertGenerator build local variable\n Object o_13_0 = o_annotated_cf89__11;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_330 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_328 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_328.get(vc_330);\n // MethodAssertGenerator build local variable\n Object o_21_0 = annotated.annotated();\n org.junit.Assert.fail(\"annotated_cf89_cf663 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16507_cf17593_failAssert6() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // AssertGenerator replace invocation\n java.lang.String o_annotatedTwice_cf16507__10 = // StatementAdderMethod cloned existing statement\n type.toString();\n // MethodAssertGenerator build local variable\n Object o_12_0 = o_annotatedTwice_cf16507__10;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_7664 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_7664);\n org.junit.Assert.fail(\"annotatedTwice_cf16507_cf17593 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8823_failAssert20_literalMutation10254_cf15787_failAssert4() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List0java.lang.String>\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_3710 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_3710;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_3708 = (java.lang.reflect.Type)null;\n // MethodAssertGenerator build local variable\n Object o_17_0 = vc_3708;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_3706 = (com.squareup.javapoet.TypeName)null;\n // StatementAddOnAssert local variable replacement\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // StatementAdderMethod cloned existing statement\n simpleString.unbox();\n // MethodAssertGenerator build local variable\n Object o_26_0 = vc_3706;\n // StatementAdderMethod cloned existing statement\n vc_3706.get(vc_3708, vc_3710);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8823 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8823_failAssert20_literalMutation10254_cf15787 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@Test\n public void test() {\n }", "@Test\n\tpublic void test() {\n\t}", "@Test\n\tpublic void test() {\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21206_failAssert23() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_9264 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_9262 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_9260 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_9260.get(vc_9262, vc_9264);\n org.junit.Assert.fail(\"annotatedType_cf21206 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n public void placeholderTest() {\n\n }", "@Test\n public void test() {\n }", "@Test\n public void test() {\n }", "@Test\npublic void TC11(){\n\n}", "@Test public void test(){\n }", "@Test\n public void testBeer() {\n // TODO: test Beer\n }", "@Test\n public void testStuff() {\n\n assertTrue(true);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28045_failAssert31_literalMutation29460_cf33137_failAssert3() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extens @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_12438 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_14798 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_14796 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_14794 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_14794.get(vc_14796, vc_14798);\n // MethodAssertGenerator build local variable\n Object o_22_0 = vc_12438;\n // StatementAdderMethod cloned existing statement\n vc_12438.hashCode();\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28045 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28045_failAssert31_literalMutation29460_cf33137 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@Test\n public void test3(){\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithSuper_cf36434_failAssert25_add37802_cf43349_failAssert4() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? super @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.supertypeOf(type).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_16170 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n type.unbox();\n // MethodAssertGenerator build local variable\n Object o_14_0 = vc_16170;\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n type.get(vc_16170);\n // StatementAdderMethod cloned existing statement\n type.get(vc_16170);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithSuper_cf36434 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithSuper_cf36434_failAssert25_add37802_cf43349 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf924_cf1605_failAssert31() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf924__10 = // StatementAdderMethod cloned existing statement\n type.isAnnotated();\n // MethodAssertGenerator build local variable\n Object o_12_0 = o_annotatedArgumentOfParameterizedType_cf924__10;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_680 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_678 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_678.get(vc_680);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf924_cf1605 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4166_failAssert15() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"HUZo@XT$QA3=&:J/N_\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_470 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_16_0 = vc_470;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_468 = (java.lang.reflect.Type)null;\n // MethodAssertGenerator build local variable\n Object o_20_0 = vc_468;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_466 = (com.squareup.javapoet.TypeName)null;\n // StatementAddOnAssert local variable replacement\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // StatementAdderMethod cloned existing statement\n simpleString.unbox();\n // MethodAssertGenerator build local variable\n Object o_29_0 = vc_466;\n // StatementAdderMethod cloned existing statement\n vc_466.get(vc_468, vc_470);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4166 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21206_failAssert23_literalMutation22513_cf23139_failAssert8() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_9264 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_9264;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_9262 = (javax.lang.model.type.TypeMirror)null;\n // MethodAssertGenerator build local variable\n Object o_17_0 = vc_9262;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_9260 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_10112 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_10110 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_10110.get(vc_10112);\n // MethodAssertGenerator build local variable\n Object o_27_0 = vc_9260;\n // StatementAdderMethod cloned existing statement\n vc_9260.get(vc_9262, vc_9264);\n org.junit.Assert.fail(\"annotatedType_cf21206 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedType_cf21206_failAssert23_literalMutation22513_cf23139 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "@Test\n void setDescription() {\n }", "@BeforeClass\n\tpublic void setup() {\n\t\tSystem.out.println(\"Before Class Annotation\");\n\t}", "@Test\n public void testSomeMethod() {\n }", "@Test\n public void testSomeMethod() {\n }", "@BeforeAll\n public static void beforeClass() {\n scanResult = new ClassGraph()\n .acceptPackages(RetentionPolicyForFunctionParameterAnnotationsTest.class.getPackage().getName())\n .enableAllInfo().scan();\n classInfo = scanResult.getClassInfo(RetentionPolicyForFunctionParameterAnnotationsTest.class.getName());\n }", "@org.junit.Test(timeout = 10000)\n public void annotated_cf3() {\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n org.junit.Assert.assertFalse(simpleString.isAnnotated());\n org.junit.Assert.assertEquals(simpleString, com.squareup.javapoet.TypeName.get(java.lang.String.class));\n com.squareup.javapoet.TypeName annotated = simpleString.annotated(NEVER_NULL);\n org.junit.Assert.assertTrue(annotated.isAnnotated());\n // StatementAdderOnAssert create null value\n java.lang.Object vc_2 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_2);\n // AssertGenerator replace invocation\n boolean o_annotated_cf3__13 = // StatementAdderMethod cloned existing statement\n annotated.equals(vc_2);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotated_cf3__13);\n org.junit.Assert.assertEquals(annotated, annotated.annotated());\n }", "@Test\n public void test(){\n }", "@Test\n public void test(){\n }", "public interface TestType {\n /**\n * Marker interface for tests that use the Enterprise data set for use with {@link org.junit.experimental.categories.Category}\n */\n interface DataSetEnterprise {}\n\n /**\n * Marker interface for tests that use the Lite data set for use with {@link org.junit.experimental.categories.Category}\n */\n interface DataSetLite {}\n\n /**\n * Marker interface for tests that use the Premium data set for use with {@link org.junit.experimental.categories.Category}\n */\n interface DataSetPremium {}\n\n /**\n * Marker interface for tests that take a long time\n */\n interface Lengthy {}\n\n /**\n * Marker Interface for API Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeApi {}\n\n /**\n * Marker Interface for HTTP Header Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeHttpHeader {}\n\n /**\n * Marker Interface for Memory Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeMemory {}\n\n /**\n * Marker Interface for Metadata Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeMetadata {}\n\n /**\n * Marker Interface for Performance Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypePerformance {}\n \n /**\n * Marker Interface for Unit Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeUnit{}\n}", "@Test\n public void testSelectAll() {\n }", "@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16419() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_7131 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16419__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7131);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16419__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@Test\n public void test2() {\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16426() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16426__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16426__10);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8835_failAssert22_add10266() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_3714 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_3714);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_3712 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_3712);\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n vc_3712.get(vc_3714);\n // StatementAdderMethod cloned existing statement\n vc_3712.get(vc_3714);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8835 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n\tpublic void getTest() {\n\t}", "@Test\n public void test8(){\n\n }", "@Test\n\tfinal void test() {\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21184_failAssert18() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_9248 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_9248);\n org.junit.Assert.fail(\"annotatedType_cf21184 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4132_failAssert24() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"HUZo@XT$QA3=&:J/N_\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_470 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_16_0 = vc_470;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_468 = (java.lang.reflect.Type)null;\n // MethodAssertGenerator build local variable\n Object o_20_0 = vc_468;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_466 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_1770 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_1768 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_1768.get(vc_1770);\n // MethodAssertGenerator build local variable\n Object o_30_0 = vc_466;\n // StatementAdderMethod cloned existing statement\n vc_466.get(vc_468, vc_470);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4132 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n\tpublic void verifyBeforeClassAnnotation() {\n\t\tassertThat(StandardJUnit4FeaturesTests.staticBeforeCounter).isGreaterThan(0);\n\t}", "@Test\n public void testGenerarIdentificacion() {\n }", "@Test\n public void testCarregarAno() {\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21202_failAssert22_add22504() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_9258 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9258);\n // StatementAdderMethod cloned existing statement\n // MethodCallAdder\n type.get(vc_9258);\n // StatementAdderMethod cloned existing statement\n type.get(vc_9258);\n org.junit.Assert.fail(\"annotatedType_cf21202 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test\n\tpublic void test(){\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8841_failAssert24() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_3720 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_3718 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_3716 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_3716.get(vc_3718, vc_3720);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8841 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@SuppressWarnings(\"PMD.JUnit4TestShouldUseTestAnnotation\")\n public void testInit() {\n System.out.println(\"Default testInit() method... Override me!\");\n }", "@Test\n public void testCarregarUex() {\n }", "@Test\n\tpublic void test2() {\n\t}", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28013_failAssert23_literalMutation29375_cf35869_failAssert9() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_12422 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_14_0 = vc_12422;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_12420 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_16032 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_16030 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_16028 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_16028.get(vc_16030, vc_16032);\n // MethodAssertGenerator build local variable\n Object o_26_0 = vc_12420;\n // StatementAdderMethod cloned existing statement\n type.get(vc_12420, vc_12422);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28013 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28013_failAssert23_literalMutation29375_cf35869 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf920_cf1429_failAssert24() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_435 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf920__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_435);\n // MethodAssertGenerator build local variable\n Object o_14_0 = o_annotatedArgumentOfParameterizedType_cf920__12;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_618 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_618);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf920_cf1429 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n public void test2(){\n }", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "@Test\n\tpublic void testMain() {\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf929_failAssert14_literalMutation2545_cf5426_failAssert5() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.Lit<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_440 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_2336 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_2334 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_2334.get(vc_2336);\n // MethodAssertGenerator build local variable\n Object o_22_0 = vc_440;\n // StatementAdderMethod cloned existing statement\n vc_440.isPrimitive();\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf929 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf929_failAssert14_literalMutation2545_cf5426 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8845_failAssert25_literalMutation10295_cf10601_failAssert20() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.util.List<jaKva.lang.String>\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.ParameterizedTypeName.get(java.util.List.class, java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_3720 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_13_0 = vc_3720;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_3718 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_4430 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_4428 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_4426 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_4426.get(vc_4428, vc_4430);\n // MethodAssertGenerator build local variable\n Object o_25_0 = vc_3718;\n // StatementAdderMethod cloned existing statement\n type.get(vc_3718, vc_3720);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8845 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8845_failAssert25_literalMutation10295_cf10601 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@Test\n public void dummyTest() {\n }", "@Test\n public void matchCorrect() {\n }", "@BeforeClass\n public void setUp() {\n }", "public void junitClassesStarted() { }", "public void junitClassesStarted() { }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16418() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_7130 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_7130);\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16418__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7130);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16418__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}" ]
[ "0.6927612", "0.6811438", "0.67725164", "0.67175865", "0.6635959", "0.6631875", "0.6614118", "0.65888363", "0.6584155", "0.6543087", "0.6518255", "0.6515967", "0.64982086", "0.64948124", "0.649133", "0.64692837", "0.64655006", "0.6452562", "0.644062", "0.6418077", "0.6413942", "0.64085317", "0.6397421", "0.638489", "0.63833636", "0.63817", "0.6371561", "0.6342501", "0.6340755", "0.63383096", "0.6334587", "0.6311091", "0.6308096", "0.63022363", "0.6274772", "0.62737966", "0.62700385", "0.62700385", "0.6264256", "0.62555665", "0.62471384", "0.62471384", "0.62466407", "0.62257516", "0.62211066", "0.6211237", "0.62100786", "0.61928934", "0.61833334", "0.617851", "0.6177288", "0.6162908", "0.61594015", "0.6152625", "0.61508477", "0.61469007", "0.61469007", "0.61465824", "0.61448735", "0.6141519", "0.6141519", "0.61305696", "0.61290747", "0.6125121", "0.6122658", "0.6116704", "0.6114117", "0.61139184", "0.6099914", "0.6099645", "0.60993594", "0.60968196", "0.6093544", "0.60909086", "0.60889876", "0.6083987", "0.6073043", "0.6053633", "0.6049261", "0.60459244", "0.60451066", "0.60364515", "0.60361", "0.6033673", "0.6033673", "0.6033673", "0.6033673", "0.60318726", "0.60305494", "0.6030253", "0.6029927", "0.6026621", "0.6022818", "0.60218865", "0.6019715", "0.6019493", "0.6017006", "0.60149467", "0.60149467", "0.60073334", "0.6003232" ]
0.0
-1
AAA Arrange, Act, Assert Arrange
@Test public void isUserValid_returnsTrue_givenValidUser() { boolean expectedResult = true; User validStudent = new User("valid", "valid", "[email protected]", "valid", "valid", "student"); // Act boolean actualResult1 = sut.isUserValid(validStudent); // Assert Assert.assertEquals("Expected user to be considered valid!", expectedResult, actualResult1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assertAll() {\n\t\t\n\t}", "Assert createAssert();", "protected Assert() {\n\t}", "public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }", "@Test\r\n void dependentAssertions() {\n \t\r\n assertAll(\"properties\",\r\n () -> {\r\n String firstName = person.getFirstName();\r\n assertNotNull(firstName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"first name\",\r\n () -> assertTrue(firstName.startsWith(\"J\")),\r\n () -> assertTrue(firstName.endsWith(\"n\"))\r\n );\r\n },\r\n () -> {\r\n // Grouped assertion, so processed independently\r\n // of results of first name assertions.\r\n String lastName = person.getLastName();\r\n assertNotNull(lastName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"last name\",\r\n () -> assertTrue(lastName.startsWith(\"D\")),\r\n () -> assertTrue(lastName.endsWith(\"e\"))\r\n );\r\n }\r\n );\r\n }", "protected abstract void assertFact(Object fact);", "@Then(\"Assert the success of Analysis\")\npublic void assanalysis(){\n}", "protected abstract void assertExpectations(Set<Expectation> expectations);", "protected Assert() {\n }", "protected Assert() {\n }", "@Test\n public void testcancelwithrefund() //workon\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move to next thing\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n }", "@Test\r\n\tpublic static void test1() {\r\n\t\tSystem.out.println(\"test 1\");\r\n\t\tAssertions.assertEquals( 1, 1 );\r\n\t}", "@Test\n public void directJudgmentCase() {\n\n int num1 = 2;\n int num2 = 2;\n int expected1 = 4;\n int expected2 = 3;\n\n int actual = AssertionCalculator.add(num1, num2);\n\n //直接斷言該值是否為true\n Assertions.assertTrue(expected1 == actual, \"AssertionCalculator.add(\" + num1 + \",\" + num2 + \") == \" + expected1 + \"is false\");\n //直接斷言該值是否為false\n Assertions.assertFalse(expected2 == actual, \"AssertionCalculator.add(\" + num1 + \",\" + num2 + \") == \" + expected2 + \"is true\");\n\n }", "@Test\r\n\tpublic void testOrderPerform() {\n\t}", "@Test\n public void thisIsAStatment() {\n //This is a statement\n assertEquals(4, 2 + 2);\n }", "public void testGetOrder() {\n }", "@Test\r\n public void testAdd() {\r\n System.out.println(\"add\");\r\n int one = 6;\r\n int two = 5;\r\n JUnitAssert instance = new JUnitAssert();\r\n int expResult = 11;\r\n int result = instance.add(one, two);\r\n assertEquals(expResult, result);\r\n }", "@Test\n\tpublic void testA() {\n\t\tActorWorld world = new ActorWorld();\n\t\t// alice: the rock condition\n\t\tworld.add(new Location(3, 1), alice);\n\t\tworld.add(new Location(1, 1), new Rock());\t\n\t\tint olddir = alice.getDirection();\n\t\talice.act();\n\t\tassertEquals((olddir + Location.RIGHT) % 360, alice.getDirection());\n\n\t\t// bob: the flower condition\n\t\tworld.add(new Location(6, 1), bob);\n\t\tworld.add(new Location(4, 1), new Flower());\n\t\tbob.act();\n\t\tassertEquals(new Location(4, 1), bob.getLocation());\n\t}", "@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}", "@Test\n\tpublic void bmainTestOne() {\n\t\tAssert.assertEquals(\"Test1\", \"Test1\");\n\t\tSystem.out.println(\"This is main Test 2\");\n\t}", "@Then(\"Assert the success of Attempt sending crafted records to DNS cache\")\npublic void assattemptsendingcraftedrecordstodnscache(){\n}", "@Test\n\tvoid testOnAddToOrder() {\n\t}", "public TestCase pass();", "@Test\n public void testAddACopy() {\n }", "private void assertEquals(String string, String title) {\n\t\r\n}", "public void testGetTaskActorE(){\n }", "public void assertExpectations() {\n\t\tassertExpectations(this.expectations);\n\t}", "@Test\n void groupedAssertions() {\n Employee employee = new Employee(\"John\", \"Doe\", 22);\n\n assertAll(\"employee\",\n () -> assertEquals(\"John\", employee.getFirstName()),\n () -> assertEquals(\"Doe\", employee.getLastName())\n );\n }", "TestClassExecutionResult assertTestsExecuted(TestCase... testCases);", "@Test\n public void testAssertEquals() {\n \n Assert.assertEquals(25, appEqual.appAssertEquals(10, 5, 10));\n }", "@Test\n public void testAddition() {\n Addition add = new Addition();\n assertEquals(\"Addition Failed!\", summation, add.AddOperation(v1, v2));\n System.out.println(\"Test for \" + v1 + \" and \" + v2 + \" has been passed!\\n\");\n }", "@Test\n\tpublic void moreComplexAssertion() {\n\t\tOrder order1 = null, order2 = null, order3 = null, order4 = null;\n\t\t// when\n\t\tList<Order> orders = null;// orderSearchService.getOrders(trader,\n\t\t\t\t\t\t\t\t\t// tradingAcct, goldIsinCode);\n\t\t// then\n\t\t// Using Basic JUnit\n\t\tassertEquals(orders.size(), 2);\n\t\tIterator<Order> itr = orders.iterator();\n\t\tassertEquals(itr.next(), order3);\n\t\tassertEquals(itr.next(), order4);\n\t\t// Using Hamcrest\n\t\tassertThat(orders, hasItems(order3, order4));\n\t\tassertThat(orders.size(), is(2));\n\t\t// Using FEST Assertions\n\t\tassertThat(orders).containsOnly(order3, order4);\n\t\t// Using FEST Assertions (chained assertions)\n\t\tassertThat(orders).containsOnly(order3, order4).containsSequence(order3, order4);\n\t}", "public void test() {\n\tassertTrue(true);\n\t}", "@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}", "@Test\n public void shouldAddCart() {}", "@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }", "@Test\n public void processTestA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //pass transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),300);\n\n Assert.assertEquals(true,trans.process());\n }", "@Test\n public void testStuff() {\n\n assertTrue(true);\n }", "@Test\r\n public void testCompareMovies() {\r\n // Not required\r\n }", "@Test\n public void shouldTestBoardSetMove(){\n }", "@Test\n\tpublic void advanceAssemblyLineTest(){\n\t\tcmcSystem.logInUser(1);\n\t\tOrder order1 = makeOrder(new ModelC());\n\t\tOrder order2 = makeOrder(new ModelX());\n\t\tOrder order3 = makeOrder(new ModelC());\n\t\tschedule.placeOrder(order1);\n\t\tschedule.placeOrder(order2);\n\t\tschedule.placeOrder(order3);\n\t\tassertTrue(assemblyLine.getWorkstations()[0].isReady());\n\t\tassemblyLine.advance(order1);\n\t\tassertFalse(assemblyLine.isReadyToAdvance());\n\t\tassertFalse(assemblyLine.getWorkstations()[0].isReady());\n\t}", "@Test// to tell jUnit that method with @Test annotation has to be run. \n\tvoid testAdd() {\n\t\tSystem.out.println(\"Before assumption method: Add Method\");\n\t\tboolean isServerUp = false;\n\t\tassumeTrue(isServerUp,\"If this method ran without skipping, my assumption is right\"); //Eg: This is used in occasions like run only when server is up.\n\t\t\n\t\tint expected = 2;\n\t\tint actual = mathUtils.add(0, 2);\n\t\t//\t\tassertEquals(expected, actual);\n\t\t// can add a string message to log \n\t\tassertEquals(expected, actual,\"add method mathUtils\");\n\t}", "@Then(\"Assert the success of Access & exfiltrate data within the victim's security zone\")\npublic void assaccessexfiltratedatawithinthevictimssecurityzone(){\n}", "@Test\n\tpublic void Account_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\tString resHolder = miCuenta.getHolder(); \n\t\t//\n\t\tmiCuenta.setBalance(this.arg2);\n\t\tint resBalance = miCuenta.getBalance(); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\tint resZone = miCuenta.getZone(); \n\t\t\t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg1, is(resHolder));\n\t\tassertThat(this.arg2, is(resBalance)); \n\t\tassertThat(this.arg3, is(resZone)); \n\t}", "boolean assertExpected(Exception e);", "@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }", "SimulationInspector expect(Consumer<GameState> expectation);", "@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}", "@Test\n public void testAct() {\n world.add(new Location(2, 0), jumper);\n jumper.act();\n jumper.act();\n assertEquals(new Location(0, 0), jumper.getLocation());\n jumper.act();\n jumper.act();\n assertEquals(new Location(0, 2), jumper.getLocation());\n }", "@Test\n public void testBeer() {\n // TODO: test Beer\n }", "@Test\n public void addition() {\n\n }", "@Test\n public void accuseSuccesTest() throws Exception {\n }", "@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }", "@Test\r\n\tpublic void testFrontTimes() {\r\n//\t\tassertEquals(\"ChoCho\", WarmUpTwo.frontTimes)\r\n\t\tfail(\"Not yet implemented\");\r\n\t\t\r\n\t}", "@Test\n\tpublic void something() {\n\t}", "@Test\n public void test1() {\n String expectedTitle = \"Sun\";\n String expectedArtist = \"Ciwei\";\n int expectedPrice = 5;\n\n String actualTitle = firstMusicTitle.getTitle();\n String actualArtist = firstMusicTitle.getArtist();\n int actualPrice = firstMusicTitle.getPrice();\n\n assertEquals(expectedTitle, actualTitle);\n assertEquals(expectedArtist, actualArtist);\n assertEquals(expectedPrice, actualPrice);\n }", "@Then(\"Admin homepage should be loaded successfully\")\r\npublic void admin_homepage_should_be_loaded_successfully() {\n\r\n\tboolean isloginsuccess=uAdminlogin.isHeaderFound();\r\n\tAssert.assertEquals(isloginsuccess, true);\r\n\t\r\n}", "@Test\npublic void testAddBalance(){ \n sut.addBalance(100,1,new Account());\n}", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Test\n public void getStuff() {\n \n Assert.assertEquals(wService.work(), \"Parker\");\n Assert.assertEquals(aService.age(), 25);\n }", "TestClassExecutionResult assertTestPassed(String name, String displayName);", "@Test\n public void testAct() {\n world.add(new Location(FOUR , FOUR), jumper);\n jumper.act();\n jumper.act();\n assertEquals(new Location(ZERO, FOUR), jumper.getLocation());\n }", "@Test\n public void testMonsterOrder() {\n // Setup\n\n // Run the test\n modelUnderTest.monsterOrder();\n\n // Verify the results\n }", "public static void testbed() {\n int s[] = {5, 1, 0, 4, 2, 3};\n int y = length_easy(s, 3);\n\n System.out.println(\"length_easy y = \" + y);\n u.myassert(y == 4);\n int b[] = {5, 1, 0, 4, 2, 3};\n int x = length(s, 3);\n System.out.println(\"length x = \" + x);\n u.myassert(x == y);\n for (int i = 0; i < s.length; ++i) {\n u.myassert(s[i] == b[i]);\n }\n System.out.println(\"Assert passed\");\n }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "@Test(priority = 4)\n public void testVerifyQuestionThree() {\n\t\tassertTrue(true);\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n public void testAddMovieActor() {\n final ArrayList<Actor> expectedList1 = new ArrayList<>();\n final ArrayList<Actor> expectedList2 = new ArrayList<>();\n final ArrayList<Actor> expectedList3 = new ArrayList<>();\n Actor actor1 = new Actor(actorMacchio);\n Actor actor2 = new Actor(actorFreeman);\n\n movie1.addActor(actor1);\n movie1.addActor(actor2);\n movie1.addActor(actor1);\n expectedList1.add(actor1);\n expectedList1.add(actor2);\n movie2.addActor(actor1);\n expectedList2.add(actor1);\n movie3.addActor(actor2);\n expectedList3.add(actor2);\n movie4.addActor(actor1);\n movie4.addActor(actor2);\n\n assertEquals(expectedList1, movie1.getActors());\n assertEquals(expectedList2, movie2.getActors());\n assertEquals(expectedList3, movie3.getActors());\n assertEquals(expectedList1, movie4.getActors());\n }", "@Override\r\n public void ontTest( OntModel m ) throws Exception {\r\n Profile prof = m.getProfile();\r\n OntClass A = m.createClass( NS + \"A\" );\r\n Individual x = m.createIndividual( A );\r\n Individual y = m.createIndividual( A );\r\n Individual z = m.createIndividual( A );\r\n\r\n x.addSameAs( y );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n assertEquals( \"x should be the same as y\", y, x.getSameAs() );\r\n assertTrue( \"x should be the same as y\", x.isSameAs( y ) );\r\n\r\n x.addSameAs( z );\r\n assertEquals( \"Cardinality should be 2\", 2, x.getCardinality( prof.SAME_AS() ) );\r\n iteratorTest( x.listSameAs(), new Object[] {z,y} );\r\n\r\n x.setSameAs( z );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n assertEquals( \"x should be same indiv. as z\", z, x.getSameAs() );\r\n\r\n x.removeSameAs( y );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n x.removeSameAs( z );\r\n assertEquals( \"Cardinality should be 0\", 0, x.getCardinality( prof.SAME_AS() ) );\r\n }", "public void assertPerformance() {\n\tsuper.assertPerformance();\n}", "@Before\r\n\tpublic void setUp() throws Exception {\n\t\tSourceLocation testLocation = new SourceLocation(1, 1);\r\n\t\ttestStatement = new MoveToStatement(new HerePositionExpression(testLocation), testLocation);\r\n\t\ttask = new Task(\"test\", -10, testStatement);\r\n\t\ttask1 = new Task(\"test\", 0, testStatement);\r\n\t\ttask2 = new Task(\"test\", 10, testStatement);\r\n\t\ttask3 = new Task(\"test\", 20 , testStatement);\r\n\t\tunit= new Unit(world, false);\r\n\t\tscheduler1 = unit.getFaction().getScheduler();\r\n\t}", "default void assertEquals(Object expected, Object actual, String message) {\n try {\n Assert.assertEquals(message, expected, actual);\n LOGGER.info(\"assertEquals success: expected {}, actual {}\", expected, actual);\n } catch (AssertionError assertionError) {\n LOGGER.error(\"assertEquals failure: expected {}, actual {}, message {}\", expected, actual, message);\n }\n }", "@Test\n\tpublic void AccountCredit_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\t//\n\t\tmiCuenta.setBalance(this.arg2); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\t//\n\t\tmiCuenta.debit(this.arg4);\n\t\tint Debit = miCuenta.getBalance(); \t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg5, is(Debit));\n\t\t\n\t}", "@Test\r\n\tpublic void acreditar() {\r\n\t}", "@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }", "@Test\n public void test11() {\n cashRegister.addPennies(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addDimes(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addDimes(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addFives(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addNickels(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addOnes(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addQuarters(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n cashRegister.addTens(0);\n assertEquals(\"\", cashRegister.getAuditLog());\n }", "@Test\n public void testCorrectUsage() throws\n IOException, AuthorCommitsFailedException {\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <[email protected]> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "@Test\n public void testcancelwithoutrefund()\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move back to current\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n\n }", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "@Test\n\tpublic void testAddRowCommit() {\n\t}", "@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }", "@Test\n public void trimsBidAndAsk() {\n }", "private void assertEqual(Iterator expected, Iterator actual) {\n\t\t\n\t}", "@Test\n\tpublic void testCanEnter(){\n\t}", "@Test\n void testHumanActionMakeSpeak(){\n Humans human = new Humans();\n human.setName(\"tuandung\");\n\n human.setCalm(100);\n assertEquals(human.getName() + \" \"+ \"wanna stop that war\", human.makeSpeakVote(),\"stop the war when calm\");\n human.setCalm(0);\n assertEquals(human.getName() + \" \"+ \"said what ever\", human.makeSpeakVote(),\"human make speak when calm < 0\");\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "@Test\n\tpublic void testMainScenario() {\n\t\tProject project = this.db.project().create(\"Test project\", 200, \"13-05-2014\", null);\n\n//Test #1\t\t\n\t\tassertEquals(project.getActivities().size(), 0);\n\t\tassertEquals(project.getEstPercentageCompletion(), 0);\n\t\tassertEquals(project.getEstHoursRemaining(), 200);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 0);\n\t\tassertEquals(project.getHoursRegistered(), 0);\n\t\t\n\t\tActivity activity1 = this.db.activity().createProjectActivity(project.getId(), \"activity1\", 10, this.stringDateTimeToLong(\"01-05-2013 01:00\"), this.stringDateTimeToLong(\"01-05-2014 01:00\"));\n\t\tActivity activity2 = this.db.activity().createProjectActivity(project.getId(), \"activity2\", 10, this.stringDateTimeToLong(\"01-05-2013 01:00\"), this.stringDateTimeToLong(\"01-05-2014 01:00\"));\n\n//Test #2\t\t\n\t\tassertEquals(project.getActivities().size(), 2);\n\t\tassertEquals(project.getEstPercentageCompletion(), 0);\n\t\tassertEquals(project.getEstHoursRemaining(), 200);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 0);\n\t\t\n\t\tDeveloper developer = this.db.developer().readByInitials(\"JL\").get(0);\n\t\tDeveloper developer2 = this.db.developer().readByInitials(\"PM\").get(0);\n\t\tDeveloper developer3 = this.db.developer().readByInitials(\"GH\").get(0);\n\t\tDeveloper developer4 = this.db.developer().readByInitials(\"RS\").get(0);\n\t\tactivity1.addDeveloper(developer);\n\t\tactivity1.addDeveloper(developer2);\n\t\tactivity1.addDeveloper(developer3);\n\t\tactivity1.addDeveloper(developer4);\n\n//Test #3\n\t\t//Tests that the initials of all developers are stored correctly\t\t\n\t\tassertEquals(activity1.getAllDevsInitials(),\"JL,PM,GH,RS\");\n\t\tassertEquals(activity1.getAllDevsInitials() == \"The Beatles\", false); //Please fail!\n\t\t\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"11-05-2013 06:30\"), this.stringDateTimeToLong(\"11-05-2013 09:30\"), developer.getId(), activity1.getId(), false);\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"11-05-2013 06:30\"), this.stringDateTimeToLong(\"11-05-2013 09:30\"), developer2.getId(), activity1.getId(), false);\n\t\t\n\t\t//Showed in the project maintainance view, and is relevant to the report\n\t\tassertEquals(activity1.getHoursRegistered(),6);\n\t\t\n//Test #4\n\t\t//Tests normal registration\t\t\n\t\tassertEquals(project.getEstPercentageCompletion(), 3);\n\t\tassertEquals(project.getEstHoursRemaining(), 194);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 6);\n\t\t\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"12-05-2013 06:30\"), this.stringDateTimeToLong(\"12-05-2013 09:30\"), developer3.getId(), activity2.getId(), true);\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"12-05-2013 06:30\"), this.stringDateTimeToLong(\"12-05-2013 09:30\"), developer4.getId(), activity2.getId(), true);\n\n//Test #5\n\t\t//Tests that assits also count\t\t\n\t\tassertEquals(project.getEstPercentageCompletion(), 6);\n\t\tassertEquals(project.getEstHoursRemaining(), 188);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 12);\n\t}", "@Test\n\tpublic void testTInvader1() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\tassertEquals(0, tank.getHealth());\n\t}", "@Test\n public void addPersonTest() {\n \tHelloWorldImpl hello=new HelloWorldImpl();\n \tPersonRequest pr1=new PersonRequest();\n \tpr1.setName(\"satish\");\n \tpr1.setSurname(\"namdeo\");\n \tpr1.setLocation(\"imppetus\");\n \tString actualResult=hello.addPerson(pr1);\n \t//check for result is not empty.\n \tassertNotNull(\"Result is not null\",actualResult);\n \tString expectedResult=\"person added\";\n \t//check for equality\n \tassertThat(actualResult).isEqualTo(expectedResult);\n \t//System.out.println(\"addPersonTest result : \"+result);\n }", "@Test\r\n public void testRentOut() {\r\n }", "@Test\n\tpublic void TEAM3_CONTROLLER_UT23() {\n\t\t// PRECONDITIONS\n\t\tCourseStub.initializeCourses();\n\t\t\n\t\tString pantherID = \"1412412\",\n\t\t\t term = \"Spring 2015\";\n\t\t\n\t\tClassDetailsStub cen4012 = new ClassDetailsStub(TEST_CONFIG.MonWedFri1A),\n\t\t\t\t\t\t mac1266 = new ClassDetailsStub(TEST_CONFIG.TueThu);\n\t\tCourseStub.registerCourse(\"Biscayne\", term, cen4012);\n\t\tCourseStub.registerCourse(\"University\", term, mac1266);\n\t\t\n\t\tArrayList<ClassDetailsStub> courses1 = new ArrayList<ClassDetailsStub>();\n\t\tcourses1.add(cen4012);\n\t\t\n\t\tArrayList<ClassDetailsStub> courses2 = new ArrayList<ClassDetailsStub>();\n\t\tcourses1.add(mac1266);\n\t\t\n\t\tScheduleStub s1 = new ScheduleStub(courses1);\n\t\ts1.setId(\"Schedule1\");\n\t\ts1.setPantherID(pantherID);\n\t\t\n\t\tScheduleStub s2 = new ScheduleStub(courses2);\n\t\ts1.setId(\"Schedule2\");\n\t\ts1.setPantherID(pantherID);\n\t\t\n\t\tArrayList<ScheduleStub> scheduleList = new ArrayList<ScheduleStub>();\n\t\tscheduleList.add(s2);\n\t\tscheduleList.add(s1);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\n\t\t// INPUT\n\t\tException exceptionThrown = null;\n\t\ttry {\n\t\t\tsmc.saveSchedules(scheduleList);\n\t\t\t\n\t\t\tMethod sortSchedules = smc.getClass().getDeclaredMethod(\"sortSchedules\", (Class<?> []) null);\n\t\t\tObject methodReturnObject = sortSchedules.invoke(smc, (Object []) null);\n\t\t\t\n\t\t\t// EXPECTED OUTPUT\n\t\t\t\n\t\t\tif (methodReturnObject == null) throw new NullPointerException(\"sortSchedules() returned null; expected a Collection\");\n\t\t\telse if (!(methodReturnObject instanceof Collection<?>)) throw new RuntimeException(\"sortSchedules() did not return a Collection\");\n\t\t\t\n\t\t\tArrayList<ScheduleStub> schedulesReturned = new ArrayList<ScheduleStub>( ((Collection<ScheduleStub>) methodReturnObject) );\n\t\t\tassertEquals(2, schedulesReturned.size());\n\t\t\t\n\t\t\tScheduleStub returnedSchedule1 = schedulesReturned.get(0),\n\t\t\t\t\t\t returnedSchedule2 = schedulesReturned.get(1);\n\t\t\tassertNotNull(returnedSchedule1);\n\t\t\tassertNotNull(returnedSchedule2);\n\t\t\tassertEquals(s1.getId(), returnedSchedule1.getId());\n\t\t\tassertEquals(s2.getId(), returnedSchedule2.getId());\n\t\t\tassertEquals(s1.getPantherID(), returnedSchedule1.getPantherID());\n\t\t\tassertEquals(s2.getPantherID(), returnedSchedule2.getPantherID());\n\t\t\tassertEquals(1, returnedSchedule1.getClasses().size());\n\t\t\tassertEquals(1, returnedSchedule2.getClasses().size());\n\t\t\tassertEquals(cen4012.getCourse(), ((ArrayList<ClassDetailsStub>)returnedSchedule1.getClasses()).get(0).getCourse());\n\t\t\tassertEquals(mac1266.getCourse(), ((ArrayList<ClassDetailsStub>)returnedSchedule2.getClasses()).get(0).getCourse());\n\t\t} catch (Exception ex) {\n\t\t\texceptionThrown = ex;\n\t\t}\n\t\t\n\t\tassertNull(exceptionThrown);\n\t}", "private void assertEquals(String t, String string) {\n\t\t\n\t}", "@Test\n public void sanityCheck() {\n assertThat(true, is(true));\n }", "@Before\n public void setUp() {\n System.out.println(\"\\n@Before - Setting Up Stuffs: Pass \"\n + ++setUpCount);\n // write setup code that must be executed before each test method run\n }", "private static void assertEquals(String expected, String actual) {\r\n Assert.assertNotNull(actual);\r\n Assert.assertEquals(expected, actual);\r\n }", "public void testWriteOrders() throws Exception {\n }", "@Test\n public void addTest(){\n \n Assert.assertTrue(p1.getName().equals(\"banana\"));\n Assert.assertTrue(c1.getEmail().equals(\"[email protected]\"));\n \n }", "@Test\n\tpublic void testAddToCart() {\n\t}" ]
[ "0.639914", "0.62009335", "0.6100092", "0.6060053", "0.6058979", "0.6007493", "0.59193933", "0.5915016", "0.5909506", "0.5909506", "0.5899255", "0.58924776", "0.58727187", "0.58700913", "0.5868814", "0.5787921", "0.57668394", "0.5763044", "0.5743052", "0.5738917", "0.57112753", "0.57051075", "0.56855625", "0.5668835", "0.56665564", "0.56595707", "0.56589806", "0.5652206", "0.56459755", "0.56445986", "0.56215197", "0.56188005", "0.561493", "0.5607859", "0.5603342", "0.5592321", "0.5591122", "0.55840343", "0.5581828", "0.55696267", "0.5569333", "0.5569297", "0.5562281", "0.55466306", "0.5546223", "0.5541821", "0.5536323", "0.5523454", "0.55221665", "0.5514173", "0.5511334", "0.5504995", "0.5490838", "0.54765034", "0.547624", "0.5474911", "0.5473325", "0.547297", "0.5469036", "0.5469036", "0.54615176", "0.5451938", "0.54491675", "0.54428786", "0.54402924", "0.5437585", "0.5427434", "0.5424444", "0.5420563", "0.54097253", "0.5405494", "0.5402813", "0.5402351", "0.5391351", "0.53905064", "0.53853565", "0.53811944", "0.53791124", "0.5372357", "0.5359901", "0.5356398", "0.5352807", "0.5351242", "0.53466666", "0.5343648", "0.5338302", "0.53340656", "0.5325491", "0.5324241", "0.53163415", "0.53125906", "0.5311668", "0.53055245", "0.5299519", "0.5299393", "0.52983433", "0.52971405", "0.5296946", "0.52954435", "0.52939117", "0.5292345" ]
0.0
-1
Configures this DOM parser.
public LagartoDOMBuilder configure(final Consumer<LagartoDomBuilderConfig> configConsumer) { configConsumer.accept(this.config); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}", "public void init() {\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\t//factory.setValidating(true);\r\n\t\t\t//factory.setFeature(\r\n\t\t\t//\t\t\"http://apache.org/xml/features/validation/schema\", true);\r\n\t\t\tfactory.setNamespaceAware(true);\r\n\t\t\t_parser = factory.newSAXParser();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tLoggerUtilsServlet.logErrors(e);\r\n\t\t}\r\n\t}", "public DOMParser() { ; }", "private void init() throws EPPParserException {\n\t\tcat.debug(\"init() enter\");\n\n\t\tcat.info(\"Creating parser instance with symbol table size: \"\n\t\t\t\t + symbolTableSize);\n\n\t\t// Explicitly providing an XMLConfiguration here\n\t\t// prevents Xerces from going out and looking up\n\t\t// the default parser configuration from the System properties\n\t\t// If the symbol table size is 0 then don't create a symbol table. Just\n\t\t// use the default constructor for the XMLConfiguration. The default from\n\t\t// the XMLConfiguration will be used\n\t\tif (symbolTableSize == 0) {\n\t\t\t/**\n\t\t\t * @todo change the configuration that's instantiated to be\n\t\t\t * \t\t configurable\n\t\t\t */\n\t\t\tparserImpl = new DOMParser(new XMLGrammarCachingConfiguration());\n\t\t}\n\t\telse {\n\t\t\tSymbolTable symbolTable = new SymbolTable(symbolTableSize);\n\n\t\t\t/**\n\t\t\t * @todo change the configuration that's instantiated to be\n\t\t\t * \t\t configurable\n\t\t\t */\n\t\t\tparserImpl = new DOMParser(new XML11Configuration(symbolTable));\n\t\t}\n\n\t\t// Register this instance with the entity resolver\n\t\tEPPSchemaCachingEntityResolver resolver =\n\t\t\tnew EPPSchemaCachingEntityResolver(this);\n\n\t\tparserImpl.setEntityResolver(resolver);\n\n\t\t// setup the default behavior for this parser\n\t\tcat.debug(\"Setting default parser features. Namespaces and Schema validation are on\");\n\n\t\ttry {\n\n if (EPPEnv.getValidating()) {\n parserImpl.setFeature(VALIDATION_FEATURE_ID, true);\n parserImpl.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);\n }\n\n if (EPPEnv.getFullSchemaChecking()) {\n parserImpl.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);\n }\n\n // set other properties of the parser -\n parserImpl.setFeature(LOAD_EXTERNAL_DTD, false);\n parserImpl.setFeature(LOAD_DTD_GRAMMAR, false);\n parserImpl.setFeature(CREATE_ENTITY_REF_NODES, false);\n parserImpl.setFeature(INCLUDE_IGNORABLE_WHITE_SPACE, false);\n parserImpl.setFeature(EXTERNAL_GENERAL_ENTITIES, false);\n parserImpl.setFeature(EXTERNAL_PARAMETER_ENTITIES, false);\n\n\t\t\tparserImpl.setFeature(NAMESPACES_FEATURE_ID, true);\n \t\tparserImpl.setFeature(DEFER_NODE_EXPANSION, false);\n\t\t}\n catch (SAXException e) {\n\t\t\tcat.error(\"setting features of parserImpl failed\", e);\n\t\t\tthrow new EPPParserException(e);\n\t\t}\n \n // Pre-load the XML schemas based on the registerd EPPMapFactory \n // and EPPExtFactory instances.\n Set theSchemas = EPPFactory.getInstance().getXmlSchemas();\n Iterator theSchemasIter = theSchemas.iterator();\n while (theSchemasIter.hasNext()) {\n \tString theSchemaName = (String) theSchemasIter.next();\n \t\n \tcat.debug(\"init(): Pre-loading XML schema \\\"\" + theSchemaName + \"\\\"\");\n \t\n \t\t// lookup the file name in this classes's classpath under \"schemas\"\n \t\tInputStream theSchemaStream =\n \t\t\tgetClass().getClassLoader().getResourceAsStream(\"schemas/\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ theSchemaName);\n\n \t\n \tthis.addSchemaToCache(new XMLInputSource(theSchemaName, theSchemaName, theSchemaName, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttheSchemaStream, null));\n }\n \n \n\t\tcat.debug(\"init() exit\");\n\t}", "public PropertiesDocument(Document testRunArgs) throws ParserConfigurationException {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n this.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tthis.document = this.documentBuilder.newDocument();\n\t\tthis.properties = documentToProperties(testRunArgs);\n\t}", "@Before\n\tpublic void initParser() {\n\t\tXMLTagParser.init(file);\n\t}", "public PropertiesDocument() {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n\t\t\tthis.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Exception with default configuration\n\t\t\te.printStackTrace();\n\t\t}\n this.properties = new Properties();\n\t}", "public void configure(Element node) throws Exception;", "public DocumentBuilderFactoryImpl() {\n super();\n }", "public GongDomObject() throws ParserConfigurationException {\r\n super();\r\n \r\n // Remove the previous anchor\r\n Document document = getDocument();\r\n document.removeChild(document.getDocumentElement());\r\n \r\n // Create the default anchor element\r\n anchor = document.createElementNS(XmlConstants.NAMESPACE_URI, getTag().toString());\r\n document.appendChild(anchor);\r\n }", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "private DOMs() {\n }", "public void configure() {\n\n // here is a sample which processes the input files\n // (leaving them in place - see the 'noop' flag)\n // then performs content based routing on the message using XPath\n\n }", "public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//-- Init Xpath\n\t\tinit();\n\t}", "public JobLogParserConfiguration() {\r\n\r\n produceRegularExpressions();\r\n compilePattern();\r\n }", "private void configure() {\r\n LogManager manager = LogManager.getLogManager();\r\n String className = this.getClass().getName();\r\n String level = manager.getProperty(className + \".level\");\r\n String filter = manager.getProperty(className + \".filter\");\r\n String formatter = manager.getProperty(className + \".formatter\");\r\n\r\n //accessing super class methods to set the parameters\r\n\r\n\r\n }", "public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}", "public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way\n\t\tconfig.enabledVoidTags = false; // there are no void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close empty tags (can be changed!)\n\t\tconfig.impliedEndTags = false; // no implied tag ends\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(true); // enable XML mode in parsing\n\t\treturn this;\n\t}", "private void bootstrap() {\n\t\t// configure default values\n\t\t// maxPoolSize = 5;\n\t\tthis.parserPool.setMaxPoolSize(50);\n\t\t// coalescing = true;\n\t\tthis.parserPool.setCoalescing(true);\n\t\t// expandEntityReferences = false;\n\t\tthis.parserPool.setExpandEntityReferences(false);\n\t\t// ignoreComments = true;\n\t\tthis.parserPool.setIgnoreComments(true);\n\t\t// ignoreElementContentWhitespace = true;\n\t\tthis.parserPool.setIgnoreElementContentWhitespace(true);\n\t\t// namespaceAware = true;\n\t\tthis.parserPool.setNamespaceAware(true);\n\t\t// schema = null;\n\t\tthis.parserPool.setSchema(null);\n\t\t// dtdValidating = false;\n\t\tthis.parserPool.setDTDValidating(false);\n\t\t// xincludeAware = false;\n\t\tthis.parserPool.setXincludeAware(false);\n\n\t\tMap<String, Object> builderAttributes = new HashMap<>();\n\t\tthis.parserPool.setBuilderAttributes(builderAttributes);\n\n\t\tMap<String, Boolean> parserBuilderFeatures = new HashMap<>();\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/disallow-doctype-decl\", TRUE);\n\t\tparserBuilderFeatures.put(XMLConstants.FEATURE_SECURE_PROCESSING, TRUE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-general-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/validation/schema/normalized-value\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-parameter-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/dom/defer-node-expansion\", FALSE);\n\t\tthis.parserPool.setBuilderFeatures(parserBuilderFeatures);\n\n\t\ttry {\n\t\t\tthis.parserPool.initialize();\n\t\t}\n\t\tcatch (ComponentInitializationException x) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3 ParserPool\", x);\n\t\t}\n\n\t\ttry {\n\t\t\tInitializationService.initialize();\n\t\t}\n\t\tcatch (InitializationException e) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3\", e);\n\t\t}\n\n\t\tXMLObjectProviderRegistry registry;\n\t\tsynchronized (ConfigurationService.class) {\n\t\t\tregistry = ConfigurationService.get(XMLObjectProviderRegistry.class);\n\t\t\tif (registry == null) {\n\t\t\t\tregistry = new XMLObjectProviderRegistry();\n\t\t\t\tConfigurationService.register(XMLObjectProviderRegistry.class, registry);\n\t\t\t}\n\t\t}\n\n\t\tregistry.setParserPool(this.parserPool);\n\t}", "void setConfiguration();", "public Parser() {\n\t\tpopulateMaps();\n\t}", "public BlobParserConfig() {\n\t\tthis.libraryPath = null;\n\t\tthis.parserClass = null;\n\t}", "protected void configure(ValueParser parser)\r\n {\r\n this.context = (Context)parser.getValue(ToolContext.CONTEXT_KEY);\r\n }", "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }", "protected RCPOMDocument() {\n\t}", "@Override\n public void configureForXmlConformance() {\n mConfig.configureForXmlConformance();\n }", "public JAXPParser(DocumentBuilderFactory documentBuilderFactory, ErrorHandler errorHandler) {\n super();\n\n this.documentBuilderFactory = documentBuilderFactory;\n if (null != errorHandler) {\n this.errorHandler = errorHandler;\n } else {\n this.errorHandler = DefaultErrorHandler.getInstance();\n }\n }", "public void setupParser(InputStream is) {\r\n inputSource = new InputSource(is);\r\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }", "void setParser(CParser parser);", "public RayTracerXMLSceneParser() {\n\t\ttry {\n\t\t\treader = XMLReaderFactory.createXMLReader();\n\t\t\treader.setContentHandler(this);\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }", "@Override\n\tpublic void configure(CommandLineParser parser) {\n\t\tparser.addOptions(plugins);\n\t}", "public void setupSaxParser(SAXParser saxParser) {\n try {\n // Setup grammar cache\n saxParser.setProperty(PROPERTIES_INTERNAL_GRAMMARPOOL, grammarPool);\n\n // Setup catalog resolver\n saxParser.setProperty(PROPERTIES_ENTITYRESOLVER, resolver);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n }", "public HtmlDocument(Content htmlTree) {\n docContent = htmlTree;\n }", "void startDocument()\n throws SAXException\n {\n contentHandler.setDocumentLocator(this);\n contentHandler.startDocument();\n attributesList.clear();\n }", "void init(Document doc) {\n mDoc = doc;\n mDoc.getDocumentElement().normalize();\n load();\n }", "public void configure(Element parent) {\n }", "public XmlDocumentDefinition() {\n }", "public ItemListParser() throws ParserConfigurationException {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfactory.setValidating(true);\n\t\tfactory.setIgnoringElementContentWhitespace(true);\n\t\tbuilder = factory.newDocumentBuilder();\n\t}", "public void configureEditor() {\n\t\tsuper.configureEditor();\n\t}", "public ConfigParserHandler() {\n\t}", "protected void init() {\n PageFactory.initElements(webDriver, this);\n }", "private void config() {\n\t}", "public void setDocumentLocator( Locator locator )\n {\n super.setDocumentLocator(locator);\n this.locator = locator;\n }", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "public PXStylesheetParser() {\n this(null);\n }", "void startCrawler() throws ParserConfigurationException, SAXException, IOException;", "public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}", "public XMLDocument() {\r\n xml = new StringBuilder();\r\n }", "void init(Element configData) throws PSAgentException;", "@Override\r\n public void setDocumentLocator(Locator locator) {\n }", "public XPathParser(Object o) {\n this.source = o;\n this.contextNode = defaultContextNode;\n }", "public FeedParsers() {\n super(FEED_PARSERS_KEY);\n }", "void parser() throws TemplateException {\n this.config.resolver.outputdir =\n PropertiesParser.parser(this.config.resolver.outputdir);\n this.config.resolver.sourcepackage = \n PropertiesParser.parser(this.config.resolver.sourcepackage);\n this.config.resolver.templatedir = \n PropertiesParser.parser(this.config.resolver.templatedir);\n }", "public PoaMaestroMultivaloresHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "protected SAXParser() {\n // Does nothing.\n }", "public HTMLParser () {\r\n this.pagepart = null;\r\n }", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "@Override\n public void setDocumentLocator(Locator locator) {\n this.locator = locator;\n }", "private CardParser() throws ParserConfigurationException, IOException, SAXException{\n\n InputStream configStream = getClass().getClassLoader().getResourceAsStream(\"config.xml\");\n DocumentBuilderFactory domBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder domBuilder = domBuilderFactory.newDocumentBuilder();\n Document dom = domBuilder.parse(configStream);\n dom.getDocumentElement().normalize();\n config = getChildNode(\"config\", dom)\n .orElseThrow(() -> new IllegalConfigXMLException(\"Missing root config node\"));\n }", "public XPathSourceViewerConfiguration(ColorManager manager) {\n\t\tthis.colorManager = manager;\n\t}", "void initBeforeParsing() {\r\n }", "@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}", "protected void startCfgElement(String qName, Attributes attributes) throws SAXException {\n\t\tif (CONFIG_ROOT_ELMT.equals(qName)) {\n\t\t\tif (streamsConfigData.isStreamsAvailable()) {\n\t\t\t\tthrow new SAXParseException(StreamsResources.getStringFormatted(StreamsResources.RESOURCE_BUNDLE_NAME,\n\t\t\t\t\t\t\"ConfigParserHandler.multiple.elements\", qName), currParseLocation);\n\t\t\t}\n\t\t} else if (PROPERTY_ELMT.equals(qName)) {\n\t\t\tprocessProperty(attributes);\n\t\t} else if (FIELD_ELMT.equals(qName)) {\n\t\t\tprocessField(attributes);\n\t\t} else if (FIELD_LOC_ELMT.equals(qName)) {\n\t\t\tprocessFieldLocator(attributes);\n\t\t} else if (FIELD_MAP_ELMT.equals(qName)) {\n\t\t\tprocessFieldMap(attributes);\n\t\t} else if (PARSER_REF_ELMT.equals(qName)) {\n\t\t\tprocessParserRef(attributes);\n\t\t} else if (PARSER_ELMT.equals(qName)) {\n\t\t\tprocessParser(attributes);\n\t\t} else if (STREAM_ELMT.equals(qName)) {\n\t\t\tprocessStream(attributes);\n\t\t} else if (FILTER_ELMT.equals(qName)) {\n\t\t\tprocessFilter(attributes);\n\t\t} else if (VALUE_ELMT.equals(qName)) {\n\t\t\tprocessValue(attributes);\n\t\t} else if (EXPRESSION_ELMT.equals(qName)) {\n\t\t\tprocessFilterExpression(attributes);\n\t\t} else if (TNT4J_PROPERTIES_ELMT.equals(qName)) {\n\t\t\tprocessTNT4JProperties(attributes);\n\t\t} else if (REF_ELMT.equals(qName)) {\n\t\t\tprocessReference(attributes);\n\t\t} else if (JAVA_OBJ_ELMT.equals(qName)) {\n\t\t\tprocessJavaObject(attributes);\n\t\t} else if (PARAM_ELMT.equals(qName)) {\n\t\t\tprocessParam(attributes);\n\t\t} else if (FIELD_TRANSFORM_ELMT.equals(qName)) {\n\t\t\tprocessFieldTransform(attributes);\n\t\t} else if (EMBEDDED_ACTIVITY_ELMT.equals(qName)) {\n\t\t\tprocessEmbeddedActivity(attributes);\n\t\t} else if (CACHE_ELMT.equals(qName)) {\n\t\t\tprocessCache(attributes);\n\t\t} else if (CACHE_ENTRY_ELMT.equals(qName)) {\n\t\t\tprocessCacheEntry(attributes);\n\t\t} else if (CACHE_KEY_ELMT.equals(qName)) {\n\t\t\tprocessKey(attributes);\n\t\t} else if (FIELD_MAP_REF_ELMT.equals(qName)) {\n\t\t\tprocessFieldMapReference(attributes);\n\t\t} else if (RESOURCE_REF_ELMT.equals(qName)) {\n\t\t\tprocessResourceReference(attributes);\n\t\t} else if (CACHE_DEFAULT_VALUE_ELMT.equals(qName)) {\n\t\t\tprocessDefault(attributes);\n\t\t} else if (MATCH_EXP_ELMT.equals(qName)) {\n\t\t\tprocessMatchExpression(attributes);\n\t\t} else {\n\t\t\tthrow new SAXParseException(StreamsResources.getStringFormatted(StreamsResources.RESOURCE_BUNDLE_NAME,\n\t\t\t\t\t\"ConfigParserHandler.unknown.tag\", qName), currParseLocation);\n\t\t}\n\t}", "public void setProperties() {\r\n\t\tconfigProps.setProperty(\"Root\", textRoot.getText());\r\n\t\tconfigProps.setProperty(\"Map\", textMap.getText());\r\n\t\tconfigProps.setProperty(\"Out\", textOut.getText());\r\n\t\tconfigProps.setProperty(\"ReportTypeName\",textrtn.getText());\r\n\t\tconfigProps.setProperty(\"ReportedByPersonName\",textrbpn.getText());\r\n\t\tconfigProps.setProperty(\"ReportedDate\",textrd.getText());\r\n\t\tdt.Map = textMap.getText();\r\n\t\tdt.Root = textRoot.getText();\r\n\t\tdt.Out = textOut.getText();\r\n\t\tdt.setReportHeaderData(textrtn.getText(), textrbpn.getText(), textrd.getText());\r\n\t}", "@Override\n\t\tpublic void setDocumentLocator(Locator locator) {\n\t\t\t\n\t\t}", "public DefaultSyntaxDocument()\n {\n colors = SyntaxUtilities.getDefaultSyntaxColors();\n addDocumentListener(new DocumentHandler());\n }", "public OpenOfficeXMLDocumentParser() {\r\n }", "private void configureNode() {\n\t\twaitConfigData();\n\t\tpropagateConfigData();\n\n\t\tisConfigured = true;\n\t}", "private void configure() {\n\t\tthis.pressedListener = new EventHandler<MouseEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent me) {\n\t\t\t\tstartDragX = me.getSceneX();\n\t\t\t\tstartDragY = me.getSceneY();\n\t\t\t\tstartNodeX = getTranslateX();\n\t\t\t\tstartNodeY = getTranslateY();\n\t\t\t\tstartWidth = getMaxWidth();\n\t\t\t\tstartHeight = getMaxHeight();\n\t\t\t}\n\t\t};\n\t\ttopDragger.setOnMousePressed(this.pressedListener);\n\t\tbottomDragger.setOnMousePressed(this.pressedListener);\n\t\tleftDragger.setOnMousePressed(this.pressedListener);\n\t\trightDragger.setOnMousePressed(this.pressedListener);\n\n\t\tsetTop(topDragger);\n\t\tsetBottom(bottomDragger);\n\t\tsetLeft(leftDragger);\n\t\tsetRight(rightDragger);\n\t\tsetCenter(center);\n\t\tbuildDragListeners();\n\t\tbuildResizeListeners();\n\t}", "void configure();", "protected void configureTokenizer()\r\n\t{\r\n\t\tLogger.debug(\"Configuring syntax tokenizer\", Level.GUI,this);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tLogger.debug(\"Setting flags\", Level.GUI,this);\r\n\t\t\t// Use the standard configuration as a base\r\n\t\t\tm_properties = new StandardTokenizerProperties();\r\n\t\t\t// Return token positions and line comments\r\n\t\t\tm_properties.setParseFlags( Flags.F_TOKEN_POS_ONLY | Flags.F_RETURN_LINE_COMMENTS );\r\n\t\t\t// Python comments\r\n\t\t\t// Block comments are parsed manually\r\n\t\t\tm_properties.addLineComment(\"#\");\n\t\t\t// Python strings\r\n\t\t\tm_properties.addString(\"\\\"\", \"\\\"\", \"\\\"\");\r\n\t\t\tm_properties.addString(\"\\'\", \"\\'\", \"\\'\");\r\n\t\t\t// Normal whitespaces\r\n\t\t\tm_properties.addWhitespaces(TokenizerProperties.DEFAULT_WHITESPACES);\r\n\t\t\t// Normal separators\r\n\t\t\tm_properties.addSeparators(TokenizerProperties.DEFAULT_SEPARATORS);\r\n\t\t\t// Add our keywords\r\n\t\t\tLogger.debug(\"Adding keywords\", Level.GUI,this);\r\n\t\t\tfor(String word : m_listFunctions)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listModifiers)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listLanguage)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listConstants)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\t// Special symbols\r\n\t\t\tLogger.debug(\"Adding symbols\", Level.GUI,this);\r\n\t\t\tm_properties.addSpecialSequence(\"\\\"\\\"\\\"\");\r\n\t\t\tm_properties.addSpecialSequence(\"{\");\r\n\t\t\tm_properties.addSpecialSequence(\"}\");\r\n\t\t\tm_properties.addSpecialSequence(\"(\");\r\n\t\t\tm_properties.addSpecialSequence(\")\");\r\n\t\t\tm_properties.addSpecialSequence(\"[\");\r\n\t\t\tm_properties.addSpecialSequence(\"]\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public void initialize() {\n // Get our home directory\n String homeStr = System.getProperty(\"DTDANALYZER_HOME\");\n if (homeStr == null) homeStr = \".\";\n home = new File(homeStr);\n\n // Read the package properties file\n Properties props = new Properties();\n try {\n props.load(new FileInputStream( new File(homeStr, \"app.properties\") ));\n version = props.getProperty(\"version\");\n buildtime = props.getProperty(\"buildtime\");\n } \n catch (IOException e) {\n System.err.println(\n \"Warning: failed to read app.properties file. This should exist in \" +\n \"the DtdAnalyzer installation directory.\"\n );\n }\n\n // Merge the common and custom options into activeOpts. Custom ones with the same\n // name will override the common ones.\n for (int i = 0; i < optList.length; ++i) {\n String optName = optList[i];\n //System.err.println(\" option \" + optName);\n Option opt = (Option) customOpts.get(optName);\n if (opt == null) opt = (Option) commonOpts.get(optList[i]);\n if (opt == null) {\n System.err.println(\"Strange, undefined command line option '\" + optName +\n \"'. This should never \" +\n \"happen; please create an issue on GitHub.\");\n System.exit(1);\n }\n \n activeOpts.addOption(opt);\n }\n\n // Set System properties for parsing and transforming\n if ( System.getProperty(App.SAX_DRIVER_PROPERTY) == null )\n System.setProperty(App.SAX_DRIVER_PROPERTY, App.SAX_DRIVER_DEFAULT);\n\n if ( System.getProperty(App.TRANSFORMER_FACTORY_PROPERTY) == null )\n System.setProperty(App.TRANSFORMER_FACTORY_PROPERTY, App.TRANSFORMER_FACTORY_DEFAULT);\n\n // Initialize all of the dtd specifiers\n dtdSpecifiers = new DtdSpecifier[numDtds];\n for (int i = 0; i < numDtds; ++i) {\n dtdSpecifiers[i] = new DtdSpecifier();\n }\n numDtdsFound = 0;\n numTitlesFound = 0;\n \n // Parse the command line arguments\n CommandLineParser clp = new PosixParser();\n try {\n line = clp.parse( activeOpts, args );\n\n // Loop through the given command-line options, in the order they were given.\n Option[] lineOpts = line.getOptions();\n for (int i = 0; i < lineOpts.length; ++i) {\n Option opt = lineOpts[i];\n String optName = opt.getLongOpt();\n\n if (!optHandler.handleOption(opt)) {\n // The application didn't know what to do with it, so it\n // must be a common opt, for us to handle.\n handleOption(opt);\n }\n }\n\n \n // Now loop through any left-over arguments, and if we still\n // expect dtd specifiers, then use them up. If there's one extra, and \n // wantOutput is true, then we'll use that for the output filename.\n String[] rest = line.getArgs();\n for (int i = 0; i < rest.length; ++i) {\n //System.err.println(\"looking at \" + rest[i] + \", numDtdsFound is \" + numDtdsFound +\n // \", numDtds is \" + numDtds + \", wantOutput is \" + wantOutput);\n if (numDtdsFound < numDtds) {\n // Use this to initialize a dtd; assume it is a system id.\n dtdSpecifiers[numDtdsFound].idType = 's';\n dtdSpecifiers[numDtdsFound].idValue = rest[i];\n numDtdsFound++;\n }\n else if (wantOutput && output == null) {\n // Use this to initialize the output\n output = new StreamResult(new File(rest[i]));\n }\n else {\n usageError(\"Too many arguments\");\n }\n }\n\n // If we still don't have all the input dtds specified, complain.\n if (numDtdsFound < numDtds) {\n usageError(\"Expected at least \" + numDtds + \" DTD specifier\" + \n (numDtds > 1 ? \"s\" : \"\") + \"!\");\n }\n\n // Default output is to write to standard out\n if (wantOutput && output == null) {\n output = new StreamResult(System.out);\n }\n\n // Validate each dtd specifier object. This also causes dummy XML documents\n // to be created for -s or -p specifiers.\n for (int i = 0; i < numDtds; ++i) {\n dtdSpecifiers[i].validate();\n }\n\n // If no --xslt option was specified, then set the transformer to the\n // identity transformer\n if (xslt == null) {\n try {\n // If no xslt was specified, use the identity transformer\n TransformerFactory f = TransformerFactory.newInstance();\n xslt = f.newTransformer();\n xslt.setOutputProperty(OutputKeys.INDENT, \"yes\");\n }\n catch (TransformerConfigurationException e) {\n System.err.println(\"Error configuring xslt transformer: \" + e.getMessage());\n System.exit(1);\n }\n }\n \n\n }\n catch( ParseException exp ) {\n usageError(exp.getMessage());\n }\n }", "public ConfigPanel(JavaDocSettings settings) {\n this.settings = settings;\n setLayout(new BorderLayout());\n add(panel, BorderLayout.CENTER);\n setupBorders();\n setupTemplatesPanel();\n }", "public AbstractHtmlParser(final String url) {\n super(url);\n }", "public void setValuesFromXML_local(Document dom) {\n\n\t}", "public void setDocumentHandler(DocumentHandler handler)\n {\n contentHandler = new Adapter(handler);\n xmlNames = true;\n }", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "private DOMImplementationRegistry() {\n }", "public XMLParser(Context context) {\r\n\t\tmContext = context;\r\n\r\n\t}", "public void startDocument() throws SAXException {\n\t\tthis.idMap = new HashMap<Integer, ArrayList<String>>();\n\t\tthis.string = new StringBuilder();\n\t\tthis.ids = new ArrayList<ArrayList<String>>();\n\t\tthis.children = new HashMap<Integer, ArrayList<Integer>>();\n\t\tthis.root = 0;\n\t\tthis.edges = new HashMap<Integer, Integer>();\n\t}", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "@Override\n\tpublic void setDocumentLocator(Locator locator) {\n\t\t\n\t}", "@Override\n\tpublic void setDocumentLocator(Locator locator) {\n\t\t\n\t}", "public void startDocument() throws SAXException {\n this.startDocumentReceived = true;\n\n // Reset any previously set result.\n setResult(null);\n\n // Create the actual JDOM document builder and register it as\n // ContentHandler on the superclass (XMLFilterImpl): this\n // implementation will take care of propagating the LexicalHandler\n // events.\n this.saxHandler = new FragmentHandler(getFactory());\n super.setContentHandler(this.saxHandler);\n\n // And propagate event.\n super.startDocument();\n }", "@Override\n public void setDocumentLocator(Locator locator) {\n mLocator = locator;\n }", "public void setDocumentLocator(Locator locator) {\n _locator = locator;\n }", "public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public JAXPParser(Map<String, Boolean> parserFeatures) {\n this();\n loadDocumentBuilderFactory();\n try {\n if(null != parserFeatures) {\n for(Entry<String, Boolean> entry : parserFeatures.entrySet()) {\n documentBuilderFactory.setFeature(entry.getKey(), entry.getValue());\n }\n }\n } catch(Exception e) {\n throw XMLPlatformException.xmlPlatformParseException(e);\n }\n }", "@Before\n public void setUp()\n {\n mockDependencies = new DefaultConfigurationParserMockDependencies();\n assertNotNull(\"'mockDependencies' should be non-null at the end of setup\", mockDependencies);\n mockDependencies.replayMocks();\n\n parser = new DefaultConfigurationParser(mockDependencies.getMockWidgetFactory());\n assertNotNull(\"'parser' should be non-null at the end of setup\", parser);\n }", "private void prepDocument() {\n if (body == null) {\n body = document.appendElement(\"body\");\n }\n\n body.attr(\"id\", \"readabilityBody\");\n\n Elements frames = document.getElementsByTag(\"frame\");\n if (frames.size() > 0) {\n LOG.error(\"Frames. Can't deal. Write code later to look at URLs and fetch\");\n impossible = true;\n return;\n }\n\n Elements stylesheets = document.getElementsByTag(\"style\");\n stylesheets.remove();\n stylesheets = document.select(\"link[rel='stylesheet']\");\n stylesheets.remove();\n\n /* Turn all double br's into p's */\n /*\n * Note, this is pretty costly as far as processing goes. Maybe optimize later.\n */\n handlePP();\n handleDoubleBr();\n fontsToSpans();\n }", "private DefaultHTMLs(String contents){\r\n\t\tthis.contents = contents;\r\n\t}", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public AngularPageConfigurator()\n\t{\n\t\t//No config required\n\t}", "public Config parseConfig(Document document) {\n Config.ConfigBuilder re = new Config.ConfigBuilder();\n\n NodeList configs = document.getElementsByTagName(PROPERTY);\n\n for (int i = 0; i < configs.getLength(); ++i) {\n Node node = configs.item(i);\n\n String name = ((Element) node).getElementsByTagName(NAME).item(0).getTextContent();\n String value = ((Element) node).getElementsByTagName(VALUE).item(0).getTextContent();\n\n switch (name) {\n case KEY_IP:\n re.setHostIp(value);\n break;\n case KEY_PORT:\n re.setHostPort(Integer.parseInt(value));\n break;\n }\n }\n\n return re.build();\n }", "private void init() {\n\t\tthis.xpath = XPathFactory.newInstance().newXPath();\n\t\tthis.xpath.setNamespaceContext(new XPathNSContext());\n\t}", "private void configureScene() {\n uiController.setTitle(resources.getString(\"Launch\"));\n BorderPane sp = new BorderPane();\n this.fileLoadButton = new Button();\n sp.setCenter(fileLoadButton);\n sp.setTop(createSettings());\n fileLoadButton.setText(resources.getString(\"LoadSimulationXML\"));\n fileLoadButton.setOnAction(event -> uiController.loadNewSimulation());\n sp.setPrefWidth(width);\n sp.setPrefHeight(height);\n renderNode(sp);\n }" ]
[ "0.62275195", "0.6218076", "0.5964392", "0.5816723", "0.57549524", "0.5670811", "0.5613063", "0.5570516", "0.55526966", "0.55416065", "0.5529894", "0.55164224", "0.5500844", "0.5453937", "0.54180175", "0.5329511", "0.53278756", "0.53098905", "0.529406", "0.5291749", "0.5286185", "0.52798826", "0.5272514", "0.5259212", "0.5258322", "0.52312976", "0.5231204", "0.5230291", "0.52273077", "0.520598", "0.51910895", "0.5184568", "0.51837426", "0.5170274", "0.51546293", "0.5145673", "0.5126667", "0.5126548", "0.51134557", "0.510283", "0.50971377", "0.50753254", "0.50727993", "0.50675416", "0.50559384", "0.50538456", "0.50482833", "0.504685", "0.5015515", "0.49873215", "0.49836418", "0.4959662", "0.49543872", "0.49493715", "0.49349564", "0.49347782", "0.4930374", "0.49289697", "0.49251008", "0.49247134", "0.49237743", "0.49235404", "0.4920805", "0.49170133", "0.4911585", "0.4910378", "0.49059984", "0.4896998", "0.4895024", "0.488776", "0.4883206", "0.48817432", "0.4879657", "0.487094", "0.486953", "0.48678792", "0.48615906", "0.48572314", "0.48534164", "0.48501205", "0.48452926", "0.48448122", "0.48425937", "0.48351142", "0.48246112", "0.4822185", "0.48174065", "0.48174065", "0.48128435", "0.4811773", "0.48104885", "0.4810423", "0.4810344", "0.48030394", "0.47963488", "0.47961906", "0.47928524", "0.4791236", "0.4785671", "0.4781946", "0.47766644" ]
0.0
-1
quick settings Enables debug mode. Performances are lost.
public LagartoDOMBuilder enableDebug() { config.collectErrors = true; config.parserConfig.setCalculatePosition(true); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void enableDebugging(){\n DEBUG = true;\n }", "public void enableDebug() {\n this.debug = true;\n }", "public void toggleDebugMode() {\r\n DEBUG = !DEBUG;\r\n }", "void setDebugEnabled(boolean value) {\r\n debug_enabled = value;\r\n }", "public static void disableDebugging(){\n DEBUG = false;\n }", "public void toggleDebug() {\n\t\tdebug = debug ? false : true;\n\t}", "static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }", "public void setDebugging(boolean on)\n\t{\n\t\t_options.setDebugging(on);\n\t}", "@Override\n protected boolean isDebugEnable() {\n return false;\n }", "@Override\n\tpublic void setDebugMode(boolean debug) {\n\n\t}", "public static void normalDebug(){\n enableVerbos = false;\n }", "public void debug()\r\n {\n \t\treload();\r\n }", "void setDebug(boolean mode) {\n\t\tdebug = mode;\n\t}", "public void setDebug(boolean debug) {\n this.debug=debug;\n }", "public void setDebug(boolean b) { debug = b; }", "void debug() {\n this.renderer.debug = !this.renderer.debug;\n reload();\n }", "public boolean isDebugEnabled();", "@Override\n\tpublic void setDebugMode(int debugMode) {\n\n\t}", "public void debug() {\n\n\t\t// Establecemos el estado\n\t\tsetEstado(Estado.DEBUG);\n\n\t\t// Obtenemos la proxima tarea\n\t\ttarea = planificador.obtenerProximaTarea();\n\t}", "boolean isDebugEnabled();", "public void setDebugMode(boolean debugMode)\r\n {\r\n this.debugMode = debugMode;\r\n }", "@Override\n\tpublic void setDebug(boolean isDebug) {\n\t\t\n\t}", "public void setDebugMode(boolean status)\n {\n debugMode = status;\n }", "@FXML\n\tpublic void enableDebugLevel() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableDebugLevel.isSelected()) {\n\t\t\tdebugValue.setDisable(false);\n\t\t\tdebugValue.setValue(\"0\");\n\t\t\tSX3Manager.getInstance().addLog(\"Debug Level : Enable.<br>\");\n\t\t} else {\n\t\t\tdebugValue.setDisable(true);\n\t\t\tdebugValue.setValue(\"\");\n\t\t\tSX3Manager.getInstance().addLog(\"Debug Level : Disable.<br>\");\n\t\t}\n\t}", "public void setDebugEnabled(boolean debugEnabled) {\n this.debugEnabled = debugEnabled;\n }", "protected boolean isDebugEnable() {\n return BlurDialogEngine.DEFAULT_DEBUG_POLICY;\n }", "public void disableDebug() {\n this.debug = false;\n }", "public void setDebug(boolean value) {\n\t\tdebug = value;\n\t}", "public void setDebug(boolean debug) {\n this.debug = debug;\n }", "public void setDebug(boolean debug) {\n this.debug = debug;\n }", "public static boolean debugOn()\r\n {\r\n on = true;\r\n System.out.println(\"Debug Mode On\");\r\n return on;\r\n }", "public void setDebugMode(boolean debugMode) {\n this.debugMode = debugMode;\n }", "public void setDebugMode(final boolean dMode) { debugMode = dMode; }", "void k2h_set_debug_level_silent();", "public static void setDebugMode(boolean debugMode) {\n mDebug = debugMode;\n }", "public void debug() {\n\n }", "public void setDebug(boolean f) {\n debug = f;\n }", "public static void setDebug(boolean d) {\n\t\tdebug = d;\n\t}", "public void setDebug(boolean debug) {\n\t\tthis._debug = debug;\n\t}", "public void setProfiling (boolean enable) {\n\tprofiling = enable;\n }", "public static boolean debugOff()\r\n {\r\n on = false;\r\n System.out.println(\"Debug Mode Off\");\r\n return on;\r\n }", "public void continueDebugStep() {\n \tthis.continueDebug = true;\n }", "public boolean getDebugMode() { return debugMode; }", "public void setDebug(boolean isDebug)\n {\n this.isDebug = isDebug;\n this.repaint();\n }", "public void settings() {\n btSettings().push();\n }", "public void setDisplayDebug(boolean displayDebug) {\n this.displayDebug = displayDebug;\n }", "public boolean isDebug();", "public void setDebug(final boolean debug)\n {\n this.debug = debug;\n }", "protected static void setDebugLevel(int debugLevel) {\n Program.debugLevel = debugLevel;\n }", "public static void setDebug(boolean debug) {\n IsDebug = debug;\n if (debug)\n setLevel(VERBOSE);\n else\n setLevel(INFO);\n }", "@Override\n\tpublic boolean isDebugEnabled() {\n\t\treturn debugEnabled;\n\t}", "boolean isDebug();", "boolean isDebug();", "public void switchToDebug() {\r\n\t\tdebugPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"debugPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void setDebugSuspend(final boolean debugSuspend)\n {\n this.debugSuspend = debugSuspend;\n }", "static void debug(boolean b) {\n ProcessRunnerImpl.setGlobalDebug(b);\n }", "public static void setDebug(boolean db) {\n\n\t\tdebug = db;\n\n\t}", "public void setDebug( boolean debugF ) {\n\t\tthis.debug = debugF;\n\t\t}", "public void setDebugSend( boolean debug_on_off )\n {\n debug_send = debug_on_off;\n }", "public boolean isDebugEnabled() {\n return debugEnabled;\n }", "public final void setDebug() {\r\n setLevel(org.apache.log4j.Level.DEBUG);\r\n }", "public static void setDebug(boolean flag)\n\t{\n\t\tm_debugFlag = flag;\n\t}", "static boolean debug(Configuration conf) {\n return conf.getBoolean(DEBUG_FLAG, false);\n }", "@Override\r\n public boolean isDebug() {\n return BuildConfig.DEBUG;\r\n }", "public void setDebuggable(boolean debug) {\n this.debug = debug;\n }", "public boolean getDebugMode()\n {\n return debugMode;\n }", "public boolean isDebugEnabled()\n/* */ {\n/* 250 */ return getLogger().isDebugEnabled();\n/* */ }", "protected void setDebugging(boolean debugging) {\n\t\tthis.debugging = debugging;\n\t}", "public static boolean isDebugMode(Context context) {\n SharedPreferences preference=context.getSharedPreferences(AppSectionsConstant.Storage.PREFERENCE_CONF_SETTING, Context.MODE_PRIVATE);\n boolean bDebugMode=preference.getBoolean(KEY_SETTING_GENERAL_DEBUGMODE, DEFAULT_VAL_DEBUGMODE);\n return bDebugMode;\n }", "public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }", "public void debug( int level ) {\r\n\t\tdebugLevel = level;\r\n\t\ts.debug(debugLevel);\r\n\t}", "public void onDebugButtonClicked(View view) {\n mEnableDebug = !mEnableDebug;\n mLogView.setVisibility(mEnableDebug ? View.VISIBLE : View.GONE);\n }", "public void setDebugOn(boolean flag)\n {\n this.setProperty(GUILoggerSeverityProperty.DEBUG, flag);\n }", "@Override\n public boolean isDebug() {\n return BuildConfig.DEBUG;\n }", "public boolean isDebugMode() {\n return debugMode;\n }", "public static void setDebug(int b) {\n debug = b;\n }", "private static void forceBasicEditorConfiguration() {\n Game.graphics().setBaseRenderScale(1.0f);\n Game.config().debug().setDebugEnabled(true);\n Game.config().graphics().setGraphicQuality(Quality.VERYHIGH);\n Game.config().graphics().setReduceFramesWhenNotFocused(false);\n }", "public static void debug(boolean d) {\n D = d;\n }", "public static void setDebugFlag(boolean flag) {\n\t\tPMA.setDebugFlag(flag);\n\t\tif (flag) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Debug flag enabled. You will receive extra feedback and messages from the Java SDK (like this one)\");\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tPMA.logger.severe(\n\t\t\t\t\t\t\"Debug flag enabled. You will receive extra feedback and messages from the Java SDK (like this one)\");\n\t\t\t}\n\t\t}\n\t}", "@FXML\n\tpublic void logDebugLevel() {\n\t\tcheckFieldEditOrNot = true;\n\t\tSX3Manager.getInstance().addLog(\"Debug Level : \" + debugValue.getValue() + \".<br>\");\n\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\tlogDetails1.getEngine().executeScript(\"window.scrollTo(0, document.body.scrollHeight);\");\n\t}", "public Debug() {\n target = getProject().getObjects()\n .property(JavaForkOptions.class);\n port = getProject().getObjects()\n .property(Integer.class).convention(5005);\n server = getProject().getObjects()\n .property(Boolean.class).convention(true);\n suspend = getProject().getObjects()\n .property(Boolean.class).convention(true);\n finalizedBy(target);\n }", "public Render setDebugPrint() {\r\n\t\t_print = true;\r\n\t\treturn this;\r\n\t}", "private final boolean isDebugMode() {\r\n\tString debug = m_ctx.getInitParameter(\"gateway.debug\");\r\n\tif (debug == null)\r\n\t return false;\r\n\tif (debug.equalsIgnoreCase(\"true\"))\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }", "public boolean isDisplayDebug() {\n return displayDebug;\n }", "public boolean isDebug( ) {\n\t\treturn debug;\n\t}", "private void startDebugControlThread() {\n String dbgCtrlFile = System.getProperty(\"DEBUG_CONTROL\");\n dbgCtrlThread = new DebugControlThread(this, dbgCtrlFile, 1000);\n executorService.submit(dbgCtrlThread);\n }", "static public void setLevel( byte level ) {\n Debug.level=level;\n }", "public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "public boolean openSettings(){\n return true;\n }", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "public void setShowDebugMessage(boolean showDebugMessage) {\r\n\t\tMessageManager.showDebugMessage = showDebugMessage;\r\n\t}", "public boolean getDebug() {\n return debug;\n }", "public boolean getDebug() {\n return debug;\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "protected void setContinueDebug(boolean continueDebug) {\n\t\tthis.continueDebug = continueDebug;\n\t}", "public void startDevMode(int i)\n\t{\n\t\tString filename = \"Song-keys/eyeofthetiger.txt\";\n\n\t\ttry {\n\n\t\t\tbw = new PrintWriter(new FileWriter(filename, true));\n\t\t\twhile(k <= i)\n\t\t\t{\n\t\t\t\tif(keyTime[k] != 0)\n\t\t\t\t{\n\t\t\t\t\tbw.println(side[k]);\n\t\t\t\t\tbw.println(keyTime[k]+-190);\n\t\t\t\t\tSystem.out.println(side[k] + \"\\nhi\" + keyTime[k]+-190 + \"\\n\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.close();\n\n\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void checkDebug() {\n try {\n if (Boolean.getBoolean(\"gfAgentDebug\")) {\n mx4j.log.Log.setDefaultPriority(mx4j.log.Logger.TRACE); // .DEBUG\n }\n } catch (VirtualMachineError err) {\n SystemFailure.initiateFailure(err);\n // If this ever returns, rethrow the error. We're poisoned\n // now, so don't let this thread continue.\n throw err;\n } catch (Throwable t) {\n // Whenever you catch Error or Throwable, you must also\n // catch VirtualMachineError (see above). However, there is\n // _still_ a possibility that you are dealing with a cascading\n // error condition, so you also need to check to see if the JVM\n // is still usable:\n SystemFailure.checkFailure();\n /* ignore */\n }\n }", "public boolean isDebug() {\n\t\treturn debug;\n\t}" ]
[ "0.76729864", "0.7579032", "0.70208436", "0.6929597", "0.68900806", "0.6887006", "0.68781394", "0.68577725", "0.68145263", "0.68007624", "0.6699028", "0.6680063", "0.66471475", "0.6628075", "0.6592409", "0.65839803", "0.65665805", "0.6554973", "0.65369856", "0.6522949", "0.6519702", "0.6513188", "0.650746", "0.65038955", "0.64897025", "0.6480204", "0.647179", "0.64457804", "0.64130485", "0.64130485", "0.6400617", "0.63920397", "0.6355159", "0.63368464", "0.63297105", "0.6312595", "0.6295825", "0.6258975", "0.6258222", "0.6239883", "0.62350035", "0.6230531", "0.6213593", "0.6210415", "0.62034607", "0.6192385", "0.6188958", "0.61848605", "0.6158191", "0.6139484", "0.61324054", "0.6129826", "0.6129826", "0.6113337", "0.6064832", "0.6063109", "0.6061446", "0.6058454", "0.6013904", "0.6011116", "0.59994626", "0.599357", "0.59622467", "0.59609646", "0.5959902", "0.59426314", "0.5930201", "0.59112155", "0.59094137", "0.58901274", "0.58689487", "0.5866074", "0.5847756", "0.5840603", "0.582667", "0.58222437", "0.5816628", "0.5807484", "0.5766979", "0.5752153", "0.57235837", "0.5705373", "0.5691689", "0.5677635", "0.5671526", "0.5669633", "0.5656367", "0.56271684", "0.5621524", "0.5613831", "0.5606337", "0.55953693", "0.5587651", "0.5587651", "0.55794406", "0.556078", "0.5550395", "0.55473495", "0.55299515", "0.551817" ]
0.57105386
81
Enables HTML5 parsing mode.
public LagartoDOMBuilder enableHtmlMode() { config.ignoreWhitespacesBetweenTags = false; // collect all whitespaces config.parserConfig.setCaseSensitive(false); // HTML is case insensitive config.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA config.enabledVoidTags = true; // list of void tags config.selfCloseVoidTags = false; // don't self close void tags config.impliedEndTags = true; // some tags end is implied config.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments config.parserConfig.setParseXmlTags(false); // enable XML mode in parsing return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native final boolean html5() /*-{\n\t\treturn this.html5;\n\t}-*/;", "public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way\n\t\tconfig.enabledVoidTags = false; // there are no void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close empty tags (can be changed!)\n\t\tconfig.impliedEndTags = false; // no implied tag ends\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(true); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "public native final HistoryClass html5(boolean val) /*-{\n\t\tthis.html5 = val;\n\t\treturn this;\n\t}-*/;", "public void setHtmlMode(boolean mode)\r\n\t{\r\n\t\thtmlMode = mode;\r\n\t}", "public void setLenientParseMode(boolean enabled)\n/* */ {\n/* 1260 */ this.lenientParse = enabled;\n/* */ }", "public boolean lenientParseEnabled()\n/* */ {\n/* 1271 */ return this.lenientParse;\n/* */ }", "protected static synchronized void setStrictParsing(final boolean enable)\n {\n EASMessage.s_strictParsing = new Boolean(enable);\n }", "IParser setPrettyPrint(boolean thePrettyPrint);", "public boolean isRawInlineHtmlEnabled()\n {\n \treturn rawInlineHtmlEnabled;\n }", "public LagartoDOMBuilder enableDebug() {\n\t\tconfig.collectErrors = true;\n\t\tconfig.parserConfig.setCalculatePosition(true);\n\t\treturn this;\n\t}", "@Override\n\t\t\t\tpublic boolean hasParser() {\n\t\t\t\t\treturn true;\n\t\t\t\t}", "public void setEncodeHtml(String off) {\n\t\ttry {\n\t\t\tencodeHtml = Integer.parseInt(off);\n\t\t} catch (Exception e) {\n\t\t\tencodeHtml = 1;\n\t\t}\n\t}", "void setBasicMode() {basicMode = true;}", "IParser setDontEncodeElements(Collection<String> theDontEncodeElements);", "protected static synchronized boolean strictParsingEnabled()\n {\n if (EASMessage.s_strictParsing == null)\n {\n EASMessage.s_strictParsing = Boolean.valueOf(MPEEnv.getEnv(EASMessage.MPEENV_PARSE_STRICT, \"false\"));\n }\n\n return EASMessage.s_strictParsing.booleanValue();\n }", "public boolean canBuildParser() {\r\n return isParser(getFormatter());\r\n }", "public JsonFactory enable(JsonParser.Feature f)\n/* */ {\n/* 579 */ this._parserFeatures |= f.getMask();\n/* 580 */ return this;\n/* */ }", "public void experimentalFeatures(boolean b) {\n setSelected(shellBot.checkBox(\"Enable experimental browser features (Web Components)\"), b);\n }", "public void enableStrictMode(){\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n }", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "default boolean visitContent() {\n\t\treturn true;\n\t}", "@Test (dataProvider = \"blockImportDataProvider\")\r\n public void blockImport(/*BlockImportMode*/int blockImportMode) throws Exception\r\n {\n final String HTML = \"\\n <html>\\n <div style='border:dotted'>\\n <div style='border:solid'>\\n <p>paragraph 1</p>\\n <p>paragraph 2</p>\\n </div>\\n </div>\\n </html>\";\r\n MemoryStream stream = new MemoryStream(Encoding.getUTF8().getBytes(HTML));\r\n\r\n HtmlLoadOptions loadOptions = new HtmlLoadOptions();\r\n // Set the new mode of import HTML block-level elements.\r\n loadOptions.setBlockImportMode(blockImportMode);\r\n \r\n Document doc = new Document(stream, loadOptions);\r\n doc.save(getArtifactsDir() + \"HtmlLoadOptions.BlockImport.docx\");\r\n //ExEnd\r\n }", "@Test\n public void parserHtml() throws JSONException, IOException {\n }", "public void setHTML(String html);", "public static void setXmlEnableIgnoringWhitespaceFromGui(Boolean inputStatus)\r\n {\r\n enableIgnoringWhitespaceFromGui = inputStatus;\r\n }", "public void setEditorParser( GosuParser parser )\n {\n _parser = parser;\n }", "public PoaMaestroMultivaloresHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public void enableVideoAdaptiveJittcomp(boolean enable);", "boolean shouldUseOldSyntax() {\n return isJsLibrary;\n }", "public AbstractHtmlParser(final String url) {\n super(url);\n }", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "@Override\n public void setWhitespacePreserving(boolean isWhitespacePreserving) {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n documentBuilderFactory.setIgnoringElementContentWhitespace(!isWhitespacePreserving);\n }", "@Override\r\n \tprotected boolean supportInterpreter() {\n \t\treturn false;\r\n \t}", "IViewParserConfiguration getViewParserConfiguration();", "public Element setPrettyPrint(boolean pretty_print) {\n\t\tthis.pretty_print = pretty_print;\n\t\treturn (this);\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.html5_main);\r\n\t\tsetComponent();\r\n\t}", "public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public boolean isFacebeautyEnabled() {\n return false;\n }", "public HTMLParser () {\r\n this.pagepart = null;\r\n }", "public void setPrettify(boolean prettify) {\n _out.setPrettify(prettify);\n }", "public void enableAnimation(boolean enableAnimation){\n this.enableAnimation = enableAnimation;\n }", "public void setWhitelistEnabled(Boolean whitelistEnabled) {\n this.whitelistEnabled = whitelistEnabled;\n }", "public boolean hasParse();", "public void enableDebug() {\n this.debug = true;\n }", "protected boolean isShowFormatterSetting() {\n \t\treturn true;\n \t}", "public Parser(boolean debugMe)\n{\n yydebug=debugMe;\n}", "public interface iOnParse {\n\tvoid onParse(String htmlEle);\n}", "public abstract boolean isParseCorrect();", "@Override\n public boolean isCodeFragmentEvaluationSupported() {\n // TODO: Add support for this if possible\n return false;\n }", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"---解析文档开始----\");\n\t}", "@SuppressLint(\"SetJavaScriptEnabled\")\n private void configWebView() {\n mWebView = new WebView(getApplicationContext());\n mWebViewContainer.addView(mWebView);\n WebSettings settings = mWebView.getSettings();\n\n // 设置无图模式\n //settings.setBlockNetworkImage(SPUtil.getBoolean(Constants.SETTING_NO_IMAGE));\n\n // 设置离线设置\n //boolean offline = SPUtil.getBoolean(Constants.SETTING_AUTO_DOWNLOAD);\n //settings.setAppCacheEnabled(offline);\n //settings.setDomStorageEnabled(offline);\n //settings.setDatabaseEnabled(offline);\n\n // 设置缓存模式\n //boolean netWorkAvailable = NetWorkUtil.isNetWorkAvailable(AppUtil.getAppContext());\n //settings.setCacheMode(netWorkAvailable ? WebSettings.LOAD_DEFAULT : WebSettings.LOAD_CACHE_ONLY);\n\n // 设置大号字体\n /* if (SPUtil.getBoolean(Constants.SETTING_BIG_FONT)) {\n settings.setMinimumFontSize(25);\n }*/\n\n // 激活java script\n settings.setJavaScriptEnabled(true);\n\n // 充满全屏\n settings.setLoadWithOverviewMode(true);\n\n // 适配移动端屏幕\n settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);\n\n // 支持缩放\n settings.setSupportZoom(true);\n settings.setBuiltInZoomControls(true);\n\n // 设置可以访问文件内容\n settings.setAllowContentAccess(true);\n\n // 设置夜景模式\n //mWebView.setDayOrNight(!isNightMode());\n }", "private void TokenStartTag(Token token, TreeConstructor treeConstructor) {\n\t\tif (token.getValue().equals(\"html\"))\r\n\t\t\tTokenAnythingElse(token, treeConstructor, false);\r\n\t\telse\r\n\t\t\tTokenAnythingElse(token, treeConstructor, true);\r\n\t}", "public MedlineParser(boolean includeRawXML) {\n this(null,includeRawXML);\n }", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"开始解析文档\");\n\t}", "private static String getHtmlExtension(String markupName) {\r\n\t\treturn \"html\";\r\n\t}", "public boolean isSimpleFormEnabled()\n {\n return false;\n }", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "void setParser(CParser parser);", "public void startDocument()\n throws SAXException {\n newContent = new StringBuffer();\n // TODO: what is the proper way to set this?\n newContent.append(\"<?xml version=\\\"1.0\\\"?>\");\n }", "@Override\n public UrlExtras.Parser reset(final String url) {\n return new DevJavaUrlParser().setUrl(url);\n }", "public void test431883() throws Exception\n {\n executeTidyTest(\"431883.html\");\n\n assertLogContains(\"Doctype given is \\\"-//W3C//DTD HTML 4.0\");\n }", "public final boolean synpred5_InternalSafetyParser() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_InternalSafetyParser_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "@Override\r\n\tpublic DTextArea setHtmlOnCanPlayThrough(final String script) {\r\n\t\tsuper.setHtmlOnCanPlayThrough(script) ;\r\n\t\treturn this ;\r\n\t}", "public boolean videoAdaptiveJittcompEnabled();", "@SuppressLint(\"SetJavaScriptEnabled\")\n private void configureWebViewSettings() {\n WebSettings settings = getSettings();\n settings.setJavaScriptEnabled(true);\n settings.setAppCacheEnabled(true);\n settings.setDomStorageEnabled(true);\n settings.setBuiltInZoomControls(true);\n settings.setLoadWithOverviewMode(true);\n settings.setUseWideViewPort(true);\n settings.setSupportMultipleWindows(false); // to enable opening links which require opening a new tab\n settings.setLoadsImagesAutomatically(true);\n settings.setBuiltInZoomControls(true);\n }", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "abstract boolean parse ();", "public static native void setUseDom(boolean value)/*-{\r\n\t\t$wnd.Ext.DomHelper.useDom = value;\r\n\t}-*/;", "public boolean videoPreviewEnabled();", "public static void setEnabled(boolean mustEnable)\n\t{\n\t\tAngularPageConfigurator.enabled = mustEnable;\n\t}", "public Parser(boolean debugMe)\n {\n yydebug=debugMe;\n }", "public void setEnabled(boolean enabled) {\r\n\t}", "public void test427844() throws Exception\n {\n executeTidyTest(\"427844.html\");\n\n assertNoWarnings();\n }", "public static boolean httpImportAnonymizerEnabled() {\n\t\tif ((xml == null) || (httpImportAnonymize == null)) return false;\n\t\treturn httpImportAnonymize.equals(\"yes\");\n\t}", "public static void setEnableExpressionEditor(final boolean flag) {\n ENABLE_EXPRESSION_EDITOR = flag;\n }", "public SPARQLBooleanXMLParser() {\n\t\tsuper();\n\t}", "@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setXmlStandalone(boolean xmlStandalone);", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public final boolean isEnabled(JsonParser.Feature f)\n/* */ {\n/* 596 */ return (this._parserFeatures & f.getMask()) != 0;\n/* */ }", "public void enableAudioAdaptiveJittcomp(boolean enable);", "public void test434047() throws Exception\n {\n // Info: Doctype given is \"-//W3C//DTD HTML 4.01//EN\"\n // Info: Document content looks like HTML 4.01 Strict\n // No warnings or errors were found.\n\n executeTidyTest(\"434047.html\");\n\n assertLogContains(\"HTML 4.01 Strict\");\n\n }", "public void setParseWithXMP(boolean inValue) {\n if (alreadyParsed && doXMP != inValue) {\n throw new NuxeoException(\n \"Value of 'doXML' cannot be modified after the blob has been already parsed.\");\n }\n doXMP = inValue;\n }", "public PoaMaestroMultivaloresHTML(DocumentLoader loader) { this(loader, true); }", "public void test435922() throws Exception\n {\n // line 6 column 1 - Warning: <input> isn't allowed in <body> elements\n // line 7 column 3 - Warning: inserting implicit <form>\n // line 7 column 3 - Warning: missing </form>\n // line 7 column 3 - Warning: <form> lacks \"action\" attribute\n // Info: Doctype given is \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n // Info: Document content looks like HTML 4.01 Transitional\n // 4 warnings, 0 errors were found!\n\n executeTidyTest(\"435922.html\");\n assertWarnings(4);\n }", "@Override\n public void configureForXmlConformance() {\n mConfig.configureForXmlConformance();\n }", "public static boolean isEnabled()\n\t{\n\t\treturn AngularPageConfigurator.enabled;\n\t}", "public void setIsPrettyPrinted(boolean isPrettyPrinted) {\r\n this.isPrettyPrinted = isPrettyPrinted;\r\n }", "@org.junit.Test\n public static final void testSgmlShortTags() {\n junit.framework.TestCase.assertEquals(\"<p></p>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testSgmlShortTags()|0\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<p/b/\")));// Short-tag discarded.\n\n junit.framework.TestCase.assertEquals(\"<p></p>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testSgmlShortTags()|1\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<p<b>\")));// Discard <b attribute\n\n // This behavior for short tags is not ideal, but it is safe.\n junit.framework.TestCase.assertEquals(\"<p href=\\\"/\\\">first part of the text&lt;/&gt; second part</p>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testSgmlShortTags()|2\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<p<a href=\\\"/\\\">first part of the text</> second part\")));\n }", "@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}", "public HTMLScreenFragment() {}", "void handleStartTag(String sTagName, HashMap attributes,boolean standAlone) {\r\n pageList.add(new StandAloneElement(sTagName, attributes, null));\r\n }", "public boolean enabled(){\n return enabled;\n }", "public void test553414() throws Exception\n {\n executeTidyTest(\"553414.html\");\n assertLogContains(\"given is \\\"-//W3C//DTD XHTML 1.0 Strict//EN\\\"\");\n assertLogContains(\"looks like XHTML 1.0 Transitional\");\n assertWarnings(1);\n }", "public void mode() {\n APIlib.getInstance().addJSLine(jsBase + \".mode();\");\n }", "default boolean supportsOptions() {\n return false;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(true);\r\n \r\n }", "public void setPrettyPrint(boolean prettyPrint)\n/* */ {\n/* 136 */ this.prettyPrint = Boolean.valueOf(prettyPrint);\n/* 137 */ configurePrettyPrint();\n/* */ }", "public void test552861() throws Exception\n {\n executeTidyTest(\"552861.html\");\n // should complain about invalid \"with\" attribute\n assertWarnings(1);\n }", "public void enableVideoDisplay(boolean enable);" ]
[ "0.6169635", "0.5503197", "0.52649146", "0.52148706", "0.5196532", "0.51773477", "0.51682997", "0.49446332", "0.49309075", "0.48669565", "0.4779322", "0.4777378", "0.45863518", "0.45436895", "0.44786382", "0.4443442", "0.44225135", "0.44197887", "0.4361869", "0.42851788", "0.42829022", "0.42817748", "0.42617232", "0.4246606", "0.42432544", "0.42367178", "0.42293596", "0.41682178", "0.41656718", "0.41618142", "0.41615352", "0.41502607", "0.41485116", "0.41174966", "0.41137022", "0.40914154", "0.40844718", "0.40821055", "0.40749905", "0.40698883", "0.405374", "0.40313515", "0.40266705", "0.40178707", "0.40033665", "0.40024695", "0.3994472", "0.39849633", "0.39840484", "0.39688584", "0.39557198", "0.39517206", "0.39410067", "0.39397112", "0.39366937", "0.3932544", "0.3931336", "0.39303872", "0.3927755", "0.39269358", "0.3919258", "0.39186758", "0.39145663", "0.39137903", "0.39113578", "0.3905382", "0.39047176", "0.39046705", "0.39031383", "0.39001313", "0.3893098", "0.38918263", "0.38849694", "0.38829118", "0.38707685", "0.38629752", "0.3862278", "0.38563177", "0.38516635", "0.38460323", "0.38453645", "0.38441575", "0.38416642", "0.38381004", "0.38376483", "0.38371712", "0.38352504", "0.3834374", "0.38277334", "0.38258696", "0.38183886", "0.38175827", "0.38097265", "0.38067874", "0.37971553", "0.3791151", "0.37894621", "0.37892777", "0.3786502", "0.37862852" ]
0.66648155
0
Enables XML parsing mode.
public LagartoDOMBuilder enableXmlMode() { config.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content config.parserConfig.setCaseSensitive(true); // XML is case sensitive config.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way config.enabledVoidTags = false; // there are no void tags config.selfCloseVoidTags = false; // don't self close empty tags (can be changed!) config.impliedEndTags = false; // no implied tag ends config.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments config.parserConfig.setParseXmlTags(true); // enable XML mode in parsing return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static synchronized void setStrictParsing(final boolean enable)\n {\n EASMessage.s_strictParsing = new Boolean(enable);\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public void openXml() throws ParserConfigurationException, TransformerConfigurationException, SAXException {\n\n SAXTransformerFactory saxTransformerFactory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();\n transformer = saxTransformerFactory.newTransformerHandler();\n\n // pretty XML output\n Transformer serializer = transformer.getTransformer();\n serializer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n serializer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setResult(result);\n transformer.startDocument();\n transformer.startElement(null, null, \"inserts\", null);\n }", "@Override\n public void setValidationMode(int validationMode) {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n switch (validationMode) {\n case XMLParser.NONVALIDATING: {\n documentBuilderFactory.setValidating(false);\n // documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, null);\n return;\n }\n case XMLParser.DTD_VALIDATION: {\n documentBuilderFactory.setValidating(true);\n XMLHelper.allowExternalDTDAccess(documentBuilderFactory, \"all\", false);\n // documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, null);\n return;\n }\n case XMLParser.SCHEMA_VALIDATION: {\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setValidating(true);\n XMLHelper.allowExternalAccess(documentBuilderFactory, \"all\", false);\n } catch (IllegalArgumentException e) {\n // This parser does not support XML Schema validation so leave it as\n // a non-validating parser.\n }\n return;\n }\n }\n }", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"---解析文档开始----\");\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"开始解析文档\");\n\t}", "private void enableServicesXMLBrowse(){\n\t\txmlBrowseButton.setEnabled(true);\n\t\tservicesXMLPath.setEnabled(true);\n\t}", "public LagartoDOMBuilder enableDebug() {\n\t\tconfig.collectErrors = true;\n\t\tconfig.parserConfig.setCalculatePosition(true);\n\t\treturn this;\n\t}", "@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setXmlStandalone(boolean xmlStandalone);", "@Override\n public void configureForXmlConformance() {\n mConfig.configureForXmlConformance();\n }", "@Override\r\n\t\tpublic void startDocument() throws SAXException {\n\t\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tsuper.startDocument();\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tsuper.startDocument();\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tsuper.startDocument();\n\t}", "@Override\n\t\tpublic void startDocument() throws SAXException {\n\t\t\t\n\t\t}", "public void setLenientParseMode(boolean enabled)\n/* */ {\n/* 1260 */ this.lenientParse = enabled;\n/* */ }", "@Override\n public void startDocument() throws SAXException {\n }", "@Override\r\n public void startDocument() throws SAXException {\n }", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\t\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\t\n\t}", "protected static synchronized boolean strictParsingEnabled()\n {\n if (EASMessage.s_strictParsing == null)\n {\n EASMessage.s_strictParsing = Boolean.valueOf(MPEEnv.getEnv(EASMessage.MPEENV_PARSE_STRICT, \"false\"));\n }\n\n return EASMessage.s_strictParsing.booleanValue();\n }", "public void enable() {\r\n m_enabled = true;\r\n }", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public void startDocument()\n throws SAXException {\n newContent = new StringBuffer();\n // TODO: what is the proper way to set this?\n newContent.append(\"<?xml version=\\\"1.0\\\"?>\");\n }", "public static void setXmlEnableIgnoringWhitespaceFromGui(Boolean inputStatus)\r\n {\r\n enableIgnoringWhitespaceFromGui = inputStatus;\r\n }", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "public void startDocument() throws SAXException {\n \n }", "@JsonProperty(\"enabled\")\r\n @JacksonXmlProperty(localName = \"enabled\", isAttribute = true)\r\n public void setEnabled(String enabled) {\r\n this.enabled = enabled;\r\n }", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "public void setEnable(boolean enable) {\n this.enable = enable;\n }", "public boolean lenientParseEnabled()\n/* */ {\n/* 1271 */ return this.lenientParse;\n/* */ }", "@Override\n\tpublic void parseXML(Element root) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tsuper.startDocument();\n\t\tbuilder = new StringBuilder();\n\t}", "@Override\n\t\t\t\tpublic void startDocument() throws SAXException {\n\t\t\t\t\tsuper.startDocument();\n\t\t\t\t\tbuilder = new StringBuilder();\n\t\t\t\t}", "public void startDocument ()\n throws SAXException\n {\n // no op\n }", "public void setEnable(String enable) {\r\n this.enable = enable == null ? null : enable.trim();\r\n }", "public boolean setIndividualParamValueFromXML(Element el) {\n\t\treturn false;\n\t}", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "@Override\r\n\tpublic void startDocument() throws SAXException {\n\t\tsuper.startDocument();\r\n\t\tSystem.out.println(\"Start Document\");\r\n\t}", "public SPARQLBooleanXMLParser() {\n\t\tsuper();\n\t}", "@Override\n public void XML_startDocument(Atz_XML_SAX_DataHandler sourceHandler) {\n flagDelegateParsing = false;\n }", "public void setEnabled(boolean enabled) {\r\n\t}", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void enable() {\n \t\t\tsetEnabled(true);\n \t\t}", "public void setXML(String xml) {\n\t\tthis.xml = xml;\n\t}", "protected boolean importElements(XmlPullParser xpp, Epml epml) {\n\t\treturn false;\n\t}", "public void init() {\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\t//factory.setValidating(true);\r\n\t\t\t//factory.setFeature(\r\n\t\t\t//\t\t\"http://apache.org/xml/features/validation/schema\", true);\r\n\t\t\tfactory.setNamespaceAware(true);\r\n\t\t\t_parser = factory.newSAXParser();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tLoggerUtilsServlet.logErrors(e);\r\n\t\t}\r\n\t}", "private AbstractSAXParser getSecureSAXParser() throws SAXException {\n val saxParser = new org.apache.xerces.parsers.SAXParser();\n\n // disallow DOCTYPE declaration\n saxParser.setFeature(\"http://apache.org/xml/features/disallow-doctype-decl\", true);\n // do not include external general entities\n saxParser.setFeature(\"http://xml.org/sax/features/external-general-entities\", false);\n // do not include external parameter entities or the external DTD subset\n saxParser.setFeature(\"http://xml.org/sax/features/external-parameter-entities\", false);\n // do not include external DTDs\n saxParser.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n\n return saxParser;\n }", "public void enable();", "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "IParser setPrettyPrint(boolean thePrettyPrint);", "public boolean setEnabled(boolean enable);", "@Override\n public void setEnabled(boolean enabled) {\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "@Override\n public void setNamespaceAware(boolean isNamespaceAware) {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n documentBuilderFactory.setNamespaceAware(isNamespaceAware);\n }", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }", "public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "void startDocument()\n throws SAXException\n {\n contentHandler.setDocumentLocator(this);\n contentHandler.startDocument();\n attributesList.clear();\n }", "public void setEnabled(String enabled) {\r\n\t\tthis.enabled = enabled;\r\n\t}", "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "public void setEnabled(java.lang.Boolean enabled) {\n this.enabled = enabled;\n }", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public void setXmlDecl(boolean _writeXmlDecl) {\n\t\tthis.writeXmlDecl = _writeXmlDecl;\n\t}", "public void enableDebug() {\n this.debug = true;\n }", "private boolean parseSome()\n throws SAXException, IOException, IllegalAccessException,\n java.lang.reflect.InvocationTargetException\n {\n if(fConfigSetInput!=null)\n {\n Object ret=(Boolean)(fConfigParse.invoke(fPullParserConfig,parmsfalse));\n return ((Boolean)ret).booleanValue();\n }\n else\n {\n Object ret=fParseSome.invoke(fIncrementalParser,noparms);\n return ((Boolean)ret).booleanValue();\n }\n }", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\ttry {\n\t\t\treset();\n\n\t\t\tif (writeXmlDecl) {\n\t\t\t\tString e = \"\";\n\t\t\t\tif (encoding != null) {\n\t\t\t\t\te = \" encoding=\\\"\" + encoding + '\\\"';\n\t\t\t\t}\n\n\t\t\t\twriteXmlDecl(\"<?xml version=\\\"1.0\\\"\" + e + \" standalone=\\\"yes\\\"?>\");\n\t\t\t}\n\n\t\t\tif (header != null) {\n\t\t\t\twrite(header);\n\t\t\t}\n\n\t\t\tsuper.startDocument();\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}", "public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}", "public void setEnabled(boolean enabled) {\r\n\t\tthis.enabled = enabled;\r\n\t}", "public void setEnabled(boolean enabled) {\n mEnabled = enabled;\n }", "public void setEnabled(Boolean enabled) {\r\n this.enabled = enabled;\r\n }", "void xsetLeading(org.apache.xmlbeans.XmlBoolean leading);", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "boolean streamXML(String path,\n ContentHandler contentHandler,\n LexicalHandler lexicalHandler)\n throws SAXException, ProcessingException;", "public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }", "public Boolean enableExpress() {\n return this.enableExpress;\n }", "public void startDocument() throws SAXException {\n this.startDocumentReceived = true;\n\n // Reset any previously set result.\n setResult(null);\n\n // Create the actual JDOM document builder and register it as\n // ContentHandler on the superclass (XMLFilterImpl): this\n // implementation will take care of propagating the LexicalHandler\n // events.\n this.saxHandler = new FragmentHandler(getFactory());\n super.setContentHandler(this.saxHandler);\n\n // And propagate event.\n super.startDocument();\n }", "public JAXPParser(Map<String, Boolean> parserFeatures) {\n this();\n loadDocumentBuilderFactory();\n try {\n if(null != parserFeatures) {\n for(Entry<String, Boolean> entry : parserFeatures.entrySet()) {\n documentBuilderFactory.setFeature(entry.getKey(), entry.getValue());\n }\n }\n } catch(Exception e) {\n throw XMLPlatformException.xmlPlatformParseException(e);\n }\n }", "@Override\r\n\tpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\t}", "public final void setEnabled( boolean enabled )\n {\n this.enabled = enabled;\n }", "@Override\n public void setWhitespacePreserving(boolean isWhitespacePreserving) {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n documentBuilderFactory.setIgnoringElementContentWhitespace(!isWhitespacePreserving);\n }", "public void setEnable(boolean b) { this.editText.setEnabled(b); }", "private void disableServicesXMLBrowse(){\n\t\txmlBrowseButton.setEnabled(false);\n\t\tservicesXMLPath.setEnabled(false);\n\t}", "public XMLPipeline()\r\n throws SAXException {\r\n this(true, true, true, true,\r\n null,\r\n \"org.apache.xerces.parsers.SAXParser\"\r\n );\r\n }", "@Deprecated\n public void setEnable(boolean enable) {\n this.skip = !enable;\n }", "@Before\n\tpublic void initParser() {\n\t\tXMLTagParser.init(file);\n\t}" ]
[ "0.6398348", "0.59428155", "0.57238525", "0.55966336", "0.5591583", "0.5541223", "0.55323565", "0.5531158", "0.5510104", "0.540707", "0.5399174", "0.53942525", "0.53942525", "0.53942525", "0.53612167", "0.5357113", "0.5356297", "0.5353416", "0.5339415", "0.5339415", "0.5339122", "0.53288734", "0.53248274", "0.53129476", "0.53009903", "0.5298837", "0.5291888", "0.5273953", "0.52483445", "0.520069", "0.51862955", "0.518371", "0.51749694", "0.51738095", "0.516193", "0.5157413", "0.5139927", "0.51319444", "0.51285976", "0.51225847", "0.50976163", "0.50865763", "0.50832564", "0.50617105", "0.50353193", "0.5018578", "0.50164807", "0.5013939", "0.4976338", "0.49690264", "0.49676025", "0.49553326", "0.4948616", "0.49414927", "0.49413064", "0.4924747", "0.49204898", "0.49144268", "0.49144268", "0.49140295", "0.49140295", "0.49100032", "0.49100032", "0.49100032", "0.49100032", "0.49100032", "0.49041638", "0.48947674", "0.4877177", "0.48733324", "0.4870861", "0.4870861", "0.4870861", "0.4870861", "0.48688436", "0.4852631", "0.48508298", "0.4844628", "0.4834496", "0.48301193", "0.48300695", "0.48289412", "0.48259458", "0.48205104", "0.4818674", "0.48185694", "0.48185694", "0.48185694", "0.48185694", "0.48154762", "0.4813359", "0.4812329", "0.48084784", "0.48080224", "0.48051772", "0.47954842", "0.47809017", "0.47786728", "0.47748232", "0.47686833" ]
0.7831819
0
parse Creates DOM tree from provided content.
@Override public Document parse(final char[] content) { final LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content); return parseWithLagarto(lagartoParser); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "@Override\n\tpublic Document parse(final CharSequence content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "private void parse() {\n stack.push(documentNode);\n try {\n Token token = lexer.nextToken();\n boolean tagOpened = false;\n\n while (token.getType() != TokenType.EOF) {\n\n if (token.getType() == TokenType.TEXT) {\n TextNode textNode = new TextNode((String) token.getValue());\n ((Node) stack.peek()).addChild(textNode);\n\n } else if (token.getType() == TokenType.TAG_OPEN) {\n if (tagOpened) {\n throw new SmartScriptParserException(\"The tag was previously open but is not yet closed.\");\n }\n tagOpened = true;\n lexer.setState(LexerState.TAG);\n\n } else if (token.getType() == TokenType.TAG_NAME && token.getValue().equals(\"=\")) {\n parseEchoTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ff][Oo][Rr]\")) {\n parseForTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ee][Nn][Dd]\")) {\n parseEndTag();\n tagOpened = false;\n } else {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n token = lexer.nextToken();\n }\n if (!(stack.peek() instanceof DocumentNode)) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n } catch (LexerException | EmptyStackException exc) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n}", "@Override\npublic\tvoid parseInput() {\n InputStream is = new ByteArrayInputStream(this.body.toString().getBytes());\n\t\t\n\t\t\n\t\ttry {\n\t\t\tthis.domIn = new XMLInputConversion(is);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.rootXML = this.domIn.extractDOMContent();\n\t}", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "private Document parseFile() throws IOException {\n\tString contents = instream_to_contents();\n\tDocument doc = Jsoup.parse(contents);\n\treturn doc;\n }", "Parse createParse();", "void parse();", "@Override\n protected Document parseAsDom(final Document input) {\n return input;\n }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "public DOMParser() { ; }", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public synchronized Node parse(String url) throws IOException,SAXException\n {\n if(log.isDebugEnabled())\n log.debug(\"parse: \"+url);\n return parse(new InputSource(url));\n }", "public Document parse (String filePath) {\n Document document = null;\n try {\n /* DOM parser instance */\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n /* parse an XML file into a DOM tree */\n document = builder.parse(filePath);\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return document;\n }", "@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;", "public SceneObject parse(XmlPullParser parser) throws XmlPullParserException, IOException {\n while (parser.getEventType() != XmlPullParser.START_TAG) {\n parser.next();\n if (parser.getEventType() == XmlPullParser.END_DOCUMENT)\n throw new XmlPullParserException(\"Unexpected END_DOCUMENT\");\n }\n\n SceneObject object = createSceneObject(parser);\n\n if (object == null)\n return null;\n\n float opacity = -1;\n boolean visible = object.isVisible();\n int renderingOrder = -1;\n\n // Parse attributes\n AttributeSet attributeSet = Xml.asAttributeSet(parser);\n for (XmlAttributeParser attributeParser : mAttributeParsers) {\n attributeParser.parse(mContext, object, attributeSet);\n }\n\n // TODO refactor\n for (int i = 0; i < attributeSet.getAttributeCount(); ++i) {\n\n switch (attributeSet.getAttributeName(i)) {\n\n case \"visible\":\n visible = attributeSet.getAttributeBooleanValue(i, visible);\n break;\n\n case \"opacity\":\n opacity = Float.parseFloat(parser.getAttributeValue(i));\n break;\n\n case \"renderingOrder\":\n renderingOrder = attributeSet.getAttributeIntValue(i, renderingOrder);\n break;\n }\n }\n\n // TODO refactor\n // Apply renderingOrder\n if (renderingOrder >= 0 && object.getRenderData() != null) {\n object.getRenderData().setRenderingOrder(renderingOrder);\n }\n\n // Parse children\n while (parser.next() != XmlPullParser.END_TAG) {\n\n if (parser.getEventType() == XmlPullParser.START_TAG) {\n SceneObject child = parse(parser);\n if (child != null) {\n object.addChildObject(child);\n }\n }\n }\n\n // TODO refactor\n /*\n * These are propagated to children so must be called after children are\n * added.\n */\n\n // Apply opacity\n if (opacity >= 0.0f) {\n object.setOpacity(opacity);\n }\n\n // Apply visible\n object.setVisible(visible);\n\n return object;\n }", "private static void handleParser(char c) {\n if(c == '\\n'){\r\n return;\r\n }\r\n switch (state){\r\n case OUT_OF_TAG:{\r\n if(c == '<'){\r\n if(SAXParsedData.innerText.trim().length() != 0) {\r\n parserHandler.innerText(SAXParsedData.innerText);\r\n }\r\n SAXParsedData.innerText = \"\";\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n } else if (c == '>') {\r\n state = SAXParserState.SYNTAX_ERROR;\r\n } else {\r\n SAXParsedData.innerText += c;\r\n }\r\n break;\r\n }\r\n case BEGIN_START_OR_END_TAG:{\r\n if(c == '/') {\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.IN_END_TAG;\r\n }else if(c == '?' || c == '!'){\r\n state = SAXParserState.METADATA;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n state = SAXParserState.IN_START_TAG;\r\n }\r\n break;\r\n }\r\n case IN_START_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.SPACE_IN_START_TAG;\r\n }else if(c == '>'){\r\n // callback startElement event;\r\n parserHandler.startElement(SAXParsedData.tagName, SAXParsedData.attributes);\r\n SAXParsedData.clear();\r\n state = SAXParserState.CLOSE_START_TAG;\r\n }else {\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case SPACE_IN_START_TAG:{\r\n if(SAXParsedData.tagName.length() > 0){\r\n if(c != ' '){\r\n SAXParsedData.attribKey += c;\r\n state = SAXParserState.IN_ATTRIB_KEY;\r\n }\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_KEY:{\r\n if(c == '='){\r\n state = SAXParserState.IN_ATTRIB_EQUAL;\r\n }else{\r\n SAXParsedData.attribKey += c;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_EQUAL:{\r\n if(c == '\"'){\r\n state = SAXParserState.IN_ATTRIB_VALUE;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_VALUE:{\r\n if(c == '\"'){\r\n SAXParsedData.newAttribute();\r\n state = SAXParserState.IN_START_TAG;\r\n }else{\r\n SAXParsedData.attribValue += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_START_TAG:{\r\n if(c == '<') {\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }else{\r\n SAXParsedData.innerText += c;\r\n state = SAXParserState.OUT_OF_TAG;\r\n }\r\n break;\r\n }\r\n case IN_END_TAG:{\r\n if(c == '>'){\r\n // callback endElement event\r\n parserHandler.endElement(SAXParsedData.tagName);\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_END_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.OUT_OF_TAG;\r\n }else if(c == '<'){\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }\r\n break;\r\n }\r\n case METADATA:{\r\n if(c == '>'){\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }\r\n break;\r\n }\r\n case SYNTAX_ERROR:{\r\n try {\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }\r\n }\r\n\r\n }", "public void parse()\n throws ClassNotFoundException, IllegalAccessException,\n\t InstantiationException, IOException, SAXException,\n\t ParserConfigurationException\n {\n\tSAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();\n\txmlReader = saxParser.getXMLReader();\n\txmlReader.setContentHandler(this);\n\txmlReader.setEntityResolver(this);\n\txmlReader.setErrorHandler(this);\n\txmlReader.setDTDHandler(this);\n\txmlReader.parse(xmlSource);\n\t}", "public abstract XMLDocument parse(URL url);", "private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }", "@Override\n public void parseToXml(ParseData parseData, String path) {\n DOMParser domParser = new DOMParser();\n domParser.parseToXml(parseData,path);\n }", "private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }", "private Document parse(String path) throws DocumentException, MalformedURLException {\n File file = new File(path);\r\n SAXReader saxReader = new SAXReader();\r\n return saxReader.read(file);\r\n }", "public DynamicElement generateDynamicElements(String content) {\r\n\r\n DynamicElement rootDynamicElement = null;\r\n\r\n try {\r\n if (content != null) {\r\n Document document;\r\n\r\n document = SAXReaderUtil.read(content);\r\n\r\n Element element = document.getRootElement();\r\n\r\n // Språk\r\n // kolla att det finns en struktur\r\n\r\n // SAXReaderUtil.selectNodes(\"[/@name=title]\", document.content());\r\n\r\n List<Element> elements = element.elements(ActorsConstants.ARTICLE_XML_DYNAMIC_ELEMENT);\r\n String elementContent = element.elementText(ActorsConstants.ARTICLE_XML_DYNAMIC_ELEMENT);\r\n\r\n rootDynamicElement = new DynamicElement(element.getName(), elementContent,\r\n generateDynamicElement(elements));\r\n }\r\n\r\n } catch (DocumentException e) {\r\n throw new RuntimeException(\"Unable to generate a dynamic element\", e);\r\n }\r\n\r\n return rootDynamicElement;\r\n }", "public static Document parse(InputStream in) throws ParserConfigurationException, SAXException, IOException {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t \n\n\t return db.parse(in);\n\t }", "private void contentWalker(OdfFileDom content) {\n\n\t\tOdfElement root = content.getRootElement();\n\t\t//TextDocument textDoc = TextDocument.loadDocument(documentFile);\n\t\t\n\t\t//if we want just the content of the text we can treat the document\n\t\t//as a TextDocument. Then use TextDocument.loadDocument(file)\n\t\t// and getContentRoot for it\n\n\t\t\n\t\t//Node textRoot = textDoc.getContentRoot();\n\n\t\tXPathNode rootXNode = xPathRoot.addChild(root, false);\n\t\trootXNode.setParent(xPathRoot);\n\t\t\n\t\twalkNode(root, rootXNode);\n\t}", "public ParsedPage parse(String src);", "public void parse() {\n }", "public SimpleHtmlParser createNewParserFromHereToText(String text) throws ParseException {\n return new SimpleHtmlParser(getStringToTextAndSkip(text));\n }", "Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }", "public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "public static Document parse(String filename) throws ParserException {\n\t\tif (filename == null) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile file = new File(filename);\n\t\tif (!file.exists() || !file.isFile()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile subDir = file.getParentFile();\n\t\tif (!subDir.exists() || !subDir.isDirectory()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t// Document should be valid by here\n\t\tDocument doc = new Document();\n\t\tFieldNames field = FieldNames.TITLE;\n\t\tList<String> authors = new LinkedList<String>();\n\t\tString content = new String();\n\t\tboolean startContent = false;\n\n\t\tdoc.setField(FieldNames.FILEID, file.getName());\n\t\tdoc.setField(FieldNames.CATEGORY, subDir.getName());\n\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tString line = reader.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tswitch (field) {\n\t\t\t\t\tcase TITLE:\n\t\t\t\t\t\tdoc.setField(field, line);\n\t\t\t\t\t\tfield = FieldNames.AUTHOR;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase AUTHOR:\n\t\t\t\t\tcase AUTHORORG:\n\t\t\t\t\t\tif (line.startsWith(\"<AUTHOR>\") || !authors.isEmpty()) {\n\t\t\t\t\t\t\tString[] seg = null;\n\t\t\t\t\t\t\tString[] author = null;\n\n\t\t\t\t\t\t\tline = line.replace(\"<AUTHOR>\", \"\");\n\t\t\t\t\t\t\tseg = line.split(\",\");\n\t\t\t\t\t\t\tauthor = seg[0].split(\"and\");\n\t\t\t\t\t\t\tauthor[0] = author[0].replaceAll(\"BY|By|by\", \"\");\n\t\t\t\t\t\t\t// Refines author names\n\t\t\t\t\t\t\tfor (int i = 0; i < author.length; ++i) {\n\t\t\t\t\t\t\t\tauthor[i] = author[i].trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tauthor[author.length - 1] = author[author.length - 1]\n\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim();\n\t\t\t\t\t\t\tauthors.addAll(Arrays.asList(author));\n\n\t\t\t\t\t\t\t// Saves author organization\n\t\t\t\t\t\t\tif (seg.length > 1) {\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHORORG, seg[1]\n\t\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (line.endsWith(\"</AUTHOR>\")) {\n\t\t\t\t\t\t\t\t// Saves author\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHOR, authors\n\t\t\t\t\t\t\t\t\t\t.toArray(new String[authors.size()]));\n\t\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// This should be a PLACE\n\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t}\n\t\t\t\t\tcase PLACE:\n\t\t\t\t\t\tif (!line.contains(\"-\")) {\n\t\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] seg = line.split(\"-\");\n\t\t\t\t\t\t\tString[] meta = seg[0].split(\",\");\n\t\t\t\t\t\t\tif (seg.length != 0 && !seg[0].isEmpty()) {\n\n\t\t\t\t\t\t\t\tif (meta.length > 1) {\n\t\t\t\t\t\t\t\t\tdoc.setField(\n\t\t\t\t\t\t\t\t\t\t\tFieldNames.PLACE,\n\t\t\t\t\t\t\t\t\t\t\tseg[0].substring(0,\n\t\t\t\t\t\t\t\t\t\t\t\t\tseg[0].lastIndexOf(\",\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.trim());\n\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\tmeta[meta.length - 1].trim());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmeta[0] = meta[0].trim();\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tnew SimpleDateFormat(\"MMM d\",\n\t\t\t\t\t\t\t\t\t\t\t\tLocale.ENGLISH).parse(meta[0]);\n\t\t\t\t\t\t\t\t\t\t// This is a news date\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\t\tmeta[0]);\n\t\t\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// This is a place\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.PLACE, meta[0]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\tcase CONTENT:\n\t\t\t\t\t\tif (!startContent) {\n\t\t\t\t\t\t\t// First line of content\n\t\t\t\t\t\t\tString[] cont = line.split(\"-\");\n\t\t\t\t\t\t\tif (cont.length > 1) {\n\t\t\t\t\t\t\t\tfor (int i = 1; i < cont.length; ++i) {\n\t\t\t\t\t\t\t\t\tcontent += cont[i];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontent += \" \" + line;\n\t\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t\tdoc.setField(FieldNames.CONTENT, content);\n\t\t\tdoc.setField(FieldNames.LENGTH, Integer.toString(content.trim().split(\"\\\\s+\").length));\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new ParserException();\n\t\t}\n\n\t\treturn doc;\n\t}", "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "public static Document domParser(String s) {\n\t\ttry {\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder documentBuilder = factory.newDocumentBuilder();\n\t\t\tInputSource inputStream = new InputSource();\n\t\t\tinputStream.setCharacterStream(new StringReader(s));\n\t\t\treturn documentBuilder.parse(inputStream);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Document parse(String xmlString) {\n \n Document document = null;\n try { \n //DOM parser instance\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n //parse an XML file into a DOM tree\n document = builder.parse( new InputSource( new StringReader( xmlString ) ) ); \n \n } catch (ParserConfigurationException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SAXException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return document;\n }", "@Override\n\tprotected void doParse(String path, boolean isImport) throws IOException, OBOParseException {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tDefaultHandler handler = new OBOContentHandler();\n\t\ttry {\n\n\t\t\t// Parse the input\n\t\t\tSAXParser saxParser = factory.newSAXParser();\n\t\t\tsaxParser.parse(path, handler);\n\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t}\n\t}", "public static Document parse(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new RuntimeException(e);\n }\n }", "private static ArrayList<Publication> getParserAuthor() {\n\t\n\t ArrayList<Publication> list= new ArrayList<Publication>(); \n //获取DOM解析器 \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try { \n builder = factory.newDocumentBuilder(); \n Document doc; \n doc = builder.parse(new File(\"Myxml.xml\")); \n //得到一个element根元素,获得根节点 \n Element root = doc.getDocumentElement(); \n System.out.println(\"根元素:\"+root.getNodeName()); \n \n //子节点 \n NodeList personNodes = root.getElementsByTagName(\"publication\"); \n for(int i = 0; i<personNodes.getLength();i++){ \n Element personElement = (Element) personNodes.item(i); \n Publication publication = new Publication(); \n NodeList childNodes = personElement.getChildNodes(); \n //System.out.println(\"*****\"+childNodes.getLength()); \n \n for (int j = 0; j < childNodes.getLength(); j++) { \n if(childNodes.item(j).getNodeType()==Node.ELEMENT_NODE){ \n if(\"authors\".equals(childNodes.item(j).getNodeName())){ \n publication.setAuthors(childNodes.item(j).getFirstChild().getNodeValue()); \n }else if(\"id\".equals(childNodes.item(j).getNodeName())){ \n publication.setId(childNodes.item(j).getFirstChild().getNodeValue()); \n } \n } \n } \n list.add(publication); \n } \n for(Publication publication2 : list){ //为了查看数据是否正确,进行打印结果 \n System.out.println(publication2.toString()); \n } \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } \n return list;\n}", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException{\n\t File inputFile = new File(\"C:\\\\Users\\\\msamiull\\\\workspace\\\\jgraphx-master\\\\t.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(inputFile);\r\n \r\n\t\tdoc.getDocumentElement().normalize();\r\n System.out.println(\"Main element :\"+ doc.getDocumentElement().getNodeName());\r\n// NodeList nodeList = doc.getElementsByTagName(\"root\");\r\n \r\n NodeList nodeList = doc.getElementsByTagName(\"iOOBN\");\r\n// NamedNodeMap attribList = doc.getAttributes();\r\n \r\n// nonRecursiveParserXML(nList, doc);\r\n\r\n ArrayList<String> tagList = new ArrayList<String>();\r\n// tagList.add(\"mxCell\");\r\n// tagList.add(\"mxGeometry\");\r\n// tagList.add(\"mxPoint\");\r\n tagList.add(\"Node\");\r\n tagList.add(\"state\");\r\n tagList.add(\"tuple\"); // purposely i raplced \"datarow\" by \"tuple\" so that my parser can consider state first before tuple/data\r\n tagList.add(\"parent\");\r\n \r\n recursiveParserXML(nodeList, tagList);\r\n\r\n }", "public interface Parser<T> {\n T parse(String source) throws JAXBException;\n\n\n List<String> groupContent(String content);\n\n}", "abstract protected Parser createSACParser();", "static void parseIt() {\n try {\n long start = System.nanoTime();\n int[] modes = {DET_MODE, SUM_MODE, DOUBLES_MODE};\n String[] filePaths = {\"\\\\catalogue_products.xml\", \"\\\\products_to_categories.xml\", \"\\\\doubles.xml\"};\n HashMap<String, String[]> update = buildUpdateMap(remainderFile);\n window.putLog(\"-------------------------------------\\n\" + updateNodes(offerNodes, update) +\n \"\\nФайлы для загрузки:\");\n for (int i = 0; i < filePaths.length; i++) {\n // Define location for output file\n File outputFile = new File(workingDirectory.getParent() + filePaths[i]);\n pushDocumentToFile(outputFile, modes[i]);\n printFileInfo(outputFile);\n }\n window.putLog(\"-------------------------------------\\nВсего обработано уникальных записей: \" +\n offerNodes.size());\n long time = (System.nanoTime() - start) / 1000000;\n window.putLog(\"Завершено без ошибок за \" + time + \" мс.\");\n offerNodes = null;\n //window.workshop.setParseButtonDisabled();\n } catch (TransformerException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \" (\" + e.getException() + \")\\n\\t\" + e.getMessageAndLocation()));\n } catch (ParserConfigurationException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getLocalizedMessage()));\n } catch (SAXException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(\"SAXexception: \" + e.getMessage()));\n\n } catch (IOException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getMessage() + \". \" + e.getStackTrace()[0]));\n }\n }", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "@Override\n\tpublic ResultHolder<Statement> parse(final String content) {\n\t\t// Initializes error list.\n\t\tList<String> parserErrorList = new ArrayList<>();\n\t\t\n\t\t// Splits the content string into lines.\n\t\tString[] records = content.split(\"\\\\r?\\\\n\");\n\n\t\tList<Transaction> transactionList = Arrays.stream(records)\n\t\t\t\t\t\t\t\t\t\t\t .skip(1)\n\t\t\t\t\t\t\t\t\t\t\t .map(line -> this.populateRow(line, parserErrorList))\n\t\t .filter(Objects::nonNull)\n\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\n\n\t\tStatement statement = new Statement();\n\t\tstatement.setTransactions(transactionList);\n\t\treturn new ResultHolder<>(statement, parserErrorList);\n\t}", "public abstract void parse() throws IOException;", "public SmartScriptParser(String text) {\n lexer = new SmartScriptLexer(text);\n documentNode = new DocumentNode();\n stack = new ObjectStack();\n parse();\n\n}", "List<ParseData> parse(ParseDataSettings parseData);", "protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }", "public DocumentNode parse(Reader reader) throws IOException {\n DocumentRoot root = new DocumentRoot();\n ParserState state = provider.get(\"root\", root);\n int ch;\n while ((ch = reader.read()) != -1)\n state = state.accept((char) ch);\n return root;\n }", "public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}", "private static SimpleNode parse(String filename) throws ParseException {\n\t\tParser parser;\n\t\t// open file as input stream\n\t\ttry {\n\t\t\tparser = new Parser(new java.io.FileInputStream(filename));\n\t\t}\n\t\tcatch (java.io.FileNotFoundException e) {\n\t\t\tSystem.out.println(\"ERROR: file \" + filename + \" not found.\");\n\t\t\treturn null;\n\t\t}\n\t\t// parse and return root node\n\t\treturn parser.parse();\n\t}", "@Override\n protected Document parseAsDom(final String input) throws ConversionException {\n return IWXXMConverterBase.parseStringToDOM(input);\n }", "@Test\n public void testParseString() {\n /** Create a UIParser and string to test\n * \n */\n UIParser uiParserTest = new UIParser();\n String input = \"<html><head></head><body>test message</body></html>\";\n \n /**Use UIParser to parse string and test test that it is not null.\n * \n * \n */\n Document doc = uiParserTest.parse(input);\n assertNotNull(doc);\n \n /**Use doc to get documentElement and test that it is not null.\n * \n */\n Element html = doc.documentElement();\n assertNotNull(html);\n \n /** Test whether the tag Name is correct\n * \n */\n assertEquals(\"tagName of root element should be <html>\", \"html\", html.tagName());\n \n /**Get the child list of documentElement and test whether the child count correct \n * \n */\n NodeList list = html.childNodes();\n assertEquals(\"list length should be one\",list.length(),2);\n \n /**Get the first child and test whether the node name is correct.\n * \n */\n Node head = list.item(0);\n assertEquals(\"first child of <html> should be <head>\", \"head\", head.nodeName());\n \n /**Get the second child and test whether the node name is correct.\n * \n */\n Node body = list.item(1);\n assertEquals(\"second child of <html> should be <body>\", \"body\", body.nodeName()); \n \n /**Get the childlist of second component and test whether the count of list is correct.\n * \n */\n NodeList bodyChildList = body.childNodes();\n assertEquals(\"list length should be one\",bodyChildList.length(),1);\n \n /**Get the grandchild of second child and test whether the nodeType and node Value are correct. \n * \n */\n Node bodyChild = bodyChildList.item(0);\n assertEquals(\"type of first child of <body> should be TEXT_NODE\", Node.TEXT_NODE, bodyChild.nodeType());\n assertEquals(\"value of first child of <employ> should be test message\", \"test message\", bodyChild.nodeValue());\n \n }", "private Element parseRoot() {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n while (peek()<=' ') next();//skip whitespace\r\n switch (peek()) {//switch on next character\r\n case 'n': return new ScalarElement(parseNull());//parse null \r\n case 'f': return new ScalarElement(parseBoolean());//parse false\r\n case 't': return new ScalarElement(parseBoolean());//parse true\r\n case '[': return new ArrayElement(parseArray());//parse array \r\n case '{': return new ObjectElement(parseObject());//parse object\r\n default : throw new RuntimeException(\"Invalid syntax : \"+context());//ruh roh\r\n }//switch on next character\r\n \r\n }", "private Object read() throws XMLParseException {\n\t\tswitch (_tokenizer.next()) {\n\t\tdefault: break;\n\t\tcase ERROR: throw new XMLParseException(_tokenizer.getCurrentText());\n\t\tcase TEXT: return _tokenizer.getCurrentText();\n\t\tcase OPEN:\n\t\t\tElement result = new Element(_tokenizer.getCurrentName());\n\t\t\twhile (_tokenizer.next() == XMLTokenType.ATTR) {\n\t\t\t\tif (result.setAttr(_tokenizer.getCurrentName(), _tokenizer.getCurrentText()) != null) {\n\t\t\t\t\tthrow new XMLParseException(\"duplicate attribute: \" + _tokenizer.getCurrentName());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (_tokenizer.current() == XMLTokenType.ECLOSE) {\n\t\t\t\t// System.out.println(\"ended /> for \" + result.getName());\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (_tokenizer.current() != XMLTokenType.CLOSE) {\n\t\t\t\tthrow new XMLParseException(_tokenizer.getCurrentText());\n\t\t\t}\n\t\t\t_pending.push(result.getName());\n\t\t\twhile (_tokenizer.next() != XMLTokenType.ETAG) {\n\t\t\t\t/*if (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tthrow new XMLParseException(\"Unexpected end of file\");\n\t\t\t\t}*/\n\t\t\t\tif (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tif (isHTML) {\n\t\t\t\t\t\t_pending.pop();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new XMLParseException(\"Missing end tag for <\" + result.getName() + \">\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_tokenizer.saveToken();\n\t\t\t\tresult.addContent(read());\n\t\t\t}\n\t\t\t_pending.pop();\n\t\t\tif (!_tokenizer.getCurrentName().equals(result.getName())) {\n\t\t\t\tif (isHTML) {\n\t\t\t\t\t// System.out.println(\"HTML backup for \" + result.getName());\n\t\t\t\t\tfor (String p : _pending) {\n\t\t\t\t\t\tif (_tokenizer.getCurrentName().equals(p)) {\n\t\t\t\t\t\t\t_tokenizer.saveToken();\n\t\t\t\t\t\t\t//System.out.println(\"implicitly ended by </\" + p + \">\");\n\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow new XMLParseException(\"<\" + result.getName() + \"> ended with </\" + _tokenizer.getCurrentName() + \">\");\n\t\t\t}\n\t\t\treturn result;\n\t\tcase END: throw new XMLParseException(\"no XML element\");\n\t\t}\n\t\t// NB: if execution reaches here, we did something wrong.\n\t\tthrow new XMLParseException(\"internal error: what kind of token is this? \" + _tokenizer);\n\t}", "protected void parseRootElement() {\n\n // This is the Activiti method body for parsing through the XML object model\n // The Joda Engine needs less information than Activiti. That's why some methods are commented out.\n parseProcessDefinitions();\n }", "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}", "public CanonicalTreeParser() {\n \t\t// Nothing necessary.\n \t}", "public void parseXML(String XML);", "private String doParse(String inputText)\n\t{\n\t\tmakeParser(\"program test \" + inputText);\n\t\ttree = parser.dijkstraText();\n\t\tassertTrue(true);\n\t\treturn tree.toStringTree(parser);\n\t}", "public HTMLBlock parse () throws HTMLParseException {\r\n block = new HTMLBlock (pagepart, length);\r\n nextToken = START;\r\n match (START);\r\n page ();\r\n\r\n return block;\r\n }", "private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }", "private Node constructParsedTree(Node[] nodes) {\n int rootIndex = 0;\n for (int i = 0; i < nodes.length; i++) {\n if (nodes[i].getFather() > 0)\n nodes[nodes[i].getFather() - 1].addChild(nodes[i]);\n else\n rootIndex = i;\n }\n return nodes[rootIndex];\n }", "protected synchronized T _parse(String contents, boolean updateCache) throws Exception {\n String processedContents = _process(contents);\n if (updateCache) {\n _contents = processedContents;\n }\n\n T model = _parse(processedContents);\n\n if (updateCache) {\n //System.out.println(\"WodParserCacheEntry._parse: set model (String) = \" + model);\n _setModel(model);\n _documentChanged = false;\n _validated = false;\n getCache()._setValidated(false);\n }\n\n return model;\n }", "DocumentFragment getXML(String path)\n throws ProcessingException ;", "@Override\n\tpublic void parse() throws IOException {\n\t}", "protected void page () throws HTMLParseException {\r\n while (block.restSize () == 0) {\r\n switch (nextToken) {\r\n case END:\r\n return;\r\n case LT:\r\n lastTagStart = tagStart;\r\n tagmode = true;\r\n match (LT);\r\n tag (lastTagStart);\r\n break;\r\n case COMMENT:\r\n //block.addToken (new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n match (COMMENT);\r\n break;\r\n case SCRIPT:\r\n //block.addToken (new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n addTokenCheck(new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n match (SCRIPT);\r\n break;\r\n case STRING:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n break;\r\n case MT:\r\n if(!tagmode) {\r\n scanString();\r\n }\r\n default:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n }\r\n }\r\n }", "public void parsePage() {\n seen = true;\n int first = id.indexOf('_', 0);\n int second = id.indexOf('_', first + 1);\n String firstDir = \"result_\" + id.substring(0, first);\n String secondDir = id.substring(0, second);\n String fileName = id + \".page\";\n String wholePath = pagePath + firstDir + File.separator + secondDir\n + File.separator + fileName;\n try {\n BufferedReader reader = new BufferedReader(new FileReader(wholePath));\n String line = null;\n while((line = reader.readLine()) != null) {\n if (line.equals(\"#ThisURL#\")) {\n url = reader.readLine();\n }\n// else if (line.equals(\"#Length#\")) {\n// length = Integer.parseInt(reader.readLine());\n// }\n else if (line.equals(\"#Title#\")) {\n title = reader.readLine();\n }\n else if (line.equals(\"#Content#\")) {\n content = reader.readLine();\n lowerContent = content.toLowerCase();\n break;\n }\n }\n reader.close();\n if (content == null) {\n return;\n }\n valid = true;\n } catch (IOException e) {\n// System.out.println(\"Parse page \" + id + \" not successful\");\n }\n }", "private static Document parseXmlFile(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "DocumentNode parse(String markdown) {\n Reader reader = new StringReader(markdown);\n DocumentNode ret = null;\n try {\n ret = parse(reader);\n reader.close();\n } catch (IOException e) {\n throw new Error(\"StringReader threw exception\", e);\n }\n return ret;\n }", "public void parse(String systemId, DocumentFragment fragment) throws SAXException, IOException {\n parse(new InputSource(systemId), fragment);\n}", "public RayTracerXMLSceneParser() {\n\t\ttry {\n\t\t\treader = XMLReaderFactory.createXMLReader();\n\t\t\treader.setContentHandler(this);\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static Document parse(InputStream is) throws IOException\n {\n return parse(is, false);\n }", "public SyntaxTreeNode parse(InputSource input) {\n try {\n final XMLReader reader = JdkXmlUtils.getXMLReader(_overrideDefaultParser,\n _xsltc.isSecureProcessing());\n\n JdkXmlUtils.setXMLReaderPropertyIfSupport(reader, XMLConstants.ACCESS_EXTERNAL_DTD,\n _xsltc.getProperty(XMLConstants.ACCESS_EXTERNAL_DTD), true);\n\n\n boolean supportCatalog = true;\n boolean useCatalog = _xsltc.getFeature(JdkXmlFeatures.XmlFeature.USE_CATALOG);\n try {\n reader.setFeature(JdkXmlUtils.USE_CATALOG, useCatalog);\n }\n catch (SAXNotRecognizedException | SAXNotSupportedException e) {\n supportCatalog = false;\n }\n\n if (supportCatalog && useCatalog) {\n try {\n CatalogFeatures cf = (CatalogFeatures)_xsltc.getProperty(JdkXmlFeatures.CATALOG_FEATURES);\n if (cf != null) {\n for (CatalogFeatures.Feature f : CatalogFeatures.Feature.values()) {\n reader.setProperty(f.getPropertyName(), cf.get(f));\n }\n }\n } catch (SAXNotRecognizedException e) {\n //shall not happen for internal settings\n }\n }\n\n String lastProperty = \"\";\n try {\n XMLSecurityManager securityManager =\n (XMLSecurityManager)_xsltc.getProperty(JdkConstants.SECURITY_MANAGER);\n for (XMLSecurityManager.Limit limit : XMLSecurityManager.Limit.values()) {\n if (limit.isSupported(XMLSecurityManager.Processor.PARSER)) {\n lastProperty = limit.apiProperty();\n reader.setProperty(lastProperty, securityManager.getLimitValueAsString(limit));\n }\n }\n if (securityManager.printEntityCountInfo()) {\n lastProperty = JdkConstants.JDK_DEBUG_LIMIT;\n reader.setProperty(lastProperty, JdkConstants.JDK_YES);\n }\n } catch (SAXException se) {\n XMLSecurityManager.printWarning(reader.getClass().getName(), lastProperty, se);\n }\n\n // try setting other JDK-impl properties, ignore if not supported\n JdkXmlUtils.setXMLReaderPropertyIfSupport(reader, JdkConstants.CDATA_CHUNK_SIZE,\n _xsltc.getProperty(JdkConstants.CDATA_CHUNK_SIZE), false);\n\n return(parse(reader, input));\n }\n catch (SAXException e) {\n reportError(ERROR, new ErrorMsg(e.getMessage()));\n }\n return null;\n }", "private void NewTree(HttpServletRequest request, HttpServletResponse response) throws ParserConfigurationException, IOException {\n XMLTree tree;\n tree = XMLTree.getInstance();\n //_response.getWriter().write(tree.newTree());\n String answer = tree.newTree();\n returnResponse(response, answer);\n }", "Object create(File file) throws IOException, SAXException, ParserConfigurationException;", "public static final Document parse(final InputStream is) {\r\n final InputSource in = new InputSource(is);\r\n\r\n return parse(in);\r\n }", "public static void parseXML(String strXmlContent) {\n\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tSAXParser saxParser = spf.newSAXParser();\r\n\t\t\tsaxParser.parse(new ByteArrayInputStream(strXmlContent.getBytes()),\r\n\t\t\t\t\tnew SAXXMLReader());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public Parser() {}", "private void processTag(String p_content)\n {\n StringBuffer tagName = new StringBuffer();\n Hashtable attributes = new Hashtable();\n boolean bEndTag;\n\n int i = eatWhitespaces(p_content, 0);\n\n bEndTag = i < p_content.length() && p_content.charAt(i) == '/';\n\n //read the tag name...\n while (i < p_content.length() &&\n !Character.isWhitespace(p_content.charAt(i)))\n {\n tagName.append(p_content.charAt(i));\n\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n\n //read the attributes...\n StringBuffer attributeName = new StringBuffer();\n StringBuffer attributeValue = new StringBuffer();\n\n while (i < p_content.length())\n {\n try\n {\n i = eatWhitespaces(p_content, i);\n\n //read the name...\n while (!Character.isWhitespace(p_content.charAt(i)) &&\n p_content.charAt(i) != '=')\n {\n attributeName.append(p_content.charAt(i));\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n if (p_content.charAt(i) == '=')\n {\n while (p_content.charAt(i) != '\"')\n {\n i++;\n }\n i++;\n while (p_content.charAt(i) != '\"')\n {\n attributeValue.append(p_content.charAt(i));\n i++;\n }\n i++;\n }\n\n attributes.put(attributeName.toString(),\n attributeValue.toString());\n\n attributeName.setLength(0);\n attributeValue.setLength(0);\n }\n catch (IndexOutOfBoundsException e)\n {\n // tough luck the TMX wasn't as well written as we thought...\n // CvdL: TODO: throw an exception!!\n }\n }\n\n if (bEndTag)\n {\n m_handler.processEndTag(tagName.substring(1),\n \"<\" + p_content + \">\");\n }\n else\n {\n m_handler.processTag(tagName.toString(), attributes,\n \"<\" + p_content + \">\");\n }\n }", "@Test\n public void parserHtml() throws JSONException, IOException {\n }", "public HtmlTree()\n {\n // do nothing\n }", "public static final Document parse(final InputSource input) {\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.parse : begin\");\r\n }\r\n\r\n Document document = null;\r\n\r\n try {\r\n input.setEncoding(ENCODING);\r\n document = getFactory().newDocumentBuilder().parse(input);\r\n } catch (final SAXException se) {\r\n logB.error(\"XmlFactory.parse : error\", se);\r\n } catch (final IOException ioe) {\r\n logB.error(\"XmlFactory.parse : error\", ioe);\r\n } catch (final ParserConfigurationException pce) {\r\n logB.error(\"XmlFactory.parse : error\", pce);\r\n }\r\n\r\n if (logB.isInfoEnabled()) {\r\n logB.info(\"XmlFactory.parse : exit : \" + document);\r\n }\r\n\r\n return document;\r\n }", "public REparser (String input) throws IOException {\n fileIn = new FileReader(input);\n cout.printf(\"%nEchoing File: %s%n\", input);\n echoFile();\n fileIn = new FileReader(input);\n pbIn = new PushbackReader(fileIn);\n temp = new FileReader(input);\n currentLine = new BufferedReader(temp);\n curr_line = \"\";\n curr_line = currentLine.readLine();\n AbstractNode root;\n while(curr_line != null) {\n getToken();\n root = parse_re(0);\n printTree(root);\n curr_line = currentLine.readLine();\n }\n }", "private void parseXMLDocument(final Document doc)\r\n {\r\n Node docRoot = doc.getDocumentElement();\r\n StringBuilder indent = new StringBuilder();\r\n\r\n fullXmlTree.append(\"<\" + docRoot.getNodeName() + \">\\n\");\r\n searchTreeFromBranch(docRoot, 0, indent);\r\n fullXmlTree.append(\"</\" + docRoot.getNodeName() + \">\\n\");\r\n\r\n if (getPrintFullTree())\r\n {\r\n printFullTree();\r\n }\r\n }", "void startCrawler() throws ParserConfigurationException, SAXException, IOException;", "protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }", "public static synchronized Document parseToDocument(String xmlText) throws UMROException {\r\n xmlText = xmlText.substring(xmlText.indexOf('<'));\r\n Document document = null;\r\n try {\r\n DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();\r\n domFactory.setNamespaceAware(true);\r\n DocumentBuilder builder = domFactory.newDocumentBuilder();\r\n document = builder.parse(new InputSource(new StringReader(xmlText)));\r\n } catch (IOException ex) {\r\n throw new UMROException(\"IOException while parsing document: \" + ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new UMROException(\"ParserConfigurationException while parsing document: \" + ex);\r\n } catch (SAXException ex) {\r\n throw new UMROException(\"SAXException while parsing document: \" + ex);\r\n }\r\n return document;\r\n }", "private void parse ( GPNode node ) {\n\n nodes++;\n\n int d = node.atDepth();\n if ( d > depth ) depth = d;\n\n for ( int i = 0; i < node.children.length; i++ )\n parse(node.children[i]);\n\n }", "public static Element parse(SafeHtml html) {\n Element e = DOM.createDiv();\n setInnerHTML(e, html);\n return DOM.getFirstChild(e);\n }", "@Test\n public void simpleXmlParsingTest() throws ParserConfigurationException, SAXException, IOException {\n String simpleInput = \"<test></test>\";\n TestTreeNode root = TestingUtils.parseXmlTree(simpleInput);\n\n assertThat(root, notNullValue());\n assertThat(root.getLabel().get(), is(\"test\"));\n assertThat(root.getChildren().isPresent(), is(false));\n }", "public static Document parseXML(String xmlContent) throws BaseException\r\n\t{\r\n\t\tDocument xmlDoc = null;\r\n\t\tif (!StringUtils.isEmpty(xmlContent))\r\n\t\t{\r\n\t\t\txmlDoc = parseXML(new ByteArrayInputStream(xmlContent.getBytes()));\r\n\t\t}\r\n\t\treturn xmlDoc;\r\n\t}", "public void buildDocument( InputStream is ) {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch ( ParserConfigurationException ex ) {\n Global.warning( \"Parser configuration exception: \" + ex.getMessage() );\n }\n try {\n doc = dBuilder.parse( is );\n } catch ( SAXException ex ) {\n Global.warning( \"SAX parser exception: \" + ex.getMessage() );\n } catch ( IOException ex ) {\n Global.warning( \"IO exception: \" + ex.getMessage() );\n }\n\n }", "public void makeTree(String xmlFileName) throws Exception {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\tDocument doc = db.parse(new FileInputStream(xmlFileName));;\n\t\tElement xmlRoot = doc.getDocumentElement();\n\n\t\troot = new Node();\n\t\twalk(xmlRoot, root);\n\t}", "public HtmlDocument(Content htmlTree) {\n docContent = htmlTree;\n }" ]
[ "0.61233556", "0.61018234", "0.58763194", "0.5818317", "0.5805935", "0.5747943", "0.56693727", "0.5624161", "0.5623884", "0.5622807", "0.55712837", "0.55041975", "0.54910094", "0.54256684", "0.5414051", "0.5370331", "0.53457737", "0.5330809", "0.5321131", "0.53195643", "0.5262542", "0.52606153", "0.52342093", "0.52205455", "0.52001446", "0.51935434", "0.5186858", "0.5160157", "0.51525843", "0.5151957", "0.5142056", "0.50780725", "0.50771326", "0.50426376", "0.504212", "0.5023789", "0.50146776", "0.49962524", "0.49922135", "0.49786475", "0.49670848", "0.4946924", "0.4944708", "0.49354887", "0.49293187", "0.4916152", "0.49113947", "0.49099633", "0.48910072", "0.48828208", "0.4878019", "0.48643085", "0.48511", "0.48255262", "0.4823463", "0.48127377", "0.4811607", "0.48060632", "0.47939935", "0.4788624", "0.47867778", "0.47778523", "0.47544852", "0.4748087", "0.47361362", "0.4731676", "0.47267774", "0.4701029", "0.47005662", "0.470007", "0.46986985", "0.46961114", "0.46937764", "0.46927682", "0.46891525", "0.46827468", "0.4677869", "0.46750736", "0.4653878", "0.46534652", "0.46501824", "0.46449095", "0.46413305", "0.46406347", "0.4637598", "0.46316704", "0.4630795", "0.4612873", "0.46076843", "0.4599611", "0.4598919", "0.45949593", "0.45926645", "0.4584673", "0.45831388", "0.45831183", "0.45807186", "0.45802882", "0.45788735", "0.45785803" ]
0.5720053
6
Creates DOM tree from the provided content.
@Override public Document parse(final CharSequence content) { final LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content); return parseWithLagarto(lagartoParser); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "private void contentWalker(OdfFileDom content) {\n\n\t\tOdfElement root = content.getRootElement();\n\t\t//TextDocument textDoc = TextDocument.loadDocument(documentFile);\n\t\t\n\t\t//if we want just the content of the text we can treat the document\n\t\t//as a TextDocument. Then use TextDocument.loadDocument(file)\n\t\t// and getContentRoot for it\n\n\t\t\n\t\t//Node textRoot = textDoc.getContentRoot();\n\n\t\tXPathNode rootXNode = xPathRoot.addChild(root, false);\n\t\trootXNode.setParent(xPathRoot);\n\t\t\n\t\twalkNode(root, rootXNode);\n\t}", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "public DynamicElement generateDynamicElements(String content) {\r\n\r\n DynamicElement rootDynamicElement = null;\r\n\r\n try {\r\n if (content != null) {\r\n Document document;\r\n\r\n document = SAXReaderUtil.read(content);\r\n\r\n Element element = document.getRootElement();\r\n\r\n // Språk\r\n // kolla att det finns en struktur\r\n\r\n // SAXReaderUtil.selectNodes(\"[/@name=title]\", document.content());\r\n\r\n List<Element> elements = element.elements(ActorsConstants.ARTICLE_XML_DYNAMIC_ELEMENT);\r\n String elementContent = element.elementText(ActorsConstants.ARTICLE_XML_DYNAMIC_ELEMENT);\r\n\r\n rootDynamicElement = new DynamicElement(element.getName(), elementContent,\r\n generateDynamicElement(elements));\r\n }\r\n\r\n } catch (DocumentException e) {\r\n throw new RuntimeException(\"Unable to generate a dynamic element\", e);\r\n }\r\n\r\n return rootDynamicElement;\r\n }", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "public Content createContent();", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "private void createDOMTree(){\n\t\tElement rootEle = dom.createElement(\"Personnel\");\n\t\tdom.appendChild(rootEle);\n\n\t\t//No enhanced for\n\t\tIterator it = user.iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tUserInformation b = (UserInformation)it.next();\n\t\t\t//For each Book object create element and attach it to root\n\t\t\tElement bookEle = createUserElement(b);\n\t\t\trootEle.appendChild(bookEle);\n\t\t}\n\t}", "public void buildContent(XMLNode node, Content contentTree) {\n Content packageContentTree = packageWriter.getContentHeader();\n buildChildren(node, packageContentTree);\n contentTree.addContent(packageContentTree);\n }", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "@Override\n protected Document parseAsDom(final Document input) {\n return input;\n }", "@SuppressWarnings(\"unused\")\n\tpublic Element getRichcontent(String content) {\n\t\tElement root = DocumentHelper.createElement(\"richcontent\").addAttribute(\"TYPE\", \"NOTE\");\n\n\t\tElement html = root.addElement(\"html\");\n\t\tElement head = html.addElement(\"head\");\n\t\tElement body = html.addElement(\"body\");\n\n\t\t// 根据换行符 split 内容,每行对应一个 <p>\n\t\tString[] lines = content.split(Utils.CUSTOM_FEEDLINE);\n\t\tfor (String line : lines) {\n\t\t\tbody.addElement(\"p\").addText(line);\n\t\t}\n\n\t\treturn root;\n\t}", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "public BuildTree createBuildTree() {\n BuildTree buildTree = new BuildTree();\n createBuildTree(0, buildTree);\n return buildTree;\n }", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;", "abstract public Content createContent();", "public JTreeImpl(String rootTxt) {\r\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(rootTxt);\r\n tree = new JTree(root);\r\n tree.setShowsRootHandles(true);\r\n memory.push(root);\r\n }", "public void createTree() {\n Node<String> nodeB = new Node<String>(\"B\", null, null);\n Node<String> nodeC = new Node<String>(\"C\", null, null);\n Node<String> nodeD = new Node<String>(\"D\", null, null);\n Node<String> nodeE = new Node<String>(\"E\", null, null);\n Node<String> nodeF = new Node<String>(\"F\", null, null);\n Node<String> nodeG = new Node<String>(\"G\", null, null);\n root.leftChild = nodeB;\n root.rightChild = nodeC;\n nodeB.leftChild = nodeD;\n nodeB.rightChild = nodeE;\n nodeC.leftChild = nodeF;\n nodeC.rightChild = nodeG;\n\n }", "private Document createXMLDocumentStructure() {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = null;\r\n\t\ttry {\r\n\t\t\tbuilder = dbf.newDocumentBuilder();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Creates the Document\r\n\t\tDocument serviceDoc = builder.newDocument();\r\n\t\t/*\r\n\t\t * Create the XML Tree\r\n\t\t */\r\n\t\tElement root = serviceDoc.createElement(\"service\");\r\n\r\n\t\tserviceDoc.appendChild(root);\r\n\t\treturn serviceDoc;\r\n\t}", "private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }", "void createTree() throws IOException {\n\n // create root\n rootTreeItem = createTreeRoot();\n\n // create tree structure recursively\n createTree(rootTreeItem);\n\n // sort tree structure by name\n rootTreeItem.getChildren()\n .sort(Comparator.comparing(new Function<TreeItem<FilePath>, String>() {\n @Override\n public String apply(TreeItem<FilePath> t) {\n return t.getValue().toString().toLowerCase();\n }\n }));\n\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttreeEClass = createEClass(TREE);\n\t\tcreateEReference(treeEClass, TREE__CHILDREN);\n\n\t\tnodeEClass = createEClass(NODE);\n\t\tcreateEReference(nodeEClass, NODE__CHILDREN);\n\t\tcreateEAttribute(nodeEClass, NODE__NAME);\n\t}", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "protected void createContents() {\n\n\t}", "public void makeTree(String xmlFileName) throws Exception {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\tDocument doc = db.parse(new FileInputStream(xmlFileName));;\n\t\tElement xmlRoot = doc.getDocumentElement();\n\n\t\troot = new Node();\n\t\twalk(xmlRoot, root);\n\t}", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public HtmlDocument(Content htmlTree) {\n docContent = htmlTree;\n }", "public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }", "private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}", "private void NewTree(HttpServletRequest request, HttpServletResponse response) throws ParserConfigurationException, IOException {\n XMLTree tree;\n tree = XMLTree.getInstance();\n //_response.getWriter().write(tree.newTree());\n String answer = tree.newTree();\n returnResponse(response, answer);\n }", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "public Element generateElement(Document dom);", "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "protected abstract Content newContent();", "protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }", "public HtmlTree(DefaultMutableTreeNode root)\n {\n setRoot(root);\n }", "public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}", "public HtmlTree()\n {\n // do nothing\n }", "public Node createDOMSubtree(final Document doc) {\n int i;\n String aName;\n Node childNode;\n Element element;\n IBiNode tmp;\n\n element = doc.createElementNS(this.namespaceURI, this.eName);\n\n // add attributes\n if (this.attrs != null) {\n for (i = 0; i < this.attrs.getLength(); i++) {\n aName = this.attrs.getLocalName(i);\n\n if (\"\".equals(aName)) {\n aName = this.attrs.getQName(i);\n }\n\n element.setAttribute(aName, this.attrs.getValue(i));\n }\n }\n\n // create DOM-tree of children\n if (this.child != null) {\n tmp = this.child;\n\n while (tmp != null) {\n childNode = tmp.createDOMSubtree(doc);\n\n if (childNode != null) {\n element.appendChild(childNode);\n }\n\n tmp = tmp.getSibling();\n }\n }\n\n this.namespaceURI = null;\n this.eName = null;\n this.attrs = null;\n\n this.setNode(element);\n return element;\n }", "public static void createNode (PsiDirectory parentDirectory, VNode vNode) throws IOException {\r\n\t\tString name = mungeNamespace(vNode.getName());\r\n\t\tPsiDirectory contentDirectory = parentDirectory.createSubdirectory(name);\r\n\t\tPsiFile contentFile = contentDirectory.createFile(\".content.xml\");\r\n\t\twriteNodeContent(contentFile, vNode);\r\n\t}", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "private CategoryView buildComplicatedExpectedTree() {\n\n CategoryView root = new CategoryView(\"ROOT\");\n CategoryView a = new CategoryView(\"a\");\n CategoryView b = new CategoryView(\"b\");\n CategoryView c = new CategoryView(\"c\");\n CategoryView d = new CategoryView(\"d\");\n CategoryView e = new CategoryView(\"e\");\n\n root.addChild(a);\n root.addChild(e);\n root.addChild(new CategoryView(\"f\"));\n root.addChild(new CategoryView(\"g\"));\n root.addChild(new CategoryView(\"z\"));\n a.addChild(b);\n b.addChild(c);\n a.addChild(c);\n c.addChild(d);\n d.addChild(e);\n c.addChild(e);\n\n root.addChild(new CategoryView(\"1\") {{\n addChild(new CategoryView(\"2\") {{\n addChild(new CategoryView(\"3\"));\n }});\n }});\n root.addChild(new CategoryView(\"x\") {{\n addChild(new CategoryView(\"y\"));\n }});\n\n return root;\n }", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "public static native Element createDom(String rawHtml) /*-{\r\n\t\t$wnd.Ext.DomHelper.createDom(rawHtml);\r\n\t}-*/;", "private void createTree() {\n DefaultMutableTreeNode topNode = new DefaultMutableTreeNode(\"The World\");\n myTree = new JTree(topNode);\n\n DefaultMutableTreeNode mainPortNode = new DefaultMutableTreeNode(\"Sea Ports\");\n topNode.add(mainPortNode);\n\n for(SeaPort mySeaPort : world.getPorts()) {\n DefaultMutableTreeNode individualPortNode = new DefaultMutableTreeNode(mySeaPort.getName());\n mainPortNode.add(individualPortNode);\n\n DefaultMutableTreeNode peopleNode = new DefaultMutableTreeNode(\"People\");\n individualPortNode.add(peopleNode);\n for(Person myPerson : mySeaPort.getPersons()) {\n DefaultMutableTreeNode individualPeopleNode = new DefaultMutableTreeNode(myPerson.getName());\n peopleNode.add(individualPeopleNode);\n }\n\n DefaultMutableTreeNode dockNode = new DefaultMutableTreeNode(\"Docks\");\n individualPortNode.add(dockNode);\n for(Dock myDock : mySeaPort.getDocks()) {\n DefaultMutableTreeNode individualDockNode = new DefaultMutableTreeNode(myDock.getName());\n dockNode.add(individualDockNode);\n if(myDock.getShip() != null) {\n DefaultMutableTreeNode dockedShip = new DefaultMutableTreeNode(myDock.getShip().getName());\n individualDockNode.add(dockedShip);\n for(Job myJob : myDock.getShip().getJobs()) {\n DefaultMutableTreeNode dockedShipJob = new DefaultMutableTreeNode(myJob.getName());\n dockedShip.add(dockedShipJob);\n }\n }\n }\n\n DefaultMutableTreeNode portQueNode = new DefaultMutableTreeNode(\"Ship Queue\");\n individualPortNode.add(portQueNode);\n for(Ship myShip : mySeaPort.getQue()) {\n DefaultMutableTreeNode quedShip = new DefaultMutableTreeNode(myShip.getName());\n portQueNode.add(quedShip);\n for(Job myJob : myShip.getJobs()) {\n DefaultMutableTreeNode quedShipJob = new DefaultMutableTreeNode(myJob.getName());\n quedShip.add(quedShipJob);\n }\n }\n\n } //end of initial for loop inside createTree() method\n\n /*This method call is added in case a user reads a new data file after they\n have already read one or more data files.\n */\n myTreePanel.removeAll();\n\n //Add everything to the myTreePanel\n JScrollPane myTreeScroll = new JScrollPane(myTree);\n myTreePanel.add(myTreeScroll, BorderLayout.CENTER);\n validate();\n }", "HTML createHTML();", "public interface SDXHelper {\n /**\n * Creates a DOM <CODE>Element</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element. The attributes stored by\n * the SAX object are retrieved and set to the created DOM object.\n *\n * @param namespaceURI The namespace URI for the new element\n * @param localName The local name for the new element\n * @param qualifiedName The qualified name for the new element\n * @param attributes The attributes for the new element\n * @param parent The parent for the new element or\n * <CODE>null</CODE> if this is a root element\n * @return The created DOM <CODE>Element</CODE>\n */\n public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);\n\n /**\n * Creates a DOM <CODE>Text</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>Text</CODE> node. In other words, this method doesn't allow\n * the creation of adjacent <CODE>Text</CODE> nodes and creates\n * a <CODE>Text</CODE> node only when this is necessary.\n *\n * @param data The character data for the text node\n * @param parent The parent for the text node\n * @return The created or existent <CODE>Text</CODE> node\n */\n public Text createTextNode(String data, Element parent);\n\n /**\n * Creates a DOM <CODE>CDATASection</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>CDATASection</CODE> node and <CODE>newCDATA</CODE> is\n * <CODE>false</CODE>. In other words, this method avoids the creation\n * of adjacent <CODE>CDATASection</CODE> nodes and creates a\n * <CODE>CDATASection</CODE> node only when this is necessary or required.\n *\n * @param data The character data for the CDATA section\n * @param newCDATA Indicates the beginning of a new CDATA section\n * @param parent The parent for the CDATA section\n * @return The created or existent\n * <CODE>CDATASection</CODE> node\n */\n public CDATASection createCDATASection(String data, boolean newCDATA,\n Element parent);\n\n /**\n * Creates a DOM <CODE>ProcessingInstruction</CODE> node and appends it\n * as a child to the given <CODE>parent</CODE> element.\n *\n * @param target The target for the new processing instruction\n * @param data The data for the new processing instruction\n * @param parent The parent for the new processing instruction\n * @return The created <CODE>ProcessingInstruction</CODE>\n */\n public ProcessingInstruction createProcessingInstruction(\n String target, String data, Element parent);\n\n /**\n * Creates a DOM <CODE>Comment</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element.\n *\n * @param data The data for the new comment\n * @param parent The parent for the new comment\n * @return The created <CODE>Comment</CODE> node\n */\n public Comment createComment(String data, Element parent);\n}", "private Node constructParsedTree(Node[] nodes) {\n int rootIndex = 0;\n for (int i = 0; i < nodes.length; i++) {\n if (nodes[i].getFather() > 0)\n nodes[nodes[i].getFather() - 1].addChild(nodes[i]);\n else\n rootIndex = i;\n }\n return nodes[rootIndex];\n }", "public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n }", "OrderedListContent createOrderedListContent();", "private ASTNode buildAST(String contents) throws JavaModelException {\n\t\treturn buildAST(contents, this.workingCopy);\n\t}", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "public Elemento crearElementos(String contenido) {\n\t\tTitulo unTitulo = new Titulo();\n\t\tSubTitulo unSubTitulo = new SubTitulo();\n\t\tImagen unaImagen = new Imagen();\n\t\tSeccion unaSeccion = new Seccion();\n\t\tLista unaLista = new Lista();\n\t\tTextoPlano textoPlano = new TextoPlano();\n\n\t\t// Se agregan los elementos a la cadena\n\t\tthis.setSiguiente(unTitulo);\n\t\tunTitulo.setSiguiente(unSubTitulo);\n\t\tunSubTitulo.setSiguiente(unaImagen);\n\t\tunaImagen.setSiguiente(unaSeccion);\n\t\tunaSeccion.setSiguiente(unaLista);\n\t\tunaLista.setSiguiente(textoPlano);\n\n\t\tElemento elemento = this.siguiente.crearElemento(contenido);\n\n\t\treturn elemento;\n\t}", "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\");\n\t\tAssert.assertNotNull(news);\n\t\tnews.click();\n\n\t\tString content = getText(RESULTS_CONTAINER);\n\t\tlog(\"content\"+content);\n waitForText(RESULTS_CONTAINER, \"id=news\");\n\n\n\t\t// Finds the blogs node and make sure its not null\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\t\tWebElement blogs = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#blogs']['disclosure']\\\"}\");\n\n\t\tlog(\"Node: \" + blogs);\n\n\t\tAssert.assertNotNull(blogs);\n\n\t\tblogs.click(); // This should expand the node blogs\n\n\t\t//Find the children of blogs node: Today\n\t\tWebElement today = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#today']['title']\\\"}\");\n\n\t\t//Find the children of blogs node: Previous\n\t\tWebElement previous = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['title']\\\"}\");\n\n\t\tWebElement previousDiscIcon = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\n\t\tAssert.assertNotNull(previousDiscIcon);\n\n\t\t//Click on Previous Node\n\t\twaitForElementVisible(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#prev']['disclosure']\\\"}\");\n\t\tpreviousDiscIcon.click();\n\n\t\t//Find the children of previous node: Yesterday\n\t\tWebElement yesterday = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#yesterday']['title']\\\"}\");\n\n\t\t//Find the children of previous node: 2DaysBack\n\t\tWebElement twodaysback = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#daysback2']['title']\\\"}\");\n\n\n\n\n\t}", "private TreeNode createTree() {\n // Map<String, String> map = new HashMap<>();\n // map.put(\"dd\", \"qq\");\n // 叶子节点\n TreeNode G = new TreeNode(\"G\");\n TreeNode D = new TreeNode(\"D\");\n TreeNode E = new TreeNode(\"E\", G, null);\n TreeNode B = new TreeNode(\"B\", D, E);\n TreeNode H = new TreeNode(\"H\");\n TreeNode I = new TreeNode(\"I\");\n TreeNode F = new TreeNode(\"F\", H, I);\n TreeNode C = new TreeNode(\"C\", null, F);\n // 构造根节点\n TreeNode root = new TreeNode(\"A\", B, C);\n return root;\n }", "public void createChildNode(String root, String name, String contents, String[] keys, String[] values){\n\t\tNode rootNode = doc.getElementsByTagName(root).item(0);\n\t\n\t\tElement child = doc.createElement(name); \n\t\t\n\t\tfor(int i = 0; i < keys.length; i++){ //loops through the keys, and set a new attribute to the node with these keys and values\n\t\t\tchild.setAttribute(keys[i], values[i]);\n\t\t}\n\t\t\n\t\tchild.appendChild(doc.createTextNode(contents));\n\t\trootNode.appendChild(child);\n\t\twrite(); //write to the file\n\t}", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;", "Element createElement();", "public HtmlTree(DefaultTreeModel model)\n {\n setModel(model);\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "public static RootNode buildTree() {\n\t\t//1\n\t\tfinal RootNode root = new RootNode();\n\t\t\n\t\t//2\n\t\tEdgeNode a = attachEdgenode(root, \"a\");\n\t\tEdgeNode daa = attachEdgenode(root, \"daa\");\n\t\t\n\t\t//3\n\t\tExplicitNode e = Builder.buildExplicit();\n\t\te.setPreviousNode(a);\n\t\ta.addChildNode(e);\n\t\t\n\t\tattachLeafNode(daa, \"2\");\n\t\t\n\t\t//4\n\t\tEdgeNode a_e = attachEdgenode(e, \"a\");\n\t\tEdgeNode daa_e = attachEdgenode(e, \"daa\");\t\t\n\t\t\n\t\t//5\n\t\tattachLeafNode(a_e, \"3\");\n\t\tattachLeafNode(daa_e, \"1\");\n\t\treturn root;\n\t}", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "@AutoGenerated\r\n\tprivate Panel buildTreePanel()\r\n\t{\n\t\ttreePanel = new Panel();\r\n\t\ttreePanel.setImmediate(false);\r\n\t\ttreePanel.setWidth(\"100.0%\");\r\n\t\ttreePanel.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// panelVerticalLayout\r\n\t\tpanelVerticalLayout = buildPanelVerticalLayout();\r\n\t\ttreePanel.setContent(panelVerticalLayout);\r\n\t\t\r\n\t\treturn treePanel;\r\n\t}", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "private <X extends Jgxx> X buildTree(X root) {\n\t\tList<X> list = this.extendedModelProvider.find(EXTEND_MODEL_XTGL_ZHGL_JGXX_CODE, Jgxx.class, SELECT_PRE_SQL + \" WHERE J.LFT BETWEEN ? AND ? AND J.DELETED = 0 ORDER BY J.LFT\",\n\t\t\t\troot.getLft(), root.getRgt());\n\t\tStack<X> rightStack = new Stack<X>();\n\t\tfor (X node : list) {\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\twhile (rightStack.lastElement().getRgt() < node.getRgt()) {\n\t\t\t\t\trightStack.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\trightStack.lastElement().addChild(node);\n\t\t\t}\n\t\t\trightStack.push(node);\n\t\t}\n\t\treturn rightStack.firstElement();\n\t}", "private JTree makeCatalogTree() {\n\t\t\n\t\ttree_root = new DefaultMutableTreeNode(\"all photos\");\n\t\ttree_root.setUserObject(root);\n\t\t\n\t\tfinal JTree tree = new JTree(tree_root);\n\t\ttree.setMinimumSize(new Dimension(200,400));\n\n\t\ttree.setToggleClickCount(3); // so that we can use double-clicks for previewing instead of expanding/collapsing\n\n\t\tDefaultTreeSelectionModel selectionModel = new DefaultTreeSelectionModel();\n\t\tselectionModel.setSelectionMode(DefaultTreeSelectionModel.SINGLE_TREE_SELECTION);\n\t\ttree.setSelectionModel(selectionModel);\n\t\t\n\t\ttree.addMouseListener(new MouseInputAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t// if left-double-click @@@changed =2 to ==1\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {\n\t\t\t\t\tDefaultMutableTreeNode tempNode = getSelectedTreeNode();\n\t\t\t\t\tAlbum chosenAlbum =(Album) tempNode.getUserObject();\n\t\t\t\t\t\n\t\t\t\t\tpreviewPane.display(chosenAlbum);\n\t\t\t\t\t\n\t\t\t\t\t// YOUR CODE HERE\n\t\t\t\t\tSystem.out.println(\"show the photos for album \" + getSelectedTreeNode());\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\n\t\t\n\t\treturn tree;\n\t}", "private AlertTreeNode createTree() \n throws AlertException {\n\n AlertTreeNode res = null;\n\n AlertComponent.AlertProperty prop = null;\n AlertComponent compRoot = null;\n AlertComponent compNode = null;\n AlertTreeNode node = null;\n AlertTreeNode prevNode = null;\n\n //\n // 'root' node\n //\n prop = new AlertComponent.AlertProperty(\"root\", AlertType.COMPOSITE);\n compRoot = new AlertRoot(prop);\n res = new AlertTreeNode(compRoot, null);\n\n //\n // 'node' Node.\n // \n for (int i = 0; i < compRoot.getNbChildren(); i++) {\n \n prop = compRoot.getPropertyChild(i);\n compNode = compRoot.getPropertyValueComponent(prop.getName());\n node = new AlertTreeNode(compNode, res);\n if (prevNode == null) {\n res.setChild(node);\n } else {\n prevNode.setSibling(node);\n }\n prevNode = node;\n }\n return res;\n }", "UnorderedListContent createUnorderedListContent();", "void createNode(String path);", "private void createTree(String Name) {\n DecisionTree tree = new DecisionTree(treeID, Name, mainPanel.getSize(), font);\n mainPanel.addTab(Name + \" *\", tree);\n trees.add(tree);\n }", "protected TreeNode<T> createTreeNode(T value) {\n return new TreeNode<T>(this, value);\n }", "public String generateXML() \n { \n \n String xml = new String();\n \n String nodetype = new String();\n if (type.equals(\"internal\")){\n nodetype = \"INTERNAL\"; //change this for change in XML node name\n }\n else {\n nodetype = \"LEAF\"; //change this for change in XML node name\n }\n \n xml = \"<\" + nodetype;\n if (!name.equals(\"\")){\n xml = xml + \" name = \\\"\" + name + \"\\\"\";\n }\n if (length >0){\n xml = xml + \" length = \\\"\" + length + \"\\\"\";\n }\n //Section below tests tree size and depths\n // if (level > 0){\n // xml = xml + \" level = \\\"\" + level + \"\\\"\";\n // }\n //if (depth > 0){\n // xml = xml + \" depth = \\\"\" + depth + \"\\\"\";\n //}\n //if (newicklength > 0){\n // xml = xml + \" newicklength = \\\"\" + newicklength + \"\\\"\";\n //}\n // if (treesize > 0){\n // xml = xml + \" treesize = \\\"\" + treesize + \"\\\"\";\n //}\n //if (startxcoord >= 0){\n // xml = xml + \" startx = \\\"\" + startxcoord + \"\\\"\";\n //}\n //if (endxcoord >= 0){\n // xml = xml + \" endx = \\\"\" + endxcoord + \"\\\"\";\n //}\n //Test section done\n xml = xml + \">\";\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n xml = xml + child.generateXML(); //The recursive coolness happens here!\n }\n }\n xml = xml + \"</\" + nodetype + \">\";\n \n return xml;\n }", "public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}", "private void createNodes( DefaultMutableTreeNode top ) {\n DefaultMutableTreeNode leaf = null;\n \n leaf = new DefaultMutableTreeNode( new treeInfo(\"Insert Transaction\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Item\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Report\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Employee\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Suplier\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Salesman\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Customer\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Commisioner\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Edit Transaction\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Producer\"));\n top.add(leaf);\n }", "public void build() throws IOException {\n if (packageWriter == null) {\n //Doclet does not support this output.\n return;\n }\n build(layoutParser.parseXML(ROOT), contentTree);\n }", "public void buildPackageDoc(XMLNode node, Content contentTree) throws Exception {\n contentTree = packageWriter.getPackageHeader(Util.getPackageName(packageDoc));\n buildChildren(node, contentTree);\n packageWriter.addPackageFooter(contentTree);\n packageWriter.printDocument(contentTree);\n packageWriter.close();\n Util.copyDocFiles(configuration, packageDoc);\n }", "public String createContent(String spaceId, String contentId);", "protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }", "public static Element serialize( SerializationPosition state) {\n Element doc = state.doc;\n DefaultMutableTreeNode treeNode = state.currPos;\n \n Object value = treeNode.getUserObject();\n Element parentElement = null; \n \n parentElement = doc.getOwnerDocument().createElement(\"directory\");\n\n \n // Apply properties to root element...\n Attr attrName = doc.getOwnerDocument().createAttribute(\"name\");\n attrName.setNodeValue(state.currPos.toString());\n parentElement.getAttributes().setNamedItem(attrName);\n \n return parentElement;\n }", "public static GraphNode createScene( GraphNode parent, Node dataNode ) {\r\n NodeList nodeList = dataNode.getChildNodes();\r\n for ( int i = 0; i < nodeList.getLength(); i++ ) {\r\n Node n = nodeList.item(i);\r\n // skip all text, just process the ELEMENT_NODEs\r\n if ( n.getNodeType() != Node.ELEMENT_NODE ) continue;\r\n String nodeName = n.getNodeName();\r\n GraphNode node = null;\r\n if ( nodeName.equalsIgnoreCase( \"node\" ) ) {\r\n \tnode = CharacterFromXML.createJoint( n );\r\n } else if ( nodeName.equalsIgnoreCase( \"geom\" ) ) { \t\t\r\n \t\tnode = CharacterFromXML.createGeom( n ) ; \r\n }\r\n // recurse to load any children of this node\r\n createScene( node, n );\r\n if ( parent == null ) {\r\n \t// if no parent, we can only have one root... ignore other nodes at root level\r\n \treturn node;\r\n } else {\r\n \tparent.add( node );\r\n }\r\n }\r\n return null;\r\n\t}", "public void buildDocument( InputStream is ) {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch ( ParserConfigurationException ex ) {\n Global.warning( \"Parser configuration exception: \" + ex.getMessage() );\n }\n try {\n doc = dBuilder.parse( is );\n } catch ( SAXException ex ) {\n Global.warning( \"SAX parser exception: \" + ex.getMessage() );\n } catch ( IOException ex ) {\n Global.warning( \"IO exception: \" + ex.getMessage() );\n }\n\n }", "protected CollectionWrapper<CSTranslatedNodeWrapper> createCSTranslatedNodes(final DataProviderFactory providerFactory,\n final ContentSpecWrapper contentSpec, final Collection<CSNodeWrapper> nodes) {\n final CollectionWrapper<CSTranslatedNodeWrapper> translatedNodes = providerFactory.getProvider(\n CSTranslatedNodeProvider.class).newCSTranslatedNodeCollection();\n for (final CSNodeWrapper node : nodes) {\n translatedNodes.addNewItem(createCSTranslatedNode(providerFactory, contentSpec, node));\n }\n \n return translatedNodes;\n }", "protected abstract Node createCenterContent();", "@Override\n\tpublic Document parse(final char[] content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}", "protected Node newNode() {\n\t\treturn new RCPOMDocument();\n\t}", "DocumentContent createDocumentContent(byte[] bytes);", "private Content getTreeForClassHelper(Type type) {\n Content li = new HtmlTree(HtmlTag.LI);\n if (type.equals(classDoc)) {\n Content typeParameters = getTypeParameterLinks(\n new LinkInfoImpl(configuration, LinkInfoImpl.Kind.TREE,\n classDoc));\n if (configuration.shouldExcludeQualifier(\n classDoc.containingPackage().name())) {\n li.addContent(type.asClassDoc().name());\n li.addContent(typeParameters);\n } else {\n li.addContent(type.asClassDoc().qualifiedName());\n li.addContent(typeParameters);\n }\n } else {\n Content link = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS_TREE_PARENT, type)\n .label(configuration.getClassName(type.asClassDoc())));\n li.addContent(link);\n }\n return li;\n }", "protected Text text(String content){\n\t\treturn doc.createTextNode(content);\n\t}", "private void createRootNode()\r\n {\r\n root = new Node(\"root\", null);\r\n Node.clear();\r\n }", "public HuffTree makeHuffTree(InputStream stream) throws IOException;", "private ArchiveEntriesTree buildArchiveEntriesTree() {\n ArchiveEntriesTree tree = new ArchiveEntriesTree();\n String repoKey = getRepoKey();\n ArchiveInputStream archiveInputStream = null;\n try {\n ArchiveEntry archiveEntry;\n // create repo path\n RepoPath repositoryPath = InternalRepoPathFactory.create(repoKey, getPath());\n archiveInputStream = getRepoService().archiveInputStream(repositoryPath);\n while ((archiveEntry = archiveInputStream.getNextEntry()) != null) {\n tree.insert(InfoFactoryHolder.get().createArchiveEntry(archiveEntry), repoKey, getPath());\n }\n } catch (IOException e) {\n log.error(\"Failed to get zip Input Stream: \" + e.getMessage());\n } finally {\n if (archiveInputStream != null) {\n IOUtils.closeQuietly(archiveInputStream);\n }\n return tree;\n }\n }", "@Function DocumentFragment createDocumentFragment();" ]
[ "0.66788495", "0.59345454", "0.57037205", "0.5697868", "0.54771996", "0.53863126", "0.5345244", "0.5338292", "0.5334592", "0.5274807", "0.5251597", "0.51918817", "0.51702803", "0.51655847", "0.51593316", "0.5158082", "0.514529", "0.51271856", "0.51259935", "0.5086527", "0.50838685", "0.50821424", "0.50585026", "0.50522596", "0.5014013", "0.49732047", "0.4972876", "0.49672738", "0.49615043", "0.49444795", "0.49402553", "0.49294314", "0.49234748", "0.49207258", "0.4889121", "0.48807383", "0.4874385", "0.4872089", "0.4859141", "0.48541525", "0.48428893", "0.48141637", "0.48066717", "0.47997978", "0.4781932", "0.47812244", "0.47812244", "0.47812244", "0.47812244", "0.47804952", "0.47703296", "0.47656256", "0.47656164", "0.47378832", "0.47366112", "0.47004244", "0.46993417", "0.46954352", "0.46819997", "0.46781653", "0.46778134", "0.46727353", "0.4644878", "0.46388662", "0.4633231", "0.46331018", "0.4616401", "0.46137232", "0.46132115", "0.46120423", "0.46101698", "0.460826", "0.46036428", "0.4596162", "0.45959094", "0.45919278", "0.45888397", "0.45886433", "0.45836136", "0.45828032", "0.4582708", "0.45787084", "0.45743787", "0.45611402", "0.45605054", "0.45581198", "0.45570737", "0.45507893", "0.45493922", "0.45478636", "0.45463118", "0.45454594", "0.45405814", "0.45334852", "0.45262", "0.452343", "0.45118856", "0.4509212", "0.4507726", "0.4499917" ]
0.4866003
38
Parses the content using provided lagarto parser.
protected Document parseWithLagarto(final LagartoParser lagartoParser) { final LagartoDOMBuilderTagVisitor domBuilderTagVisitor = new LagartoDOMBuilderTagVisitor(this); lagartoParser.parse(domBuilderTagVisitor); return domBuilderTagVisitor.getDocument(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Document parse(final CharSequence content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "@Override\n\tpublic Document parse(final char[] content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "public void parse() {\n }", "protected void parse() throws ParseException {\n String s;\n try {\n s=getFullText();\n } catch (IOException ioe) {\n if (ioe instanceof FileNotFoundException) {\n throw new DataNotFoundException (\"Could not find log file.\", ioe);\n } else {\n throw new ParseException (\"Error getting log file text.\", new File (getFileName()));\n }\n }\n StringTokenizer sk = new StringTokenizer(s);\n ArrayList switches = new ArrayList(10);\n while (sk.hasMoreElements()) {\n String el =sk.nextToken().trim();\n if (el.startsWith(\"-J\")) {\n if (!(el.equals(\"-J-verbose:gc\"))) {\n if (!(el.startsWith(\"-J-D\"))) {\n JavaLineswitch curr = new JavaLineswitch(el.substring(2));\n addElement (curr); \n }\n }\n }\n }\n }", "void parse();", "public ParseResults parse (WordRecognitionLattice lattice) \n\tthrows DialogueMissingValueException, ParseException \n\t{\n\t\tif (lattice == null) \n\t\t{\n\t\t\tthrow new DialogueMissingValueException(\"Cannot parse word lattice: \"+\n\t\t\t\t\t\"Provided lattice is null\");\n\t\t}\n\t\t// initialize return result\n\t\tPackedLFParseResults results = new PackedLFParseResults();\n\t\t// Run incremental parse steps over the length of the sentence\n\t\talreadyFinishedParses = new Hashtable<String,PackedLFParseResults>();\n\t\tfor (int i = 0; i < lattice.getMaximumLength() ; i++) { \n\t\t\tresults = (PackedLFParseResults) this.incrParse(lattice);\n\t\t} // end for over the length of the sentence\n\t\treturn (ParseResults)results;\n\t}", "private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }", "public void parse() throws Exception {\r\n\t\tToken token;\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\ttry {\r\n\t\t\t// Loop over each token until the end of file.\r\n\t\t\twhile (!((token = nextToken()) instanceof EofToken)) {\r\n\t\t\t\tTokenType tokenType = token.getType();\r\n\t\t\t\tif (tokenType != ERROR) {\r\n\t\t\t\t\t// Format each token.\r\n\t\t\t\t\tsendMessage(new Message(TOKEN, new Object[] {\r\n\t\t\t\t\t\t\ttoken.getLineNumber(), token.getPosition(),\r\n\t\t\t\t\t\t\ttokenType, token.getText(), token.getValue() }));\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorHandler.flag(token,\r\n\t\t\t\t\t\t\t(OracleErrorCode) token.getValue(), this);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Send the parser summary message.\r\n\t\t\tfloat elapsedTime = (System.currentTimeMillis() - startTime) / 1000f;\r\n\t\t\tsendMessage(new Message(PARSER_SUMMARY, new Number[] {\r\n\t\t\t\t\ttoken.getLineNumber(), getErrorCount(), elapsedTime }));\r\n\t\t} catch (java.io.IOException ex) {\r\n\t\t\terrorHandler.abortTranslation(IO_ERROR, this);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void parse() throws IOException {\n\t}", "private void LL1Parser() throws IOException {\n\n LA.ReadLine(0);\n ParsStack.push(\"$\");\n ParsStack.push(\"P\");\n int prod;\n token = LA.Scanner();\n while (token.getValue() == null)\n {\n token = LA.Scanner();\n }\n// System.out.println(\"in ll1 parser\");\n// System.out.println(token.getValue() + \" \" + token.getType());\n while (true)\n {\n// System.out.println(ParsStack.peek());\n if (!CheckTerminal(ParsStack.peek()) && (!ParsStack.peek().equals(\"$\")) && (ParsStack.peek().charAt(0) != '@'))\n {\n /**inja be nazarm bayad BUparser run she agar BE bashe sare parse stack**/\n if (ParsStack.peek().equals(\"BE\"))\n {\n// System.out.println(\"go to SLR parser\");\n SLRParser();\n// System.out.println(\"Come back from SLR parser\");\n// System.out.println(ParsStack.peek());\n ParsStack.pop();\n token = LA.Scanner();\n// System.out.println(token.getValue());\n }\n else\n {\n prod = getProduction(ParsStack.peek(), token);\n// System.out.println(ParsStack.peek() + \" \" + token.getValue() + \" \" + prod);\n if (prod == 0) {\n error(4);\n break;\n } else {\n ParsStack.pop();\n for (int i = TempGrammer.get(prod - 1).getRight().length - 2 ; i > 0 ; i--) {\n if (TempGrammer.get(prod - 1).getRight()[i].equals(\"!\"))\n break;\n ParsStack.push(TempGrammer.get(prod - 1).getRight()[i]);\n// System.out.println(\"fill stack \" + ParsStack.peek());\n }\n }\n }\n }\n else if (CheckTerminal(ParsStack.peek()))\n {\n if (!CheckTerminal(token.getValue()))\n {\n if (ParsStack.peek().equals(\"id\"))\n {\n// System.out.println(token.getValue() + \" pop\");\n ParsStack.pop();\n token = LA.Scanner();\n while (token.getValue() == null)\n {\n token = LA.Scanner();\n }\n// System.out.println(\"new token is \" + token.getValue());\n }\n else\n {\n if (token.getValue().equals(\"$\"))\n {\n error(1);\n break;\n }\n }\n }\n else if (ParsStack.peek().equals(token.getValue()))\n {\n// System.out.println(token.getValue() + \" pop\");\n ParsStack.pop();\n token = LA.Scanner();\n while (token.getValue() == null)\n {\n token = LA.Scanner();\n }\n// System.out.println(\"new token is \" + token.getValue());\n\n }\n else\n {\n error(1);\n break;\n }\n }\n /**inja ham ye else if dige bashe baraye @semanticrule ha ke codeGenerator seda zade beshe**/\n /** nazar man ro injast **/\n else if (ParsStack.peek().charAt(0) == '@')\n {\n// System.out.println(\"see semantic role\");\n if (ParsStack.peek().equals(\"@push\"))\n terminat = CodeGen.run( ParsStack.pop() , token.getValue() , LA.Line - 1);\n else\n terminat = CodeGen.run( ParsStack.pop() , ParsStack.peek() , LA.Line - 1);\n\n\n if(terminat)\n Terminate();\n /** code generation inja seda mishe **/\n }\n else if (ParsStack.peek().equals(\"$\"))\n {\n if (token.getValue().equals(\"$\"))\n {\n Accept();\n break;\n }\n else {\n error(2);\n break;\n }\n }\n else {\n error(3);\n break;\n }\n }\n\n }", "SAPL parse(InputStream saplInputStream);", "public abstract void parse() throws IOException;", "static void parseIt() {\n try {\n long start = System.nanoTime();\n int[] modes = {DET_MODE, SUM_MODE, DOUBLES_MODE};\n String[] filePaths = {\"\\\\catalogue_products.xml\", \"\\\\products_to_categories.xml\", \"\\\\doubles.xml\"};\n HashMap<String, String[]> update = buildUpdateMap(remainderFile);\n window.putLog(\"-------------------------------------\\n\" + updateNodes(offerNodes, update) +\n \"\\nФайлы для загрузки:\");\n for (int i = 0; i < filePaths.length; i++) {\n // Define location for output file\n File outputFile = new File(workingDirectory.getParent() + filePaths[i]);\n pushDocumentToFile(outputFile, modes[i]);\n printFileInfo(outputFile);\n }\n window.putLog(\"-------------------------------------\\nВсего обработано уникальных записей: \" +\n offerNodes.size());\n long time = (System.nanoTime() - start) / 1000000;\n window.putLog(\"Завершено без ошибок за \" + time + \" мс.\");\n offerNodes = null;\n //window.workshop.setParseButtonDisabled();\n } catch (TransformerException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \" (\" + e.getException() + \")\\n\\t\" + e.getMessageAndLocation()));\n } catch (ParserConfigurationException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getLocalizedMessage()));\n } catch (SAXException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(\"SAXexception: \" + e.getMessage()));\n\n } catch (IOException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getMessage() + \". \" + e.getStackTrace()[0]));\n }\n }", "private void parseData() {\n\t\t\r\n\t}", "private void parse() {\n stack.push(documentNode);\n try {\n Token token = lexer.nextToken();\n boolean tagOpened = false;\n\n while (token.getType() != TokenType.EOF) {\n\n if (token.getType() == TokenType.TEXT) {\n TextNode textNode = new TextNode((String) token.getValue());\n ((Node) stack.peek()).addChild(textNode);\n\n } else if (token.getType() == TokenType.TAG_OPEN) {\n if (tagOpened) {\n throw new SmartScriptParserException(\"The tag was previously open but is not yet closed.\");\n }\n tagOpened = true;\n lexer.setState(LexerState.TAG);\n\n } else if (token.getType() == TokenType.TAG_NAME && token.getValue().equals(\"=\")) {\n parseEchoTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ff][Oo][Rr]\")) {\n parseForTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ee][Nn][Dd]\")) {\n parseEndTag();\n tagOpened = false;\n } else {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n token = lexer.nextToken();\n }\n if (!(stack.peek() instanceof DocumentNode)) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n } catch (LexerException | EmptyStackException exc) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n}", "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}", "public void parse() {\n MessageBlockLexer lexer = new MessageBlockBailLexer(name, postNumber, CharStreams.fromString(raw));\n\n // remove ConsoleErrorListener\n lexer.removeErrorListeners();\n\n // create a buffer of tokens pulled from the lexer\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n\n // create a parser that feeds off the tokens buffer\n MessageBlockParser parser = new MessageBlockParser(tokens);\n\n // remove ConsoleErrorListener\n parser.removeErrorListeners();\n\n // Create/add custom error listener\n MessageBlockErrorListener errorListener = new MessageBlockErrorListener(name, topic, postNumber);\n parser.addErrorListener(errorListener);\n\n // Begin parsing at the block rule\n ParseTree tree = parser.block();\n\n // Check for parsing errors\n errorListener.throwIfErrorsPresent();\n\n LOGGER.trace(tree.toStringTree(parser));\n\n // Walk the tree\n ParseTreeWalker walker = new ParseTreeWalker();\n walker.walk(new Listener(this), tree);\n }", "public void parse(InfoflowAndroidConfiguration config) {\n\t\t// Parse the data\n\t\tSAXParserFactory pf = SAXParserFactory.newInstance();\n\t\ttry {\n\t\t\tSAXParser parser = pf.newSAXParser();\n\t\t\tparser.parse(xmlStream, new SAXHandler(config));\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void parse(){\n\t\t//Read next line in content; timestamp++\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(instructionfile))) {\n\t\t String line;\n\t\t while ((line = br.readLine()) != null) {\n\t\t \t//divide the line by semicolons\n\t\t \tString[] lineParts = line.split(\";\");\n\t\t \tfor(String aPart: lineParts){\n\t\t\t \tSystem.out.println(\"Parser:\"+aPart);\n\n\t\t\t \t// process the partial line.\n\t\t\t \tString[] commands = parseNextInstruction(aPart);\n\t\t\t \tif(commands!=null){\n\t\t\t\t\t\t\n\t\t\t \t\t//For each instruction in line: TransactionManager.processOperation()\n\t\t\t \t\ttm.processOperation(commands, currentTimestamp);\n\t\t\t \t}\n\t\t \t}\n\t\t \t//Every new line, time stamp increases\n\t \t\tcurrentTimestamp++;\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n\t\t}\n\t}", "void Parse(Source source);", "public void parseMXL() {\n try {\n unzipMXL();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }", "private void parse() throws IOException {\r\n\t\tClassLoader cl = getClass().getClassLoader();\r\n\t\tFile file = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t\tFile file2 = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t FileReader fr = new FileReader(file);\r\n\t FileReader fr2 = new FileReader(file2);\r\n\t\tin=new BufferedReader(fr);\r\n\t\tin2=new BufferedReader(fr2);\r\n\t\tString line;\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) parseTerm();\r\n\t\t}\r\n\t\tin.close();\r\n\t\tfr.close();\r\n\t\t\r\n\t\t//terms.printTerms();\r\n\t\tbuffer=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) createEdges();\r\n\t\t}\r\n\t\tin2.close();\r\n\t\tfr2.close();\r\n\t\tLOGGER.info(\"Finished Building DAGs!\");\r\n\t\t\r\n\t}", "public void Mini_Parser(){\n Lista_ER Nuevo=null;\n String Nombre=\"\";\n String Contenido=\"\";\n ArrayList<String> tem = new ArrayList<String>();\n //este boleano sirve para concatenar la expresion regular\n int Estado=0;\n for (int x = 0; x < L_Tokens.size(); x++) {\n switch(Estado){\n //ESTADO 0\n case 0:\n //Conjuntos\n if(L_Tokens.get(x).getLexema().equals(\"CONJ\")){\n if(L_Tokens.get(x+1).getLexema().equals(\":\")){\n if(L_Tokens.get(x+2).getDescripcion().equals(\"Identificador\")){\n //Son conjuntos \n Nombre=L_Tokens.get(x+2).getLexema();\n Estado=1;\n x=x+4;\n }\n }\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n //pasaa estado de expresion regular\n Nombre=L_Tokens.get(x).getLexema();\n Estado=2;\n }\n break;\n \n case 1:\n //ESTADO 1\n //Concatena los conjuntos\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Digito\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n for(int i=6;i<=37;i++){\n if(L_Tokens.get(x).getID()==i){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n }\n //conjunto sin llaves\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n if(L_Tokens.get(x-1).getLexema().equals(\",\")){\n }else{\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n Estado=0;\n Contenido=\"\";\n\n }\n }else{\n Contenido+=L_Tokens.get(x).getLexema();\n }\n \n\n break;\n case 2:\n //ESTADO 2\n if(L_Tokens.get(x).getLexema().equals(\"-\")){\n if(L_Tokens.get(x+1).getLexema().equals(\">\")){\n //se mira que es expresion regular\n \n Lista_ER nuevo=new Lista_ER(L_Tokens.get(x-1).getLexema());\n Nuevo=nuevo;\n L_Tokens_ER.add(nuevo);\n x++;\n Estado=3;\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\":\")){\n //se mira que es lexema\n Estado=4;\n }\n break;\n case 3: \n //ESTADO 3\n //Concatenacion de Expresion Regular\n \n //System.out.println(\"---------------------------------\"+ L_Tokens.get(x).getLexema());\n if(L_Tokens.get(x).getDescripcion().equals(\"Punto\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Barra Vetical\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Interrogacion\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Asterisco\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Signo Mas\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Lexema de Entrada\")){ \n String tem1='\"'+L_Tokens.get(x).getLexema()+'\"';\n Nuevo.setER(tem1);\n \n }\n if(L_Tokens.get(x).getLexema().equals(\"{\")){ \n String tem1=\"\";\n if(L_Tokens.get(x+2).getLexema().equals(\"}\")){\n tem1=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n Nuevo.setER(tem1);\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n Estado=0;\n }\n break;\n case 4:\n// System.out.println(L_Tokens.get(x).getLexema());\n Contenido=L_Tokens.get(x+1).getLexema();\n L_Tokens_Lex.add(new Lista_LexemasE(L_Tokens.get(x-2).getLexema(), Contenido));\n Estado=0;\n \n break;\n }//fin switch\n }//Fin for\n }", "@Override\n\tpublic ResultHolder<Statement> parse(final String content) {\n\t\t// Initializes error list.\n\t\tList<String> parserErrorList = new ArrayList<>();\n\t\t\n\t\t// Splits the content string into lines.\n\t\tString[] records = content.split(\"\\\\r?\\\\n\");\n\n\t\tList<Transaction> transactionList = Arrays.stream(records)\n\t\t\t\t\t\t\t\t\t\t\t .skip(1)\n\t\t\t\t\t\t\t\t\t\t\t .map(line -> this.populateRow(line, parserErrorList))\n\t\t .filter(Objects::nonNull)\n\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\n\n\t\tStatement statement = new Statement();\n\t\tstatement.setTransactions(transactionList);\n\t\treturn new ResultHolder<>(statement, parserErrorList);\n\t}", "List<ParseData> parse(ParseDataSettings parseData);", "public void run()\n {\n yyparse();\n }", "public LinkedList scannerTRS(String content) {\n \n Errors.clear();\n tokens.clear();\n char[] chars = content.toCharArray();\n\n int state = 0;\n Token t = new Token();\n String aux = \"\";\n int row = 0;\n int column = 0;\n //recorre todos los caracteres \n for (int i = 0; i < chars.length; i++) {\n\n switch (state) {\n case 0:\n // Estado 0 del automata\n if (chars[i] == '#') {\n tokens.add(new Token(0, \"#\", row, column,\"Caracter especial #\"));\n row++;\n } else if (chars[i] == '*') {\n tokens.add(new Token(1, \"*\", row, column,\"Caracter especial *\"));\n row++;\n } else if (chars[i] == '-') {\n tokens.add(new Token(4, \"-\", row, column,\"Caracter especial -\"));\n aux = \"\";\n\n } else if (Character.isLetter(chars[i])) {\n //Reconociendo un id\n aux += Character.toString(chars[i]);\n state = 6;\n row++;\n } else if (Character.isDigit(chars[i])) {\n //numero\n aux += Character.toString(chars[i]);\n state = 7;\n row++;\n\n } else if (chars[i] == 10 || chars[i] == 11 || chars[i] == 9 || chars[i] == 13 || chars[i] == 65535) {//Salto de linea\n column++;\n row = 0;\n } else if (chars[i] == 32) {\n\n row++;\n } else if (chars[i] == '/') {\n state = 1;\n aux += Character.toString(chars[i]);\n row++;\n } else if (chars[i] == '<') {\n aux += Character.toString(chars[i]);\n state = 3;\n row++;\n\n } else {\n int a = chars[i];\n System.out.println(a);\n Errors.add(new Erro(\"Error lexico\", row, column, String.valueOf(chars[i])));\n System.out.println(\"Error: \" + String.valueOf(chars[i]));\n }\n\n break;\n case 1:\n // code block\n if (chars[i] == '/') {\n state = 2;\n aux += Character.toString(chars[i]);\n row++;\n } else {\n Errors.add(new Erro(\"Error lexico\", row, column, \"/\"));\n i--;\n aux=\"\";\n state = 0;\n\n }\n break;\n case 2:\n if (chars[i] == 10 || chars[i] == 11 || chars[i] == 9 || chars[i] == 13) {\n state = 0;\n column++;\n row = 0;\n tokens.add(new Token(5, aux, row, column,\"Comentario unilinea\"));\n aux=\"\";\n }else{\n aux += Character.toString(chars[i]);\n row++;\n }\n break;\n case 3:\n if (chars[i] == '!') {\n state = 4;\n row++;\n aux += Character.toString(chars[i]);\n } else {\n \n Errors.add(new Erro(\"Error lexico\", row, column, \"<\"));\n aux=\"\";\n row++;\n i--;\n\n }\n break;\n case 4:\n if (chars[i] == '!') {\n state = 5;\n aux += Character.toString(chars[i]);\n row++;\n } else {\n aux += Character.toString(chars[i]);\n if (chars[i] == 13 || chars[i] == 13) {\n column++;\n row = 0;\n } else {\n row++;\n }\n }\n break;\n case 5:\n if (chars[i] == '>') {\n state = 0;\n row++;\n aux += Character.toString(chars[i]);\n tokens.add(new Token(5, aux, row, column,\"Comentario multilinea\"));\n aux=\"\";\n\n } else {\n state = 4;\n aux += Character.toString(chars[i]);\n row++;\n }\n break;\n case 6://IDENTIFICADOR\n if (Character.isDigit(chars[i]) || Character.isLetter(chars[i]) || chars[i] == '_') {\n aux += String.valueOf(chars[i]);\n row++;\n } else {\n tokens.add(new Token(3, aux, row, column,\"Identificador\"));\n aux = \"\";\n state = 0;\n i--;\n }\n break;\n case 7:\n if (Character.isDigit(chars[i])) {\n aux += String.valueOf(chars[i]);\n row++;\n } else {\n tokens.add(new Token(2, aux, row, column, \"Numero\"));\n aux = \"\";\n state = 0;\n i--;\n }\n\n break;\n\n }\n }\n\n return tokens;\n }", "public void startParsing(InputSource source) {\r\n\t\ttry {\r\n\t\t\t_parser.parse(source, this);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tLoggerUtilsServlet.logErrors(e);\r\n\t\t}\r\n\t}", "@Override\n public void parse(Reader source, Listener listener) throws ParseException\n {\n String content20 = xwiki10To20(source);\n\n // Generate the XDOM using 2.0 syntax parser\n this.xwiki20Parser.parse(new StringReader(content20), listener);\n }", "public void initParser() {;\r\n lp = DependencyParser.loadFromModelFile(\"edu/stanford/nlp/models/parser/nndep/english_SD.gz\");\r\n tokenizerFactory = PTBTokenizer\r\n .factory(new CoreLabelTokenFactory(), \"\");\r\n }", "public ParsedPage parse(String src);", "private Collection<TremorRecord> parseResponse(HttpResponse successResponse) \r\n\t\t\t\t\t\t\t\t\t\t\tthrows XmlPullParserException, IOException, NumberFormatException, ParseException {\r\n\t\tArrayList<TremorRecord> tremors = new ArrayList<TremorRecord>();\r\n\t\t\r\n\t\tXmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser();\r\n\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);\r\n\t\t\r\n\t\tparser.setInput(successResponse.getEntity().getContent(), null);\r\n\t\t\r\n\t\tint eventType = parser.getEventType();\r\n\t\t\r\n\t\tTremorRecord record = null;\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(TremorConstants.USGS_DATE_FORMAT);\r\n\t\t\r\n\t\twhile(eventType != XmlPullParser.END_DOCUMENT) {\r\n\t\t\tswitch(eventType) {\r\n\t\t\tcase XmlPullParser.START_TAG:\r\n\t\t\t\tString tagName = parser.getName();\r\n\t\t\t\tLog.v(TremorConstants.LOG_TAG, \"XML Parsing---> Start Tag [\" + tagName + \"]\");\r\n\t\t\t\t\r\n\t\t\t\tif(TremorConstants.XML_TAG_ITEM.equals(tagName)) {\r\n\t\t\t\t\trecord = new TremorRecord();\r\n\t\t\t\t} else if(record != null) {\r\n\t\t\t\t\tString val = parser.nextText();\r\n\t\t\t\t\t\r\n\t\t\t\t\tLog.v(TremorConstants.LOG_TAG, \"XML Parsing---> Value [\" + val + \"]\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TremorConstants.XML_TAG_TITLE.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setTitle(val);\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_DEPTH.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setDepthKm(Double.valueOf(val));\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_DESC.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setDescriptionHtml(val);\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_LAT.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setLatitude(Double.valueOf(val));\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_LONG.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setLongitude(Double.valueOf(val));\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_PUBDATE.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setPubDate(sdf.parse(val));\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_REGION.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setRegion(val);\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_SECONDS.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setEventDateUtc(new Date(Long.parseLong(val) * 1000));\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_SUBJECT.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setFloorMag(Integer.valueOf(val));\r\n\t\t\t\t\t} else if(TremorConstants.XML_TAG_URL.equals(tagName)) {\r\n\t\t\t\t\t\trecord.setUrl(val);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase XmlPullParser.END_TAG:\r\n\t\t\t\ttagName = parser.getName();\r\n\t\t\t\tif(TremorConstants.XML_TAG_ITEM.equals(tagName)) {\r\n\t\t\t\t\tLog.v(TremorConstants.LOG_TAG, \"Finished parsing record, adding to collection. \" +\r\n\t\t\t\t\t\t\t\"Record [\" + record.toString() + \"].\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttremors.add(record);\r\n\t\t\t\t\trecord = null;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\teventType = parser.next();\r\n\t\t}\r\n\t\t\r\n\t\treturn tremors;\r\n\t}", "public void parse(Lexer lex);", "public void parse(final String content){\n\t\t// Datum\n\t\tdate = getDate(content);\n\t\t\n\t\twbc = getWBC(content);\n\t\trbc = getRBC(content);\n\t\thgb = getHGB(content);\n\t\thct = getHCT(content);\n\t\tmcv = getMCV(content);\n\t\tmch = getMCH(content);\n\t\tmchc = getMCHC(content);\n\t\tplt = getPLT(content);\n\t\tlym_percent = getLYMPercent(content);\n\t\tmxd_percent = getMXDPercent(content);\n\t\tneut_percent = getNEUTPercent(content);\n\t\tlym_volume = getLYMVolume(content);\n\t\tmxd_volume = getMXDVolume(content);\n\t\tneut_volume = getNEUTVolume(content);\n\t\trdw_sd = getRDWSD(content);\n\t\trdw_cv = getRDWCV(content);\n\t\tpdw = getPDW(content);\n\t\tmpv = getMPV(content);\n\t\tp_lcr = getPLCR(content);\n\t}", "protected void page () throws HTMLParseException {\r\n while (block.restSize () == 0) {\r\n switch (nextToken) {\r\n case END:\r\n return;\r\n case LT:\r\n lastTagStart = tagStart;\r\n tagmode = true;\r\n match (LT);\r\n tag (lastTagStart);\r\n break;\r\n case COMMENT:\r\n //block.addToken (new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n match (COMMENT);\r\n break;\r\n case SCRIPT:\r\n //block.addToken (new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n addTokenCheck(new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n match (SCRIPT);\r\n break;\r\n case STRING:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n break;\r\n case MT:\r\n if(!tagmode) {\r\n scanString();\r\n }\r\n default:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n }\r\n }\r\n }", "public void parse()\n throws ClassNotFoundException, IllegalAccessException,\n\t InstantiationException, IOException, SAXException,\n\t ParserConfigurationException\n {\n\tSAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();\n\txmlReader = saxParser.getXMLReader();\n\txmlReader.setContentHandler(this);\n\txmlReader.setEntityResolver(this);\n\txmlReader.setErrorHandler(this);\n\txmlReader.setDTDHandler(this);\n\txmlReader.parse(xmlSource);\n\t}", "@Override\n\tprotected void doParse(String path, boolean isImport) throws IOException, OBOParseException {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tDefaultHandler handler = new OBOContentHandler();\n\t\ttry {\n\n\t\t\t// Parse the input\n\t\t\tSAXParser saxParser = factory.newSAXParser();\n\t\t\tsaxParser.parse(path, handler);\n\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t}\n\t}", "SAPL parse(String saplDefinition);", "private void parseData(String dataToParse)\n {\n try\n {\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n XmlPullParser xpp = factory.newPullParser();\n xpp.setInput( new StringReader( dataToParse ) );\n int eventType = xpp.getEventType();\n while (eventType != XmlPullParser.END_DOCUMENT)\n {\n\n // Found a start tag\n if(eventType == XmlPullParser.START_TAG)\n {\n //Check for which tag we have\n if (xpp.getName().equalsIgnoreCase(\"geonameId\"))\n {\n //focuses parser on the <geometry> tags\n String temp = xpp.nextText();\n Log.e(\"Geocode\", \"geocode is \" + temp);\n geoname = Integer.parseInt(temp);\n }\n }\n else if (eventType == XmlPullParser.END_TAG)\n {\n if(xpp.getName().equalsIgnoreCase(\"geonameId\")) {\n Log.e(\"Parsing geoname\", \"parse finished\");//finished\n\n }\n }\n\n\n // Get the next event\n eventType = xpp.next();\n\n } // End of while\n }\n catch (XmlPullParserException ae1)\n {\n Log.e(\"MyTag\",\"Parsing error\" + ae1.toString());\n }\n catch (IOException ae1)\n {\n Log.e(\"MyTag\",\"IO error during parsing\");\n }\n\n Log.e(\"MyTag\",\"End document\");\n\n }", "@Override\n\tpublic void postParse() {\n\t}", "@Override\n\tpublic void postParse() {\n\t}", "public void testContentsParsing() throws Throwable {\n long start = System.currentTimeMillis();\n PluginTokenizer tokenizer = new PluginTokenizer();\n\n System.out.println(\"\\nStart extracting contents in \\\"\" + _path + \"\\\"\");\n \n tokenizer.setSource(new InputStreamSource(_reader));\n tokenizer.setParseFlags(Tokenizer.F_NO_CASE | Tokenizer.F_TOKEN_POS_ONLY);\n tokenizer.setWhitespaceHandler(this);\n tokenizer.setSequenceHandler(this);\n\n while (tokenizer.hasMoreToken()) {\n tokenizer.nextToken();\n System.out.println(tokenizer.current());\n assertTrue(\"Method current() returned null.\", tokenizer.current() != null);\n }\n \n long diff = System.currentTimeMillis() - start;\n System.out.println(\"Finished after \" + diff + \" milliseconds\");\n }", "private void parseData(String url, String response) {\n\n if (response.isEmpty()) {\n if (!mErrorMessage.isEmpty()) {\n alertParseErrorAndFinish(mErrorMessage);\n } else {\n renderData();\n }\n } else {\n if (mItemTotal == 0) {\n //---------------------------------------------------------------------------------\n // 목록 파싱하기 - 아메바 블로그의 HTML 코드가 변경됨. 파서 다시 만들어야 함. 2016-09-10\n //---------------------------------------------------------------------------------\n switch (mSiteData.getId()) {\n case Config.BLOG_ID_AKB48_TEAM8:\n Akb48Parser akb48Parser = new Akb48Parser();\n akb48Parser.parseTeam8ReportList(response, mNewDataList);\n break;\n case Config.BLOG_ID_SKE48_SELECTED:\n case Config.BLOG_ID_NMB48_OFFICIAL:\n BaseParser parser = new BaseParser();\n parser.parseAmebaList(response, mNewDataList);\n mItemTotal = mNewDataList.size();\n break;\n case Config.BLOG_ID_NGT48_MANAGER:\n Ngt48Parser ngt48manager = new Ngt48Parser();\n ngt48manager.parseLineBlogList(response, mNewDataList);\n //Collections.sort(mNewDataList);\n //Collections.sort(mNewDataList, Collections.reverseOrder());\n break;\n case Config.BLOG_ID_NGT48_PHOTOLOG:\n Ngt48Parser ngt48photo = new Ngt48Parser();\n ngt48photo.parseMemberBlogList(response, mNewDataList);\n //Collections.sort(mNewDataList);\n Collections.sort(mNewDataList, Collections.reverseOrder());\n break;\n }\n }\n\n //-------------------------------\n // 항목별 사진 파싱하기\n //-------------------------------\n if (mItemTotal > 0) { // && mItemTotal >= mItemCount) {\n if (mItemCount > 0) {\n BaseParser parser = new BaseParser();\n String[] array = parser.parseAmebaArticle(response);\n\n WebData webData = mNewDataList.get(mItemCount - 1);\n webData.setContent(array[0]);\n webData.setImageUrl(array[1]);\n }\n\n if (mItemCount < mItemTotal) {\n WebData webData = mNewDataList.get(mItemCount);\n String reqUrl = webData.getUrl();\n String reqAgent = Config.USER_AGENT_MOBILE;\n\n requestData(reqUrl, reqAgent);\n updateProgress();\n\n mItemCount++;\n } else {\n mItemTotal = 0;\n mItemCount = 0;\n mPbLoadingHorizontalMore.setProgress(0);\n }\n }\n\n if (mItemTotal == 0) {\n renderData();\n }\n }\n }", "@Test\n\tpublic void probandoConParser() {\n\t\tString dBoxUrl = \"/home/julio/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_4_text_mining/material/tp3/\";\n\t\tString modelUrl = dBoxUrl + \"NER/models/es-ner-person.bin\";\n\t\tString filesUrl = dBoxUrl + \"NER/archivoPrueba\";\n\t\tString sampleFile = filesUrl + \"/viernes-23-05-14-alan-fitzpatrick-gala-cordoba.html\";\n\t\tList<String> docs = getMyDocsFromSomewhere(filesUrl);\n\n\t\ttry {\n\t\t\t// detecting the file type\n\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\tMetadata metadata = new Metadata();\n\t\t\tFileInputStream inputstream = new FileInputStream(new File(sampleFile));\n\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t// Html parser\n\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\tSystem.out.println(\"Contents of the document:\" + handler.toString());\n\t\t\tSystem.out.println(\"Metadata of the document:\");\n\t\t\tString[] metadataNames = metadata.names();\n\n\t\t\tfor (String name : metadataNames) {\n\t\t\t\tSystem.out.println(name + \": \" + metadata.get(name));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\n\t}", "public static ArrayList<Task> parse(String toParse) {\n ArrayList<Task> result = new ArrayList<>();\n Scanner ps = new Scanner(toParse); // passes whole file into the scanner\n while (ps.hasNextLine()) {\n String nLine = ps.nextLine(); // parse one line at a time\n int ref = 3; // reference point\n char taskType = nLine.charAt(ref);\n switch (taskType) {\n case 'T':\n parseTodo(ref, nLine, result);\n break;\n case 'D':\n parseDeadline(ref, nLine, result);\n break;\n case 'E':\n parseEvent(ref, nLine, result);\n break;\n default:\n System.out.println(\"Unknown input\");\n break;\n }\n }\n return result;\n }", "final public void parse() throws ParseException {\n\t\tToken x = null;\n\t\tjj_consume_token(20);\n\t\tgetColumns(true);\n\t\tjj_consume_token(REFER);\n\n\t\tx = jj_consume_token(ID);\n\t\tm_refcatalog = x.image;\n\t\tjj_consume_token(21);\n\t\tx = jj_consume_token(ID);\n\t\tm_reftable = x.image;\n\t\tjj_consume_token(20);\n\t\tgetColumns(false);\n\t\tgetActions();\n\t}", "public LEParser(LEParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 5; i++) jj_la1[i] = -1;\n }", "public void setupParser(InputStream is) {\r\n inputSource = new InputSource(is);\r\n }", "@Before\n\tpublic void initParser() {\n\t\tXMLTagParser.init(file);\n\t}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "List<LoggingEvent> parse(InputStream is) throws ParseException;", "private Turno parseTurno(CharBuffer registro) {\n Turno t = new Turno();\n String codigo = registro.subSequence(0, CODIGO_LONGITUD).toString().trim();\n registro.position(CODIGO_LONGITUD);\n registro = registro.slice();\n t.setCodigo(codigo);\n\n String horario = registro.subSequence(0, HORARIO_LONGITUD).toString().trim();\n registro.position(HORARIO_LONGITUD);\n registro = registro.slice();\n t.setHorario(horario);\n\n String horas = registro.subSequence(0, HORAS_LONGITUD).toString().trim();\n registro.position(HORAS_LONGITUD);\n registro = registro.slice();\n t.setHoras(horas);\n\n String placaTaxi = registro.toString().trim();\n t.setPlacaTaxi(placaTaxi);\n\n return t;\n }", "public SimpleHtmlParser createNewParserFromHereToText(String text) throws ParseException {\n return new SimpleHtmlParser(getStringToTextAndSkip(text));\n }", "public void parse(byte[] buffer) {\n if (buffer == null) {\n MMLog.log(TAG, \"parse failed buffer = \" + null);\n return;\n }\n\n if (buffer.length >= 9) {\n this.msgHead = getIntVale(0, 2, buffer);\n if(this.msgHead != DEFAULT_HEAD) return;\n\n this.msgEnd = getIntVale(buffer.length - 1, 1, buffer);\n if(this.msgEnd != DEFAULT_END) return;\n\n this.msgID = getIntVale(2, 2, buffer);\n this.msgIndex = getIntVale(4, 1, buffer);\n this.msgLength = getIntVale(5, 2, buffer);\n this.msgCRC = getIntVale(buffer.length - 2, 1, buffer);\n\n } else {\n MMLog.log(TAG, \"parse failed length = \" + buffer.length);\n }\n if (msgLength <= 0) return;\n datas = new byte[msgLength];\n System.arraycopy(buffer, 7, datas, 0, this.msgLength);\n }", "Object parse(int from,int to) throws IOException, FSException {\n\n // nothing to do when starting beond the code end\n if (code.lineCount()<=from) return null;\n\n\n maxLine=to;\n code.setCurLine(from);\n tok=new LexAnn(code.getLine());\n getNextToken();\n while (tok.ttype!=LexAnn.TT_EOF) {\n\n //a script must always start with a word...\n\n try {\n parseStmt();\n } catch (RetException e) {\n return retVal;\n }\n\n getNextToken();\n }\n\n return null;\n\n\n }", "public interface Parser<T> {\n T parse(String source) throws JAXBException;\n\n\n List<String> groupContent(String content);\n\n}", "public ArticParser(String pathToXML) throws OmniPageParsingException, IOException {\n super(pathToXML);\n setPageSettings();\n }", "protected void run() {\n\t\ttry {\n\t\t\tFileSet fileSet = targetModel.getFileSet();\n\t\t\tsetPhaseLength(phases.length);\n\t\t\tsetPhase(0);\n\t\t\tprintln(\"loading \" + fileSet.getCdt() + \" ... \");\n\t\t\ttry {\n\t\t\t\tparser.setParseQuotedStrings(fileSet.getParseQuotedStrings());\n\t\t\t\tparser.setResource(fileSet.getCdt());\n\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\n\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\tsetPhase(1);\n\t\t\t\tparseCDT(tempTable);\n\t\t\t} catch (LoadException e) {\n\t\t\t\tthrow e;\n\t\t\t} catch (Exception e) {\n\t\t\t\t// this should never happen!\n\t\t\t\tLogBuffer.println(\"TVModel.ResourceLoader.run() : while parsing cdt got error \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new LoadException(\"Error Parsing CDT: \" + e, LoadException.CDTPARSE);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\n\t\t\tsetPhase(2);\n\t\t\tif (targetModel.getArrayHeaderInfo().getIndex(\"AID\") != -1) {\n\t\t\t\tprintln(\"parsing atr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getAtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tsetPhase(3);\n\t\t\t\t\tparseATR(tempTable);\n\t\t\t\t\ttargetModel.hashAIDs();\n\t\t\t\t\ttargetModel.hashATRs();\n\t\t\t\t\ttargetModel.aidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tprintln(\"error parsing ATR: \" + e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"ignoring array tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.aidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.aidFound(false);\n\t\t\t}\n\t\t\t\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(4);\n\t\t\tif (targetModel.getGeneHeaderInfo().getIndex(\"GID\") != -1) {\n\t\t\t\tprintln(\"parsing gtr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getGtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\t\tsetPhase(5);\n\t\t\t\t\tparseGTR(tempTable);\n\t\t\t\t\ttargetModel.hashGIDs();\n\t\t\t\t\ttargetModel.hashGTRs();\n\t\t\t\t\ttargetModel.gidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"error parsing GTR: \" + e.getMessage());\n\t\t\t\t\tprintln(\"ignoring gene tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.gidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.gidFound(false);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(6);\n\n\t\t\ttry {\n\t\t\t\tprintln(\"parsing jtv config file\");\n\t\t\t\tString xmlFile = targetModel.getFileSet().getJtv();\n\t\t\t\t\n\t\t\t\tXmlConfig documentConfig;\n\t\t\t\tif (xmlFile.startsWith(\"http:\")) {\n\t\t\t\t\tdocumentConfig = new XmlConfig(new URL(xmlFile), \"DocumentConfig\");\n\t\t\t\t} else {\n\t\t\t\t\tdocumentConfig = new XmlConfig(xmlFile, \"DocumentConfig\");\n\t\t\t\t}\n\t\t\t\ttargetModel.setDocumentConfig(documentConfig);\n\t\t\t} catch (Exception e) {\n\t\t\t\ttargetModel.setDocumentConfig(null);\n\t\t\t\tprintln(\"Got exception \" + e);\n\t\t\t\tsetHadProblem(true);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(7);\n\t\t\tif (getException() == null) {\n\t\t\t\t/*\t\n\t\t\t\tif (!fileLoader.getCompleted()) {\n\t\t\t\t\tthrow new LoadException(\"Parse not Completed\", LoadException.INTPARSE);\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"f had no exceptoin set\");\n\t\t\t\t*/\n\t\t\t} else {\n\t\t\t\tthrow getException();\n\t\t\t}\n\t\t\ttargetModel.setLoaded(true);\n\t\t\t//\tActionEvent(this, 0, \"none\",0);\n\t\t} catch (java.lang.OutOfMemoryError ex) {\n\t\t\t\t\t\t\tJPanel temp = new JPanel();\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"Out of memory, allocate more RAM\"));\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"see Chapter 3 of Help->Documentation... for Out of Memory\"));\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(parent, temp);\n\t\t} catch (LoadException e) {\n\t\t\tsetException(e);\n\t\t\tprintln(\"error parsing File: \" + e.getMessage());\n\t\t\tprintln(\"parse cannot succeed. please fix.\");\n\t\t\tsetHadProblem(true);\n\t\t}\n\t\tsetFinished(true);\n\t}", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public Laberinto parseToLaberinto (String rutaFichero) {\n String fichero = \"\";\n try (BufferedReader reader = new BufferedReader (new FileReader(rutaFichero))) { \n String line = reader.readLine();\n while (line != null) {\n fichero = fichero.concat(line);\n line = reader.readLine();\n }\n } catch (IOException ex) {\n System.out.println(\"ERROR AL LEER EL FICHERO JSON\");\n }\n \n \n JSONObject obj = new JSONObject (fichero);\n int filas = obj.getInt(\"rows\");\n int columnas = obj.getInt(\"cols\");\n int num_vecinos = obj.getInt(\"max_n\");\n \n JSONArray mov = obj.getJSONArray(\"mov\"); JSONArray movimiento_individual;\n int[][] movimientos = new int [mov.length()][mov.getJSONArray(0).length()];\n for (int i=0; i < mov.length(); i++) {\n movimiento_individual = mov.getJSONArray(i);\n for (int j=0; j < movimiento_individual.length(); j++) {\n movimientos[i][j] = movimiento_individual.getInt(j);\n }\n }\n \n JSONArray id_mov = obj.getJSONArray(\"id_mov\");\n char[] id_movimientos = new char[id_mov.length()];\n for (int i=0; i < id_mov.length(); i++) {\n id_movimientos[i] = id_mov.getString(i).charAt(0);\n }\n \n JSONObject celdas = obj.getJSONObject(\"cells\");\n JSONObject celdaAux; JSONArray vecinos; int value; \n \n Laberinto lab = new Laberinto (filas, columnas, num_vecinos, movimientos, id_movimientos);\n for (int i = 0; i < filas; i++) {\n for (int j = 0; j < columnas; j++) {\n celdaAux = celdas.getJSONObject(\"(\" + i + \", \" + j +\")\");\n value = celdaAux.getInt(\"value\");\n vecinos = celdaAux.getJSONArray(\"neighbors\");\n \n lab.getCells()[i][j].setValue(value);\n for (int k = 0; k < vecinos.length(); k++) {\n lab.getCells()[i][j].setPared(k, vecinos.getBoolean(k));\n }\n }\n }\n \n return lab;\n }", "public ParseResults incrParse(WordRecognitionLattice lattice) \n\tthrows DialogueMissingValueException, ParseException\n\t{\n\t\tif (lattice == null) \n\t\t{\n\t\t\tthrow new DialogueMissingValueException(\"Cannot parse word lattice: \"+\n\t\t\t\t\t\"Provided lattice is null\");\n\t\t}\n\t\tPackedLFParseResults results = new PackedLFParseResults();\n\t\tresults.finalized = this.NOTFINISHED;\n\t\tVector<PhonString> recogResults;\n\t\tif (lattice.getMaximumLength() <= maxUtteranceLength) \n\t\t{\n\t\t\trecogResults = lattice.getAllResults();\n\t\t}\n\t\telse {\n\t\t\trecogResults = lattice.getFirstResult();\n\t\t} \n\t\tVector<LogicalForm> totalLFs = new Vector<LogicalForm>();\n\t\tboolean areParsesFinished = true;\n\t\tint incrStr = 1;\n\t\tString uniformNumbering = \"\";\n\t\tHashtable<String,Hashtable<String,Integer>> nonStandardRules = \n\t\t\tnew Hashtable<String,Hashtable<String,Integer>>();\n\t\tresults.phon2LFsMapping = new Hashtable<PhonString,Vector<String>>();\n\t\tresults.nonParsablePhonStrings = new Vector<PhonString>();\n\t\tfor (Enumeration<PhonString> e = recogResults.elements() ; e.hasMoreElements();) {\n\t\t\tPhonString phon = e.nextElement();\n\t\t\tresults.phon2LFsMapping.put(phon, new Vector<String>());\n\t\t\tPackedLFParseResults result;\n\t\t\tresult = (PackedLFParseResults) incrParse(phon);\n\t\t\tif (result != null && result.plf != null) \n\t\t\t{\n\t\t\t\tfor (Enumeration<String> f = result.nonStandardRulesApplied.keys();\n\t\t\t\tf.hasMoreElements();) {\n\t\t\t\t\tString ID = f.nextElement();\n\t\t\t\t\tnonStandardRules.put((ID+ \"-\" + incrStr), \n\t\t\t\t\t\t\tresult.nonStandardRulesApplied.get(ID));\n\t\t\t\t} // end for\n\t\t\t\tLFPacking packingTool2 = new LFPacking();\n\t\t\t\tLogicalForm[] unpackedLFs = packingTool2.unpackPackedLogicalForm(result.plf);\n\t\t\t\tVector<String> vec = results.phon2LFsMapping.get(phon);\n\t\t\t\tfor (int i = 0; i < unpackedLFs.length; i++) \n\t\t\t\t{\t\t\n\t\t\t\t\tunpackedLFs[i].logicalFormId = \n\t\t\t\t\t\tunpackedLFs[i].logicalFormId + \"-\" + incrStr;\n\t\t\t\t\tvec.add(unpackedLFs[i].logicalFormId);\n\t\t\t\t\tfor (int j = 0; j < unpackedLFs[i].noms.length ; j++) {\n\t\t\t\t\t\tLFNominal nom = unpackedLFs[i].noms[j];\n\t\t\t\t\t\tString[] split = nom.nomVar.split(\"_\");\n\t\t\t\t\t\tif (split.length == 2) {\n\t\t\t\t\t\t\tif (uniformNumbering.equals(\"\")) {\n\t\t\t\t\t\t\t\tuniformNumbering = split[1];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tnom.nomVar = split[0] + \"_\" + uniformNumbering;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int k = 0; k < nom.rels.length; k++) {\n\t\t\t\t\t\t\tLFRelation rel = nom.rels[k];\n\t\t\t\t\t\t\tString[] split2 = rel.head.split(\"_\");\n\t\t\t\t\t\t\trel.head = split2[0] + \"_\" + uniformNumbering;\n\t\t\t\t\t\t\tString[] split3 = rel.dep.split(\"_\");\n\t\t\t\t\t\t\trel.dep = split3[0] + \"_\" + uniformNumbering;\n\t\t\t\t\t\t} // end for over relations \n\t\t\t\t\t} // end for over nominals in unpacked LFs\n\t\t\t\t} // end for over unpacked LFs\n\t\t\t\tVector<LogicalForm> lfs = LFArrayToVector(unpackedLFs);\t\t\t\t\n\t\t\t\ttotalLFs.addAll(lfs);\n\t\t\t\tif (result.finalized == this.FINAL_PARSE) {\n\t\t\t\t\talreadyFinishedParses.put(phon.id, result);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tareParsesFinished = false;\n\t\t\t\t}\n\t\t\t\tincrStr++;\n\t\t\t}\n\t\t\t// phonological string is not parsable\n\t\t\telse {\n\t\t\t\tresults.nonParsablePhonStrings.add(phon);\n\t\t\t}\n\t\t} // end for over recognition results\n\t\tLogicalForm[] totalLFsArray = new LogicalForm[totalLFs.size()];\n\t\ttotalLFsArray = totalLFs.toArray(totalLFsArray);\n\t\t// Pack the LFs for the entire lattice\n\t\tPackedLogicalForm plf = packingTool.packLogicalForms(totalLFsArray);\n\t\tresults.plf = plf;\n\t\tresults.nonStandardRulesApplied = nonStandardRules;\n\t\tresults.plf.packedLFId = \"plf\"+ utteranceIncrement;\n\t\tresults.finalized = this.FINAL_PARSE;\n\t\tutteranceIncrement++;\n\t\tresults.stringPos = -1;\n\t\t// Total number of logical forms for lattice = totalLFsArray.length\n\t\treturn results;\n\t}", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "public interface IParser {\n\n /**\n * Coco/R generated function. It is used to inform parser about semantic errors.\n */\n void SemErr(String str);\n\n /**\n * Coco/R generated function for parsing input. The signature was changes in parsers' frame files so that it\n * receives source argument.\n *\n * @param source source to be parsed\n */\n void Parse(Source source);\n\n /**\n * Resets the parser but not the {@link NodeFactory} instance it holds. This way it can be used multiple times with\n * storing current state (mainly identifiers table). This is useful for parsing unit files before parsing the actual\n * source.\n */\n void reset();\n\n /**\n * Returns whether there were any errors throughout the parsing of the last source.\n */\n boolean hadErrors();\n\n /**\n * Sets support for extended goto. If this option is turned on, the parser will generate {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.ExtendedBlockNode}s\n * instead of {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.BlockNode}s.\n */\n void setExtendedGoto(boolean extendedGoto);\n\n /**\n * Returns true if the support for Turbo Pascal extensions is turned on.\n */\n boolean isUsingTPExtension();\n\n /**\n * Reutnrs the root node of the last parsed source.\n */\n RootNode getRootNode();\n\n}", "public static void getTitles(String tag){\n Connection con = LyricsAccess.startconnection(\"orcl\");\n int count = 0; //song lyrics count\n int page = 1; //page of lyrics\n \n while(count<50){\n XmlPage xml = getXmlResults(tag,page);\n if(xml.asXml().contains(\"error code\")){ //if there was an error, exit\n return;\n }\n //System.out.println(xml.asXml());\n try{\n BufferedReader in = new BufferedReader(new StringReader(xml.asXml()));\n\n String line = \"\";\n String lastline = \"\";\n boolean nameflag = false;\n boolean artistflag = false;\n String artist = \"\";\n String name = \"\"; \n int length = 0;\n\n while((line = in.readLine())!=null){ //iterate thorugh each line \n if(lastline.trim().equals(\"<duration>\")){\n length = Integer.parseInt(line.trim());\n //System.out.println(length);\n } \n if(nameflag){ //song name\n name = line.trim().replace(\"&amp;\", \"&\"); //convert HTML escaped character into normal character\n //System.out.println(line.trim());\n }\n if(artistflag){ //song artist\n artist = line.trim();\n //System.out.println(\" \" + line.trim());\n\n // Get lyrics from online\n LyricsProcess lyric = new LyricsProcess();\n String uLyrics = lyric.webgrab(name,artist); //get lyrics\n String c_lyrics = \"\"; //with timestamp\n String nt_lyrics = \"\"; //no timestamp\n //c_lyrics = lyric.cleanup7(uLyrics,true); //clean up\n //nt_lyrics = lyric.cleanup7(uLyrics, false); //clean up (without timestamp)\n \n nt_lyrics = LyricsWiki.cleanup(LyricsWiki.grabLyrics(name, artist)); //get lyrics and clean up\n //System.out.println(c_lyrics);\n \n //random wait time\n Random rand = new Random();\n int value = 1000*(rand.nextInt(4)+2);\n try {\n Thread.sleep(value);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n \n int moods[] = {5}; ///////////mood to be input, 0-7\\\\\\\\\\\\\\\\\\\\\\\n \n //c_lyrics = LyricsProcess.oneLine(c_lyrics);\n nt_lyrics = LyricsProcess.oneLine(nt_lyrics); //put lyrics in one line\n \n if(!nt_lyrics.isEmpty()){ //if there are lyrics\n LyricsAccess.saveto(con, name, artist, length, nt_lyrics, c_lyrics, moods);\n count++;\n System.out.println(count);\n }\n if(count==50){\n return;\n }\n } \n\n if(line.trim().equals(\"<name>\")&&!lastline.trim().equals(\"<artist>\")){ //finds the name of the song\n nameflag = true;\n } else {\n nameflag = false;\n }\n\n if(line.trim().equals(\"<name>\")&&lastline.trim().equals(\"<artist>\")){ //finds the artist of the song\n artistflag = true;\n } else {\n artistflag = false;\n }\n\n lastline = line;\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n \n page++;\n }\n }", "public Parser(URL url) {\n \t\t\ttry {\n \t\t\t\tload(url.openStream());\n \t\t\t} catch (Exception e) {\n \t\t\t\t// continue ... actual parsing will report errors\n \t\t\t}\n \t\t}", "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "public LEParser(java.io.InputStream stream, String encoding) {\n try { jj_input_stream = new JavaCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }\n token_source = new LEParserTokenManager(jj_input_stream);\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 5; i++) jj_la1[i] = -1;\n }", "public SceneObject parse(XmlPullParser parser) throws XmlPullParserException, IOException {\n while (parser.getEventType() != XmlPullParser.START_TAG) {\n parser.next();\n if (parser.getEventType() == XmlPullParser.END_DOCUMENT)\n throw new XmlPullParserException(\"Unexpected END_DOCUMENT\");\n }\n\n SceneObject object = createSceneObject(parser);\n\n if (object == null)\n return null;\n\n float opacity = -1;\n boolean visible = object.isVisible();\n int renderingOrder = -1;\n\n // Parse attributes\n AttributeSet attributeSet = Xml.asAttributeSet(parser);\n for (XmlAttributeParser attributeParser : mAttributeParsers) {\n attributeParser.parse(mContext, object, attributeSet);\n }\n\n // TODO refactor\n for (int i = 0; i < attributeSet.getAttributeCount(); ++i) {\n\n switch (attributeSet.getAttributeName(i)) {\n\n case \"visible\":\n visible = attributeSet.getAttributeBooleanValue(i, visible);\n break;\n\n case \"opacity\":\n opacity = Float.parseFloat(parser.getAttributeValue(i));\n break;\n\n case \"renderingOrder\":\n renderingOrder = attributeSet.getAttributeIntValue(i, renderingOrder);\n break;\n }\n }\n\n // TODO refactor\n // Apply renderingOrder\n if (renderingOrder >= 0 && object.getRenderData() != null) {\n object.getRenderData().setRenderingOrder(renderingOrder);\n }\n\n // Parse children\n while (parser.next() != XmlPullParser.END_TAG) {\n\n if (parser.getEventType() == XmlPullParser.START_TAG) {\n SceneObject child = parse(parser);\n if (child != null) {\n object.addChildObject(child);\n }\n }\n }\n\n // TODO refactor\n /*\n * These are propagated to children so must be called after children are\n * added.\n */\n\n // Apply opacity\n if (opacity >= 0.0f) {\n object.setOpacity(opacity);\n }\n\n // Apply visible\n object.setVisible(visible);\n\n return object;\n }", "public Process parse(InputSource isrc, URI systemURI) throws IOException, SAXException {\n XMLReader _xr = XMLParserUtils.getXMLReader();\n LocalEntityResolver resolver = new LocalEntityResolver();\n resolver.register(Bpel11QNames.NS_BPEL4WS_2003_03, getClass().getResource(\"/bpel4ws_1_1-fivesight.xsd\"));\n resolver.register(Bpel20QNames.NS_WSBPEL2_0, getClass().getResource(\"/wsbpel_main-draft-Apr-29-2006.xsd\"));\n resolver.register(Bpel20QNames.NS_WSBPEL2_0_FINAL_ABSTRACT, getClass().getResource(\"/ws-bpel_abstract_common_base.xsd\"));\n resolver.register(Bpel20QNames.NS_WSBPEL2_0_FINAL_EXEC, getClass().getResource(\"/ws-bpel_executable.xsd\"));\n resolver.register(Bpel20QNames.NS_WSBPEL2_0_FINAL_PLINK, getClass().getResource(\"/ws-bpel_plnktype.xsd\"));\n resolver.register(Bpel20QNames.NS_WSBPEL2_0_FINAL_SERVREF, getClass().getResource(\"/ws-bpel_serviceref.xsd\"));\n resolver.register(Bpel20QNames.NS_WSBPEL2_0_FINAL_VARPROP, getClass().getResource(\"/ws-bpel_varprop.xsd\"));\n resolver.register(XML, getClass().getResource(\"/xml.xsd\"));\n resolver.register(WSDL,getClass().getResource(\"/wsdl.xsd\"));\n resolver.register(Bpel20QNames.NS_WSBPEL_PARTNERLINK_2004_03,\n getClass().getResource(\"/wsbpel_plinkType-draft-Apr-29-2006.xsd\"));\n _xr.setEntityResolver(resolver);\n Document doc = DOMUtils.newDocument();\n _xr.setContentHandler(new DOMBuilderContentHandler(doc));\n _xr.setFeature(\"http://xml.org/sax/features/namespaces\",true);\n _xr.setFeature(\"http://xml.org/sax/features/namespace-prefixes\", true);\n \n _xr.setFeature(\"http://xml.org/sax/features/validation\", true);\n\t\tXMLParserUtils.addExternalSchemaURL(_xr, Bpel11QNames.NS_BPEL4WS_2003_03, Bpel11QNames.NS_BPEL4WS_2003_03);\n\t\tXMLParserUtils.addExternalSchemaURL(_xr, Bpel20QNames.NS_WSBPEL2_0, Bpel20QNames.NS_WSBPEL2_0);\n\t\tXMLParserUtils.addExternalSchemaURL(_xr, Bpel20QNames.NS_WSBPEL2_0_FINAL_EXEC, Bpel20QNames.NS_WSBPEL2_0_FINAL_EXEC);\n\t\tXMLParserUtils.addExternalSchemaURL(_xr, Bpel20QNames.NS_WSBPEL2_0_FINAL_ABSTRACT, Bpel20QNames.NS_WSBPEL2_0_FINAL_ABSTRACT);\n BOMSAXErrorHandler errorHandler = new BOMSAXErrorHandler();\n _xr.setErrorHandler(errorHandler);\n _xr.parse(isrc);\n if (Boolean.parseBoolean(System.getProperty(\"org.apache.ode.compiler.failOnValidationErrors\", \"false\"))) {\n\t if (!errorHandler.wasOK()) {\n\t \tthrow new SAXException(\"Validation errors during parsing\");\n\t }\n } else {\n \tif (!errorHandler.wasOK()) {\n \t\t__log.warn(\"Validation errors during parsing, continuing due to -Dorg.apache.ode.compiler.failOnValidationErrors=false switch\");\n \t}\n }\n return (Process) createBpelObject(doc.getDocumentElement(), systemURI);\n }", "private void parseForRecords() {\r\n\t\tApacheAgentExecutionContext c = (ApacheAgentExecutionContext)this.fContext;\r\n\t\tString text = c.getStatusPageContent();\r\n\t\tif(text == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tswitch(c.getApacheVersion()) {\r\n\t\t\tcase VERSION_IBM_6_0_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_ibm_6_0(text);\r\n\t\t\tbreak;\r\n\t\t\tcase VERSION_ORACLE_1_3_X:\r\n\t\t\tcase VERSION_IBM_1_3_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_1_3_x(text);\r\n\t\t\tbreak;\r\n\t\t\tcase VERSION_ORACLE_2_0_X:\r\n\t\t\tcase VERSION_IBM_2_0_X:\r\n\t\t\t\trecords = ApacheUtils.parseExtendedStatus_1_3_x(text);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tif(records == null) {\r\n\t\t\tfContext.error(new InvalidDataPattern());\r\n\t\t}\r\n\t}", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "public void runParser() throws Exception {\n\t\tparseXmlFile();\r\n\t\t\r\n\t\t//get each employee element and create a Employee object\r\n\t\tparseDocument();\r\n\t\t\r\n\t\t//Iterate through the list and print the data\r\n\t\t//printData();\r\n\t\t\r\n\t}", "private void parse(final Chain<Bunny, Lexi> b) {\n\t\tfor (boolean again = true; again;) {\n\t\t\tagain = false;\n\t\t\tfinal List<Lexi> directives = new ArrayList<>();\n\t\t\tfinal List<Matcher> matchers = new ArrayList<>();\n\t\t\tfinal List<Anchor> anchors = new ArrayList<>();\n\t\t\tfinal List<Anchor> satiatedAnchors = new ArrayList<>();\n\t\t\tb.printChain();\n\t\t\tfor (final Chain<Bunny, Lexi>.Node node : b) {\n\t\t\t\tif (node.get() instanceof Lexi) {\n\t\t\t\t\tdirectives.add((Lexi) node.get());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (node.get() instanceof TriviaBunny) {\n\t\t\t\t\tfeedTrivia(matchers, node.get());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (!(node.get() instanceof TriviaBunny))\n\t\t\t\t\tstartNewMatchers(b, directives, matchers, anchors, node);\n\t\t\t\tfinal List<Matcher> satiatedMatchers = feedAndGetSatiated(matchers, node);\n\t\t\t\tsatiatedAnchors.addAll(azListAnchor(feedAndGetSatiated(anchors, node)));\n\t\t\t\tfor (final Anchor a : satiatedAnchors)\n\t\t\t\t\tif (matchers.stream().filter(m -> m.lexi == a.lexi && m.startsBeforeOrTogether(a)).count() == 0)\n\t\t\t\t\t\ta.explode();\n\t\t\t\tif (!satiatedMatchers.isEmpty()) {\n\t\t\t\t\tapplyLexi(getRuller(satiatedMatchers));\n\t\t\t\t\tagain = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!again && !satiatedAnchors.isEmpty())\n\t\t\t\tsatiatedAnchors.get(0).explode();\n\t\t}\n\t}", "public ParserResult parse(String srcText, boolean editorMode) {\n\t\tthis.editorMode = editorMode;\n\t\t\n\t\treturn parse(srcText);\n\t}", "protected abstract void parse(String line);", "public Parser() {}", "public void endParsing();", "@Override\n protected Boolean doInBackground( String... params) {\n XMLParserTienda parser = new XMLParserTienda(strURL, null);\n ArrayTiendas = parser.parse();\n return true;\n }", "public Parser() {\n\t\tpopulateMaps();\n\t}", "private Parser() {\n objetos = new ListaEnlazada();\n }", "public void getParsed(String text) {\n\t\tAnnotation document = new Annotation(text);\n\n\t\t// run all Annotators on this text\n\t\tpipeline.annotate(document);\n\t\tsentences = document.get(SentencesAnnotation.class);\n\t\tsentIt = sentences.iterator();\n\t}", "private LogDataHolder parseLog()\n throws XMLStreamException \n {\n /*\n // These values don't seem to be used for anything, so don't try to set them\n String ascensionLogXMLVersion = \"\";\n String fileCreatorName = \"\";\n String fileCreatorVersion = \"\";\n */\n \n while (parser.hasNext()) {\n switch (parser.getEventType()) {\n case XMLStreamConstants.START_ELEMENT:\n final String nodeName = parser.getLocalName();\n /*\n if (nodeName.equals(\"ascensionlogxml\")) {\n for (int i = 0; i < parser.getAttributeCount(); i++)\n if (parser.getAttributeLocalName(i).equals(\"version\"))\n ascensionLogXMLVersion = parser.getAttributeValue(i);\n } else if (nodeName.equals(\"filecreator\")) {\n for (int i = 0; i < parser.getAttributeCount(); i++)\n if (parser.getAttributeLocalName(i).equals(\"programname\"))\n fileCreatorName = parser.getAttributeValue(i);\n else if (parser.getAttributeLocalName(i).equals(\"programversion\"))\n fileCreatorVersion = parser.getAttributeValue(i);\n } else */ \n if (nodeName.equals(\"ascension\"))\n parseAscension();\n\n break;\n default:\n break;\n }\n parser.next();\n }\n\n return logData;\n }", "public Content<T> parseFrom(Collection<T> content, T left, T right) {\n /*\n Ideally, this function is going to be getting information that looks something like this:\n\n obj1{obj2}moreinfo\n\n So, the strategy for parsing something like this is to make a data structure with the representation:\n\n [Literal(\"obj1\"), Scope([Literal(\"obj2\")]), Content(\"moreinfo\")]\n\n So we parse everything up to a delimiter, parse everything within the delimiters, and then everything after it\n */\n\n // Get all current information\n Literal<T> literal = new Literal<T>(\n left,\n right,\n FlatParser.untilNextDelimiter(content, left));\n\n\n // We are at the end of the statement to parse, just return the literal\n if(literal.value.size() == content.size())\n return literal;\n else {\n Scope<T> scopedElement = new Scope();\n Scope<T> rest = new Scope();\n\n\n // If there is more content other than the literal, we have to parse the inner elements and outer elements\n return new Content<>(\n Util.concatenate(\n Util.wrap(literal),\n\n Util.wrap(scopedElement.parseFrom(\n FlatParser.withinDelim(content, left, right).get(0),\n left, right)),\n\n Util.wrap(rest.parseFrom(\n FlatParser.afterNextScope(content, left, right),\n left, right))\n )\n );\n\n }\n }", "void initBeforeParsing() {\r\n }", "private LinkedList<Element> parseArray() {\r\n \r\n LinkedList<Element> array=new LinkedList<>();//create linked list\r\n \r\n char chr=next();//consume first character\r\n assert chr=='[';//assert first character is an open square bracket\r\n while (chr!=']') {//until closing bracket\r\n \r\n switch (peek()) {//switch on next character\r\n case ' ':\r\n case '\\t':\r\n case '\\n':\r\n case '\\r': chr=next(); //discard whitespace\r\n break;\r\n case '\"': array.add(new ScalarElement(Element.STRING,parseString()));//parse string \r\n break;\r\n case '-':\r\n case '0':\r\n case '1':\r\n case '2':\r\n case '3':\r\n case '4':\r\n case '5':\r\n case '6':\r\n case '7':\r\n case '8':\r\n case '9': array.add(new ScalarElement(Element.NUMBER,parseNumber()));//parse number\r\n break;\r\n case 'f':\r\n case 't': array.add(new ScalarElement(Element.BOOLEAN,parseBoolean()));//parse boolean token\r\n break;\r\n case 'n': array.add(new ScalarElement(Element.NULL,parseNull()));//parse null token\r\n break;\r\n\r\n case '{': array.add(new ObjectElement(parseObject()));//parse object\r\n break;\r\n case '[': array.add(new ArrayElement(parseArray()));//parse array\r\n break;\r\n case ',': chr=next(); //consume the comma character\r\n break;\r\n case ']': chr=next(); //consume the close bracket character\r\n break;\r\n default : throw new RuntimeException(\"Invalid syntax : \"+context());//holy syntax batman...\r\n\r\n }//switch on next character \r\n \r\n }//until closing bracket \r\n \r\n return array;//looking good Huston\r\n \r\n }", "private ReoFile<T> parse(CharStream c) throws IOException {\n\t\tReoLexer lexer = new ReoLexer(c); \n\t\tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\t\t\n\t\tReoParser parser = new ReoParser(tokens);\n\t\tMyErrorListener errListener = new MyErrorListener();\n\t\tparser.removeErrorListeners();\n\t\tparser.addErrorListener(errListener);\n\t\t\n\t\tParseTree tree = parser.file();\n\t\tif (errListener.hasError)\n\t\t\treturn null;\n\t\t\n\t\tParseTreeWalker walker = new ParseTreeWalker();\n\t\twalker.walk(listener, tree);\n\t\treturn listener.getMain();\n\t}", "public void parse(String filename);", "public interface ChronoParser<T> {\n\n //~ Methoden ----------------------------------------------------------\n\n /**\n * <p>Interpretes given text starting at the position defined in\n * parse-log. </p>\n *\n * <p>Implementation note: Any implementation will parse the text first\n * at the position {@code status.getPosition()} and then set the new\n * position in the parse log if successful. In case of error the\n * error index in the parse log will be updated instead. </p>\n *\n * @param text text to be parsed\n * @param status parser information (always as new instance)\n * @param attributes control attributes\n * @return result or {@code null} if parsing does not work\n * @throws IndexOutOfBoundsException if the start position is at end of\n * text or even behind\n */\n /*[deutsch]\n * <p>Interpretiert den angegebenen Text ab der angegebenen Position. </p>\n *\n * <p>Implementierungshinweis: Eine Implementierung wird den Text erst\n * ab der angegebenen Position {@code status.getPosition()} auswerten und\n * dann in der Statusinformation nach einer erfolgreichen Interpretierung\n * die aktuelle Position neu setzen oder im Fehlerfall den Fehlerindex auf\n * die fehlerhafte Stelle im Text setzen. </p>\n *\n * @param text text to be parsed\n * @param status parser information (always as new instance)\n * @param attributes control attributes\n * @return result or {@code null} if parsing does not work\n * @throws IndexOutOfBoundsException if the start position is at end of\n * text or even behind\n */\n T parse(\n CharSequence text,\n ParseLog status,\n AttributeQuery attributes\n );\n\n}", "private void processContentCn() {\n if (this.content == null || this.content.equals(\"\")) {\r\n _logger.error(\"{} - The sentence is null or empty\", this.traceId);\r\n }\r\n\r\n // process input using ltp(Segmentation, POS, DP, SRL)\r\n this.ltp = new LTP(this.content, this.traceId, this.setting);\r\n }", "Parse createParse();", "private void startParsing(){\r\n pondred = new ArrayList<>();\r\n //extract docs from corpus\r\n for (String xml:parseDocsFile(docs_file))\r\n {\r\n try {\r\n pondred.add(loadXMLFromString(xml));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n System.out.println(\"Ending parsing\");\r\n for (Core pon:pondred){\r\n for (String string:pon.abstractTerm){\r\n Double tf = pon.getAbstractFerq(string)/pon.getAbstractSize();\r\n Double idf = Math.log10(Core.count/countingDuplicates(string));\r\n pon.abstractFrequence.put(string,tf*idf);\r\n }\r\n pon.finish();\r\n }\r\n }", "public void parse(Config_Class configs, ArrayList<Stanford_Class> content)\r\n\t{\r\n\t\tthis.Content = null;\r\n\t\tthis.Content = new ArrayList<Stanford_Class>(content);\r\n\t\tGet_MalwareName_Form_Term(configs);\r\n\t}", "CParser getParser();", "public abstract T parse(Object valueToParse, Type type);", "@Override\npublic\tvoid parseInput() {\n InputStream is = new ByteArrayInputStream(this.body.toString().getBytes());\n\t\t\n\t\t\n\t\ttry {\n\t\t\tthis.domIn = new XMLInputConversion(is);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.rootXML = this.domIn.extractDOMContent();\n\t}", "protected final void parsel() {\n if (current == 'l') {\n current = read();\n }\n skipSpaces();\n for (;;) {\n switch (current) {\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n currentX += x;\n smoothQCenterX = currentX;\n smoothCCenterX = currentX;\n\n currentY += y;\n smoothQCenterY = currentY;\n smoothCCenterY = currentY;\n p.lineTo(smoothCCenterX, smoothCCenterY);\n break;\n default:\n return;\n }\n skipCommaSpaces();\n }\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tparseFile(\"english_file.txt\");\r\n\t\t\t\t}", "private Document parseFile() throws IOException {\n\tString contents = instream_to_contents();\n\tDocument doc = Jsoup.parse(contents);\n\treturn doc;\n }", "public interface Parser<T> {\n\t\n\t/**\n\t * Il metodo che deve essere completato per poter analizzare la stringa\n\t * @param value la stringa da analizzare\n\t * @return il tipo di dato voluto\n\t */\n\tpublic T parse(String value);\n\t\n}", "public AParser(String RootPath) {\n\t\tthis.mngr = new AFileManager(RootPath, true);\n\t\tthis.parrsedArray = new ArrayList<String>();\n\t}" ]
[ "0.7482393", "0.6984218", "0.5776953", "0.57038766", "0.55549055", "0.54240406", "0.5363604", "0.5169888", "0.5130189", "0.508351", "0.5078317", "0.5008557", "0.5006723", "0.5003513", "0.50026286", "0.49685892", "0.49626923", "0.49236348", "0.4921918", "0.48756972", "0.48752892", "0.48501512", "0.48401192", "0.48398954", "0.483359", "0.47938022", "0.47896776", "0.47751293", "0.4742258", "0.4737755", "0.47198907", "0.47195596", "0.47151512", "0.4701868", "0.46938294", "0.4691854", "0.46900582", "0.4664099", "0.4661197", "0.4659651", "0.4659651", "0.4641473", "0.46317148", "0.46292648", "0.46100107", "0.46056432", "0.45884657", "0.45872512", "0.45798185", "0.457799", "0.457146", "0.45683348", "0.45648775", "0.4559637", "0.45569825", "0.45463437", "0.45426276", "0.4530682", "0.45286596", "0.4520745", "0.45191872", "0.4514089", "0.45126984", "0.4505429", "0.45020548", "0.44922674", "0.44805282", "0.44777262", "0.44700524", "0.44680786", "0.44624606", "0.44596082", "0.44557413", "0.44527426", "0.44467944", "0.44416016", "0.44389996", "0.4425973", "0.44177246", "0.44160575", "0.44160482", "0.44103667", "0.44076455", "0.44030464", "0.43932593", "0.43928024", "0.43921915", "0.43921256", "0.43864325", "0.43842134", "0.43801016", "0.4372133", "0.43676832", "0.43670323", "0.4361237", "0.43536213", "0.4349194", "0.4349014", "0.4348122", "0.434267" ]
0.64643496
2
Returns the BibliographicCorrelation based on MARC encoding and category code.
@SuppressWarnings("unchecked") public BibliographicCorrelation getBibliographicCorrelation( final Session session, final String tag, final char firstIndicator, final char secondIndicator, final int categoryCode) throws HibernateException { final List<BibliographicCorrelation> correlations = categoryCode != 0 ? session.find( "from BibliographicCorrelation as bc " + "where bc.key.marcTag = ? and " + "(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and " + "bc.key.marcFirstIndicator <> '@' and " + "(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and " + "bc.key.marcSecondIndicator <> '@' and " + "bc.key.marcTagCategoryCode = ?", new Object[]{tag, firstIndicator, secondIndicator, categoryCode}, new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER, Hibernate.INTEGER}) : session.find( "from BibliographicCorrelation as bc " + "where bc.key.marcTag = ? and " + "(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and " + "bc.key.marcFirstIndicator <> '@' and " + "(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and " + "bc.key.marcSecondIndicator <> '@' order by bc.key.marcTagCategoryCode asc", new Object[]{tag, firstIndicator, secondIndicator}, new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER}); return correlations.stream().filter(Objects::nonNull).findFirst().orElse(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public CorrelationKey getMarcEncoding(\n final int category, final int firstCorrelation,\n final int secondCorrelation, final int thirdCorrelation, final Session session) throws HibernateException {\n final List<Correlation> result = session.find(\n \"from BibliographicCorrelation as bc \"\n + \"where bc.key.marcTagCategoryCode = ? and \"\n + \"bc.databaseFirstValue = ? and \"\n + \"bc.databaseSecondValue = ? and \"\n + \"bc.databaseThirdValue = ?\",\n new Object[]{category, firstCorrelation, secondCorrelation, thirdCorrelation},\n new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER});\n\n return result.stream().filter(Objects::nonNull).findFirst().map(Correlation::getKey).orElse(null);\n }", "private static Correlation getCorrelation(Query query, PhemaElmToOmopTranslatorContext context)\n throws PhemaNotImplementedException, CorrelationException, PhemaTranslationException {\n Expression correlationExpression = query.getRelationship().get(0).getSuchThat();\n\n if (!correlationExpressionSupported(correlationExpression)) {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n\n Map<String, QuickResource> aliases = setupAliases(query, context);\n\n if (correlationExpression instanceof Equal) {\n QuickResourceAttributePair lhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(0), aliases);\n QuickResourceAttributePair rhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(1), aliases);\n\n return new Correlation(lhs, rhs, correlationExpression);\n } else {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n }", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "public com.yangtian.matrix.MatrixOrBuilder getCOrBuilder() {\n return getC();\n }", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "public String getCncategory() {\n return cncategory;\n }", "@Override\n public List<MetadataCorrelationHeader> getCorrelationHeaders()\n {\n if (correlationHeaders == null)\n {\n return null;\n }\n else if (correlationHeaders.isEmpty())\n {\n return null;\n }\n\n return correlationHeaders;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "public com.yangtian.matrix.MatrixOrBuilder getCOrBuilder() {\n if (cBuilder_ != null) {\n return cBuilder_.getMessageOrBuilder();\n } else {\n return c_ == null ?\n com.yangtian.matrix.Matrix.getDefaultInstance() : c_;\n }\n }", "public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }", "@Override\n\tpublic Marca getMarca(int idmarc) {\n\t\treturn marcadao.getMarca(idmarc);\n\t}", "public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }", "public String correlationId() {\n return correlationId;\n }", "public static JwComparator<AcUspsInternationalClaim> getCategoryCodeComparator()\n {\n return AcUspsInternationalClaimTools.instance.getCategoryCodeComparator();\n }", "public void spearmansRankCorrelation(double cutoff, MWBMatchingAlgorithm mwbm) {\n double p = 0;\n\n SpearmansCorrelation t = new SpearmansCorrelation();\n\n // size has to be the same so we randomly sample the number of the smaller sample from\n // the big sample\n if (this.train.size() > this.test.size()) {\n this.sample(this.train, this.test, this.train_values);\n }\n else if (this.test.size() > this.train.size()) {\n this.sample(this.test, this.train, this.test_values);\n }\n\n // try out possible attribute combinations\n for (int i = 0; i < this.train.numAttributes(); i++) {\n for (int j = 0; j < this.test.numAttributes(); j++) {\n // negative infinity counts as not present, we do this so we don't have to map\n // between attribute indexs in weka\n // and the result of the mwbm computation\n mwbm.setWeight(i, j, Double.NEGATIVE_INFINITY);\n\n // class attributes are not relevant\n if (this.test.classIndex() == j) {\n continue;\n }\n if (this.train.classIndex() == i) {\n continue;\n }\n\n p = t.correlation(this.train_values.get(i), this.test_values.get(j));\n if (p > cutoff) {\n mwbm.setWeight(i, j, p);\n }\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n public List<Avp<String>> getThirdCorrelationList(final Session session,\n final int category,\n final int value1,\n final int value2,\n final Class classTable,\n final Locale locale) throws DataAccessException {\n try {\n final List<CodeTable> codeTables = session.find(\" select distinct ct from \"\n + classTable.getName()\n + \" as ct, BibliographicCorrelation as bc \"\n + \" where bc.key.marcTagCategoryCode = ? and \"\n + \" bc.key.marcFirstIndicator <> '@' and \"\n + \" bc.key.marcSecondIndicator <> '@' and \"\n + \" bc.databaseFirstValue = ? and \"\n + \" bc.databaseSecondValue = ? and \"\n + \" bc.databaseThirdValue = ct.code and \"\n + \" ct.obsoleteIndicator = '0' and \"\n + \" ct.language = ? \"\n + \" order by ct.sequence \",\n new Object[]{category, value1, value2, locale.getISO3Language()},\n new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING});\n\n return codeTables\n .stream()\n .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText()))\n .collect(toList());\n\n } catch (final HibernateException exception) {\n logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception);\n return Collections.emptyList();\n }\n }", "int getRmsCyc();", "public CCode getC() {\n \t\treturn c;\n \t}", "@SuppressWarnings(\"unchecked\")\n public List<Avp<String>> getSecondCorrelationList(final Session session,\n final int category,\n final int value1,\n final Class classTable,\n final Locale locale) throws DataAccessException {\n try {\n final List<CodeTable> codeTables = session.find(\"Select distinct ct from \"\n + classTable.getName()\n + \" as ct, BibliographicCorrelation as bc \"\n + \" where bc.key.marcTagCategoryCode = ? and \"\n + \" bc.key.marcFirstIndicator <> '@' and \"\n + \" bc.key.marcSecondIndicator <> '@' and \"\n + \" bc.databaseFirstValue = ? and \"\n + \" bc.databaseSecondValue = ct.code and \"\n + \" ct.obsoleteIndicator = '0' and \"\n + \" ct.language = ? \"\n + \" order by ct.sequence \",\n new Object[]{category, value1, locale.getISO3Language()},\n new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING});\n\n return codeTables\n .stream()\n .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText()))\n .collect(toList());\n } catch (final HibernateException exception) {\n logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception);\n return Collections.emptyList();\n }\n }", "@Override\r\n\tpublic Double getModel_fixed_correlation() {\n\t\treturn super.getModel_fixed_correlation();\r\n\t}", "public jkt.hms.masters.business.RcHeader getRc () {\n\t\treturn rc;\n\t}", "@Override\r\n\tpublic Double getModel_cash_correlation() {\n\t\treturn super.getModel_cash_correlation();\r\n\t}", "@Override\n\tpublic EncodingType getEncodingType() {\n\t\treturn EncodingType.CorrelationWindowEncoder;\n\t}", "public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCazuri(int index) {\n if (cazuriBuilder_ == null) {\n return cazuri_.get(index);\n } else {\n return cazuriBuilder_.getMessage(index);\n }\n }", "java.lang.String getCit();", "java.lang.String getC3();", "public org.drip.measure.stochastic.LabelCorrelation singleCurveTenorCorrelation()\n\t{\n\t\treturn _singleCurveTenorCorrelation;\n\t}", "public String getCorn() {\n return corn;\n }", "public void codifRLC()\n\t{\n\t\tList<Integer> result= new ArrayList<Integer>();\n\t\tint rgb=0;\n\t\tColor color;\n\t\tint r=0;\n\t\tint ant=-1;\n\t\tint acum=0;\n\t\tfor(int i=this.inicalto;i<=this.alto;i++) {\n\t\t\tfor(int j=this.inicancho;j<=this.ancho;j++)\n\t\t\t{\n\t\t\t\trgb = this.img.getRGB(j, i);\n\t\t\t\tcolor = new Color(rgb, true);\n\t\t\t\tr = color.getRed();\n\t\t\t\t\tif(ant==-1) {\n\t\t\t\t\t\tant=r;\n\t\t\t\t\t\tacum=1;\n\t\t\t\t\t}\n\t\t\t\t\t\tif(r==ant && acum<256)\n\t\t\t\t\t\t\tacum++;\n\t\t\t\t\t\t\tif(r!=ant){\n\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t\tant=r;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(acum==255){\n\t\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tresult.add(ant);\n\t\tresult.add(acum);\n\t\t\n\t\tthis.CR=new CabeceraRLC(this.inicancho,this.inicalto,this.ancho,this.alto,img.TYPE_INT_RGB);\n\t\tthis.codResultRLC=result;\n\t\tthis.generarArchivoRLC(result);\n\t}", "public int getCCN(){\n\t\treturn ccn;\n\t}", "public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public com.yangtian.matrix.Matrix getC() {\n if (cBuilder_ == null) {\n return c_ == null ? com.yangtian.matrix.Matrix.getDefaultInstance() : c_;\n } else {\n return cBuilder_.getMessage();\n }\n }", "public com.walgreens.rxit.ch.cda.CE getReligiousAffiliationCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().find_element_user(RELIGIOUSAFFILIATIONCODE$16, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getC() {\n return c;\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "public Integer getCorpid() {\n return corpid;\n }", "public String getDisplacementCC() {\r\n return displacementCC;\r\n }", "@Override\r\n\tpublic reclamation getreclamatioin(long code_apoger) {\n\t\tfor(int i=0;i<reclamations.size();i++) {\r\n\t\t\t\r\n\t\t\tif(reclamations.get(i).getcodeapoger()==code_apoger)\r\n\t\t return reclamations.get(i);\r\n\t\t\t\r\n\t\t\t}\r\n\t\treturn null;\r\n\t}", "public String getlbr_CPF();", "public CorrelationIdUtils getCorrelationIdUtils() {\n return correlationIdUtils;\n }", "public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }", "public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n int nd=0;\n \n // Se comprueba para cada ni si es mayor que 0, en cuyo caso, se generan\n // los posibles códigos de longitud i que quedan libres y se asignan.\n while (i<n.size()){\n nd=nd*base;\n int cont=n.get(i);\n if (cont>0){\n candidatos=generaCod(i+1,nd);\n int cod=0;\n while (cont>0){\n res.add(alfabeto.getN(cont_alfa), candidatos.get(cod));\n nd++;\n cont_alfa++;\n cod++;\n cont--;\n }\n }\n i++;\n } \n return res;\n }", "private NetSqlca[] parseSQLCAGRP(Typdef typdef) {\n\n if (readFdocaOneByte() == CodePoint.NULLDATA) {\n return null;\n }\n int sqlcode = readFdocaInt();\n byte[] sqlstate = readFdocaBytes(5);\n byte[] sqlerrproc = readFdocaBytes(8);\n NetSqlca netSqlca = new NetSqlca(/*netAgent_.netConnection_, */sqlcode, sqlstate, sqlerrproc);\n\n parseSQLCAXGRP(typdef, netSqlca);\n\n NetSqlca[] sqlCa = parseSQLDIAGGRP();\n\n NetSqlca[] ret_val;\n if (sqlCa != null) {\n ret_val = new NetSqlca[sqlCa.length + 1];\n System.arraycopy(sqlCa, 0, ret_val, 1, sqlCa.length);\n } else {\n ret_val = new NetSqlca[1];\n }\n ret_val[0] = netSqlca;\n\n return ret_val;\n }", "@Override\n public String getCPR() {\n return CPR;\n }", "public String getCor() {\r\n return cor;\r\n }", "public java.lang.String getC1()\n {\n return this.c1;\n }", "public static double calculateCorrelation(TransposeDataList transposeDataList) {\n Object[] keys = transposeDataList.keySet().toArray();\n if(keys.length!=2) {\n throw new IllegalArgumentException(\"The collection must contain observations from 2 groups.\");\n }\n \n Object keyX = keys[0];\n Object keyY = keys[1];\n \n FlatDataCollection flatDataCollectionX = transposeDataList.get(keyX).toFlatDataCollection();\n FlatDataCollection flatDataCollectionY = transposeDataList.get(keyY).toFlatDataCollection();\n\n int n = flatDataCollectionX.size();\n if(n<=2 || n!=flatDataCollectionY.size()) {\n throw new IllegalArgumentException(\"The number of observations in each group must be equal and larger than 2.\");\n }\n\n double stdX= Descriptives.std(flatDataCollectionX,true);\n double stdY=Descriptives.std(flatDataCollectionY,true);\n\n double covariance=Descriptives.covariance(transposeDataList,true);\n\n double pearson=covariance/(stdX*stdY);\n\n return pearson;\n }", "protected String usaVociCorrelate() {\n StringBuilder testo = new StringBuilder(VUOTA);\n String titolo = \"Voci correlate\";\n List<String> lista = listaCorrelate == null ? listaVociCorrelate() : listaCorrelate;\n String tag = \"*\";\n\n if (array.isValid(lista)) {\n testo.append(LibWiki.setParagrafo(titolo));\n testo.append(A_CAPO);\n for (String riga : lista) {\n testo.append(tag);\n testo.append(LibWiki.setQuadre(riga));\n testo.append(A_CAPO);\n }// end of for cycle\n testo.append(A_CAPO);\n }// end of if cycle\n\n return testo.toString();\n }", "String getCmt();", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public java.lang.String getCA() {\n return CA;\n }", "public String getCitation();", "public void rcoFromInt(int coord) {\n coFromInt(coord % 2187);\n coord /= 2187;\n int i = 7;\n int k = 3;\n while(i >= 0 && k >= 0) {\n int binoCoef = 1;\n for (int j = 1, m = i; j <= k; j++, m--) {binoCoef = binoCoef * m / j;}\n if(coord >= binoCoef) {\n cp[i] = 0;\n i --;\n coord -= binoCoef;\n }\n else {\n cp[i] = 4;\n k --;\n i --;\n }\n }\n while(i >= 0) {\n cp[i] = 0;\n i --;\n }\n }", "public java.lang.String getC2()\n {\n return this.c2;\n }", "public com.yangtian.matrix.Matrix getC() {\n return c_ == null ? com.yangtian.matrix.Matrix.getDefaultInstance() : c_;\n }", "public ContaCorrente getContaCorrente() {\r\n return contaCorrente;\r\n }", "public int getC() {\n return c_;\n }", "public\t CSeqHeader getCSeq()\n { return (CSeqHeader) cSeqHeader ; }", "public java.lang.String getCuentaCLABE() {\n return cuentaCLABE;\n }", "public static String getQualification(String rfc) {\n\t\tString result = \"\";\n\t\tint sum = 0, count = 0, avg;\n\t\ttry\n\t\t{\n\t\t\tstmt = conn.createStatement();\n\t\t\tquery = \"SELECT QUALIFICATION \" + \"FROM CREDIT.LOANS \" + \"WHERE RFC='\" + rfc + \"' \" + \"GROUP BY QUALIFICATION\";\n\t\t\t\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tresult = rs.getString(1);\n\t\t\t\tcount++;\n\t\t\t\tswitch (result) {\n\t\t\t\tcase \"BAD\":\n\t\t\t\t\tsum += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"REGULAR\":\n\t\t\t\t\tsum += 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"GOOD\":\n\t\t\t\t\tsum += 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"VERY%20GOOD\":\n\t\t\t\t\tsum += 4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"EXCELENT\":\n\t\t\t\t\tsum += 5;\n\t\t\t\t}\n\t\t\t}\n\t\t\tquery = \"SELECT COUNT(*)FROM CREDIT.PAYMENTS P, CREDIT.LOANS L \" + \"WHERE P.LOAN_ID=L.ID AND P.REMAINING_AMOUNT <> 0 \"\n\t\t\t\t\t+ \"AND P.PAYMENT_DATE < SYSDATE AND L.RFC='\" + rfc + \"'\";\n\t\t\trs = stmt.executeQuery(query);\n\t\t\trs.next();\n\t\t\tsum -= (Integer.parseInt(rs.getString(1)) * 2); // TAKES NUMER OF\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// PAYMENTS\n\t\t\t// THAT THE COSTUMER\n\t\t\t// HAVEN'T DONE UNTIL\n\t\t\t// THE TODAY DATE\n\t\t\tif (getMissedPayments(rfc) > 0) sum--;\n\t\t\tif (count == 0) avg = 2;\n\t\t\telse avg = sum / count;\n\t\t\t\n\t\t\tswitch (avg) {\n\t\t\tcase 0:\n\t\t\t\tresult = \"VERY%20BAD\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tresult = \"BAD\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tresult = \"REGULAR\";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tresult = \"GOOD\";\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tresult = \"VERY%20GOOD\";\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tresult = \"EXCELENT\";\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(getMethodName(1) + \"\\t\" + result);\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "String getCADENA_TRAMA();", "public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz() {\n if (cazBuilder_ == null) {\n if (payloadCase_ == 4) {\n return (teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil) payload_;\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n } else {\n if (payloadCase_ == 4) {\n return cazBuilder_.getMessage();\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n }\n }", "public String getRcaT() {\n\t\treturn rcaT;\n\t}", "public String getContinuationFinChrtOfAcctCd() {\n return continuationFinChrtOfAcctCd;\n }", "public int getC() {\n return c_;\n }", "public String getcCode() {\n\t\treturn this.cCode;\n\t}", "@Override\n\tpublic java.lang.String getCategoryCode() {\n\t\treturn _lineaGastoCategoria.getCategoryCode();\n\t}", "public TreeTransformer collinizer()\n/* */ {\n/* 161 */ return new ArabicCollinizer(this.tlp, this.collinizerRetainsPunctuation, this.collinizerPruneRegex);\n/* */ }", "String getCcNr(String bookingRef);", "public String getRemasterCatalogueNumber() {\r\n\t\treturn this.remasterCatalogueNumber;\r\n\t}", "String getArcrole();", "public List<Currcycnct> getCurrcycnct()\n/* */ {\n/* 68 */ return this.currcycnct;\n/* */ }", "public static JwComparator<AcUspsInternationalClaim> getConsignmentOriginComparator()\n {\n return AcUspsInternationalClaimTools.instance.getConsignmentOriginComparator();\n }", "public static JwComparator<AcUspsInternationalClaim> getConsignmentNumberComparator()\n {\n return AcUspsInternationalClaimTools.instance.getConsignmentNumberComparator();\n }", "public MarcUtil getMarcUtil() {\n return marcUtil;\n }", "int getCedula();", "public int getCC() {\n\t\treturn CC;\n\t}", "public String getCorpcode() {\n return corpcode;\n }", "@Override\n protected String elaboraFooterCorrelate() {\n String text = CostBio.VUOTO;\n\n if (usaFooterCorrelate) {\n text += \"==Voci correlate==\";\n text += A_CAPO;\n text += LibWiki.setRigaQuadre(LibText.levaCoda(PATH_ANTRO, \"/\"));\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Cognomi\");\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Didascalie\");\n }// end of if cycle\n\n return text;\n }", "public String getMcc() {\n return mcc;\n }", "public java.util.Map<java.lang.Integer, org.drip.capital.allocation.CorrelationCategoryBeta>\n\t\tcorrelationCategoryBetaMap()\n\t{\n\t\treturn _correlationCategoryBetaMap;\n\t}", "public Integer getCategorySeq() {\n return categorySeq;\n }", "private String[] obtenerColores(List<Categoria> listaCategorias) {\n\t\tString[] colores = new String[listaCategorias.size()];\n\t\tRandom obj = new Random();\n\t\tfor (int i = 0; i < listaCategorias.size(); i++) {\n\t\t\tint rand_num = obj.nextInt(0xffffff + 1);\n\t\t\tcolores[i] = String.format(\"#%06x\", rand_num);\n\t\t}\n\t\treturn colores;\n\t}", "public org.chartacaeli.model.CatalogADC5109 getCatalogADC5109() {\n return this.catalogADC5109;\n }", "public String getLccCode() {\n\t\treturn lccCode;\n\t}", "public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabilOrBuilder getCazOrBuilder() {\n if ((payloadCase_ == 4) && (cazBuilder_ != null)) {\n return cazBuilder_.getMessageOrBuilder();\n } else {\n if (payloadCase_ == 4) {\n return (teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil) payload_;\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n }\n }", "public double getAuthority() {\n \treturn this.CTCAuthority;\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabilOrBuilder getCazuriOrBuilder(\n int index) {\n if (cazuriBuilder_ == null) {\n return cazuri_.get(index); } else {\n return cazuriBuilder_.getMessageOrBuilder(index);\n }\n }", "public java.lang.String getCxcode() {\r\r\r\r\r\r\r\n return cxcode;\r\r\r\r\r\r\r\n }", "public java.lang.String getCorpsmessage() {\r\n\t\treturn corpsmessage;\r\n\t}", "public CorrelationHandlerResult correlateMessage(CommandContext commandContext, String messageName, CorrelationSet correlationSet);", "@Test\n public void testCorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable1 = null;\n IDoubleArray observable2 = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.correlation(M, observable1, observable2, timepoints);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz() {\n if (payloadCase_ == 4) {\n return (teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil) payload_;\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n }", "public long getCas() {\n return casValue.getCas();\n }", "public String getCn() {\n return (String)getAttributeInternal(CN);\n }", "public PairVector getCCs(){\r\n\t\treturn mccabe.getCCs(javaclass);\r\n\t}", "public CAdxWebServiceXmlCC getCAdxWebServiceXmlCC() throws ServiceException {\n\t\treturn null;\n\t}", "private Matriks MatriksCofactor(Matriks M){\r\n\t\tMatriks Mcofactor = new Matriks(BrsEff, KolEff);\r\n\t\tfor(int i=0; i<BrsEff; i++){\r\n\t\t\tfor(int j=0;j<KolEff; j++){\r\n\t\t\t\tMatriks temp = M.Cofactor(M,i,j);\r\n\t\t\t\tMcofactor.Elmt[i][j] = temp.DetCofactor(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mcofactor;\r\n\t}", "public static Corridor genCorridor() {\n Intersection int1 = new Intersection(100, 50, 60, 0, 0, 0);\n int1.setRef(true);\n Intersection int2 = new Intersection(100, 60, 40, 0, 0, 4200);\n Intersection int3 = new Intersection(100, 60, 40, 0, 0, 5600);\n Intersection int4 = new Intersection(100, 50, 60, 10, 30, 7000);\n ArrayList<Intersection> intersections = new ArrayList<>(Arrays.asList(int1, int2, int3, int4));\n Corridor corr = new Corridor(intersections);\n corr.setSpeed(GlobalVariables.speedLim.get());\n return corr;\n }", "public Integer getCedula() {return cedula;}" ]
[ "0.61286825", "0.5855812", "0.50293964", "0.4900287", "0.4876581", "0.48593178", "0.48530573", "0.48315704", "0.4780829", "0.47469136", "0.47344002", "0.47214553", "0.47097436", "0.46884912", "0.468017", "0.46588793", "0.46383736", "0.45859042", "0.45852807", "0.45765382", "0.457215", "0.45565632", "0.45550525", "0.4539148", "0.45376316", "0.45185968", "0.4513536", "0.45090306", "0.4502285", "0.44924402", "0.44911695", "0.44880214", "0.44879544", "0.4483313", "0.4479613", "0.4471382", "0.44601068", "0.44532484", "0.44491273", "0.44205567", "0.4419975", "0.4419861", "0.44118807", "0.44003066", "0.43924576", "0.43913797", "0.4389485", "0.4358546", "0.4357366", "0.4351573", "0.43392956", "0.43279928", "0.43229124", "0.43153098", "0.43080845", "0.43034562", "0.43000087", "0.42993876", "0.42929566", "0.42876163", "0.42812276", "0.42760015", "0.4272264", "0.42704543", "0.4268409", "0.42648873", "0.4264781", "0.4261323", "0.42593464", "0.42555055", "0.42545018", "0.42510894", "0.42434853", "0.42394516", "0.42142954", "0.42119768", "0.42098406", "0.4207158", "0.42060852", "0.4202864", "0.42025656", "0.41988856", "0.4190427", "0.41823336", "0.41792247", "0.41684458", "0.41665456", "0.41657004", "0.4162264", "0.4161287", "0.41578287", "0.41495174", "0.41460988", "0.41417974", "0.41385406", "0.4138499", "0.41380018", "0.4137671", "0.41366076", "0.41324306" ]
0.693182
0
Gets third correlation values by marc category, first and second correlations.
@SuppressWarnings("unchecked") public List<Avp<String>> getThirdCorrelationList(final Session session, final int category, final int value1, final int value2, final Class classTable, final Locale locale) throws DataAccessException { try { final List<CodeTable> codeTables = session.find(" select distinct ct from " + classTable.getName() + " as ct, BibliographicCorrelation as bc " + " where bc.key.marcTagCategoryCode = ? and " + " bc.key.marcFirstIndicator <> '@' and " + " bc.key.marcSecondIndicator <> '@' and " + " bc.databaseFirstValue = ? and " + " bc.databaseSecondValue = ? and " + " bc.databaseThirdValue = ct.code and " + " ct.obsoleteIndicator = '0' and " + " ct.language = ? " + " order by ct.sequence ", new Object[]{category, value1, value2, locale.getISO3Language()}, new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING}); return codeTables .stream() .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText())) .collect(toList()); } catch (final HibernateException exception) { logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception); return Collections.emptyList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public CorrelationKey getMarcEncoding(\n final int category, final int firstCorrelation,\n final int secondCorrelation, final int thirdCorrelation, final Session session) throws HibernateException {\n final List<Correlation> result = session.find(\n \"from BibliographicCorrelation as bc \"\n + \"where bc.key.marcTagCategoryCode = ? and \"\n + \"bc.databaseFirstValue = ? and \"\n + \"bc.databaseSecondValue = ? and \"\n + \"bc.databaseThirdValue = ?\",\n new Object[]{category, firstCorrelation, secondCorrelation, thirdCorrelation},\n new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER});\n\n return result.stream().filter(Objects::nonNull).findFirst().map(Correlation::getKey).orElse(null);\n }", "@SuppressWarnings(\"unchecked\")\n public BibliographicCorrelation getBibliographicCorrelation(\n final Session session,\n final String tag,\n final char firstIndicator,\n final char secondIndicator,\n final int categoryCode) throws HibernateException {\n\n final List<BibliographicCorrelation> correlations =\n categoryCode != 0\n ? session.find(\n \"from BibliographicCorrelation as bc \"\n + \"where bc.key.marcTag = ? and \"\n + \"(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and \"\n + \"bc.key.marcFirstIndicator <> '@' and \"\n + \"(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and \"\n + \"bc.key.marcSecondIndicator <> '@' and \"\n + \"bc.key.marcTagCategoryCode = ?\",\n new Object[]{tag, firstIndicator, secondIndicator, categoryCode},\n new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER, Hibernate.INTEGER})\n : session.find(\n \"from BibliographicCorrelation as bc \"\n + \"where bc.key.marcTag = ? and \"\n + \"(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and \"\n + \"bc.key.marcFirstIndicator <> '@' and \"\n + \"(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and \"\n + \"bc.key.marcSecondIndicator <> '@' order by bc.key.marcTagCategoryCode asc\",\n new Object[]{tag, firstIndicator, secondIndicator},\n new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER});\n\n return correlations.stream().filter(Objects::nonNull).findFirst().orElse(null);\n }", "public Collection<Customer> getTop3CustomerWithMoreComplaints() {\n\t\tfinal Collection<Customer> ratio = new ArrayList<>();\n\n\t\tfinal Collection<Customer> customersCompl = this.customerRepository.getTop3CustomerWithMoreComplaints();\n\t\tint i = 0;\n\t\tfor (final Customer c : customersCompl)\n\t\t\tif (i < 3) {\n\t\t\t\tratio.add(c);\n\t\t\t\ti++;\n\n\t\t\t}\n\t\treturn ratio;\n\t}", "public Collection<Customer> getTop3CustomerWithMoreComplaints() {\r\n\t\tfinal Collection<Customer> ratio = new ArrayList<>();\r\n\r\n\t\tfinal Collection<Customer> customersCompl = this.customerRepository.getTop3CustomerWithMoreComplaints();\r\n\t\tint i = 0;\r\n\t\tfor (final Customer c : customersCompl)\r\n\t\t\tif (i < 3) {\r\n\t\t\t\tratio.add(c);\r\n\t\t\t\ti++;\r\n\r\n\t\t\t}\r\n\t\treturn ratio;\r\n\t}", "java.lang.String getC3();", "public java.lang.Long getC3()\n {\n return this.c3;\n }", "private void categorize(Map<Integer, Double> trips,\n\t\t\tMap<Integer, Double> category1, Map<Integer, Double> category2,\n\t\t\tMap<Integer, Double> category3) {\n\t\t// Add 3 first elements to categories\n\t\tObject[] arrTrips = trips.keySet().toArray();\n\t\tcategory1.put((Integer) arrTrips[0], trips.get((Integer) arrTrips[0]));\n\t\tcategory2.put((Integer) arrTrips[1], trips.get((Integer) arrTrips[1]));\n\t\tcategory3.put((Integer) arrTrips[2], trips.get((Integer) arrTrips[2]));\n\n\t\t// Categorize all the entries a few times for better result\n\t\tfor (int i = 0; i < CATEGORIZING_TIMES; i++) {\n\t\t\t// Compute categories' averages\n\t\t\tDouble avg1 = getValuesAvg(category1);\n\t\t\tDouble avg2 = getValuesAvg(category2);\n\t\t\tDouble avg3 = getValuesAvg(category3);\n\n\t\t\t// Move each entry to it's closest category by average\n\t\t\tfor (Entry<Integer, Double> entry : trips.entrySet()) {\n\t\t\t\tcategorizeEntry(category1, category2, category3, avg1, avg2,\n\t\t\t\t\t\tavg3, entry);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public List<BaseCategory3> getCategory3(Long category2Id) {\n QueryWrapper<BaseCategory3> baseCategory3QueryWrapper = new QueryWrapper<>();\n baseCategory3QueryWrapper.eq(\"category2_id\",category2Id);\n return baseCategory3Mapper.selectList(baseCategory3QueryWrapper);\n }", "private static Correlation getCorrelation(Query query, PhemaElmToOmopTranslatorContext context)\n throws PhemaNotImplementedException, CorrelationException, PhemaTranslationException {\n Expression correlationExpression = query.getRelationship().get(0).getSuchThat();\n\n if (!correlationExpressionSupported(correlationExpression)) {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n\n Map<String, QuickResource> aliases = setupAliases(query, context);\n\n if (correlationExpression instanceof Equal) {\n QuickResourceAttributePair lhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(0), aliases);\n QuickResourceAttributePair rhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(1), aliases);\n\n return new Correlation(lhs, rhs, correlationExpression);\n } else {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n }", "public final double get3rdCentralMoment() {\n return moments[3];\n }", "public Boolean getC3() {\n\t\treturn c3;\n\t}", "public static double calculateCorrelation(TransposeDataList transposeDataList) {\n Object[] keys = transposeDataList.keySet().toArray();\n if(keys.length!=2) {\n throw new IllegalArgumentException(\"The collection must contain observations from 2 groups.\");\n }\n \n Object keyX = keys[0];\n Object keyY = keys[1];\n \n FlatDataCollection flatDataCollectionX = transposeDataList.get(keyX).toFlatDataCollection();\n FlatDataCollection flatDataCollectionY = transposeDataList.get(keyY).toFlatDataCollection();\n\n int n = flatDataCollectionX.size();\n if(n<=2 || n!=flatDataCollectionY.size()) {\n throw new IllegalArgumentException(\"The number of observations in each group must be equal and larger than 2.\");\n }\n\n double stdX= Descriptives.std(flatDataCollectionX,true);\n double stdY=Descriptives.std(flatDataCollectionY,true);\n\n double covariance=Descriptives.covariance(transposeDataList,true);\n\n double pearson=covariance/(stdX*stdY);\n\n return pearson;\n }", "private void instantiateThirdVar(IntVar var1, int coeff1, IntVar var2, int coeff2, IntVar var3, int coeff3, int constant, Propagator prop) throws ContradictionException {\n IntIterableRangeSet possibleValues3 = new IntIterableRangeSet();\n int lb3 = var3.getLB();\n DisposableValueIterator iterator1 = var1.getValueIterator(true);\n while(iterator1.hasNext()){\n int v1 = iterator1.next();\n int updatedConstant = zpz.sub(constant,\n zpz.mul(zpz.repr(v1),coeff1));\n DisposableValueIterator iterator2 = var2.getValueIterator(true);\n while(iterator2.hasNext()){\n int v2 = iterator2.next();\n possibleValues3.add(zpz.getSmallestGreaterEqThan(lb3, zpz.div(zpz.sub(updatedConstant,\n zpz.mul(zpz.repr(v2),coeff2)),\n coeff3)));\n }\n }\n var3.removeAllValuesBut(possibleValues3, prop);\n }", "public Point3D getC() {\r\n return c;\r\n }", "private static <T> int med3(T x[], Comparator<T> comp, int a, int b, int c) {\n\t\treturn (comp.compare(x[a],x[b])<0 ?\n\t\t\t\t(comp.compare(x[b],x[c])<0 ? b : comp.compare(x[a],x[c])<0 ? c : a) :\n\t\t\t\t\t(comp.compare(x[b],x[c])>0 ? b : comp.compare(x[a],x[c])>0 ? c : a));\n\t}", "private void instantiateVarsTriple(IntVar var1, int coeff1, IntVar var2, int coeff2, IntVar var3, int coeff3, int constant, Propagator prop) throws ContradictionException {\n this.instantiateThirdVar(var1, coeff1, var2, coeff2, var3, coeff3, constant, prop);\n this.instantiateThirdVar(var2, coeff2, var3, coeff3, var1, coeff1, constant, prop);\n this.instantiateThirdVar(var1, coeff1, var3, coeff3, var2, coeff2, constant, prop);\n }", "private Matriks MatriksCofactor(Matriks M){\r\n\t\tMatriks Mcofactor = new Matriks(BrsEff, KolEff);\r\n\t\tfor(int i=0; i<BrsEff; i++){\r\n\t\t\tfor(int j=0;j<KolEff; j++){\r\n\t\t\t\tMatriks temp = M.Cofactor(M,i,j);\r\n\t\t\t\tMcofactor.Elmt[i][j] = temp.DetCofactor(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mcofactor;\r\n\t}", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "com.google.protobuf.ByteString\n getC3Bytes();", "@Test\n public void test08() throws Throwable {\n DefaultMultiValueCategoryDataset defaultMultiValueCategoryDataset0 = new DefaultMultiValueCategoryDataset();\n DefaultMultiValueCategoryDataset defaultMultiValueCategoryDataset1 = (DefaultMultiValueCategoryDataset)defaultMultiValueCategoryDataset0.clone();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n LineRenderer3D lineRenderer3D0 = new LineRenderer3D();\n Color color0 = (Color)lineRenderer3D0.getWallPaint();\n categoryAxis3D0.setTickMarkPaint(color0);\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((-339.34), (-339.34), \"\");\n StackedBarRenderer3D stackedBarRenderer3D0 = new StackedBarRenderer3D();\n int int0 = defaultMultiValueCategoryDataset0.getColumnIndex(\"\");\n LegendItem legendItem0 = stackedBarRenderer3D0.getLegendItem(4485, 10);\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultMultiValueCategoryDataset0, (CategoryAxis) categoryAxis3D0, (ValueAxis) cyclicNumberAxis0, (CategoryItemRenderer) stackedBarRenderer3D0);\n RectangleInsets rectangleInsets0 = categoryPlot0.getAxisOffset();\n LegendItemCollection legendItemCollection0 = categoryPlot0.getLegendItems();\n Color color1 = (Color)categoryPlot0.getDomainGridlinePaint();\n }", "public com.google.protobuf.ByteString\n getC3Bytes() {\n java.lang.Object ref = c3_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n c3_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ResultPoint getRp3() {\n return rp3;\n }", "public IPoint getThirdPoint()\n {\n\n Set<IPoint> vertices = this.getVertices();\n Object[] verticesArray = vertices.toArray();\n IPoint thirdPoint = (IPoint)verticesArray[2];\n\n return thirdPoint;\n }", "public float[] getCenterOfRotation(float[] cor) {\n\t\tif ((cor == null) || (cor.length < 3)) {\n\t\t\tcor = new float[3];\n\t\t}\n\t\tcenterOfRotation.get(cor);\n\t\treturn(cor);\n\t}", "public void readCategoryFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\tint row = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t//System.out.println(sCurrentLine);\n\t\t\t\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\t//System.out.println(lineElements.length);\n\t\t\tfor (int column = 0; column < lineElements.length; column++) {\t\t\n\t\t\t\t//System.out.println(column);\n\t\t\t\tint category = Integer.parseInt(lineElements[column]);\n\t\t\t\t//System.out.println(vertices.size());\n\t\t\t\tPOI v1 = vertices.get(row);\n\t\t\t\tPOI v2 = vertices.get(column);\n\t\t\t\t\n\t\t\t\tArc arc = getArc(v1, v2);\n\t\t\t\tif (!distMtx) {\n\t\t\t\t\tdouble distance = v1.distanceTo(v2);\n\t\t\t\t\tif (data == Dataset.VERBEECK) {\n\t\t\t\t\t\tdistance = distance / 5.0;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistance = distance / 10.0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tarc.setLength(distance);\n\t\t\t\t}\n\t\t\t\tarc.setCategory(category);\n\t\t\t\tif (distConstraint) {\n\t\t\t\t\tarc.setSpeedTable(allOneSpeedTable);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tarc.setSpeedTable(speedTables.get(category));\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trow ++;\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "public String getCncategory() {\n return cncategory;\n }", "double correlationCoefficient(User a, User b) throws CwebApiException;", "private static int med3(float x[], int a, int b, int c) {\n\t\treturn (x[a] < x[b] ?\n\t\t\t\t(x[b] < x[c] ? b : x[a] < x[c] ? c : a) :\n\t\t\t\t\t(x[b] > x[c] ? b : x[a] > x[c] ? c : a));\n\t}", "private int med3(double x[], int a, int b, int c) {\r\n return (x[a] < x[b]\r\n ? (x[b] < x[c] ? b : x[a] < x[c] ? c : a)\r\n : (x[b] > x[c] ? b : x[a] > x[c] ? c : a));\r\n }", "private static int med3(double x[], int a, int b, int c) {\n\t\treturn (x[a] < x[b] ?\n\t\t\t\t(x[b] < x[c] ? b : x[a] < x[c] ? c : a) :\n\t\t\t\t\t(x[b] > x[c] ? b : x[a] > x[c] ? c : a));\n\t}", "@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}", "private void computeMultiClassMCC(ConfusionMatrixElement[] elements) {\n\t\tdouble Sq = matrixTotal * matrixTotal;\n\t\tdouble CS = Arrays.stream(elements).map(n -> n.tp).reduce(0.0d, (n, m) -> n + m) * matrixTotal;\n\t\tdouble t = 0.0d, p = 0.0d, tt = 0.0d, pp = 0.0d, tp = 0.0d;\n\t\t\n\t\tfor (ConfusionMatrixElement e : elements) {\n\t\t\tt = (e.tp + e.fp); \n\t\t\tp = (e.tp + e.fn);\n\t\t\t\n\t\t\ttt += (t * t);\n\t\t\tpp += (p * p);\n\t\t\ttp += (t * p);\n\t\t}\n\t\tmatrixMCC = (CS - tp) / (Math.sqrt(Sq - pp) * Math.sqrt(Sq - tt));\n\t}", "public com.google.protobuf.ByteString\n getC3Bytes() {\n java.lang.Object ref = c3_;\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 c3_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static int[] getThreeOfAKind(Integer[] cards) {\n int[] result = new int[2];\n if (cards[1] != cards[0]) {\n result[0] = cards[1];\n result[1] = cards[0];\n } else {\n result[0] = cards[0];\n result[1] = cards[3];\n }\n return result;\n }", "private static int getClusterCorrespondance(Integer cl1, Integer cl2,\n HashMap<Integer, HashMap<Integer, Integer>> clusterCorresp, int nextId)\n{\n HashMap<Integer, Integer> map = clusterCorresp.get(cl1);\n if (map == null) {\n map = new HashMap<Integer, Integer>();\n map.put(cl2, nextId);\n clusterCorresp.put(cl1, map);\n return nextId;\n }\n Integer corresp = map.get(cl2);\n if (corresp == null) {\n map.put(cl2, nextId);\n return nextId;\n }\n return corresp.intValue();\n}", "public T third() {\n return this.third;\n }", "private void categorizeEntry(Map<Integer, Double> category1,\n\t\t\tMap<Integer, Double> category2, Map<Integer, Double> category3,\n\t\t\tDouble avg1, Double avg2, Double avg3, Entry<Integer, Double> entry) {\n\t\t// Calculate distance from each category's average\n\t\tDouble currVal = entry.getValue();\n\n\t\t// Remove the entry from it's prev category\n\t\tcategory1.remove(entry.getKey());\n\t\tcategory2.remove(entry.getKey());\n\t\tcategory3.remove(entry.getKey());\n\n\t\t// Make a sorted map of categories by distances from curr value\n\t\tMap<Double, Map<Integer, Double>> categoryDists = new TreeMap<Double, Map<Integer, Double>>();\n\t\tcategoryDists.put(Math.abs(avg1 - currVal), category1);\n\t\tcategoryDists.put(Math.abs(avg2 - currVal), category2);\n\t\tcategoryDists.put(Math.abs(avg3 - currVal), category3);\n\n\t\t// Put the entry to category with closest distance\n\t\tDouble shortestDist = categoryDists.keySet().iterator().next();\n\t\tcategoryDists.get(shortestDist).put(entry.getKey(), entry.getValue());\n\t}", "public PairVector getCCs(){\r\n\t\treturn mccabe.getCCs(javaclass);\r\n\t}", "private static void shift(RescueMap rm, int n1, int n2, int n3, int[] c){\n\t\t//get the normal to the first road\n\t\tlong n1y = rm.getX(n2) - rm.getX(n1);\n\t\tlong n1x = rm.getY(n1) - rm.getY(n2);\n\t\t//get normal to the second road\n\t\tlong n2y = rm.getX(n3) - rm.getX(n2);\n\t\tlong n2x = rm.getY(n2) - rm.getY(n3);\n\t\t//get length of each normal\n\t\tdouble len1 = Math.sqrt(n1y*n1y+n1x*n1x);\n\t\tdouble len2 = Math.sqrt(n2y*n2y+n2x*n2x);\n\n\t\tint d = 3000;//Math.max(rm.getRoad(n1,n2),rm.getRoad(n2,n3))*2000 +500;\n\n\t\tint x1 = rm.getX(n1) - (int)(n1x*d*1.0/len1);\n\t\tint x2 = rm.getX(n2) - (int)(n1x*d*1.0/len1);\n\t\tint y1 = rm.getY(n1) - (int)(n1y*d*1.0/len1);\n\t\tint y2 = rm.getY(n2) - (int)(n1y*d*1.0/len1);\n\t\tint x3 = rm.getX(n2) - (int)(n2x*d*1.0/len2);\n\t\tint x4 = rm.getX(n3) - (int)(n2x*d*1.0/len2);\n\t\tint y3 = rm.getY(n2) - (int)(n2y*d*1.0/len2);\n\t\tint y4 = rm.getY(n3) - (int)(n2y*d*1.0/len2);\n\n\t\tint[] intersect = intersection(x1,y1,x2,y2,x3,y3,x4,y4);\n\t\tif(intersect == null){\n\t\t\tc[0] -= (n1x/len1)*d;\n\t\t\tc[1] -= (n1y/len1)*d;\n\t\t}\n\t\telse{\n\t\t\tc[0] = intersect[0];\n\t\t\tc[1] = intersect[1];\n\t\t}\n\t}", "private static <T> int med3(@Nonnull List<T> x, Comparator<? super T> comparator, int a, int b, int c) {\n return comparator.compare(x.get(a), x.get(b)) < 0\n ? comparator.compare(x.get(b), x.get(c)) < 0 ? b : comparator.compare(x.get(a), x.get(c)) < 0 ? c : a\n : comparator.compare(x.get(c), x.get(b)) < 0 ? b : comparator.compare(x.get(c), x.get(a)) < 0 ? c : a;\n }", "private boolean thirdPerson(Mention a, Mention b) {\n if (a.getPerson() == Person.THIRD\n && b.getPerson() == Person.THIRD\n && a.getMultiplicity() == b.getMultiplicity()\n && a.getGender() == b.getGender()) {\n addToCluster(a, b);\n return true;\n }\n\n return false;\n }", "@SuppressWarnings(\"unchecked\")\n public List<Avp<String>> getSecondCorrelationList(final Session session,\n final int category,\n final int value1,\n final Class classTable,\n final Locale locale) throws DataAccessException {\n try {\n final List<CodeTable> codeTables = session.find(\"Select distinct ct from \"\n + classTable.getName()\n + \" as ct, BibliographicCorrelation as bc \"\n + \" where bc.key.marcTagCategoryCode = ? and \"\n + \" bc.key.marcFirstIndicator <> '@' and \"\n + \" bc.key.marcSecondIndicator <> '@' and \"\n + \" bc.databaseFirstValue = ? and \"\n + \" bc.databaseSecondValue = ct.code and \"\n + \" ct.obsoleteIndicator = '0' and \"\n + \" ct.language = ? \"\n + \" order by ct.sequence \",\n new Object[]{category, value1, locale.getISO3Language()},\n new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING});\n\n return codeTables\n .stream()\n .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText()))\n .collect(toList());\n } catch (final HibernateException exception) {\n logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception);\n return Collections.emptyList();\n }\n }", "private Collection<Integer> getSuspectedCategories(\n\t\t\tMap<Integer, Double> category1, Map<Integer, Double> category2,\n\t\t\tMap<Integer, Double> category3) {\n\t\tfinal int TOO_SMALL = 2;\n\n\t\t// Sort categories by size.\n\t\t// Add insignificant doubles to make sure the keys are different\n\t\tMap<Double, Map<Integer, Double>> sizeCategories = new TreeMap<Double, Map<Integer, Double>>();\n\t\tsizeCategories.put(category1.size() + 0.1, category1);\n\t\tsizeCategories.put(category2.size() + 0.2, category2);\n\t\tsizeCategories.put(category3.size() + 0.3, category3);\n\n\t\t// Final list of suspected entries\n\t\tCollection<Integer> suspected = new ArrayList<Integer>();\n\n\t\t// Get the sorted sizes of the categories\n\t\tIterator<Double> sizes = sizeCategories.keySet().iterator();\n\t\tdouble minSize = sizes.next();\n\t\tdouble midSize = sizes.next();\n\t\tdouble maxSize = sizes.next();\n\n\t\t// Add the smallest category to the list of suspects\n\t\tsuspected.addAll(sizeCategories.get(minSize).keySet());\n\n\t\t// If the second smallest category is very small - add it too\n\t\tif (minSize + midSize < maxSize / TOO_SMALL) {\n\t\t\tsuspected.addAll(sizeCategories.get(midSize).keySet());\n\t\t}\n\t\treturn suspected;\n\t}", "public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }", "static private double[][] dct3(double[][] input) {\n final int N = input.length;\n final double mathPI = Math.PI;\n final int halfN = N / 2;\n final double doubN = 2.0 * N;\n\n double[][] c = new double[N][N];\n c = initMatrix(c);\n\n double[][] output = new double[N][N];\n\n\n for (int x = 0; x < N; x++) {\n int temp_x = 2 * x + 1;\n for (int y = 0; y < N; y++) {\n int temp_y = 2 * y + 1;\n double sum = 0.0;\n for (int u = 0; u < N; u++) {\n double temp_u = u * mathPI;\n for (int v = 0; v < N; v++) {\n sum += c[u][v] * input[u][v] * Math.cos((temp_x / doubN) * temp_u) * Math.cos((temp_y / doubN) * v * mathPI);\n }\n }\n sum /= halfN;\n output[x][y] = sum;\n }\n }\n return output;\n }", "int getC();", "public java.lang.String getC3() {\n java.lang.Object ref = c3_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n c3_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static double[] getThreeMonthTotal(double[] prec) {\n\t\tdouble[] vals = new double[months];\n\t\tfor (int i = 1; i < months+1; i++) {\n\t\t\tvals[i % months] = 0.0;\n\t\t\tvals[i % months] += prec[(i-1) % months];\n\t\t\tvals[i % months] += prec[(i) % months];\n\t\t\tvals[i % months] += prec[(i+1) % months];\n\t\t}\n\t\treturn vals;\n\t}", "private double[] getPearsonCoeff(LinkedList<double[]> linAccSample, LinkedList<double[]> gyroSample) {\n double[] xLinAccValues = new double[linAccSample.size()],\n yLinAccValues = new double[linAccSample.size()],\n zLinAccValues = new double[linAccSample.size()],\n xGyroValues = new double[linAccSample.size()],\n yGyroValues = new double[linAccSample.size()],\n zGyroValues = new double[linAccSample.size()];\n for (int i = 0; i < linAccSample.size(); i++) {\n xLinAccValues[i] = linAccSample.get(i)[0];\n yLinAccValues[i] = linAccSample.get(i)[1];\n zLinAccValues[i] = linAccSample.get(i)[2];\n }\n for (int i = 0; i < gyroSample.size(); i++) {\n xGyroValues[i] = gyroSample.get(i)[0];\n yGyroValues[i] = gyroSample.get(i)[1];\n zGyroValues[i] = gyroSample.get(i)[2];\n }\n // order: xlinaccvalues vs xgyro,ygyro,zgyro, then ylinaccvalues, so on...\n PearsonsCorrelation pCorr = new PearsonsCorrelation();\n double pCoeff1 = pCorr.correlation(xLinAccValues, xGyroValues);\n double pCoeff2 = pCorr.correlation(xLinAccValues, yGyroValues);\n double pCoeff3 = pCorr.correlation(xLinAccValues, zGyroValues);\n double pCoeff4 = pCorr.correlation(yLinAccValues, xGyroValues);\n double pCoeff5 = pCorr.correlation(yLinAccValues, yGyroValues);\n double pCoeff6 = pCorr.correlation(yLinAccValues, zGyroValues);\n double pCoeff7 = pCorr.correlation(zLinAccValues, xGyroValues);\n double pCoeff8 = pCorr.correlation(zLinAccValues, yGyroValues);\n double pCoeff9 = pCorr.correlation(zLinAccValues, zGyroValues);\n\n double[] coefficients = {\n pCoeff1, pCoeff2, pCoeff3, pCoeff4, pCoeff5, pCoeff6, pCoeff7, pCoeff8, pCoeff9\n };\n for (int i = 0; i < coefficients.length; i++) {\n if (Double.isNaN(coefficients[i])) coefficients[i] = 0;\n }\n return coefficients;\n }", "@Override\r\n\n\tpublic List<HashMap<String, Object>> getAnnListBycate(String cateSeq1, String cateSeq2, String cateSeq3,\r\n\t\t\tint startRow, int endRow) {\n\t\treturn annDao.getAnnListBycate(cateSeq1, cateSeq2, cateSeq3,startRow, endRow);\r\n\t}", "private static int med3(int x[], int a, int b, int c) {\n\t\treturn (x[a] < x[b] ?\n\t\t\t\t(x[b] < x[c] ? b : x[a] < x[c] ? c : a) :\n\t\t\t\t\t(x[b] > x[c] ? b : x[a] > x[c] ? c : a));\n\t}", "public java.lang.String getC3() {\n java.lang.Object ref = c3_;\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 c3_ = s;\n }\n return s;\n }\n }", "private static int med3(int x[], IntComparator comp, int a, int b, int c) {\n\t\treturn (comp.compare(x[a],x[b])<0 ?\n\t\t\t\t(comp.compare(x[b],x[c])<0 ? b : comp.compare(x[a],x[c])<0 ? c : a) :\n\t\t\t\t\t(comp.compare(x[b],x[c])>0 ? b : comp.compare(x[a],x[c])>0 ? c : a));\n\t}", "private static <T> int med3(List<T> x, Comparator<T> comp, int a, int b, int c) {\n\t\treturn (comp.compare(x.get(a),x.get(b))<0 ?\n\t\t\t\t(comp.compare(x.get(b),x.get(c))<0 ? b : comp.compare(x.get(a),x.get(c))<0 ? c : a) :\n\t\t\t\t\t(comp.compare(x.get(b),x.get(c))>0 ? b : comp.compare(x.get(a),x.get(c))>0 ? c : a));\n\t}", "public static int max3(int a, int b, int c) {\r\n\t\t// Implement!\r\n\t\tint[] values = new int[3];\r\n\t\tvalues[0] = c;\r\n\t\tvalues[1] = a;\r\n\t\tvalues[2] = b;\r\n\r\n\t\tArrays.sort(values);\r\n\t\treturn values[2];\r\n\t}", "public final double get3rdRawMoment() {\n double m3 = get3rdCentralMoment();\n double mr2 = get2ndRawMoment();\n double mu = getAverage();\n return m3 + 3.0 * mu * mr2 - 2.0 * mu * mu * mu;\n }", "private Matriks Cofactor(Matriks M, int p, int q){\r\n\t\tMatriks cofactor = new Matriks(M.BrsEff-1, M.KolEff-1);\r\n\t\tint k = 0;\r\n\t\tint l = 0;\r\n\t\tfor(int i=0; i<M.BrsEff; i++){\r\n\t\t\tfor(int j=0; j<M.KolEff; j++){\r\n\t\t\t\tif (i!=p && j!=q){\r\n\t\t\t\t\tcofactor.Elmt[k][l] = M.Elmt[i][j];\r\n\t\t\t\t\tl += 1;\r\n\t\t\t\t\tif(l==cofactor.BrsEff){\r\n\t\t\t\t\t\tl = 0;\r\n\t\t\t\t\t\tk += 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cofactor;\r\n\t}", "public String getThirdNumber() {\n return thirdNumber;\n }", "public double getConc(int i, int j, int k) {\r\n\t\treturn quantity[i][j][k]/boxVolume;\r\n\t}", "private List<Double> getCentList(ContinuousAttribute attr, ClusterSet data) {\n\t\treturn ChartF.getCentContValues(data, attr);\n\t}", "static public double[] calculateMeanCurvatureNormalMixedArea(Node3D node, List<Triangle3D> triangles){\n double Amixed= 0;\n double[] kappa = new double[3];\n double[] normal = new double[3];\n\n for(Triangle3D triangle: triangles){\n Node3D[] nodes = {triangle.A, triangle.B, triangle.C};\n int dex = -1;\n for(int i = 0; i<3; i++){\n if(nodes[i].index==node.index){\n dex = i;\n }\n }\n\n double[] a = nodes[dex].getCoordinates();\n double[] b = nodes[(dex+1)%3].getCoordinates();\n double[] c = nodes[(dex+2)%3].getCoordinates();\n\n double[] ab = new double[3];\n double[] bc = new double[3];\n double[] ca = new double[3];\n\n double mab = 0;\n double mbc = 0;\n double mca = 0;\n\n for(int i = 0;i<3; i++){\n ab[i] = b[i] - a[i];\n bc[i] = c[i] - b[i];\n ca[i] = a[i] - c[i];\n\n mab += ab[i]*ab[i];\n mbc += bc[i]*bc[i];\n mca += ca[i]*ca[i];\n }\n\n double[] abCrossBc = Vector3DOps.cross(ab, bc);\n double abDotBc = Vector3DOps.dot(ab, bc);\n double mx1 = Vector3DOps.mag(abCrossBc);\n double cotB = - abDotBc / mx1;\n double bcDotCa = Vector3DOps.dot(bc, ca);\n double[] bcCrossCa = Vector3DOps.cross(bc, ca);\n double mx2 = Vector3DOps.mag(bcCrossCa);\n double cotC = - bcDotCa/mx2;\n for(int i = 0; i<3; i++){\n\n kappa[i] += 0.5*cotC*(-ab[i]);\n kappa[i] += 0.5*cotB*(ca[i]);\n\n }\n\n double v;\n if(mbc>(mab + mca)){\n v = triangle.area/2;\n } else if (mca>(mab + mbc) || mab>(mbc + mca)){\n v = triangle.area/4;\n } else{\n v = 0.125*(mab*cotB + mca*cotC);\n }\n Amixed += v;\n for(int i = 0; i<3; i++){\n normal[i] += triangle.normal[i]*v;\n }\n\n\n }\n\n for(int i = 0; i<kappa.length; i++){\n kappa[i] = kappa[i]/(Amixed);\n }\n double kH = 0.5*Vector3DOps.dot(kappa, normal);\n return kappa;\n }", "public String getOther3() {\n return other3;\n }", "@Override\n\tpublic CM_COV_Object centralMoment(CMOperator op, int nRows) {\n\t\tCM_COV_Object ret = _dict.centralMomentWithReference(op.fn, getCounts(), _reference[0], nRows);\n\t\tint count = _numRows - _data.size();\n\t\top.fn.execute(ret, _reference[0], count);\n\t\treturn ret;\n\t}", "@Override\n\tpublic int calcolo3(int i, int x) {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void evalCrispDistanceWithFuzzyNumberOverlap3(){\n\t\tFuzzySet res = cs1.distance(dfn4);\n\t\tassertTrue(res instanceof FuzzyInterval);\n\t\tFuzzyInterval fuzzyRes = (FuzzyInterval)res;\n\t\t//Puntos limite\n\t\tassertTrue(fuzzyRes.getMembershipValue(1)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(3)==1);\n\t\tassertTrue(fuzzyRes.getMembershipValue(5)==0);\n\t\t//assertTrue(fuzzyRes.getMembershipValue(5)==0);\n\t\t//Valores exteriores\n\t\tassertTrue(fuzzyRes.getMembershipValue(6)==0);\n\t\tassertTrue(fuzzyRes.getMembershipValue(-1)==0);\n\t}", "public EntityCategory getCategory ( ) {\n\t\treturn extract ( handle -> handle.getCategory ( ) );\n\t}", "public static void corrDistOut()\t\n\t{\t \n\t\n\t\tdouble c, n, w;\n\t\t\n\t\t//System.err.println(\"CORRDIST\");\n\n\t\tclade = clad[k];\n\t\n\t clade.meanDc = 0;\n\t clade.meanDn = 0;\n\t clade.meanWeight = 0;\n\t clade.sumDcxWeight = 0;\n\t clade.sumDnxWeight = 0;\n\t clade.sumDcSq = 0;\n\t clade.sumDnSq = 0;\n\t clade.sumWeightSq = 0;\n\t\t\n\t\tc = n = w = 0;\n\t\t\n\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t \tclade.meanDc += clade.Dc[i] / (double) clade.numSubClades;\n\t \tclade.meanDn += clade.Dn[i] / (double) clade.numSubClades;\n\t \tclade.meanWeight += clade.weight[i] / (double) clade.numSubClades;\n\t \tclade.sumDcxWeight += clade.Dc[i] * clade.weight[i];\n\t \tclade.sumDnxWeight += clade.Dn[i] * clade.weight[i];\n\t \tclade.sumDcSq += Math.pow (clade.Dc[i],2); \n\t \tclade.sumDnSq += Math.pow(clade.Dn[i],2); \n\t \tclade.sumWeightSq += Math.pow(clade.weight[i], 2);\n\t \t \t}\t\n\t \n\t c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \tw = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\tif(clade.sumDcSq == 0 || c == 0 || w == 0)\n\t\t\tclade.corrDcWeights = NA; \n\t else\n\t\t\tclade.corrDcWeights = (clade.sumDcxWeight - (double)clade.numSubClades * clade.meanDc * clade.meanWeight) / (Math.sqrt(c*w));\n\n\t\tif(clade.sumDnSq == 0 || n == 0 || w == 0)\n\t\t\tclade.corrDnWeights = NA; \n\t else\n\t\t\tclade.corrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight) / (Math.sqrt(n*w));\n\n\t if(clade.corrDcWeights > 1 && clade.corrDcWeights < 2)\n\t clade.corrDcWeights = 1;\n\t \n\t if(clade.corrDcWeights < -1)\n\t clade.corrDcWeights = -1;\n\t \n\t if(clade.corrDnWeights > 1 && clade.corrDnWeights < 2)\n\t clade.corrDnWeights = 1;\n\t \n\t if(clade.corrDnWeights < -1)\n\t clade.corrDnWeights = -1; \n\n\t\t//System.err.println(\"Correlations clade \" + clade.cladeName + \": \" + clade.corrDcWeights + \" \" + clade.corrDnWeights);\n\n\t}", "public int getC() {\n return c_;\n }", "@Override\n\tpublic Marca getMarca(int idmarc) {\n\t\treturn marcadao.getMarca(idmarc);\n\t}", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "@Test\n public void test22() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n CategoryAxis[] categoryAxisArray0 = new CategoryAxis[2];\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"Null 'marker' not permitted.\");\n categoryAxisArray0[0] = (CategoryAxis) extendedCategoryAxis0;\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n categoryAxisArray0[1] = (CategoryAxis) categoryAxis3D0;\n combinedRangeCategoryPlot0.setDomainAxes(categoryAxisArray0);\n }", "private Color[] getMiddleArcColors()\n {\n return getColorsForState(this.iconPartStates[1]);\n }", "public String[][] getMetaCategories();", "@Test\r\n\tpublic void testGetCMLVector3() {\r\n\t\tCMLVector3 v = lattice1.getCMLVector3(0);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\",\r\n\t\t\t\tnew double[] { 10.0, 6.0, 4.0 }, v, EPS);\r\n\t\tv = lattice1.getCMLVector3(1);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\",\r\n\t\t\t\tnew double[] { 7.0, 11.0, 5.0 }, v, EPS);\r\n\t\tv = lattice1.getCMLVector3(2);\r\n\t\tCMLVector3Test.assertEquals(\"cml vector\", new double[] { 6.8, -4.0,\r\n\t\t\t\t-9.0 }, v, EPS);\r\n\t}", "@Test\n public void test14() throws Throwable {\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n CategoryItemRenderer categoryItemRenderer0 = combinedDomainCategoryPlot0.getRenderer((-1305));\n Line2D.Double line2D_Double0 = new Line2D.Double(1295.82248000883, 5.0E10, 1295.82248000883, 3199.69438219);\n line2D_Double0.x2 = 1295.82248000883;\n CategoryMarker categoryMarker0 = new CategoryMarker((Comparable) 1295.82248000883);\n Layer layer0 = Layer.FOREGROUND;\n combinedDomainCategoryPlot0.addDomainMarker(categoryMarker0, layer0);\n combinedDomainCategoryPlot0.setRangeCrosshairVisible(true);\n }", "public static float req3(float R1, float R2, float R3)\n\t{\n\t\treturn 1.0f / (1.0f/R1 + 1.0f/R1 + 1.0f/R3);\n\t}", "public java.lang.Double getVar3() {\n return var3;\n }", "@Test\n public void testCorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable1 = null;\n IDoubleArray observable2 = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.correlation(M, observable1, observable2, timepoints);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public java.lang.String getSecondary3() {\n return secondary3;\n }", "public int getC() {\n return c_;\n }", "public java.lang.Double getVar3() {\n return var3;\n }", "public int getOutcome(int first, int second, int third) {\n\t\tif (first + second + third == 2) {\n\t\t\treturn 10;\n\t\t} else if (first == second && first == third && second == third) {\n\t\t\treturn 5;\n\t\t} else if (first != second && first != third) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "private static int med3(long x[], int a, int b, int c) {\n\t\treturn (x[a] < x[b] ?\n\t\t\t\t(x[b] < x[c] ? b : x[a] < x[c] ? c : a) :\n\t\t\t\t\t(x[b] > x[c] ? b : x[a] > x[c] ? c : a));\n\t}", "@Override\n\tpublic List<Category> getCategoryByKey(String mc) {\n\t\treturn dao.getCategoryByKey(mc);\n\t}", "public static void main(String[] args) {\n\n\t\tComplexNumber c1 = new ComplexNumber(2, 3);\n\t\tComplexNumber c2 = ComplexNumber.parse(\"2.5-3i\");\n\n\t\tComplexNumber c3 = c1.add(ComplexNumber.fromMagnitudeAndAngle(2, 1.57)).div(c2).power(3).root(2)[1];\n\n\t\tSystem.out.println(c3);\n\t}", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }", "public Group getGroup_3() { return cGroup_3; }" ]
[ "0.6118357", "0.537895", "0.51119435", "0.51001734", "0.50384104", "0.5014491", "0.48749694", "0.48563376", "0.47693577", "0.47547296", "0.47547042", "0.4735375", "0.47020066", "0.4606643", "0.45597112", "0.45315", "0.45287377", "0.4511089", "0.4488518", "0.44714937", "0.44357255", "0.44249487", "0.44246462", "0.44232264", "0.44107747", "0.44072348", "0.44034573", "0.44023663", "0.4400345", "0.43981317", "0.4396736", "0.43967", "0.43873143", "0.43819907", "0.43804896", "0.43697074", "0.43644214", "0.43639284", "0.43418995", "0.43383053", "0.43251804", "0.43102494", "0.4296377", "0.42909285", "0.42888215", "0.42832017", "0.42630374", "0.42611915", "0.425396", "0.42359656", "0.4224646", "0.42233774", "0.42115805", "0.42033502", "0.41944167", "0.41934952", "0.41924652", "0.41892555", "0.4179792", "0.4178172", "0.41727865", "0.416795", "0.41627792", "0.41623938", "0.41477972", "0.41369253", "0.41360328", "0.41323644", "0.4125511", "0.4125107", "0.41234696", "0.41227746", "0.41185167", "0.41096878", "0.41013423", "0.4100319", "0.40937147", "0.40881723", "0.4082424", "0.40794915", "0.4077561", "0.40749925", "0.4066757", "0.4059564", "0.40568173", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661", "0.4056661" ]
0.5425803
1
Returns the MARC encoding based on the input database encodings.
@SuppressWarnings("unchecked") public CorrelationKey getMarcEncoding( final int category, final int firstCorrelation, final int secondCorrelation, final int thirdCorrelation, final Session session) throws HibernateException { final List<Correlation> result = session.find( "from BibliographicCorrelation as bc " + "where bc.key.marcTagCategoryCode = ? and " + "bc.databaseFirstValue = ? and " + "bc.databaseSecondValue = ? and " + "bc.databaseThirdValue = ?", new Object[]{category, firstCorrelation, secondCorrelation, thirdCorrelation}, new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER}); return result.stream().filter(Objects::nonNull).findFirst().map(Correlation::getKey).orElse(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Charset getEncoding();", "String getEncoding();", "public String getDeclaredEncoding();", "String getSupportedEncoding(String acceptableEncodings);", "String getContentEncoding();", "EncodingEnum getEncoding();", "String getUseNativeEncoding();", "private static CharsetEncoder getCoder(String charset) throws UnsupportedEncodingException\n\t{\n\t\tcharset = charset.toLowerCase();\t\t\n\t\tif (charset.equals(\"iso-8859-1\") || charset.equals(\"latin1\"))\t\t\t\n\t\t\treturn new Latin1Encoder();\n\t\tif (charset.equals(\"utf-8\") || charset.equals(\"utf8\"))\t\t\t\n\t\t\treturn new UTF8Encoder();\n\t\t\n\t\tthrow new UnsupportedEncodingException(\"unsupported encoding \"+charset);\n\t}", "Codec getCurrentCodec();", "@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }", "public String getJavaEncoding();", "String getCharset();", "private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }", "public String getEncoding() {\n \t return null;\n \t }", "public String getEncoding() {\n \t return null;\n \t }", "public Codec getCodec();", "public String getEncoding() {\r\n return \"B\";\r\n }", "public static String guessAppropriateEncoding(CharSequence contents) {\n for (int i = 0; i < contents.length(); i++) {\n if (contents.charAt(i) > 0xFF) {\n return \"UTF-8\";\n }\n }\n return null;\n }", "public EncodingOptions getEncodingOptions();", "public String getEncoding () {\n return encoding;\n }", "private Encoding retrieveEncoding(Path file) {\n if (this.fileEncodings != null) {\n Encoding encoding = this.fileEncodings.get(file.toString());\n if (encoding != null) {\n return encoding;\n }\n }\n return this.encoding == null ? Encoding.DEFAULT_ENCODING : this.encoding;\n }", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\r\n\t\treturn encoding;\r\n\t}", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n return null;\n }", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n\t\treturn encoding;\n\t}", "@DatabaseChangeProperty(exampleValue = \"utf8\")\n public String getEncoding() {\n return encoding;\n }", "public static String defLocale2CharSet() {\n Locale loc = Locale.getDefault();\n\n if (loc.equals(zh_CN)) {\n return GBK;\n } else if (loc.equals(zh_TW)) {\n return BIG5;\n } else if (loc.getLanguage().equals(en_US.getLanguage())) {\n return DEF_ENCODING; // default encoding for English language setting, CR ALPS00051690\n }\n\n return null; // will cause IllegalArgumentException in LyricsBody -> parseLrc function\n }", "public String getContentEncoding() {\n\t\treturn header.getContentEncoding();\n\t}", "public AbstractVCFCodec getCodec();", "private CharsetDecoder getJavaEncoding(String encoding) {\n Charset charset = Charset.forName(encoding);\n return charset.newDecoder();\n }", "@Override\n\t\tpublic String getCharacterEncoding() {\n\t\t\treturn null;\n\t\t}", "Builder addEncodings(String value);", "public String getMediaFormatEncoding() {\r\n\t\treturn this.getMedia() + \" - \" + this.getFormat() + \" - \" + this.getEncoding();\r\n\r\n\t}", "public String[] getEncoding() throws PDFNetException {\n/* 771 */ return GetEncoding(this.a);\n/* */ }", "String getIntegerEncoding();", "public String getContentEncoding() {\n return contentEncoding;\n }", "public static CharsetDecoder getEncoding(String encode) throws IllegalArgumentException {\r\n\t\tCharsetDecoder charsetDecoder = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcharsetDecoder = Charset.forName(encode).newDecoder();\r\n\t\t\tcharsetDecoder.onMalformedInput(CodingErrorAction.REPLACE);\r\n\t\t\tcharsetDecoder.onUnmappableCharacter(CodingErrorAction.REPLACE);\r\n\t\t}\r\n\t\tcatch(IllegalArgumentException e) {\r\n\t\t\t// Add a hint to error message\r\n\t\t\tthrow new IllegalArgumentException(\"Not a supported character set \\\"\" + encode + \"\\\". Try UTF-8. \" + e.getMessage());\r\n\t\t}\r\n\t\treturn charsetDecoder;\r\n\t}", "protected String getDefaultEncoding() {\n return DEFAULT_ENCODING;\n }", "public Charset getPreferredCharset();", "protected static String guessXMLEncoding(String document){\r\n\t\tString encoding = \"UTF-8\";\r\n\t\t\r\n\t\tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\ttry {\r\n\t\t\tlog.println(\"GUESSING ENCODING...\");\r\n\t\t\tString parts[] = document.split(\"\\\"\");\r\n\t\t\tfor(int i = 0; i < parts.length; i++){\r\n\t\t\t\tif(parts[i].equalsIgnoreCase(\" encoding=\")){\r\n\t\t\t\t\tencoding = parts[i + 1];\r\n\t\t\t\t\tlog.println(\"ENCODING FOUND TO BE: \" + encoding);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Throwable t){\r\n\t\t\tif (log != null) t.printStackTrace(log);\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t}\r\n\t\treturn encoding;\r\n\t}", "ImmutableList<SchemaOrgType> getEncodingList();", "public String getEncoding() {\n\t\treturn this.encoding;\n\t}", "public String getEncoding()\n\t\t{\n\t\t\treturn m_encoding;\n\t\t}", "Builder addEncoding(String value);", "String getCodec() {\n return codec;\n }", "public String getContentEncoding() {\n return this.contentEncoding;\n }", "@Override\n\tpublic String getCharacterEncoding() {\n\t\treturn null;\n\t}", "@Accessor(qualifier = \"encoding\", type = Accessor.Type.GETTER)\n\tpublic EncodingEnum getEncoding()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ENCODING);\n\t}", "protected static EncodingDefinition getEncodingDefinition(FieldDescriptor fieldDescriptor) throws SQLException {\n final int characterSetId;\n switch (fieldDescriptor.getType() & ~1) {\n case ISCConstants.SQL_TEXT:\n case ISCConstants.SQL_VARYING:\n characterSetId = fieldDescriptor.getSubType();\n break;\n case ISCConstants.SQL_BLOB:\n if (fieldDescriptor.getSubType() == 1) {\n characterSetId = fieldDescriptor.getScale();\n } else {\n characterSetId = ISCConstants.CS_NONE;\n }\n break;\n default:\n throw new SQLException(\"Unexpected Firebird data type: \" + fieldDescriptor);\n }\n return fieldDescriptor.getDatatypeCoder().getEncodingFactory()\n .getEncodingDefinitionByCharacterSetId(characterSetId);\n }", "public String getCharacterEncoding() {\n\t\treturn null;\n\t}", "public static int aidl2api_AudioFormat_AudioFormatEncoding(\n @NonNull AudioFormatDescription aidl) {\n switch (aidl.type) {\n case AudioFormatType.PCM:\n switch (aidl.pcm) {\n case PcmType.UINT_8_BIT:\n return AudioFormat.ENCODING_PCM_8BIT;\n case PcmType.INT_16_BIT:\n return AudioFormat.ENCODING_PCM_16BIT;\n case PcmType.INT_32_BIT:\n return AudioFormat.ENCODING_PCM_32BIT;\n case PcmType.FIXED_Q_8_24:\n case PcmType.FLOAT_32_BIT:\n return AudioFormat.ENCODING_PCM_FLOAT;\n case PcmType.INT_24_BIT:\n return AudioFormat.ENCODING_PCM_24BIT_PACKED;\n default:\n return AudioFormat.ENCODING_INVALID;\n }\n case AudioFormatType.NON_PCM: // same as DEFAULT\n if (aidl.encoding != null && !aidl.encoding.isEmpty()) {\n if (MediaFormat.MIMETYPE_AUDIO_AC3.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_AC3;\n } else if (MediaFormat.MIMETYPE_AUDIO_EAC3.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_E_AC3;\n } else if (MediaFormat.MIMETYPE_AUDIO_DTS.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_DTS;\n } else if (MediaFormat.MIMETYPE_AUDIO_DTS_HD.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_DTS_HD;\n } else if (MediaFormat.MIMETYPE_AUDIO_MPEG.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_MP3;\n } else if (MediaFormat.MIMETYPE_AUDIO_AAC_LC.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_AAC_LC;\n } else if (MediaFormat.MIMETYPE_AUDIO_AAC_HE_V1.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_AAC_HE_V1;\n } else if (MediaFormat.MIMETYPE_AUDIO_AAC_HE_V2.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_AAC_HE_V2;\n } else if (MediaFormat.MIMETYPE_AUDIO_IEC61937.equals(aidl.encoding)\n && aidl.pcm == PcmType.INT_16_BIT) {\n return AudioFormat.ENCODING_IEC61937;\n } else if (MediaFormat.MIMETYPE_AUDIO_DOLBY_TRUEHD.equals(\n aidl.encoding)) {\n return AudioFormat.ENCODING_DOLBY_TRUEHD;\n } else if (MediaFormat.MIMETYPE_AUDIO_AAC_ELD.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_AAC_ELD;\n } else if (MediaFormat.MIMETYPE_AUDIO_AAC_XHE.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_AAC_XHE;\n } else if (MediaFormat.MIMETYPE_AUDIO_AC4.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_AC4;\n } else if (MediaFormat.MIMETYPE_AUDIO_EAC3_JOC.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_E_AC3_JOC;\n } else if (MediaFormat.MIMETYPE_AUDIO_DOLBY_MAT.equals(aidl.encoding)\n || aidl.encoding.startsWith(\n MediaFormat.MIMETYPE_AUDIO_DOLBY_MAT + \".\")) {\n return AudioFormat.ENCODING_DOLBY_MAT;\n } else if (MediaFormat.MIMETYPE_AUDIO_OPUS.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_OPUS;\n } else if (MediaFormat.MIMETYPE_AUDIO_MPEGH_BL_L3.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_MPEGH_BL_L3;\n } else if (MediaFormat.MIMETYPE_AUDIO_MPEGH_BL_L4.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_MPEGH_BL_L4;\n } else if (MediaFormat.MIMETYPE_AUDIO_MPEGH_LC_L3.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_MPEGH_LC_L3;\n } else if (MediaFormat.MIMETYPE_AUDIO_MPEGH_LC_L4.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_MPEGH_LC_L4;\n } else if (MediaFormat.MIMETYPE_AUDIO_DTS_UHD.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_DTS_UHD_P1;\n } else if (MediaFormat.MIMETYPE_AUDIO_DRA.equals(aidl.encoding)) {\n return AudioFormat.ENCODING_DRA;\n } else {\n return AudioFormat.ENCODING_INVALID;\n }\n } else {\n return AudioFormat.ENCODING_DEFAULT;\n }\n case AudioFormatType.SYS_RESERVED_INVALID:\n default:\n return AudioFormat.ENCODING_INVALID;\n }\n }", "ImmutableList<SchemaOrgType> getEncodingsList();", "public BEREncoding\nber_encode()\n throws ASN1Exception\n{\n BEREncoding chosen = null;\n\n BEREncoding enc[];\n\n // Encoding choice: c_resultSets\n if (c_resultSets != null) {\n chosen = c_resultSets.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 1);\n }\n\n // Encoding choice: c_badSet\n if (c_badSet != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_badSet.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 2);\n }\n\n // Encoding choice: c_relation\n if (c_relation != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_relation.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 3);\n }\n\n // Encoding choice: c_unit\n if (c_unit != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_unit.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 4);\n }\n\n // Encoding choice: c_distance\n if (c_distance != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_distance.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 5);\n }\n\n // Encoding choice: c_attributes\n if (c_attributes != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n enc = new BEREncoding[1];\n enc[0] = c_attributes.ber_encode();\n chosen = new BERConstructed(BEREncoding.CONTEXT_SPECIFIC_TAG, 6, enc);\n }\n\n // Encoding choice: c_ordered\n if (c_ordered != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_ordered.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 7);\n }\n\n // Encoding choice: c_exclusion\n if (c_exclusion != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_exclusion.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 8);\n }\n\n // Check for error of having none of the choices set\n if (chosen == null)\n throw new ASN1Exception(\"CHOICE not set\");\n\n return chosen;\n}", "@Override\n\tpublic EncodingType getEncodingType() {\n\t\treturn EncodingType.CorrelationWindowEncoder;\n\t}", "public static CharsetDecoder getEncoding(RuntimeContract contract, String parameter) throws IllegalUsageException {\r\n\t\tif (contract.hasArgumentClause(parameter)) try {\r\n\t\t\treturn getEncoding(contract.useArgumentClause(parameter).getSingleValue());\r\n\t\t}\r\n\t\tcatch(IllegalArgumentException e) {\r\n\t\t\tthrow new IllegalUsageException(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private CharsetDecoder decoderFromExternalDeclaration(String encoding)\n throws SAXException {\n if (encoding == null) {\n return null;\n }\n encoding = encoding.toUpperCase();\n if (\"ISO-8859-1\".equals(encoding)) {\n encoding = \"Windows-1252\";\n }\n if (\"UTF-16\".equals(encoding) || \"UTF-32\".equals(encoding)) {\n swallowBom = false;\n }\n try {\n Charset cs = Charset.forName(encoding);\n String canonName = cs.name();\n if (canonName.startsWith(\"X-\") || canonName.startsWith(\"x-\")\n || canonName.startsWith(\"Mac\")) {\n if (encoding.startsWith(\"X-\")) {\n err(\"The encoding \\u201C\"\n + encoding\n + \"\\u201D is not an IANA-registered encoding. (Charmod C022)\");\n } else {\n err(\"The encoding \\u201C\"\n + encoding\n + \"\\u201D is not an IANA-registered encoding and did\\u2019t start with \\u201CX-\\u201D. (Charmod C023)\");\n }\n } else if (!canonName.equalsIgnoreCase(encoding)) {\n err(\"The encoding \\u201C\"\n + encoding\n + \"\\u201D is not the preferred name of the character encoding in use. The preferred name is \\u201C\"\n + canonName + \"\\u201D. (Charmod C024)\");\n }\n if (EncodingInfo.isObscure(canonName)) {\n warn(\"The character encoding \\u201C\"\n + encoding\n + \"\\u201D is not widely supported. Better interoperability may be achieved by using \\u201CUTF-8\\u201D.\");\n }\n return cs.newDecoder();\n } catch (IllegalCharsetNameException e) {\n err(\"Illegal character encoding name: \\u201C\" + encoding\n + \"\\u201D. Will sniff.\");\n } catch (UnsupportedCharsetException e) {\n err(\"Unsupported character encoding name: \\u201C\" + encoding\n + \"\\u201D. Will sniff.\");\n swallowBom = true;\n }\n return null; // keep the compiler happy\n }", "@Nullable\n private static HttpEncodingType determineEncoding(String acceptEncoding) {\n float starQ = -1.0f;\n final Map<HttpEncodingType, Float> encodings = new LinkedHashMap<>();\n for (String encoding : acceptEncoding.split(\",\")) {\n float q = 1.0f;\n final int equalsPos = encoding.indexOf('=');\n if (equalsPos != -1) {\n try {\n q = Float.parseFloat(encoding.substring(equalsPos + 1));\n } catch (NumberFormatException e) {\n // Ignore encoding\n q = 0.0f;\n }\n }\n if (encoding.contains(\"*\")) {\n starQ = q;\n } else if (encoding.contains(\"br\") && Brotli.isAvailable()) {\n encodings.put(HttpEncodingType.BROTLI, q);\n } else if (encoding.contains(\"gzip\")) {\n encodings.put(HttpEncodingType.GZIP, q);\n } else if (encoding.contains(\"deflate\")) {\n encodings.put(HttpEncodingType.DEFLATE, q);\n }\n }\n\n if (!encodings.isEmpty()) {\n final Entry<HttpEncodingType, Float> entry = Collections.max(encodings.entrySet(),\n Entry.comparingByValue());\n if (entry.getValue() > 0.0f) {\n return entry.getKey();\n }\n }\n if (starQ > 0.0f) {\n if (!encodings.containsKey(HttpEncodingType.BROTLI) && Brotli.isAvailable()) {\n return HttpEncodingType.BROTLI;\n }\n if (!encodings.containsKey(HttpEncodingType.GZIP)) {\n return HttpEncodingType.GZIP;\n }\n if (!encodings.containsKey(HttpEncodingType.DEFLATE)) {\n return HttpEncodingType.DEFLATE;\n }\n }\n return null;\n }", "public Header getContentEncoding() {\n/* 89 */ return this.contentEncoding;\n/* */ }", "private static Charset lookup(String enc) {\n try {\n if (enc != null && Charset.isSupported(enc)) {\n return Charset.forName(enc);\n }\n } catch (IllegalArgumentException ex) {\n // illegal charset name\n // unsupport charset\n }\n return null;\n }", "public Charset getDefaultQueryEncoding() {\n return defaultQueryEncoding;\n }", "public String getFileEncoding() {\n return fileEncoding;\n }", "public String getFileEncoding() {\n return fileEncoding;\n }", "public static String patchCharsetEncoding(String encoding) {\n \n // return the system default encoding\n if ((encoding == null) || (encoding.length() < 3)) return Charset.defaultCharset().name();\n \n // trim encoding string\n encoding = encoding.trim();\n \n // fix upper/lowercase\n encoding = encoding.toUpperCase();\n if (encoding.startsWith(\"SHIFT\")) return \"Shift_JIS\";\n if (encoding.startsWith(\"BIG\")) return \"Big5\";\n // all other names but such with \"windows\" use uppercase\n if (encoding.startsWith(\"WINDOWS\")) encoding = \"windows\" + encoding.substring(7);\n if (encoding.startsWith(\"MACINTOSH\")) encoding = \"MacRoman\";\n \n // fix wrong fill characters\n encoding = patternUnderline.matcher(encoding).replaceAll(\"-\");\n \n if (encoding.matches(\"GB[_-]?2312([-_]80)?\")) return \"GB2312\";\n if (encoding.matches(\".*UTF[-_]?8.*\")) return \"UTF-8\";\n if (encoding.startsWith(\"US\")) return \"US-ASCII\";\n if (encoding.startsWith(\"KOI\")) return \"KOI8-R\";\n \n // patch missing '-'\n if (encoding.startsWith(\"windows\") && encoding.length() > 7) {\n final char c = encoding.charAt(7);\n if ((c >= '0') && (c <= '9')) {\n encoding = \"windows-\" + encoding.substring(7);\n }\n }\n \n if (encoding.startsWith(\"ISO\")) {\n // patch typos\n if (encoding.length() > 3) {\n final char c = encoding.charAt(3);\n if ((c >= '0') && (c <= '9')) {\n encoding = \"ISO-\" + encoding.substring(3);\n }\n }\n if (encoding.length() > 8) {\n final char c = encoding.charAt(8);\n if ((c >= '0') && (c <= '9')) {\n encoding = encoding.substring(0, 8) + \"-\" + encoding.substring(8); \n } \n }\n }\n \n // patch wrong name\n if (encoding.startsWith(\"ISO-8559\")) {\n // popular typo\n encoding = \"ISO-8859\" + encoding.substring(8);\n }\n \n // converting cp\\d{4} -> windows-\\d{4}\n if (encoding.matches(\"CP([_-])?125[0-8]\")) {\n final char c = encoding.charAt(2);\n if ((c >= '0') && (c <= '9')) {\n encoding = \"windows-\" + encoding.substring(2);\n } else {\n encoding = \"windows\" + encoding.substring(2);\n }\n }\n \n return encoding;\n }", "public String getEncoding() throws MessagingException {\n/* 80 */ return this.encoding;\n/* */ }", "public interface Encoding {\n String encode(String encodeValue);\n String decode(String encodedValue);\n}", "public String getStringEncoding()\n\t{\n\t\treturn \"utf-8\";\n\t}", "public String getCodingMode() {\n return this.codingMode;\n }", "private String getEncodedString(String original, String encoding_in, String encoding_out) {\r\n\t\tString encoded_string;\r\n\t\tif (encoding_in.compareTo(encoding_out) != 0) {\r\n\t\t\tbyte[] encoded_bytes;\r\n\t\t\ttry {\r\n\t\t\t\tencoded_bytes = original.getBytes(encoding_in);\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_in);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tencoded_string = new String(encoded_bytes, encoding_out);\r\n\t\t\t\treturn encoded_string;\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\t//e.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_out);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn original;\r\n\t}", "public String getEncoding() {\n\t\treturn (encoding != null && !encoding.isEmpty()) ? encoding : System.getProperty(\"file.encoding\"); //NOI18N\n\t}", "@Override\n public String getCharacterEncoding() {\n return null;\n }", "public static String getIANA2JavaMapping(String ianaEncoding) {\n return (String)fIANA2JavaMap.get(ianaEncoding);\n }", "public interface ExtraEncoding {\n \n /**\n * Converts an Unicode string to a byte array according to some encoding.\n * @param text the Unicode string\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(String text, String encoding);\n \n /**\n * Converts an Unicode char to a byte array according to some encoding.\n * @param char1 the Unicode char\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(char char1, String encoding);\n \n /**\n * Converts a byte array to an Unicode string according to some encoding.\n * @param b the input byte array\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */\n public String byteToChar(byte b[], String encoding); \n}", "Builder addEncodings(MediaObject value);", "Base64Binary getCarrierAIDC();", "public static EncodingMark getEncodingMark(SchemaModel model) {\n Schema schema = model.getSchema();\n Annotation anno = schema.getAnnotation();\n if (anno == null) {\n return null;\n }\n for (AppInfo appInfo : anno.getAppInfos()) {\n if (EncodingConst.URI.equals(appInfo.getURI())) {\n NodeList nodeList =\n appInfo.getPeer().getChildNodes();\n if (nodeList == null || nodeList.getLength() == 0) {\n return null;\n }\n org.w3c.dom.Element encodingElem = null;\n for (int i = 0; i < nodeList.getLength(); i++) {\n if (nodeList.item(i).getNodeType() != org.w3c.dom.Node.ELEMENT_NODE) {\n // Skip non-element nodes, e.g. text node (containing Character Data such as \\n, spaces, etc.\n continue;\n }\n org.w3c.dom.Element elem = (org.w3c.dom.Element) nodeList.item(i);\n if (EncodingConst.URI.equals(elem.getNamespaceURI())\n && \"encoding\".equals(elem.getLocalName())) { //NOI18N\n encodingElem = elem;\n break;\n } else {\n String elemName = elem.getNodeName();\n int pos;\n String ns, localName;\n if ((pos = elemName.indexOf(':')) > 0) {\n ns = elem.lookupNamespaceURI(elemName.substring(0, pos));\n localName = elemName.substring(pos + 1);\n } else {\n ns = elem.lookupNamespaceURI(\"\"); //NOI18N\n localName = elemName;\n }\n if (EncodingConst.URI.equals(ns)\n && \"encoding\".equals(localName)) { //NOI18N\n encodingElem = elem;\n break;\n }\n }\n }\n if (encodingElem != null) {\n return new EncodingMark(encodingElem.getAttribute(\"name\"), //NOI18N\n encodingElem.getAttribute(\"namespace\"), encodingElem.getAttribute(\"style\")); //NOI18N\n }\n }\n }\n return null;\n }", "public String getResponseCharset()\r\n {\r\n Header header = httpMethod.getResponseHeader( \"Content-Type\" );\r\n if( header != null )\r\n {\r\n for( HeaderElement headerElement : header.getElements() )\r\n {\r\n NameValuePair parameter = headerElement.getParameterByName( \"charset\" );\r\n if( parameter != null )\r\n return parameter.getValue();\r\n }\r\n }\r\n \r\n Header contentEncodingHeader = httpMethod.getResponseHeader( \"Content-Encoding\" );\r\n if( contentEncodingHeader != null )\r\n {\r\n try\r\n {\r\n String value = contentEncodingHeader.getValue();\r\n if( CompressionSupport.getAvailableAlgorithm( value ) == null )\r\n {\r\n new String( \"\" ).getBytes( value );\r\n return value;\r\n }\r\n }\r\n catch( Exception e )\r\n {\r\n }\r\n }\r\n \r\n return null;\r\n }", "public String getContentCharset() {\n\t\tString ct = header.getContentType();\n\t\treturn Streams.getCharsetFromContentTypeString(ct);\n\t}", "public String getExcelEncoding() {\n\t\treturn props.getProperty(ARGUMENT_EXCEL_ENCODING, DEFAULT_EXCEL_ENCODING);\n\t}", "@java.lang.Override\n public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() {\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result =\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_);\n return result == null\n ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED\n : result;\n }", "@Override\r\n\tpublic Map<Character, String> getChineseEncodingCodes() {\n\t\treturn chineseEncodingCodesDao.getChineseEncodingCodes();\r\n\t}", "private void computeEncoding()\n{\n source_encoding = IvyFile.digestString(current_node.getKeyText());\n}", "protected static String normalizeEncoding(String enc) {\n String tmp = enc == null ? \"\" : enc.toLowerCase();\n switch (tmp) {\n case \"\":\n case \"winansi\":\n case \"winansiencoding\":\n return PdfEncodings.WINANSI;\n case \"macroman\":\n case \"macromanencoding\":\n return PdfEncodings.MACROMAN;\n case \"zapfdingbatsencoding\":\n return PdfEncodings.ZAPFDINGBATS;\n default:\n return enc;\n }\n }", "public String getDefaultCharset() {\n/* 359 */ return this.charset;\n/* */ }", "public org.apache.xmlbeans.XmlAnySimpleType getInputEncoding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(INPUTENCODING$16);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_default_attribute_value(INPUTENCODING$16);\n }\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public org.apache.xmlbeans.XmlAnySimpleType getOutputEncoding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(OUTPUTENCODING$18);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "protected JsonEncoding getJsonEncoding(MediaType contentType)\n/* */ {\n/* 401 */ if ((contentType != null) && (contentType.getCharset() != null)) {\n/* 402 */ Charset charset = contentType.getCharset();\n/* 403 */ for (JsonEncoding encoding : JsonEncoding.values()) {\n/* 404 */ if (charset.name().equals(encoding.getJavaName())) {\n/* 405 */ return encoding;\n/* */ }\n/* */ }\n/* */ }\n/* 409 */ return JsonEncoding.UTF8;\n/* */ }", "public synchronized DBEncoderFactory getDBEncoderFactory() {\n return this.encoderFactory;\n }", "public static FontEncoding createFontSpecificEncoding() {\n FontEncoding encoding = new FontEncoding();\n encoding.fontSpecific = true;\n for (int ch = 0; ch < 256; ch++) {\n encoding.unicodeToCode.put(ch, ch);\n encoding.codeToUnicode[ch] = ch;\n encoding.unicodeDifferences.put(ch, ch);\n }\n return encoding;\n }", "public final Codec getCodec()\n\t{\n\t\treturn codec;\n\t}", "java.lang.String getEncoded();", "public CharsetEncoder mo5320c() {\n return this.f2272c;\n }", "@java.lang.Override\n public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() {\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result =\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_);\n return result == null\n ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED\n : result;\n }", "public void setInputEncoding(String inputEncoding) {\r\n this.inputEncoding = inputEncoding;\r\n }" ]
[ "0.6503051", "0.6489374", "0.6254757", "0.624929", "0.6151208", "0.5953423", "0.59525585", "0.5845128", "0.5723572", "0.5689394", "0.5659821", "0.5657177", "0.5638508", "0.5638508", "0.5612448", "0.5600474", "0.5600474", "0.55970573", "0.5549505", "0.5543185", "0.55375856", "0.55314326", "0.5468388", "0.54616714", "0.54616714", "0.54616714", "0.5447931", "0.5447441", "0.54154515", "0.5411218", "0.5404566", "0.54021776", "0.53620434", "0.5347161", "0.53207374", "0.5318137", "0.5302763", "0.528935", "0.5271235", "0.52619207", "0.52469397", "0.523021", "0.52218", "0.5218098", "0.5209889", "0.51833135", "0.51721764", "0.5166478", "0.514484", "0.5144405", "0.51277226", "0.51245075", "0.5110054", "0.5094263", "0.50920373", "0.5073718", "0.5062652", "0.5040848", "0.5037395", "0.5016464", "0.49989283", "0.49979338", "0.49751708", "0.4970181", "0.49266917", "0.49195156", "0.4916312", "0.4915065", "0.489326", "0.48913836", "0.4884056", "0.4883612", "0.48775533", "0.48720017", "0.4868059", "0.4862321", "0.48608723", "0.48592994", "0.48499388", "0.48448256", "0.4827123", "0.481916", "0.4817662", "0.48116928", "0.48037484", "0.4778265", "0.477046", "0.47482136", "0.4747466", "0.4745738", "0.47447133", "0.47392753", "0.47385064", "0.47373068", "0.47262824", "0.47242662", "0.47208235", "0.47203144", "0.47088453", "0.46768954" ]
0.49901605
62
Get second correlation values by marc category and first correlation.
@SuppressWarnings("unchecked") public List<Avp<String>> getSecondCorrelationList(final Session session, final int category, final int value1, final Class classTable, final Locale locale) throws DataAccessException { try { final List<CodeTable> codeTables = session.find("Select distinct ct from " + classTable.getName() + " as ct, BibliographicCorrelation as bc " + " where bc.key.marcTagCategoryCode = ? and " + " bc.key.marcFirstIndicator <> '@' and " + " bc.key.marcSecondIndicator <> '@' and " + " bc.databaseFirstValue = ? and " + " bc.databaseSecondValue = ct.code and " + " ct.obsoleteIndicator = '0' and " + " ct.language = ? " + " order by ct.sequence ", new Object[]{category, value1, locale.getISO3Language()}, new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING}); return codeTables .stream() .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText())) .collect(toList()); } catch (final HibernateException exception) { logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception); return Collections.emptyList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public BibliographicCorrelation getBibliographicCorrelation(\n final Session session,\n final String tag,\n final char firstIndicator,\n final char secondIndicator,\n final int categoryCode) throws HibernateException {\n\n final List<BibliographicCorrelation> correlations =\n categoryCode != 0\n ? session.find(\n \"from BibliographicCorrelation as bc \"\n + \"where bc.key.marcTag = ? and \"\n + \"(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and \"\n + \"bc.key.marcFirstIndicator <> '@' and \"\n + \"(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and \"\n + \"bc.key.marcSecondIndicator <> '@' and \"\n + \"bc.key.marcTagCategoryCode = ?\",\n new Object[]{tag, firstIndicator, secondIndicator, categoryCode},\n new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER, Hibernate.INTEGER})\n : session.find(\n \"from BibliographicCorrelation as bc \"\n + \"where bc.key.marcTag = ? and \"\n + \"(bc.key.marcFirstIndicator = ? or bc.key.marcFirstIndicator='S' )and \"\n + \"bc.key.marcFirstIndicator <> '@' and \"\n + \"(bc.key.marcSecondIndicator = ? or bc.key.marcSecondIndicator='S')and \"\n + \"bc.key.marcSecondIndicator <> '@' order by bc.key.marcTagCategoryCode asc\",\n new Object[]{tag, firstIndicator, secondIndicator},\n new Type[]{Hibernate.STRING, Hibernate.CHARACTER, Hibernate.CHARACTER});\n\n return correlations.stream().filter(Objects::nonNull).findFirst().orElse(null);\n }", "@SuppressWarnings(\"unchecked\")\n public CorrelationKey getMarcEncoding(\n final int category, final int firstCorrelation,\n final int secondCorrelation, final int thirdCorrelation, final Session session) throws HibernateException {\n final List<Correlation> result = session.find(\n \"from BibliographicCorrelation as bc \"\n + \"where bc.key.marcTagCategoryCode = ? and \"\n + \"bc.databaseFirstValue = ? and \"\n + \"bc.databaseSecondValue = ? and \"\n + \"bc.databaseThirdValue = ?\",\n new Object[]{category, firstCorrelation, secondCorrelation, thirdCorrelation},\n new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER});\n\n return result.stream().filter(Objects::nonNull).findFirst().map(Correlation::getKey).orElse(null);\n }", "private static int getClusterCorrespondance(Integer cl1, Integer cl2,\n HashMap<Integer, HashMap<Integer, Integer>> clusterCorresp, int nextId)\n{\n HashMap<Integer, Integer> map = clusterCorresp.get(cl1);\n if (map == null) {\n map = new HashMap<Integer, Integer>();\n map.put(cl2, nextId);\n clusterCorresp.put(cl1, map);\n return nextId;\n }\n Integer corresp = map.get(cl2);\n if (corresp == null) {\n map.put(cl2, nextId);\n return nextId;\n }\n return corresp.intValue();\n}", "public static double calculateCorrelation(TransposeDataList transposeDataList) {\n Object[] keys = transposeDataList.keySet().toArray();\n if(keys.length!=2) {\n throw new IllegalArgumentException(\"The collection must contain observations from 2 groups.\");\n }\n \n Object keyX = keys[0];\n Object keyY = keys[1];\n \n FlatDataCollection flatDataCollectionX = transposeDataList.get(keyX).toFlatDataCollection();\n FlatDataCollection flatDataCollectionY = transposeDataList.get(keyY).toFlatDataCollection();\n\n int n = flatDataCollectionX.size();\n if(n<=2 || n!=flatDataCollectionY.size()) {\n throw new IllegalArgumentException(\"The number of observations in each group must be equal and larger than 2.\");\n }\n\n double stdX= Descriptives.std(flatDataCollectionX,true);\n double stdY=Descriptives.std(flatDataCollectionY,true);\n\n double covariance=Descriptives.covariance(transposeDataList,true);\n\n double pearson=covariance/(stdX*stdY);\n\n return pearson;\n }", "private static Correlation getCorrelation(Query query, PhemaElmToOmopTranslatorContext context)\n throws PhemaNotImplementedException, CorrelationException, PhemaTranslationException {\n Expression correlationExpression = query.getRelationship().get(0).getSuchThat();\n\n if (!correlationExpressionSupported(correlationExpression)) {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n\n Map<String, QuickResource> aliases = setupAliases(query, context);\n\n if (correlationExpression instanceof Equal) {\n QuickResourceAttributePair lhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(0), aliases);\n QuickResourceAttributePair rhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(1), aliases);\n\n return new Correlation(lhs, rhs, correlationExpression);\n } else {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n }", "public String getCategory2() {\n return category2;\n }", "public java.lang.String getC2()\n {\n return this.c2;\n }", "public JavaPairRDD<String, Tuple2<Iterable<Integer>, Iterable<Integer>>> cogroupExample(){\n return firstSet\n .cogroup(secondSet);\n }", "public int[] findClusterCorrespondence(int[] idx1, int[] idx2) {\n\t\tint n = idx1.length;\n\t\tif (n != idx2.length) {\n\t\t\tSystem.out.println(\"Cluster Utils: findClusterCorrespondence: idx1 and idx2 has to have same number of elements\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// find unique values in idx1 and idx2\n\t\tUniqueResult<Integer> ur_idx1 = utils.findUnique(idx1);\n\t\tUniqueResult<Integer> ur_idx2 = utils.findUnique(idx2);\n\t\tif (ur_idx1.domain.length != ur_idx2.domain.length) {\n\t\t\tSystem.out.println(\"Cluster Utils: findClusterCorrespondence: idx1 and idx2 has different number of clusters\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// find Jaccard coefficient\n\t\tdouble[][] J = findJaccardIndex(idx1, idx2);\n\t\t\n\t\t// use Hungarian method - use any kind of Hungarian algorithm\n\t\tHungarianAlgorithm h = new HungarianAlgorithm();\n\t\t@SuppressWarnings(\"static-access\")\n\t\tint[][] match = h.hgAlgorithm(J, \"max\");\n\t\t\n\t\t// print match matrix\n\t\tif (verbose) {\n\t\t\tSystem.out.println(\"Hunguarian Cost Matrix\");\n\t\t\tutils.printMatrix(match);\n\t\t}\n\t\t\n\t\t// relabel the idx2\n\t\tif (verbose) System.out.println(\"Class correspondents matrix:\");\n\t\tint[] target = idx1.clone();\n\t\tfor (int i = 0; i < match.length; i++) {\n\t\t\tint idx1_index = ur_idx1.domain[match[i][0]];\n\t\t\tint idx2_index = ur_idx2.domain[match[i][1]];\n\t\t\tif (verbose) System.out.printf(\"%d\\t%d\", idx1_index, idx2_index);\t\t\t\n\t\t\tif (idx1_index != idx2_index) {\n\t\t\t\tif (verbose) System.out.printf(\"\\t(will replace all %d in idx2 by %d)\", idx2_index, idx1_index);\n\t\t\t\tboolean[] index = utils.getIndexByValue(idx2, idx2_index);\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tif (index[j]) target[j] = idx1_index;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (verbose) System.out.printf(\"\\n\");\n\t\t}\n\t\t\n\t\tif (verbose) {\n\t\t\tint v_tt = 15;\n\t\t\tif (target.length < v_tt) v_tt = target.length;\n\t\t\tSystem.out.printf(\"Printing first %d elements of input and output arrays\\n\", v_tt);\n\t\t\tSystem.out.printf(\"IDX1\\tIDX2\\tFINAL IDX\\n\");\n\t\t\tfor (int i = 0; i < v_tt; i++) System.out.printf(\"%d\\t%d\\t%d\\n\", idx1[i], idx2[i], target[i]);\n\t\t}\n\t\t\n\t\treturn target;\n\t}", "double correlationCoefficient(User a, User b) throws CwebApiException;", "@SuppressWarnings(\"unchecked\")\n public List<Avp<String>> getThirdCorrelationList(final Session session,\n final int category,\n final int value1,\n final int value2,\n final Class classTable,\n final Locale locale) throws DataAccessException {\n try {\n final List<CodeTable> codeTables = session.find(\" select distinct ct from \"\n + classTable.getName()\n + \" as ct, BibliographicCorrelation as bc \"\n + \" where bc.key.marcTagCategoryCode = ? and \"\n + \" bc.key.marcFirstIndicator <> '@' and \"\n + \" bc.key.marcSecondIndicator <> '@' and \"\n + \" bc.databaseFirstValue = ? and \"\n + \" bc.databaseSecondValue = ? and \"\n + \" bc.databaseThirdValue = ct.code and \"\n + \" ct.obsoleteIndicator = '0' and \"\n + \" ct.language = ? \"\n + \" order by ct.sequence \",\n new Object[]{category, value1, value2, locale.getISO3Language()},\n new Type[]{Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.INTEGER, Hibernate.STRING});\n\n return codeTables\n .stream()\n .map(codeTable -> (Avp<String>) new Avp(codeTable.getCodeString().trim(), codeTable.getLongText()))\n .collect(toList());\n\n } catch (final HibernateException exception) {\n logger.error(MessageCatalog._00010_DATA_ACCESS_FAILURE, exception);\n return Collections.emptyList();\n }\n }", "@Override\r\n\tpublic List<Category> selectSecondCategory(String categoryIdRef)\r\n\t{\n\t\treturn dao.selectSecondCategory(categoryIdRef);\r\n\t}", "public Object[] pca2(int nargout, Object... rhs) throws RemoteException;", "public RXC getRXC2(int rep) { \r\n return getTyped(\"RXC2\", rep, RXC.class);\r\n }", "public ResultsContainerI RCA2( final String[] _args ) {\n\t\t\n\t\tString[] rca2Args = new String[ 2 ];\n\t\trca2Args[ 0 ] = \"taskChoice=\" + TDA.UI_TASK_M23;\n\t\trca2Args[ 1 ] = \"applicationMode=\" + TDA.UI_APPLICATIONMODE_API;\n\t\t\n\t\ttry {\n\n\t\t\tappTda_.assignData( _args );\n\t\t\tappTda_.assignData( rca2Args );\n\t\t\tappTda_.executeTda();\n\t\t\tresultsContainer_ = appTda_.getResults();\n\t\t}\n\t\tcatch ( Exception e ) {\n\t\t\t\n\t\t\tSystem.out.println( \"[ERROR RCA2_args] Exception encountered: \" + e.toString() );\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn resultsContainer_;\n\t}", "public Object get2(final C a, final C b) {\n return null;\n }", "@Override\n public List<BaseCategory2> getCategory2(Long category1Id) {\n QueryWrapper<BaseCategory2> baseCategory2QueryWrapper = new QueryWrapper<>();\n baseCategory2QueryWrapper.eq(\"category1_id\",category1Id);\n return baseCategory2Mapper.selectList(baseCategory2QueryWrapper);\n }", "public RXC getRXC2() { \r\n return getTyped(\"RXC2\", RXC.class);\r\n }", "public final double get2ndCentralMoment() {\n return moments[2];\n }", "@Override\n\tprotected List<Double> computeRelatedness(Page page1, Page page2) throws WikiApiException {\n List<Double> relatednessValues = new ArrayList<Double>();\n\n Set<Category> categories1 = relatednessUtilities.getCategories(page1);\n Set<Category> categories2 = relatednessUtilities.getCategories(page2);\n\n if (categories1 == null || categories2 == null) {\n return null;\n }\n\n Category root = wiki.getMetaData().getMainCategory();\n // test whether the root category is in this graph\n if (!catGraph.getGraph().containsVertex(root.getPageId())) {\n logger.error(\"The root node is not part of this graph. Cannot compute Lin relatedness.\");\n return null;\n }\n\n for (Category cat1 : categories1) {\n for (Category cat2 : categories2) {\n // get the lowest common subsumer (lcs) of the two categories\n Category lcs = catGraph.getLCS(cat1, cat2);\n\n if (lcs == null) {\n continue;\n }\n\n // lin(c1,c2) = 2 * ic ( lcs(c1,c2) ) / IC(c1) + IC(c2)\n double intrinsicIcLcs = catGraph.getIntrinsicInformationContent(lcs);\n double intrinsicIcCat1 = catGraph.getIntrinsicInformationContent(cat1);\n double intrinsicIcCat2 = catGraph.getIntrinsicInformationContent(cat2);\n\n double relatedness = 0.0;\n if (intrinsicIcCat1 != 0 && intrinsicIcCat2 != 0) {\n relatedness = 2 * intrinsicIcLcs / (intrinsicIcCat1 + intrinsicIcCat2);\n }\n\n relatednessValues.add(relatedness);\n }\n }\n\n logger.debug(relatednessValues);\n return relatednessValues;\n }", "public Boolean getC2() {\n\t\treturn c2;\n\t}", "private Matriks MatriksCofactor(Matriks M){\r\n\t\tMatriks Mcofactor = new Matriks(BrsEff, KolEff);\r\n\t\tfor(int i=0; i<BrsEff; i++){\r\n\t\t\tfor(int j=0;j<KolEff; j++){\r\n\t\t\t\tMatriks temp = M.Cofactor(M,i,j);\r\n\t\t\t\tMcofactor.Elmt[i][j] = temp.DetCofactor(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mcofactor;\r\n\t}", "INLINE UINT64 get_cop2_reg(int idx)\n\t{\n\t\treturn mips3.cpr[2][idx];\n\t}", "@Override\r\n\t\tpublic S getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public static Term[] combineTwoTermArrays(Term[] first, Term[] second) {\n\t\tTerm[] newRA;\n\t\tif(first==null) {\n\t\t\tnewRA= new Term[second.length];\n\t\t}else {\n\t\t\tnewRA= new Term[first.length+second.length];\n\t\t\tint k = 0;\n\t\t\tfor (int i = 0; i < first.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tnewRA[k] = new Term(first[i].dispTerm().toCharArray());\n\t\t\t\t\tk++;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < second.length; i++) {\n\t\t\t\tnewRA[k] = new Term(second[i].dispTerm().toCharArray());\n\t\t\t\tk++;\n\t\t\t} \n\t\t}\n\t\treturn newRA;\n\t}", "public String getCategory1() {\n return category1;\n }", "private double[] getPearsonCoeff(LinkedList<double[]> linAccSample, LinkedList<double[]> gyroSample) {\n double[] xLinAccValues = new double[linAccSample.size()],\n yLinAccValues = new double[linAccSample.size()],\n zLinAccValues = new double[linAccSample.size()],\n xGyroValues = new double[linAccSample.size()],\n yGyroValues = new double[linAccSample.size()],\n zGyroValues = new double[linAccSample.size()];\n for (int i = 0; i < linAccSample.size(); i++) {\n xLinAccValues[i] = linAccSample.get(i)[0];\n yLinAccValues[i] = linAccSample.get(i)[1];\n zLinAccValues[i] = linAccSample.get(i)[2];\n }\n for (int i = 0; i < gyroSample.size(); i++) {\n xGyroValues[i] = gyroSample.get(i)[0];\n yGyroValues[i] = gyroSample.get(i)[1];\n zGyroValues[i] = gyroSample.get(i)[2];\n }\n // order: xlinaccvalues vs xgyro,ygyro,zgyro, then ylinaccvalues, so on...\n PearsonsCorrelation pCorr = new PearsonsCorrelation();\n double pCoeff1 = pCorr.correlation(xLinAccValues, xGyroValues);\n double pCoeff2 = pCorr.correlation(xLinAccValues, yGyroValues);\n double pCoeff3 = pCorr.correlation(xLinAccValues, zGyroValues);\n double pCoeff4 = pCorr.correlation(yLinAccValues, xGyroValues);\n double pCoeff5 = pCorr.correlation(yLinAccValues, yGyroValues);\n double pCoeff6 = pCorr.correlation(yLinAccValues, zGyroValues);\n double pCoeff7 = pCorr.correlation(zLinAccValues, xGyroValues);\n double pCoeff8 = pCorr.correlation(zLinAccValues, yGyroValues);\n double pCoeff9 = pCorr.correlation(zLinAccValues, zGyroValues);\n\n double[] coefficients = {\n pCoeff1, pCoeff2, pCoeff3, pCoeff4, pCoeff5, pCoeff6, pCoeff7, pCoeff8, pCoeff9\n };\n for (int i = 0; i < coefficients.length; i++) {\n if (Double.isNaN(coefficients[i])) coefficients[i] = 0;\n }\n return coefficients;\n }", "private Candle[] collectCandlesByIndex(int index1, int index2) throws Exception {\r\n Candle[] cd;\r\n int c = 0;\r\n if (index1 < index2) {\r\n cd = new Candle[index2 - index1+1];\r\n for(int i = index1; i <= index2; i++) {\r\n cd[c] = this.candles[i];\r\n c++;\r\n }\r\n return cd;\r\n } else if (index1 > index2) {\r\n cd = new Candle[index1 - index2+1];\r\n for(int i = index2; i <= index1; i++) {\r\n cd[c] = this.candles[i];\r\n c++;\r\n }\r\n return cd;\r\n } else if (index1 == index2) {\r\n cd = new Candle[1];\r\n cd[0] = this.candles[index1];\r\n return cd;\r\n } else {\r\n throw new RuntimeException(\"collectCandlesByIndex() error\");\r\n }\r\n }", "public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n System.out.println(i + \" == \" + arcsTemp.getDepart().getInfo()+ \" , \" +arcsTemp.getArrivee().getId());\n ret.setValue(i, arcsTemp.getArrivee().getId(), 1);\n }\n System.out.println(\"***\");\n }\n\n return ret;\n }", "@Override\r\n\tpublic Double getModel_cash_correlation() {\n\t\treturn super.getModel_cash_correlation();\r\n\t}", "public void spearmansRankCorrelation(double cutoff, MWBMatchingAlgorithm mwbm) {\n double p = 0;\n\n SpearmansCorrelation t = new SpearmansCorrelation();\n\n // size has to be the same so we randomly sample the number of the smaller sample from\n // the big sample\n if (this.train.size() > this.test.size()) {\n this.sample(this.train, this.test, this.train_values);\n }\n else if (this.test.size() > this.train.size()) {\n this.sample(this.test, this.train, this.test_values);\n }\n\n // try out possible attribute combinations\n for (int i = 0; i < this.train.numAttributes(); i++) {\n for (int j = 0; j < this.test.numAttributes(); j++) {\n // negative infinity counts as not present, we do this so we don't have to map\n // between attribute indexs in weka\n // and the result of the mwbm computation\n mwbm.setWeight(i, j, Double.NEGATIVE_INFINITY);\n\n // class attributes are not relevant\n if (this.test.classIndex() == j) {\n continue;\n }\n if (this.train.classIndex() == i) {\n continue;\n }\n\n p = t.correlation(this.train_values.get(i), this.test_values.get(j));\n if (p > cutoff) {\n mwbm.setWeight(i, j, p);\n }\n }\n }\n }", "private void setcategoriaPrincipal(String categoriaPrincipal2) {\n\t\t\n\t}", "public double getC1() {\n return c1;\n }", "public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }", "public PairVector getCCs(){\r\n\t\treturn mccabe.getCCs(javaclass);\r\n\t}", "public void setCategory2(String category2) {\n this.category2 = category2;\n }", "public String getDc2()\n {\n return dc2;\n }", "public static double getCO2emissions(int timestep) {\n\t\t\n\t\tdouble co2StromDeutschland = 0.474; // nach Statistischen Daten\n\t\t\n\t\tco2StromDeutschland = 0.540; // nach Stefan's Master Arbeit - als Vergleich für Riemerling\n\t\t\n\t\treturn co2StromDeutschland; // current co2 emission level of Germany\n\t}", "public static void corrDistOut()\t\n\t{\t \n\t\n\t\tdouble c, n, w;\n\t\t\n\t\t//System.err.println(\"CORRDIST\");\n\n\t\tclade = clad[k];\n\t\n\t clade.meanDc = 0;\n\t clade.meanDn = 0;\n\t clade.meanWeight = 0;\n\t clade.sumDcxWeight = 0;\n\t clade.sumDnxWeight = 0;\n\t clade.sumDcSq = 0;\n\t clade.sumDnSq = 0;\n\t clade.sumWeightSq = 0;\n\t\t\n\t\tc = n = w = 0;\n\t\t\n\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t \tclade.meanDc += clade.Dc[i] / (double) clade.numSubClades;\n\t \tclade.meanDn += clade.Dn[i] / (double) clade.numSubClades;\n\t \tclade.meanWeight += clade.weight[i] / (double) clade.numSubClades;\n\t \tclade.sumDcxWeight += clade.Dc[i] * clade.weight[i];\n\t \tclade.sumDnxWeight += clade.Dn[i] * clade.weight[i];\n\t \tclade.sumDcSq += Math.pow (clade.Dc[i],2); \n\t \tclade.sumDnSq += Math.pow(clade.Dn[i],2); \n\t \tclade.sumWeightSq += Math.pow(clade.weight[i], 2);\n\t \t \t}\t\n\t \n\t c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \tw = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\tif(clade.sumDcSq == 0 || c == 0 || w == 0)\n\t\t\tclade.corrDcWeights = NA; \n\t else\n\t\t\tclade.corrDcWeights = (clade.sumDcxWeight - (double)clade.numSubClades * clade.meanDc * clade.meanWeight) / (Math.sqrt(c*w));\n\n\t\tif(clade.sumDnSq == 0 || n == 0 || w == 0)\n\t\t\tclade.corrDnWeights = NA; \n\t else\n\t\t\tclade.corrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight) / (Math.sqrt(n*w));\n\n\t if(clade.corrDcWeights > 1 && clade.corrDcWeights < 2)\n\t clade.corrDcWeights = 1;\n\t \n\t if(clade.corrDcWeights < -1)\n\t clade.corrDcWeights = -1;\n\t \n\t if(clade.corrDnWeights > 1 && clade.corrDnWeights < 2)\n\t clade.corrDnWeights = 1;\n\t \n\t if(clade.corrDnWeights < -1)\n\t clade.corrDnWeights = -1; \n\n\t\t//System.err.println(\"Correlations clade \" + clade.cladeName + \": \" + clade.corrDcWeights + \" \" + clade.corrDnWeights);\n\n\t}", "public EntityCategory getCategory ( ) {\n\t\treturn extract ( handle -> handle.getCategory ( ) );\n\t}", "@Override\r\n\t\tpublic S getSecond() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getSecond();\r\n\t\t\t}\r\n\t\t}", "public double crossSubCurveCorrelation()\n\t{\n\t\treturn _crossSubCurveCorrelation;\n\t}", "public org.drip.measure.stochastic.LabelCorrelation singleCurveTenorCorrelation()\n\t{\n\t\treturn _singleCurveTenorCorrelation;\n\t}", "public abstract Collection<T> getSecondDimension();", "public int getPointsC2() {\r\n pointsC2 = pointsC + getPointsCroupier3();\r\n\r\n if (pointsC2 >= 10) {\r\n pointsC2 -= 10;\r\n }\r\n\r\n return pointsC2;\r\n }", "public float Correlation(List<Float> xs, List<Float> ys) {\n\n\t\tdouble sx = 0.0;\n\t\tdouble sy = 0.0;\n\t\tdouble sxx = 0.0;\n\t\tdouble syy = 0.0;\n\t\tdouble sxy = 0.0;\n\n\t\tint n = xs.size();\n\t\tfor (int i = 0; i < n; ++i) {\n\t\t\tdouble x = xs.get(i);\n\t\t\tdouble y = ys.get(i);\n\n\t\t\tsx += x;\n\t\t\tsy += y;\n\t\t\tsxx += x * x;\n\t\t\tsyy += y * y;\n\t\t\tsxy += x * y;\n\t\t}\n\n\t\t// covariation\n\t\tdouble cov = sxy / n - sx * sy / n / n;\n\t\t// standard error of x\n\t\tdouble sigmax = Math.sqrt(sxx / n - sx * sx / n / n);\n\t\t// standard error of y\n\t\tdouble sigmay = Math.sqrt(syy / n - sy * sy / n / n);\n\n\t\t// correlation is just a normalized covariation\n\t\treturn (float) (cov / sigmax / sigmay);\n\t}", "public Group getGroup_2_1() { return cGroup_2_1; }", "public java.lang.String getSecondary2() {\n return secondary2;\n }", "public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }", "public Object apply(Object c1, Object c2) {\n double[] x = (double[])c1;\n double[] y = (double[])c2;\n double a;\n double a_1;\n double tx, ty;\n int min = Math.min(x.length, y.length);\n for (int i = 0; i < min; i++) {\n a = NumberGenerator.random();\n a_1 = 1.0 - a;\n tx = x[i];\n ty = y[i];\n x[i] = a * tx + a_1 * ty;\n y[i] = a_1 * tx + a * ty;\n }\n return null;\n }", "public Relationship[] getNLM_Rels(int index) {\n if (index % 2 != 0) {\n index -= 1;\n }\n index = index / 2;\n\n Concept concept_1 = (Concept) clusters[index][1];\n Concept concept_2 = (Concept) clusters[index][2];\n\n Relationship[] rels = concept_1.getRelationships();\n\n Vector v = new Vector();\n for (int i = 0; i < rels.length; i++) {\n if (rels[i].getSource().toString().startsWith(\"NLM\") &&\n ( (concept_2 == null) || (rels[i].getRelatedConcept() == concept_2))) {\n v.add(rels[i]);\n }\n }\n\n return (Relationship[]) v.toArray(new Relationship[0]);\n }", "public Bar get_bar(String node1, String node2) {\n return this.bars.get(node1).get(node2);\n }", "public static Node cccc_combination(LinkedList list1, LinkedList list2) {\n\n Node Katlyn1 = list1.head;\n Node Katlyn2 = list2.head;\n Node nodethaniel = new Node(0);\n Node tail = nodethaniel;\n\n while (true) {\n if (Katlyn1 == null) {\n tail.next = Katlyn2;\n break;\n }\n if (Katlyn2 == null) {\n tail.next = Katlyn1;\n break;\n }\n // Arrow function in Java?\n if (Katlyn1.valueData <= Katlyn2.valueData) {\n tail.next = Katlyn1;\n Katlyn1 = Katlyn1.next;\n } else {\n tail.next = Katlyn2;\n Katlyn2 = Katlyn2.next;\n }\n tail = tail.next;\n }\n return nodethaniel.next;\n }", "public Pair(String one, String two, double corr) {\n word1 = one;\n word2 = two;\n correlation = corr;\n }", "@Override\n\tpublic CM_COV_Object centralMoment(CMOperator op, int nRows) {\n\t\tCM_COV_Object ret = _dict.centralMomentWithReference(op.fn, getCounts(), _reference[0], nRows);\n\t\tint count = _numRows - _data.size();\n\t\top.fn.execute(ret, _reference[0], count);\n\t\treturn ret;\n\t}", "public final void ruleFindSecondProperty() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:816:2: ( ( ( rule__FindSecondProperty__Group__0 ) ) )\n // InternalBrowser.g:817:2: ( ( rule__FindSecondProperty__Group__0 ) )\n {\n // InternalBrowser.g:817:2: ( ( rule__FindSecondProperty__Group__0 ) )\n // InternalBrowser.g:818:3: ( rule__FindSecondProperty__Group__0 )\n {\n before(grammarAccess.getFindSecondPropertyAccess().getGroup()); \n // InternalBrowser.g:819:3: ( rule__FindSecondProperty__Group__0 )\n // InternalBrowser.g:819:4: rule__FindSecondProperty__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__FindSecondProperty__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getFindSecondPropertyAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getCncategory() {\n return cncategory;\n }", "private double getValMorp ( cell c, morphogen m) {\t\t\r\n\t\tif ( m.equals(morphogen.a))\r\n\t\t\treturn c.getVal1();\r\n\t\telse\r\n\t\t\treturn c.getVal2();\r\n\t}", "public static Node LCA2(Node root, int n1, int n2) {\n if(root != null){\n if(root.data == n1 || root.data == n2)\n return root;\n\n Node l = LCA2(root.left, n1, n2);\n Node r = LCA2(root.right, n1, n2);\n if(l != null && r != null)\n return root;\n else if( l != null)\n return l;\n else if( r != null)\n return r;\n }\n return null;\n }", "public org.drip.capital.allocation.CorrelationCategoryBeta correlationCategoryBeta (\n\t\tfinal int correlationCategory)\n\t{\n\t\treturn categoryExists (\n\t\t\tcorrelationCategory\n\t\t) ? _correlationCategoryBetaMap.get (\n\t\t\tcorrelationCategory\n\t\t) : null;\n\t}", "public Position getSecond() {\n return positions[1];\n }", "public void readCategoryFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\tint row = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t//System.out.println(sCurrentLine);\n\t\t\t\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\t//System.out.println(lineElements.length);\n\t\t\tfor (int column = 0; column < lineElements.length; column++) {\t\t\n\t\t\t\t//System.out.println(column);\n\t\t\t\tint category = Integer.parseInt(lineElements[column]);\n\t\t\t\t//System.out.println(vertices.size());\n\t\t\t\tPOI v1 = vertices.get(row);\n\t\t\t\tPOI v2 = vertices.get(column);\n\t\t\t\t\n\t\t\t\tArc arc = getArc(v1, v2);\n\t\t\t\tif (!distMtx) {\n\t\t\t\t\tdouble distance = v1.distanceTo(v2);\n\t\t\t\t\tif (data == Dataset.VERBEECK) {\n\t\t\t\t\t\tdistance = distance / 5.0;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistance = distance / 10.0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tarc.setLength(distance);\n\t\t\t\t}\n\t\t\t\tarc.setCategory(category);\n\t\t\t\tif (distConstraint) {\n\t\t\t\t\tarc.setSpeedTable(allOneSpeedTable);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tarc.setSpeedTable(speedTables.get(category));\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trow ++;\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "public T2 getSecond() {\n\t\treturn second;\n\t}", "private ClusterCombination checkAndDoJoinMultiPearson(ClusterCombination CC1, ClusterCombination CC2) {\n boolean doJoin = true;\r\n ArrayList<Cluster> CCList = new ArrayList<>(CC1.getClusters().size()+1); //list of output clusters for new CC if join is succesfull\r\n\r\n ArrayList<Cluster> CC1Clusters = CC1.getClusters();\r\n ArrayList<Cluster> CC2Clusters = CC2.getClusters();\r\n\r\n ArrayList<Cluster> LHS1 = CC1.getLHS();\r\n ArrayList<Cluster> LHS2 = CC2.getLHS();\r\n\r\n ArrayList<Cluster> RHS1 = CC1.getRHS();\r\n ArrayList<Cluster> RHS2 = CC2.getRHS();\r\n\r\n for(int i =0; i<CC1Clusters.size()-1; i++) {\r\n Cluster C1 = CC1Clusters.get(i);\r\n Cluster C2 = CC2Clusters.get(i);\r\n\r\n boolean overlap = checkClusterOverlap(C1, C2); // check if there is some overlap\r\n\r\n\r\n\r\n if(!overlap){ //the cluster in this position does not overlap, we don't need to join\r\n doJoin=false;\r\n break;\r\n }else{ // there is overlap, add the intersection of C1 and C2\r\n if(C1.getNPoints() <= C2.getNPoints()){\r\n CCList.add(C1);\r\n }else{\r\n CCList.add(C2);\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n if(doJoin){ // each cluster in the candidate (except the last) does overlap\r\n // so, according to apriori, we join -> return the overlapping clusters + the last clusters of CC1 and CC2\r\n Cluster lastCC1 = CC1Clusters.get(CC1Clusters.size()-1);\r\n Cluster lastCC2 = CC2Clusters.get(CC2Clusters.size()-1);\r\n if(lastCC1.getClusterId() <= lastCC2.getClusterId()){ // make sure to respect ordering of clusters within a candidate by ID. otherwise this could be designated as a duplicate\r\n CCList.add(lastCC1); CCList.add(lastCC2);\r\n }else{\r\n CCList.add(lastCC2); CCList.add(lastCC1);\r\n }\r\n\r\n ArrayList<Cluster> newLHS = new ArrayList<>();\r\n ArrayList<Cluster> newRHS = new ArrayList<>();\r\n for(int i = 0; i<LHS1.size(); i++){\r\n newLHS.add(CCList.get(i));\r\n }\r\n for(int i = LHS1.size(); i<CCList.size(); i++){\r\n newRHS.add(CCList.get(i));\r\n }\r\n\r\n ClusterCombination newCC = new MultiPearsonClusterCombination(newLHS, newRHS);\r\n newCC.checkAndSetMaxSubsetLowerBound(Math.max(CC1.getLB(), CC1.getMaxLowerBoundSubset()));\r\n newCC.checkAndSetMaxSubsetLowerBound(Math.max(CC2.getLB(), CC2.getMaxLowerBoundSubset()));\r\n\r\n return newCC;\r\n\r\n }else{\r\n return null;\r\n }\r\n }", "public static double GetCorrelation(Vector<Double> xVect, Vector<Double> yVect) {\n double meanX = 0.0, meanY = 0.0;\n for(int i = 0; i < xVect.size(); i++)\n {\n meanX += Math.abs(xVect.elementAt(i));\n meanY += Math.abs(yVect.elementAt(i));\n }\n\n meanX /= xVect.size();\n meanY /= yVect.size();\n\n double sumXY = 0.0, sumX2 = 0.0, sumY2 = 0.0;\n for(int i = 0; i < xVect.size(); i++)\n {\n sumXY += ((xVect.elementAt(i) - meanX) * (yVect.elementAt(i) - meanY));\n sumX2 += Math.pow(xVect.elementAt(i) - meanX, 2.0);\n sumY2 += Math.pow(yVect.elementAt(i) - meanY, 2.0);\n }\n\n return (sumXY / (Math.sqrt(sumX2) * Math.sqrt(sumY2)));\n }", "public int getSecondaryColor(int i) {\n return secondary[i];\n }", "public static Node LCA_BasedOnFindNode(Node r, int n1, int n2){\n if(r != null){\n if(r.data == n1 || r.data == n2)\n return r;\n\n Node left = LCA_BasedOnFindNode(r.left, n1, n2); \n Node right = LCA_BasedOnFindNode(r.right, n1, n2);\n\n if(left != null && right != null)\n return r;\n else if(left != null)\n return left;\n else if(right != null)\n return right;\n \n }\n return null;\n }", "private Similarity getSimilarity(DisjointSets<Pixel> ds, int root1, int root2)\n {\n return null; //TODO: remove and replace this line\n }", "public java.lang.String getC1()\n {\n return this.c1;\n }", "public double getCoverage2(ValueEdge edge) {\n\t\tPair<HitVertex> pair = this.getEndpoints(edge);\n\t\treturn Math.min(edge.getQueryCoverage(), edge.getSubjectCoverage()) * 1.0\n\t\t\t\t/ Math.max(pair.getFirst().getLength(), pair.getSecond().getLength());\n\t}", "@Override\n\tpublic Marca getMarca(int idmarc) {\n\t\treturn marcadao.getMarca(idmarc);\n\t}", "public AxisModel getSecondAxis() {\n return this.getTypedValue(SECOND_AXIS_PROPERTY_KEY, null);\n }", "@Override\r\n public Card getSecondCard() {\r\n return this.secondCard.equals(null) ? Card.NONE : this.secondCard;\r\n }", "public double[] getClassifier (double[] param1, double[] param2) {\n\t\tdouble[] vector1 = {-param1[2]+1, -param2[2]+1};\n\t\tdouble[] vector2 = {-param1[2]+2, -param2[2]+2};\n\t\t\n\t\tdouble[][]matrix = {{param1[0], param1[1]}, {param2[0], param2[1]}};\n\t\t\n\t\tRealMatrix coefficients1 = new Array2DRowRealMatrix(matrix, false);\n\t\tDecompositionSolver solver1 = new LUDecomposition(coefficients1).getSolver();\n\t\tRealVector constants1 = new ArrayRealVector(vector1, false);\n\t\tRealVector solution1 = solver1.solve(constants1);\n\t\t\n\t\tdouble[] output1 = solution1.toArray();\n\t\t\n\t\tRealMatrix coefficients2 = new Array2DRowRealMatrix(matrix, false);\n\t\tDecompositionSolver solver2 = new LUDecomposition(coefficients2).getSolver();\n\t\tRealVector constants2 = new ArrayRealVector(vector2, false);\n\t\tRealVector solution2 = solver2.solve(constants2);\n\t\t\n\t\tdouble[] output2 = solution2.toArray();\n\t\t\n\t\t//find third point that is located between two planes and has the same distance to both of them\n\n\t\tdouble x_1 = 0;\n\t\tdouble y_1 = 0;\n\t\tdouble z_1 = 0;\n\t\t\n\t\tdouble x_2 = 0;\n\t\tdouble y_2 = 0;\n\t\tdouble z_2 = 0;\n\t\t\n\t\tdouble y_final = 0;\n\t\tdouble x_final = 0;\n\t\t\n\t\t//samples\n\t\tdouble x = 5;\n\t\tdouble y = 5;\n\t\tdouble z = 5;\n\t\t\n\t\tboolean check =false;\n\t\t\n\t\t//first case\n\t\ty_1 = param1[0]*x_1-z+param1[2];\n\t\ty_2 = param2[0]*x_1-z+param2[2];\n\t\t\n\t\t\n\t\t\t\n\t\t\tif(y_1!=y_2) {\n\t\t\t\tif(y_1>y_2) {\n\t\t\t\t\ty_final = y_2+((y_1-y_2)/2);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ty_final = y_1+((y_2-y_1)/2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(x_1!=x_2) {\n\t\t\t\tif(x_1<x_2) {\n\t\t\t\t\tx_final = x_2+((x_1-x_2)/2);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tx_final = x_1+((x_2-x_1)/2);\n\t\t\t\t\t\n\t\t\t\t\tcheck=true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tSystem.out.println(x_final);\n\t\tSystem.out.println(y_final);\n\t\t\n\t\t\n\t\tdouble[][] matrix_final = {{output1[0], output1[1], 1}, {output2[0], output2[1], 1}, {x, y_final, 1}};\n\t\t\n\t\tif(check) {\n\t\t\tmatrix_final[3][1] = x_final;\n\t\t\tmatrix_final[3][2] = y;\n\t\t}\n\t\t\n\t\t\n\t\tdouble[] vector3 = {1, 2, z};\n\t\t\n\t\tRealMatrix coefficients3 = new Array2DRowRealMatrix(matrix_final, false);\n\t\tDecompositionSolver solver3 = new LUDecomposition(coefficients3).getSolver();\n\t\tRealVector constants3 = new ArrayRealVector(vector3, false);\n\t\tRealVector solution3 = solver3.solve(constants3);\n\t\t\n\t\tdouble[] output = solution3.toArray();\n\t\t\n\t\treturn output;\n\t}", "public S second() {\n return this.second;\n }", "public String[][] costructionCard(String endPath) {\r\n\t\tString[][] costructionCard = null;\r\n\r\n\t\ttry {// provo a leggere il file xml\r\n\t\t\tcostructionCard = costructionXml.readCardXml(endPath);\r\n\t\t} catch (XmlException e) {\r\n\t\t\tlogger.error(err + endPath, e);\r\n\t\t\tcostructionCard = null;\r\n\t\t}\r\n\r\n\t\treturn costructionCard;\r\n\t\t/*\r\n\t\t * array CostructionCard prototype coloumn 0: region coloumn 1: city\r\n\t\t * coloumn 2: bonus\r\n\t\t */\r\n\t}", "public double corr(DocumentVector other) {\n\t\tdouble mean1 = mean();\n\t\tdouble mean2 = other.mean();\n\t\t\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tdouble VX = 0, VY = 0;\n\t\tdouble VXY = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble deviate1 = this.getValueAsReal(i) - mean1;\n\t\t\tdouble deviate2 = other.getValueAsReal(i) - mean2;\n\t\t\t\n\t\t\tVX += deviate1 * deviate1;\n\t\t\tVY += deviate2 * deviate2;\n\t\t\tVXY += deviate1 * deviate2;\n\t\t}\n\t\t\n\t\tif (VX == 0 || VY == 0)\n\t\t\treturn Constants.UNUSED;\n\t\telse\n\t\t\treturn VXY / Math.sqrt(VX * VY);\n\t}", "private static void shift(RescueMap rm, int n1, int n2, int n3, int[] c){\n\t\t//get the normal to the first road\n\t\tlong n1y = rm.getX(n2) - rm.getX(n1);\n\t\tlong n1x = rm.getY(n1) - rm.getY(n2);\n\t\t//get normal to the second road\n\t\tlong n2y = rm.getX(n3) - rm.getX(n2);\n\t\tlong n2x = rm.getY(n2) - rm.getY(n3);\n\t\t//get length of each normal\n\t\tdouble len1 = Math.sqrt(n1y*n1y+n1x*n1x);\n\t\tdouble len2 = Math.sqrt(n2y*n2y+n2x*n2x);\n\n\t\tint d = 3000;//Math.max(rm.getRoad(n1,n2),rm.getRoad(n2,n3))*2000 +500;\n\n\t\tint x1 = rm.getX(n1) - (int)(n1x*d*1.0/len1);\n\t\tint x2 = rm.getX(n2) - (int)(n1x*d*1.0/len1);\n\t\tint y1 = rm.getY(n1) - (int)(n1y*d*1.0/len1);\n\t\tint y2 = rm.getY(n2) - (int)(n1y*d*1.0/len1);\n\t\tint x3 = rm.getX(n2) - (int)(n2x*d*1.0/len2);\n\t\tint x4 = rm.getX(n3) - (int)(n2x*d*1.0/len2);\n\t\tint y3 = rm.getY(n2) - (int)(n2y*d*1.0/len2);\n\t\tint y4 = rm.getY(n3) - (int)(n2y*d*1.0/len2);\n\n\t\tint[] intersect = intersection(x1,y1,x2,y2,x3,y3,x4,y4);\n\t\tif(intersect == null){\n\t\t\tc[0] -= (n1x/len1)*d;\n\t\t\tc[1] -= (n1y/len1)*d;\n\t\t}\n\t\telse{\n\t\t\tc[0] = intersect[0];\n\t\t\tc[1] = intersect[1];\n\t\t}\n\t}", "@RequestMapping(\"getCatalog2\")\n public List<PmsBaseCatalog2> getCatalog2(String catalog1Id){\n List<PmsBaseCatalog2> catalog2s=catalogService.getCatalog2(catalog1Id);\n return catalog2s;\n }", "private static List<List<Integer[]>> getDIOCrossConnect() {\n List<List<Integer[]>> pairs = new ArrayList<List<Integer[]>>();\n List<Integer[]> setA =\n Arrays.asList(\n new Integer[][] {\n {DIOCrossConnectA1, DIOCrossConnectA2},\n {DIOCrossConnectA2, DIOCrossConnectA1}\n });\n pairs.add(setA);\n\n List<Integer[]> setB =\n Arrays.asList(\n new Integer[][] {\n {DIOCrossConnectB1, DIOCrossConnectB2},\n {DIOCrossConnectB2, DIOCrossConnectB1}\n });\n pairs.add(setB);\n // NOTE: IF MORE DIOCROSSCONNECT PAIRS ARE ADDED ADD THEM HERE\n return pairs;\n }", "@Override\n public org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt[] getSecondPiePtArray() {\n return getXmlObjectArray(PROPERTY_QNAME[0], new org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt[0]);\n }", "@Override\n\tpublic T obtenerArco(Ciudad c1, Ciudad c2) {\n\t\treturn (T) getVertice(c1).getArco(c2).getEtiqueta();\n\t}", "@Override\r\n\tpublic Double getModel_fixed_correlation() {\n\t\treturn super.getModel_fixed_correlation();\r\n\t}", "private IMatrix cofactor() {\n\t\tint n = this.getColsCount();\n\t\tIMatrix algCompl = newInstance(n, n);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble value = Math.pow(-1, i + j);\n\t\t\t\tIMatrix sub = this.subMatrix(i, j, true);\n\t\t\t\tDouble det = sub.determinant();\n\t\t\t\tvalue *= det;\n\t\t\t\talgCompl.set(i, j, value);\n\t\t\t}\n\t\t}\n\t\treturn algCompl;\n\t}", "public int getRXC2Reps() { \r\n \treturn getReps(\"RXC2\");\r\n }", "@Test\n public void test52() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n Color color0 = (Color)combinedRangeCategoryPlot0.getDomainGridlinePaint();\n cyclicNumberAxis0.setAxisLineVisible(false);\n Line2D.Double line2D_Double0 = new Line2D.Double(0.0, (-1489.688195002), 0.0, 0.0);\n line2D_Double0.x1 = (-1489.688195002);\n line2D_Double0.y2 = 0.0;\n line2D_Double0.x1 = 2.0;\n double double0 = line2D_Double0.getY2();\n CategoryAxis categoryAxis0 = combinedRangeCategoryPlot0.getDomainAxis(1);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation((-2.147483648E9), 0.75);\n double double1 = point2D_Double0.getX();\n combinedRangeCategoryPlot0.configureRangeAxes();\n Range range0 = combinedRangeCategoryPlot0.getDataRange(cyclicNumberAxis0);\n }", "@Test\n public void testCorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable1 = null;\n IDoubleArray observable2 = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.correlation(M, observable1, observable2, timepoints);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setC2(java.lang.String c2)\n {\n this.c2 = c2;\n }", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public int getReferenceCHSecondEdgeId() {\r\n return referenceCHSecondEdgeId;\r\n }", "public Bar get_bar(Node node1, Node node2) {\n return this.bars.get(node1.name).get(node2.name);\n }", "public ConstVO findByCities(City city1, City city2)\n\t\t\tthrows FileNotFoundException, ClassNotFoundException,\n\t\t\tConstNotFoundException, IOException {\n\t\tif (city1 == city2) {\n\t\t\treturn new ConstVO(city1, city2, 30, 0.02);\n\t\t} else {\n\t\t\tmanageVOPO.addLog(LogType.DECISION_CONST);\n\t\t\tif (constDataService != null) {\n\t\t\t\tCity c1, c2;\n\t\t\t\tc1 = City.getCity1(city1, city2);\n\t\t\t\tc2 = City.getCity2(city1, city2);\n\t\t\t\tConstPO findPO = constDataService.findByCities(c1, c2);\n\t\t\t\tConstVO findVO = manageVOPO.poToVO(findPO);\n\t\t\t\treturn findVO;\n\t\t\t} else {\n\t\t\t\tthrow new RemoteException();\n\t\t\t}\n\t\t}\n\t}", "public double[][] fetchConfusionMatrix() \n\t{\n int[] rowSum = new int[10];\n double[][] CM = new double[10][10];\n \n for (int i = 0; i < 10; i++) \n {\n for (int j = 0; j < 10; j++) \n {\n rowSum[i] = rowSum[i] + confMatrix[i][j];\n }\n }\n\n for (int i = 0; i < 10; i++) \n {\n for (int j = 0; j < 10; j++) \n {\n CM[i][j] = 1.00 * confMatrix[i][j] / rowSum[i];\n }\n }\n return CM;\n }", "public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }", "GraphNode secondEndpoint() \n\t {\n\t\treturn this.secondEndpoint;\n\t\t \n\t }", "public RowSet getPermitCategLovVO2() {\n return (RowSet)getAttributeInternal(PERMITCATEGLOVVO2);\n }", "public Group getGroup_2() { return cGroup_2; }", "public Group getGroup_2() { return cGroup_2; }", "public Group getGroup_2() { return cGroup_2; }", "public Group getGroup_2() { return cGroup_2; }" ]
[ "0.61159176", "0.5588252", "0.5068477", "0.50682086", "0.504476", "0.50260764", "0.4925173", "0.48574618", "0.48563442", "0.47585577", "0.46447638", "0.46393287", "0.4611669", "0.4609982", "0.46046352", "0.45908642", "0.4567574", "0.4523898", "0.451993", "0.45152733", "0.4456495", "0.4389544", "0.43554893", "0.43270594", "0.43217596", "0.43069804", "0.43052885", "0.4287193", "0.4276619", "0.42717487", "0.42456767", "0.42403767", "0.42207554", "0.4209598", "0.41985878", "0.41959462", "0.41944855", "0.41935083", "0.4187514", "0.41846657", "0.41798747", "0.4166543", "0.41586575", "0.4155334", "0.41414163", "0.41395137", "0.41241968", "0.4114371", "0.4104996", "0.40993306", "0.40946266", "0.40810138", "0.4078097", "0.40773448", "0.4072536", "0.40621263", "0.40616548", "0.4059415", "0.4049482", "0.40382957", "0.40330398", "0.40301448", "0.40284812", "0.40283906", "0.4026323", "0.40240726", "0.40234673", "0.4016639", "0.40022945", "0.40000963", "0.39969122", "0.39959878", "0.39949194", "0.39892456", "0.39862967", "0.3973856", "0.3971185", "0.39677712", "0.39618284", "0.39616516", "0.3958113", "0.3953342", "0.39518875", "0.39518443", "0.39514554", "0.39473206", "0.3944444", "0.39425802", "0.39368105", "0.39351228", "0.39301485", "0.39278835", "0.39278734", "0.39262453", "0.39202204", "0.3918612", "0.39132607", "0.39132607", "0.39132607", "0.39132607" ]
0.5464244
2
Are we done? If so, print the solution Else For every possible girl, Possible girl = the next not used person AND who's number is greater than the person above it if in column 0 else greater than the person to the left Place girl If placement was successful, girlToSolve += 1 If girlToSolve == 15, then currentDay++, girlToSolve = 0 call solve(0) then solve(girlToSovle) remove(); when done with girls girlToSolve = 1 if girlToSolve < 0 girlToSolve = 14; currentDay = 1; and return;
public static int solve (int girlToSolve) { if (done) { printSolution(); throw exception; } else { for (each possible girl) { if (insert) { next call } remove } return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solveIt() {\n\t\tfirstFreeSquare.setNumberMeAndTheRest();\n\t}", "public boolean solve() {\r\n\r\n\tint nextBox = findLeast();\r\n\t//coors for the least box\r\n\tint c = nextBox % 10;\r\n\tint r = nextbox/10;\r\n\t\r\n\r\n\t//look for least\r\n\t//for the numbers in the least box\r\n\t//assignT == true \r\n\t//check the max; if max is 100; well done! return true\r\n\t//if its not then if (solve() == true) again\r\n\t//if \r\n }", "public boolean solve(){\n // Go through the grid\n for(int row = 0; row < 5; row++){\n for(int col = 0; col < 5; col++){\n // If there is a free space, try and fill it\n if(numberGrid[row][col] == 0){\n for(int num = 1; num <=5; num++){\n if(isValid(num, row, col)) { // if number is valid fill it in\n numberGrid[row][col] = num;\n if(solve()){\n return true;\n }\n else{\n numberGrid[row][col] = 0; // reset number if no solution from this point\n }\n }\n }\n return false;\n }\n }\n }\n return true;\n }", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "public void solvePuzzle(){\n\t\t// check to make sure pieces was set\n\t\tif(possiblePieces == null){\n\t\t\tSystem.out.println(\"PuzzleThree::solvePuzzle(): possiblePieces is not initialized!\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// initialize population with random sequences\n\t\tinitializePopulation();\n\t\t\n\t\t// print header of results\n\t\tSystem.out.printf(\"%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\t%23s\\n\", \"Current Generation\"\n\t\t\t\t, \"Most Fit Fitness\"\n\t\t\t\t, \"Most Fit Score\"\n\t\t\t\t, \"Most Fit Generation\"\n\t\t\t\t, \"Median Fit Fitness\"\n\t\t\t\t, \"Median Fit Score\"\n\t\t\t\t, \"Median Fit Generation\"\n\t\t\t\t, \"Worst Fit Fitness\"\n\t\t\t\t, \"Worst Fit Score\"\n\t\t\t\t, \"Worst Fit Generation\");\n\t\t\n\t\t\t\t// keep culling and reproducing until time is up\n\t\twhile(!clock.overTargetTime()){\n\t\t\t// every few generations print out generation, most fit, median fit, worst fit\n\t\t\tif(generation % 5000 == 0){\n\t\t\t\tCollections.sort(population);\n\t\t\t\tBuilding mostFit = population.get(POPULATION_SIZE-1);\n\t\t\t\tBuilding medianFit = population.get((int)(POPULATION_SIZE / 2) - 1);\n\t\t\t\tBuilding worstFit = population.get(0);\n\t\t\t\tSystem.out.printf(\"%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\t%23d\\n\", generation, \n\t\t\t\t\t\t\t\t\tmostFit.getFitness(), mostFit.getScore(), mostFit.getGeneration(),\n\t\t\t\t\t\t\t\t\tmedianFit.getFitness(), medianFit.getScore(), medianFit.getGeneration(),\n\t\t\t\t\t\t\t\t\tworstFit.getFitness(), worstFit.getScore(), worstFit.getGeneration());\n\t\t\t}\n\t\t\t\n\t\t\t// remove a portion of the population\n\t\t\tcullPopulation();\n\t\t\t\n\t\t\t// reproduce with the fittest more likely being parents\n\t\t\treproduce();\n\t\t\t\n\t\t\tgeneration++;\n\t\t}\n\n\t\t\n\t\t// print out information about most fit\n\t\tCollections.sort(population);\n\t\tCollections.reverse(population);\n\t\tBuilding mostFit = population.get(0);\n\n\t\tSystem.out.printf(\"\\n\\nBest in population is\\n\");\n\t\tSystem.out.printf(\"Sequence: \\n\");\n\t\tfor(int i = 0; i < mostFit.getList().length; i++){\n\t\t\tSystem.out.printf(\"\\t%s\\n\", mostFit.getList()[i].toString());\n\n\t\t}\n\n\t\tSystem.out.printf(\"\\nFitness: %d\\n\", mostFit.getFitness());\n\t\tSystem.out.printf(\"Score: %d\\n\", mostFit.getScore());\n\t}", "public boolean solve() {\n Cell openCell = getOpenCell();\n if (openCell == END) {\n return true;\n }\n for (int n = 1; n < 10; n++) {\n if (isSafe(openCell.row, openCell.col, n)) {\n add(openCell, n);\n if (solve()) {\n return true;\n }\n add(openCell, 0); // reset\n }\n }\n\n return false;\n }", "public void solve() {\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n\n // if the current Cell contains a mine, let's skip this iteration.\n if (this.cells[i][j].hasMine()) continue;\n\n // for all non-mine cells, set the default value to 0\n cells[i][j].setValue('0');\n\n // let's get all Cells surrounding the current Cell,\n // checking if the other Cells have a mine.\n // if there is a mine Cell touching the current Cell,\n // proceed to update the value of the current Cell.\n Cell topCell = get_top_cell(i, j);\n if (topCell != null && topCell.hasMine() == true) update_cell(i, j);\n\n Cell trdCell = get_top_right_diagnoal_cell(i, j);\n if (trdCell != null && trdCell.hasMine() == true) update_cell(i, j);\n\n Cell rightCell = get_right_cell(i, j);\n if (rightCell != null && rightCell.hasMine() == true) update_cell(i, j);\n\n Cell brdCell = get_bottom_right_diagnoal_cell(i, j);\n if (brdCell != null && brdCell.hasMine() == true) update_cell(i, j);\n\n Cell bottomCell = get_bottom_cell(i, j);\n if (bottomCell != null && bottomCell.hasMine() == true) update_cell(i, j);\n\n Cell bldCell = get_bottom_left_diagnoal_cell(i, j);\n if (bldCell != null && bldCell.hasMine() == true) update_cell(i, j);\n\n Cell leftCell = get_left_cell(i, j);\n if (leftCell != null && leftCell.hasMine() == true) update_cell(i, j);\n\n\n Cell tldCell = get_top_left_diagnoal_cell(i, j);\n if (tldCell != null && tldCell.hasMine() == true) update_cell(i, j);\n }\n }\n\n // print the solution to System out\n print_solution();\n }", "private void solve(int[][] solution, int row, int column) {\n\t\tif (row == boardsize) {\n\t\t\tSystem.out.println(\"Found solution\");\n\t\t\tsolutionfound = true;\n\t\t\tprintSolution(solution);\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"Finding solution for [\" + row + \"][\" + column + \"]\");\n\t\t//printSolution(solution);\n\n\t\t// only try a solution for the position that are not set from the beginning\n\t\t// try the numbers from 1 to 9 as a solution\n\t\tfor (int n = 1; n < 10; n++) {\n\t\t\tif (solutionfound) { break; }\n\t\t\t// no predefined number on the board\n\t\t\tif (board[row][column] == 0) {\n\t\t\t\tsolution[row][column] = n;\n\t\t\t}\n\t\t\tSystem.out.println(\"Trying with [\" + n + \"] for [\" + row + \"][\" + column + \"]\");\n\t\t\t// check whether we have found a solution\n\t\t\tif (isConsitent(solution)) {\n\t\t\t\tif (column == boardsize - 1) { // we have reached the end of a row\n\t\t\t\t\tsolve(solution, row + 1, 0); // continue on the next row\n\t\t\t\t} else {\n\t\t\t\t\tsolve(solution, row, column + 1); // we still work in the same row, advance the column\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// reset to zero for the backtracking case\n\t\t\t\tsolution[row][column] = 0;\n\t\t\t}\n\t\t}\n\t}", "private void genProb() {\n\t\tint row;\n\t\tint column;\n\t\tint removed1;\n\t\tint removed2;\n\n\t\tfor (int i = 0; i < DIFFICULTY / 2;) {\n\t\t\trow = rand.nextInt(9);\n\t\t\tcolumn = rand.nextInt(9);\n\t\t\twhile (problem[row][column] == 0 || (row == 4 && column == 4)) {\n\t\t\t\trow = rand.nextInt(9);\n\t\t\t\tcolumn = rand.nextInt(9);\n\t\t\t}\n\n\t\t\t// Clearing random boxes.\n\t\t\tremoved1 = problem[row][column];\n\t\t\tremoved2 = problem[8 - row][8 - column];\n\t\t\tproblem[row][column] = 0;\n\t\t\tproblem[8 - row][8 - column] = 0;\n\n\t\t\tcopy(problem, comp);\n\n\t\t\tif (!solve(0, 0, 0, comp)) { // Case of unsolvable.\n\t\t\t\t// Putting back original values.\n\t\t\t\tproblem[row][column] = removed1;\n\t\t\t\tproblem[8 - row][8 - column] = removed2;\n\t\t\t} else {\n\t\t\t\tif (unique()) { // Case of solution is unique.\n\t\t\t\t\ti++;\n\t\t\t\t} else { // Case of solution is not unique.\n\t\t\t\t\t// Putting back original values.\n\t\t\t\t\tproblem[row][column] = removed1;\n\t\t\t\t\tproblem[8 - row][8 - column] = removed2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static boolean solve(int[][] board) {\nfor (int x=0; x<9; x++) {\n for (int y=0; y<9; y++) {\nif (board[x][y] == 0) {\n \n // Try each possibile value in this space\n // and see if the rest of the puzzle can be filled in.\n for (board[x][y]=1; board[x][y]<=9; board[x][y]++) {\n if (isLegal(board) && solve(board)) {\n return true;\n }\n }\n \n // There is no value that we can put in the first\n // empty space that was found, so the puzzle is\n // unsolvable given the values put in up to this\n // point.\n board[x][y] = 0;\n return false;\n}\n }\n}\n \n// There were no empty spaces to fill in, so the\n// puzzle must be solved.\nreturn true;\n }", "public boolean scheduleAlg1(int currBoolReset, int maxGuidesPerTourInt, int maxToursPerGuideInt, int minGuidesPerTourInt, int minToursPerGuideInt){\n\t\t\r\n\t\tint numberOfWeeks = findNumWeeks();\r\n\t\tfor(int x = 0; x < numberOfWeeks; x++){\r\n\t\t\tfor(int y = 0; y < personList.size(); y++){\r\n\t\t\t\t//System.out.println(\"a\");\r\n\t\t\t\tpersonList.get(y).weeks.add(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"here it's \" + personList.get(0).weeks.size());\r\n\t\t\r\n\t\tint currentAvailabilityBool; //This is the index in the availability boolean array list that is currently relevant. \r\n\t\tint week = 0;\r\n\t\tboolean innerWhile, outerWhile;\r\n\t\tint currentAvailabilityInt, currentToursGivenInt; \r\n\t\tcurrentHighestTourCount = 0;\r\n\t\tif(currBoolReset >= toursInTheWeek){\r\n\t\t\tcurrBoolReset = 0;\t\t\t\r\n\t\t}\r\n\t\tfor(int i = 0; i < maxGuidesPerTourInt; i++){\r\n\t\t\t//System.out.println(\"guide: \" + i);\r\n\t\t\t//System.out.println(\"Adding guide \" + i);\r\n\t\t\tcurrentAvailabilityBool = currBoolReset; //Have to reset it each time we loop through. \r\n\t\t\t//System.out.println(\"OUTERMOST LOOP IS \" + i);\r\n\t\t\tfor(int j = 0; j < dayList.size(); j++){\r\n\t\t\t\tweek = getWeekFromDay(j);\r\n\t\t\t\t//System.out.println(\"Day: \" + j + \" Week: \" + week);\r\n\t\t\t\tif(!dayList.get(j).holiday){ //If the current day isn't a holiday.\r\n\t\t\t\t\t//Go through all the tours on the current day.\r\n\t\t\t\t\t//System.out.println(dayList.get(j).numberOfTours + \" tours today\");\r\n\t\t\t\t\tfor(int k = 0; k < dayList.get(j).numberOfTours; k++){\r\n\t\t\t\t\t\t//System.out.println(\"Looking at tour \" + k);\r\n\t\t\t\t\t\touterWhile = true;\r\n\t\t\t\t\t\tcurrentToursGivenInt = 0;\r\n\t\t\t\t\t\twhile(outerWhile){\r\n\t\t\t\t\t\t\tinnerWhile = true;\r\n\t\t\t\t\t\t\t//System.out.println(\"OUTER WHILE - Looking at guides who have given \" + currentToursGivenInt + \" tours\");\r\n\t\t\t\t\t\t\tcurrentAvailabilityInt = 0;\r\n\t\t\t\t\t\t\twhile(innerWhile){\r\n\t\t\t\t\t\t\t\t//System.out.println(\"INNER WHILE - Availability of \" + currentAvailabilityInt);\r\n\t\t\t\t\t\t\t\t//numOfAvailableSlots\r\n\t\t\t\t\t\t\t\t//Go through guides and find one with an availability matching the currentAvailabilityInt and a true value \r\n\t\t\t\t\t\t\t\t//at the currentAvailabilityBool. Set lookingForAGuide to true and add that guide to the current tour's list,\r\n\t\t\t\t\t\t\t\t//as long as all the requirements are met. \r\n\t\t\t\t\t\t\t\t//Remember to check if currentHighestTourCount needs to be incremented.\r\n\t\t\t\t\t\t\t\tfor(int m = 0; m < personList.size(); m++){\r\n\t\t\t\t\t\t\t\t\t//System.out.println(\"m is \" + m + \" and currentAvailabilityBool is \" + currentAvailabilityBool);\r\n\t\t\t\t\t\t\t\t\tif(personList.get(m).toursThisMonth == currentToursGivenInt && personList.get(m).numOfAvailableSlots == currentAvailabilityInt && personList.get(m).availabilityBooleans.get(currentAvailabilityBool))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t//Then we've found a guide that's got the minimum availability and is available at this time.\r\n\t\t\t\t\t\t\t\t\t\t//Check requirements, then add them if they're met. \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tif(personList.get(m).toursThisMonth < maxToursPerGuideInt){\r\n\t\t\t\t\t\t\t\t\t\t\t//Have to check if they've already given a tour that day. \r\n\t\t\t\t\t\t\t\t\t\t\tif(personList.get(m).checkIfScheduled(j) && personList.get(m).weeks.get(week) == false){ //Make sure they haven't been given a tour on this day before.\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).toursThisMonth++;\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).scheduledDays.add(j); //Add this day to the list. \r\n\t\t\t\t\t\t\t\t\t\t\t\tif(personList.get(m).toursThisMonth > currentHighestTourCount){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentHighestTourCount = personList.get(m).toursThisMonth;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Current highest tour count is \" + currentHighestTourCount);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tdayList.get(j).tourList.get(k).addGuide(personList.get(m));\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).tourList.add(dayList.get(j).tourList.get(k)); //Add the tour to that guide's list of tours.\r\n\t\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"We just added \" + personList.get(m).name);\r\n\t\t\t\t\t\t\t\t\t\t\t\tinnerWhile = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\touterWhile = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\tpersonList.get(m).weeks.set(week, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\tm = personList.size();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}//For m\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tcurrentAvailabilityInt++;\r\n\t\t\t\t\t\t\t\tif(currentAvailabilityInt > toursInTheWeek){\r\n\t\t\t\t\t\t\t\t\tinnerWhile = false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} //inner while\r\n\t\t\t\t\t\t\tcurrentToursGivenInt++;\r\n\t\t\t\t\t\t\tif(currentToursGivenInt > currentHighestTourCount){\r\n\t\t\t\t\t\t\t\t//We couldn't find a tour guide. Do we break somehow?\r\n\t\t\t\t\t\t\t\tif(i < minGuidesPerTourInt){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Returned here\");\r\n\t\t\t\t\t\t\t\t\treturn false; //Because we never reached the minimum guides per tour number.\r\n\t\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\t\t//Otherwise we can just skip this tour. \r\n\t\t\t\t\t\t\t\touterWhile = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} //outer while\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Here's where we update the counter for which availability bool we're looking at.\r\n\t\t\t\t\t\tcurrentAvailabilityBool++;\r\n\t\t\t\t\t\tif(currentAvailabilityBool >= toursInTheWeek){\r\n\t\t\t\t\t\t\tcurrentAvailabilityBool = 0; //Time to reset it.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//For k\r\n\t\t\t\t}//If not a holiday.\r\n\t\t\t\telse{\r\n\t\t\t\t\tfor(int k = 0; k < dayList.get(j).numberOfTours; k++){\r\n\t\t\t\t\t\tcurrentAvailabilityBool++;\r\n\t\t\t\t\t\tif(currentAvailabilityBool >= toursInTheWeek){\r\n\t\t\t\t\t\t\tcurrentAvailabilityBool = 0; //Time to reset it.\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}//For j\r\n\t\t}//For i\r\n\t\t//Check if minToursPerGuide has been met.\r\n\t\tif(!checkMinToursPerGuide(minToursPerGuideInt)){\r\n\t\t\tSystem.out.println(\"Min tours per guide not met\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true; //It worked!\r\n\t}", "public void trySolve() {\n\t\tboolean change = true;\n\t\twhile (change) {\n\t\t\tchange = boardSolve();\n\t\t}\n\t}", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "private static void solution() {\n for (int i = 0; i < n; i++) {\n Coord here = coords[i]; // start, end, dir, gen\n for (int j = 0; j < here.gen; j++) {\n // Rotate degree of 90.\n List<Pair> changed = rotate(here.coord, here.endPoint);\n boolean first = true;\n for(Pair p: changed){\n if(first) {\n here.endPoint = new Pair(p.x, p.y);\n first = false;\n }\n here.coord.add(new Pair(p.x, p.y));\n }\n }\n }\n // count the number of squares enclosing all angles with dragon curve\n for (int i = 0; i < n; i++) {\n for(Pair p: coords[i].coord)\n board[p.y][p.x] = true;\n }\n int cnt = 0;\n for (int i = 0; i < 100; i++)\n for (int j = 0; j < 100; j++)\n if(board[i][j] && board[i + 1][j] && board[i][j + 1] && board[i + 1][j + 1])\n cnt += 1;\n System.out.println(cnt);\n }", "public boolean solve(final int startRow, final int startCol) {\r\n\r\n // TODO\r\n // validate arguments: ensure position is within maze area\r\n\r\n if(mazeData [startRow][startCol] == WALL) {\r\n throw new IllegalArgumentException(\" we're in a wall buddy\");\r\n }\r\n else if (startRow > mazeData.length-1 || startCol > mazeData.length-1 ){\r\n throw new IllegalArgumentException(\" we're out of bounds \");\r\n }\r\n\r\n\r\n\r\n\r\n\r\n // TODO create local class for row/col positions\r\n class Position {\r\n private int row;\r\n private int col;\r\n\r\n // TODO add instance variables\r\n public Position(final int row, final int col) {\r\n this.row = row;\r\n this.col= col;\r\n }\r\n\r\n\r\n\r\n // TODO toString if desired\r\n public String toString() {\r\n return \"Row: \" + this.row + \"Column: \"+ this.col;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // define the stack (work queue)\r\n final var queue = Collections.asLifoQueue(new LinkedList<Position>());\r\n //Queue<Position> queue = new LinkedList<Position>(); // EXTRA CREDIT PART 2\r\n\r\n // put starting position in queue\r\n queue.add(new Position(startRow, startCol));\r\n\r\n\r\n\r\n\r\n\r\n // look for a way out of the maze from the current position\r\n while (!queue.isEmpty()) {\r\n\r\n\r\n final Position pos = queue.remove();\r\n\r\n // if this is a wall, then ignore this position (and skip the remaining steps of the loop body)\r\n if (mazeData [pos.row][pos.col]== WALL){\r\n continue; // jumps to next spot in que , by skipping to next iteration of loops by saying continue\r\n }\r\n\r\n\r\n // otherwise mark this place as visited (drop a breadcrumb)\r\n if (mazeData [pos.row][pos.col]== VISITED){\r\n continue; // jumps to next spot in que , by skipping to next iteration of loops by saying continue\r\n }\r\n else if(mazeData [pos.row][pos.col]== EMPTY){\r\n mazeData [pos.row][pos.col]= VISITED;\r\n }\r\n\r\n // if we're already on the perimeter, then this is a way out and we should return success (true) right away\r\n if (pos.row == 0|| pos.col ==0 || pos.row == mazeData.length-1 || pos.col == mazeData[0].length-1){\r\n mazeData[startRow][startCol] = START;\r\n return true;\r\n }\r\n\r\n queue.add(new Position(pos.row+1,pos.col ));//down\r\n queue.add(new Position(pos.row-1,pos.col ));//up\r\n queue.add(new Position(pos.row,pos.col-1 )); //left\r\n queue.add(new Position(pos.row, pos.col + 1)); //right\r\n\r\n\r\n }//end of while\r\n\r\n\r\n\r\n // mark starting position\r\n mazeData[startRow][startCol] = START;\r\n\r\n // if we've looked everywhere but haven't gotten out, then return failure (false)\r\n return false;\r\n }", "private boolean solve(int row, int col){\n\n if (col >= 9){\n return true;\n }\n\t\n\t\t\n\t\t// If the cell is not empty and the number is not preset\n\t\t//\tskip to the next number\n\t\tif( puzzle[row][col] != 0 ){\n\t\t\tif(row == 8){\n\t\t\t\tif(solve(0,col+1)){\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(solve(row+1,col)){\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t \n\t\t\n\t // Find a valid number for the empty cell\n\t\tfor( int num = 1; num <= MAX_VALUE; num++ ){\n\t\t\t\n\t\t if( validate(row,col,num) )\n\t\t {\n\t\t \tpuzzle[row][col] = num ;\n\t\t\n\t\t \t\n\t\t \t// next number\t\t \t\n\t \t\tif(row == 8){\n\t\t\t\t\tif(solve(0,col+1)){\n\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\tif(solve(row+1,col)){\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t \t\t\n\t \t\t// No solution found\n\t \t\tpuzzle[row][col] = 0;\n\t\t }\n\t\t}\n\t\treturn false;\t\t\t\n\t\n\t}", "public void generateSudoku(int difficulty){ \n\t\tfor(int i=0;i<9;i++){ // check row , i is row, j is column\n\t \tfor(int j=0;j<9;j++){\n\t \t\tsudokuDisplay[i][j]='.';\n\t \t}\n\t\t}\n\t\t// first use random r to generate the position of all 1\n\t\tRandom r=new Random();\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tint row = 0, col = 0;\n\t\t\t\t\tchar temp=sudokuDisplay[i * 3 + row][j * 3 + col];\n\t\t\t\t\t//board[i * 3 + row][j * 3 + col] = '1'; // init for recur\n\t\t\t\t\tdo {\n\t\t\t\t\t\tsudokuDisplay[i * 3 + row][j * 3 + col] = temp; // recur back\n\t\t\t\t\t\trow = r.nextInt(3);\n\t\t\t\t\t\tcol = r.nextInt(3);\n\t\t\t\t\t\ttemp=sudokuDisplay[i * 3 + row][j * 3 + col];\n\t\t\t\t\t\tsudokuDisplay[i * 3 + row][j * 3 + col] = '1'; // set new\n\t\t\t\t\t} while (!checkBlockValidSudoku((i * 3 + row) * 9 + (j * 3 + col), '1'));\n\t\t\t\t}\n\t\t\t}\n\t\t//== the idea to generate a random pattern sudoku is to solve the sudoku with only random 1 on the board ==//\n\t\t//== the solve method also use random variable to do recur and backtrack, make sure the sudoku is randomed ==//\n\t\tsolveSudoku(sudokuDisplay); \n\t\tfor(int i=0;i<9;i++){ // check row , i is row, j is column\n\t \tfor(int j=0;j<9;j++){\n\t \t\tsudokuOrigin[i][j]=sudokuDisplay[i][j]; // store the original suduku to sudokuOrigin\n\t \t}\n\t\t}\t\t\n\t\tdigHoleSudoku(difficulty); // dig hole with difficulty\t\t\n\t\tfor(int i=0;i<9;i++){ // check row , i is row, j is column\n\t \tfor(int j=0;j<9;j++){\n\t \t\tsudokuPlay[i][j]=sudokuDisplay[i][j]; // store the original suduku to sudokuOrigin\n\t \t}\n\t\t}\n\t}", "@Override\n \tpublic Solution solve() {\n \t\tfor (int i = 0; i < n; i++) {\n \t\t\tnest[i] = generator.getSolution();\n \t\t}\n \n \t\tfor (int t = 0; t < maxGeneration; t++) { // While (t<MaxGeneration) or\n \t\t\t\t\t\t\t\t\t\t\t\t\t// (stop criterion)\n \t\t\t// Get a cuckoo randomly (say, i) and replace its solution by\n \t\t\t// performing random operations;\n \t\t\tint i = r.nextInt(n);\n \t\t\tSolution randomNest = nest[i];\n \t\t\t//FIXME: randomNest = solutionModifier.modify(nest[i]);\n \n \t\t\t// Evaluate its quality/fitness\n \t\t\tint fi = randomNest.f();\n \n \t\t\t// Choose a nest among n (say, j) randomly;\n \t\t\tint j = r.nextInt(n);\n \t\t\tint fj = f[j];\n \n \t\t\tif (fi > fj) {\n \t\t\t\tnest[i] = randomNest;\n \t\t\t\tf[i] = fi;\n \t\t\t}\n \n \t\t\tsort();\n \t\t\t// A fraction (pa) of the worse nests are abandoned and new ones are built;\n\t\t\tfor(i = n-toAbandon; i<n; i++) {\n \t\t\t\tnest[i] = generator.getSolution();\n \t\t\t}\n \t\t\t\n \t\t\t// Rank the solutions/nests and find the current best;\n \t\t\tsort();\n \t\t}\n \n \t\treturn nest[0];\n \t}", "public void generateSolutionList() {\n // Will probably solve it in a few years\n while (!isSolved()) {\n RubiksMove move = RubiksMove.random();\n solutionMoves.add(move);\n performMove(move);\n }\n }", "public void solve() {\n \tsquares[0][0].fillInRemainingOfBoard();\n }", "public boolean solvable() {\n // TODO: Your code here\n // TODO: NICK\n\n\n int parity = 0;\n int blankRow = 0; // the row with the blank tile\n\n\n for (int i = 0; i < n*n; i++){\n if(tiles[i/n][i%n] == 0){\n blankRow = i/3;\n continue;\n }\n for (int j = i + 1; j < n*n; j++) {\n if (tiles[i/n][i%n] > tiles[j/n][j%n] && tiles[j/n][j%n] != 0) {\n parity++;\n }\n }\n }\n\n\n\n // solvability conditions:\n if (n % 2 == 0) { // even grid\n if (blankRow % 2 == 0) { // blank on odd row; counting from bottom\n return parity % 2 == 0;\n } else { // blank on even row; counting from bottom\n return parity % 2 != 0;\n }\n } else { // odd grid\n return parity % 2 == 0;\n }\n }", "private static Boolean placeGoals()\n\t{\n\t\t_PF=new AStarPathFinder(board);\n\t\tArrayList<Point> goalList = new ArrayList<Point>();\n\n\t\tint tempGoals=goals;\n\t\tint goalsPlaced=0;\n\n\t\tint i;\n\t\tint j;\n\n\t\tif(corner==0 || corner==1)\n\t\t\ti=0;\n\t\telse \n\t\t\ti=rows-1;\n\n\t\tif(corner==0 || corner==3)\n\t\t\tj=0;\n\t\telse\n\t\t\tj=columns-1;\n\n\t\tfor(;i<rows && i>-1;)\n\t\t{\n\t\t\tfor(;j<columns && j>-1;)\n\t\t\t{\n\n\t\t\t\tif(board[i][j]==Cells.FLOOR && !_PF.findAReversedWay(pcolumn, prow, j, i).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tgoalList.add(0, new Point(j, i));\n\t\t\t\t\ttempGoals--;\n\t\t\t\t\tgoalsPlaced++;\n\t\t\t\t}\n\n\t\t\t\tif(tempGoals<1)\n\t\t\t\t\tbreak;\n\n\t\t\t\telse if((goalsPlaced*goalsPlaced) > goals)\n\t\t\t\t{\n\t\t\t\t\tgoalsPlaced=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(corner==0 || corner==3)\n\t\t\t\t\tj++;\n\t\t\t\telse\n\t\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tif(tempGoals<1)\n\t\t\t\tbreak;\n\n\t\t\tgoalsPlaced=0;\n\n\t\t\tif(corner==0 || corner==1)\n\t\t\t\ti++;\n\t\t\telse \n\t\t\t\ti--;\n\n\t\t\tif(corner==0 || corner==3)\n\t\t\t\tj=0;\n\t\t\telse\n\t\t\t\tj=columns-1;\n\t\t}\n\n\t\tif(goalList.size()!=goals)\n\t\t\treturn false;\n\n\t\tfor(Point temp : goalList)\n\t\t{\n\t\t\tboard[(int)temp.getY()][(int)temp.getX()]=Cells.GOAL;\n\t\t}\n\n\t\treturn true;\n\t}", "void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }", "public static void check() {\n\t\twhile (!choiceOfNodes.isEmpty()) {\n\t\t\tNode node = choiceOfNodes.remove();\n\t\t\tif (node.isItGoal()) {\n\t\t\t\tSystem.out.println(\"\\nSolution: \\n\");\n\t\t\t\tprintTheBoards(node);\n\t\t\t\tSystem.out.println(\"No. of nodes generated in total: \" + nodesGenerated);\n\t\t\t\tSystem.out.println(\"No. of nodes expanded: \" + nodesOpened);\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tif (isItVisted(node)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tnodesOpened++;\n\t\t\t\t\tnodesCovered.add(node);\n\t\t\t\t\tstartOperation(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }", "public boolean generateSolution() {\n //first clear all filled in fields by user (they could be wrong)\n clearGame();\n\n //use solver\n SudokuSolver solver = new BacktrackSolver();\n return solver.solveSudoku(this);\n }", "public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static void solve(GridOld GridOld, List<GridOld> solutions) {\n // Return if there is already a solution\n if (solutions.size() >= 2) {\n return;\n }\n\n // Find first empty cell\n int loc = GridOld.findEmptyCell();\n\n // If no empty cells are found, a solution is found\n if (loc < 0) {\n solutions.add(GridOld.clone());\n return;\n }\n\n // Try each of the 9 digits in this empty cell\n for (int n = 1; n < 10; n++) {\n if (GridOld.set(loc, n)) {\n // With this cell set, work on the next cell\n solve(GridOld, solutions);\n\n // Clear the cell so that it can be filled with another digit\n GridOld.clear(loc);\n }\n }\n }", "public boolean solve(){\n\t\t//Solve the puzzle using backtrack method\n\t\treturn solve(0,0);\n\t}", "int solve(char[][] currentBoard) {\n\n System.err.println();\n System.err.println(\"R-Level: \" + recursionLevel);\n System.err.println(sideOnMove);\n printBoard(currentBoard);\n\n //generate all possible moves for the current board\n ArrayList<Move> moveList = genLegalMoves(currentBoard);\n //printMoveList(moveList);\n\n //if i dont have any moves, i've lost\n if(moveList.size() == 0) {\n System.err.println(sideOnMove + \" Ran out of moves\");\n return -1;\n }\n\n int maxValue = -1;\n int val;\n\n //run through all moves in the mostList\n for(int i = 0; i < moveList.size(); i++){\n\n //try this move\n char[][] newBoard = makeMove(currentBoard, moveList.get(i));\n System.err.println();\n System.err.println(\"Trying move: \");\n System.err.println(sideOnMove);\n printBoard(newBoard);\n System.err.println();\n\n //if this board is a winner\n if(winningBoard(newBoard)){\n System.err.println(\"We found a win for: \" + sideOnMove);\n //printBoard(newBoard);\n return 1;\n }\n else {\n //toggles sideOnMove\n switchSides();\n\n //to to solve this new board\n recursionLevel++;\n val = - solve(newBoard);\n switchSides();\n recursionLevel--;\n if(val == 1) return 1;\n\n if(i != moveList.size() - 1) {\n System.err.println(sideOnMove + \" Is trying a new approach\");\n }\n }\n\n maxValue = Math.max(maxValue, val);\n\n }\n\n\n return maxValue;\n }", "private boolean solveNext(){\n Stack<Integer[]> emptyPositions = findEmptyPositions();\n\n while (!emptyPositions.isEmpty()) {\n\n //get the top empty position from the stack.\n Integer[] position = emptyPositions.peek();\n int row = position[0];\n int col = position[1];\n\n for (int value = 1; value <= size; value++) {\n if (isPositionValid(row, col, value)){\n\n //value is valid, we can set it to the board.\n board[row][col] = value;\n\n //recursive backtracking\n if(solveNext()) {\n\n //if the value leads to a solution, pop it from the stack.\n emptyPositions.pop();\n return true;\n }\n else board[row][col] = 0;\n\n }\n }\n return false;\n }\n return true;\n }", "int removeObstacle(int numRows, int numColumns, List<List<Integer>> lot)\r\n {\r\n \tint m = 0;\r\n \tint n = 0;\r\n \tfor(List<Integer> rowList: lot) {\r\n \t\tfor(Integer num: rowList) {\r\n \t\t\tif(num == 9 ) {\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t\tn++;\r\n \t\t}\r\n \t\tm++;\r\n \t}\r\n \t// to store min cells required to be \r\n // covered to reach a particular cell \r\n int dp[][] = new int[numRows][numColumns]; \r\n \r\n // initially no cells can be reached \r\n for (int i = 0; i < numRows; i++) \r\n for (int j = 0; j < numColumns; j++) \r\n dp[i][j] = Integer.MAX_VALUE; \r\n \r\n // base case \r\n dp[0][0] = 1; \r\n \r\n for (int i = 0; i < lot.size(); i++) {\r\n \tList<Integer> columnList = lot.get(i);\r\n for (int j = 0; j < columnList.size(); j++) { \r\n \r\n // dp[i][j] != INT_MAX denotes that cell \r\n // (i, j) can be reached from cell (0, 0) \r\n // and the other half of the condition \r\n // finds the cell on the right that can \r\n // be reached from (i, j) \r\n if (dp[i][j] != Integer.MAX_VALUE && \r\n (j + columnList.get(j)) < numColumns && (dp[i][j] + 1) \r\n < dp[i][j + columnList.get(j)]\r\n \t\t && columnList.get(j) != 0) \r\n dp[i][j + columnList.get(j)] = dp[i][j] + 1; \r\n \r\n if (dp[i][j] != Integer.MAX_VALUE && \r\n (i + columnList.get(j)) < numRows && (dp[i][j] + 1) \r\n < dp[i + columnList.get(j)][j] && columnList.get(j) != 0) \r\n dp[i + columnList.get(j)][j] = dp[i][j] + 1; \r\n } \r\n } \r\n \r\n if (dp[m - 1][n - 1] != Integer.MAX_VALUE) \r\n return dp[m - 1][n - 1]; \r\n \r\n return -1; \r\n }", "public void joueDeuxHumains()\n\t{\n\t\tboolean fin = false;\n\t\tboolean result = false;\n\t\tint etoiles;\n\t\tint choix;\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint x2 = 0;\n\t\tint y2 = 0;\n\t\tString couleur;\n\t\tetoiles = initialiser();\n\t\twhile (!fin)\n\t\t{\n\t\t\tif (i % 2 == 0)\n\t\t\t{\n\t\t\t\tcouleur = \"bleu\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcouleur = \"rouge\";\n\t\t\t}\n\t\t\tSystem.out.println(\"1-Jouer\");\n\t\t\tSystem.out.println(\"2-Afficher une composante\");\n\t\t\tSystem.out.println(\"3-Vérifier si une case relie une composante\");\n\t\t\tSystem.out.println(\"4-Regarder s'il existe un chemin entre deux cases d'une couleur donnée\");\n\t\t\tSystem.out.println(\"5-Afficher le nombre minimum de cases entre deux cases données (x,y) et (z,t)\");\n\t\t\tSystem.out.println(\"6-Quitter\");\n\t\t\tchoix = clavier.nextInt();\n\t\t\tafficher(i);\n\t\t\tswitch (choix)\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"### Ajout d'une case pour jouer ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tresult = tableauPeres_[x][y].colorerCase(couleur);\n\t\t\t\t\t//System.out.println(existeCheminCases(getLesVoisins(x, y, couleur), tableauPeres_[x][y], couleur));\n\t\t\t\t\tif (getNbEtoiles(x, y, couleur) < getNbEtoiles(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), x, y);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(x, y, getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY());\n\t\t\t\t\t}\n\t\t\t\t\tpreparerScore(x, y, couleur);\n\t\t\t\t\tafficheScores(couleur);\n\t\t\t\t\tnombresEtoiles(x, y, couleur);\n\t\t\t\t\t++i;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"### Afficher une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tafficheComposante(x, y, couleur);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"### Tester si une case relie une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tif(!relieComposantes(x, y, couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case ne relie aucune composante.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case relie une ou plusieurs composante(s).\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"### Tester s'il existe un chemin entre deux cases données ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tif (existeCheminCases(tableauPeres_[x][y], tableauPeres_[x2][y2], couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il existe un chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il n'existe pas de chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tSystem.out.println(\"### Afficher nombre minimum de cases qui relie deux cases ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tSystem.out.println(relierCasesMin(x, y, x2, y2, couleur));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tfin = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (scoreJ2_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur bleu a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\t\t\telse if (scoreJ1_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur rouge a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\n\t\t}\n\t}", "public boolean bestFirstSearch() {\n\t\twhile(!soloution){\n\t\t\tif(open.isEmpty()){\n\t\t\t\tSystem.out.println(\"No more choices to explore\");\n\t\t\t\tSystem.out.println(\"SolutionId: \" + solutionId);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//chooses the most optimal X\n\t\t\tNode x = popNode();\n\t\t\tclosed.add(x);\n\t\t\tSystem.out.println(\"X:\\t\\t\" + x.state + \" \" + x.h + \" + \" + x.g + \" = \" + x.f);\n\t\t\t//checks if it is a soulution\n\t\t\tif(solution(x)){\n\t\t\t\tSystem.out.println(\"SOLUTION:\\t\" + x.state);\n\t\t\t\tSystem.out.println(\"nodes created: \" + open.size() + closed.size());\n\t\t\t\tprintSolution(x);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t//handles the possible moves from the state x\n\t\t\tsucc = generateAllSuccesors(x);\n\t\t\tfor (Node s : succ) {\n\t\t\t\t//if this state already exist, we will use the node keeping it instead\n\t\t\t\tNode old = findOld(s);\n\t\t\t\tif(old != null)\n\t\t\t\t\ts = old;\n\t\t\t\t//makes the new node a child of x\n\t\t\t\tx.kids.add(s);\n\t\t\t\t//if its a new state it will be inserted to open after evaluation\n\t\t\t\tif(!open.contains(s) && !closed.contains(s)){\n\t\t\t\t\tattachAndEval(s,x);\n\t\t\t\t\tinsert(s);\n\t\t\t\t}\n\t\t\t\t//if its an old node and x is a better parent it will be evalueted again.\n\t\t\t\telse if(x.g + arcCost(x, s) < s.g){\n\t\t\t\t\tattachAndEval(s, x);\n\t\t\t\t\tif(closed.contains(s)){\n\t\t\t\t\t\t//if its closed all children will be evaluated with the new score of \"s\"\n\t\t\t\t\t\tpropagatePathImprovements(s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean solve (int row, int column) {\n\n boolean done = false;\n \n if (valid (row, column)) {\n\n grid[row][column] = 3; // cell has been tried\n\n if (row == grid.length-1 && column == grid[0].length-1)\n done = true; // maze is solved\n else {\n done = solve (row+1, column); // down\n if (!done)\n done = solve (row, column+1); // right\n if (!done)\n done = solve (row-1, column); // up\n if (!done)\n done = solve (row, column-1); // left\n }\n if (done) // part of the final path\n grid[row][column] = 7;\n }\n \n return done;\n\n }", "@Override\n public Matching solve() {\n while (!matching.freeElements().isEmpty()) {\n /* get first element from the queue */\n Element element = problem.element(matching.freeElements().poll().elemId());\n\n /* get its preference element: looping through its list => by the level value */\n while (!element.preferences().isEmpty()) {\n Element pref = problem.element(element.preferences().poll().elemId());\n\n /* check if is an acceptable partner for current preference */\n if (!pref.accepts(element)) {\n continue;\n }\n\n /* verify the availability of its current preference */\n if (problem.isAvailable(pref.elemId())) {\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n matching.addPair(new Pair(element, pref));\n break;\n }\n else {\n /* if the preference is already taken, get the best one between current element and its current match */\n String currMatchName = matching.getElementPair(pref);\n Element currentMatch = pref.getIndex(currMatchName);\n Element elem = pref.getIndex(element.elemId());\n\n /* when current element is better than the current match */\n if (currentMatch.level() > elem.level()){\n if (matching.isFree(elem))\n matching.removeFreeElement(elem);\n\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n problem.element(currentMatch.elemId()).setAvailability(true);\n\n /* add the current pair to the Matching and the old match for the woman to the free list */\n matching.addPair(new Pair(problem.element(element.elemId()), problem.element(pref.elemId())));\n\n matching.addFreeElement(problem.element(currMatchName));\n break;\n }\n else {\n matching.addPair(new Pair(currentMatch, pref));\n }\n }\n }\n /* when man was rejected by all its preferences */\n if (element.preferences().isEmpty())\n element.setAvailability(true);\n }\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(Element::remakeList);\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(element -> matching.addFreeElement(problem.element(element.elemId())));\n\n return matching;\n }", "@Override\n public ColorRow breakerGuess(int pegs, int colors) {\n if (turnBlacks.size() == 0 && turnWhites.size() == 0) {\n ColorRow initialGuess = breakerInitialGuess(pegs, colors);\n gameGuesses.add(initialGuess);\n return initialGuess;\n }\n int generation = 0;\n boolean feasibleNotFull = true;\n initPopulation(pegs, colors);\n calculateFitness();\n sortFeasibleByFitness(fitness, population);\n while (feasibleCodes.isEmpty()) {\n generation = 0;\n while (feasibleNotFull && generation <= GENERATION_SIZE) {\n evolvePopulation(pegs, colors);\n calculateFitness();\n sortFeasibleByFitness(fitness, population);\n feasibleNotFull = addToFeasibleCodes();\n generation += 1;\n }\n\n }\n ColorRow guess = feasibleCodes.get((int) (Math.random() * feasibleCodes.size()));\n gameGuesses.add(guess);\n return guess;\n }", "public void solve() {\n /** To solve the traveling salesman problem:\n * Set up the graph, choose a starting node, then call the recursive backtracking method and pass it the starting node.\n */\n\n // We need to pass a starting node to recursive backtracking method\n Node startNode = null;\n\n // Grab a node, any node...\n for( Node n : graph.nodes() ) {\n startNode = n;\n break;\n }\n\n // Visit the first node\n startNode.visit();\n\n // Add first node to the route\n this.route[0] = startNode;\n\n // Pass the number of choices made\n int nchoices = 1;\n\n // Recursive backtracking\n explore(startNode, nchoices );\n\n\n }", "public static boolean solve(Problem inputProblem, int popLimit, double mutChance, int iterLimit) {\n\n // Check All the Input Parameter\n // popLimit: Make as Even\n int evenBase = 2;\n if (popLimit % evenBase != 0){\n popLimit = popLimit + 1;\n }\n // mutChance: in the Range of 0% and 100%\n if (mutChance < 0 || mutChance > 1){\n System.out.println(\"Invalid Mutation Chance: \" + mutChance);\n return false;\n }\n\n // Initialization\n Solution[] currentPop = initPopulation(inputProblem, popLimit);\n Solution[] generatedPop, nextPop;\n\n System.out.println(0 + \"\\t\" +0+ \"\\t\" +currentPop[0].distance);\n long time = System.nanoTime();\n\n // Loop For Counting Iteration\n for (int turn = 0; turn < iterLimit; turn++) {\n //System.out.println(currentPop[0].distance);\n // Initialization Next Generation\n generatedPop = new Solution[popLimit];\n\n // Loop for Generating Next Population\n Solution[] parent, offspring;\n for (int leftChild = popLimit; leftChild > 0; leftChild = leftChild - 2) {\n // Selection\n parent = rankSelection(currentPop);\n // CrossOver\n offspring = CrossOver_mapping(currentProblem, parent[0], parent[1]);\n // Prevent Duplicated Offspring\n if (haveDuplicated(generatedPop, offspring[0]) || haveDuplicated(generatedPop, offspring[1])) {\n leftChild = leftChild + 2;\n continue;\n }\n // Add Child into generatedPop\n generatedPop[leftChild - 1] = offspring[0];\n generatedPop[leftChild - 2] = offspring[1];\n }\n\n // Mutation For Each Solution\n Solution newElement;\n for (int index = 0; index < popLimit; index++){\n if(Math.random() < mutChance){\n // Use Local Search to Finish Mutation\n newElement = HillClimbing.solve_invoke(inputProblem, generatedPop[index]);\n // Prevent Duplicated Offspring\n if (!haveDuplicated(generatedPop, newElement)) {\n generatedPop[index] = newElement;\n }\n }\n }\n\n // Sort the Generated Array\n Arrays.sort(generatedPop);\n // Produce Next Generation\n nextPop = getTopSolutions(currentPop, generatedPop, popLimit);\n\n // Switch nextPop to currentPop\n currentPop = nextPop;\n System.out.println((System.nanoTime() - time) + \"\\t\" + (turn+1) + \"\\t\" + currentPop[0].distance);\n }\n // Store into the Static Variable\n optimalSolution = currentPop[0];\n return true;\n }", "private boolean solve(int i, int j, int pos, int[][] cells) {\n\t\tif (i == 9) {\n\t\t\ti = 0;\n\t\t\tif (++j == 9)\n\t\t\t\treturn true;\n\t\t}\n\t\tif (cells[i][j] != 0) // Skip filled cells\n\t\t\treturn solve(i + 1, j, pos, cells);\n\n\t\tfor (int k = 1; k <= 9; k++) {\n\t\t\tint val = k + pos;\n\t\t\tif (val > 9) {\n\t\t\t\tval = val - 9;\n\t\t\t}\n\t\t\tif (legal(i, j, val, cells)) {\n\t\t\t\tcells[i][j] = val;\n\t\t\t\tif (solve(i + 1, j, pos, cells))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tcells[i][j] = 0; // Reset on backtrack\n\t\treturn false;\n\t}", "private static Point findFarthestState(Cells[][] wallBoard, int column, int row)\n\t{\n\t\tint tries = 100;\n\t\tint farthest = 0;\n\t\tint farthestX = 0;\n\t\tint farthestY = 0;\n\t\tPoint farthestPos = new Point();\n\n\t\t_DF = new DeadlocksFinder(wallBoard);\n\n\t\tint[][] staticDLMap = _DF.getStaticDLMap();\n\n\t\tdo\n\t\t{\n\t\t\tint i = rn.nextInt(rows);\n\t\t\tint j = rn.nextInt(columns);\n\n\t\t\tif(board[i][j]==Cells.FLOOR && staticDLMap[i][j]!=1 && canStillReachEveryCrates(wallBoard, j, i))\n\t\t\t{\n\t\t\t\tArrayList<Point> path = _PF.findAReversedWay(column, row, j, i);\n\t\t\t\tint distance = path.size();\n\n\t\t\t\tif(distance==0)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tPoint ppos = new Point((int)path.get(path.size()-1).getX(), (int)path.get(path.size()-1).getY());\n\n\t\t\t\tif(distance > farthest)\n\t\t\t\t{\n\t\t\t\t\tfarthestX=j;\n\t\t\t\t\tfarthestY=i;\n\t\t\t\t\tfarthest=distance;\n\t\t\t\t\tfarthestPos=ppos;\n\t\t\t\t}\n\t\t\t}\n\t\t} while(tries-->0);\n\t\t\t\t\n\n\n\t\t/*for(int i=0; i<rows; i++)\n\t\t{\n\t\t\tfor(int j=0; j<columns; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR && staticDLMap[i][j]!=1)// && canStillReachEveryCrates(wallBoard, j, i))\n\t\t\t\t{\n\t\t\t\t\tArrayList<Point> path = _PF.findAReversedWay(column, row, j, i);\n\t\t\t\t\tint distance = path.size();\n\n\t\t\t\t\tif(distance==0)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tPoint ppos = new Point((int)path.get(path.size()-1).getX(), (int)path.get(path.size()-1).getY());\n\n\t\t\t\t\tif(distance > farthest)\n\t\t\t\t\t{\n\t\t\t\t\t\tfarthestX=j;\n\t\t\t\t\t\tfarthestY=i;\n\t\t\t\t\t\tfarthest=distance;\n\t\t\t\t\t\tfarthestPos=ppos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}*/\n\n\t\tplayerPos.add(farthestPos);\n\t\treturn new Point(farthestX, farthestY);\n\t}", "public void go()\n {\n\tSystem.out.println(_board.toString());\n\tboolean legalMove;\n\tScanner sc = new Scanner(System.in);\n\n\tSystem.out.println(\"Press 1 to turn on HeisenGo, Press any other number to proceed normally.\");\n\t_heisen = (sc.nextInt() == 1);\n\n\twhile(true)\n\t {\n\t\tint x, y;\n\n\t\tSystem.out.println(\"Enter X coodinate, enter -1 to quit and 0 to pass\");\n\t\tx = sc.nextInt();\n\t\tif(x == 0)\n\t\t _passes++;\n\t\telse if(x == -1)\n\t\t break;\n\t\telse\n\t\t _passes = 0;\n\n\t\tif(_passes == 2)\n\t\t break;\n\n\t\tif(x != 0)\n\t\t {\n\t\t\tSystem.out.println(\"Enter Y coordinate\");\n\t\t\ty = sc.nextInt();\n\n\t\t\tif(_heisen)\n\t\t\t {\n\t\t\t\tint distance = 0 ;\n\t\t\t\tint dx;\n\t\t\t\tint dy;\n\t\t\t\tboolean legal = false;\n\n\t\t\t\twhile(!legal)\n\t\t\t\t {\n\t\t\t\t\tdouble temp = (Math.random()*(64.2 + 13.1*4 + 4.2*8 + 0.2*12));\n\t\t\t\t\tif(temp > 64.2 + 13.1*4 + 4.2*8 + 0.2*12 - 0.0001)\n\t\t\t\t\t {\n\t\t\t\t\t\tdistance = 0;\n\t\t\t\t\t\tx = (int)(Math.random()*20);\n\t\t\t\t\t\ty = (int)(Math.random()*20);\n\t\t\t\t\t }\n\t\t\t\t\telse if(temp > (64.2 + 13.1*4 + 4.2*8))\n\t\t\t\t\t distance = 3;\n\t\t\t\t\telse if(temp > (64.2 + 13.1*4))\n\t\t\t\t\t distance = 2;\n\t\t\t\t\telse if(temp > 64.2)\n\t\t\t\t\t distance = 1;\n\t\t\t\t\tif(distance > 0)\n\t\t\t\t\t {\n\t\t\t\t\t\tdx = (int)(Math.random()*distance + 1);\n\t\t\t\t\t\tdy = distance - dx;\n\t\t\t\t\t\tif(Math.random() > 0.5)\n\t\t\t\t\t\t x = x + dx;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t x = x - dx;\n\t\t\t\t\t\tif(Math.random() > 0.5)\n\t\t\t\t\t\t y = y + dy;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t y = y - dy;\n\t\t\t\t\t }\n\t\t\t\t\tif(_turns%2 == 0)\n\t\t\t\t\t legal = _board.playStone(Affiliation.BLACK, x, y);\n\t\t\t\t\telse\n\t\t\t\t\t legal = _board.playStone(Affiliation.WHITE, x, y);\n\n\t\t\t\t }\n\t\t\t }\n\n\t\t\tif(!_heisen)\n\t\t\t {\n\t\t\t\tif(_turns%2 == 0)\n\t\t\t\t legalMove = _board.playStone(Affiliation.BLACK, x, y);\n\t\t\t\telse\n\t\t\t\t legalMove = _board.playStone(Affiliation.WHITE, x, y);\n\n\t\t\t\twhile(legalMove == false)\n\t\t\t\t {\n\t\t\t\t\tSystem.out.println(\"Illegal Move try again\");\n\n\t\t\t\t\tSystem.out.println(\"Enter X coodinate\");\n\t\t\t\t\tx = sc.nextInt();\n\t\t\t\t\tif(x == 9000)\n\t\t\t\t\t break;\n\t\t\t\t\tSystem.out.println(\"Enter Y coordinate\");\n\t\t\t\t\ty = sc.nextInt();\n\t\t\t\t\tif(_turns%2 == 0)\n\t\t\t\t\t legalMove = _board.playStone(Affiliation.BLACK, x, y);\n\t\t\t\t\telse\n\t\t\t\t\t legalMove = _board.playStone(Affiliation.WHITE, x, y);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t_turns++;\n\t\tSystem.out.println(_board.toString());\n\t }\n\tif(_passes == 2)\n\t {\n\t\tSystem.out.println(endGame());\n\t\tSystem.out.println(_board.toString());\n\t }\n }", "public boolean solve()\n\t{\n Position[] pos=path.getLastStep().neighbors();\n if (grid.isOnBoundary(path.getLastStep())&&grid.isOpen(path.getLastStep()))\n\t\treturn true;\n if (path.getLastStep()==start)\n return false;\n for (int i=0;i<4;i++)\n {\n if (pos[i]!=path.getLastStep() && grid.isOpen(pos[i]))\n path.extend(pos[i]);\n }\n if (grid.isBlocked(path.getLastStep())||grid.isRejected(path.getLastStep()))\n {\n path.backUp();\n solve();\n }\n return false;\n \n\t}", "private void solve() {\n\t\t//reads values from board\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tString value = field[i][k].getText();\n\t\t\t\tif(value.length() > 0){\n\t\t\t\t\tsudokuBoard.add(i, k, Integer.valueOf(value));\n\t\t\t\t} else {\n\t\t\t\t\tsudokuBoard.add(i, k, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(sudokuBoard.solve()){\n\t\t\t//presents the solution\n\t\t\tfor(int i = 0; i < 9; i++){\n\t\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\t\tfield[i][k].setText(String.valueOf(sudokuBoard.getValue(i, k)));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\talert.setTitle(null);\n\t\t\talert.setHeaderText(null);\n\t\t\talert.setContentText(\"The entered board has no solution\");\n\t\t\talert.showAndWait();\n\t\t}\n\t\t\n\t}", "public boolean solve(){\n\t\treturn solve(0,0);\n\t}", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "private static void solve(long[][][] ranks, String problem_name) {\n Solver solver = new Solver(\"StableMarriage\");\n\n //\n // data\n //\n System.out.println(\"\\n#####################\");\n System.out.println(\"Problem: \" + problem_name);\n\n long[][] rankWomen = ranks[0];\n long[][] rankMen = ranks[1];\n\n int n = rankWomen.length;\n\n //\n // variables\n //\n IntVar[] wife = solver.makeIntVarArray(n, 0, n - 1, \"wife\");\n IntVar[] husband = solver.makeIntVarArray(n, 0, n - 1, \"husband\");\n\n //\n // constraints\n // (the comments are the Comet code)\n // forall(m in Men)\n // cp.post(husband[wife[m]] == m);\n for (int m = 0; m < n; m++) {\n solver.addConstraint(solver.makeEquality(solver.makeElement(husband, wife[m]), m));\n }\n\n // forall(w in Women)\n // cp.post(wife[husband[w]] == w);\n for (int w = 0; w < n; w++) {\n solver.addConstraint(solver.makeEquality(solver.makeElement(wife, husband[w]), w));\n }\n\n // forall(m in Men, o in Women)\n // cp.post(rankMen[m,o] < rankMen[m, wife[m]] =>\n // rankWomen[o,husband[o]] < rankWomen[o,m]);\n for (int m = 0; m < n; m++) {\n for (int o = 0; o < n; o++) {\n IntVar b1 = solver.makeIsGreaterCstVar(\n solver.makeElement(rankMen[m], wife[m]).var(), rankMen[m][o]);\n\n IntVar b2 = solver.makeIsLessCstVar(\n solver.makeElement(rankWomen[o], husband[o]).var(), rankWomen[o][m]);\n solver.addConstraint(solver.makeLessOrEqual(solver.makeDifference(b1, b2), 0));\n }\n }\n\n // forall(w in Women, o in Men)\n // cp.post(rankWomen[w,o] < rankWomen[w,husband[w]] =>\n // rankMen[o,wife[o]] < rankMen[o,w]);\n for (int w = 0; w < n; w++) {\n for (int o = 0; o < n; o++) {\n IntVar b1 = solver.makeIsGreaterCstVar(\n solver.makeElement(rankWomen[w], husband[w]).var(), rankWomen[w][o]);\n IntVar b2 =\n solver.makeIsLessCstVar(solver.makeElement(rankMen[o], wife[o]).var(), rankMen[o][w]);\n solver.addConstraint(solver.makeLessOrEqual(solver.makeDifference(b1, b2), 0));\n }\n }\n\n //\n // search\n //\n DecisionBuilder db = solver.makePhase(wife, solver.INT_VAR_DEFAULT, solver.INT_VALUE_DEFAULT);\n\n solver.newSearch(db);\n\n //\n // output\n //\n while (solver.nextSolution()) {\n System.out.print(\"wife : \");\n for (int i = 0; i < n; i++) {\n System.out.print(wife[i].value() + \" \");\n }\n System.out.print(\"\\nhusband: \");\n for (int i = 0; i < n; i++) {\n System.out.print(husband[i].value() + \" \");\n }\n System.out.println(\"\\n\");\n }\n\n solver.endSearch();\n\n // Statistics\n // System.out.println();\n System.out.println(\"Solutions: \" + solver.solutions());\n System.out.println(\"Failures: \" + solver.failures());\n System.out.println(\"Branches: \" + solver.branches());\n System.out.println(\"Wall time: \" + solver.wallTime() + \"ms\");\n }", "public void solve(int r, int c)\r\n {\r\n if(game[r][c] > 0) //There is a number at (r, c)\r\n {\r\n move(r,c);\r\n }\r\n else //No number at (r, c) yet\r\n {\r\n for(int n = 1; n <= 9; n++)\r\n {\r\n //Check if n can be placed\r\n if(rowCheck(r, n) && colCheck(c, n) && blockCheck(r, c, n))\r\n {\r\n game[r][c] = n;\r\n move(r,c);\r\n game[r][c] = 0;\r\n }\r\n }\r\n }\r\n }", "public void findTour( int x, int y, int moves )\n {\n delay(50); //slow it down enough to be followable\n if (solved) System.exit(0);\n\n //primary base case: tour completed\n if (moves == (sideLength * sideLength)) {\n solved = true;\n }\n //other base case: stepped off board or onto visited cell\n if ( board[x][y] != 0 ) {\n return;\n }\n //otherwise, mark current location\n //and recursively generate tour possibilities from current pos\n else {\n board[x][y] = moves;\n System.out.println(this);\n delay(10); //uncomment to slow down enough to view\n\n /*======================================\n Recursively try to solve (find tour) from\n each of knight's available moves.\n . e . d .\n f . . . c\n . . @ . .\n g . . . b\n . h . a .\n ======================================*/\n // right and down\n findTour(x + 1, y + 2, moves + 1);\n // left and down\n findTour(x - 1, y + 2, moves + 1);\n // down and right\n findTour(x + 2, y + 1, moves + 1);\n // up and left\n findTour(x - 2, y - 1, moves + 1);\n // right and up\n findTour(x + 1, y - 2, moves + 1);\n // left and up\n findTour(x - 1, y - 2, moves + 1);\n // up and right\n findTour(x + 2, y - 1, moves + 1);\n // down and left\n findTour(x - 2, y + 1, moves + 1);\n\n //If made it this far, path did not lead to tour, so back up.\n board[x][y] = 0;\n System.out.println(this);\n }\n }", "private static void soldierCode() throws GameActionException {\n\t\tRobotInfo[] visibleEnemyArray = rc.senseHostileRobots(rc.getLocation(), 1000000);\n\t\tSignal[] incomingSignals = rc.emptySignalQueue();\n\t\tfor(Signal s:incomingSignals){\n\t\t\tint[] message = s.getMessage();\n\t\t\tif(s.getTeam()==rc.getTeam()){\n\t\t\t\tif(message!=null){\n\t\t\t\t\tif(message[0]%10==0){\n\t\t\t\t\t\tint x = message[1]/100000;\n\t\t\t\t\t\tint y = message[1]%100000;\n\t\t\t\t\t\tcenter= new MapLocation(x,y);\n\t\t\t\t\t\tint r = message[0]/10;\n\t\t\t\t\t\tradius=r;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint dist = rc.getLocation().distanceSquaredTo(center);\n\t\tif (visibleEnemyArray.length==0) {\n\t\t\tif (goal!=null&&(rc.senseRubble(goal)<100 || rc.senseRobotAtLocation(goal)!=null)) {\n\t\t\t\tgoal = null;\n\t\t\t\trc.setIndicatorString(0, \"done clearing\");\n\t\t\t}\t\n\t\t\tif(goal==null) {\n\t\t\t\tMapLocation[] locs = MapLocation.getAllMapLocationsWithinRadiusSq(rc.getLocation(), 8);\n\t\t\t\tArrayList<MapLocation> inside = new ArrayList<MapLocation>();\n\t\t\t\tfor(MapLocation loc: locs) {\n\t\t\t\t\tif (loc.distanceSquaredTo(center)<=1.5*radius) {\n\t\t\t\t\t\tinside.add(loc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(MapLocation l: inside) {\n\t\t\t\t\tif (rc.senseRubble(l)>99 && rc.senseRobotAtLocation(l)==null) {\n\t\t\t\t\t\tgoal = l;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tUtility.tryToMove(goal);\n\t\t\t}\n\t\t\t\n\t\t\tif (dist>radius && dist< 4*radius) { //Explore\n\t\t\t\tMapLocation travel = soldierFind();\n\t\t\t\tUtility.tryToMove(travel);\n\t\t\t}else{ //Move back\n\t\t\t\tMapLocation loc = center.add(center.directionTo(rc.getLocation()), (int)Math.pow(radius, 0.5)+1);\n\t\t\t\tUtility.tryToMove(loc);\n\t\t\t}\n\t\t} else { //Kite\n\t\t\tkite(visibleEnemyArray);\n\t\t}\n\t}", "@Override\n\tpublic Solution<TTPVariable> run(SingleObjectiveThiefProblem thief, IEvaluator evaluator, MyRandom rand) {\n\t\tTTPVariable var = TTPVariable.create(new TourOptimalFactory(thief).next(rand), Pack.empty());\n\t\tSolution<TTPVariable> currentBest = thief.evaluate(var);\n\t\t\n\n\t\twhile (evaluator.hasNext()) {\n\n\t\t\t// now take the tour and optimize packing plan\n\t\t\tSolution<Pack> nextPack = optPack(thief, evaluator, rand, currentBest.getVariable().getTour(), currentBest.getVariable().getPack());\n\t\t\t\n\t\t\tSolution<Tour> nextTour = optTour(thief, evaluator, rand, currentBest.getVariable().getTour(), nextPack.getVariable());\n\t\t\t\n\t\t\tTTPVariable next = TTPVariable.create(nextTour.getVariable(), nextPack.getVariable());\n\t\t\tSolution<TTPVariable> s = thief.evaluate(next);\n\t\t\t\n\t\t\t//System.out.println(nextPack);\n\t\t\t//System.out.println(currentBest);\n\t\t\t//System.out.println(\"----------------\");\n\t\t\t\n\t\t\t// update the best found solution\n\t\t\tif (SolutionDominator.isDominating(s, currentBest)) {\n\t\t\t\tcurrentBest = s;\n\t\t\t\t//System.out.println(\"YES\");\n\t\t\t}\n\t\t\tevaluator.notify(currentBest);\n\n\t\t}\n\n\t\treturn currentBest;\n\t}", "public String checkCheese() {\n\n\n int j = 1;\n\n while (j < _cheese.getY() + 2) {\n\n for (int i = 1; i < _cheese.getX() + 1; i++) {\n\n int i2 = i;\n int j2 = j;\n\n\n if (_cheese.getCellArray()[i2][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2].isVisited()) {\n int temp1 = i2;\n int temp2 = j2;\n _holeCount++;\n while ((\n\n (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited())\n\n )) {\n if (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2].setVisited(true);\n i2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n i2++;\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n j2++;\n\n }\n\n\n }\n _cheese.getCellArray()[temp1][temp2].setVisited(true);\n if (_holeCount > _biggestHole) {\n _biggestHole = _holeCount;\n }\n }\n _cheese.getCellArray()[i2][j2].setVisited(true);\n\n\n }\n\n\n j++;\n }\n\n\n return \"hole-count: \" + _holeCount + \"\\n\" +\n \"biggest hole edge: \" + _biggestHole;\n\n }", "public void makeMove() {\n ArrayList<Field> myFields = new ArrayList<>();\n for (Field[] fieldsRow : fields) {\n for (Field field : fieldsRow) {\n if(field != null && this.equals(field.getPlayer())) {\n myFields.add(field);\n }\n }\n }\n bestMove[0] = myFields.get(0);\n bestMove[1] = myFields.get(0);\n\n Random rand = new Random();\n for(Field destination : destinationFields) {\n if(canMove()) break;\n destinationField = destination;\n for (Field origin : myFields) {\n for(int i = 0; i < origin.getNeighbours().length; ++i) {\n Field neighbour = origin.getNeighbours()[i];\n if(neighbour != null) {\n if(neighbour.getPlayer() == null) {\n if(valueOfMove(origin, neighbour) > valueOfMove(bestMove[0], bestMove[1])) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n } else if(valueOfMove(origin, neighbour) == valueOfMove(bestMove[0], bestMove[1])) {\n if(rand.nextBoolean()) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n }\n }\n } else {\n Field nextField = neighbour.getNeighbours()[i];\n if(nextField != null) {\n correctJumpPaths(origin,null, origin);\n }\n }\n }\n }\n }\n }\n }", "public void rightGuess()\r\n\t{\r\n\t\tif(userWon())\r\n\t\t{\r\n\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"good job! you've correctly guessed the panel \\n would you like to guess again? if so enter yes, if you would like to add your tile to your code, reply no\\n\\n\");\r\n\t\tString answer = sc.next();\r\n\t\tif(answer.compareTo(\"yes\") == 0 || answer.compareTo(\"Yes\") == 0)\r\n\t\t{\r\n\t\t\tuserTurn(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(userRanPan.getValue() == -1)\r\n\t\t\t\tnewGame.getUserHand().addDash(false,userRanPan);\r\n\t\t\telse\r\n\t\t\t\tnewGame.getUserHand().addPanel(userRanPan,false);\r\n\r\n\t\t\tuserGuess.clear();\r\n\t\t\tslide(previousGuess,userRanPan);\r\n\r\n\t\t\tif(userWon() == false)\r\n\t\t\t\tcompTurn(false);\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//foo.repaint();\r\n\t}", "private int resolver(int x, int y, int pasos) {\n \n \tif(visitado[x][y]){ // si ya he estado ahi vuelvo (como si fuera una pared el sitio en el que ya he estado)\n \t\treturn 0;\n \t}\n \tvisitado[x][y]=true; // marcamos el sitio como visitado y lo pintamos de azul\n \tStdDraw.setPenColor(StdDraw.BLUE);\n \tStdDraw.filledCircle(x+0.5, y+0.5, 0.25);\n \tStdDraw.show(0);\n \tif(x==Math.round(N/2.0)&& y== Math.round(N/2.0)){// Si estoy en la posicion central cambio encontrado y lo pongo true.\n \t\ttotal=pasos;\n \t\tencontrado=true;\n \t\treturn total;\n \t}\n \tif(encontrado)return total;\n \t\n \tdouble random = Math.random()*11;//creo un numero aleatorio\n \t\n \tif(random<3){\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);// voy pal norte y vuelvo a empezar el metodo con un paso mas\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \t}\n \tif (random >=3 && random<6){\n \t\tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \t}\n \tif(random>=6 && random<9){\n \t\tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \t}\n \tif(random >=9){\n \t\tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \t}\n \t\n \tif(encontrado){\n \t\treturn total;\n \t}\n \tStdDraw.setPenColor(StdDraw.GRAY);// si no puedo ir a ningún lado lo pinto de gris \n \tStdDraw.filledCircle(x+0.5, y+0.5, 0.25);\n \tStdDraw.show(0);\n \treturn 0;// vuelvo al punto anterior \n \n }", "@Override\n\tprotected boolean checkFeasible(int r, int c, int v, int k, int dept) {\n\t\tboolean ok = super.checkFeasible(r, c, v, k, dept);\n\t\tif(!ok) return false;\n\t\t\n\t\tJuryInfo J = jury.get(r);\n\t\t\n\t\tfor(int rid = 1; rid <= rooms.size(); rid++) if(rid != v){\n\t\t\tint[] p = J.getJuryMemberIDs();\n\t\t\tfor(int j = 0; j < p.length; j++){\n\t\t\t\t\n\t\t\t\tif(p[j] > 0){\n\t\t\t\t\t//System.out.println(\"PartitionJuriesToRoomsTeacherNotMove::checkFeasible(\" + r + \",\" + c + \n\t\t\t\t\t\t\t\t//\",\" + v + \", occTeacherRoom[\" + rid + \"].get(\" + p[j] + \") = \" + occTeacherRoom[rid].get(p[j]));\n\t\t\t\t\tif(occTeacherRoom[rid].get(p[j]) > 0) return false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// check if the number of hust, nonHust assigned to room v exceed the upperbound\n\t\tint var_idx = 7*r+c;\n\t\tint nbHust = 0;\n\t\tint nbNonHust = 0;\n\t\tfor(int p = 0; p < 5; p++){\n\t\t\tif(x[r*7+p] > 0){\n\t\t\t\tint tid = x[r*7+p];\n\t\t\t\tif(p == 0 || p == 4){\n\t\t\t\t\tif(!nonHustOfRoom[v].contains(tid)) nbNonHust++;\n\t\t\t\t}else{\n\t\t\t\t\tif(!hustOfRoom[v].contains(tid)) nbHust++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(hustOfRoom[v].size() + nbHust > maxHustOfRoom.get(v)) ok = false;\n\t\t//if(!ok && k >= dept) System.out.println(\"TRY(\" + k + \"), var_idx = \" + var_idx + \", r = \" + r + \", c = \" + c + \", v = \" + v + \n\t\t\t\t//\", FALSE hustOfRoom[\" + v + \"].sz = \" + hustOfRoom[v].size() + \", nbHust = \" + nbHust);\n\t\tif(nonHustOfRoom[v].size() + nbNonHust > maxNonHustOfRoom.get(v)) ok = false;\n\t\t//if(!ok && k >= dept) System.out.println(\"TRY(\" + k + \"), var_idx = \" + var_idx + \", r = \" + r + \", c = \" + c + \", v = \" + v + \n\t\t\t\t//\", FALSE nonHustOfRoom[\" + v + \"].sz = \" + nonHustOfRoom[v].size() + \", nbNonHust = \" + nbNonHust);\n\t\t\n\t\treturn ok;\n\t}", "private void fixDancerPositions() {\n\t\tif (arrangePositionCrowdAuditorium()) return;\n\t\t\n\t\tSystem.out.println(\"*************** only one row stage **************\");\n\t\tint l = 1, r = 5;\n\t\twhile (l < r) {\n\t\t\tint mid = (l + r) >> 1;\n\t\t\tboolean ret = arrangePosition(mid);\n\t\t\tif (ret) r = mid; else l = mid + 1;\n\t\t}\n\t\tboredTime = Math.max(120 - 24 * (l - 1), 12);\n\t\tSystem.out.println(\"*************** numCol: \" + l + \"***************\");\n\t\tif (!arrangePosition(l)) {\n\t\t\tSystem.out.println(\"************** change to crowd auditorium *****************\");\n\t\t\tboredTime = 12;\n\t\t\tarrangePositionCrowdAuditorium();\n\t\t}\n\t}", "public boolean isSolvable() {\n Board twin = initial.twin();\n MinPQ<Node> mainQueue = new MinPQ<>(getComparator());\n MinPQ<Node> twinQueue = new MinPQ<>(getComparator());\n mainQueue.insert(new Node(initial, 0, null));\n twinQueue.insert(new Node(twin, 0, null));\n while (this.solution == null) {\n Node temp = mainQueue.delMin();\n if (temp.board.isGoal()) {\n this.solution = temp;\n return true;\n }\n Iterable<Board> nebrs = temp.board.neighbors();\n for (Board x : nebrs) {\n if (!x.equals(temp.previousNode.board)) {\n mainQueue.insert(new Node(x, temp.movesToBoard + 1, temp));\n }\n }\n Node temp2 = twinQueue.delMin();\n if (temp2.board.isGoal()) {\n this.solution = null;\n return false;\n }\n Iterable<Board> nebrs2 = temp2.board.neighbors();\n for (Board x : nebrs2) {\n if (!x.equals(temp2.previousNode.board)) {\n twinQueue.insert(new Node(x, temp2.movesToBoard + 1, temp2));\n }\n }\n }\n return false;\n }", "public void challengeMove(){\n int maxOutcome = -1;\n int returnIndex = -1;\n Hole lastHole;\n Hole selectedHole;\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n for(int i = 0; i < availableHoles.size(); i++){\n selectedHole = availableHoles.get(i);\n lastHole = holes[(selectedHole.getHoleIndex() + selectedHole.getNumberOfKoorgools() - 1) % 18];\n if(lastHole.getOwner() != nextToPlay){\n int numOfKorgools = lastHole.getNumberOfKoorgools() +1;\n if(numOfKorgools == 3 && !nextToPlay.hasTuz()){\n int otherTuzIndex = getPlayerTuz(Side.WHITE);\n if(otherTuzIndex == -1 || ((otherTuzIndex + 9) != lastHole.getHoleIndex())) {\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n if(numOfKorgools % 2 == 0 && numOfKorgools > maxOutcome){\n maxOutcome = numOfKorgools;\n returnIndex = selectedHole.getHoleIndex();\n }\n }\n }\n if(returnIndex <= -1){\n randomMove();\n return;\n }\n redistribute(returnIndex);\n }", "private boolean findSolution(int row) throws InterruptedException {\n \tif (stopped) return true;\n \t\n if (rowCounter++ == height) {\n \tSystem.out.println(\"DONE :D\");\n \tSystem.out.println(this);\n \treturn true;\n }\n \n // predict as much as possible for the next row, given the current state.\n \tmakePrediction(row);\n \t\n \t// for all possible next solutions\n while (nextPermutation(row)) {\n \tif (delay > 0) Thread.sleep(delay);\n \t// make sure the calculated permutation is valid. If so, recursively call this function again with the next row.\n \tif (matchesPrediction(row) && matchesPreprocessed(row)) {\n \t\tif (findSolution(row + 1)) return true;\n \t}\n }\n // if no of the solutions are valid: reset this row and backtrack.\n resetRow(row);\n rowCounter--;\n return false;\n }", "public void goToNextDay() {\n currDay ++;\n\n // at the beginning of a new day, all the unvisited POIs should be feasible\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "private void deadvance() {\n if (currColumn == 0) {\n if (currRow != 0) {\n currColumn = 8;\n currRow--;\n }\n } else {\n currColumn--;\n }\n if (!(currRow == 0 && currColumn == 0)) {\n if (startingBoard[currRow][currColumn] != 0) {\n deadvance();\n }\n }\n }", "public int[][] solveGrid(int[][] toBeSolved) {\n for (int i = 0; i < 100000; i++) {\n fillGrid(toBeSolved);\n if (IsValid.isValidSudoku(toBeSolved)) {\n solveability = i;\n return toBeSolved;\n }\n\n }\n return createEmptyGrid();\n }", "public void performMove() {\n\t\tfor (int x = 0; x <= size-1; x++)\n\t\t\tfor (int y = 0; y <= size-1; y++)\n\t\t\t\tlocalBoard[y][x] = 0;\n\t\t\n\t\t//reset the flag that indicates if a move has been found that decreases the heuristic\n\t\tfoundBetterMove = false;\n\t\t\n\t\t//fill in the appropriate heuristic values\n\t\tpopulateHillValues();\n\t\tArrayList<PotentialMove> myBestList = new ArrayList<PotentialMove>();\n\n\t\t//Find the square with the lowest heuristic value. this should really write the values to an array. \n\t\tint squareDifferential = -1;\n\t\t//String outValue = \"\";\n\t\tfor (int y = 0; y <= size-1; y++) {\n\t\t\tfor (int x = 0; x <= size-1; x++){\n\t\t\t\t//outValue = outValue + localBoard[y][x];\n\t\t\t\tif (squareDifferential < 0) //lowestSquareFound not found yet \n\t\t\t\t{\n\t\t\t\t\tif ((NQueens.queens[x] != y) && //set if the current square isn't already occupied by a queen\n\t\t\t\t\t\t\t(localBoard[NQueens.queens[x]][x] >= localBoard[y][x])) {\n\t\t\t\t\t\tif (localBoard[y][x] == localBoard[NQueens.queens[x]][x])\n\t\t\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, true));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, false));\n\t\t\t\t\t\tsquareDifferential = localBoard[NQueens.queens[x]][x] - localBoard[y][x];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((localBoard[NQueens.queens[x]][x] - localBoard[y][x]) > squareDifferential) { // find the square with the largest differential in value from the queen in the column\n\t\t\t\t\tmyBestList.clear();\n\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, false));\n\t\t\t\t\tsquareDifferential = localBoard[NQueens.queens[x]][x] - localBoard[y][x];\n\t\t\t\t}\n\t\t\t\telse if (((localBoard[NQueens.queens[x]][x] - localBoard[y][x]) == squareDifferential) && // the differential is equal to the current best differential\n\t\t\t\t\t\t(NQueens.queens[x] != y)) { // and isn't already occupied by a queen\n\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, true));\n\t\t\t\t}\n\t\t\t\t//else the square is higher, has a queen or isn't marginally better than the current queen's position in the row\n\t\t\t}\n\t\t\t//outValue = outValue + \"\\n\";\n\t\t}\n\t\t//JOptionPane.showMessageDialog(null, outValue);\n\t\t\n\t\tif (myBestList.isEmpty())\n\t\t\treturn;\n\t\t\n\t\tint listSize = myBestList.size();\n\t\tPotentialMove bestMove;\n\t\t\n\t\t//grab the non-Sideways moves first\n\t\tfor (int i = 0; i < listSize; i++) {\n\t\t\tif (!(myBestList.get(i).isSideways)) {\n\t\t\t\tbestMove = myBestList.get(i);\n\t\t\t\tfoundBetterMove = true;\n\t\t\t\tsidewaysMoves = 0;\n\t\t\t\tNQueens.queens[bestMove.xCoordinate] = bestMove.yCoordinate;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sidewaysMoves > MAXSIDEWAYSMOVES) { // hit MAXSIDEWAYSMOVES consecutive sideways moves, mark as unsolvable\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//all available moves sideways moves, let's select one randomly\n\t\tRandom generator = new Random();\n\t\tint randomElement = generator.nextInt(listSize);\n\t\t\n\t\tbestMove = myBestList.get(randomElement);\n\t\tfoundBetterMove = true;\n\t\tsidewaysMoves++;\n\t\tNQueens.queens[bestMove.xCoordinate] = bestMove.yCoordinate;\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tScanner s7 = new Scanner(System.in);\r\n\r\n\t\t\r\n\t\t\tString glavniGrad;\r\n\t\t\tint x;\r\n\t\t\tboolean dailine = true;\r\n\r\n\t\t\t\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Izaberite redni broj jedne od ponudjenih opcija: \");\r\n\t\t\tSystem.out.println(\"1. Francuska\");\r\n\t\t\tSystem.out.println(\"2. Italija\");\r\n\t\t\tSystem.out.println(\"3. Srbija\");\r\n\t\t\tSystem.out.println(\"4. Izlaz\");\r\n\t\t\tx = s7.nextInt();\r\n\r\n\t\t\tswitch (x) {\r\n\r\n\t\t\tcase 1:\r\n\t\t\t\tSystem.out.println(\"Koji je glavni grad Francuske?\");\r\n\t\t\t\tglavniGrad = s7.next();\r\n\t\t\t\tglavniGrad = glavniGrad.toUpperCase();\r\n\t\t\t\tif (glavniGrad.equals(\"PARIZ\"))\r\n\t\t\t\t\tSystem.out.println(\"Odgovor je tacan.\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"Odgovor nije tacan\");\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 2:\r\n\t\t\t\tSystem.out.println(\"Koji je glavni grad Italije?\");\r\n\t\t\t\tglavniGrad = s7.next();\r\n\t\t\t\tglavniGrad = glavniGrad.toUpperCase();\r\n\t\t\t\tif (glavniGrad.equals(\"RIM\"))\r\n\t\t\t\t\tSystem.out.println(\"Odgovor je tacan.\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"Odgovor nije tacan\");\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(\"Koji je glavni grad Srbije?\");\r\n\t\t\t\tglavniGrad = s7.next();\r\n\t\t\t\tglavniGrad = glavniGrad.toUpperCase();\r\n\t\t\t\tif (glavniGrad.equals(\"BEOGRAD\"))\r\n\t\t\t\t\tSystem.out.println(\"Odgovor je tacan.\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"Odgovor nije tacan\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\r\n\t\t\t\tdailine = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t} while (dailine);\r\n\t\ts7.close();\r\n\r\n\t\tSystem.out.println(\"KRAJ PROGRAMA\");\r\n\r\n\t}", "public boolean createPuzzle(int row, int col) {\n\t\n\t\t//If there are no more numbers to initialize, the puzzle has been solved\n\t\tif( row == 9) return true;\n\t\t\n\t\t//Get numbers 1-9 inclusive in a randomly ordered list\n\t\tint[] randomList = makeRandomList();\n\t\t//Default to not being solvable\n\t\tboolean works = false;\n\t\t\n\t\t//Go through the numbers in the list until one works\n\t\tfor( int x = 0; x < randomList.length; x++ ){\n\t\t\t//Assign a random number 1-9 inclusive to the element index\n\t\t\tpuzzle[row][col]=randomList[x];\n\t\t\t\n\t\t\t/*If the number is not in the row, column, or box, then it\n\t\t\t * adheres to the rules of sudoku and the program can proceed\n\t\t\t * to the next element*/\n\t\t\tif( !isInRow( row, col) && !isInCol( row, col ) && \n\t\t\t\t!isInBox( row, col ))\n\t\t\t{\n\t\t\t\tif( col + 1 == 9 ) works = createPuzzle( row + 1, 0 );\n\t\t\t\telse works = createPuzzle( row, col + 1);\n\t\t\t\tif( works ) return works;\n\t\t\t}\n\t\t}\n\t\t//If no number works, reset the index and go back\n\t\tif( !works ) puzzle[ row ][ col ] = 0;\n\t\treturn works;\n\t}", "public void solve(int x, int y) {\n\tif ( numQ == xLen ) \n\t solved = true; \n //Checks if you're able to place queen on current space\n\telse if ( board[x][y] == 0 ) {\n\t fill(x,y);\n\t board[x][y] = 9;\n\t numQ++;\n\t //Attempts to call solve for every spot on the board\n\t for ( int r =0; r < xLen; r++ ) {\n\t\tfor ( int c = 0; c < yLen; c++ ) {\n\t\t if (!solved) \n\t\t\tsolve(r,c);\n\t\t \n\t\t}\n\t }\n\t /* Though I got my code to work for the 5x5 example, I had \n\t trouble extending it to larger boards. Essentially my solve\n\t places a queen in the first non-\"threatened\" spot on the board\n\t available, but doesn't go back to try another configuration if\n\t the program runs into a dead-end. */\n\t}\n }", "static boolean solve(Point cur)\n\t{\n\t\t// if the point is null, we have reached the end\n\t\tif (cur == null)\n\t\t\treturn true;\n\n\t\t// if sudoku[cur] already has a given value,\n\t\t// simply continue on to next point\n\t\tif ( sudoku[cur.y][cur.x] != 0 )\n\t\t\treturn solve(getNextPoint(cur));\n\n\t\t// if sudoku[cur] doesn't have a value, try each value from 1 to 9\n\t\tfor ( int i = 1; i < 10 ; i++ )\n\t\t{\n\t\t\tif ( !isValid(cur, i) ) // if not valid for this point, move on to next value\n\t\t\t\tcontinue;\n\n\t\t\tsudoku[cur.y][cur.x] = i; // assign the value i to the current position\n\n\t\t\t// continue with next point, if solved, return,\n\t\t\t// else move on to the next possible value\n\t\t\tif ( solve(getNextPoint(cur)) ) // the entire magic lies here\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tsudoku[cur.y][cur.x] = 0; // go pick the next possible value\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private void fillWeek(Boolean canRepeatPoint) {\n Map<Long, List<Long>> workerPointMap = new LinkedHashMap<>();\n for (DayDTO day : week.getDays()) {\n // Generamos una lista con los trabajadores que ya han sido ocupados para este dia.\n List<Long> busyWorkersToday = checkBusyBreaks(day);\n for (TouristPointDTO touristPoint : touristPoints) {\n // Comprobamos que no existen turnos para este dia en este punto establecido ya.\n if (checkPointNotAssignedDay(day, touristPoint)) {\n // Comprobamos que existena algun trabajador con horas disponibles del equipo que necesitamos.\n if (haveAvailableHours(touristPoint)) {\n Iterator<Map.Entry<TouristInformerDTO, Double>> iterator = availableWorkersHours.entrySet().iterator();\n Map.Entry<TouristInformerDTO, Double> entry = iterator.next();\n // Si el trabajador no es correcto, busca el siguiente trabajador (si hay mas).\n while (iterator.hasNext()\n && !isCorrectWorker(workerPointMap, busyWorkersToday, touristPoint, entry, day,\n canRepeatPoint)) {\n entry = iterator.next();\n }\n // Si el trabajador es correcto lo asocia al punto ese dia.\n if (isCorrectWorker(workerPointMap, busyWorkersToday, touristPoint, entry, day,\n canRepeatPoint)) {\n associateShift(day, touristPoint, entry.getKey(), workerPointMap);\n // Actualizamos la lista de trabajadores ocupados para hoy\n busyWorkersToday.add(entry.getKey().getId());\n // Actualizamos las horas disponibles de esta semana para el trabajador\n entry.setValue(entry.getValue() - touristPoint.getTime());\n } else {\n errorPoints.add(new TouristPointDayProblemDTO(touristPoint, day));\n }\n } else {\n errorPoints.add(new TouristPointDayProblemDTO(touristPoint, day));\n }\n }\n }\n orderByAvailableHours();\n }\n }", "private static void greedyTime(Person curPerson, Map<String, Person> persons) throws FileNotFoundException {\n\t\tclass DisComparator implements Comparator<Person> {\n\t\t\tpublic int compare(Person a, Person b) {\n\t\t\t\treturn a.getEstDistTime() - b.getEstDistTime();\n\t\t\t} \n\t\t}\n\t\t\n\t\tPriorityQueue<Person> pqueue = new PriorityQueue<Person>(persons.size(), new DisComparator());\t\t\n\t\tpqueue.add(curPerson);\n\t\t\n\t\touterloop:\n\t\twhile(!pqueue.isEmpty()) {\n\t\t\tcurPerson = pqueue.poll();\n\t\t\t\n\t\t\tArrayList<Person> children = curPerson.getConnected();\n\t\t\tPerson child;\n\t\t\tfor(int i = 0; i < children.size(); i++) {\n\t\t\t\tchild = children.get(i);\n\t\t\t\tif(!child.getMarked()) {\n\t\t\t\t\tchild.setRoute(curPerson);\n\t\t\t\t\tchild.setMarked();\n\t\t\t\t\tif(child.getName().equals(\"Noah\")) {\t//check when generated\n\t\t\t\t\t\tcurPerson = child;\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t}\n\t\t\t\t\tpqueue.add(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\toutputResult(curPerson, \"Greedy.time.result.txt\");\n\t}", "private BDD nextGeneration(BDD generation){\n\t\tBDD res = this.factory.makeOne();\n\t\tAssignment assignment = generation.anySat();\n\n\n\t\t// be build the map/transition from board to board_p vars\n\t\tfor(int i = 0; i < this.dimension; i++)\n\t\t\tfor(int j = 0; j < this.dimension; j++){\n\n\n\t\t\t\t// it's a live cell, we remove it if we can\n\t\t\t\tif(assignment.holds(this.board[i][j])){\n\n\t\t\t\t\tif(trySolitude(i, j, assignment)){\t\n\t\t\t\t\t\tres.andWith(this.board[i][j].copy()); // evaluate T the var in board\n\t\t\t\t\t\tres.andWith(this.board_p[i][j].not()); // evaluate F the var in board_p\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(tryOverpopulation(i, j, assignment)){\n\t\t\t\t\t\tres.andWith(this.board[i][j].copy()); \n\t\t\t\t\t\tres.andWith(this.board_p[i][j].not()); \n\t\t\t\t\t}\n\n\t\t\t\t\telse if(tryBorder(i, j)){\n\t\t\t\t\t\tres.andWith(this.board[i][j].copy()); \n\t\t\t\t\t\tres.andWith(this.board_p[i][j].not()); \n\t\t\t\t\t}\n\n\t\t\t\t\telse{\n\t\t\t\t\t\tres.andWith(this.board[i][j].copy()); // evaluate T the var in board\n\t\t\t\t\t\tres.andWith(this.board_p[i][j].copy()); // evaluate T the var in board_p\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// it's a dead cell, we populate it if we can\n\t\t\t\telse{\n\n\t\t\t\t\tif(tryPopulatingDeadCell(i, j, assignment)){\n\t\t\t\t\t\tres.andWith(this.board[i][j].not()); \t// evaluate F the var in board\n\t\t\t\t\t\tres.andWith(this.board_p[i][j].copy()); // evaluate T the var in board_p\n\t\t\t\t\t}\n\n\t\t\t\t\telse\n\t\t\t\t\t\tres.andWith(this.board[i][j].biimp(this.board_p[i][j])); // vars equal\n\n\t\t\t\t}\n\t\t\t}\n\n\n\t\treturn res;\n\t}", "private boolean solve(int i, int j){\n\t\tif(j == 9){\n\t\t\tj = 0;\n\t\t\ti++;\n\t\t}\n\t\tif(i == 9){\n\t\t\treturn true;\n\t\t} else if(sudoku[i][j] != 0 && !check(i, j, sudoku[i][j])){\n\t\t\t\treturn false;\n\t\t} else if(sudoku[i][j] != 0){\n\t\t\t\treturn solve(i, j+1);\n\t\t} else {\n\t\t\tfor(int n = 1; n <= 9; n++){\n\t\t\t\tif(check(i, j, n)){\n\t\t\t\t\tsudoku[i][j] = n;\n\t\t\t\t\tif(!solve(i, j+1)){\n\t\t\t\t\t\tsudoku[i][j] = 0;\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void checkSurvival(Cell[][] cells, Cell[][] nextGeneration, int i,\n\t\t\tint j, int nrNeighbours) {\n\t\tif (cells[i][j].isAlive()) {\n\t\t\tif (nrNeighbours >= 2 && nrNeighbours <= 3)\n\t\t\t\tnextGeneration[i][j].setAlive(true);\n\t\t\telse\n\t\t\t\tnextGeneration[i][j].setAlive(false);\n\t\t} else {\n\t\t\tif (nrNeighbours == 3)\n\t\t\t\tnextGeneration[i][j].setAlive(true);\n\t\t\telse\n\t\t\t\tnextGeneration[i][j].setAlive(false);\n\t\t}\n\t}", "public static void SuddenDeath () {\n sudden_round = true;\r\n\r\n // USED AS A WORK AROUND TO THE ChooseNextPlayer() METHOD WHEN THERE ARE >2 PLAYERS\r\n int times_looped = 2;\r\n\r\n // TAKE THE TOP 2 PLAYERS (NOT MOST OPTIMAL WAY BUT DEFINITELY SIMPLER)\r\n String[] players_left = {player[player.length - 1].name, player[player.length - 2].name};\r\n\r\n // LET THE PLAYERS KNOW THAT THE SUDDEN DEATH ROUND HAS BEGUN\r\n System.out.println();\r\n System.out.println(\"===============================================\");\r\n System.out.println(\"SUDDEN DEATH HAS BEGUN!\");\r\n System.out.println(\"NOW IT IS TIME TO GUESS THE NUMBER!\");\r\n System.out.println(\"-----------------------------------------------\");\r\n System.out.println(players_left[0] + \" AND \" + players_left[1] + \"\\nGET READY!\");\r\n System.out.println(\"===============================================\");\r\n\r\n\r\n // RESET ANY NUMBERS BEFORE, SET THE FINAL NUMBER\r\n ResetPickedNumbers();\r\n SetNewNumber();\r\n\r\n while (sudden_round) {\r\n\r\n // TAKE TURNS BETWEEN THE TWO PLAYERS\r\n System.out.println(players_left[times_looped%2]+ \", IT IS YOUR TURN.\");\r\n System.out.print(\"Choose a number (0-9): \");\r\n\r\n // STORE THEIR CHOICE\r\n int choice = input.nextInt();\r\n\r\n if (choice == number) {\r\n // UPDATE (SO THAT THE WINNER IS IN THE LAST INDEX)\r\n player[player.length - 1].name = players_left[times_looped%2];\r\n\r\n // THEY PICKED THE WINNING NUMBER, END SUDDEN DEATH\r\n sudden_round = false;\r\n rounds++;\r\n }\r\n else if (choice < 0) {\r\n // THEY PICKED A NUMBER TOO LOW (BELOW RANGE)\r\n System.out.println(choice + \" was never an option...\");\r\n player[next_player].smart = true;\r\n System.out.println(\"Uh, OK...\");\r\n }\r\n else if (choice > 9) {\r\n // THEY PICKED A NUMBER TOO HIGH (ABOVE RANGE)\r\n System.out.println(choice + \" was never an option...\");\r\n player[next_player].smart = true;\r\n System.out.println(\"Uh, OK...\");\r\n }\r\n else if (picked[choice]) {\r\n // THEY PICKED A NUMBER THAT HAD ALREADY BEEN PICKED\r\n System.out.println(choice + \" has already been picked!\");\r\n player[next_player].smart = true;\r\n System.out.println(\"Uh, OK...\");\r\n }\r\n else {\r\n // REMEMBER CHOSEN NUMBER\r\n picked[choice] = true;\r\n\r\n // INCREMENT EACH TIME\r\n times_looped++;\r\n\r\n // LEAVE SOME SPACE...\r\n System.out.println();\r\n }\r\n\r\n }\r\n\r\n }", "protected boolean solve(int currentRow, int currentColumn) {\n \tint currentBlock = m.maze[currentRow][currentColumn];\t\t\t\t\t\t\t// get the current block that we are on\r\n \t\r\n if (m.isBlockEmpty(currentBlock)) {\t\t\t\t\t\t\t\t\t\t\t\t// make sure current block is empty\r\n \tm.maze[currentRow][currentColumn] = 2; \t\t\t\t\t\t\t\t// add this block to the path as a potential solution\r\n repaint();\r\n \r\n m.blocksTraversed++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// keep track of how many blocks were traversed over\r\n \r\n if (currentRow == m.rows-2 && currentColumn == m.columns-2) {\t\t\t\t// current block is bottom right, path has been found\r\n \tGUI.ta.append(m.blocksTraversed + \" blocks were traversed while solving the maze.\\n\");\r\n \tdouble percentage = (((double) m.blocksTraversed / (m.rows * m.columns))*100) * 2;\r\n DecimalFormat f = new DecimalFormat(\"##.00\");\r\n \tGUI.ta.append(\"This results in \" + f.format(percentage) + \"% of the maze being traveled.\\n\");\r\n \treturn true;\r\n }\r\n \r\n try { Thread.sleep(1); }\r\n catch (InterruptedException e) { }\r\n \r\n int topBlock = currentRow - 1;\t\t\t\t\t\t\t\t\t\t\t\t// block directly above the current block\r\n int leftBlock = currentColumn - 1;\t\t\t\t\t\t\t\t\t\t\t// block directly left of the current block\r\n int bottomBlock = currentRow + 1;\t\t\t\t\t\t\t\t\t\t\t// block directly below the current block\r\n int rightBlock = currentColumn + 1;\t\t\t\t\t\t\t\t\t\t\t// block directly right of the current block\r\n \r\n if (solve(topBlock, currentColumn) || solve(currentRow, leftBlock) ||\t\t// a solution was found\r\n \tsolve(bottomBlock, currentColumn) || solve(currentRow, rightBlock))\r\n \treturn true;\r\n \r\n m.maze[currentRow][currentColumn] = 4; \t\t\t\t\t\t\t\t\t// no solution from current block so make the block visited instead\r\n repaint();\r\n \r\n synchronized(this) {\r\n try { wait(1); }\r\n catch (InterruptedException e) { }\r\n }\r\n }\r\n return false;\r\n }", "public static void target() {\n Scanner escaner = new Scanner(System.in);\n Random aleatorio = new Random();\n int cantidadParticipantesTarget;\n int decisionTiro;\n int probabilidadesTiro;\n int[] punteosParticipantesTarget = new int[4];\n String[] nombresParticipantesTarget = new String[4];\n boolean decisionNumeroParticipantes;\n\n do {\n System.out.println(\"Bienvenido al juego de Target\");\n System.out.println(\"El juego consiste en tiros hacia un tablero de 5 zonas\");\n System.out.println(\"Zonas: 0,10,20,30,40 puntos respectivamente\");\n System.out.println(\"El juego se basa en probabilidades y la descripciones del tiro\");\n System.out.println(\"Puedes elegir el tipo que creas mas conveniente para ganar\");\n System.out.println(\"Gana el primero a llegar a 200 puntos, y si ambos llegan al mismo tiempo ambos ganan\");\n System.out.println(\"Intenta jugarlo\");\n System.out.println(\" xxxxxxxxxxxxxxx \");\n System.out.println(\" x x \");\n System.out.println(\" xx xxxxxxxxxxxxx xx \");\n System.out.println(\" xxx x x xxx \");\n System.out.println(\" xxxx x xxxxxxxxx x xxxx \");\n System.out.println(\" xxxxx x x x x xxxxx \");\n System.out.println(\" xxxxx x x x x x xxxxx \");\n System.out.println(\" xxxxx x x x x xxxxx \");\n System.out.println(\" xxxx x xxxxxxxxx x xxxx \");\n System.out.println(\" xxx x x xxx \");\n System.out.println(\" xx xxxxxxxxxxxxx xx \");\n System.out.println(\" x x \");\n System.out.println(\" xxxxxxxxxxxxxxx \");\n System.out.println(\"Cuantos jugadores participaran? (minimo 1 persona, maximo 4 personas)\");\n cantidadParticipantesTarget = Integer.parseInt(escaner.nextLine());\n\n //Ciclo y condicion que nos permite saber si la cantidad de jugadores estan establecidas en el limite\n if ((cantidadParticipantesTarget > 0) && (cantidadParticipantesTarget < 5)) {\n decisionNumeroParticipantes = true;\n } else {\n System.out.println(\"Parece que has salido del rango de participantes admitidos, vuelve a ingresar\");\n decisionNumeroParticipantes = false;\n }\n\n } while (decisionNumeroParticipantes == false);\n\n System.out.println(\"\\n\\n\\n\\n\");\n //ingresamos los nombres y los asignamos a nuestra variable global, depende de cuantos jugadores esten jugando esa sera su magnitud\n for (int contador = 0; contador < cantidadParticipantesTarget; contador++) {\n System.out.println(\"Ingrese el Nombre del Jugador No.-\" + (contador + 1));\n nombresParticipantesTarget[contador] = asignarNombres();\n }\n System.out.println(\"\\n\\n\\n\\n\");\n\n decisionNumeroParticipantes = true;\n\n//Ciclo que empieza el juego en General, no terminara hasta que decisionNumeroParticipantes = false\n while (decisionNumeroParticipantes == true) {\n\n //Este for nos indica los turnos de los participantes, con magnitud de cantidadParticipantesTarget que son los participantes establecidos\n for (int turno = 0; turno < cantidadParticipantesTarget; turno++) {\n System.out.println(\"\\n\\nTURNO DE \" + nombresParticipantesTarget[turno]);\n System.out.println(\"Tipo de Tiro Descripcion Resultado del Tiro\");\n System.out.println(\"(Ingresa el valor mostrado) \\n\");\n System.out.println(\" 1 Rapido con el dardo arriba Al centro o fallo completo\");\n System.out.println(\" del brazo \");\n System.out.println(\" 2 Controlado con el dardo arriba En zonas de 10,20 o 30 puntos\");\n System.out.println(\" del brazo\");\n System.out.println(\" 3 Con el dardo bajo el brazo En cualquier zona incluyendo fallo completo\");\n decisionTiro = Integer.parseInt(escaner.nextLine());\n\n //decision del tipo de tiro segun la descripcion\n //para decidir estos tiros utilizamos la variable probabilidadesTiro para determinar el destino del tiro y lo asignamos segun cada caso\n switch (decisionTiro) {\n\n case 1:\n System.out.println(nombresParticipantesTarget[turno] + \" ha usado tipo de tiro 1\");\n probabilidadesTiro = aleatorio.nextInt(2) + 1;\n if (probabilidadesTiro == 1) {\n System.out.println(\"FUE TIRO AL CENTRO, PERFECTO!\");\n System.out.println(\"Obtienes 40 puntos\");\n punteosParticipantesTarget[turno] += 40;\n } else {\n System.out.println(\"OH NO!, HAS FALLADO POR COMPLETO EL TIRO\");\n System.out.println(\"Obtienes 0 puntos\");\n }\n\n break;\n\n case 2:\n probabilidadesTiro = aleatorio.nextInt(3) + 1;\n System.out.println(nombresParticipantesTarget[turno] + \" ha usado tipo de tiro 2\");\n\n switch (probabilidadesTiro) {\n case 1:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 10 PUNTOS, BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 10;\n break;\n\n case 2:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 20 PUNTOS, MUY BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 20;\n break;\n\n default:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 30 PUNTOS, GENIAL!\");\n punteosParticipantesTarget[turno] += 30;\n }\n break;\n\n default:\n System.out.println(nombresParticipantesTarget[turno] + \" ha usado tipo de tiro 3\");\n probabilidadesTiro = aleatorio.nextInt(5) + 1;\n\n switch (probabilidadesTiro) {\n case 1:\n System.out.println(\"FUE TIRO AL CENTRO, PERFECTO!\");\n System.out.println(\"Obtienes 40 puntos\");\n punteosParticipantesTarget[turno] += 40;\n break;\n\n case 2:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 30 PUNTOS, GENIAL!\");\n punteosParticipantesTarget[turno] += 30;\n break;\n\n case 3:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 20 PUNTOS, MUY BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 20;\n break;\n\n case 4:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 10 PUNTOS, BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 10;\n break;\n\n default:\n System.out.println(\"OH NO!, HAS FALLADO POR COMPLETO EL TIRO\");\n System.out.println(\"Obtienes 0 puntos\");\n }\n }\n }\n\n//Despues de cada turno mostramos la tabla de jugadores, el punteo que llevan , y su estado es decir si han ganado o no\n System.out.println(\"\\n\\n\");\n System.out.println(\" Jugador Punteo Estado\");\n for (int contador = 0; contador < cantidadParticipantesTarget; contador++) {\n System.out.print(nombresParticipantesTarget[contador] + \" \" + punteosParticipantesTarget[contador]);\n\n if (punteosParticipantesTarget[contador] >= 200) {\n System.out.println(\" HA GANADO\");\n decisionNumeroParticipantes = false;\n asignarPunteo(1, nombresParticipantesTarget[contador]);\n } else {\n System.out.println(\" NO HA GANADO\");\n }\n\n }\n escaner.nextLine();\n\n }\n\n System.out.println(\"FIN DEL JUEGO\");\n\n }", "public void solve() {\n\t\tArrayList<Piece> pieceListBySize = new ArrayList<Piece>(pieceList);\n\t\tCollections.sort(pieceListBySize);\t// This is done since the order\n\t\t\t\t\t\t\t\t\t\t\t// of piece placements does not matter.\n\t\t\t\t\t\t\t\t\t\t\t// Placing larger pieces down first lets\n\t\t\t\t\t\t\t\t\t\t\t// pruning occur sooner.\n\t\t\n\t\t/**\n\t\t * Calculates number of resets needed for a game board.\n\t\t * A \"reset\" refers to a tile that goes from the solved state to\n\t\t * an unsolved state and back to the solved state.\n\t\t * \n\t\t * This is the calculation used for pruning.\n\t\t */\n\t\t\n\t\tArrayList<Integer> areaLeft = new ArrayList<Integer>();\n\t\tareaLeft.add(0);\n\t\tint totalArea = 0;\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\ttotalArea += pieceListBySize.get(i).numberOfFlips;\n\t\t\tareaLeft.add(0, totalArea);\n\t\t}\n\t\tint totalResets = (totalArea - gameBoard.flipsNeeded) / (gameBoard.goal + 1);\n\t\tSystem.out.println(\"Total Resets: \" + totalResets);\n\t\t\n\t\t/* \n\t\tint highRow = 0;\n\t\tint highCol = 0;\n\t\tint[][] maxDim = new int[2][pieceListBySize.size()];\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\tif (highRow < pieceListBySize.get(i).rows)\n\t\t\t\thighRow = pieceListBySize.get(i).rows;\n\t\t\t\n\t\t\tif (highCol < pieceListBySize.get(i).cols)\n\t\t\t\thighCol = pieceListBySize.get(i).cols;\n\t\t\t\n\t\t\tmaxDim[0][i] = highRow;\n\t\t\tmaxDim[1][i] = highCol;\n\t\t}\n\t\t*/\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tNode<GameBoard> currentNode = new Node<GameBoard>(gameBoard);\n\t\tStack<Node<GameBoard>> stack = new Stack<Node<GameBoard>>();\n\t\tstack.push(currentNode);\n\t\t\n\t\twhile (!stack.isEmpty()) {\n\t\t\tnodeCount++;\n\t\t\t\n\t\t\tNode<GameBoard> node = stack.pop();\n\t\t\tGameBoard current = node.getElement();\n\t\t\tint depth = node.getDepth();\n\t\t\t\n\t\t\t// Checks to see if we reach a solved state.\n\t\t\t// If so, re-order the pieces then print out the solution.\n\t\t\tif (depth == pieceListBySize.size() && current.isSolved()) {\n\t\t\t\tArrayList<Point> moves = new ArrayList<Point>();\n\t\t\t\t\n\t\t\t\twhile (node.parent != null) {\n\t\t\t\t\tint index = node.level - 1;\n\t\t\t\t\tint sequence = pieceList.indexOf(pieceListBySize.get(index));\n\t\t\t\t\tPoint p = new Point(current.moveRow, current.moveCol, sequence);\n\t\t\t\t\tmoves.add(p);\n\t\t\t\t\t\n\t\t\t\t\tnode = node.parent;\n\t\t\t\t\tcurrent = node.getElement();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tCollections.sort(moves);\n\t\t\t\tfor (Point p : moves) {\n\t\t\t\t\tSystem.out.println(p);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Nodes opened: \" + nodeCount);\n\t\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"Elapsed Time: \" + ((endTime - startTime) / 1000) + \" secs.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tPiece currentPiece = pieceListBySize.get(depth);\n\t\t\tint pieceRows = currentPiece.rows;\n\t\t\tint pieceCols = currentPiece.cols;\n\t\t\t\n\t\t\tPriorityQueue<Node<GameBoard>> pQueue = new PriorityQueue<Node<GameBoard>>();\n\t\t\t\n\t\t\t// Place piece in every possible position in the board\n\t\t\tfor (int i = 0; i <= current.rows - pieceRows; i++) {\n\t\t\t\tfor (int j = 0; j <= current.cols - pieceCols; j++) {\n\t\t\t\t\tGameBoard g = current.place(currentPiece, i, j);\n\t\t\t\t\t\n\t\t\t\t\tif (totalResets - g.resets < 0)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\t// Put in the temporary priority queue\n\t\t\t\t\tpQueue.add(new Node<GameBoard>(g, node));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Remove from priority queue 1 at a time and put into stack.\n\t\t\t// The reason this is done is so that boards with the highest reset\n\t\t\t// count can be chosen over ones with fewer resets.\n\t\t\twhile (!pQueue.isEmpty()) {\n\t\t\t\tNode<GameBoard> n = pQueue.remove();\n\t\t\t\tstack.push(n);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "private boolean checkSolutions() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tif (populationArray.get(i).getFitness() == 0) {\n\t\t\t\tsolution = populationArray.get(i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void calculateFitness() {\n\t\tint day1=this.getNumberOfHours()*this.getNumberOfClasses();\n\t\tint day2=2*day1;\n\t\tint day3=3*day1;\n\t\tint day4=4*day1;\n\t\tint day5=5*day1;\n\t\tTeacher_lesson temp=null;\n\t\t//day 1//\n\t\tHashSet<Integer> closedSet=new HashSet<Integer>();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<day1;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day1;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t\t\n\t\t//day2//\n\t\tclosedSet.clear();;\n\t\t\n\t\tfor(int i=day1;i<day2;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day2;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day3//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day2;i<day3;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day3;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//day4//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day3;i<day4;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day4;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\t\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day5//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day4;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t\t\t\n\t\t}\n\t\t\t/*if(temp.get_td_hour()<0){this.fitness=this.fitness-100;}//adunato na ginei giati o ka8igitis exei parapanw wres apo oti mporei na kanei//\n\t\t\t\telse if (temp.get_td_hour()==0){this.fitness=this.fitness-2;}//meiwnoume giati o ka8igitis 8a epivarin8ei oles tou tis wres thn idia mera//\n\t\t\t\telse{++this.fitness;}//kalh prosegisi*/\n\t\t}\n\t\t//*********************END OF DAILY EVALUATION*****************************//\n\t\t\n\t\t//**********************START OF WEEKLY EVALUATION************************//\n\t\t\n\t\tclosedSet.clear();\n\t\t\n\t int \t_weeklyhours = 1;\n\t \n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tif(!closedSet.contains(this.genes[i])){\n\t\t\t\t\n\t\t\t\n\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\t\t++_weeklyhours; }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t/*if(_weeklyhours>temp.get_tw_hour()){\n\t\t\t\tthis.fitness=this.fitness-100 ; //adunato na kanei parapanw wres ma8hma//\n\t\t\t}else\n\t\t\t\t{++this.fitness;}*/\n\t\t\tif(_weeklyhours<temp.get_tw_hour()){++this.fitness;}\n\t\t\tclosedSet.add(this.genes[i]);}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//*************END OF WEEKLY EVALUATION**********//\n\t\n\t\t//**START OF LESSON EVALUATION***//\n\t\tArraylistLesson set=new ArraylistLesson();\n\t\tclass_lid templ=null;\n\t\tTeacher_lesson tempj=null;\n\t\tint lid=0;\n\t\tString _class;\n\t\tint _classhours=1;\n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tlid=temp.get_lid();\n\t\t\t_class=temp.get_class();\n\t\t\ttempl=new class_lid(lid,_class);\n\t\t\tif(!set.contains(templ)){\n\t\t\t\t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\t\ttempj=getdata(this.genes[j]);{\n\t\t\t\t\t\tif(tempj!=null){\n\t\t\t\t\t\t\tif(temp.get_tid()==tempj.get_tid()){\n\t\t\t\t\t\t\t\tif(temp.get_lid()==tempj.get_lid()&&temp.get_class().equalsIgnoreCase(tempj.get_class())){\n\t\t\t\t\t\t\t\t\t++_classhours;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tint hours;\n\t\t\t\thours=temp.get_lhours();\n\t\t\t\n\t\tif(_classhours==hours){\n\t\t\t++this.fitness;\n\t\t}\n\t\tset.add(templ);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "public static void gameOfLife(int[][] board) {\n int[] neighbors = {0, 1, -1};\n\n int rows = board.length;\n int cols = board[0].length;\n\n // Iterate through board cell by cell.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n\n // For each cell, count the number of live neighbors.\n int liveNeighbors = 0;\n\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n\n if (!(neighbors[i] == 0 && neighbors[j] == 0)) {\n int r = (row + neighbors[i]);\n int c = (col + neighbors[j]);\n\n // Check the validity of the neighboring cell.\n // and whether it was originally a live cell.\n if ((r < rows && r >= 0) && (c < cols && c >= 0) && (Math.abs(board[r][c]) == 1)) {\n liveNeighbors += 1;\n }\n }\n }\n }\n\n // Rule 1 or Rule 3\n if ((board[row][col] == 1) && (liveNeighbors < 2 || liveNeighbors > 3)) {\n // -1 signifies the cell is now dead but originally was live.\n board[row][col] = -1;\n }\n // Rule 4\n if (board[row][col] == 0 && liveNeighbors == 3) {\n // 2 signifies the cell is now live but was originally dead.\n board[row][col] = 2;\n }\n }\n }\n\n // Get the final representation for the newly updated board.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (board[row][col] > 0) {\n board[row][col] = 1;\n } else {\n board[row][col] = 0;\n }\n }\n }\n }", "private boolean resolver(int[][] sudoku, Posicion p) {\n if (sudoku[p.getF()][p.getC()] == 0) {\r\n for (int n = 1; n <= 9; n++) {\r\n if (esValido(n, p.getF(), p.getC(), sudoku)) {\r\n sudoku[p.getF()][p.getC()] = n;\r\n if (resolver(sudoku, pSiguiente(p))) {\r\n return true;\r\n } else {\r\n sudoku[p.getF()][p.getC()] = 0;\r\n //continuamos el 'for' probando valores\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n //Si estamos ante una celda ocupada y...\r\n //si hemos llegado al final\r\n if (p.getF() == 8 && p.getC() == 8) {\r\n System.out.println(\"solucion:\");\r\n System.out.println(Arrays.deepToString(sudoku));\r\n return true;\r\n }\r\n //si no hemos llegado al final continuamos en la siguiente posicion\r\n return resolver(sudoku, pSiguiente(p));\r\n }", "public int labyrinth (int points, int difficulty, int life)\n {\n\tint mines = (4 * difficulty);\n\n\tfor (int i = 0 ; i < 5 ; i++)\n\t{\n\t for (int j = 0 ; j < 5 ; j++)\n\t\tminefield [i] [j] = 's';\n\t}\n\n\n\tfor (int s = 0 ; s < mines ; s++)\n\t{\n\t int k = (int) (Math.random () * 5);\n\t int t = (int) (Math.random () * 5);\n\t while (minefield [k] [t] == 'm')\n\t {\n\t\tk = (int) (Math.random () * 5);\n\t\tt = (int) (Math.random () * 5);\n\t }\n\t minefield [k] [t] = 'm';\n\t}\n\n\n\tint minenum = 0;\n\tint safenum = 0;\n\tint square;\n\twhile (safenum < 5 && minenum != 3)\n\t{\n\t grid ();\n\t do\n\t {\n\t\tSystem.out.println (\" The Trapped Room\");\n\t\tsquare = IBIO.inputInt (\"\\nEnter the square you want to pick: \");\n\t }\n\t while (square >= 25);\n\t int x = (square / 5);\n\t int y = (square % 5);\n\t if (minefield [x] [y] == 'm')\n\t {\n\t\tminenum++;\n\t\tpoints += 5;\n\t\tprintSlow (\"Ouch, you hit a jinx! Be careful, you only have \" + (3 - minenum) + \" before you perish!\\n\");\n\t\tminefield [x] [y] = 'b';\n\t }\n\t else if (minefield [x] [y] == 'b' || minefield [x] [y] == 'v')\n\t {\n\t\tprintSlow (\"Nice try Harry, but you can't pick the same square twice!\");\n\t }\n\t else\n\t {\n\t\tsafenum++;\n\t\tminefield [x] [y] = 'v';\n\t\tprintSlow (\"Good job, only \" + (5 - safenum) + \" until you're safe!\\n\");\n\t }\n\t if (minenum == 3)\n\t\treturn 3;\n\n\n\t}\n\n\tprintSlow (\"Good job, you defeated Voldemort and his graveyard puzzle!\");\n\n\n\treturn 1;\n }", "public static void main(String[] args) {\n //Calculate the optimal number of guesses\n int OPTIMALGUESSCNT = getlog(UPPERBOUND,10);\n\n //Begin game\n System.out.println(\"This is the High Low Game. You WILL have fun.\");\n\n //Print Name\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter your name or be annihilated: \");\n\n String name = validateInputStr();\n if (name.isEmpty()) {\n System.out.println(\"You didn't enter a name. You must be Nobody. Glad I'm not a cyclops, haha jk, unless...\\nHello Player 1.\");\n }\n System.out.printf(\"Hello %s\\n\", name);\n\n boolean playAgain = false;\n int total_guesses = 0;\n short num_games = 0;\n do { //setup each game\n int game_guesses = 0;\n int secretNum = getSecretNum(Integer.parseInt(\"BEEF\",16));\n int guess = -1;\n int prev_guess = -1;\n while (guess != secretNum) { //A single game seshion\n Scanner scanGuess = new Scanner(System.in);\n System.out.println(\"Guess a number between 0 and 100: \");\n guess = validateInput();\n ++game_guesses;\n if (guess > UPPERBOUND || guess <= 0) {\n System.out.println(\"Your guess wasn't even in the range given!\");\n }\n if (guess > secretNum) {\n if (prev_guess != -1 && guess >= prev_guess && prev_guess >= secretNum) {\n System.out.println(\"You incorrectly guessed even higher this time! Lower your angle of attack!\");\n }\n System.out.println(\"You guessed too high.\");\n prev_guess = guess;\n }\n else if (guess < secretNum) {\n if (prev_guess != -1 && guess <= prev_guess && prev_guess <= secretNum) {\n System.out.println(\"You incorrectly guessed even lower this time! Aim high airman!\");\n }\n System.out.println(\"You guessed too low.\");\n prev_guess = guess;\n }\n else {\n //The game has effectively ended -> List Win Possibilities\n selectWinOption(game_guesses, OPTIMALGUESSCNT);\n //Check whether to play again\n boolean goodInput = false;\n while (!goodInput) {\n System.out.println(\"Would you like to play again? Enter yes (y) or no (n): \");\n Scanner clearBuff = new Scanner(System.in);\n String raw_playAgain = \"\";\n raw_playAgain = validateInputStr();\n //check input (I didn't feel like using Patterns\n if (raw_playAgain.equalsIgnoreCase(\"yes\") || raw_playAgain.equalsIgnoreCase(\"y\")) {\n playAgain = true;\n goodInput = true;\n }\n else if (raw_playAgain.equalsIgnoreCase(\"no\") || raw_playAgain.equalsIgnoreCase(\"n\")) {\n playAgain = false;\n goodInput = true;\n }\n else {\n System.out.println(\"Enter valid input! Ahhhh.\");\n }\n } //end check play again input\n }\n }\n System.out.println(\"You had \" + game_guesses + \" guesses during this game.\\n\\n\");\n total_guesses += game_guesses;\n ++num_games;\n }while(playAgain);\n\n printEndDialogue(total_guesses, num_games, OPTIMALGUESSCNT);\n }", "public void solution() {\n\t\t\n\t}", "public void solucioInicial2() {\n int grupsRecollits = 0;\n for (int i=0; i<numCentres*helisPerCentre; ++i) {\n Helicopter hel = new Helicopter();\n helicopters.add(hel);\n }\n int indexHelic = 0;\n int indexGrup = 0;\n int places = 15;\n while (indexGrup < numGrups) {\n int trajecte[] = {-1,-1,-1};\n for (int i=0; i < 3 && indexGrup<numGrups; ++i) {\n Grupo grup = grups.get( indexGrup );\n if (places - grup.getNPersonas() >= 0) {\n places -= grup.getNPersonas();\n trajecte[i] = indexGrup;\n indexGrup++;\n\n }\n else i = 3;\n }\n Helicopter helicopter = helicopters.get( indexHelic );\n helicopter.addTrajecte( trajecte, indexHelic/helisPerCentre );\n places = 15;\n indexHelic++;\n if (indexHelic == numCentres*helisPerCentre) indexHelic = 0;\n }\n }", "public static Constraints twoDegreesOfFreedom(final Holder holderOrig,\n \t\t\t\t\t\t\t\t\t\t \t final boolean printOutput) throws IOException{\n\n //initialize the running solution and constraints\n Holder holder = new Holder(holderOrig);\n Constraints constraints = holder.getConstraints();\n CurrentSolution currentSolution = holder.getCurrentSolution();\n List<Cell> candidateCells = new ArrayList<Cell>();\n for (Cell candidateCell : currentSolution.getCells()) {\n if (!constraints.getCells().contains(candidateCell)) {\n candidateCells.add(candidateCell);\n }\n }\n\n //select two different cells at random\n Cell changedCell1;\n Cell changedCell2;\n int cellPos1 = (int) Math.round(Math.random()\n * (candidateCells.size() - 1));\n int cellPos2;\n int dim = constraints.getDim();\n do {\n cellPos2 = (int) Math.round(Math.random()\n * (candidateCells.size() - 1));\n changedCell1 = candidateCells.get(cellPos1);\n changedCell2 = candidateCells.get(cellPos2);\n } while ((cellPos1 == cellPos2) ||\n (changedCell1.getxCoord() == changedCell2.getxCoord()) ||\n (changedCell1.getyCoord() == changedCell2.getyCoord()) ||\n (changedCell1.getBox(dim) == changedCell2.getBox(dim))\n );\n\n //set up lists of possible values for the test cells\n List<Integer> candidateValues1 = new ArrayList<Integer>();\n for (Integer candidateVal : changedCell1.getValues()) {\n candidateValues1.add(candidateVal);\n }\n List<Integer> candidateValues2 = new ArrayList<Integer>();\n for (Integer candidateVal : changedCell2.getValues()) {\n candidateValues2.add(candidateVal);\n }\n\n //iterate through possible values of the two test cells, and test what\n //result each combination of values leads to\n for (Integer candidateVal1 : candidateValues1) {\n changedCell1.getValues().clear();\n changedCell1.getValues().add(candidateVal1);\n for (Integer candidateVal2 : candidateValues2) {\n changedCell2.getValues().clear();\n changedCell2.getValues().add(candidateVal2);\n if (printOutput) {\n \tSystem.out.println(\"Setting cell at x = \"\n \t\t\t+ (changedCell1.getxCoord() + 1)\n \t\t\t+ \" y = \" + (changedCell1.getyCoord() + 1)\n \t\t\t+ \" to value \" + candidateVal1.toString());\n \tSystem.out.println(\"Setting cell at x = \"\n \t\t\t+ (changedCell2.getxCoord() + 1)\n \t\t\t+ \" y = \" + (changedCell2.getyCoord() + 1)\n \t\t\t+ \" to value \" + candidateVal2.toString());\n }\n constraints = updateConstraints(constraints, changedCell1,\n changedCell1.getValues());\n constraints = updateConstraints(constraints, changedCell2,\n changedCell2.getValues());\n holder.setConstraints(constraints);\n\n //test whether current values of test cells lead to a final solution\n holder = iterativeUpdateConstraints(holder, false, printOutput);\n constraints = holder.getConstraints();\n if (constraints.getCells().size()\n == (constraints.getDimSq() * constraints.getDimSq())) {\n \treturn constraints;\n } else {\n constraints.getCells().remove(changedCell1);\n constraints.getCells().remove(changedCell2);\n }\n }\n }\n return null;\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public static void main(String[] args) {\n\n Map<String, Integer> nyt;\n nyt = new HashMap<String, Integer>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt(), m = scan.nextInt();\n scan.nextLine();\n int cont = 0;\n seen = new boolean[193];\n g = new ArrayList[193];\n\n for (int i = 0; i < 193; i++) {\n g[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n String[] value = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(value[0])) {\n nyt.put(value[0], cont);\n cont++;\n }\n if (!nyt.containsKey(value[1])) {\n nyt.put(value[1], cont);\n cont++;\n }\n\n int u = nyt.get(value[0]);\n int v = nyt.get(value[1]);\n g[u].add(v);\n }\n boolean ok;\n for (int i = 0; i < m; i++) {\n ok = true;\n String[] trump = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(trump[0]) || !nyt.containsKey(trump[1])) {\n System.out.println(\"Pants on Fire\");\n } else {\n\n dfs(nyt.get(trump[0]));\n if (seen[nyt.get(trump[1])]) {\n System.out.println(\"Fact\");\n ok = false;\n }\n\n if (ok) {\n seen = new boolean[193];\n dfs(nyt.get(trump[1]));\n if (seen[nyt.get(trump[0])]) {\n System.out.println(\"Alternative Fact\");\n } else {\n System.out.println(\"Pants on Fire\");\n }\n\n }\n\n }\n seen = new boolean[193];\n\n }\n\n }", "public void generateNeighborhood(TSPSolution s){\r\n\t\tint [] rounte = new int[problem.city_num+1];\r\n\t\tfor(int i=0;i<problem.city_num;i++) rounte[i] = s.route[i];\r\n\t\trounte[problem.city_num] = rounte[0];\r\n\t\tint [] pos = new int[problem.city_num];\r\n\t\tproblem.calculatePosition(rounte, pos);\r\n\t\tint pos1 = 0;\r\n\t\tint pos2 = 0;\r\n\t\tfor(int k=0;k<problem.city_num;k++){\r\n\t\t\tint i = k;\r\n\t\t\tpos1 = i;\r\n\t\t\tint curIndex = rounte[i];\r\n\t\t\tint nextIndex = rounte[i+1];\r\n\t\t\tArrayList<Integer> candidate = problem.candidateList.get(curIndex);\r\n\t\t\tIterator<Integer> iter = candidate.iterator();\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tint next = iter.next();\r\n\t\t\t\tpos2 = pos[next];\r\n\t\t\t\tint curIndex1 = rounte[pos2];\r\n\t\t\t\tint nextIndex1 = rounte[pos2+1];\r\n\t\t\t\tif(curIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex == curIndex1) continue;\r\n\t\t\t\tif(nextIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex1 == nextIndex) continue;\r\n\t\t\t\tint betterTimes = 0;\r\n\t\t\t\tTSPSolution solution = new TSPSolution(problem.city_num, problem.obj_num, -1);\r\n\t\t\t\tfor(int j=0;j<problem.obj_num;j++){\r\n\t\t\t\t\tint gain = problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+curIndex1] +\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+nextIndex*problem.city_num+nextIndex1] - \r\n\t\t\t\t\t\t\t(problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+nextIndex]+\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+curIndex1*problem.city_num+nextIndex1]);\r\n\t\t\t\t\tif(gain<0) betterTimes++;\r\n\t\t\t\t\tsolution.object_val[j] = s.object_val[j] + gain;\r\n\t\t\t\t}\r\n\t\t\t\tif(betterTimes==0) continue;\r\n\t\t\t\tsolution.route = s.route.clone();\r\n\r\n\t\t\t\tif(problem.kdSet.add(solution)){\r\n\t\t\t\t\tproblem.converse(pos1, pos2, solution.route, 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}", "public void solveGame() {\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\n\t\t\tif(!relaxAllControllables){\n\t\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\n\t\t\t\t\t\tcurrentSet.add(s);\n\t\t\t\t}\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 void solve() throws IOException {\r\n int T = nextInt();\r\n for (int t = 1; t <= T; t++) {\r\n int N = nextInt();\r\n int J = nextInt();\r\n \r\n out.format(\"Case #%d:%n\", t);\r\n \r\n boolean[] bitmask = new boolean[N - 2];\r\n int count = 0;\r\n while (count < J) {\r\n BigInteger[] factors = new BigInteger[9];\r\n boolean success = true;\r\n for (int base = 2; base <= 10; base++) {\r\n BigInteger value = BigInteger.ONE;\r\n BigInteger biBase = BigInteger.valueOf(base);\r\n \r\n for (int i = 0; i < N - 2; i++) {\r\n if (bitmask[i]) {\r\n value = value.add(biBase.pow(i + 1));\r\n }\r\n }\r\n value = value.add(biBase.pow(N - 1));\r\n \r\n if (value.isProbablePrime(10)) {\r\n success = false;\r\n break;\r\n } else {\r\n // Pollard rho\r\n BigInteger x = BigInteger.valueOf(2);\r\n BigInteger y = BigInteger.valueOf(2);\r\n BigInteger d = BigInteger.ONE;\r\n while (d.compareTo(BigInteger.ONE) == 0) {\r\n x = x.pow(2).add(BigInteger.ONE).mod(value);\r\n y = y.pow(2).add(BigInteger.ONE).mod(value)\r\n .pow(2).add(BigInteger.ONE).mod(value);\r\n d = x.subtract(y).gcd(value);\r\n }\r\n if (d.compareTo(value) != 0) {\r\n factors[base - 2] = d;\r\n } else {\r\n success = false;\r\n break;\r\n }\r\n }\r\n }\r\n if (success) {\r\n count++;\r\n StringBuilder sb = new StringBuilder(\"1\");\r\n for (int i = N - 3; i >= 0; i--) {\r\n if (bitmask[i]) {\r\n sb.append(1);\r\n } else {\r\n sb.append(0);\r\n }\r\n }\r\n sb.append(1);\r\n \r\n System.out.println(sb.toString() + \" \" + count);\r\n out.print(sb.toString());\r\n for (int i = 0; i < 9; i++) {\r\n out.print(\" \");\r\n out.print(factors[i].toString());\r\n }\r\n out.println();\r\n }\r\n \r\n // Increment bitmask\r\n for (int i = 0; i < N - 2; i++) {\r\n if (!bitmask[i]) {\r\n bitmask[i] = true;\r\n break;\r\n } else {\r\n bitmask[i] = false;\r\n }\r\n }\r\n }\r\n }\r\n }", "public static boolean diagonalJudge(String playerMarker, int row, int column){\n\n boolean victoryFlag = false;\n\n int subRow = 0;\n int subColumn = 0;\n int victoryCounter = 0;\n\n // Checking first Diagonal\n // North West\n\n subRow = row;\n subColumn = column;\n\n // Store the player's latest move's coordinates\n\n winList.add(subColumn);\n winList.add(subColumn);\n\n while ( subRow >= 0 && subColumn >= 0 && !victoryFlag ){\n\n subRow--;\n subColumn--;\n\n if ( subRow >= 0 && subColumn >= 0 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n // South East\n\n subRow = row;\n subColumn = column;\n\n while ( subRow < 6 && subColumn < 7 && !victoryFlag ){\n\n subRow++;\n subColumn++;\n\n if ( subRow < 6 && subColumn < 7 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n if ( !victoryFlag ){\n winList.clear(); // reset the list, if no one won\n }\n else{\n winDirection = \"Left Diagonal\";\n }\n\n // Checking the other diagonal\n // North East\n\n victoryCounter = 0;\n subRow = row;\n subColumn = column;\n winList.add(subRow);\n winList.add(subColumn);\n\n while ( subRow >= 0 && subColumn < 7 && !victoryFlag ){\n\n subRow--;\n subColumn++;\n\n if ( subRow >= 0 && subColumn < 7 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n winDirection = \"Right Diagonal\";\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n // South East\n\n subRow = row;\n subColumn = column;\n\n while ( subRow < 6 && subColumn >= 0 && !victoryFlag ){\n\n subRow++;\n subColumn--;\n\n if ( subRow <= 5 && subColumn >= 0 ){\n\n if ( gameBoard[subRow][subColumn].equals(playerMarker) ){\n winList.add(subRow);\n winList.add(subColumn);\n victoryCounter++;\n\n if ( victoryCounter == 3){\n winDirection = \"Right Diagonal\";\n victoryFlag = true;\n }\n }\n\n else{\n break;\n }\n }\n }\n\n if ( !victoryFlag ){\n winList.clear();\n }\n\n return victoryFlag;\n }", "Place getNextPlace(Place next)\n{\n if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){\n soln.append(\"E\");\n visited.add(next.goEast());\n //nearby.clear();\n return next.goEast();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n \n //nearby.clear();\n return null;\n} \n}", "private void goForSolution(MinPQ<Node> hq) {\n\t\tNode current = hq.delMin();\n\t\tif (current.board.isGoal()) {\n\t\t\tif (hq == orig) {\n\t\t\t\tresult = new ArrayList<>();\n\t\t\t\twhile (current != null) {\n\t\t\t\t\tresult.add(0, current.board);\n\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsolved = true;\n\t\t\treturn;\n\t\t}\n\n\t\tfor (Board neighbour : current.board.neighbors()) {\n\t\t\tif (current.parent == null || !neighbour.equals(current.parent.board)) {\n\t\t\t\thq.insert(new Node(neighbour, current.moves + 1, current));\n\t\t\t}\n\t\t}\n\t}", "private int solve(int r, int c, int result){\n if(animate){\n\n clearTerminal();\n System.out.println(this);\n\n wait(150);\n }\n\n //COMPLETE SOLVE\n if (maze[r][c] == 'E'){\n return result;\n } else {\n maze[r][c] = '@';\n }\n for (int i = 0; i < moves.length; i++){\n int rowI = moves[i].x;\n int colI = moves[i].y;\n if (maze[r + rowI][c + colI] == ' ' || maze[r + rowI][c + colI] == 'E'){\n int solvler = solve(r + rowI, c + colI, result + 1);\n if (solvler != -1){\n return solvler;\n }\n }\n }\n maze[r][c] = '.';\n return -1; //so it compiles\n }", "public static void main(String[] args) {\n\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint row =0,col = 0;\r\n\t\tint user = -1;\r\n\t\t\r\n\t\twhile (user != 0 && user != 1 && user != 2) {\r\n\t\t\tSystem.out.println(\"\\n************************************\");\r\n\t\t\tSystem.out.println(\"\\nEnter difficulty level\");\r\n\t\t\tSystem.out.println(\"Press 0 for BEGINNER 9*9 cells and 10 mines\");\r\n\t\t\tSystem.out.println(\"Press 1 for INTERMEDIATE 16*16 cells and 40 mines\");\r\n\t\t\tSystem.out.println(\"Press 2 for ADVANCED 24*24 cells and 99 mines\\n\");\r\n\t\t\tuser = input.nextInt();\r\n\t\t\tSystem.out.println(\"\\n************************************\");\r\n\t\t\tif (user == 0) {\r\n\t\t\t\t\r\n\t\t\t\trow = 9; col = 9;\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse if (user == 1){ \r\n\t\t\t\t\r\n\t\t\t\trow = 16; col = 16;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if (user == 2){\r\n\t\t\t\t\r\n\t\t\t\trow = 24; col = 24;\r\n\t\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\tchar[][] board = new char[row][col];\r\n\t\t\r\n\t\tinitBoard(board);\r\n\t\t\r\n\t\tint [][] solution = new int[row][col];\r\n\t\tint [][] playboard = new int[row][col];\r\n\t\tfor(int i=0;i<solution.length;i++){\r\n\t\t\t\r\n\t\t\tfor(int j=0;j<solution[0].length;j++){\r\n\t\t\t\t\r\n\t\t\t\tsolution[i][j]=0;playboard[i][j] =0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\tint mine = 0;\r\n\t\t\r\n\t\tif (row == 9) mine = 10;\r\n\t\telse if (row == 16) mine = 40;\r\n\t\telse if (row == 24) mine = 99;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tint countplay = mine;fillBoard(board,mine);\r\n\t\t\r\n\t\tfor(int i=0;i<board.length;i++){\r\n\t\t\t\r\n\t\t\tfor(int j=0;j<board[0].length;j++){\r\n\t\t\t\t\r\n\t\t\t\tint r = i;\r\n\t\t\t\tint c =j;\r\n\t\t\t\tif(board[i][c] == '*'){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r>0 && c>0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r-1][c-1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r-1][c-1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r >0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r-1][c] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r-1][c] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r >0 && c+1 < board[0].length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r-1][c+1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r-1][c+1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(c >0){if(board[r][c-1] == '.'){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsolution[r][c-1] += 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(c+1 < board[0].length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r][c+1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r][c+1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r +1 < board.length && c >0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r+1][c-1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r+1][c-1] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r +1 < board.length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r+1][c] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r+1][c] += 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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(r +1 < board.length && c+1 <board[0].length){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(board[r+1][c+1] == '.'){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tsolution[r+1][c+1] += 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}\r\n\t\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\n************************************\");\r\n\t\tSystem.out.println(\"\\nPlay Game\");\r\n\t\tSystem.out.println(\"\\nRows and Columns start from 0!\");\r\n\t\tSystem.out.println(\"\\n************************************\");\r\n\t\tprintBoard(board);\r\n\t\t\r\n\t\twhile(countplay <=board.length * board[0].length){\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\\nEnter row: \");\r\n\t\t\t\r\n\t\t\tint prow = input.nextInt();System.out.println(\"\\nEnter col: \");\r\n\t\t\tint pcol = input.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<board.length;i++){\r\n\t\t\t\tfor(int j=0;j<board[0].length;j++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(board[prow][pcol] == '*'){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"GAME OVER\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int k=0;k<solution.length;k++){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor(int x=0;x<solution[0].length;x++){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(board[k][x]=='*')\r\n\t\t\t\t\t\t\t\t\tSystem.out.print(\"*\" + \" \");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tSystem.out.print(solution[k][x] + \"\");\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\t\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\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\t\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{playboard[prow][pcol] = solution[prow][pcol];\r\n\t\t\t\t\ti=board.length;\r\n\t\t\t\t\tj=board[0].length;break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\tfor(int k=0;k<playboard.length;k++){\r\n\t\t\t\t\r\n\t\t\t\tfor(int x=0;x<playboard[0].length;x++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(board[k][x]=='*')\r\n\t\t\t\t\t\tSystem.out.print(\".\" + \" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\telse if(playboard[k][x]==0)\r\n\t\t\t\t\t\tSystem.out.print(\".\" + \" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tSystem.out.print(playboard[k][x] + \" \");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcountplay++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Congratulations\");\r\n\t\t\r\n\t}", "public int[] solver(int startPlayerId, int curplayer, int[][] oneP, int[][][] memory, int count) {\n\r\n int[][] one = oneP.clone(); // OnePlay Input\r\n int[] k; // onePlay points\r\n int j = curplayer;\r\n int[][][] m = memory.clone();\r\n int[] minCard = new int[3];\r\n int[] t;\r\n ArrayList<int[]> store = new ArrayList<>();\r\n minCard[2] = 100000;\r\n t = new int[3];\r\n for (int i = 0; i < 4; i++) { // 4 types of cards\r\n for (int l = 2; l < cardPerPlayer + 2; l++) {\r\n if (m[j][i][l] == 1 || m[j][i][l] == 2) {\r\n one[j][0] = i;\r\n one[j][1] = l;\r\n remove(new int[] { i, l }, m);\r\n if ((j + 1) % players != startPlayerId) {\r\n t = solver(startPlayerId, (j + 1) % players, one, m, count);\r\n one[(j + 1) % players][0] = t[0];\r\n one[(j + 1) % players][1] = t[1];\r\n }\r\n // } else if ((j + 2) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 2) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // } else if ((j + 3) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 3) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // }\r\n\r\n k = onePlay(one, startPlayerId);\r\n int curpoint = 0;\r\n if (count != cardPerPlayer - 1) { // cardPerPlayer - 1 = 12\r\n t = solver(k[0], k[0], new int[4][2], m, count++);\r\n curpoint = t[2];\r\n }\r\n\r\n if (k[0] == myID) {\r\n curpoint += k[1] + k[2] * 12;\r\n }\r\n store.add(new int[] { i, l, curpoint });\r\n if (curpoint < minCard[2]) {\r\n minCard[2] = curpoint;\r\n minCard[0] = i;\r\n minCard[1] = l;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return minCard;\r\n }", "public void findSolution() {\n\t\tif (lenA > lenB) {\n\t\t\toptPairs = new String[lenB];\n\t\t} else {\n\t\t\toptPairs = new String[lenA];\n\t\t}\n\n\t\tint counter = 0;\n\t\tint i = lenA;\n\t\tint j = lenB;\n\n\t\twhile(i>0 && j>0) {\n\t\t\tif (optArray[i][j] == g+optArray[i-1][j]) {\n\t\t\t\ti--;\n\t\t\t}\n\t\t\telse if (optArray[i][j] == g+optArray[i][j-1]) {\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse {\n\t\t\t\toptPairs[counter] = i + \" \" + j;\n\t\t\t\tcounter++;\n\t\t\t\ti--;\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\n\t\tpairNum = counter;\n\n\t}", "protected int bestDirection(int _y, int _x)\n {\n int sX = -1, sY = -1;\n for (int i = 0; i < m; i++) {\n boolean breakable = false;\n for (int j = 0; j < n; j++) {\n if (map[i][j] == 'p' || map[i][j] == '5') {\n sX = i;\n sY = j;\n breakable = true;\n break;\n }\n }\n if(breakable) break;\n sX =0; sY = 0;\n }\n Pair s = new Pair(sX, sY);\n Queue<Pair> queue = new Queue<Pair>();\n int[][] distance = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n distance[i][j] = -1;\n distance[sX][sY] = 0;\n queue.add(s);\n /*\n System.out.println(\"DEBUG TIME!!!!\");\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.print(map[i][j]);\n System.out.println();\n }\n System.out.println();\n */\n while (!queue.isEmpty())\n {\n Pair u = queue.remove();\n for (int i = 0; i < 4; i++)\n {\n int x = u.getX() + hX[i];\n int y = u.getY() + hY[i];\n if (!validate(x, y)) continue;\n if (distance[x][y] != -1) continue;\n if (!canGo.get(map[x][y])) continue;\n distance[x][y] = distance[u.getX()][u.getY()] + 1;\n queue.add(new Pair(x, y));\n }\n }\n\n //slove if this enemy in danger\n //System.out.println(_x + \" \" + _y);\n if (inDanger[_x][_y])\n {\n int direction = -1;\n boolean canAlive = false;\n int curDistance = dangerDistance[_x][_y];\n int distanceToBomber = m * n;\n if (curDistance == -1) return 0;\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y)) continue;\n if (dangerDistance[x][y] == -1) continue;\n if (dangerDistance[x][y] < curDistance)\n {\n curDistance = dangerDistance[x][y];\n direction = i;\n distanceToBomber = distance[x][y];\n } else if (dangerDistance[x][y] == curDistance)\n {\n if (distanceToBomber == -1 || distanceToBomber > distance[x][y])\n {\n direction = i;\n distanceToBomber = distance[x][y];\n }\n }\n }\n if (direction == -1) direction = random.nextInt(4);\n allowSpeedUp = true;\n return direction;\n }\n // or not, it will try to catch bomber\n else\n {\n /*\n System.out.println(\"x = \" + _x + \"y = \" + _y);\n for(int i = 0; i < n; i++) System.out.printf(\"%2d \",i);\n System.out.println();\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.printf(\"%2d \",distance[i][j]);\n System.out.println();\n }\n System.out.println();\n System.out.println();\n */\n int direction = -1;\n int[] die = new int[4];\n for (int i = 0; i < 4; i++)\n die[i] = 0;\n int curDistance = distance[_x][_y];\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y))\n {\n die[i] = 1;\n continue;\n }\n ;\n if (inDanger[x][y])\n {\n die[i] = 2;\n continue;\n }\n if (distance[x][y] == -1) continue;\n if (distance[x][y] < curDistance)\n {\n curDistance = distance[x][y];\n direction = i;\n }\n }\n if(curDistance < 4) allowSpeedUp = true;\n else allowSpeedUp = false; //TODO: TEST :))\n if (direction == -1)\n {\n for (int i = 0; i < 4; i++)\n if (die[i] == 0) return i;\n for (int i = 0; i < 4; i++)\n if (die[i] == 1) return i;\n return 0;\n } else return direction;\n }\n }" ]
[ "0.6146656", "0.5950706", "0.5949612", "0.5870862", "0.58260304", "0.57714784", "0.5702307", "0.56873536", "0.568706", "0.5673616", "0.5671337", "0.5657474", "0.5656567", "0.5614978", "0.5598602", "0.5563093", "0.55589193", "0.5546248", "0.5530251", "0.55295306", "0.5512384", "0.5508516", "0.549268", "0.5485551", "0.54640675", "0.54439837", "0.54322505", "0.5431161", "0.5428613", "0.54000777", "0.5384325", "0.5372114", "0.5369651", "0.5363494", "0.53551817", "0.5337632", "0.5332295", "0.5329239", "0.5320783", "0.5297388", "0.52930087", "0.5291319", "0.52855855", "0.52750725", "0.5271229", "0.52699184", "0.5266617", "0.526428", "0.52540725", "0.52486664", "0.524575", "0.5241798", "0.52271336", "0.52253413", "0.52145296", "0.5209684", "0.52088326", "0.5200162", "0.51985914", "0.5196341", "0.51952916", "0.5195073", "0.5193217", "0.51923674", "0.5188205", "0.5187884", "0.5185778", "0.518425", "0.5181119", "0.5179949", "0.5173689", "0.5161429", "0.51612675", "0.5160004", "0.5158919", "0.51487595", "0.5144376", "0.51421505", "0.5141894", "0.51296353", "0.51234144", "0.510844", "0.51046777", "0.5103698", "0.5100575", "0.5098234", "0.50966835", "0.5096369", "0.50907815", "0.5084018", "0.50828373", "0.50710464", "0.5070129", "0.50626373", "0.50611985", "0.50591445", "0.50570685", "0.5056301", "0.50512326", "0.50508064" ]
0.7192233
0
draw the game components here
public static void main(String[] args) { gamePanel = new GameDisplay(); //the class that displays a new game // panel is inside the frame, on the panel is the gamePanel JPanel content = new JPanel(); // instantiating my screen object content.setLayout(new BorderLayout()); // set the border object and feed it to the screen content.add(gamePanel, BorderLayout.CENTER); // put the game panel centered - what and how JFrame window = new JFrame(); // instantiating the frame window.setUndecorated(true); // Hides the title bar. window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); //Quit the program when we close this window window.setContentPane(content); // put the panel inside the frame, and the panel already has the game on it window.setSize(screenSize, screenSize); window.setLocation(100, 100); //Where on the screen will this window appear? window.setVisible(true); // see the frame - with no frame you can't see anything else // my class is now PongController to create PongController listener = new PongController(); //start listening for input from the user - this program responds to up arrows, down arrows and the letter q only window.addKeyListener(listener); // frame is listening for the keyboard //Below, we'll create and start a timer that notifies an ActionListener every time it ticks //First, need to create the listener: ActionListener gameUpdater = new ActionListener() { // very general listener, if something happens @Override public void actionPerformed(ActionEvent e) { //gameUpdater is an inner class //It's containing class is Main //moveBall() and moveComputerPaddle belong to the outer class - now their own classes //So we have to say Ball.moveBall() and ComputerPaddle.moveComputerPaddle() to refer to these methods Ball.moveBall(); ComputerPaddle.moveComputerPaddle(); System.out.println("Time going"); if (gameOver) { timer.stop(); } gamePanel.repaint(); } }; timer = new Timer(gameSpeed, gameUpdater); // set the timer with a speed and an action listener to constantly listen to //Every time the timer ticks, the actionPerformed method of the ActionListener is called timer.start(); // start the timer }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }", "private void drawComponents () {\n // Xoa het nhung gi duoc ve truoc do\n mMap.clear();\n // Ve danh sach vi tri cac thanh vien\n drawMembersLocation();\n // Ve danh sach cac marker\n drawMarkers();\n // Ve danh sach cac tuyen duong\n drawRoutes();\n }", "public void draw() {\n //Grey background, which removes the tails of the moving elements\n background(0, 0, 0);\n //Running the update function in the environment class, updating the positions of stuff in environment\n //update function is a collection of the methods needing to be updated\n if(stateOfProgram == 0) { startTheProgram.update(); }\n if(stateOfProgram == 1) {\n theEnvironment.update();\n //update function is a collection of the methods needing to be updated\n //Running the update function in the Population class, updating the positions and states of the rabbits.\n entitiesOfRabbits.update();\n entitiesOfGrass.update();\n entitiesOfFoxes.update();\n\n entitiesOfRabbits.display();\n entitiesOfGrass.display();\n entitiesOfFoxes.display();\n openGraph.update();\n }\n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n }else{\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n \n \n if(!gameover){\n player.render(g);\n borrego.render(g);\n rayo.render(g);\n \n for (Enemy brick : enemies) {\n brick.render(g);\n //bomba.render(g);\n }\n \n for (Fortaleza fortaleza : fortalezas) {\n fortaleza.render(g);\n }\n \n for (Bomba bomba: bombas){\n bomba.render(g);\n }\n \n drawScore(g);\n drawLives(g,vidas);\n }else if(gameover){\n drawGameOver(g);\n }\n \n\n if (lost && !gameover){\n drawLost(g);\n }\n if (pause && !lost && !gameover){\n drawPause(g);\n }\n if(win && !lost && !pause && !lost &&!gameover){\n \n drawWin(g);\n }\n \n bs.show();\n g.dispose();\n }\n }", "public void draw() {\n \n // TODO\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }", "@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "public void drawEssentialComponents(){\n//\t\tDraw the Player\n\t\tbatch.draw(Player.getPlayerImage(), Player.getxPlayerLoc(), Player.getyPlayerLoc(), Player.getPlayerImage().getWidth() * Player.getPlayerScale(),Player.getPlayerImage().getHeight() * Player.getPlayerScale());\t\t\n\t\t\n\t\t\n//\t\tDraw the Boxes\n\t\tfor(Box aAnswer:possAnswers){\n\t\t\tif(aAnswer.isDrawable()){\n\t\t\t\tbatch.draw(aAnswer.getImage(), aAnswer.getBoxXStart(), aAnswer.getBoxYStart(), aAnswer.getImage().getWidth() * aAnswer.getBoxScale(),aAnswer.getImage().getHeight() * aAnswer.getBoxScale());\t\t\t\n\t\t\t\tfont1.draw(batch,Character.toString(aAnswer.getDisplaySelection()), aAnswer.getBoxXStart(), aAnswer.getBoxYStart());\n\t\t\t\tfont.draw(batch,(aAnswer.getDisplaySelection() + \": \" + aAnswer.getaString()), aAnswer.getDrawXLoc(),aAnswer.getDrawYLoc() );\n//\t\t\t\tfont.drawWrapped(batch, (aAnswer.getDisplaySelection() + \": \" + aAnswer.getaString()), aAnswer.getDrawXLoc(),aAnswer.getDrawYLoc(), setBoxWindow(aAnswer.))\n\t\t\t}\n\t\t}\n\n//\t\tDraw the Question\n\t\tfont.draw(batch, ques, 0 , screenHeight );\n\n\t}", "public void paintComponent(Graphics g) {\n\n\t\t\tif (death==false) {//if we arent dead, the game must be drawn\n\t\t\t\tif (background!=null) {//draw background\n\t\t\t\t\tg.drawImage(background.getImage(), background.getX(), background.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (blocks!=null) {//draw the blocks. from the list\n\t\t\t\t\t//System.out.println(\"Yes\");\n\t\t\t\t\tfor (int x = blocks.size()-1; x>= 0; x--) {\n\t\t\t\t\t\tif (blocks.get(x).getDisable()) {//if the blocks are disabled, destroy\n\t\t\t\t\t\t\tblocks.remove(x);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (int t = 0; t<blocks.size(); t++) {//now draw the blocks.\n\t\t\t\t\t\t//System.out.printf(\"%d %d %d %d\\n\",blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t\tg.setColor(blocks.get(t).getColor());\n\t\t\t\t\t\tg.fillRect(blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (slider!=null) {//if the slider isnt null, draw it\n\t\t\t\t\t//System.out.printf(\"%d %d\\n\",slider.getX(), slider.getY());\n\t\t\t\t\tg.drawImage(slider.getImage(), slider.getX(), slider.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ball!=null) {//draw ball.\n\t\t\t\t\tg.drawImage(ball.getImage(), ball.getX(), ball.getY(), this);\n\t\t\t\t}\n\t\t\t\tfor (PowerUp power: powerUps) {//draw all of the powerups\n\t\t\t\t\tg.drawImage(power.getImage(), power.getX(), power.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//draw bottom frame\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, GamePlay.getScreenHeight()-h, GamePlay.getScreenWidth(), h);//this is the menu bar\n\t\t\t\t\n\t\t\t\t//draw score\n\t\t\t\tg.setColor(new Color(255,255,255));\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 32));\n\t\t\t\tg.drawString(String.format(\"Score: %d\", score), GamePlay.getScreenWidth() - 5 - g.getFontMetrics().stringWidth(String.format(\"Score: %d\", score)), GamePlay.getScreenHeight() - 5 - 32);\n\t\t\t\t\n\t\t\t\t//paused\n\t\t\t\tif (stopped) {\n\t\t\t\t\tg.drawString(\"Paused\", 10, 42);//upper left corner of the screen. just say paused so user knows\n\t\t\t\t}\n\t\t\t\t//lives\n\t\t\t\tint livesFontSize=15;\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, livesFontSize));\n\t\t\t\tg.drawString(String.format(\"Lives: %d\", lives), 20+5+pauseButton.getWidth(), GamePlay.getScreenHeight()-h+(2+livesFontSize));\n\t\t\t\t\n\t\t\t\tfor (int x=0; x<lives; x++) {//draw one ball for every life they have. \n\t\t\t\t\t//System.out.println(\"hey\");\n\t\t\t\t\tg.drawImage(ball.getImage(), 5+pauseButton.getWidth()+20+(5+ball.getWidth())*x, GamePlay.getScreenHeight()-(h/2)-(ball.getHeight())+(livesFontSize/2), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//logo\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2-logo.getWidth()/2, GamePlay.getScreenHeight() - (h/2) - (logo.getHeight()/2)-10, this);\n\t\t\t\t\n\t\t\t\t//pause button\n\t\t\t\tg.drawImage(pauseButton.getImage(), 5, GamePlay.getScreenHeight() - (h/2) - pauseButton.getHeight()/2 -10 , this);\n\t\t\t\t\n\t\t\t} else {//this means the player died.\n\t\t\t\t\n\t\t\t\t//draw black background \n\t\t\t\t\n\t\t\t\t//draw logo\n\t\t\t\tlogo.resize(400,100);\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, 0, GamePlay.getScreenWidth(), GamePlay.getScreenHeight());\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2 - logo.getWidth()/2, 100, this);\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(255,255,255));//draw game over text\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 60));\n\t\t\t\tg.drawString(\"Game Over!\", GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(\"Game Over!\")/2, GamePlay.getScreenHeight()/2 - 30);\n\t\t\t\t\n\t\t\t\t//draw score. \n\t\t\t\tg.drawString(String.format(\"Your Score: %d\", score), GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(String.format(\"Your Score: %d\", score))/2, GamePlay.getScreenHeight()/2 + 100);\n\t\t\t}\n\t\t\t\n\t\t}", "private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }", "private void draw() {\n gsm.draw(g);\n }", "public void draw() {\n mGameBoard.draw();\n }", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void paint() {\r\n\t\tBufferStrategy bf = base.frame.getBufferStrategy();\r\n\t\ttry {\r\n\t\t\tg = bf.getDrawGraphics();\r\n\t\t\tg.clearRect(0, 0, 1024, 768);\r\n\t\t\tg.setFont(normal);\r\n\t\t\tif (gameState == 1) {\r\n\t\t\t\tg.drawImage(playButton, playButtonXM, playButtonYM, playButtonWidthM, playButtonHeightM, this);\t\t\t\t\r\n\t\t\t}else if (gameState == 3){\r\n\t\t\t\tint weaponPosX = ((arrow2X-arrowX) /2) + arrowX - 20;\r\n\t\t\t\tint weaponPosY = arrowY - 15;\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY2ndRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY2ndRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY3rdRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY3rdRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY4thRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY4thRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(playButton, playButtonX, playButtonY, playButtonWidth, playButtonHeight, this);\r\n\r\n\t\t\t\t//text boxes above choices\r\n\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\tg.drawString(\"Weapon\", weaponPosX, weaponPosY);\r\n\t\t\t\tg.drawString(\"Difficulty\", weaponPosX, (arrowY2ndRow - 15));\r\n\t\t\t\tg.drawString(\"Number of AI\", weaponPosX - 12, (arrowY3rdRow - 15));\r\n\t\t\t\tg.drawString(\"Number of players\", weaponPosX - 20, (arrowY4thRow - 15));\r\n\r\n\t\t\t\tif (getDifficulty() == 1){\r\n\t\t\t\t\tg.drawImage(Easy, difficultyXPos, arrowY2ndRow, difficultyWidth , arrowHeight, this);\r\n\t\t\t\t}else if (getDifficulty() == 2) {\r\n\t\t\t\t\tg.drawImage(Normal, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tg.drawImage(Hard, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tif (getAttackStyle() == 2) {\r\n\t\t\t\t\tg.drawImage(Arrowr, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 280, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//due to the sword using all of the x positions the width is slightly different\r\n\t\t\t\t\tg.drawImage(SwordL, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 300, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tint AIXPos = weaponPosX;\r\n\t\t\t\tif (AINum >= 10 && AINum<100) {\r\n\t\t\t\t\tAIXPos -=25;\r\n\t\t\t\t} else if (AINum >= 100 && AINum < 1000) {\r\n\t\t\t\t\t//the reason why this grows by 40 instead of an additional 20 is because we are not storing the variable\r\n\t\t\t\t\t//of current position anywhere so we just add another 20 onto the decrease\r\n\t\t\t\t\tAIXPos-=50;\r\n\t\t\t\t} else if (AINum >= 1000) {\r\n\t\t\t\t\tAIXPos-=75;\r\n\t\t\t\t}\r\n\t\t\t\tg.setFont(numbers);\r\n\t\t\t\tString currentNum = Integer.toString(AINum);\r\n\t\t\t\tString currentPlayerString = Integer.toString(currentPlayer);\r\n\t\t\t\tg.drawString(currentNum, AIXPos, arrowY3rdRow + 72);\r\n\t\t\t\tg.drawString(currentPlayerString, weaponPosX, arrowY4thRow + 72);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ((!escape) && (!dead) &&(!allAIDead)) {\r\n\t\t\t\t\tg.drawImage(picture, 0, 0, base.frame.getWidth(), base.frame.getHeight(), this);\r\n\t\t\t\t\tfor (int i = 0; i < playerObject.length; i++) {\r\n\t\t\t\t\t\tint playerX = (int) playerObject[i].getX();\r\n\t\t\t\t\t\tint playerY = (int) playerObject[i].getY();\r\n\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t// health bar\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, 100, healthY);\r\n\t\t\t\t\t\tg.setColor(Color.red);\r\n\t\t\t\t\t\tg.fillOval(playerX, playerY, 20, 20);\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, (int) (playerObject[i].getHealth()/2) , healthY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//AI\r\n\t\t\t\t\tfor (int i = 0; i < AIObject.length; i++) {\r\n\t\t\t\t\t\tif (!AIObject[i].isDead()) {\r\n\t\t\t\t\t\t\tint AIRoundedX = (int) AIObject[i].getAIX();\r\n\t\t\t\t\t\t\tint AIRoundedY = (int) AIObject[i].getAIY();\r\n\t\t\t\t\t\t\tif (AIObject[i].getColor() == null) {\r\n\t\t\t\t\t\t\t\tint red = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint green = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint blue = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tColor newColor = new Color(red,green,blue);\r\n\t\t\t\t\t\t\t\tg.setColor(newColor);\r\n\t\t\t\t\t\t\t\tAIObject[i].setColor(newColor);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tg.fillOval(AIRoundedX, AIRoundedY, 20, 20);\r\n\t\t\t\t\t\t\tAIDeadCount = 0;\r\n\t\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, AI_ORIG_HEALTH/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, (int) AIObject[i].getAIHealth()/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tAIDeadCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// early access banner\r\n\t\t\t\t\tg.drawImage(earlyAccess, 0, 24, this);\r\n\r\n\t\t\t\t\tif (attackStyle == 2) {\r\n\t\t\t\t\t\tif (drawArrow == true) {\r\n\t\t\t\t\t\t\tinFlight = true;\r\n\t\t\t\t\t\t\tshouldPlaySound = true;\r\n\t\t\t\t\t\t\tif ((fireLeft) && (currentlyDrawingArrow != 2)) {\r\n\t\t\t\t\t\t\t\tgoingLeft = true;\r\n\t\t\t\t\t\t\t\tgoingRight = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 1;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowl, Math.round(aX), Math.round(aY), this);\r\n\r\n\t\t\t\t\t\t\t} else if ((fireRight) && (currentlyDrawingArrow != 1)) {\r\n\t\t\t\t\t\t\t\tgoingRight = true;\r\n\t\t\t\t\t\t\t\tgoingLeft = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 2;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowr, Math.round(aX), Math.round(aY), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ((aX >= 1024) || (!drawArrow) || (aX <= 0)) {\r\n\t\t\t\t\t\t\tinFlight = false;\r\n\t\t\t\t\t\t\taX = playerObject[0].getX();\r\n\t\t\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t\t\t\tcurrentlyDrawingArrow = 0;\r\n\t\t\t\t\t\t\tdrawArrow = false;\r\n\t\t\t\t\t\t\tshouldPlaySound = false;\r\n\t\t\t\t\t\t\tnotPlayingSound = false;\r\n\t\t\t\t\t\t\talreadyShot = false;\r\n\t\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\t\tlClick = false;\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\telse {\r\n\t\t\t\t\t\tint roundedX = Math.round(playerObject[0].getX());\r\n\t\t\t\t\t\tint roundedY = Math.round(playerObject[0].getY());\r\n\t\t\t\t\t\tif (drawSword) {\r\n\t\t\t\t\t\t\tswordCount++;\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX - 45, roundedY - 30, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX - 63, roundedY, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\t//image flip g.drawImage(SwordHorizontalL, Math.round(x) - 2, Math.round(y) - 45, -SwordHorizontalL.getWidth(this),SwordHorizontalL.getHeight(this),this);\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth,swordHorizontalLWidth,this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX + 80, roundedY - 30,\r\n\t\t\t\t\t\t\t\t\t\t\t-sword45LWidth, sword45LHeight, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX +90, roundedY, -swordLWidth, swordLHeight, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth, swordHorizontalLHeight, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (shield) {\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX - 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX + 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t-SwordHorizontalL.getWidth(this), SwordHorizontalL.getHeight(this), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tswordCount = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (escape) {\r\n\t\t\t\t\tg.setColor(Color.white);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawString(\"PAUSED\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t\telse if (dead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"Dead\", 512, 389);\r\n\t\t\t\t} else if(allAIDead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"You win\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tg.dispose();\r\n\t\t}\r\n\t\t// Shows the contents of the backbuffer on the screen.\r\n\t\tbf.show();\r\n\t}", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "private void render() {\n\t\t// clear the screen and depth buffer\n\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\t// draws the background\n\t\tdrawScreen(sprite.get(\"background\"));\n\t\t\n\t\t// drawing player\n\t\tif (!stopDrawingPlayer)\n\t\t\tdrawEntity(player);\n\t\t// drawing bullets\n\t\tdrawListEntity(bullet);\n\t\t// drawing enemy bullets\n\t\tdrawListEntity(enemy_bullet);\n\t\t// drawing enemies\n\t\tdrawListEntity(enemy);\n\t\t// drawing powerups\n\t\tdrawListEntity(powerup);\n\t\t// drawing explosions\n\t\tdrawListEntity(explosion);\n\t\t\n\t\t// draw health\n\t\tdefaultFont.drawString(10, 10, \"Health: \" + player.getHP() + \"/1000\");\n\t\t// draw cash\n\t\tdefaultFont.drawString(10, 40, \"Cash: $\" + cash);\n\t\t// draw shop prompt\n\t\tdefaultFont.drawString(displayWidth - 280, displayHeight - 40, \"Press F to enter shop\");\n\t\t\n\t\tif (stopDrawingPlayer) {\n\t\t\t// draw Game Over\n\t\t\tgameOverFont.drawString(displayWidth / 2 - gameOverFont.getWidth(\"Game Over!\") / 2, displayHeight\n\t\t\t\t\t/ 2 - gameOverFont.getHeight(\"Game Over!\") / 2 - 50, \"Game Over!\");\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}", "public void render() {\r\n\t\t //Draw all of the sprites in the game\r\n\t background.draw(0,backgroudY1);\r\n\t\tbackground.draw(0,backgroudY2);\r\n\t\tbackground.draw(0,backgroudY3);\r\n\t\tbackground.draw(WIDTH/2,backgroudY1);\r\n\t\tbackground.draw(WIDTH/2,backgroudY2);\r\n\t background.draw(WIDTH/2,backgroudY3);\r\n\t \r\n\t // call this method from Player class, to draw the plane.\r\n\t player.render();\r\n\t \r\n\t \r\n\t // loop through every enemy, draw enemy if it's not killed\r\n\t for(int i=0; i<enemy.length; i++) {\r\n\t \t\r\n \tif(enemy[i] != null && enemyKilled[i] == true) {\r\n \t\t\r\n\t \t\t\r\n\t enemy[i].render();\r\n\t \r\n\t \t}\r\n\t \r\n\t }\r\n\t // loop through every laser, if it has not made contact with any enemy,\r\n\t // call its render method to draw it\r\n\t for (int i = 0; i < arr_size; i++) {\r\n\t \tif (lasers[i] != null && laserUsed[i] == true) {\r\n\t lasers[i].render();\r\n \t}\r\n\t \t\r\n\t }\r\n\t \r\n\t}", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n if(ingame){\n\n int screenWidth = this.getWidth();\n int screenHeight = this.getHeight();\n\n\n for(int i = 0; i < end_positions.size(); i++){\n End_position item = end_positions.get(i);\n g.setColor(Color.green);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n\n g.setColor(Color.white);\n g.fillRect(player.getCurrentX()*screenWidth/LEVEL_WIDTH,player.getCurrentY()*screenHeight/LEVEL_HEIGHT,player.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,player.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n g.setColor(Color.yellow);\n g.fillRect(item.getCurrentX()*screenWidth/LEVEL_WIDTH,item.getCurrentY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n for(int i = 0; i < walls.size(); i++){\n Wall item = walls.get(i);\n\n g.setColor(Color.red);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n }\n\n }\n\n }", "public void draw() {\n \n }", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n g.setColor(Color.BLACK);\n g.fillRect(0,0,width*scale,height*scale);\n if(game.getWindowNum() == 2){\n for(int x = 0; x < world.length*scale; x+=scale){\n for(int y = 0; y < world[0].length*scale; y+= scale){\n if(game.getDiscoverdWorld()[x/scale][y/scale] == 1){\n if(world[x/scale][y/scale] == 0){\n g.setColor(Color.CYAN);\n }\n else if(world[x/scale][y/scale] == 1){\n g.setColor(Color.GREEN);\n }\n else if(world[x/scale][y/scale] == 2){\n g.setColor(new Color(102,66,0));\n }\n else if(world[x/scale][y/scale] == 3){\n g.setColor(new Color(105,105,105));\n }\n g.fillRect(x,y,scale,scale);\n }\n }\n }\n g.setColor(Color.RED);\n g.fillRect((int)(game.getPlayerCords()[0]*(double)scale),(int)(game.getPlayerCords()[1]*(double)scale),scale*game.getPlayerDimentions()[0],scale*game.getPlayerDimentions()[1]);\n g.setColor(Color.BLACK);\n g.drawRect((int)(game.getViewBoxCords()[0]*scale),(int)(game.getViewBoxCords()[1]*scale),(int)(game.getPlayerView().length*scale),(int)(game.getPlayerView()[0].length*scale));\n g.drawString(\"X: \"+game.getPlayerCords()[0]+\" Y: \"+game.getPlayerCords()[1],20,20);\n g.drawString(\"Seed: \"+game.getSeed(),20,40);\n g.drawString(\"Grounded: \"+game.getPlayer().getGrounded(),20,60);\n g.drawString(\"Vertical Velocity: \"+game.getPlayer().getVertVelocity(),20,80);\n }\n else if(game.getWindowNum() == 1){\n int[][] viewPlane = game.getPlayerView();\n double playerViewScale = game.getPlayerViewScale();\n double[] viewBoxCords = game.getViewBoxCords();\n g.setColor(Color.CYAN);\n for(int x = 0; x < viewPlane.length;x++){\n for(int y = 0; y < viewPlane[0].length;y++){\n if(viewPlane[x][y] != 0 && game.getDiscoverdWorld()[x+(int)viewBoxCords[0]][y+(int)viewBoxCords[1]] == 1){\n g.drawImage(textures.get(viewPlane[x][y]-1),(int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),this);\n /*\n if(viewPlane[x][y] == 1){\n g.setColor(Color.GREEN);\n }\n else if(viewPlane[x][y] == 2){\n g.setColor(new Color(102,66,0));\n }\n else if(viewPlane[x][y] == 3){\n g.setColor(new Color(105,105,105));\n }\n g.fillRect((int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),(int)(playerViewScale+0.5),(int)(playerViewScale+0.5));\n */\n }\n else if(viewPlane[x][y] == 0 && game.getDiscoverdWorld()[x+(int)viewBoxCords[0]][y+(int)viewBoxCords[1]] == 1){\n g.fillRect((int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),(int)(playerViewScale+1),(int)(playerViewScale+1));\n }\n }\n }\n if(recentlyHit != null){\n g.setColor(new Color(50,50,50,(int)(255*(1-recentlyHit.getHealthPercent()))));\n g.fillRect((int)(recentlyHit.getX()*playerViewScale)-(int)(viewBoxCords[0]%1*playerViewScale)+1,(int)(recentlyHit.getY()*playerViewScale)-(int)(viewBoxCords[1]%1*playerViewScale)+1,(int)playerViewScale,(int)playerViewScale);\n }\n //g.setColor(Color.RED);\n //g.fillRect((int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),(int)playerViewScale*game.getPlayerDimentions()[0],(int)playerViewScale*game.getPlayerDimentions()[1]);\n if(game.isFacingRight()){\n g.drawImage(textures.get(3),(int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),this);\n }\n else{\n g.drawImage(textures.get(4),(int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),this);\n }\n g.setColor(Color.BLACK);\n g.setFont(font2);\n g.drawString(\"X: \"+game.getPlayerCords()[0]+\" Y: \"+game.getPlayerCords()[1],20,20);\n g.drawString(\"Seed: \"+game.getSeed(),20,40);\n g.drawString(\"Grounded: \"+game.getPlayer().getGrounded(),20,60);\n g.drawString(\"Vertical Velocity: \"+game.getPlayer().getVertVelocity(),20,80);\n g.drawString(\"View Box Cords: X:\"+viewBoxCords[0]+\" Y: \"+viewBoxCords[1],20,100);\n int a = 0;\n for(Item i: game.getPlayerInventory()){\n if(i != null){\n g.drawString(i.getName()+\" Count: \"+i.getCount(),20,120+a*20);\n a++;\n }\n } \n g.setColor(new Color(100,100,100,95));\n g.fillRect((int)(0.09*viewPlane.length*playerViewScale),(int)(0.8*viewPlane[0].length*playerViewScale),(int)(0.82*viewPlane.length*playerViewScale),(int)(0.12*viewPlane[0].length*playerViewScale));\n g.setColor(Color.WHITE);\n for(int i = 0; i < game.getPlayerHotbar().length;i++){\n if(i == game.getPlayer().getHotbarItemSelected()){\n g.setColor(Color.BLACK);\n g.fillRect((int)(0.11*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.81*viewPlane[0].length*playerViewScale),(int)(0.06*playerViewScale*viewPlane.length),(int)(0.1*viewPlane[0].length*playerViewScale));\n g.setColor(Color.WHITE);\n }\n else{\n g.fillRect((int)(0.11*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.81*viewPlane[0].length*playerViewScale),(int)(0.06*playerViewScale*viewPlane.length),(int)(0.1*viewPlane[0].length*playerViewScale));\n }\n if(game.getPlayer().getHotbar()[i] != null){\n g.drawImage(textures.get(game.getPlayer().getHotbar()[i].getTextureNum()),(int)(0.125*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.83*viewPlane[0].length*playerViewScale),this);\n }\n }\n if(game.isInvenVisible()){\n int rowLength = 10;\n g.setColor(new Color(100,100,100,180));\n g.fillRect((int)(0.05*screenWidth),(int)(0.06*screenHeight),(int)(0.9*screenWidth),(int)(0.7*screenHeight));\n g.setColor(Color.WHITE);\n int count = 0; \n for(Item i: game.getPlayerInventory()){\n if(i!=null){\n g.drawImage(textures.get(i.getTextureNum()),(int)(0.08*screenWidth)+(int)((count%rowLength)*0.085*screenWidth),(int)(0.085*screenHeight)+(int)((int)(count/rowLength)*0.085*screenHeight),this);\n g.drawString(\"x\"+i.getCount(),(int)(0.11*screenWidth)+(int)((count%rowLength)*0.085*screenWidth),(int)(0.096*screenHeight)+(int)((int)(count/rowLength)*0.085*screenHeight));\n count++;\n }\n }\n }\n else if(game.isCraftingVisible()){\n g.setColor(new Color(100,100,100,180));\n g.fillRect((int)(0.05*viewPlane.length*playerViewScale),(int)(0.05*viewPlane[0].length*playerViewScale),(int)(0.9*viewPlane.length*playerViewScale),(int)(0.7*viewPlane[0].length*playerViewScale));\n }\n g.setColor(Color.BLACK);\n g.drawRect((int)(screenWidth*0.8),(int)(screenHeight*.03),(int)(screenWidth*.18),(int)(screenHeight*0.04));\n g.setColor(new Color((int)(255*(1-game.getPlayerHealthPercent())),(int)(255*game.getPlayerHealthPercent()),0));\n g.fillRect((int)(screenWidth*0.8)+1,(int)(screenHeight*.03)+1,(int)(screenWidth*.18*game.getPlayerHealthPercent())-1,(int)(screenHeight*0.04)-1);\n g.setColor(new Color(50,50,50,200));\n g.setFont(font1);\n g.drawString(game.getPlayerHealthPercent()*100+\"%\",(int)(screenWidth*.88),(int)(screenHeight*0.06));\n }\n }", "public final void draw2D()\n {\n if ( GameLevel.current() != null )\n {\n //draw player's wearpon or gadget\n GameLevel.currentPlayer().drawWearponOrGadget();\n }\n\n //draw avatar message ( if active )\n AvatarMessage.drawMessage();\n\n //draw all hud messages\n HUDMessage.drawAllMessages();\n\n //draw fullscreen hud effects\n HUDFx.drawHUDEffects();\n\n //draw frames per second last\n Fps.draw();\n\n //draw ammo if the wearpon uses ammo\n if ( GameLevel.currentPlayer().showAmmoInHUD() )\n {\n drawAmmo();\n }\n\n //draw health\n drawHealth();\n\n //draw debug logs\n //Level.currentPlayer().drawDebugLog( g );\n }", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "protected void paintComponent(Graphics graphics){\n super.paintComponent(graphics);\n\n Graphics2D g2d = (Graphics2D)graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n\n renderBackground(graphics);\n renderCard(graphics);\n renderCoin(graphics);\n }", "@Override\n public void render() {\n if (!gameOver && !youWin) this.update();\n\n //Dibujamos\n this.draw();\n }", "public void draw() {\r\n\t\t// Draw the triangle making up the mountain\r\n\t\tTriangle mountain = new Triangle(this.x, 100,\r\n\t\t\t\tthis.x + mountainSize / 2, 100, this.x + mountainSize / 4,\r\n\t\t\t\t100 - this.y / 4, Color.DARK_GRAY, true);\r\n\t\t// Draw the triangle making up the snow cap\r\n\t\tthis.snow = new Triangle(side1, bottom - this.y / 8, side2, bottom\r\n\t\t\t\t- this.y / 8, this.x + mountainSize / 4, 100 - this.y / 4,\r\n\t\t\t\tColor.WHITE, true);\r\n\t\tthis.window.add(mountain);\r\n\t\tthis.window.add(snow);\r\n\t}", "@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }", "@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t\r\n\t\r\n\t}", "public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "public void render(GameContainer gc, Graphics g){\n\n for(Renderable r:renderables){\n r.render(gc, g);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.VICTORYROOM) {\n this.gameData.getImageList().get(2).draw(226, 284);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.DEFEATROOM) {\n this.gameData.getImageList().get(3).draw(120, 288);\n }\n\n\n if(roomType == GAMEROOM){\n\n for(Renderable l: this.gameData.getLinkList()){\n l.render(gc, g);\n }\n for(Renderable s: this.gameData.getSystemList()){\n s.render(gc, g);\n }\n\n this.gameData.getImageList().get(0).draw(300, 5);\n this.gameData.getImageList().get(1).draw(800, 5);\n this.gameData.getButtonsImages().get(\"Enemy\").drawNextSubimage(600, 16);\n this.gameData.getButtonsImages().get(\"Allied\").drawNextSubimage(500, 16);\n\n TrueTypeFont font = this.gameData.getFont(\"UITopFont\");\n font.drawString(536, 0, \"VS\" , Color.green);\n\n int popa = this.gameData.getPopA();\n int pope = this.gameData.getPopE();\n int resa = this.gameData.getResA();\n int rese = this.gameData.getResE();\n\n if ( popa > 1000000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000000 + \"M\"), 0, \"\"+popa/1000000 + \"M\" , Color.cyan);\n else if ( popa > 1000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000 + \"K\"), 0, \"\"+popa/1000 + \"K\" , Color.cyan);\n else font.drawString(480 - font.getWidth(\"\"+popa), 0, \"\"+popa , Color.cyan);\n font.drawString(295 - font.getWidth(\"\"+resa), 0, \"\"+resa , Color.cyan);\n\n if ( pope > 1000000 ) font.drawString(620, 0, \"\"+pope/1000000 + \"M\" , Color.red);\n else if ( pope > 1000 ) font.drawString(620, 0, \"\"+pope/1000 + \"K\" , Color.red);\n else font.drawString(620, 0, \"\"+pope , Color.red);\n font.drawString(830, 0, \"\"+rese , Color.red);\n\n for(WindowSystem w: this.gameData.getWindowList()){\n if(w.getMs().isShowWindow())\n w.render(gc, g);\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n }", "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}", "@Override\r\n public void draw() {\n }", "@Override \r\n public void paintComponent(final Graphics theGraphics) { \r\n super.paintComponent(theGraphics); \r\n final Graphics2D g2d = (Graphics2D) theGraphics; \r\n \r\n final int width = myBoard.getWidth(); \r\n final int height = myBoard.getHeight(); \r\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON); \r\n \r\n // draw purple game grid\r\n g2d.setColor(PURPLE); \r\n for (int i = 0; i < Math.max(width, height); i++) { \r\n final int lines = i * GRID_SIZING; \r\n \r\n //draws horizontal lines\r\n g2d.draw(new Line2D.Double(lines, ZERO, lines, height * GRID_SIZING));\r\n \r\n //draws vertical lines\r\n g2d.draw(new Line2D.Double(ZERO, lines, width * GRID_SIZING, lines));\r\n \r\n if (myBoard.isGameOver()) { \r\n myGameOver = true; \r\n myGamePaused = true; \r\n }\r\n } \r\n \r\n //update blocks\r\n drawCurrentPiece(g2d, height, width);\r\n drawFrozenBlocks(g2d, height, width);\r\n handlePausedGame(g2d);\r\n }", "public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n Graphics2D g2d = (Graphics2D) g;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n // ab hier kann man zeichen\n g.setColor(new Color(250, 230, 204));\n g.fillRect(0, 0, 1050, 1050);\n g.setColor(Color.BLACK);\n \n //Vertical\n g.drawLine(175, 50, 175, 950);\n g.drawLine(325, 50, 325, 950);\n g.drawLine(475, 50, 475, 950);\n g.drawLine(625, 50, 625, 950);\n g.drawLine(775, 50, 775, 950);\n g.drawLine(925, 50, 925, 950);\n //Horizontal\n g.drawLine(175, 50, 925, 50);\n g.drawLine(175, 200, 925, 200);\n g.drawLine(175, 350, 925, 350);\n g.drawLine(175, 500, 925, 500);\n g.drawLine(175, 650, 925, 650);\n g.drawLine(175, 800, 925, 800);\n g.drawLine(175, 950, 925, 950);\n\n // Spieler Anzeigen\n g.setColor(Color.BLACK);\n if (GUI.player == 0) {\n g.drawString(\"Player X\", 25, 50);\n } else if (GUI.player == 1) {\n g.drawString(\"Player 0\", 25, 50);\n }\n //draw gewinner\n if (GUI.gewinner == 1) {\n g.drawString(\"Gewinne: X\", 25, 100);\n } else if (GUI.gewinner == 2) {\n g.drawString(\"Gewinne: 0\", 25, 100);\n }\n //Reihe 1\n if (GUI.state[0] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 50, 150, 150, null);\n } else if (GUI.state[0] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 50, 150, 150, null);\n }\n if (GUI.state[1] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 50, 150, 150, null);\n } else if (GUI.state[1] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 50, 150, 150, null);\n }\n if (GUI.state[2] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 50, 150, 150, null);\n } else if (GUI.state[2] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 50, 150, 150, null);\n }\n if (GUI.state[3] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 50, 150, 150, null);\n } else if (GUI.state[3] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 50, 150, 150, null);\n }\n if (GUI.state[4] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 50, 150, 150, null);\n } else if (GUI.state[4] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 50, 150, 150, null);\n }\n\n //Reihe 2\n if (GUI.state[5] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 200, 150, 150, null);\n } else if (GUI.state[5] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 200, 150, 150, null);\n }\n if (GUI.state[6] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 200, 150, 150, null);\n } else if (GUI.state[6] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 200, 150, 150, null);\n }\n if (GUI.state[7] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 200, 150, 150, null);\n } else if (GUI.state[7] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 200, 150, 150, null);\n }\n if (GUI.state[8] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 200, 150, 150, null);\n } else if (GUI.state[8] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 200, 150, 150, null);\n }\n if (GUI.state[9] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 200, 150, 150, null);\n } else if (GUI.state[9] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 200, 150, 150, null);\n }\n\n //Reihe 3\n if (GUI.state[10] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 350, 150, 150, null);\n } else if (GUI.state[10] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 350, 150, 150, null);\n }\n if (GUI.state[11] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 350, 150, 150, null);\n } else if (GUI.state[11] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 350, 150, 150, null);\n }\n if (GUI.state[12] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 350, 150, 150, null);\n } else if (GUI.state[12] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 350, 150, 150, null);\n }\n if (GUI.state[13] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 350, 150, 150, null);\n } else if (GUI.state[13] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 350, 150, 150, null);\n }\n if (GUI.state[14] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 350, 150, 150, null);\n } else if (GUI.state[14] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 350, 150, 150, null);\n }\n\n //Reihe 4\n if (GUI.state[15] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 500, 150, 150, null);\n } else if (GUI.state[15] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 500, 150, 150, null);\n }\n if (GUI.state[16] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 500, 150, 150, null);\n } else if (GUI.state[16] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 500, 150, 150, null);\n }\n if (GUI.state[17] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 500, 150, 150, null);\n } else if (GUI.state[17] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 500, 150, 150, null);\n }\n if (GUI.state[18] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 500, 150, 150, null);\n } else if (GUI.state[18] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 500, 150, 150, null);\n }\n if (GUI.state[19] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 500, 150, 150, null);\n } else if (GUI.state[19] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 500, 150, 150, null);\n }\n\n //Reihe 5\n if (GUI.state[20] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 650, 150, 150, null);\n } else if (GUI.state[20] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 650, 150, 150, null);\n }\n if (GUI.state[21] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 650, 150, 150, null);\n } else if (GUI.state[21] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 650, 150, 150, null);\n }\n if (GUI.state[22] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 650, 150, 150, null);\n } else if (GUI.state[22] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 650, 150, 150, null);\n }\n if (GUI.state[23] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 650, 150, 150, null);\n } else if (GUI.state[23] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 650, 150, 150, null);\n }\n if (GUI.state[24] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 650, 150, 150, null);\n } else if (GUI.state[24] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 650, 150, 150, null);\n }\n //Reihe 6\n if (GUI.state[25] == 1) {\n g.drawImage(ImagerLoader.imgX, 175, 800, 150, 150, null);\n } else if (GUI.state[25] == 2) {\n g.drawImage(ImagerLoader.imgO, 175, 800, 150, 150, null);\n }\n if (GUI.state[26] == 1) {\n g.drawImage(ImagerLoader.imgX, 325, 800, 150, 150, null);\n } else if (GUI.state[26] == 2) {\n g.drawImage(ImagerLoader.imgO, 325, 800, 150, 150, null);\n }\n if (GUI.state[27] == 1) {\n g.drawImage(ImagerLoader.imgX, 475, 800, 150, 150, null);\n } else if (GUI.state[27] == 2) {\n g.drawImage(ImagerLoader.imgO, 475, 800, 150, 150, null);\n }\n if (GUI.state[28] == 1) {\n g.drawImage(ImagerLoader.imgX, 625, 800, 150, 150, null);\n } else if (GUI.state[28] == 2) {\n g.drawImage(ImagerLoader.imgO, 625, 800, 150, 150, null);\n }\n if (GUI.state[29] == 1) {\n g.drawImage(ImagerLoader.imgX, 775, 800, 150, 150, null);\n } else if (GUI.state[29] == 2) {\n g.drawImage(ImagerLoader.imgO, 775, 800, 150, 150, null);\n }\n repaint();\n }", "public void draw() {\n }", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void draw(){\n }", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "public void Draw (Graphics graphics, MainJPanel JPanel){ // draw the player game pieces\n for(Piece piece : pieces.values())\n piece.Draw(graphics,JPanel);\n }", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.screen.renderBackground();\n\t\t\n\t\t\n\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\tobstacles.get(i).render(screen);\n\t\t}\n\t\t\n\t\tthis.screen.renderGround();\n\t\t\n\t\t\n\t\tthis.bird.render(screen);\n\n\t\tscreen.renderLeftLim();\n\t\t\n\t\tfor(int i= 0;i<this.pixels.length;i++){\n\t\t\tthis.pixels[i] = this.screen.getPixel(i);\n\t\t}\n\t\n\n\t\t\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tg.drawImage(image,0,0,getWidth(),getHeight(),null);\n\t\tg.setColor(Color.WHITE);\n\t\tg.setFont(new Font(\"Verdana\",0,30));\n\t\tg.drawString(\"\"+this.numGoals, 300, 60);\n\t\tif(this.gameOver){\n\t\t\tif(this.begin){\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(GAMEOVER_MESSAGE, (WIDTH-300)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to restart\", (WIDTH-250)/2, 300);\n\t\t\t\tg.drawString(\"Best score:\"+this.bestScore, (WIDTH-135)/2, 350);\n\t\t\t}else{\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(\"OPEN BIRD\", (WIDTH-270)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to start\", (WIDTH-250)/2, 300);\n\t\t\t}\n\t\t}\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }", "public void render()\n\t{\n\t\t//double buffering is cool\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(2);\n\t\t\tbs = getBufferStrategy();\n\t\t}\n\t\t\t\n\t\tGraphics2D g2 = (Graphics2D)bs.getDrawGraphics();\n\t\n\t\t\n\t\t\n\t\tif (true)\t\n\t\t{\n\t\t\tif (level != 0)\n\t\t\t{\n\t\t\t\tg2.setColor(Color.black);\n\t\t\t\tg2.fillRect(0, 0, width, height);\t\t\t\n\t\t\t}\n\t\t\tgameObjectHandler.render(g2,false);\n\t\t}\n\t\tif(currTransition != null)\n\t\t{\n\t\t\tcurrTransition.render(g2);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tbs.show();\n\t\tg2.dispose();\n\t\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "@Override\n public void draw()\n {\n }", "public void updateGraphics() {\n\t\t// Draw the background. DO NOT REMOVE!\n\t\tthis.clear();\n\t\t\n\t\t// Draw the title\n\t\tthis.displayTitle();\n\n\t\t// Draw the board and snake\n\t\t// TODO: Add your code here :)\n\t\tfor(int i = 0; i < this.theData.getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < this.theData.getNumColumns(); j++) {\n\t\t\t\tthis.drawSquare(j * Preferences.CELL_SIZE, i * Preferences.CELL_SIZE,\n\t\t\t\t\t\tthis.theData.getCellColor(i, j));\n\t\t\t}\n\t\t}\n\t\t// The method drawSquare (below) will likely be helpful :)\n\n\t\t\n\t\t// Draw the game-over message, if appropriate.\n\t\tif (this.theData.getGameOver())\n\t\t\tthis.displayGameOver();\n\t}", "public void go() {\n update();\n borders();\n render();\n }", "public void draw()\n\t{\n\t\tdrawWalls();\n\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.draw();\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.draw();\n\t\t}\n\n\t\tdp.repaintAndSleep(rate);\n\t}", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "@Override\n public void render() {\n sortEntities(Entity.getEntities());\n renderBackground();\n renderBattleState();\n if(selectedPc != null){\n MyGL2dRenderer.drawLabel(getSelectedPc().getCollisionBox().left - 4 * GameView.density() + cameraX,\n getSelectedPc().getCollisionBox().bottom - getSelectedPc().getCollisionBox().width() / 5 + cameraY,\n getSelectedPc().getCollisionBox().width() + 8 * GameView.density(),\n getSelectedPc().getCollisionBox().width() * 2 / 5,\n TextureData.selected_character_visual, 255);\n }\n if(!win){\n renderSpells();\n renderGold();\n }\n }", "public void draw() {\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tif (particles[i] != null) {\r\n\t\t\t\tglBegin(GL_QUADS);\r\n\t\t\t\t{\r\n\t\t\t\t\tparticles[i].draw();\r\n\t\t\t\t}\r\n\t\t\t\tglEnd();\r\n\t\t\t}\r\n\t\t}\r\n\t\tglColor3f(1, 1, 1);\r\n\t}", "@Override\n public void draw() {\n }", "public void paintComponent(Graphics g) {\n g.drawImage(BACKGROUND, 0, 0, frame.getWidth(), frame.getHeight(), null);\n drawBird(g, bird.getImage(), 30, bird.getYLoc());\n\n for (PipePair pipe : pipes) {\n int x = pipe.getXLoc();\n\n int bottomY = pipe.getBottomY();\n int topHeight = pipe.getTopY();\n\n drawPipe(g, pipe.getTopPipe(), x, 0, topHeight);\n drawPipe(g, pipe.getBottomPipe(), x, bottomY, 320);\n }\n\n if (game.hasEnded()) {\n g.setFont(new Font(\"ArcadeClassic\", Font.PLAIN, 45));\n g.setColor(Color.WHITE);\n g.drawString(\"You Lost!\", 50, 170);\n g.drawString(\"Score: \" + game.getScore(), 45, 250);\n g.setFont(new Font(\"ArcadeClassic\", Font.PLAIN, 35));\n g.drawString(\"Highscore: \" + game.getHighScore(), 30, 310);\n } else {\n g.setFont(new Font(\"ArcadeClassic\", Font.PLAIN, 20));\n g.setColor(Color.WHITE);\n g.drawString(\"Score: \" + game.getScore(), 80, 400);\n g.drawString(\"Highscore: \" + game.getHighScore(), 80, 450);\n }\n hasRendered = true;\n }", "public void renderAll()\n {\n \tthis.panel.rotateAngleX = -0.32f;\n this.lid.render(0.0625F);\n this.sideBox.render(0.0625F);\n this.box.render(0.0625F);\n this.panel.render(0.0625F);\n\n GL11.glDisable(GL11.GL_CULL_FACE);\n this.inner.render(0.0625F);\n GL11.glEnable(GL11.GL_CULL_FACE);\n \n this.innerStand.rotateAngleY = 0+rotateCentrifuge;\n this.innerStand.render(0.0625F);\n this.innerStand.rotateAngleY = 0.7854F+rotateCentrifuge;\n this.innerStand.render(0.0625F);\n }", "public void paintComponent(Graphics g)\n {\n paintBorder(g);\n paintPlanets(g);\n paintEnemies(g);\n paintEntity(g, player);\n paintCameraBox(g);\n }", "private void draw()\n {\n if(surfaceHolder.getSurface().isValid())\n {\n // Locks the surface. Can't be accessed or changed before it is unlocked again\n canvas = surfaceHolder.lockCanvas();\n\n // Background color\n canvas.drawColor(Color.BLACK);\n\n\n // ===================== DRAW SPRITES ======================= //\n // Draw Pacman\n canvas.drawBitmap(pacman.getBitmap(), pacman.getX(), pacman.getY(), paint);\n\n // Draw all Monsters\n for(Monster monster : monsterList)\n {\n canvas.drawBitmap(monster.getBitmap(), monster.getX(), monster.getY(), paint);\n }\n\n // Draw Cherries\n for(Cherry cherry : cherryList)\n {\n canvas.drawBitmap(cherry.getBitmap(), cherry.getX(), cherry.getY(), paint);\n }\n\n // Draw Key\n canvas.drawBitmap(key.getBitmap(), key.getX(), key.getY(), paint);\n\n // Draw Stars\n paint.setColor(Color.WHITE);\n for(Star star : starList)\n {\n paint.setStrokeWidth(star.getStarWidth());\n canvas.drawPoint(star.getX(), star.getY(), paint);\n }\n\n // ======================================================= //\n\n\n if(!gameEnded)\n {\n // Draw user HUD\n paint.setTextAlign(Paint.Align.LEFT);\n paint.setColor(Color.WHITE);\n paint.setTextSize(40);\n paint.setTypeface(Typeface.MONOSPACE);\n canvas.drawText(\"Level: \" + level, 10, 50, paint);\n canvas.drawText(\"Hi Score: \" + hiScore, (screenMax_X /4) * 3, 50 , paint);\n canvas.drawText(\"Score: \" + score, screenMax_X / 3, 50 , paint);\n canvas.drawText(\"New level in: \" + distanceRemaining + \"km\", screenMax_X / 3, screenMax_Y - 20, paint);\n canvas.drawText(\"Lives: \" + pacman.getLifes(), 10, screenMax_Y - 20, paint);\n canvas.drawText(\"Speed \" + pacman.getSpeed() * 100 + \" Km/h\", (screenMax_X /4) * 3, screenMax_Y - 20, paint);\n\n } else {\n\n // Draw 'Game Over' Screen\n paint.setTextAlign(Paint.Align.CENTER);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextSize(150);\n canvas.drawText(\"Game Over\", screenMax_X / 2, 350, paint);\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT);\n paint.setFakeBoldText(false);\n canvas.drawText(\"Hi Score: \" + hiScore, screenMax_X / 2, 480, paint);\n canvas.drawText(\"Your Score: \" + score, screenMax_X / 2, 550, paint);\n paint.setTextSize(80);\n canvas.drawText(\"Tap to replay!\", screenMax_X / 2, 700, paint);\n }\n\n if(levelSwitched)\n {\n // Notify the user whenever level is switched\n paint.setTextSize(100);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextAlign(Paint.Align.CENTER);\n canvas.drawText(\"Level \" + level + \"!\", screenMax_X / 2, 350, paint);\n }\n\n // Unlcock canvas and draw it the scene\n surfaceHolder.unlockCanvasAndPost(canvas);\n }\n }", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "protected void paintComponent(Graphics g)\n\t\t{\n\t\t\tsuper.paintComponent(g); \n\t\t\t//drawing the background\n\t\t\tg.drawImage(BackGround, 0, 0, null); \n\t\t\n\t\t\t//if(GameOn == true)\n\t\t\t//{\n\t\t\t//calling the paint function of the game characters\n\t\t\tpl.paint(g);\n\t\t\n\t\t\t\n\t\t\tfor(int i = 0 ; i < EnemyList.size(); i++)\n\t\t\t{\n\t\t\t\tEnemyList.get(i).paint(g);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//drawing the explosions\n\t\t\tg.drawImage(Explosion, enExplosionX, enExplosionY, null); \n\t\t\tg.drawImage(Explosion, plExplosionX, plExplosionY, null); \n\t\t\n\t\t\tfont = new Font(\"LCD\", Font.BOLD, 25);\n\t\t\tg.setFont(font);\n\t\t\t\n\t\t\t//g.drawString(\"Time: \" + formatTime(gameTime),\t\t\t0, 615);\n\t\t g.drawString(\"Rockets Remaining: \" + pl.NumRockets, \t0, 635);\n\t\t g.drawString(\"Bullets Remaining: \" + pl.NumBullets, \t0, 655);\n\t\t g.drawString(\"Enemies Destroyed: \" + DestroyedEnemies, 0, 675);\n\t\t g.drawString(\"Runaway Enemies: \" + RunAwayEnemies, 0, 695); \n\t\t//}\n\t\t \n\t\t\tif(BulletFired = true)\n\t\t {\n\t\t \tfor(int i = 0; i < BulletList.size();i++)\n\t\t \t{\n\t\t \t\tBulletList.get(i).paint(g); \n\t\t \t}\n\t\t }\n\t\t \n\t\t \t\t \n\t\t if(RocketFired = true)\n\t\t {\n\t\t \tfor(int i = 0; i < RocketList.size();i++)\n\t\t \t{\n\t\t \t\tRocketList.get(i).paint(g); \n\t\t \t}\n\t\t }\n\t\t\tif(GameOn == false){\n\t\t \tg.drawImage(GameOver, 200, 0, null);\n\t\t \t//g.drawString(\"Enemies Destroyed: \" + DestroyedEnemies, 250, 10);\n\t\t }\n\t\t else if (WinsState == true )\n\t\t {\n\t\t \tg.drawImage(GameWin, 200, 0, null);\n\t\t \n\t\t }\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n public void paintComponent(Graphics g) {\n loadScore();\n stage = Board.getStage();\n super.paintComponent(g);\n Font font = loadFont();\n ArrayList<Image> tankList = new ArrayList<>(\n Arrays.asList(imageInstance.getTankBasic(),\n imageInstance.getTankFast(),\n imageInstance.getTankPower(),\n imageInstance.getTankArmor()));\n\n // Display High totalScore\n g.setFont(font);\n g.setColor(Color.WHITE);\n g.drawString(\"STAGE \" + String.valueOf(stage), 230 + SHIFT, 200);\n\n g.setColor(Color.RED);\n g.drawString(\"1-PLAYER\", 235 + SHIFT, 240);\n\n g.setColor(Color.orange);\n g.drawString(\"Total points\", 180 + SHIFT, 270);\n\n g.setColor(Color.orange);\n g.drawString(String.valueOf(totalScore), 385 + SHIFT, 272);\n\n for (int i = 0; i < 4; i++) {\n g.drawImage(tankList.get(i), 380 + SHIFT, 290 + (i * 45), this);\n g.drawImage(imageInstance.getArrow(), 350 + SHIFT, 300 + (i * 45),\n this);\n }\n for (int i = 0; i < 4; i++) {\n g.setColor(Color.WHITE);\n g.drawString(String.valueOf(tankScoreList[i]), 185 + SHIFT,\n 312 + (i * 45));\n g.drawString(\"PTS\", 250 + SHIFT, 312 + (i * 45));\n }\n\n for (int i = 0; i < 4; i++) {\n g.setColor(Color.WHITE);\n g.drawString(String.valueOf(tankNumList[i]), 320 + SHIFT,\n 312 + (i * 45));\n }\n\n // total underline\n g.drawLine(270, 480, 500, 480);\n\n g.drawString(\"TOTAL killed\", 200 + SHIFT, 500);\n g.drawString(String.valueOf(totalTankNum), 400 + SHIFT, 500);\n g.setFont(font);\n g.setColor(Color.WHITE);\n }", "public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}", "private void render() {\n\t\tBufferStrategy bufferStrategy = getBufferStrategy(); //Create BufferStrategy object\n\n\t\t//If the Buffer Strategy doesn't exist, create one\n\t\tif(bufferStrategy == null) {\n\t\t\tcreateBufferStrategy(3); //Triple buffer\n\t\t\treturn; //Return\n\t\t}\n\n\t\tGraphics g = bufferStrategy.getDrawGraphics(); //Create Graphics object\n\t\tg.setColor(Color.black); //Set the colour of the object to black\n\t\tg.fillRect(0, 0, Game.WIDTH, Game.HEIGHT); //Fill the window\n\n\t\t//Start screen\n\t\tif(!startScreen.start && !player.dead && !player.win) {\n\t\t\tstartScreen.render(g); //Render the start screen\n\t\t\t//If the user presses enter\n\t\t\tif(enter) {\n\t\t\t\tstartScreen.start = true; //Game has started\n\t\t\t}\n\t\t}\n\n\t\t//Playing screen\n\t\tif(!player.dead && !player.win && startScreen.start) {\n\t\t\tlevel.render(g); //Render the level\n\t\t\tplayer.render(g); //Render the player to the graphics object\n\t\t\thp(g); //Render the hit points\n\t\t\tif(paused) {\n\t\t\t\tpauseScreen.render(g);\n\t\t\t}\n\t\t}\n\n\t\t//Dead screen\n\t\tif(player.dead){\n\t\t\tdeadScreen.render(g); //Render the dead screen\n\t\t}\n\n\t\t//Win screen\n\t\tif(player.win) {\n\t\t\twinScreen.render(g); //Render the win screen\n\t\t}\n\t\tg.dispose(); //Dispose of the object\n\t\tbufferStrategy.show(); //Show it\n\t}", "public void paintComponent(Graphics g)\n { \n cubes = game.getCubes();\n if (!game.is3D()) //2D\n {\n drawPoint(g, player.getX(), player.getY(), player.getZ(), player.getColor());\n if (cubes != null && !cubes.isEmpty())\n {\n for (Point cube : cubes)\n {\n double relx = cube.getX() - player.getX();\n double rely = cube.getY() - player.getY();\n drawPoint(g, cube.getX(), cube.getY(), cube.getZ(), cube.getColor());\n }\n }\n }\n else //is3D\n {\n drawPlayer(g, player.getColor());\n if (cubes != null && !cubes.isEmpty())\n {\n for (Point cube : cubes)\n {\n double relx = cube.getX() - player.getX();\n double rely = cube.getY() - player.getY();\n double toHoriz = -rely;\n if (toHoriz > 0)\n {\n double appHeight = VCONST / toHoriz;\n double screenx = HCONST * relx / toHoriz;\n drawSquare(g, cube, cube.getColor(), appHeight, screenx);\n }\n }\n }\n }\n updateLabel();\n }", "@Override\n public void paintComponent(Graphics g) {\n // always clear the screen first!\n g.clearRect(0, 0, WIDTH, HEIGHT);\n\n // GAME DRAWING GOES HERE\n \n \n // draw the blocks\n g.setColor(Color.black);\n for(int i = 0; i < blocks.length; i++){\n g.fillRect(blocks[i].x, blocks[i].y, blocks[i].width, blocks[i].height);\n }\n \n // middle ref (no longer needed)\n //g.setColor(Color.black);\n //g.drawRect(WIDTH/2 - 1, 0, 1, HEIGHT);\n \n // scores\n g.setFont(biggerFont);\n g.setColor(Color.blue);\n g.drawString(\"\" + tobyScore, WIDTH/2-100, 75);\n if(tobyWin){\n g.drawString(\"Toby Wins!\", WIDTH/2-115, 120);\n }\n g.setColor(Color.red);\n if(maxWin){\n g.drawString(\"Max Wins!\", WIDTH/2-115, 120);\n }\n g.drawString(\"\" + maxScore, WIDTH/2+100, 75);\n g.setColor(Color.white);\n g.setFont(titleFont);\n g.drawString(\"Toby N' Max: Capture the Flag!\", 25, 20);\n \n // draw the player\n g.setColor(Color.red);\n g.fillRect(max.x, max.y, max.width, max.height);\n g.setColor(Color.blue);\n g.fillRect(toby.x, toby.y, toby.width, toby.height);\n \n // draw the flag\n g.setColor(brown);\n for(int i = 0; i < flagPole.length; i++){\n g.fillRect(flagPole[i].x, flagPole[i].y, flagPole[i].width, flagPole[i].height);\n }\n \n g.setColor(purple);\n for(int i = 0; i < flag.length; i++){\n g.fillRect(flag[i].x, flag[i].y, flag[i].width, flag[i].height);\n }\n \n g.setColor(Color.white);\n for(int i = 0; i < flagLogo.length; i++){\n g.fillRect(flagLogo[i].x, flagLogo[i].y, flagLogo[i].width, flagLogo[i].height);\n }\n \n //g.setColor(Color.gray);\n // for(int i = 0; i < bombs.length; i++){\n // g.fillRect(bombs[i].x, bombs[i].y, bombs[i].width, bombs[i].height); \n //}\n \n \n // GAME DRAWING ENDS HERE\n }", "public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}", "@Override\r\n\tpublic void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\t//parent.log(\"Height = \" + getHeight());\r\n\t\tpaintGrid((Graphics2D) g);\r\n\t\tpaintMap((Graphics2D) g);\r\n\t\tif (parent.showMesh) paintMesh((Graphics2D) g);\r\n\t\tpaintParticles((Graphics2D) g);\r\n\t\tpaintRobot((Graphics2D) g);\r\n\t\tpaintTarget((Graphics2D) g);\r\n\t\tpaintPath((Graphics2D) g);\r\n\t\tpaintMoves((Graphics2D) g);\r\n\t\tpaintFeatures((Graphics2D) g);\r\n\t\tpaintWaypoints((Graphics2D) g);\r\n\t}", "private void draw(){\n if (ourHolder.getSurface().isValid()) {\n\n if (openMainMenu) {\n mainMenu();\n } else if (openGameOverMenu) {\n gameOverMenu();\n } else if (openUpgradesMenu) {\n upgradeMenu();\n } else if (openPauseMenu) {\n pauseMenu();\n } else {\n // Lock the canvas ready to draw\n gameCanvas = ourHolder.lockCanvas();\n\n // Draw the background\n gameCanvas.drawBitmap(btBgLeft, leftSideRect.left, leftSideRect.top, null);\n gameCanvas.drawBitmap(btBgMiddle, middleSideRect.left, middleSideRect.top, null);\n gameCanvas.drawBitmap(btBgRight, rightSideRect.left, rightSideRect.top, null);\n\n // HUD Rectangle\n String padding = \" | \";\n paint.setTextSize(30);\n paint.setColor(Color.argb(125, 0, 0, 0));\n gameCanvas.drawRect(hudRect, paint);\n paint.setColor(Color.argb(255, 255, 255, 255));\n gameCanvas.drawText(\"Bonus: \" + multiplier + padding + \"Score: \" + totalScore + padding + \"Shields: \" + shields + padding + \"Cash: £\" + cash, hudRect.left + (hudRect.right/25), hudRect.bottom - (hudRect.height()/3), paint);\n\n // Draw the invaders bullets if active\n for(int i = 0; i < invadersBullets.length; i++){\n paint.setColor(Color.argb(255, 228, 53, 37));\n if(invadersBullets[i].getStatus()) {\n gameCanvas.drawRect(invadersBullets[i].getRect(), paint);\n }\n }\n\n // Draw the players bullet if active\n if(bullet.getStatus()){\n paint.setColor(Color.argb(255, 30, 127, 224));\n gameCanvas.drawRect(bullet.getRect(), paint);\n }\n\n // Draw the player spaceship\n paint.setColor(Color.argb(255, 255, 255, 255));\n gameCanvas.drawBitmap(defender.getBitmap(), defender.getX(), screenY - defender.getHeight(), paint);\n\n // Draw the invaders\n for(int i = 0; i < numInvaders; i++){\n if(invaders[i].getVisibility()) {\n if(uhOrOh) {\n gameCanvas.drawBitmap(invaders[i].getBitmap(), invaders[i].getX(), invaders[i].getY(), paint);\n }else{\n gameCanvas.drawBitmap(invaders[i].getBitmap2(), invaders[i].getX(), invaders[i].getY(), paint);\n }\n }\n }\n\n // Pause button\n paint.setColor(Color.argb(125, 0, 0, 0));\n gameCanvas.drawRect(pauseRect, paint);\n paint.setTextSize((float) (screenX*0.0138));\n paint.setColor(Color.argb(255, 255, 255, 255));\n gameCanvas.drawText(\"PAUSE GAME\", pauseRect.left + (pauseRect.width()/10), pauseRect.bottom - (pauseRect.height()/3), paint);\n\n // Animations\n renderAnimations();\n\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(gameCanvas);\n }\n\n }\n }", "@Override\n public void render(GameContainer gc, StateBasedGame stateBasedGame, Graphics g) throws SlickException {\n //Loads this seperate, else the map is over-riding all drawn during the game\n loadMap.render(gc, stateBasedGame, g);\n //Render all objects\n for (GameObject obj : objects) {\n obj.render(gc, stateBasedGame, g);\n }\n Input input = gc.getInput();\n int mouseX = input.getMouseX();\n int mouseY = input.getMouseY();\n\n if (sellTower || upgradePressed) {\n if (input.isMousePressed(1)) {\n sellTower = false;\n upgradePressed = false;\n }\n }\n\n //Draws this tower\n for (BasicTower basicTower : basicTowers) {\n basicTower.basicClicked.draw(basicTower.towerX * w, basicTower.towerY * w, w, w);\n }\n //Draws this tower\n for (SniperTower sniperTower : sniperTowers) {\n sniperTower.sniperClicked.draw(sniperTower.towerX * w, sniperTower.towerY * w, w, w);\n }\n //Draws this tower\n for (QuickTower quickTower : quickTowers) {\n quickTower.quickClicked.draw(quickTower.towerX * w, quickTower.towerY * w, w, w);\n }\n //Draws this tower\n for (BomberTower bomberTower : bomberTowers) {\n bomberTower.bomberClicked.draw(bomberTower.bombertowerX * w, bomberTower.bombertowerY * w, w, w);\n }\n\n //This draws for each enemy its healthbar based on it current HP\n for (Enemy enemies : enemies) {\n Rectangle bar = new Rectangle(enemies.getStartPosX() * w + 8,\n enemies.getStartPosY() * w,\n 50 * enemies.getHP() / ((enemy.startHP + currentLevel)), 6);\n GradientFill fill = new GradientFill(enemies.getStartPosX() * w + 8,\n 0, new Color(255, 60, 0),\n enemies.getStartPosX() * w + 60, 0, new Color(255, 180, 0));\n // g.drawString(\"\" + enemies.getHP(), enemies.getStartPosX() * w, enemies.getStartPosY() * w);\n\n g.setColor(Color.darkGray);\n g.fillRect(enemies.getStartPosX() * w + 8, enemies.getStartPosY() * w, 50, 6);\n g.fill(bar, fill);\n\n enemies.e1.draw(enemies.getStartPosX() * w + 8,\n enemies.getStartPosY() * w + 8, w - 16, w - 16);\n }\n\n //Controls the bullets\n for (int i = 0; i < bulletList.size(); i++) {\n Bullets bullets = bulletList.get(i);\n basicbulletSheet.draw(bullets.location.getX(), bullets.location.getY(), 32, 32);\n bulletCircle = new Circle(bullets.location.getX(), bullets.location.getY(), 10);\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 25);\n if (bulletList.size() > 0 && bulletCircle.intersects(enemy.Playrect)) {\n bulletCount++;\n collides = true;\n enemy.setHP(enemy.getHP() - 1);\n if (collides) {\n bulletList.remove(i);\n } else {\n collides = false;\n }\n }\n }\n //If the bullet runs out of the screen, remove it\n if (bulletCircle.getX() > (loadMap.HEIGHT - 6) * w || bulletCircle.getY() > loadMap.WIDTH * w) {\n bulletList.remove(i);\n }\n //g.setColor(transparent);\n //g.fill(bulletCircle);\n }\n\n g.setColor(Color.green);\n g.drawString(\"Level: \" + currentLevel, 715, 385);\n\n //SELL TOWERS\n if (loadMap.MAP[mouseY / w][mouseX / w] == 12) {\n if (input.isMousePressed(0)) {\n sellTower = true;\n upgradePressed = false;\n }\n }\n //Remove sellTower or Upgradepressed if mouse is on a tower in the menu\n if (loadMap.MAP[mouseY / w][mouseX / w] == 8 || loadMap.MAP[mouseY / w][mouseX / w] == 6 ||\n loadMap.MAP[mouseY / w][mouseX / w] == 10 || loadMap.MAP[mouseY / w][mouseX / w] == 4) {\n sellTower = false;\n upgradePressed = false;\n }\n\n //Visible if selltower is pressed\n if (sellTower) {\n loadMap.MAP[4][11] = 13;\n } else {\n loadMap.MAP[4][11] = 12;\n }\n //Sell Basic\n if (loadMap.MAP[mouseY / w][mouseX / w] == 5 && basicTowers.listIterator().hasNext()) {\n BasicTower b = getBasicTower(mouseY / w, mouseX / w);\n g.drawString(\"BasicTower\", 715, 445);\n g.drawString(\"Refund value: \" + basicTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + basicTowers.listIterator().next().upgradeCost, 715, 505);\n if (b != null) {\n g.drawString(\"Tower Level: \" + b.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n BasicTower t = getBasicTower(mouseY / w, mouseX / w);\n if (t != null) {\n player.addCredits(t.refundValue);\n basicTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n\n //Sell Bomber\n if (loadMap.MAP[mouseY / w][mouseX / w] == 7 && bomberTowers.listIterator().hasNext()) {\n BomberTower b = getBomberTower(mouseY / w, mouseX / w);\n g.drawString(\"BomberTower\", 715, 445);\n g.drawString(\"Refund value: \" + bomberTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + bomberTowers.listIterator().next().upgradeCost, 715, 505);\n if (b != null) {\n g.drawString(\"Tower Level: \" + b.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n BomberTower t = getBomberTower(mouseY / w, mouseX / w);\n if (t != null) {\n player.addCredits(t.refundValue);\n bomberTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n\n //Sell QuickTower\n if (loadMap.MAP[mouseY / w][mouseX / w] == 9 && quickTowers.listIterator().hasNext()) {\n QuickTower b = getQuickTower(mouseY / w, mouseX / w);\n g.drawString(\"QuickTower\", 715, 445);\n g.drawString(\"Refund value: \" + quickTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + quickTowers.listIterator().next().upgradeCost, 715, 505);\n if (b != null) {\n g.drawString(\"Tower Level: \" + b.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n QuickTower t = getQuickTower(mouseY / 64, mouseX / 64);\n if (t != null) {\n player.addCredits(t.refundValue);\n quickTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n //Sell Sniper\n if (loadMap.MAP[mouseY / w][mouseX / w] == 11 && sniperTowers.listIterator().hasNext()) {\n SniperTower s = getSniperTower(mouseY / w, mouseX / w);\n g.drawString(\"SniperTower\", 715, 445);\n g.drawString(\"Refund Value: \" + sniperTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + sniperTowers.listIterator().next().upgradeCost, 715, 505);\n if (s != null) {\n g.drawString(\"Tower Level: \" + s.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n SniperTower t = getSniperTower(mouseY / 64, mouseX / 64);\n if (t != null) {\n player.addCredits(t.refundValue);\n sniperTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n\n\n //UPGRADE TOWERS\n if (loadMap.MAP[mouseY / w][mouseX / w] == 14) {\n if (input.isMousePressed(0)) {\n upgradePressed = true;\n }\n }\n //Visible if upgradePressed is pressed\n if (upgradePressed) {\n loadMap.MAP[4][13] = 15;\n } else {\n loadMap.MAP[4][13] = 14;\n }\n\n //Upgrade Basic\n if (loadMap.MAP[mouseY / w][mouseX / w] == 5 && basicTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n BasicTower t = getBasicTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.ap = t.ap + 1;\n t.coolDown = t.coolDown - 50;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n //Upgrade Bomber\n if (loadMap.MAP[mouseY / w][mouseX / w] == 7 && bomberTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n BomberTower t = getBomberTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.attackPower++;\n //t.Radius = t.setRadius();\n t.coolDown = t.coolDown - 300;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n //Upgrade Quick\n if (loadMap.MAP[mouseY / w][mouseX / w] == 9 && quickTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n QuickTower t = getQuickTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.attackPower++;\n //t.Radius = t.setRadius();\n t.coolDown = t.coolDown - 20;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n //Upgrade Sniper\n if (loadMap.MAP[mouseY / w][mouseX / w] == 11 && sniperTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n SniperTower t = getSniperTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.attackPower++;\n //t.Radius = t.setRadius();\n t.coolDown = t.coolDown - 500;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n g.setFont(pauseFont);\n g.setColor(white);\n g.drawString(\"PRESS 'ESC' FOR PAUSE\", 100,8);\n\n }", "public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }", "public void draw() {\n\n }", "protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n // draw all piles and the remaining cards left in the deck\n for (int i = 0; i < mainPiles.length; i++) {\n mainPiles[i].draw(g);\n }\n for (int i = 0; i < suitPiles.length; i++) {\n suitPiles[i].draw(g);\n }\n deckPile.draw(g);\n deck.draw(g);\n \n if (selectedPile != null) {\n selectedPile.draw(g);\n }\n }", "public void paintComponent (Graphics g){\r\n\t\tsuper.paintComponent(g);\r\n\t\t//MAIN MENU SCREEN (RULES)\r\n\t\tif (screen == 0) {\r\n\t\t\tg.clearRect (0, 0, this.getWidth (), this.getHeight ());\r\n\t\t\tg.setColor((Color.BLACK));\r\n\t\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n\t\t\tg.drawImage(rulesImage, 185, 10, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"A game of memory skill!\",150,245);\r\n\t\t\tg.setFont (ARIAL_TEXT);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"The game will show you a colour pattern.\", 160, 270);\r\n\t\t\tg.drawString(\"Remember which colours were lit up. Once the \", 140, 300); \r\n\t\t\tg.drawString(\"pattern is finished, repeat it to pass to the next level.\", 130, 330);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"PLAY\", 250, 390);\t\r\n\t\t}\r\n\t\t//ORIGINAL COLOURS\r\n\t\telse if (screen == 1){\r\n\t\t\t//Draws Game Titles (Text)\r\n\t\t\tg.drawImage (logoImage, 5, 30, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n//\t\t\tg.setColor(Color.WHITE);\r\n//\t\t\tString scoreTitle = \"Score: \" + score;\r\n//\t\t\tString highestTitle = \"Highest: \" + highest;\r\n//\t\t\tg.drawString(scoreTitle, 420, 50);\r\n//\t\t\tg.drawString(highestTitle, 420, 80);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"Press to Start\", 12, 100);\r\n\t\t\t\r\n\t\t\t//Draws Colours \r\n\t\t\tg.setColor(REDFADE);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t\tg.setColor(GREENFADE);\r\n\t\t\tg.fillArc(150, 100, 300, 300, 90, 90);\r\n\t\t\tg.setColor(YELLOWFADE);\r\n\t\t\tg.fillArc(150, 110, 300, 300, 180, 90);\r\n\t\t\tg.setColor(BLUEFADE);\r\n\t\t\tg.fillArc(160, 110, 300, 300, 270, 90);\r\n\t\t}\r\n\t\t//MONOCHROMATIC COLOURS\r\n\t\telse if (screen == 2){\r\n\t\t\t//Draws Game Titles (Text)\r\n\t\t\tg.drawImage (logoImage, 5, 30, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n//\t\t\tg.setColor(Color.WHITE);\r\n//\t\t\tString scoreTitle = \"Score: \" + score;\r\n//\t\t\tString highestTitle = \"Highest: \" + highest;\r\n//\t\t\tg.drawString(scoreTitle, 420, 50);\r\n//\t\t\tg.drawString(highestTitle, 420, 80);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"Press to Start\", 12, 100);\r\n\t\t\t\r\n\t\t\t//Draws Colours\r\n\t\t\tg.setColor(PURPLE_1);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t\tg.setColor(PURPLE_2);\r\n\t\t\tg.fillArc(150, 100, 300, 300, 90, 90);\r\n\t\t\tg.setColor(PURPLE_3);\r\n\t\t\tg.fillArc(150, 110, 300, 300, 180, 90);\r\n\t\t\tg.setColor(PURPLE_4);\r\n\t\t\tg.fillArc(160, 110, 300, 300, 270, 90);\r\n\t\t}\r\n\t\t//TROPICAL COLOURS\r\n\t\telse if (screen == 3){\r\n\t\t\t//Draws Game Titles (Text)\r\n\t\t\tg.drawImage (logoImage, 5, 30, this);\r\n\t\t\tg.setFont (ARIAL_BOLD);\r\n//\t\t\tg.setColor(Color.WHITE);\r\n//\t\t\tString scoreTitle = \"Score: \" + score;\r\n//\t\t\tString highestTitle = \"Highest: \" + highest;\r\n//\t\t\tg.drawString(scoreTitle, 420, 50);\r\n//\t\t\tg.drawString(highestTitle, 420, 80);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"Press to Start\", 12, 100);\r\n\t\t\t\r\n\t\t\t//Draws Colours\r\n\t\t\tg.setColor(PINK_TROP);\r\n\t\t\tg.fillArc(160, 100, 300, 300, 0, 90);\r\n\t\t\tg.setColor(GREEN_TROP);\r\n\t\t\tg.fillArc(150, 100, 300, 300, 90, 90);\r\n\t\t\tg.setColor(ORANGE_TROP);\r\n\t\t\tg.fillArc(150, 110, 300, 300, 180, 90);\r\n\t\t\tg.setColor(BLUE_TROP);\r\n\t\t\tg.fillArc(160, 110, 300, 300, 270, 90);\r\n\t\t}\r\n\t\t//GAME OVER\r\n\t\telse if (screen == 4){\r\n\t\t\tg.drawImage (gameoverImage, 40, 50, this);\r\n\t\t\tg.setFont(ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.YELLOW);\r\n\t\t\tg.drawString(\"BETTER LUCK NEXT TIME\", 135, 270);\r\n\t\t\tString scoreTitle = \"Your Score: \" + score;\r\n\t\t\tString highestTitle = \"Highest Score: \" + highest;\r\n\t\t\tg.drawString(scoreTitle, 200, 300);\r\n\t\t\tg.drawString(highestTitle, 180, 330);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tg.drawString(\"PLAY\", 250, 390);\r\n\t\t}\r\n\t\t//YOU WIN\r\n\t\telse if (screen == 5){\r\n\t\t\tg.drawImage (winnerImage, 0, 0, this);\r\n\t\t\tg.setFont(ARIAL_BOLD);\r\n\t\t\tg.setColor(Color.WHITE);\r\n\t\t\tString scoreTitle = \"Your Score: \" + score;\r\n\t\t\tString highestTitle = \"Highest Score: \" + highest;\r\n\t\t\tg.drawString(scoreTitle, 205, 330);\r\n\t\t\tg.drawString(highestTitle, 185, 360);\r\n\t\t\tg.drawString(\"PLAY\", 250, 390);\r\n\t\t}\r\n\r\n\t}", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "@Override\n\tpublic void draw() {\n\t}" ]
[ "0.8077796", "0.77445465", "0.77018523", "0.76752645", "0.7625284", "0.7607405", "0.76039016", "0.7590373", "0.7551107", "0.75392056", "0.748235", "0.7465685", "0.7457964", "0.7382418", "0.7369065", "0.73535025", "0.7344005", "0.732218", "0.73167795", "0.7293951", "0.72883373", "0.72824305", "0.7280889", "0.726764", "0.72546214", "0.7244664", "0.7234188", "0.72252715", "0.7224271", "0.7202936", "0.71777374", "0.7173657", "0.71439797", "0.71380115", "0.71360993", "0.71360993", "0.7132923", "0.7130188", "0.7129788", "0.7124668", "0.7124567", "0.71208555", "0.711461", "0.71078175", "0.7104418", "0.70840216", "0.7071013", "0.7070903", "0.70694643", "0.7063874", "0.7061655", "0.705895", "0.70553213", "0.7048917", "0.7045257", "0.7041762", "0.70416427", "0.7041461", "0.7038446", "0.7036431", "0.7036107", "0.70347244", "0.70279723", "0.701917", "0.70119846", "0.700836", "0.70060486", "0.7005904", "0.7005747", "0.7002027", "0.69989496", "0.6994612", "0.6984054", "0.6970795", "0.69707847", "0.6964558", "0.6964016", "0.6959428", "0.69585514", "0.69574016", "0.69562906", "0.69562906", "0.6955644", "0.6955644", "0.6952245", "0.6949448", "0.69486123", "0.69441533", "0.6939689", "0.69218385", "0.69205046", "0.69174325", "0.6916065", "0.69097537", "0.6907297", "0.6907014", "0.69039035", "0.69003826", "0.6895165", "0.68918365", "0.6889301" ]
0.0
-1
very general listener, if something happens
@Override public void actionPerformed(ActionEvent e) { //gameUpdater is an inner class //It's containing class is Main //moveBall() and moveComputerPaddle belong to the outer class - now their own classes //So we have to say Ball.moveBall() and ComputerPaddle.moveComputerPaddle() to refer to these methods Ball.moveBall(); ComputerPaddle.moveComputerPaddle(); System.out.println("Time going"); if (gameOver) { timer.stop(); } gamePanel.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setListener() {\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public interface Listener {}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "@Override\n\tpublic void setListener() {\n\n\t}", "@Override\n\tpublic void getListener(){\n\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "protected abstract void startListener();", "abstract public void addListener(Listener listener);", "private void initListener() {\n }", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "public interface Listener {\n}", "public interface Listener {\n}", "public interface IEvenListener {\n}", "public interface Listener{\n\t\tpublic void notify(Map<String,Serializable> datas);\n\t}", "public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}", "void onHisNotify();", "@Override\n\tprotected void initListener() {\n\n\t}", "void onListeningFinished();", "private void eventhandler() {\n\r\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\r\n\tpublic void initListener() {\n\r\n\t}", "protected void registerListener() {\r\n\t\t// do nothing\r\n\t}", "Move listen(IListener ll);", "protected Listener(){super();}", "public ASListener(){\n \t\treload();\n \t}", "public void initListener() {\n }", "public interface OperateListener {\n Object oper(Object obj);\n\n}", "private void checkTickListener()\n\t{\n\t}", "void pharmacyListener(){\n \n }", "void onListenerChanged(ListenerUpdate update);", "private void fireOnTweetsReceived(ArrayList<AbstractTweet> arlis) {\n if ( mOnNewTweet != null ){\n mOnNewTweet.onNewTweet(arlis);\n }\n else{\n throw new NullPointerException(\"fireOnTweetsReceived(): WARNING:: we don't have listener registered. Suspicious logic\"); \n }\n }", "public void consulterEvent() {\n\t\t\n\t}", "public interface RehaTPEventListener extends EventListener {\npublic void rehaTPEventOccurred(RehaTPEvent evt );\n/*public void RehaTPEventOccurred(TerminFenster evt );\npublic void RehaTPEventOccurred(Container evt );\npublic void RehaTPEventOccurred(Object evt );\npublic void RehaTPEventOccurred(SystemLookAndFeel evt );\n*/\n}", "public void addListener(EventListener listener);", "void subscribeToEvents(Listener listener);", "@Override\r\n\tprotected void initListener() {\n\t\tsuper.initListener();\r\n\t}", "void addCompletedEventListener(IGameStateListener listener);", "public interface BookSearchListener {\r\n void onStart();\r\n void onFind(BookInfo info);\r\n void onEnd(int code);\r\n}", "public interface OnEventAvailableListener {\n\tpublic void OnEventAvailable(Message msg);\n}", "private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }", "void addListener(BotListener l);", "void setListener(Listener listener);", "void onListeningStarted();", "public interface OnRecordListener {\n void onRecord();\n\n void onRecordCancel();\n\n void onRecordFinish();\n}", "public interface theListener {\n public void itemToSend(String s);\n }", "public interface LogListener {\n void onReadLogComplete();\n}", "public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }", "public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }", "protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "boolean onEvent(Event event);", "public interface Listener {\n\n public void onRecievedCustomBroadCast(String msg);\n}", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "public interface onFoundListener {\n void onFound(String result);\n}", "public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}", "@Override\n\tpublic void staticByViewListener() {\n\t\t\n\t}", "public interface MonitoringEventListener {\n\n /**\n * Callback for received STDOUT lines.\n * \n * @param line stdout line\n */\n void appendStdout(String line);\n\n /**\n * Callback for received STDERR lines.\n * \n * @param line stderr line\n */\n void appendStderr(String line);\n\n /**\n * Callback for additional user information lines (validation, progress, ...).\n * \n * @param line information line\n */\n void appendUserInformation(String line);\n}", "@Override\n\tpublic boolean listen(ArrayList<Track> tracks, DrumPoint drum, int begin, int end) {\n\t\treturn false;\n\t}", "public interface OnAboutListener {\n public void onAbout();\n }", "public interface IBaseListener {\n}", "public void callback() {\n }", "void addListener(GameEventListener listener);", "@Override\n\tpublic boolean listen(DrumPoint drum, int begin, int end) {\n\t\treturn false;\n\t}", "public interface EldersInfoListener {\n void eldersInfoListener(int position);\n}", "public interface EnqueteListListener {\n}", "public interface CardListener {\n void callback(CardInfo cardInfo);\n}", "private void setListeners() {\n\n }", "void eventChanged();", "public interface Listener {\n\t\t/**\n\t\t * Function for processing synchronized kinect data. The two most recent depth and rgb images are passed along\n\t\t * with their time stamps. The user can spend as much time inside this function without screwing up the\n\t\t * video feeds. Just make sure you exit it before calling stop.\n\t\t * @param rgb Color image\n\t\t * @param depth Depth image\n\t\t * @param timeRgb Time-stamp for rgb image\n\t\t * @param timeDepth Time-stamp for depth image\n\t\t */\n\t\tpublic void processKinect(MultiSpectral<ImageUInt8> rgb, ImageUInt16 depth, long timeRgb, long timeDepth);\n\t}", "public abstract void registerListeners();", "public void listenChkBoxAddListner(ActionListener listener)\r\n\t{\r\n\t\tlistenChkBox.addActionListener(listener);\r\n\t}", "public interface EventListener {\n\n /**\n * Called when an event (function call) finishes successfully in MockRestRequest. Does *not* trigger if the event\n * (function) fails.\n * @param mockRestRequest the {@link MockRestRequest} where the event occurred.\n * @param event the {@link Event} that occurred.\n */\n public void onEventComplete(MockRestRequest mockRestRequest, Event event);\n }", "public interface PuzzleGatherListener {\n\n void onGathered();\n\n}", "protected void notifyListeners(BAEvent event) {\n \t\ttmc.callListeners(event); /// Call our listeners listening to only this match\n \t\tevent.callEvent(); /// Call bukkit listeners for this event\n \t}", "void subscribeReceiveListener(IDataReceiveListener listener);", "public interface OnGetPayFinishedListener {\n void OnGetPayError(String message);\n void OnGetPaySuccess(String message);\n}", "public MyListener() {\r\n }", "void mo9949a(StatusListener eVar);", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "public interface OnLoadListener {\n void onSucess(String string);\n}", "public FluoriteListener() {\r\n\t\tidleTimer = new IdleTimer();\r\n\t\tEHEventRecorder eventRecorder = EHEventRecorder.getInstance();\r\n//\t\tEventRecorder eventRecorder = EventRecorder.getInstance();\r\n\r\n//\t\teventRecorder.addCommandExecutionListener(this);\r\n//\t\teventRecorder.addDocumentChangeListener(this);\r\n//\t\teventRecorder.addRecorderListener(this);\r\n\t\teventRecorder.addEclipseEventListener(this);\r\n\t}", "public interface GetHistoryNewsListener {\n void onGetHistoryNewsSuccess(HistoryNews historyNews);\n\n void onGetHistoryNewsFailed();\n}", "public static interface AwaleListener {\r\n\t/**\r\n\t * Called when the state of the awale changed.\r\n\t */\r\n\tpublic void awaleChanged(Awale awale, short eventType, short row,\r\n\t short column);\r\n }", "public interface HomeResponseListener\n extends ResponseListener\n{\n\n public abstract void completed(ServiceCall servicecall);\n\n public abstract void receivedCartItems(CartItems cartitems, ServiceCall servicecall);\n\n public abstract void receivedCompletedRemembersItemIds(List list, ServiceCall servicecall);\n\n public abstract void receivedLoginData(LoginData logindata, ServiceCall servicecall);\n\n public abstract void receivedNotification(Notification notification, ServiceCall servicecall);\n\n public abstract void receivedPromoSlot0(PromoSlot promoslot, ServiceCall servicecall);\n\n public abstract void receivedPromoSlot1(PromoSlot promoslot, ServiceCall servicecall);\n\n public abstract void receivedShoveler0(HomeShoveler homeshoveler, ServiceCall servicecall);\n\n public abstract void receivedShoveler1(HomeShoveler homeshoveler, ServiceCall servicecall);\n}", "private void listener(View v) {\n\t\t\tswitch (v.getId()) {\n\t\t\t// 返回\n\t\t\tcase R.id.image_more_subscribe_return:\n\t\t\t\tfinish();\n\n\t\t\t\tbreak;\n\t\t\t// 保存\n\t\t\tcase R.id.txt_more_subscribe_submit:\n\t\t\t\tstartIntent();\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\t// 职位订阅 开关\n\t\t\tcase R.id.tb_sets_subscribe_open:\n\t\t\t\tif (status == 1) {\n\t\t\t\t\tsetPushClose();\n\t\t\t\t\ttb_sets_subscribe_open\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.ic_button_cloes);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t} else if (status == 0) {\n\t\t\t\t\ttb_sets_subscribe_open\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.ic_button_open);\n\t\t\t\t\tsetPushOpen();\n\t\t\t\t\tstatus = 1;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t// 职位类别\n\t\t\tcase R.id.set_job_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\"position_subscriber_sets_classify\");\n\t\t\t\tIntent classIntent = new Intent(context,PositionClassActivityss.class);\n\t\t\t\tclassIntent.putExtra(\"posi_code\", posi_code);\n\t\t\t\tclassIntent.putExtra(\"posi_value\", posi_value);\n\t\t\t\tclassIntent.putExtra(\"request\", 5);\n\t\t\t\tstartActivityForResult(classIntent, REQUESTCODE_POSITIONCLASS);\n\t\t\t\t((Activity) context).overridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 工作地点\n\t\t\tcase R.id.set_place_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context, \"position_subscriber_sets_area\");\n\t\t\t\tIntent addressIntent = new Intent(context, AddressActivitys.class);\n\t\t\t\taddressIntent.putExtra(\"areaCode\", address_code);\n\t\t\t\tstartActivityForResult(addressIntent, REQUESTCODE_ADDRESS);\n\t\t\t\t((Activity) context).overridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 薪资待遇\n\t\t\tcase R.id.set_salary_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\"position_subscriber_sets_salary\");\n\t\t\t\tIntent intent_SalaryActivity = new Intent(context,SalaryActivity.class);\n\t\t\t\tintent_SalaryActivity.putExtra(\"request\", 3);\n\t\t\t\tstartActivityForResult(intent_SalaryActivity, 3);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 食宿情况\n\t\t\tcase R.id.set_room_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\n\t\t\t\t\t\t\"position_subscriber_sets_room_board\");\n\t\t\t\tIntent intent_RoonActivity = new Intent(context,\n\t\t\t\t\t\tRoonActivity.class);\n\t\t\t\tintent_RoonActivity.putExtra(\"request\", 4);\n\t\t\t\tstartActivityForResult(intent_RoonActivity, 4);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// ְ职位性质\n\t\t\tcase R.id.set_jodnature_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\n\t\t\t\t\t\t\"position_subscriber_sets_work_mode\");\n\t\t\t\tIntent intent_JobNatureActivity = new Intent(context,\n\t\t\t\t\t\tJobNatureActivity.class);\n\t\t\t\tintent_JobNatureActivity.putExtra(\"request\", 5);\n\t\t\t\tstartActivityForResult(intent_JobNatureActivity, 5);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 推送频率\n\t\t\tcase R.id.set_push_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\n\t\t\t\t\t\t\"position_subscriber_sets_push_frequency\");\n\t\t\t\tIntent intent_PushFrequencyActivity = new Intent(context,\n\t\t\t\t\t\tPushFrequencyActivity.class);\n\t\t\t\tintent_PushFrequencyActivity.putExtra(\"request\", 6);\n\t\t\t\tstartActivityForResult(intent_PushFrequencyActivity, 6);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public interface MessageReceivedListener {\n\t\n\t/**\n\t * Called when new command/message received\n\t * @param msg Command/message as String\n\t */\n\tpublic void OnMessageReceived(String msg);\n\t\n\t/**\n\t * Called when new file is incoming.\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileIncoming(int length);\n\t\n\t/**\n\t * Called when more data of a file has been transfered\n\t * @param data Byte array of data received\n\t * @param read The lenght of the data received as int\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileDataReceived(byte[] data,int read, int length, int downloaded);\n\t\n\t/**\n\t * Called when file transfer is complete\n\t * @param got\n\t * @param expected\n\t */\n\tpublic void OnFileComplete();\n\t\n\t/**\n\t * Called when an error occur\n\t */\n\tpublic void OnConnectionError();\n\t\n\t/**\n\t * Called when socket has connected to the server\n\t */\n\tpublic void OnConnectSuccess();\n}", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "public interface JokeListener {\n void onJokeFetched(String joke);\n}", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "@Override\n public void head()\n {\n pushListener(new VoidListener());\n }", "private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}", "@Override\n public void onSure() {\n\n }", "static void testMusicOnCompletionListener()\n\t{\n\t\tif (music == null)\n\t\t{\n\t\t\tloadMusic();\n\t\t}\n\t\t\n\t\tmusicOnCompletionListener.onCompletion(null);\n\t}", "protected void notifyListeners() {\n // TODO could these be done earlier (or just once?)\n JMeterContext threadContext = getThreadContext();\n JMeterVariables threadVars = threadContext.getVariables();\n SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);\n if (pack == null) {\n // If child of TransactionController is a ThroughputController and TPC does\n // not sample its children, then we will have this\n // TODO Should this be at warn level ?\n log.warn(\"Could not fetch SamplePackage\");\n } else {\n SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);\n // We must set res to null now, before sending the event for the transaction,\n // so that we can ignore that event in our sampleOccured method\n res = null;\n- // bug 50032 \n- if (!getThreadContext().isReinitializingSubControllers()) {\n- lnf.notifyListeners(event, pack.getSampleListeners());\n- }\n+ lnf.notifyListeners(event, pack.getSampleListeners());\n }\n }", "public interface OnCallingListener {\n void onCallEnd();\n}", "public ClickListener(){\n System.out.println(\"I've been attached\");\n }" ]
[ "0.6976103", "0.69402194", "0.69402194", "0.6871971", "0.6871971", "0.68563926", "0.68029165", "0.6776014", "0.6770984", "0.67565364", "0.6713156", "0.6565816", "0.65543544", "0.6517873", "0.65050435", "0.65050435", "0.6483429", "0.6434475", "0.6412649", "0.636907", "0.6363933", "0.63314635", "0.6326029", "0.6317891", "0.6301174", "0.62896824", "0.62876695", "0.6284239", "0.62585723", "0.62565553", "0.6215508", "0.620756", "0.6201123", "0.6186195", "0.6149335", "0.61424613", "0.6135123", "0.613464", "0.61233586", "0.61046594", "0.60676795", "0.60651875", "0.6060121", "0.6055429", "0.6052942", "0.6052386", "0.60491455", "0.60468507", "0.6042894", "0.60203063", "0.60163045", "0.60127056", "0.60127056", "0.6010144", "0.5994697", "0.5994624", "0.5993928", "0.5992863", "0.59906566", "0.5976614", "0.5974498", "0.59704876", "0.5967813", "0.5958198", "0.59508765", "0.59506696", "0.5950401", "0.5940398", "0.5932069", "0.5931961", "0.592859", "0.5926404", "0.59124804", "0.59048295", "0.5897286", "0.5896143", "0.58915776", "0.58890146", "0.588866", "0.58823204", "0.58815694", "0.5879291", "0.5875434", "0.5871531", "0.5869787", "0.5868911", "0.5867667", "0.5862944", "0.5861939", "0.585355", "0.58534664", "0.5845221", "0.5835908", "0.5832639", "0.58257806", "0.58244586", "0.58236474", "0.58214223", "0.5820874", "0.5818399", "0.581476" ]
0.0
-1
/ renamed from: a
public final void mo64209a(JSONObject jSONObject, C27876a aVar) { if (jSONObject != null) { C42961az.m136380a(new C43457b(jSONObject.optInt("status", 0))); aVar.mo71363a((Object) null); } }
{ "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
public OrganismPanel organism; Launch the application.
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { GUI window = new GUI(); window.frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void launchApp();", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "@Override\n public void projectOpened() {\n ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);\n JPanel myContentPanel = new JPanel(new BorderLayout());\n ShareToolWin toolWin = new ShareToolWin();\n myContentPanel.add(toolWin.getRootPanel(), BorderLayout.CENTER);\n ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, false, ToolWindowAnchor.LEFT);\n toolWindow.getComponent().add(myContentPanel);\n }", "public void launchNewSession(){\r\n framework.launchNewMAV(getArrayMappedToData(), this.experiment, \"Multiple Experiment Viewer - Cluster Viewer\", Cluster.GENE_CLUSTER);\r\n }", "public abstract Datastore launchGUI(Datastore theDatastore);", "public void openPharmacyPanel(){\n\t\tpanel.setVisible(true);\n\t}", "public String openAssociationSystem() {\n String welcome = \"Welcome to the setup of the soccer association system\";\n return welcome;\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n layout.setSizeUndefined();\n popupWindow.setSizeUndefined();\n popupWindow.setModal(false);\n popupWindow.setClosable(true);\n\n popupWindow.addComponent(this);\n getMainApplication().getMainWindow().addWindow(popupWindow);\n\n onDisplay();\n }", "@FXML\n public final void openPlanetScreen() {\n ScreenNavigator.loadScreen(ScreenNavigator.PLANET);\n }", "private void openActivity() {\n }", "public Object open() {\n // Create a new shell object and set the text for the dialog.\n Shell parent = getParent();\n shell = new Shell(parent, SWT.DIALOG_TRIM);\n shell.setText(\"Edit Colormaps\");\n\n // Setup all of the layouts and the controls.\n setup();\n\n // Open the shell to display the dialog.\n shell.open();\n\n // Wait until the shell is disposed.\n Display display = parent.getDisplay();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n\n return null;\n }", "public static void main(String[] args) {\n try {\n EcranPrincipal window = new EcranPrincipal();\n window.open();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }", "DesktopAgent getDesktop();", "public void launchExplorer() {\n SimulatedEnvironment env = new SimulatedEnvironment(this.domain, this.initialState);\n VisualExplorer exp = new VisualExplorer(this.domain, env, this.v, 800, 800);\n exp.addKeyAction(\"w\", GridWorldDomain.ACTION_NORTH, \"\");\n exp.addKeyAction(\"s\", GridWorldDomain.ACTION_SOUTH, \"\");\n exp.addKeyAction(\"d\", GridWorldDomain.ACTION_EAST, \"\");\n exp.addKeyAction(\"a\", GridWorldDomain.ACTION_WEST, \"\");\n\n //exp.enableEpisodeRecording(\"r\", \"f\", \"irlDemo\");\n\n exp.initGUI();\n }", "public void displayMission(MainDesktopPane desktop) {\n\t\tList<?> selection = getSelection();\n\t\tif (selection.size() > 0) {\n\t\t\tObject selected = selection.get(0);\n\t\t\tif (selected instanceof Mission) {\n\t\t\t\t((MissionWindow) desktop.getToolWindow(MissionWindow.NAME)).selectMission((Mission) selected);\n\t\t\t\tdesktop.openToolWindow(MissionWindow.NAME);\n\t\t\t}\n\t\t}\n\t}", "public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }", "public ScoutingApp(){\n\t\tteamPanel.add(teamsListPanel);\n\t\t\n\t\tmatchPanel.add(matchesListPanel);\n\t\t\n\t\tadd(teamPanel, BorderLayout.WEST);\n\t\tadd(matchPanel, BorderLayout.EAST);\n\t\t\n\t\tsetTitle(\"Scouting Application\");\n\t\tsetSize(1000, 600);\n\t\tsetLocationRelativeTo(null);\n\t\t//setExtendedState(MAXIMIZED_BOTH);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tsetVisible(true);\n\t}", "public static void main(String[] args) {\n\tNaukriPopup oo= new NaukriPopup();\n\too.launch();\n\too.launch1();\n}", "public void Open() {\r\n\t click();\r\n\t }", "@Override\n\tpublic void execute() {\n\t\tProjectOpenAllPrompt prompt = new ProjectOpenAllPrompt();\n\t\tprompt.setProceedEvent(ee -> {\n\t\t\tprompt.close();\n\t\t\tString name = ((Button) ee.getSource()).getId();\n\t\t\tIGameRunner gameRunner = new GameRunner();\n\t gameRunner.playGame(name);\n\t\t});\n\t\tprompt.show();\n\t}", "public LauncherPanel(String conffile) {\n initComponents();\n \n Properties props = new Properties();\n try {\n FileInputStream in = new FileInputStream( conffile );\n props.load(in);\n } catch (FileNotFoundException fe) {\n System.err.println(\"Missing \" + conffile + \" -file!\");\n System.exit(-1);\n } catch (IOException ie) {\n System.err.println(\"Reading \" + conffile + \" failed!\");\n System.exit(-1); \n } catch (Exception e) {\n System.err.println(\"Reading properties failed \\n\" + e);\n System.exit(-1);\n }\n \n timeout = Integer.parseInt(props.getProperty(\"timeout\", \"10000\"));\n jLabel1.setText(props.getProperty(\"title\", \"Application launcher\"));\n jLabel2.setText(props.getProperty(\"launch\", \"Launch applications\"));\n jLabel3.setText(props.getProperty(\"leagues\", \"Leagues\")); \n \n workingDir = new File(props.getProperty(\"workingdir\"));\n separator = props.getProperty(\"separator\");\n extension = props.getProperty(\"extension\");\n app1 = props.getProperty(\"app1\");\n app2 = props.getProperty(\"app2\");\n app3 = props.getProperty(\"app3\");\n app4 = props.getProperty(\"app4\");\n \n String app1name = props.getProperty(\"app1name\");\n String app2name = props.getProperty(\"app2name\");\n String app3name = props.getProperty(\"app3name\");\n String app4name = props.getProperty(\"app4name\");\n \n if(app1name != null) {\n jCheckBox1.setText(app1name);\n jCheckBox1.setSelected(true);\n }\n if(app2name != null) {\n jCheckBox2.setText(app2name);\n jCheckBox2.setSelected(true);\n }\n if(app3name != null) {\n jCheckBox3.setText(app3name);\n jCheckBox3.setSelected(true);\n }\n if(app4name != null) {\n jCheckBox4.setText(app4name);\n jCheckBox4.setSelected(true);\n }\n \n String league1 = props.getProperty(\"league1\");\n String league2 = props.getProperty(\"league2\");\n String league3 = props.getProperty(\"league3\");\n String league4 = props.getProperty(\"league4\");\n String league5 = props.getProperty(\"league5\");\n \n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { league1, league2, league3, league4, league5 }));\n jLabel4.setText(props.getProperty(\"startall\"));\n jButton1.setText(props.getProperty(\"confirm\"));\n }", "void launch();", "void launch();", "void launch();", "public void setLaunchStrategy(LaunchStrategy strategy);", "public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open();\n\t}", "public <T extends Application<?, ?>> T launch(Class<T> appClass, String desiredUrl) {\r\n\t\tT result = super.launch(WindowManager.class, appClass, objectWhichChecksWebDriver);\r\n\t\tBrowserWindow window = (BrowserWindow) result.getHandle();\t\t\r\n\t\twindow.to(desiredUrl);\t\t\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t case R.id.developer:\n\t openMyApps();\n\t return true;\t \n\t \n\t default:\n\t return super.onOptionsItemSelected(item);\n\t }\n\t}", "public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}", "public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }", "@Override\n\t \t\t\tpublic void onClick(View arg0) {\n\t \t\t\t\tList<PackageInfo> packages = getPackageManager().getInstalledPackages(0);\n\t \t\t\t\tstartActivity(getPackageManager().getLaunchIntentForPackage(packages.get(0).applicationInfo.packageName)); \n\t \t\t\t}", "void launchAsMaster();", "public void openApp(String Url) {\n\t\tfd = new FirefoxDriver();\r\n\t\tfd.get(Url);\r\n\t\tfd.manage().window().maximize();\r\n\t}", "private void showProposalDevelopment(){\r\n try{\r\n \r\n ProposalBaseWindow propFrame = null;\r\n if ( (propFrame = (ProposalBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.PROPOSAL_BASE_FRAME_TITLE))!= null ) {\r\n if( propFrame.isIcon() ){\r\n propFrame.setIcon(false);\r\n }\r\n propFrame.setSelected(true);\r\n return;\r\n }\r\n propFrame = new ProposalBaseWindow(mdiForm );\r\n propFrame.setVisible( true );\r\n }catch(Exception exception){\r\n CoeusOptionPane.showInfoDialog(exception.getMessage());\r\n }\r\n }", "public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}", "public void openPromotion() {\n myActivity.setContentView(R.layout.promotion);\n Button promotionButtonToGame = myActivity.findViewById(R.id.button6);\n\n promotionButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingRulesScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n }\n\n\n );\n\n\n }", "public void start() {\n\t\tPetriNetView pnmlData = ApplicationSettings.getApplicationView()\n\t\t\t\t.getCurrentPetriNetView();\n\t\t//if (pnmlData.getTokenViews().size() > 1) {\n\t\tif(pnmlData.getEnabledTokenClassNumber() > 1){\n\t\t\tExpander expander = new Expander(pnmlData);\n\t\t\tpnmlData = expander.unfold();\n\t\t\tJOptionPane.showMessageDialog(null, \"This is CGSPN. The analysis will only apply to default color (black)\",\n\t\t\t\t\t\"Information\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\t// Build interface\n\t\tEscapableDialog guiDialog = new EscapableDialog(\n\t\t\t\tApplicationSettings.getApplicationView(), MODULE_NAME, true);\n\n\t\t// 1 Set layout\n\t\tContainer contentPane = guiDialog.getContentPane();\n\t\tcontentPane.setLayout(new BoxLayout(contentPane, BoxLayout.PAGE_AXIS));\n\n\t\t// 2 Add file browser\n\t\tsourceFilePanel = new PetriNetChooserPanel(\"Source net\", pnmlData);\n\t\tcontentPane.add(sourceFilePanel);\n\n\t\t// 3 Add results pane\n\t\tresults = new ResultsHTMLPane(pnmlData.getPNMLName());\n\t\tcontentPane.add(results);\n\n\t\t// 4 Add button's\n\t\tcontentPane.add(new ButtonBar(\"Analyse GSPN\", runAnalysis, guiDialog\n\t\t\t\t.getRootPane()));\n\n\t\t// 5 Make window fit contents' preferred size\n\t\tguiDialog.pack();\n\n\t\t// 6 Move window to the middle of the screen\n\t\tguiDialog.setLocationRelativeTo(null);\n\n\t\ttry {\n\t\t\tguiDialog.setVisible(true);\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t}", "public void open() {\n\t\ttry {\n\t\t\tdisplay = Display.getDefault();\n\t\t\tcreateContents();\n\t\t\tcreateTray(display);\t//system tray\n\t\t\tshell.open();\n\t\t\tshell.layout();\n\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\tthis.setAppEnd(true);\n\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t\tterminarPWs(); //cerrar todos los trabajos de impresion que hay dando vueltas por ahi.\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.print(e.getMessage());\n\t\t}\n\t}", "public LauncherPanel getLauncherPanel(){\n return this.launcherPanel;\n }", "public abstract String getLaunchCommand();", "public abstract void start(String[] args, Window window);", "public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }", "public static void main(String[] args) {\n BasicConfigurator.configure();\n // note: running mode starts as a result of finishing building mode\n BuildingWindow buildingWindow = new BuildingWindow(\"Game Build\");\n buildingWindow.start();\n }", "public interface AppPresenter {\n void startApp(int type);\n}", "private void openManagementWindow() {\n\n\t\tWindowManager.getInstance().openManagementWindow();\n\t\t// Close the current window\n\t\tthis.close();\n\t}", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public boolean openCreateGoal(){\n Intent intent = new Intent(this, GoalNewActivity.class);\n startActivity(intent);\n return true;\n }", "private void openMainActivity(int pos) {\n Intent i = new Intent(Launcher.this, MainActivity.class);\n i.putExtra(\"division\", pos);\n startActivity(i);\n }", "public String getLaunchType() {\n return this.launchType;\n }", "public String getLaunchType() {\n return this.launchType;\n }", "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tLog.e(TAG, \"settings onClick enter \");\n\t\t\t\tPackageManager packageManager = getPackageManager();\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent =packageManager.getLaunchIntentForPackage(\"com.qiyi.framework.embeded\");\n\t\t\t\tif(intent==null){\n\t\t\t\t\tLog.e(TAG,\"settings APP not found!\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n\t\t\t\ttry {\n\t\t\t\t\tmSurfaceTransfer.startActivity(intent);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/*Intent intent = new Intent();\n\t\t\t\tintent.setAction(Intent.ACTION_MAIN);\n\t\t\t\tintent.addCategory(Intent.CATEGORY_LAUNCHER);\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n\t\t\t\tintent.setComponent(new ComponentName(\n\t\t\t\t\t\tnew String(\"com.qiyi.settings \"), new String(\"com.qiyi.vr.unityplugin.PluginActivity\")));\n\t\t\t\tstartActivity(intent);*/\n\t\t\t}", "public void show(){\n developmentGroup.setVisible(true);\n }", "public void iterateAndClickParticularProgram(final String programeName);", "public OpenmlExperimenter(boolean classFirst) {\n\n\t\tm_SetupModePanel = new OpenmlSimpleSetupPanel();\n\t\tm_RunPanel = new RunPanel(m_SetupModePanel.getExperiment());\n\n\t\tm_TabbedPane.addTab(\"Setup\", null, m_SetupModePanel, \"Set up the experiment\");\n\t\tm_TabbedPane.addTab(\"Run\", null, m_RunPanel, \"Run the experiment\");\n\t\t\n\t\tm_TabbedPane.setSelectedIndex(0);\n\t\tm_SetupModePanel.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void propertyChange(PropertyChangeEvent e) {\n\t\t\t\tExperiment exp = m_SetupModePanel.getExperiment();\n\t\t\t\texp.classFirst(true);\n\t\t\t\tm_RunPanel.setExperiment(exp);\n\t\t\t\t// m_ResultsPanel.setExperiment(exp);\n\t\t\t\tm_TabbedPane.setEnabledAt(1, true);\n\t\t\t}\n\t\t});\n\t\tsetLayout(new BorderLayout());\n\t\tadd(m_TabbedPane, BorderLayout.CENTER);\n\t}", "protected void execute() {\n\t\tContainer container = (Container) model;\n\t\tString name = Utilities.ask(\"Component name?\");\n\t\ttry {\n\t\t\tcontainer.launch(name);\n\t\t}catch(Exception e) {\n\t\t\t//Utilities.error(\"must be component name\");\n\t\t\tUtilities.error(e.getMessage());\n\t\t\t//System.out.println(\"The name:\" + name);\n\t\t}\n\t}", "@Override\n\tpublic void openProgrammerGUI(MachineCrafterTileEntity tile) {\n\t\t\n\t}", "public SimpleWorkspaceApplication (String[] args) {\n super (args, false);\n Frame f;\n commandHandler = new ApplicationCommandHandler ();\n MenuBar mb = setupMenu ();\n String title = getTitleInformation ();\n setCurrentFrame (f = new Frame (title != null ? title : \"Simple Workspace Application\"));\n f.setMenuBar (mb);\n String geometry = getGeometryInformation ();\n if (geometry == null)\n f.setBounds (0, 0, 600, 400);\n else {\n Rectangle desiredBounds = parseBounds (geometry);\n f.setBounds (desiredBounds.x, desiredBounds.y, desiredBounds.width, desiredBounds.height);\n }\n\n f.add (multiWkspView = new MultipleWorkspaceView (), BorderLayout.CENTER);\n f.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n\tSystem.exit(0);\n }\n });\n }", "public void startApp()\r\n\t{\n\t}", "private void openAppSettings() {\n //Open the Settings Activity\n Intent settingsActivityIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsActivityIntent);\n }", "public void openCapstoneApp(View view) {\n showToast(getString(R.string.capstone));\n }", "private void openUserManagementWindow() {\r\n\t\tnew JFrameUser();\r\n\t}", "public MapArchitect showArchitect()\n {\n frame = new ArchitectFrame(this);\n frame.updateNumWaypoints(m_waypoints.size());\n return this;\n }", "public void openSettings() {\r\n \tIntent intent = new Intent(this, DetectorSettingsActivity.class);\r\n \tstartActivity(intent);\r\n }", "public static void goToPlaylistChooserWindow()\n {\n PlaylistChooser playlistChooser = new PlaylistChooser();\n playlistChooser.setVisible(true);\n playlistChooser.setFatherWindow(actualWindow, false);\n }", "public static void main(String[] args) {\n ExhibitionCenter ec = DefaultInstantiator.createExhibitionCenter();\n\n Organizer o = new Organizer(new User(\"Daniel\", \"daniell\", \"email@dd23\", \"password\", new ArrayList<>(), \"\"));\n List<Organizer> lo = new ArrayList<>();\n lo.add(o);\n\n Exhibition e1 = new Exhibition();\n e1.setState(new ExhibitionCreatedState(e1));\n e1.setOrganizersList(new OrganizersList(lo));\n\n Exhibition e2 = new Exhibition();\n e2.setState(new ExhibitionCreatedState(e2));\n e2.setOrganizersList(new OrganizersList(lo));\n\n List<Exhibition> le = new ArrayList<>();\n le.add(e1);\n le.add(e2);\n\n ec.setExhibitionsRegister(new ExhibitionsRegister(le));\n\n new CreateDemonstrationUI(ec, o);\n }", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n\n case R.id.app_1_button:\n mPresenter.openSpotifyStreamerApp();\n break;\n\n case R.id.app_2_button:\n mPresenter.openScoresApp();\n break;\n\n case R.id.app_3_button:\n mPresenter.openLibraryApp();\n break;\n\n case R.id.app_4_button:\n mPresenter.openBuildItBiggerApp();\n break;\n\n case R.id.app_5_button:\n mPresenter.openXyzReaderApp();\n break;\n\n case R.id.app_6_button:\n mPresenter.openCapstoneApp();\n break;\n }\n }", "public void launch(){\n try{\n System.out.println(\"Main: Creando agentes\");\n \tmap = visualizer.getMapToLoad();\n \tsatelite = new Satelite(id_satelite, map, visualizer);\n \tdrone = new Drone(new AgentID(\"Drone\"), map.getWidth(), map.getHeigh(), id_satelite);\n \tSystem.out.println(\"MAIN : Iniciando agentes...\");\n \tvisualizer.setSatelite(satelite);\n satelite.start();\n drone.start();\n }catch(Exception e){\n \tSystem.err.println(\"Main: Error al crear los agentes\");\n System.exit(-1);\n }\n\t}", "@Override\r\n public JoinPoint select() {\r\n return jApp;\r\n }", "private void openApp(String packageName) {\n final String launcherPackage = packageName;\n assertThat(launcherPackage, notNullValue());\n mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT);\n\n // Launcher app\n Context context = InstrumentationRegistry.getContext();\n final Intent intent = context.getPackageManager()\n .getLaunchIntentForPackage(packageName);\n\n // Clear out any previous instances\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n\n // Wait for the app to appear\n mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), LAUNCH_TIMEOUT);\n }", "public static void main(String[] args) {\r\n\t\tProgProjGUI display = new ProgProjGUI();\r\n\t\tdisplay.setVisible(true);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tLaborStart laborStart = new LaborStart(\"Story Teller\", \"New Eden Labor\", \"Amerika\", \"Nicht bekannt\", 2);\r\n\t\tlaborStart.addWindowListener(\r\n\t\t\t\t\r\n\t\t\t\tnew WindowAdapter() {\r\n\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\t\t\tLaborStart.exit();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\r\n\t\tlaborStart.setSize (600, 600);\r\n\t\tlaborStart.setLocationRelativeTo(null);\r\n\t\tlaborStart.setResizable(false);\r\n\t\tlaborStart.setLayout (null);\r\n\t\tlaborStart.setVisible (true);\r\n\t\t\r\n\t}", "public DemonstrationApplication(ExhibitorResponsible exhibitorResponsible, ExhibitionCenter exhibitionCenter) {\n super(WINDOW_TITLE);\n\n this.exhibitionCenter = exhibitionCenter;\n this.exhibitorResponsible = exhibitorResponsible;\n this.demonstrationApplicationController = new CreateDemonstrationApplicationController(exhibitorResponsible, exhibitionCenter);\n this.exhibitionList = demonstrationApplicationController.getExhibitionListWithApplicationsInSubmission();\n\n DialogSelectable dialogSelectable = new DialogSelectable(this, this.exhibitionList);\n this.selectedExhibition = (Exhibition) dialogSelectable.getSelectedItem();\n\n if (this.selectedExhibition != null) {\n\n this.demonstrationsList = demonstrationApplicationController.getDemonstrationsList(selectedExhibition);\n dialogSelectable = new DialogSelectable(this, demonstrationsList);\n this.selectedDemonstration = (Demonstration) dialogSelectable.getSelectedItem();\n if (this.selectedDemonstration != null) {\n demonstrationApplicationController.newDemonstrationApplication(selectedDemonstration);\n this.setLayout(new GridLayout(1, 3));\n createComponents();\n CustomMenuBar customMenuBar = new CustomMenuBar(this.exhibitionCenter, this);\n setJMenuBar(customMenuBar);\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n customMenuBar.exit();\n }\n });\n\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n pack();\n setSize(WINDOW_SIZE);\n setMinimumSize(new Dimension(getWidth(), getHeight()));\n setLocationRelativeTo(null);\n setVisible(true);\n } else {\n dispose();\n new DashboardUI(exhibitionCenter, exhibitorResponsible);\n }\n } else {\n dispose();\n new DashboardUI(exhibitionCenter, exhibitorResponsible);\n }\n }", "public void open() {\r\n\t\tthis.setVisible(true);\r\n\t}", "public interface Launch {\r\n\tvoid Launch();\r\n}", "private void launchSettingsActivity() {\n\t\tIntent myIntent = new Intent(this,\n\t\t\t\tSettingsActivity.class);\n\n\t\tthis.startActivityForResult(myIntent,\n\t\t\t\tSettingsActivity.EDIT_SETTINGS_ID);\n\t}", "public ClubPlanner() {\n appster = new Appster\n (\"powersurgepub\", \"com\",\n PROGRAM_NAME, PROGRAM_VERSION,\n this, this);\n home = Home.getShared ();\n programVersion = ProgramVersion.getShared ();\n \n initComponents();\n getContentPane().add(statusBar, java.awt.BorderLayout.SOUTH);\n trouble.setParent(this);\n \n // Get App Folder\n appFolder = home.getAppFolder();\n if (appFolder == null) {\n trouble.report (\"The \" + home.getProgramName()\n + \" Folder could not be found\",\n \"App Folder Missing\");\n } else {\n Logger.getShared().recordEvent (LogEvent.NORMAL,\n \"App Folder = \" + appFolder.toString(),\n false);\n }\n \n windowMenuManager = WindowMenuManager.getShared(windowMenu);\n \n // Connect up to Mac environment as necessary\n xos.setFileMenu (fileMenu);\n xos.setHelpMenu (helpMenu);\n xos.setXHandler (this);\n xos.setMainWindow (this);\n xos.enablePreferences();\n \n // Set up user prefs\n userPrefs = UserPrefs.getShared();\n prefsWindow = new PrefsWindow (this);\n \n filePrefs = new FilePrefs(this);\n filePrefs.loadFromPrefs();\n prefsWindow.setFilePrefs(filePrefs);\n \n recentFiles = new RecentFiles();\n \n filePrefs.setRecentFiles(recentFiles);\n recentFiles.registerMenu(fileOpenRecentMenu, this);\n recentFiles.setFileSelectionMode (JFileChooser.DIRECTORIES_ONLY);\n recentFiles.setFileContentsName(\"Club Planner Events Folder\");\n recentFiles.loadFromPrefs();\n if (filePrefs.purgeRecentFilesAtStartup()) {\n recentFiles.purgeInaccessibleFiles();\n }\n \n setBounds (\n userPrefs.getPrefAsInt (CommonPrefs.PREFS_LEFT, 100),\n userPrefs.getPrefAsInt (CommonPrefs.PREFS_TOP, 100),\n userPrefs.getPrefAsInt (CommonPrefs.PREFS_WIDTH, 620),\n userPrefs.getPrefAsInt (CommonPrefs.PREFS_HEIGHT, 540));\n \n CommonPrefs.getShared().setSplitPane(mainSplitPane);\n CommonPrefs.getShared().setMainWindow(this);\n \n tweakerPrefs = new TweakerPrefs();\n prefsWindow.getPrefsTabs().add(TweakerPrefs.PREFS_TAB_NAME, tweakerPrefs);\n \n // Set up Logging\n logWindow = new LogWindow ();\n logOutput = new LogOutputText(logWindow.getTextArea());\n logger = Logger.getShared();\n logger.setLog (logOutput);\n logger.setLogAllData (false);\n logger.setLogThreshold (LogEvent.NORMAL);\n windowMenuManager.add(logWindow);\n \n aboutWindow = new AboutWindow (\n false, // loadFromDisk\n true, // jxlUsed\n true, // pegdownUsed\n false, // xerces used\n false, // saxon used\n \"2012\"); // copyRightYearFrom));\n \n // Set up TextMerge Window\n textMergeScript = new TextMergeScript(clubEventList);\n textMergeScript.allowAutoplay(false);\n textMergeFilter = new TextMergeFilter(clubEventList, textMergeScript);\n textMergeSort = new TextMergeSort (clubEventList, textMergeScript);\n textMergeTemplate = new TextMergeTemplate (clubEventList, textMergeScript);\n textMergeScript.setFilterModule(textMergeFilter);\n textMergeScript.setSortModule(textMergeSort);\n textMergeScript.setTemplateModule(textMergeTemplate);\n \n textMergeWindow = new TextMergeWindow (this, \"TextMerge\");\n textMergeScript.setTabs(textMergeWindow.getTabs());\n filterTabIndex = 0;\n textMergeFilter.setTabs(textMergeWindow.getTabs());\n sortTabIndex = 1;\n textMergeSort.setTabs(textMergeWindow.getTabs(), false);\n templateTabIndex = 2;\n textMergeTemplate.setTabs(textMergeWindow.getTabs());\n textMergeScript.selectEasyTab();\n textMergeScript.setMenus(mainMenuBar, \"Scripts\");\n \n windowMenuManager.add(textMergeWindow);\n \n financeWindow = new FinanceWindow();\n WindowMenuManager.locateCenter(this, financeWindow);\n windowMenuManager.add(financeWindow);\n \n positionTextMergeWindow();\n \n linkTweaker = new LinkTweaker(this, prefsWindow.getPrefsTabs());\n \n clubEventPanel1 = new ClubEventPanel1(this, linkTweaker);\n clubEventPanel2 = new ClubEventPanel2(this, linkTweaker);\n clubEventPanel3 = new ClubEventPanel3(this, linkTweaker);\n clubEventPanel4 = new ClubEventPanel4(this, linkTweaker);\n clubEventPanel5 = new ClubEventPanel5(this, linkTweaker);\n itemTabs.add(\"Basics\", clubEventPanel1);\n itemTabs.add(\"Text\", clubEventPanel2);\n itemTabs.add(\"Numbers\", clubEventPanel3);\n itemTabs.add(\"Links\", clubEventPanel4);\n itemTabs.add(\"Notes\", clubEventPanel5);\n \n initCollection();\n \n /*\n Following initialization, to get user's preferred file or folder to open.\n */\n String lastFileString = filePrefs.getStartupFilePath();\n if (lastFileString != null\n && lastFileString.length() > 0) {\n File lastFile = new File (lastFileString);\n if (lastFile.exists()\n && lastFile.isDirectory()\n && lastFile.canRead()) {\n openFile (lastFile);\n } else {\n openFile();\n }\n } else {\n openFile();\n }\n \n if (fileSpec == null) {\n handleQuit();\n }\n }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\t\tSystem.out.println(\"Launch Raoul by editor \" + arg1);\r\n\t}", "public void mainWindow(MainController group)\n {\n desktop.shell(group, _this());\n }", "@OnClick(R.id.converter_organization_phone_iv)\n public void callToOrg() {\n if (ActivityCompat.checkSelfPermission(CashApplication.getContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n new DialogInfoCall(mContext);\n } else {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" +\n mMainListForActions.get(mPositionOfCurInList).getOrganizations().get(mPositionOfOrgInList).getPhone()));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n }", "public void openOptionsWindow() {\n\t\tthis.dispose();\t//built-in method to destroy this GUI.\n\t\tnew SARMain().setVisible(true);\n\t}", "@FXML\n public void openFolder()\n {\n try\n {\n Desktop.getDesktop().open(nng.getStorePopulation().getParentFile());\n }\n catch (IOException e)\n {\n }\n }", "public void launchPhone(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_DIAL);\n \tsendIntent.setData(Uri.parse(\"tel:\"));\n \t\n \tfinal ResolveInfo mInfo = pacman.resolveActivity(sendIntent, 0);\n \tString s = pacman.getApplicationLabel(mInfo.activityInfo.applicationInfo).toString();\n \t\n \tif (s != null && s.length() > 2) {\n startActivity(sendIntent);\n return;\n } else {\n \tToast.makeText(context, \"No Phone Call App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}", "public void run() {\r\n\t\t\tModule module = null;\r\n\t\t\ttry {\r\n\t\t\t\t// Verificamos si el modulo ya esta abierto\r\n\t\t\t\tfor (int i = 0; i < desktopPane.getComponentCount(); i++) {\r\n\t\t\t\t\tComponent component2 = desktopPane.getComponent(i);\r\n\t\t\t\t\tif (moduleClass.isInstance(component2)) {\r\n\t\t\t\t\t\t// Si lo esta, lo seleccionamos y retornamos\r\n\t\t\t\t\t\tLoadingFrame.hide();\r\n\t\t\t\t\t\t((JInternalFrame) component2).setSelected(true);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tmodule = (Module) moduleClass.newInstance();\r\n\t\t\t\tdesktopPane.add((Component) module);\r\n\t\t\t\tLoadingFrame.hide();\r\n\t\t\t\t((JInternalFrame) module).setSelected(true);\r\n\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\tErrorLogLoader.addErrorEntry(e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\tErrorLogLoader.addErrorEntry(e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (PropertyVetoException e) {\r\n\t\t\t\tErrorLogLoader.addErrorEntry(e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "private void openSettingsforApp() {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", AddListingView.this.getPackageName(), null);\n intent.setData(uri);\n AddListingView.this.startActivity(intent);\n }", "public AppiumGithubScreen openAppiumGitHub() {\n\t\tgithubLink.click();\n\t\treturn new AppiumGithubScreen(driver);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(getApplicationContext(),\tLauncher.class));\n\t\t\t}", "public void toBeam(){\n Intent intent = new Intent(this, Beam.class);\n startActivity(intent);\n }", "public launchFrame() {\n \n initComponents();\n \n }", "boolean launch();", "public AppoinmentPanel() {\n initComponents();\n }", "public Home() {\n initComponents();\n ShowLauncher();\n }", "@Override // com.tapjoy.internal.fz\n public final /* synthetic */ TJPlacement a(Context context, TJPlacementListener tJPlacementListener, Object obj) {\n return TJPlacementManager.createPlacement(context, \"AppLaunch\", true, tJPlacementListener);\n }", "public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}", "@Test(priority=0) \r\n\tpublic void openApplication() { \r\n\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t}", "public void openmrsdemo() {\n\t\tutil.geturl(prop.getValue(\"locators.url\"));\n\t\tlogreport.info(\"Url loaded\");\n\t\tutil.maximize();\n\t}", "public void execute() {\n try {\n final DemoManagerWindow window = new DemoManagerWindow();\n window.setResizable(false);\n window.setDemoManager(this);\n window.setDemoProvider(this);\n window.setVisibleAndWait();\n } catch (final Throwable t) {\n throw new BrowserException(\"\", t);\n }\n }" ]
[ "0.6233129", "0.59601146", "0.58834505", "0.5869079", "0.5799702", "0.57635856", "0.55956846", "0.5584474", "0.5584474", "0.5584474", "0.550754", "0.54977554", "0.54893273", "0.5482584", "0.54679143", "0.54555434", "0.54345006", "0.5410928", "0.5405041", "0.5398863", "0.539342", "0.53915286", "0.5387581", "0.53853273", "0.53814787", "0.5380091", "0.5380091", "0.5380091", "0.53800535", "0.5374036", "0.5361246", "0.5333858", "0.53204435", "0.5304379", "0.5297347", "0.529722", "0.52959543", "0.5287899", "0.5272423", "0.52643156", "0.5262553", "0.5253754", "0.52525336", "0.524243", "0.52383155", "0.52364457", "0.52346474", "0.5231213", "0.5228429", "0.5207264", "0.52054733", "0.52047336", "0.51852876", "0.51852876", "0.5182348", "0.5177567", "0.517013", "0.5169947", "0.51682925", "0.51623785", "0.5157921", "0.5157783", "0.51567596", "0.5155234", "0.51503533", "0.5147549", "0.51455975", "0.5139583", "0.5132798", "0.5131926", "0.51296127", "0.5129594", "0.5128331", "0.51276016", "0.5125996", "0.5122025", "0.5119302", "0.5114673", "0.51068807", "0.5106313", "0.51022696", "0.5101651", "0.5100925", "0.5100436", "0.51004285", "0.5096508", "0.50942326", "0.50904584", "0.50898165", "0.5086343", "0.50846887", "0.5083308", "0.50803685", "0.507703", "0.50746536", "0.5070805", "0.50641173", "0.50606", "0.5053358", "0.50481457", "0.5042194" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 900, 710); frame.setMinimumSize(new Dimension(900, 710)); frame.setBounds(100, 100, 760, 480); frame.setMinimumSize(new Dimension(760, 480)); context = new Context(this); System.out.println(GUI.class.getResource("GUI.class")); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); GridBagLayout gridBagLayout = new GridBagLayout(); gridBagLayout.columnWidths = new int[]{0, 0}; gridBagLayout.rowHeights = new int[]{0, 0}; gridBagLayout.columnWeights = new double[]{1.0, Double.MIN_VALUE}; gridBagLayout.rowWeights = new double[]{0.0, Double.MIN_VALUE}; //gridBagLayout.rowWeights = new double[]{0.0, 0.00001}; frame.getContentPane().setLayout(gridBagLayout); FileTypePanel fileTypePanel = new FileTypePanel(context); GridBagConstraints gbcFileType = new GridBagConstraints(); gbcFileType.fill = GridBagConstraints.HORIZONTAL; gbcFileType.gridx = 0; gbcFileType.gridy = 0; gbcFileType.gridwidth = 2; // gbcFileType.anchor = GridBagConstraints.PAGE_START; frame.getContentPane().add(fileTypePanel,gbcFileType); NamingPanel namingPanel = new NamingPanel(context); GridBagConstraints gbcNamingPanel = new GridBagConstraints(); gbcNamingPanel.fill = GridBagConstraints.HORIZONTAL; gbcNamingPanel.gridx = 0; gbcNamingPanel.gridy = 1; gbcNamingPanel.gridwidth = 2; // gbcFileType.anchor = GridBagConstraints.PAGE_START; frame.getContentPane().add(namingPanel,gbcNamingPanel); ReferencePanel referencePanel = new ReferencePanel(context); GridBagConstraints gbcReferencePanel = new GridBagConstraints(); gbcReferencePanel.fill = GridBagConstraints.HORIZONTAL; gbcReferencePanel.gridx = 0; gbcReferencePanel.gridy = 2; gbcReferencePanel.gridwidth = 2; // gbcFileType.anchor = GridBagConstraints.PAGE_START; frame.getContentPane().add(referencePanel,gbcReferencePanel); FileListPanelLeft fileListPanelLeft = new FileListPanelLeft(context); GridBagConstraints gbcFileListPanelLeft = new GridBagConstraints(); gbcFileListPanelLeft.gridx = 0; gbcFileListPanelLeft.gridy = 3; frame.getContentPane().add(fileListPanelLeft,gbcFileListPanelLeft); FileListPanelRight fileListPanelRight = new FileListPanelRight(context); GridBagConstraints gbcFileListPanelRight = new GridBagConstraints(); gbcFileListPanelRight.gridx = 1; gbcFileListPanelRight.gridy = 3; gbcFileListPanelRight.weightx = 0.5; frame.getContentPane().add(fileListPanelRight,gbcFileListPanelRight); BottomPanel bottomPanel = new BottomPanel(context); GridBagConstraints gbcbottomPanel = new GridBagConstraints(); gbcbottomPanel.fill = GridBagConstraints.HORIZONTAL; gbcbottomPanel.gridx = 0; gbcbottomPanel.gridy = 4; gbcbottomPanel.gridwidth = 2; frame.getContentPane().add(bottomPanel,gbcbottomPanel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
\class IJSCmdBase \brief IJSCmdBase \details \section IJSCmdBase.java_intro_sec Introduction \section IJSCmdBase.java_samples Some Samples \code .... code goes here ... \endcode APL/Software GmbH Berlin generated by ClaviusXPress ( \author KB
public interface IJSCmdBase { public abstract void run(); /** \brief unMarshall * * \details * * \return Object * * @param pobjFile * @return */ public abstract Object unMarshal(File pobjFile); // private Object // unMarshall /** \brief marshal * * \details * * \return Object * * @param objO * @param objF */ public abstract Object marshal(Object objO, File objF); // private // SchedulerObjectFactoryOptions // marshal public abstract String toXMLString(Object objO); // private // SchedulerObjectFactoryOptions // marshal public abstract String toXMLString(); // private // SchedulerObjectFactoryOptions // marshal }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TAG_JAVA_CODEBASE\n{\n\n /**\n * Class downloading is supported for stubs, ties, values, and \n * value helpers. The specification allows transmission of codebase \n * information on the wire for stubs and ties, and enables usage of \n * pre-existing ClassLoaders when relevant. \n * <p>\n * For values and value helpers, the codebase is transmitted after the \n * value tag. For stubs and ties, the codebase is transmitted as \n * the TaggedComponent <code>TAG_JAVA_CODEBASE</code> in the IOR \n * profile, where the <code>component_data</code> is a CDR encapsulation \n * of the codebase written as an IDL string. The codebase is a \n * space-separated list of one or more URLs.\n */\n public static final int value = (int)(25L);\n}", "public void base() {\n APIlib.getInstance().addJSLine(jsBase + \".base();\");\n }", "public interface C0335c {\n }", "@Override\r\n public void info() {\n System.out.println(\"开始介绍\");\r\n }", "public static void __init() {\r\n\t\t__name__ = new str(\"code\");\r\n\r\n\t\t/**\r\n\t\t copyright Sean McCarthy, license GPL v2 or later\r\n\t\t*/\r\n\t\tdefault_0 = null;\r\n\t\tcl_Code = new class_(\"Code\");\r\n\t}", "@Test\n public void testDummy() {\n String html = source.toHTML(new SEclipseStyle(), new SDummy());\n assertEquals(html, \"<pre style='color:#000000\"\n + \";background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public interface AbstractC0386gl {\n}", "public interface C0939c {\n }", "public Synopsis()\n\t{\n\n\t}", "public RunMain0() {\n \n//#line 1\nsuper();\n }", "public interface AbstractC1953c50 {\n}", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "@Override\n\tpublic void javadoc(JDefinedClass cls) {\n\n\t}", "@Test\r\n\tpublic void testScanBaseClass(){\n\t\tString path = JDocPluginUtils.getProjectDir().getPath()+ \"/src/test/java/\";\r\n\t\tSystem.out.println(\"path:\" + path);\r\n\t\tJavaSourceScanner scaner = new JavaSourceScanner();\r\n\t\tscaner.setSourceDir(path);\r\n\t\tList<JClassDoc> jdocs = scaner.scan(\"org.onetwo.plugins.jdoc.test\");\r\n\t\tSystem.out.println(\"testScanBaseClass:\" + getInfoDoc(jdocs).toString().trim());\r\n\t\t\r\n\t\tassertJDoc(jdocs);\r\n\t}", "public InterfaceAbout() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "@Override \n\t public String getDescription() {\n\t \t return \"(*.MXD)\"; \n\t }", "@Test\n public void testClassName() {\n// assertEquals(SParser.parse(\"HardDisk\").toHTML(new SEclipseStyle(), new SClassName()),\"<pre style='color:#000000;background:#ffffff;'></pre>\"); //ClassName\n// assertEquals(\"{\",\"\"); //CurlyBracket\n// assertEquals(\"class\",\"\");//KeyWord\n// assertEquals(\"String\",\"\");//MainClass\n// assertEquals(\"String string\",\"\");//MainClass\n// assertEquals(\"public\",\"\");//Modifier\n// assertEquals(\"this\",\"\"); //PseudoVariable\n// assertEquals(\";\",\"\"); //Semicolon\n// assertEquals(\"\\\"string\\\"\",\"\"); //String\n// assertEquals(\"\",\"\"); //Body Alone\n\n// String html = source.toHTML(new SEclipseStyle(), new SClassName());\n// assertEquals(html, \"<pre style=\"\n// + \"'color:#000000;background:#ffffff;'>\"\n// + \"public class MainClass {\\n\"\n// + \" \\n\"\n// + \" public static void main(String args[]){\\n\"\n// + \" GradeBook myGradeBook=new GradeBook();\\n\"\n// + \" String courseName=\\\"Java \\\";\\n\"\n// + \" myGradeBook.displayMessage(courseName);\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }public class Foo {\\n\"\n// + \" \\n\"\n// + \" public boolean bar(){\\n\"\n// + \" super.foo();\\n\"\n// + \" return false;\\n\"\n// + \" \\n\"\n// + \" }\\n\"\n// + \" }</pre>\");\n }", "public DocMstHdrEOImpl() {\n }", "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "public interface C11910c {\n}", "public abstract String description();", "public abstract String description();", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public interface AbstractC2502fH1 extends IInterface {\n}", "protected void introduction() {\r\n\r\n // Titel\r\n\r\n Text title = lang.newText(new Coordinates(20, 25), \"Negascout Algorithmus\",\r\n \"header\", null, headerProperties);\r\n pMap.put(\"title\", title);\r\n // Umrandung\r\n pMap.put(\"hRect\", lang.newRect(new Coordinates(10, 15), new Coordinates(\r\n 400, 50), \"hRect\", null, headerRectProperties));\r\n\r\n // Zeigt die Einleitung an\r\n SourceCode intro;\r\n intro = lang.newSourceCode(new Coordinates(30, 60), \"intro\", null,\r\n sourceCodeProperties);\r\n intro\r\n .addCodeLine(\r\n \"Der Negascout-Algorithmus wird angewendet, um in einem Spiel zwischen zwei Parteien\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"eine optimale Spielstrategie f\\u00FCr eine der Parteien zu bestimmen.\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Die m\\u00F6glichen Z\\u00FCge werden dazu in einer Baumstruktur dargestellt.\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\"\", \"intro\", 0, null);\r\n intro.addCodeLine(\"Dabei werden folgende Annahmen getroffen:\", \"intro\", 0,\r\n null);\r\n intro\r\n .addCodeLine(\r\n \"- es handelt sich um ein Nullsummenspiel, das hei\\u00DFt positive Punkte des einen Spielers\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \" sind negative Punkte f\\u00FCr den anderen, sodass alle Punkte in der Summe 0 ergeben\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\r\n \"- beide Parteien spielen optimal und machen keine Fehler\", \"intro\", 0,\r\n null);\r\n intro\r\n .addCodeLine(\r\n \"- das Spiel ist deterministisch, also nicht von W\\u00FCrfelgl\\u00FCck o.\\u00E4. abh\\u00E4ngig\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"- es gibt keine verborgenen Informationen wie beispielsweise beim Kartenspiel\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\"\", \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Negascout funktioniert so \\u00E4hnlich wie der Alpha-Beta-Algorithmus:\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Jeder Knoten wird mit einer unteren und einer oberen Grenze untersucht, die den zu diesem\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\r\n \"Zeitpunkt m\\u00F6glichen maximalen und minimalen Gewinn angibt.\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Durch diese Begrenzung k\\u00F6nnen bestimmte Teilb\\u00E4ume abgeschnitten (gepruned) werden, da sie f\\u00FCr \",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"das Endergebnis irrelevant sind (z.B. Z\\u00FCge, die dem Gegner zu viele Punkte bringen w\\u00FCrden).\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Die Vorsilbe 'Nega-' im Namen des Algorithmus weist darauf hin, dass das Punktefenster f\\u00FCr den\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"n\\u00E4chsten (vom jeweils anderen Spieler ausgef\\u00FChrten) Spielzug negiert wird.\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Eine Besonderheit von Negascout ist, dass der Algorithmus davon ausgeht, dass der erste\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"betrachtete Zug der beste ist. Weitere m\\u00F6gliche Z\\u00FCge werden anschlie\\u00DFend mit einem \",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Nullwindow (obere und untere Grenze liegen nur um 1 auseinander) untersucht, um zu beweisen,\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"dass sie tats\\u00E4chlich schlechter sind. Ist das nicht der Fall, tritt ein sogenanntes Fail High auf,\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"das hei\\u00DFt der betrachtete Zug ist besser als erwartet. Dann muss dieser Knoten erneut mit dem \",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\"vollst\\u00E4ndigen Wertefenster untersucht werden.\",\r\n \"intro\", 0, null);\r\n lang.nextStep(\"Intro\");\r\n intro.hide();\r\n\r\n // Zeigt den Code an\r\n code = lang.newSourceCode(new Coordinates(30, 60), \"code\", null,\r\n sourceCodeProperties);\r\n code.addCodeLine(\"int negascout (node n, int alpha, int beta){\", \"code\", 0,\r\n null); // 0\r\n code.addCodeLine(\" if (node is a leaf)\", \"code\", 0, null); // 1\r\n code.addCodeLine(\" return valueOf(node);\", \"code\", 0, null); // 2\r\n code.addCodeLine(\" int a=alpha;\", \"code\", 0, null); // 3\r\n code.addCodeLine(\" int b=beta;\", \"code\", 0, null); // 4\r\n code.addCodeLine(\" for each child of node{\", \"code\", 0, null); // 5\r\n code.addCodeLine(\" int score = -negascout (child, -b, -a);\",\r\n \"code\", 0, null); // 6\r\n code.addCodeLine(\r\n \" if (a < score < beta and child is not first child)\",\r\n \"code\", 0, null); // 7\r\n code.addCodeLine(\r\n \" score = -negascout (child, -beta, -score);\", \"code\",\r\n 0, null); // 8\r\n code.addCodeLine(\" a=max(a, score);\", \"code\", 0, null); // 9\r\n code.addCodeLine(\" if(a >= beta)\", \"code\", 0, null); // 10\r\n code.addCodeLine(\" return a;\", \"code\", 0, null); // 11\r\n code.addCodeLine(\" b = a+1;\", \"code\", 0, null); // 12\r\n code.addCodeLine(\" }\", \"code\", 0, null); // 13\r\n code.addCodeLine(\" return a;\", \"code\", 0, null); // 14\r\n code.addCodeLine(\"}\", \"code\", 0, null); // 15\r\n // Erklaert die aktuelle Codezeile\r\n\r\n explain = lang.newText(new Offset(0, 30, \"code\", \"SW\"), \"\", \"explain\",\r\n null, descriptionProperties);\r\n tSeen = lang.newText(new Offset(0, 90, \"code\", \"SW\"), \"\", \"tSeen\", null,\r\n counterTextProperties);\r\n tSeen.setText(\"betrachtete Knoten: 0\", null, null);\r\n tPruned = lang.newText(new Offset(0, 130, \"code\", \"SW\"), \"\", \"tPruned\",\r\n null, counterTextProperties);\r\n tPruned.setText(\"geprunte Knoten: 0\", null, null);\r\n tFailed = lang.newText(new Offset(0, 110, \"code\", \"SW\"), \"\", \"tFailed\",\r\n null, counterTextProperties);\r\n tFailed.setText(\"erneut untersuchte Knoten: 0\", null, null);\r\n pMap.put(\"explain\", explain);\r\n pMap.put(\"tSeen\", tSeen);\r\n pMap.put(\"tPruned\", tPruned);\r\n pMap.put(\"tFailed\", tFailed);\r\n\r\n rSeen = lang.newRect(new Offset(barLeft, -5, \"tSeen\", \"NE\"), new Offset(\r\n barLeft, 10, \"tSeen\", \"NE\"), \"rSeen0\", null, counterBarProperties);\r\n pMap.put(\"rSeen0\", rSeen);\r\n rPruned = lang.newRect(new Offset(barLeft, -5, \"tPruned\", \"NE\"),\r\n new Offset(barLeft, 10, \"tPruned\", \"NE\"), \"rPruned0\", null,\r\n counterBarProperties);\r\n pMap.put(\"rPruned0\", rPruned);\r\n rFailed = lang.newRect(new Offset(barLeft, -5, \"tFailed\", \"NE\"),\r\n new Offset(barLeft, 10, \"tFailed\", \"NE\"), \"rFailed0\", null,\r\n counterBarProperties);\r\n pMap.put(\"rFailed0\", rFailed);\r\n\r\n // Parst den Eingabebaum und zeichnet ihn\r\n Parser p = new Parser();\r\n root = p.parseText(treeText);\r\n showTree(root);\r\n nodesTotal = countNodes(root);\r\n }", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public interface C0389gj extends C0388gi {\n}", "public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}", "public interface C0136c {\n }", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public interface AbstractC03680oI {\n}", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "public interface C13719g {\n}", "@Test\n public void testMainClass() {\n String html = source.toHTML(new SEclipseStyle(), new SMainClass());\n assertEquals(html, \"<pre style='color:#000000;back\"\n + \"ground:#ffffff;'>public \"\n + \"class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(<span style='color:#7f0055; \"\n + \"font-weight:bold; '>String</span> args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" <span style='\"\n + \"color:#7f0055; font-weight:bold; '>\"\n + \"String</span> courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public abstract String getContentDescription();", "public final void cpp() {\n }", "@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"CFS: A Behavioral Similarity Algorithm for Process Models Based on \"\n\t\t\t\t+ \"Complete Firing Sequences[C]//On the Move to Meaningful Internet Systems: \"\n\t\t\t\t+ \"OTM 2014 Conferences. Springer Berlin Heidelberg, 2014: 202-219.\\\"\";\n\t}", "public abstract String mo41086i();", "public abstract void description();", "@Override\n public int describeContents() { return 0; }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "@Override\n\tpublic void compile() {\n\t\t\n\t}", "public abstract String commandDocumentation();", "private void generateInterface() {\n if (clazz.getPackage() != null) {\n writer.println(\"package \" + clazz.getPackage().getName() + \";\");\n writer.println();\n }\n writer.println(\"class \" + className + \"Impl implements \" + clazz.getCanonicalName() + \" {\");\n HashSet<Method> methods = new HashSet<Method>();\n Collections.addAll(methods, clazz.getMethods());\n for (Method m : methods) {\n implementMethod(m);\n }\n writer.println(\"}\");\n }", "CodeBlock createCodeBlock();", "CharSequence mo740j() throws RemoteException;", "public void generate() {\n\t\t// Print generation stamp\n\t\tcontext.getNaming().putStamp(elementInterface, out);\n\t\t// Print the code\n\t\t// Print header\n\t\tout.println(\"package \"+modelPackage+\";\");\n\t\tout.println();\n\t\tout.println(\"public interface \"+elementInterface);\n\t\tif (context.isGenerateVisitor()) {\n\t\t\tout.println(indent+\"extends \"+context.getNaming().getVisitableInterface(modelName));\n\t\t}\n\t\tout.println(\"{\");\n\t\tif (context.isGenerateID()) {\n\t\t\tout.println(indent+\"/** Get the id */\");\n\t\t\tout.println(indent+\"public String getId();\");\n\t\t\tout.println(indent+\"/** Set the id */\");\n\t\t\tout.println(indent+\"public void setId(String id);\");\n\t\t\tout.println();\n\t\t}\n\t\tif (context.isGenerateBidirectional()) {\n\t\t\tout.println(indent+\"/** Delete */\");\n\t\t\tout.println(indent+\"public void delete();\");\n\t\t}\n\t\tout.println(indent+\"/** Override toString */\");\n\t\tout.println(indent+\"public String toString();\");\n//\t\tif (context.isGenerateInvariant()) {\n//\t\t\tout.println();\n//\t\t\tout.println(indent+\"/** Parse all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean parseInvariants(ILog log);\");\n//\t\t\tout.println(indent+\"/** Evaluate all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean evaluateInvariants(ILog log);\");\n//\t\t}\n\t\tout.println(\"}\");\n\t}", "public AbstractClassExtend() {\n\t\tsuper(\"hello\");\n\t}", "private Base64() {\r\n }", "public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}", "public interface C22383h {\n}", "@Override public int describeContents() { return 0; }", "public _CodeBaseStub ()\n {\n super ();\n }", "Editor mo117962b();", "private DMarlinRenderingEngine() {\n }", "@Override\n public int describeContents()\n {\n return 0;\n }", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "public static void generateCode()\n {\n \n }", "@Override()\n public String ciFile()\n {\n final StringBuilder cmd = new StringBuilder()\n .append(\"mql escape mod type \\\"${NAME}\\\"\");\n\n this.append4CIFileValues(cmd);\n\n // append attributes\n this.append4CIAttributes(cmd);\n\n return cmd.toString();\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public OOP_207(){\n\n }", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "protected abstract String exportHelp(BufferedImage img) throws IllegalArgumentException;", "public _CodeBaseStub()\n {\n super();\n }", "public void study() {\n\t\tSystem.out.println(\"学习Java\");\r\n\t}", "public SourceCode() {\n }", "public interface C46409a {\n}", "public interface Expresion {\n // 解释翻译\n int interprete();\n\n}", "public ControlClass(String expID){\r\n \tinitialize(expID,null,null,null); \t\r\n }", "@Override\n\tpublic void intro() {\n\t\t\n\t}", "public interface ModuleInterface\n{\n //~ Methods ////////////////////////////////////////////////////////////////\n\n void characterData(CMLStack xpath, char[] ch, int start, int length);\n\n void endDocument();\n\n void endElement(CMLStack xpath, String uri, String local, String raw);\n\n void inherit(ModuleInterface conv);\n\n CDOInterface returnCDO();\n\n void startDocument();\n\n void startElement(CMLStack xpath, String uri, String local, String raw,\n Attributes atts);\n}", "public IcsSystemConsoleDesignation(Connection connection, String encoding){\n super(connection, encoding);\n }", "public ImageBrowserDocumentPanel(IChart parent) {\n this.title = TITLE;\n this.parent = parent;\n appCtx = GlobalConstants.getApplicationContext();\n app = appCtx.getApplication();\n taskMonitor = appCtx.getTaskMonitor();\n // taskService = appCtx.getTaskService();\n // setTitle(TITLE);\n setDirty(false);\n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "private void installBasicClasses() {\n \tAbstractSymbol filename \n \t = AbstractTable.stringtable.addString(\"<basic class>\");\n \t\n \t// The following demonstrates how to create dummy parse trees to\n \t// refer to basic Cool classes. There's no need for method\n \t// bodies -- these are already built into the runtime system.\n \n \t// IMPORTANT: The results of the following expressions are\n \t// stored in local variables. You will want to do something\n \t// with those variables at the end of this method to make this\n \t// code meaningful.\n \n \t// The Object class has no parent class. Its methods are\n \t// cool_abort() : Object aborts the program\n \t// type_name() : Str returns a string representation \n \t// of class name\n \t// copy() : SELF_TYPE returns a copy of the object\n \n \tclass_c Object_class = \n \t new class_c(0, \n \t\t TreeConstants.Object_, \n \t\t TreeConstants.No_class,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0, \n \t\t\t\t\t TreeConstants.cool_abort, \n \t\t\t\t\t new Formals(0), \n \t\t\t\t\t TreeConstants.Object_, \n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.type_name,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.copy,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \t\n \t// The IO class inherits from Object. Its methods are\n \t// out_string(Str) : SELF_TYPE writes a string to the output\n \t// out_int(Int) : SELF_TYPE \" an int \" \" \"\n \t// in_string() : Str reads a string from the input\n \t// in_int() : Int \" an int \" \" \"\n \n \tclass_c IO_class = \n \t new class_c(0,\n \t\t TreeConstants.IO,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_string,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_int,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_string,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_int,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The Int class has no methods and only a single attribute, the\n \t// \"val\" for the integer.\n \n \tclass_c Int_class = \n \t new class_c(0,\n \t\t TreeConstants.Int,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// Bool also has only the \"val\" slot.\n \tclass_c Bool_class = \n \t new class_c(0,\n \t\t TreeConstants.Bool,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The class Str has a number of slots and operations:\n \t// val the length of the string\n \t// str_field the string itself\n \t// length() : Int returns length of the string\n \t// concat(arg: Str) : Str performs string concatenation\n \t// substr(arg: Int, arg2: Int): Str substring selection\n \n \tclass_c Str_class =\n \t new class_c(0,\n \t\t TreeConstants.Str,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.str_field,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.length,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.concat,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg, \n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.substr,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int))\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg2,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t/* Do somethind with Object_class, IO_class, Int_class,\n Bool_class, and Str_class here */\n nameToClass.put(TreeConstants.Object_.getString(), Object_class);\n nameToClass.put(TreeConstants.IO.getString(), IO_class);\n nameToClass.put(TreeConstants.Int.getString(), Int_class);\n nameToClass.put(TreeConstants.Bool.getString(), Bool_class);\n nameToClass.put(TreeConstants.Str.getString(), Str_class);\n adjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.IO.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Int.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Bool.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Str.getString(), new ArrayList<String>() );\n // Do the same for other basic classes\n basicClassList = new Classes(0);\n basicClassList.appendElement(Object_class);\n basicClassList.appendElement(IO_class);\n basicClassList.appendElement(Int_class);\n basicClassList.appendElement(Bool_class);\n basicClassList.appendElement(Str_class);\n \n }", "private SourcecodePackage() {}", "public SystemExportGeneratorContent() {\n }", "public interface C43157d extends C1677a {\n}", "public interface C8843g {\n}", "public SgaexpedbultoImpl()\n {\n }", "public interface Igual extends ComplexInstruction\n{\n}", "public abstract String mo11611b();", "Base1()\r\n\t{\r\n\t\tSystem.out.println(\"Base Constructor Called\");\r\n\t}", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public String description()\n {\n return \"Generate Postgres C++ Code ODBC\";\n }", "public abstract CharSequence mo2161g();", "Constructor() {\r\n\t\t \r\n\t }", "public interface CMLEditor {\n\n\tvoid executeCommand(CMLElement cmlIn);\n\n}", "private void generateHead(Class<?> token, BufferedWriter writer) throws IOException {\n String packageName = token.getPackageName();\n if (packageName != null) {\n writer.write(toUnicode(\"package\" + SPACE + packageName + EOL ));\n }\n\n String declaration = \"public class\" + SPACE + token.getSimpleName() + IMPL_SUFFIX + SPACE\n + (token.isInterface() ? \"implements\" : \"extends\") + SPACE + token.getSimpleName() + SPACE + BEGIN;\n\n writer.write(toUnicode(declaration));\n }", "public interface Code {\r\n \r\n /**\r\n * Called to execute the \"next\" line of code in this\r\n * virtual hardware component.\r\n * \r\n * This can be any action (or sequence of actions) as desired by\r\n * the implementation to simulate hardware functions.\r\n * \r\n * @return true when this \"process\" wants to exit.\r\n */\r\n public boolean executeNext();\r\n \r\n /**\r\n * Called when this instruction set should terminate execution permanently.\r\n * This method SHOULD NOT modify the process Identifier or CPU. It should\r\n * only shut down any processing needs and reset internal data if this\r\n * process is executed again.\r\n */\r\n public void shutdown();\r\n\r\n /**\r\n * Get the program name.\r\n */\r\n public String getName();\r\n \r\n // </editor-fold>\r\n }", "public abstract interface SummaryConstants\n{\n public static final Font FONT = new Font(\"Verdana\", 1, 12);\n public static final Color BACKGROUND_COLOR = new Color(205, 220, 242);\n public static final Color FOREGROUND_COLOR = new Color(6, 22, 157);\n}" ]
[ "0.5529065", "0.5319501", "0.5310526", "0.5295071", "0.5275282", "0.5268906", "0.52305883", "0.5190877", "0.5162803", "0.51322025", "0.51277506", "0.5104356", "0.5090429", "0.5089973", "0.50840497", "0.50773156", "0.5059988", "0.50524044", "0.5038249", "0.5031681", "0.5022414", "0.50149685", "0.50149685", "0.5002532", "0.49955285", "0.49747816", "0.49682721", "0.49640846", "0.49608555", "0.49585715", "0.49568447", "0.49532896", "0.49502134", "0.49458426", "0.49335548", "0.4930096", "0.49293947", "0.49272782", "0.49256295", "0.49195758", "0.49125037", "0.49011245", "0.48977634", "0.48964438", "0.4895442", "0.48872206", "0.48848164", "0.4881927", "0.48781657", "0.4871293", "0.48712626", "0.4863345", "0.48603258", "0.485442", "0.48532608", "0.48532528", "0.4848944", "0.48354104", "0.48334002", "0.48306495", "0.4826099", "0.48197213", "0.48156968", "0.48138234", "0.48125476", "0.48057228", "0.48044264", "0.47974938", "0.47973704", "0.47946715", "0.47925568", "0.47900227", "0.47864932", "0.4785613", "0.47809023", "0.47794142", "0.47778764", "0.47777963", "0.47751907", "0.47700706", "0.47694665", "0.47692978", "0.47684643", "0.4764318", "0.475784", "0.47572622", "0.47572622", "0.47572622", "0.47572622", "0.47572622", "0.47572622", "0.47572622", "0.47572622", "0.47566298", "0.47550932", "0.47517288", "0.4740357", "0.47353613", "0.4726721", "0.47254995" ]
0.68073225
0
\brief unMarshall \details \return Object
public abstract Object unMarshal(File pobjFile);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void decodeObject();", "public void setUnMarshaller(UnMarshaller unmarshaller)\n {\n }", "void decodeObjectArray();", "public abstract Object deserialize(Object object);", "public abstract org.omg.CORBA.Object read_Object();", "public void deserialize() {\n\t\t\n\t}", "public void deserialize(JoyBuffer in) {\n\t\t\n\t}", "public ProtocolObject unpack(ByteBuffer inBuffer) {\n \tInteger payloadLength = inBuffer.getInt();\n \t\n \t// Styx by default uses length exclusive from the length header\n if(inBuffer.remaining() < payloadLength-HEADER_SIZE)\n throw new IllegalStateException(\"Packet not fully read! Want \" + payloadLength + \" bytes, available: \" + inBuffer.remaining());\n \n int classId = BinaryData.asUnsigned(inBuffer.get());\n ProtocolObject po = factory.create(classId);\n try {\n\t\t\tpo.load(new PacketInputStream(inBuffer));\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"error unpacking buffer\", e);\n\t\t}\n\n return po;\n }", "Object decodeObject(Object value);", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }", "public byte[] marshall();", "public void restore(Object obj) throws HibException;", "void marshal(Object obj);", "public abstract Object unpickle(String value);", "void readObject(InputSerializer in) throws java.io.IOException;", "void decode2(DataBuffer buffer, T object);", "public Object read();", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "protected abstract Object read ();", "public OrglRoot unTransformedBy(Dsp externalDsp) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9734:OrglRoot methodsFor: 'operations'!\n{OrglRoot} unTransformedBy: externalDsp {Dsp}\n\t\"Return a copy with externalDsp removed from the receiver's dsp.\"\n\tself subclassResponsibility!\n*/\n}", "private void readObject(ObjectInputStream _stream)\n/* 435: */ throws IOException, ClassNotFoundException\n/* 436: */ {\n/* 437:508 */ _stream.defaultReadObject();\n/* 438:509 */ this._origin_VA.restoreOwner(this);\n/* 439:510 */ //finishReadObject_xjal(_stream, TileGIS.class);\n/* 440: */ }", "public abstract JType unboxify();", "TO fromObject(CONTEXT context, final FROM obj);", "private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}", "private void readObject(ObjectInputStream paramObjectInputStream) throws IOException, ClassNotFoundException {\n/* 91 */ paramObjectInputStream.defaultReadObject();\n/* 92 */ this.types = null;\n/* */ }", "public static java.lang.Object decodeObject(com.webobjects.foundation.NSCoder coder){\n return null; //TODO codavaj!!\n }", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "G unmarshall(final M metadata,\n final InputStream input) throws IOException;", "public void unpin();", "public void unpin();", "protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }", "public Object readExternal(DataInput in)\n throws IOException\n {\n return readObject(in, getBeanInfo().getType().getClassLoader());\n }", "public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }", "public Obj decodeDocument()\n throws Exception\n { \n return decodeDocument(true);\n }", "public abstract Object decode(InputStream is) ;", "private static Object unmarshal(Class<?> klass, InputSource is) {\r\n\t\ttry {\r\n\t\t\tUnmarshaller unmarshaller = createUnmarshaller(klass);\r\n\t\t\tObject o = unmarshaller.unmarshal(is);\r\n\t\t\treturn o;\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t//\r\n\t\t}\r\n\t\treturn is;\r\n\t}", "public void unmarshal(DataInputStream dis)\n{\n super.unmarshal(dis);\n\n try \n {\n munitionID.unmarshal(dis);\n eventID.unmarshal(dis);\n velocity.unmarshal(dis);\n locationInWorldCoordinates.unmarshal(dis);\n burstDescriptor.unmarshal(dis);\n detonationResult = dis.readByte();\n numberOfArticulationParameters = dis.readByte();\n pad = dis.readShort();\n for(int idx = 0; idx < numberOfArticulationParameters; idx++)\n {\n ArticulationParameter anX = new ArticulationParameter();\n anX.unmarshal(dis);\n articulationParameters.add(anX);\n };\n\n } // end try \n catch(Exception e)\n { \n System.out.println(e); \n }\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n in.defaultReadObject();\n company = in.readUTF();\n // Just for test static member\n company = \"pica8_from_serialization\";\n password = encryptor.xor(in.readUTF());\n }", "private void readObject() {\n }", "@Override\n\tpublic void unpackBody(IoBuffer arg0) {\n\n\t}", "@Override\n\tpublic void unpackBody(IoBuffer buffer) {\n\n\t}", "protected Object remObject(int position){\n \n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T extends ImogBean> T deSerialize(InputStream xml) throws ImogSerializationException {\n\t\treturn (T) xstream.fromXML(xml);\n\t}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}", "public Object[] unWrap(Object jaxbObject, ArrayList<String> childNames) throws JAXBWrapperException;", "private Object readResolve() throws ObjectStreamException {\n assert(s_instance != null);\n return s_instance;\n }", "@SuppressWarnings(\"unchecked\")\n static <T> T reserialize(T object) {\n checkNotNull(object);\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n try {\n ObjectOutputStream out = new ObjectOutputStream(bytes);\n out.writeObject(object);\n ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));\n return (T) in.readObject();\n } catch (IOException | ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "public punto() {\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\tz = 0;\n\t\t}", "Objet getObjetAlloue();", "public void serviceCallUnmarshall(Exchange exchange) throws JSONException{\n\t\tString jsonInput=exchange.getIn().getBody(String.class);\n\t\t//unmarshalls only if the exchange contains json data\n\t\tif(jsonInput.startsWith(\"{\")){\n\t\t\tJSONObject jsonObj=new JSONObject(jsonInput);\n\t\t\tJSONArray jsonarray = (JSONArray) jsonObj.get(\"data\");\n\t\t\tString xml= XML.toString(jsonarray.get(0));\n\t\t\texchange.getIn().setBody(xml);\t\t\t\n\t\t}\n\t\telse{\n\t\t\texchange.getIn().setBody(jsonInput);\n\t\t}\n\t}", "public abstract T deserialize(String serial);", "public abstract T toObject(String uuid, Map<String, Object> data);", "@Override\n\tpublic Object readObject() {\n\t\treturn super.readObject();\n\t}", "public static Object deserializeObject(byte[] data) throws IOException {\n\t\tif (data == null || data.length < 1) {\n\t\t\treturn null;\n\t\t}\n\t\tObject object = null;\n\t\ttry {\n\t\t\tObjectInputStream objectStream = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\t\tobject = objectStream.readObject();\n\t\t\tobjectStream.close();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn object;\n\t}", "public org.omg.CORBA.Object read_Object(Class\n clz) {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }", "public NetObject getObject();", "public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n\n this.p1x = payload.getFloat();\n\n this.p1y = payload.getFloat();\n\n this.p1z = payload.getFloat();\n\n this.p2x = payload.getFloat();\n\n this.p2y = payload.getFloat();\n\n this.p2z = payload.getFloat();\n\n this.frame = payload.getUnsignedByte();\n\n }", "private StateTaxObject unmarshallInfo(String infoAsText) {\n String DELIMITER = \"::\";\n String[] tokens = infoAsText.split(DELIMITER);\n \n //pull info from tokens and data-type it correctly\n String nameOfState = tokens[0];\n String taxRateString = tokens[1];\n BigDecimal taxRateBD = new BigDecimal(taxRateString);\n \n //create a new StateTaxObject\n StateTaxObject objectFromFile = new StateTaxObject(nameOfState, taxRateBD);\n \n //return item\n return objectFromFile;\n \n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }", "protected abstract Object toObject(InputStream inputStream, Type targetType) throws BeanConversionException;", "public Object readObject() throws ClassNotFoundException, IOException;", "private static Object getObject(byte[] byteArr) throws IOException, ClassNotFoundException {\n\t\tObject object = SerializationUtils.deserialize(byteArr);\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(byteArr);\n\t\tObjectInput in = new ObjectInputStream(bis);\n\t\t//return in.readObject();\n\t\treturn object;\n\t}", "public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }", "public ProtocolObject unpack(GameTransportPacket packet) {\n ProtocolObject gamePacket;\r\n gamePacket = styxDecoder.unpack(ByteBuffer.wrap(packet.gamedata));\r\n return gamePacket;\r\n }", "String objectRead();", "public void unget() {}", "@Deprecated\n public ObjectInputStream deserialize(ObjectName name,byte[] data)\n throws InstanceNotFoundException, OperationsException{\n final ClassLoader loader=getClassLoaderFor(name);\n return instantiator.deserialize(loader,data);\n }", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "static ManagerPrx uncheckedCast(com.zeroc.Ice.ObjectPrx obj)\n {\n return com.zeroc.Ice.ObjectPrx._uncheckedCast(obj, ManagerPrx.class, _ManagerPrxI.class);\n }", "com.google.protobuf.ByteString getObj();", "public int unmarshal(java.nio.ByteBuffer buff) throws Exception\n{\n recordType = VariableParameterRecordType.unmarshalEnum(buff);\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(buff);\n entityType.unmarshal(buff);\n padding = (short)(buff.getShort() & 0xFFFF);\n padding1 = buff.getInt();\n return getMarshalledSize();\n}", "public Object DeSerializeObject(String sFilePath) {\n File f = null;\n FileInputStream fis = null;\n ObjectInputStream ois = null;\n Object object = null;\n try {\n f = new File(sFilePath);\n\n if (!f.exists()) {\n throw new Exception(\"File Not found for \" + sFilePath);\n }\n\n fis = new FileInputStream(f);\n ois = new ObjectInputStream(fis);\n\n try {\n object = ois.readObject();\n } catch (Exception e) {\n }\n\n } catch (Exception e) {\n } finally {\n try {\n ois.close();\n } catch (Exception e) {\n }\n try {\n fis.close();\n } catch (Exception e) {\n }\n f = null;\n return object;\n }\n }", "public /* bridge */ /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "protected Object readResolve() throws ObjectStreamException {\n\t\tfinalizeData();\n\t\treturn this;\n\t}", "public Object readObject() {\n Object fromServer = null;\n\n try {\n fromServer = inputStream.readObject();\n } catch(InvalidClassException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not deserialize the read object!\");\n e.printStackTrace();\n System.exit(1);\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - error reading an object from the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n } catch(ClassNotFoundException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the read object's data type is unknown!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n return fromServer;\n }", "Book toModeL(BookDTO booKDTO);", "public static Object unboxAll(Class<?> type, Object src) {\n return unboxAll(type, src, 0, -1);\n }", "public Object readObject() throws IOException, ClassNotFoundException {\n if (objectInputStream == null) {\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n }\n return objectInputStream.readObject();\n }", "public StructType unboxed() {\n return new StructType(IntStream.range(0, length()).mapToObj(i -> {\n StructField field = fields[i];\n if (field.type.isObject()) {\n field = new StructField(field.name, field.type.unboxed(), field.measure);\n }\n return field;\n }).toArray(StructField[]::new));\n }", "public OffloadableObject(final T object) {\n this.object = object;\n deserialized = true;\n }", "T deserialize(InputStream stream) throws IOException;", "public void unmarshalReferences(uka.transport.UnmarshalStream _stream)\n throws java.io.IOException, ClassNotFoundException\n {\n //Extracting the byte array\n int _size = _length * uka.transport.BasicIO.SIZEOF_byte;\n if(_size > uka.transport.BasicIO.REQUEST_MAX){\n //b is too big to be serialized as a primitive field\n value = (byte[]) _stream.readObject();\n } else {\n //b is small enough to be serialized as a primitive field\n _stream.request(_size);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n value = new byte[_length];\n _pos = uka.transport.BasicIO.extract(_buffer, _pos, value);\n _stream.accept(_size);\n }\n }", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static <S extends Serializable> S deserializeObject(\n Path inputFile, Class<S> outputClass) {\n try {\n // Awkward nested try blocks required because we refuse to throw IOExceptions.\n try (Closer closer = Closer.create()) {\n FileInputStream fis = closer.register(new FileInputStream(inputFile.toFile()));\n BufferedInputStream bis = closer.register(new BufferedInputStream(fis));\n // Allows us to peek at the beginning of the stream and then push the bytes back in for\n // downstream consumers to read.\n PushbackInputStream pbCompressed =\n new PushbackInputStream(bis, DEFAULT_HEADER_LENGTH_BYTES);\n Format f = detectFormat(pbCompressed);\n if (f == Format.GZIP) {\n InputStream gis = closer.register(new GZIPInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(gis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else if (f == Format.LZ4) {\n InputStream lis = closer.register(new LZ4FrameInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(lis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else {\n return deserializeObject(pbCompressed, outputClass);\n }\n }\n } catch (Exception e) {\n throw new BatfishException(\n String.format(\n \"Failed to deserialize object of type %s from file %s\",\n outputClass.getCanonicalName(), inputFile),\n e);\n }\n }", "protected abstract Geometry decode(Object o);", "protected Object readResolve() throws ObjectStreamException {\n try {\n return getContainer().getField(name).get(null);\n } catch (ReflectiveOperationException e) {\n throw new InvalidObjectException(e.toString());\n }\n }", "Object transform(Object o);", "public Object fromXML(Reader input) throws XMLUtilityException {\r\n\t\tObject beanObject;\r\n\t\tbeanObject = unmarshaller.fromXML(input);\r\n\t\treturn beanObject;\r\n\t}", "private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tthreadLocalDedup = new ThreadLocal<Dedup>() {\n\t\t\t@Override\n\t\t\tprotected Dedup initialValue() {\n\t\t\t\treturn new Dedup();\n\t\t\t}\n\t\t};\n\t\tin.defaultReadObject();\n\t}", "public Builder clearPackedStruct() {\n bitField0_ = (bitField0_ & ~0x00000020);\n packedStruct_ = false;\n onChanged();\n return this;\n }", "@Override\n public <T> T unproxy(T entity) {\n return entity;\n }", "protected Object readResolve()\n/* */ {\n/* 353 */ return new JsonFactory(this, this._objectCodec);\n/* */ }", "public /* bridge */ /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.location.GpsClock.1.createFromParcel(android.os.Parcel):java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "public Parcelable mo1512c() {\n return null;\n }", "public interface Marshaller<X> {\n Bytestring marshall(X x);\n\n X unmarshall(Bytestring string);\n}", "public Marshaller deregisterMarshaller(QName key) {\n log.debug(\"Deregistering marshaller for object type {}\", key);\n if(key != null){\n return marshallers.remove(key);\n }\n \n return null;\n }", "public void setObject(XSerial obj);", "@Override\n public SpesaObject createFromParcel(Parcel in) {\n return new SpesaObject(in);\n }" ]
[ "0.6534103", "0.5946154", "0.57879", "0.57101125", "0.5591474", "0.5535147", "0.5413858", "0.539999", "0.5364797", "0.5353247", "0.53414476", "0.53413075", "0.53288126", "0.53102314", "0.52824503", "0.5257184", "0.5233642", "0.52257925", "0.5222415", "0.5222415", "0.5222415", "0.5196838", "0.5155097", "0.511569", "0.51081955", "0.50897527", "0.5088816", "0.5084911", "0.5069208", "0.5048745", "0.5034998", "0.5024865", "0.5024865", "0.4986204", "0.49818587", "0.49818447", "0.49801165", "0.49799928", "0.49574056", "0.4953517", "0.49527717", "0.49314696", "0.49015364", "0.49011827", "0.4900862", "0.4882473", "0.48770165", "0.48726943", "0.48713008", "0.48710898", "0.48630357", "0.4860553", "0.48544502", "0.48538888", "0.48369694", "0.48260847", "0.48252812", "0.4825213", "0.48241577", "0.4815795", "0.4809295", "0.48023197", "0.47960004", "0.47926012", "0.4785121", "0.4781997", "0.47751808", "0.47719187", "0.47681028", "0.47638774", "0.47536576", "0.4751774", "0.47397992", "0.47392997", "0.4738548", "0.47372785", "0.47339183", "0.47327173", "0.47310457", "0.4727316", "0.47269017", "0.47261062", "0.4725898", "0.47208825", "0.47206265", "0.47162548", "0.47162277", "0.4714287", "0.4714124", "0.47061345", "0.47054845", "0.47044876", "0.46957147", "0.4690702", "0.46854934", "0.46773276", "0.4675157", "0.46750835", "0.4671106", "0.46668676" ]
0.633101
1
private Object unMarshall \brief marshal \details \return Object
public abstract Object marshal(Object objO, File objF);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object unMarshal(File pobjFile);", "void marshal(Object obj);", "void decodeObject();", "public void setUnMarshaller(UnMarshaller unmarshaller)\n {\n }", "public byte[] marshall();", "void decodeObjectArray();", "public abstract org.omg.CORBA.Object read_Object();", "public abstract JType unboxify();", "protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }", "public void restore(Object obj) throws HibException;", "public abstract Object unpickle(String value);", "Object decodeObject(Object value);", "public Object[] unWrap(Object jaxbObject, ArrayList<String> childNames) throws JAXBWrapperException;", "public abstract Object deserialize(Object object);", "protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }", "G unmarshall(final M metadata,\n final InputStream input) throws IOException;", "public interface Marshaller<X> {\n Bytestring marshall(X x);\n\n X unmarshall(Bytestring string);\n}", "public void deserialize() {\n\t\t\n\t}", "private static Object unmarshal(Class<?> klass, InputSource is) {\r\n\t\ttry {\r\n\t\t\tUnmarshaller unmarshaller = createUnmarshaller(klass);\r\n\t\t\tObject o = unmarshaller.unmarshal(is);\r\n\t\t\treturn o;\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t//\r\n\t\t}\r\n\t\treturn is;\r\n\t}", "public static java.lang.Object decodeObject(com.webobjects.foundation.NSCoder coder){\n return null; //TODO codavaj!!\n }", "public ProtocolObject unpack(ByteBuffer inBuffer) {\n \tInteger payloadLength = inBuffer.getInt();\n \t\n \t// Styx by default uses length exclusive from the length header\n if(inBuffer.remaining() < payloadLength-HEADER_SIZE)\n throw new IllegalStateException(\"Packet not fully read! Want \" + payloadLength + \" bytes, available: \" + inBuffer.remaining());\n \n int classId = BinaryData.asUnsigned(inBuffer.get());\n ProtocolObject po = factory.create(classId);\n try {\n\t\t\tpo.load(new PacketInputStream(inBuffer));\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"error unpacking buffer\", e);\n\t\t}\n\n return po;\n }", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "public void deserialize(JoyBuffer in) {\n\t\t\n\t}", "public org.apache.yoko.orb.CORBA.OutputStream preMarshal()\n throws LocationForward {\n // If we have an UpcallReturn object, then invoking upcallBeginReply\n // will eventually result in a call to createOutputStream.\n //\n // If we don't have an UpcallReturn object, then it means a oneway\n // invocation was made for a twoway operation. We return a dummy\n // OutputStream to make the skeleton happy and avoid a crash.\n //\n if (upcallReturn_ != null) {\n org.omg.IOP.ServiceContext[] scl = new org.omg.IOP.ServiceContext[replySCL_\n .size()];\n replySCL_.copyInto(scl);\n upcallReturn_.upcallBeginReply(this, scl);\n } else {\n org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer();\n out_ = new org.apache.yoko.orb.CORBA.OutputStream(buf, in_\n ._OB_codeConverters(), (profileInfo_.major << 8)\n | profileInfo_.minor);\n }\n out_._OB_ORBInstance(this.orbInstance());\n return out_;\n }", "public OrglRoot unTransformedBy(Dsp externalDsp) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9734:OrglRoot methodsFor: 'operations'!\n{OrglRoot} unTransformedBy: externalDsp {Dsp}\n\t\"Return a copy with externalDsp removed from the receiver's dsp.\"\n\tself subclassResponsibility!\n*/\n}", "private void readObject(ObjectInputStream paramObjectInputStream) throws IOException, ClassNotFoundException {\n/* 91 */ paramObjectInputStream.defaultReadObject();\n/* 92 */ this.types = null;\n/* */ }", "protected abstract Object read ();", "TO fromObject(CONTEXT context, final FROM obj);", "public void unmarshal(DataInputStream dis)\n{\n super.unmarshal(dis);\n\n try \n {\n munitionID.unmarshal(dis);\n eventID.unmarshal(dis);\n velocity.unmarshal(dis);\n locationInWorldCoordinates.unmarshal(dis);\n burstDescriptor.unmarshal(dis);\n detonationResult = dis.readByte();\n numberOfArticulationParameters = dis.readByte();\n pad = dis.readShort();\n for(int idx = 0; idx < numberOfArticulationParameters; idx++)\n {\n ArticulationParameter anX = new ArticulationParameter();\n anX.unmarshal(dis);\n articulationParameters.add(anX);\n };\n\n } // end try \n catch(Exception e)\n { \n System.out.println(e); \n }\n }", "public int unmarshal(java.nio.ByteBuffer buff) throws Exception\n{\n recordType = VariableParameterRecordType.unmarshalEnum(buff);\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(buff);\n entityType.unmarshal(buff);\n padding = (short)(buff.getShort() & 0xFFFF);\n padding1 = buff.getInt();\n return getMarshalledSize();\n}", "public Marshaller deregisterMarshaller(QName key) {\n log.debug(\"Deregistering marshaller for object type {}\", key);\n if(key != null){\n return marshallers.remove(key);\n }\n \n return null;\n }", "public final OnTheWire marshal(InMemory onTheWire) {\n return null;\n }", "public Obj decodeDocument()\n throws Exception\n { \n return decodeDocument(true);\n }", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "public /* bridge */ /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "public Object read();", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "void readObject(InputSerializer in) throws java.io.IOException;", "protected String reflectMarshal (Object obj) throws Exception {\n\t\treturn reflectMarshal (obj, new MarshalContext ());\n\t}", "static /* synthetic */ byte[] m10276k(Intent intent) {\n if (intent == null) {\n return null;\n }\n Parcel obtain = Parcel.obtain();\n obtain.setDataPosition(0);\n intent.writeToParcel(obtain, 0);\n byte[] marshall = obtain.marshall();\n obtain.recycle();\n return marshall;\n }", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "void decode2(DataBuffer buffer, T object);", "public void unmarshalReferences(uka.transport.UnmarshalStream _stream)\n throws java.io.IOException, ClassNotFoundException\n {\n //Extracting the byte array\n int _size = _length * uka.transport.BasicIO.SIZEOF_byte;\n if(_size > uka.transport.BasicIO.REQUEST_MAX){\n //b is too big to be serialized as a primitive field\n value = (byte[]) _stream.readObject();\n } else {\n //b is small enough to be serialized as a primitive field\n _stream.request(_size);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n value = new byte[_length];\n _pos = uka.transport.BasicIO.extract(_buffer, _pos, value);\n _stream.accept(_size);\n }\n }", "public abstract Object decode(InputStream is) ;", "public static Object unboxAll(Class<?> type, Object src, int srcPos, int len) {\n switch (tId(type)) {\n case I_BOOLEAN: return unboxBooleans(src, srcPos, len);\n case I_BYTE: return unboxBytes(src, srcPos, len);\n case I_CHARACTER: return unboxCharacters(src, srcPos, len);\n case I_DOUBLE: return unboxDoubles(src, srcPos, len);\n case I_FLOAT: return unboxFloats(src, srcPos, len);\n case I_INTEGER: return unboxIntegers(src, srcPos, len);\n case I_LONG: return unboxLongs(src, srcPos, len);\n case I_SHORT: return unboxShorts(src, srcPos, len);\n }\n throw new IllegalArgumentException(\"No primitive/box: \" + type);\n }", "public static void unbox(Class type, MethodVisitor mv) {\n if (type.isPrimitive() && type != Void.TYPE) {\n String returnString = \"(Ljava/lang/Object;)\" + getTypeDescription(type);\n mv.visitMethodInsn(\n Opcodes.INVOKESTATIC,\n getClassInternalName(DefaultTypeTransformation.class.getName()),\n type.getName() + \"Unbox\",\n returnString);\n }\n }", "static ManagerPrx uncheckedCast(com.zeroc.Ice.ObjectPrx obj)\n {\n return com.zeroc.Ice.ObjectPrx._uncheckedCast(obj, ManagerPrx.class, _ManagerPrxI.class);\n }", "void m21808d(Object obj);", "public Parcelable mo1512c() {\n return null;\n }", "private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n in.defaultReadObject();\n company = in.readUTF();\n // Just for test static member\n company = \"pica8_from_serialization\";\n password = encryptor.xor(in.readUTF());\n }", "Object transform(Object o);", "protected Object remObject(int position){\n \n }", "protected abstract Object toObject(InputStream inputStream, Type targetType) throws BeanConversionException;", "public byte[] marshall() {\r\n if (marshall == null)\r\n marshall = Utilities.marshall(COMMAND, deviceToken, payload);\r\n return marshall.clone();\r\n }", "@Override\n public void updete(Object obj) {\n\n }", "@Override\n public void n(d object) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(\"com.google.android.gms.maps.model.internal.IMarkerDelegate\");\n object = object != null ? object.asBinder() : null;\n parcel.writeStrongBinder((IBinder)object);\n this.lb.transact(18, parcel, parcel2, 0);\n parcel2.readException();\n parcel2.recycle();\n parcel.recycle();\n return;\n }\n catch (Throwable var1_2) {\n parcel2.recycle();\n parcel.recycle();\n throw var1_2;\n }\n }", "public Object readExternal(DataInput in)\n throws IOException\n {\n return readObject(in, getBeanInfo().getType().getClassLoader());\n }", "public static Object unboxAll(Class<?> type, Object src) {\n return unboxAll(type, src, 0, -1);\n }", "com.google.protobuf.ByteString getObj();", "@Nonnull\n S deiconify();", "protected abstract Object transform(Object o);", "public void unpin();", "public void unpin();", "public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }", "public void marshal(java.nio.ByteBuffer buff) throws Exception\n{\n recordType.marshal(buff);\n changeIndicator.marshal(buff);\n entityType.marshal(buff);\n buff.putShort( (short)padding);\n buff.putInt( (int)padding1);\n}", "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "public void marshal(uka.transport.MarshalStream _stream)\n throws java.io.IOException\n {\n _stream.reserve(_SIZE);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n marshalPrimitives(_buffer, _pos);\n _stream.deliver(_SIZE);\n marshalReferences(_stream);\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T extends ImogBean> T deSerialize(InputStream xml) throws ImogSerializationException {\n\t\treturn (T) xstream.fromXML(xml);\n\t}", "public int deserialize(VirtualPointer vp, Object[] val);", "public void testMarshallUnMarshall() {\n\t\tStringWriter writer = new StringWriter();\n\t\t\n\t\tassertTrue( userList.getListItems().size() == 2 );\n\t\ttry\n\t\t{\n\t\t\tMarshaller.marshal(userList, writer);\n\t\t\t\n//\t\t\tSystem.out.println( writer.toString() );\n\t\t\t\n\t\t\tStringReader reader = new StringReader( writer.toString() );\n\t\t\tUserList unMarshalledList = (UserList)Unmarshaller.unmarshal(UserList.class, reader);\n\t\t\t\n\t\t\tassertTrue( unMarshalledList.getListItems().size() == 2 );\n\t\t\tassertTrue( ( (ListItem)unMarshalledList.getListItems().get(0) ).getName().equals( \"Name 1\") );\n\t\t\tassertTrue( ( (ListItem)unMarshalledList.getListItems().get(1) ).getName().equals( \"Name 2\") );\n\t\t\tassertTrue( ( (ListItem)unMarshalledList.getListItems().get(0) ).getListName().equals( \"ListName 1\") );\n\t\t\tassertTrue( ( (ListItem)unMarshalledList.getListItems().get(1) ).getListName().equals( \"ListName 2\") );\n\n\t\t}\n\t\tcatch( MarshalException e )\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch( ValidationException e )\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void unpackBody(IoBuffer arg0) {\n\n\t}", "@Override\n\tpublic Object readObject() {\n\t\treturn super.readObject();\n\t}", "void m21806b(Object obj);", "public abstract B zzt(Object obj);", "public void serviceCallUnmarshall(Exchange exchange) throws JSONException{\n\t\tString jsonInput=exchange.getIn().getBody(String.class);\n\t\t//unmarshalls only if the exchange contains json data\n\t\tif(jsonInput.startsWith(\"{\")){\n\t\t\tJSONObject jsonObj=new JSONObject(jsonInput);\n\t\t\tJSONArray jsonarray = (JSONArray) jsonObj.get(\"data\");\n\t\t\tString xml= XML.toString(jsonarray.get(0));\n\t\t\texchange.getIn().setBody(xml);\t\t\t\n\t\t}\n\t\telse{\n\t\t\texchange.getIn().setBody(jsonInput);\n\t\t}\n\t}", "void mo3207a(Object obj);", "private void readObject(ObjectInputStream _stream)\n/* 435: */ throws IOException, ClassNotFoundException\n/* 436: */ {\n/* 437:508 */ _stream.defaultReadObject();\n/* 438:509 */ this._origin_VA.restoreOwner(this);\n/* 439:510 */ //finishReadObject_xjal(_stream, TileGIS.class);\n/* 440: */ }", "void refineItem(JavaBeanMarshaller marshaller, Item item);", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}", "public abstract Object mo1185b();", "public javax.slee.resource.Marshaler getMarshaler() {\r\n \t\treturn null;\r\n \t}", "public abstract T toObject(String uuid, Map<String, Object> data);", "private native void unrefMsgCPtr ();", "public void marshal(Writer out) throws MarshalException, ValidationException {\r\n/* 345 */ Marshaller.marshal(this, out);\r\n/* */ }", "public void setObject(XSerial obj);", "@SuppressWarnings(\"unchecked\")\n static <T> T reserialize(T object) {\n checkNotNull(object);\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n try {\n ObjectOutputStream out = new ObjectOutputStream(bytes);\n out.writeObject(object);\n ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));\n return (T) in.readObject();\n } catch (IOException | ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "public void marshall(StartChildWorkflowExecutionInitiatedEventAttributes startChildWorkflowExecutionInitiatedEventAttributes,\n StructuredJsonGenerator jsonGenerator) {\n\n if (startChildWorkflowExecutionInitiatedEventAttributes == null) {\n throw new SdkClientException(\"Invalid argument passed to marshall(...)\");\n }\n\n try {\n jsonGenerator.writeStartObject();\n\n if (startChildWorkflowExecutionInitiatedEventAttributes.getWorkflowId() != null) {\n jsonGenerator.writeFieldName(\"workflowId\").writeValue(startChildWorkflowExecutionInitiatedEventAttributes.getWorkflowId());\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getWorkflowType() != null) {\n jsonGenerator.writeFieldName(\"workflowType\");\n WorkflowTypeJsonMarshaller.getInstance().marshall(startChildWorkflowExecutionInitiatedEventAttributes.getWorkflowType(), jsonGenerator);\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getControl() != null) {\n jsonGenerator.writeFieldName(\"control\").writeValue(startChildWorkflowExecutionInitiatedEventAttributes.getControl());\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getInput() != null) {\n jsonGenerator.writeFieldName(\"input\").writeValue(startChildWorkflowExecutionInitiatedEventAttributes.getInput());\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getExecutionStartToCloseTimeout() != null) {\n jsonGenerator.writeFieldName(\"executionStartToCloseTimeout\").writeValue(\n startChildWorkflowExecutionInitiatedEventAttributes.getExecutionStartToCloseTimeout());\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getTaskList() != null) {\n jsonGenerator.writeFieldName(\"taskList\");\n TaskListJsonMarshaller.getInstance().marshall(startChildWorkflowExecutionInitiatedEventAttributes.getTaskList(), jsonGenerator);\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getTaskPriority() != null) {\n jsonGenerator.writeFieldName(\"taskPriority\").writeValue(startChildWorkflowExecutionInitiatedEventAttributes.getTaskPriority());\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getDecisionTaskCompletedEventId() != null) {\n jsonGenerator.writeFieldName(\"decisionTaskCompletedEventId\").writeValue(\n startChildWorkflowExecutionInitiatedEventAttributes.getDecisionTaskCompletedEventId());\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getChildPolicy() != null) {\n jsonGenerator.writeFieldName(\"childPolicy\").writeValue(startChildWorkflowExecutionInitiatedEventAttributes.getChildPolicy());\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getTaskStartToCloseTimeout() != null) {\n jsonGenerator.writeFieldName(\"taskStartToCloseTimeout\").writeValue(\n startChildWorkflowExecutionInitiatedEventAttributes.getTaskStartToCloseTimeout());\n }\n\n java.util.List<String> tagListList = startChildWorkflowExecutionInitiatedEventAttributes.getTagList();\n if (tagListList != null) {\n jsonGenerator.writeFieldName(\"tagList\");\n jsonGenerator.writeStartArray();\n for (String tagListListValue : tagListList) {\n if (tagListListValue != null) {\n jsonGenerator.writeValue(tagListListValue);\n }\n }\n jsonGenerator.writeEndArray();\n }\n if (startChildWorkflowExecutionInitiatedEventAttributes.getLambdaRole() != null) {\n jsonGenerator.writeFieldName(\"lambdaRole\").writeValue(startChildWorkflowExecutionInitiatedEventAttributes.getLambdaRole());\n }\n\n jsonGenerator.writeEndObject();\n } catch (Throwable t) {\n throw new SdkClientException(\"Unable to marshall request to JSON: \" + t.getMessage(), t);\n }\n }", "public ProtocolObject unpack(GameTransportPacket packet) {\n ProtocolObject gamePacket;\r\n gamePacket = styxDecoder.unpack(ByteBuffer.wrap(packet.gamedata));\r\n return gamePacket;\r\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }", "@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:53.104 -0500\", hash_original_method = \"E5B2C829F55FF77DE885EB0182CA875F\", hash_generated_method = \"24C5744267DF28523A463FE89F8C323F\")\n \n@Override public Object getDecodedObject(BerInputStream in) throws IOException {\n byte[] bytes = new byte[in.length - 1];\n System.arraycopy(in.buffer, in.contentOffset + 1, bytes, 0,\n in.length - 1);\n return new BitString(bytes, in.buffer[in.contentOffset]);\n }", "@Override\n\tpublic void unpackBody(IoBuffer buffer) {\n\n\t}", "public int unmarshal(DataInputStream dis) throws Exception\n{\n int uPosition = 0;\n try \n {\n recordType = VariableParameterRecordType.unmarshalEnum(dis);\n uPosition += recordType.getMarshalledSize();\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);\n uPosition += changeIndicator.getMarshalledSize();\n uPosition += entityType.unmarshal(dis);\n padding = (short)dis.readUnsignedShort();\n uPosition += 2;\n padding1 = dis.readInt();\n uPosition += 4;\n }\n catch(Exception e)\n { \n System.out.println(e); \n }\n return getMarshalledSize();\n}", "public Object unplug(Object obj)\r\n\t{\n\t\tif (obj instanceof BrokerEngine)\r\n\t\t{\r\n\t\t\treturn doUnplug((BrokerEngine)obj);\r\n\t\t}\r\n\t\tif (obj instanceof Component)\r\n\t\t{\r\n\t\t\treturn doUnplug((Component)obj);\r\n\t\t}\r\n\t\t\r\n\t\t// deferred, synchronous handling of unplugging calls \r\n\t\tdefer(new UnplugEvent(obj));\r\n\t\treturn obj;\r\n\t}", "public DLL reverse(DLL in){\r\n\t\tDLL temp = new DLL();\r\n\t\tCustomerNode<Customer> c = in.last;\r\n\t\twhile(c!=null){\r\n\t\t\ttemp.addNode(new CustomerNode<Customer>(new Customer(c.getElement().getArrivalTime(), \r\n\t\t\t\t\tc.getElement().getID(), c.getElement().getOrderTime(), \r\n\t\t\t\t\tc.getElement().getPaid(), c.getElement().getPatience())));\r\n\t\t\tc = c.getPrev();\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "protected int get_marshal_type () {\n\t\treturn MARSHAL_FCAST_RESULT;\n\t}", "protected int get_marshal_type () {\n\t\treturn MARSHAL_FCAST_RESULT;\n\t}", "IData reify();" ]
[ "0.6787282", "0.6435739", "0.6416048", "0.5951605", "0.5871082", "0.5657419", "0.5464222", "0.5340966", "0.5291361", "0.52819204", "0.52415836", "0.5234785", "0.52310747", "0.5224733", "0.5200762", "0.5147355", "0.511361", "0.50926816", "0.5067281", "0.5061664", "0.5046901", "0.5038741", "0.5037567", "0.50255", "0.5004323", "0.49985448", "0.4973127", "0.49645913", "0.4959154", "0.49405253", "0.4895337", "0.4889296", "0.4885316", "0.4870805", "0.4861398", "0.48526946", "0.48420528", "0.48420528", "0.48420528", "0.48397195", "0.4837756", "0.48370743", "0.48297408", "0.48260006", "0.48094517", "0.48085195", "0.47986832", "0.47700077", "0.4766107", "0.47654098", "0.47647873", "0.47638944", "0.4761167", "0.47608563", "0.47576964", "0.47549847", "0.4745981", "0.4738926", "0.47377166", "0.4733416", "0.4729568", "0.47282383", "0.472718", "0.47236705", "0.47233045", "0.47233045", "0.47186947", "0.47123298", "0.47081804", "0.46958628", "0.4684186", "0.4665834", "0.46644536", "0.46515623", "0.46421775", "0.46368584", "0.46300802", "0.46289816", "0.46261933", "0.46259865", "0.46195483", "0.4617362", "0.46172845", "0.46158415", "0.46112883", "0.46103433", "0.46081927", "0.45955682", "0.45892048", "0.45864558", "0.45817688", "0.4580345", "0.45789546", "0.45697427", "0.456952", "0.4556418", "0.4553977", "0.45523125", "0.45523125", "0.45517755" ]
0.54880005
6
Created by Asmaa on 3/31/2018.
public interface IEditTripActivityPresenter { public void setData(Intent intent); public void editTrip(); public void startSerivice(); public void stopService(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\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 tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\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\tpublic void entrenar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n protected void getExras() {\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 public void init() {\n\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void poetries() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {}", "private void m50366E() {\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}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\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\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private static void cajas() {\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}", "private MetallicityUtils() {\n\t\t\n\t}", "Petunia() {\r\n\t\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\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 mo12930a() {\n }", "public void mo6081a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void init() {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "protected boolean func_70814_o() { return true; }", "@Override\n public void initialize() { \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}" ]
[ "0.6018876", "0.5888796", "0.5838877", "0.56277233", "0.5626071", "0.5594502", "0.55941707", "0.5587288", "0.5587288", "0.55505645", "0.5546402", "0.554113", "0.5518865", "0.55096984", "0.5494763", "0.5470735", "0.5470735", "0.5470735", "0.5470735", "0.5470735", "0.5470735", "0.54640514", "0.54463893", "0.54410344", "0.5439428", "0.5431383", "0.54304236", "0.54230714", "0.54065794", "0.5403574", "0.54024374", "0.54018974", "0.53950715", "0.53873366", "0.5383046", "0.5376548", "0.5374004", "0.5368855", "0.53624195", "0.5355496", "0.5355496", "0.5355496", "0.5355496", "0.5355496", "0.5354117", "0.5353132", "0.53470886", "0.5323411", "0.5323411", "0.5323411", "0.5323411", "0.5323411", "0.5323411", "0.5323411", "0.5323296", "0.5323296", "0.53220385", "0.5321092", "0.5317817", "0.5316054", "0.5301529", "0.53004533", "0.5295333", "0.5295333", "0.5295333", "0.5291757", "0.5285668", "0.52845484", "0.527055", "0.527055", "0.526868", "0.526846", "0.5265776", "0.5265776", "0.5265776", "0.52637845", "0.52637845", "0.5257213", "0.52546173", "0.5251124", "0.5246676", "0.523492", "0.523492", "0.523492", "0.52250564", "0.52109635", "0.5210297", "0.52098197", "0.5209523", "0.5209102", "0.5208317", "0.52065986", "0.5202369", "0.52006054", "0.5196516", "0.5190642", "0.5190642", "0.5190642", "0.5187275", "0.5184001", "0.51810706" ]
0.0
-1
Input system to determine which problem to run
public void init() { int inN; do{ inN=getN(); switch(inN) { case 1: problem1();break; case 2: problem2();break; case 3: problem3();break; default: } }while(inN != 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkUserInput() {\n }", "public void consoleGetOptions(){\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input;\n\t\tint diff=0,first=0;\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Who starts first (0-Player, 1-Computer): \");\n\t\t\t\tinput=in.readLine();\n\t\t\t\tfirst = Integer.parseInt(input);\n\t\t\t\tif (first<0 || first>1) throw new IllegalArgumentException();\n\t\t\t\tif (first==1) ttt.switchPlayer();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t}\n\t\t}while(true);\t\t\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Enter AI level (0-Noob, 1-Normal, 2-God Mode): \");\n\t\t\t\tinput=in.readLine();\n\t\t\t\tdiff = Integer.parseInt(input);\n\t\t\t\tif (diff<0 || diff>2) throw new IllegalArgumentException();\n\t\t\t\tttt.setDifficulty(diff);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t}\n\t\t}while(true);\t\t\n\t}", "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}", "private static void executeProgram() throws IllegalArgumentException {\n\t\twhile(true) {\n\t\t\tcalculateRoot();\n\t\t\tsc = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Do you want to enter another equation? :\");\n\t\t\tString answer = sc.next();\n\t\t\tif(answer.equalsIgnoreCase(\"no\")) {\n\t\t\t\tSystem.out.println(\"Good bye!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public final void invalidInput() {\n\t\tout.println(\"Command not recognized. Please try again.\");\n\t}", "private void inputValidation(String[] args) {\r\n\t\t// Must have two argument inputs - grammar and sample input\r\n\t\tif (args.length != 2) {\r\n\t\t\tSystem.out.println(\"Invalid parameters. Try:\\njava Main <path/to/grammar> <path/to/input>\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "public void callHelp() {\n System.out.println(\"Enter emergency number: \");\n String emergencyNeed = input.nextLine();\n this.emergencyNeed = emergencyNeed;\n if (emergencyNeed.equals(police)) {\n System.out.println(\"Calling for police!\");\n }\n else if (emergencyNeed.equals(fire)) {\n System.out.println(\"Calling for fire department!\");\n }\n else if (emergencyNeed.equals(emt)) {\n System.out.println(\"Calling for emt!\");\n }\n else {\n System.out.println(\"Invalid emergency number.\");\n }\n }", "public static void main(String[] args) throws Exception {\n // Prompt the user to input a number (in a given range)\n System.out.print(\"Numéro du scenario (1 à \" + maxScenarioNumber + \") : \");\n\n // Parse the given value to a scenario index\n int scenarioNumber = Character.getNumericValue(System.in.read()) - 1;\n\n try {\n // Retrieve and run the scenario\n getScenario(scenarioNumber);\n }\n catch (IndexOutOfBoundsException exc) {\n System.err.println(\"Numéro de scénario inconnu.\");\n }\n }", "@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 }", "public static void main(String[] args)\n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tStringBuilder answers = new StringBuilder();\n\n\t\tanswers.append(\"PERFECTION OUTPUT\\n\");\n\t\ttry\n\t\t{\n\t\t\tint value;\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\tvalue = in.nextInt();\n\t\t\t\tif (value == 0) break;\n\n\t\t\t\tanswers.append(solve(value));\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tanswers.append(\"END OF OUTPUT\");\n\n\t\tSystem.out.println(answers);\n\t}", "public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\t\tProblemSolver problemSolver = new ProblemSolver();\n\t\tproblemSolver.solveTheProblem(in, out);\t\t\n\t\tout.close();\t\t\n\t}", "public static int CommandLineInput() {\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\t\n\t\t\tSystem.out.println(\"Input the number of Philosophers: \");\n\t\t\tString line = input.nextLine();\n\t\t\tinput.close();\n\t\t\t\n\t\t\tint set = Integer.parseInt(line);\t\n\t\t\t\n\t\t\tif(set <= 0){\t\n\t\t\t\tSystem.out.println(set + \" is not a positive decimal integer\");\n\t\t\t\tSystem.out.println(\"Useage: java DiningPhilosophers [\"+DEFAULT_NUMBER_OF_PHILOSOPHERS+\"]\");\n\t\t\t\tSystem.out.println(\" \");\n\t\t\t\tSystem.out.println(\"WARNING: The default \"+ DEFAULT_NUMBER_OF_PHILOSOPHERS+\" philosophers will setting on the table.\");\n\t\t\t\treturn DEFAULT_NUMBER_OF_PHILOSOPHERS;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"There are \"+set+\" philosophers setting on the table\");\n\t\t\t\tSystem.out.println(\" \");\n\t\t\t\treturn set;\n\t\t\t}\n\t\t\t\n\t\t} catch(NumberFormatException e){\n\t\t\n\t\t\tSystem.out.println(\"WARNING: Illegal input!\");\n\t\t\tSystem.out.println(\"WARNING: The default \"+ DEFAULT_NUMBER_OF_PHILOSOPHERS+\" philosophers will setting on the table.\");\n\t\t\tSystem.out.println(\" \");\n\t\t\treturn DEFAULT_NUMBER_OF_PHILOSOPHERS;\n\t\t\t}\n\t\t}", "public static void main(String[] args) {\n\t\tinvalidInput();\n\n\t}", "public void takeInput() {\n\t\tboolean flag = true;\n\t\tMain test = new Main();\n\t\twhile(flag) {\n\t\t\tLOGGER.info(\"Enter an option 1.Calculate Simple Interest 2.Calculate Compound Interest 3.exit\");\n\t\t\tint val = sc.nextInt();\n\t\t\tswitch(val) {\n\t\t\tcase 1:\n\t\t\t\ttest.takeInputForSimpleInterest();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttest.takeInputForCompoundInterest();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tLOGGER.info(\"Enter valid input\");\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> problems = new ArrayList<>();\n\t\t\n\t\t\n\t\tint noOfInputs = Integer.parseInt(in.nextLine());\n\t\t\n\t\tfor(int x=0; x<noOfInputs; x++) {\n\t\t\tproblems.add(in.nextLine());\n\t\t}\n\t\tin.close();\n\t\t\n\t\tfor(String p : problems) {\n\t\t\tint no = getFibonacciIndex(p);\n\t\t\t//System.out.print( no + \"\\n\\t\" + p + \"\\n\\t\" + getFib(no) + \"\\n\" );\n\t\t\tSystem.out.print(no + \" \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}", "public static void userInputError(int input) //users inputs option that is out of bounds\n\t{\n\t\tSystem.out.println(\"ERROR: Selection Out Of Bounds! \\nOption \" + input + \" Does Not Exist\"); //error message\n\t\tSystem.out.println(\"Press 'Enter' To try Again\"); // prompt to try again\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\tdouble op, km, ms;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"1 - km/h -> m/s\");\r\n\t\t\tSystem.out.println(\"2 - m/s -> km/h\");\r\n\t\t\tSystem.out.println(\"3 - Encerrar\");\r\n\t\t\top = in.nextDouble();\r\n\t\t\tif(op==1) {\r\n\t\t\t\tSystem.out.println(\"Informe um valor em KM/H\");\r\n\t\t\t\tkm = in.nextDouble();\r\n\t\t\t\tms = km / 3.6;\r\n\t\t\t\tSystem.out.println(ms + \" m/s\");\r\n\t\t\t} else if(op==2) {\r\n\t\t\t\tSystem.out.println(\"Informe um valor em M/S\");\r\n\t\t\t\tms= in.nextDouble();\r\n\t\t\t\tkm = ms * 3.6;\r\n\t\t\t\tSystem.out.println(km + \" KM/H\");\r\n\t\t\t} else if(op==3) {\r\n\t\t\t\tSystem.out.println(\"Programa finalizado\");\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Opção inválida\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(op!=3);\r\n\t\tin.close();\r\n\t\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"What task: \");\r\n\t\tint option = scan.nextInt();\r\n\t\tswitch (option) {\r\n\t\tcase 1:\r\n\t\t\tpositionalNumbers();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tpassword();\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tmean();\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tbase();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static void main(String[] args) \r\n {\r\n // TODO: Read the input from the user and call produceAnswer with an equation\r\n \tScanner in = new Scanner(System.in);\r\n \tString problem = in.nextLine();\r\n \tin.close();\r\n \tSystem.out.printf(\"Result: %s\" , produceAnswer(problem));\r\n }", "public void inputInformation() throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n System.out.println(\"Please enter shape: \");\n shape = input.readLine();\n\n System.out.println(\"Please enter color\");\n color = input.readLine();\n\n System.out.println(\"Please enter name: \");\n name = input.readLine();\n\n System.out.println(\"Please enter weight: \");\n weight = Double.parseDouble(input.readLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }", "String userInput(String question);", "private int errorCheckingInt(String display) {\n\n\t\tint tempChoice;\n\t\tScanner input = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"\\n\" + display);\n\t\t\ttry {\n\t\t\t\ttempChoice = input.nextInt();\n\t\t\t\tif(display.equals(\"Enter number of kids: \")) { //only for kids\n\t\t\t\t\tif(tempChoice < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\t}\n\t\t\t\telse if (tempChoice < 1)\n\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\tbreak;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Error input \\n\");\n\t\t\t\tinput.next();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\tinput.nextLine();\n\n\t\treturn tempChoice;\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString input = scanner.nextLine();\n\t\t\tSystem.out.println(solve(input));\n\t\t\t\n\t\t}\n\t\t\n\t}", "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 void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint number = 0;\n\t\tboolean error = true;\n\t\t\n\t\twhile(error){\n\t\t\tSystem.out.println(\"Podaj liczbę lub zakończ - Q\");\n\t\t\ttry{\n\t\t\tnumber = sc.nextInt();\n\t\t\tSystem.out.println(\"Podałeś liczbę: \" +number);\n\t\t\terror = false;\n\t\t}catch(InputMismatchException e){\n\t\t\tif(sc.hasNext(\"Q\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\tSystem.out.println(\"Nie podałeś liczby całkowitej. Popraw wartość!\");\n\t\t\tsc.nextLine();\n\t\t\t}\n\t\t}\n\t\t\t}\n\t\tsc.close();\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t // prompt for hints\n\t System.out.print(\"Enter a positive integer to calculate its factorial: \");\n\n\t try {\n\t \t// get the input as an integer\n\t \tint number = scanner.nextInt();\n\t \tif (number >= 0){\t \t\n\t\t \tBigInteger result = factorial(number);\n\t\t \t// prompt for the result\n\t\t \tSystem.out.println(String.format(\"The factorial of %d is %d\", number, result));\n\t \t} else {\n\t \t\tSystem.out.println(String.format(\"Input interger must be non-negative!\"));\n\t \t}\n\t }catch(InputMismatchException e){\n\t //executes when this exception occurs\n\t System.out.println(\"Input has to be an interger.\");\n\t }\n\t scanner.close();\n\t}", "void readInput() {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString line = input.readLine();\n\t\t\tString [] numbers = line.split(\" \");\n\n\t\t\tlenA = Integer.parseInt(numbers[0]);\n\t\t\tlenB = Integer.parseInt(numbers[1]); \n\n\t\t\twordA = input.readLine().toLowerCase(); \n\t\t\twordB = input.readLine().toLowerCase();\n\n\t\t\tg = Integer.parseInt(input.readLine());\n\n\t\t\tString key; \n\t\t\tString [] chars;\n\t\t\tpenaltyMap = new HashMap<String, Integer>();\n\n\t\t\tfor(int i=0;i<676;i++) {\n\t\t\t\tline = input.readLine();\n\t\t\t\tchars = line.split(\" \");\n\t\t\t\tkey = chars[0] + \" \" + chars[1];\n\t\t\t\tpenaltyMap.put(key, Integer.parseInt(chars[2]));\n\n\t\t\t}\n\n\t\t\tinput.close();\n\n\t\t} catch (IOException io) {\n\t\t\tio.printStackTrace();\n\t\t}\n\t}", "private void run() \n{\n String answer;\t//console answer\n \tboolean error;\t//answer error flag\n \terror = false;\n \tdo {\t\t\t\t\t\t\t//get the right answer\n \t \t//Take user input\n \t \t//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\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n \t\t\tSystem.out.println(\"Would you like to enter GUI or TIO?\");\n \t\t\tanswer = console.nextLine();\n \t \tif(answer.equals(\"GUI\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchGUI();\n \t\t\t}else if(answer.equals(\"TIO\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchTIO();\n \t\t\t}else\n \t\t\t{\n \t\t\t\t//Error: Not correct format\n \t\t\t\terror = true;\n \t\t\t\tSystem.out.println(\"I couldn't understand your answer. Please enter again \\n\");\n \t\t\t}\n \t\t}while (error == true);\n\n}", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tProcess Process = new Process();\n\t\tScheduler Schedule = new Scheduler();\n\t\tString fileInput;\n\t\t//ReadyQue\n\t\t\n\t\t//test for single file\n\t\tSystem.out.println(\"Press 1 to choose a file \");\n\t\tSystem.out.println(\"Press 2 to choose multiple files \");\n\t\tint choiceInput = scan.nextInt();\n\t\t\tif(choiceInput == 1)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What file would you liked to use :\");\n\t\t\t\tfileInput = scan.next();\n\t\t\t\tProcess.runProgram(fileInput);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(choiceInput == 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"How many programs do you want to run\");\n\t\t\t\tint fileNumber = scan.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int PS = 0; PS <= fileNumber; PS ++)\n\t\t\t\t{\n\t\t\t\t\tScheduler.positionofLL(PS);\n\t\t\t\t\t\n\t\t\t\t\tif(PS%2 == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfileInput = \"paint.txt\";\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfileInput = \"ide.txt\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tProcess.runProgram(fileInput);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Invalid Choice.\\n Please Run program again.\");\n\t\t\t}\n\t\n\t\t\n\t\t\n\t\tscan.close();\n\t\t\n\t\n\t}", "protected abstract boolean checkInput();", "public boolean checkInput();", "public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tsolve(in, out);\n\t\tout.close();\n\t\tin.close();\t\n\t}", "public static void printErrorForInvalidCommand(String userInput) {\n System.out.println(\"Aw man! I am unable to \" + userInput + \" yet! Please specify a different function! :D\");\n }", "public static void main(String[] args) {\r\n\r\n\r\n Scanner input = new Scanner(System.in);\r\n\r\n try {\r\n int x = input.nextInt();\r\n int y = input.nextInt();\r\n System.out.println(x/y);\r\n } catch (ArithmeticException | InputMismatchException e){\r\n if ( e instanceof ArithmeticException){\r\n System.out.println(\"java.lang.ArithmeticException: / by zero\");\r\n } else if ( e instanceof InputMismatchException){\r\n System.out.println(\"java.util.InputMismatchException\");\r\n }\r\n } input.close();\r\n }", "String getUserInput();", "public static void main(String[] args) {\r\n Scanner keyboard = new Scanner(System.in);\r\n byte option;\r\n\r\n f_menu();\r\n\r\n System.out.println(\"Select the kind of figure to calculate:\\n1.Triangle\\n2.Square\\n3.Circle\");\r\n option = keyboard.nextByte();\r\n\r\n while (option<1 || option>3){\r\n System.err.println(\"ERROR, The input must be between 1 and 2\\nRetry:\");\r\n option = keyboard.nextByte();\r\n }\r\n\r\n switch (option){\r\n case 1: f_triangle();\r\n break;\r\n case 2: f_square();\r\n break;\r\n case 3: f_circle();\r\n }\r\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"Enter the number:\");\n\t\t\tint\tn=sc.nextInt();\n\t\t\tSystem.out.println(Utility.primeFactors(n));\n\t\t}\n\t\tcatch(InputMismatchException e)\n\t\t{\n\t\t\tSystem.out.println(\"Input must be integer\");\n\t\t\tSystem.out.println();\n\t\t}sc.close();\n\t}", "String getInput();", "public static void getInput() {\n\t\tselectOption();\n\t\tsc = new Scanner(System.in);\n\t userInput2 = sc.nextInt();\n\t \n\t switch (userInput2) {\n\t \tcase 1: System.out.print(\"Enter the number for the factorial function: \");\n\t \t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The factorial of \" + userInput2 + \" is \" + factorial(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 2: System.out.print(\"Enter the Fibonacci position: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The fibonacci number at position \" + userInput2 + \" is \" + fib(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 3: System.out.print(\"Enter the first number: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter the second number: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The GCD of the numbers \" + userInput2 + \" and \" + userInput3 + \" is \" + GCD(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 4: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter r: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(userInput2 + \" choose \" + userInput3 + \" is \" + choose(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 5: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter k: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The Josephus of \" + userInput2 + \" and \" + userInput3 + \" is \" + josephus(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 6: System.out.println(\"Ending program...\");\n \t\t\t\tSystem.exit(0);\n \t\t\t\tbreak;\n \t\tdefault: System.out.println(\"\\nPlease enter number between 1 and 6\\n\");\n\t \t\t\tgetInput();\n\t \t\t\tbreak;\n\t }\t\n\t}", "public void setupGame() {\r\n // Create the Scanner object for reading input\r\n Scanner keyboard = new Scanner(System.in);\r\n \r\n boolean invalid = true;\r\n \r\n while (invalid) {\r\n System.out.println(\"Select a difficulty: \\n\");\r\n System.out.printf(\"1) Easy%n2) Medium%n3) Hard%n\");\r\n String difficulty = keyboard.nextLine();\r\n\r\n switch (difficulty) {\r\n case \"1\":\r\n invalid = false;\r\n this.grid = new Grid(8,8,8);\r\n this.runGame();\r\n break;\r\n case \"2\":\r\n invalid = false;\r\n this.grid = new Grid(10, 12, 10);\r\n this.runGame();\r\n break;\r\n case \"3\":\r\n invalid = false;\r\n this.grid = new Grid(16, 20, 50);\r\n this.runGame();\r\n break;\r\n default:\r\n System.out.println(\"Please enter a valid choice\");\r\n invalid = true;\r\n break;\r\n }\r\n }\r\n }", "public static void main(String[] args) throws IOException{\n\t\t//Run the loop so that each of the entries forms are calculated.\n\t\tloopProblemSolver(getUserInput());\n\t}", "public static <Soplo_Humano> void main(String args[])throws Exception{\r\n\t\tScanner entry = new Scanner (System.in);\r\n\t\tString Instrumentos = null;\r\n\t\tSystem.out.print(\"Flauta\"+ \"\\n\" + \"Trompeta\"+ \"\\n\" +\"Marimba\");\r\n\t\tSystem.out.print(\"Ingrese instrumento: \");\r\n\t\t Instrumentos = entry.next();\r\n\t\tif(Instrumentos.equals(\"Flauta\"))\r\n\t \tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tif(Instrumentos.equals(\"Trompeta\"))\r\n\t\t\tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tthrow new Exception(\"No tiene orificio por lo tanto no es del tipo Aerofono\");\r\n}", "public static void main(String[] args) {\n String line;\n Scanner Input = new Scanner(System.in);\n ui.showIntroMessage();\n try {\n loadFile();\n } catch (FileNotFoundException e) {\n ui.showToUser(\"File Not Found\", \"Creating new file...\");\n }\n line = Input.nextLine();\n boolean inSystem = !line.equals(\"bye\");\n while (inSystem) {\n String[] words = line.split(\" \");\n boolean isList = words[0].equals(\"list\");\n boolean isDone = words[0].equals(\"done\");\n boolean isTodo = words[0].equals(\"todo\");\n boolean isDeadline = words[0].equals(\"deadline\");\n boolean isEvent = words[0].equals(\"event\");\n boolean isDelete = words[0].equals(\"delete\");\n boolean isFind = words[0].equals(\"find\");\n try {\n validateInput(words);\n } catch (Exception e) {\n ui.showToUser(e.getMessage());\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n continue;\n }\n if (isList) {\n try {\n validateListInput(words);\n } catch (Exception e) {\n ui.showToUser(e.getMessage());\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n continue;\n }\n printList();\n } else if (isDone) {\n int taskNumber = Integer.parseInt(words[1]) - 1;\n Tasks.get(taskNumber).taskComplete();\n ui.showToUser(ui.DIVIDER, \"Nice! I've marked this task as done:\\n\" + \" \" + Tasks.get(taskNumber).toString(), ui.DIVIDER);\n } else if (isDelete) {\n int taskNumber = Integer.parseInt(words[1]) - 1;\n ui.showToUser(ui.DIVIDER, \"Noted. I've removed this task:\\n\" + Tasks.get(taskNumber).toString());\n Tasks.remove(taskNumber);\n ui.showToUser(\"Now you have \" + Tasks.size() + \" tasks in the list.\", ui.DIVIDER);\n } else if (isTodo) {\n try {\n validateToDoInput(words);\n } catch (Exception e) {\n ui.showToUser(e.getMessage());\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n continue;\n }\n line = line.replace(\"todo \", \"\");\n ToDo toDo = new ToDo(line);\n Tasks.add(toDo);\n printTaskAdded();\n } else if (isDeadline) {\n line = line.replace(\"deadline \", \"\");\n words = line.split(\"/by \");\n Deadline deadline = new Deadline(words[0], words[1]);\n Tasks.add(deadline);\n printTaskAdded();\n } else if (isEvent) {\n line = line.replace(\"event \", \"\");\n words = line.split(\"/at \");\n Event event = new Event(words[0], words[1]);\n Tasks.add(event);\n printTaskAdded();\n } else if (isFind) {\n line = line.replace(\"find \", \"\");\n findTask(line);\n }\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n }\n String file = \"tasks.txt\";\n try {\n saveFile(file);\n } catch (IOException e) {\n ui.showToUser(\"Something went wrong: \" + e.getMessage());\n }\n ui.showExitMessage();\n }", "public static void inputs() {\n Core.init(true);\n\n while (running) {\n String input = Terminal.readLine();\n String[] groups = REG_CMD.createGroups(input);\n String[] groupsAdmin = REG_ADMIN.createGroups(input);\n String[] groupsLogin = REG_LOGIN.createGroups(input);\n String arg;\n\n //Set the regex type depending on input\n if (groups[1] == null && groupsAdmin[1] != null && groupsLogin[1] == null)\n arg = groupsAdmin[1];\n else if (groups[1] == null && groupsAdmin[1] == null && groupsLogin[1] != null)\n arg = groupsLogin[1];\n else\n arg = groups[1];\n\n if (arg != null && (REG_CMD.isValid(input) || REG_ADMIN.isValid(input) || REG_LOGIN.isValid(input))) {\n if (Core.getSystem().adminActive()) {\n inputsLogin(arg, groups);\n } else {\n inputsNoLogin(arg, groups, groupsAdmin, groupsLogin);\n }\n }\n else {\n Terminal.printError(\"command does not fit pattern.\");\n }\n }\n }", "public static void main(String[] args) throws NoSuchCommandExceptions\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\t// indicate user to enter student ID or quit System\n\t\t\tinput = ui.promptID();\n\t\t\t/* user enter ID or Q */\n\t\t\tint InputReact = UserInput();\n\t\t\tif (InputReact == 0)\n\t\t\t\tbreak;\n\t\t\telse if (InputReact == 1)\n\t\t\t\tcontinue;\n\t\t\t/* user enter G, R, A, W or E */\n\t\t\tfunctionMode();\n\t\t}\n\t\tscanner.close();\n\t}", "public void execute() {\n String input;\n boolean isInputValid;\n\n do {\n isInputValid = true;\n\n System.out.print(\"Please send me the numbers using space between them like \\\"1 2 3\\\": \");\n input = sc.nextLine();\n\n try {\n validateData(input);\n } catch (NumberFormatException e) {\n System.err.println(\"NumberFormatException \" + e.getMessage());\n isInputValid = false;\n }\n\n } while (!isInputValid);\n\n System.out.println(\"Result: \" + find(input));\n }", "public static void main(String[] args) {\n char option;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Welcome to MG's adventure world. Now your journey begins. Good luck!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n String input = getInput(scan, \"Cc\");\n System.out.println(\"You are in a dead valley.\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You walked and walked and walked and you saw a cave!\");\n cave();\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You entered a cave!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"Unfortunately, you ran into a GIANT!\");\n giant();\n System.out.println(\"Enter 'A' or 'a' to Attack, 'E' or 'E' to Escape, ANYTHING else is to YIELD\");\n input = getInput(scan, \"AaEe\", 10);\n System.out.println(\"Congratulations! You SURVIVED! Get your REWARD!\");\n System.out.println(\"There are three 3 tressure box in front of you! Enter the box number you want to open!\");\n box();\n input = getInput(scan);\n System.out.println(\"Hero! Have a good day!\");\n }", "public void start() {\n\n\tSystem.out.println(\"Welcome on HW8\");\n\tSystem.out.println(\"Avaiable features:\");\n\tSystem.out.println(\"Press 1 for find the book titles by author\");\n\tSystem.out.println(\"Press 2 for find the number of book published in a certain year\");\n\tSystem.out.print(\"Which feature do you like to use?\");\n\n\tString input = sc.nextLine();\n\tif (input.equals(\"1\"))\n\t showBookTitlesByAuthor();\n\telse if (input.equals(\"2\"))\n\t showNumberOfBooksInYear();\n\telse {\n\t System.out.println(\"Input non recognized. Please digit 1 or 2\");\n\t}\n\n }", "public static void main(String[] args){\n \n Scanner input=new Scanner(System.in);\n String modality,decision;\n short length=0;\n Questions thisSession=new Questions();\n System.out.println(\"\\nWelcome. This program is your personal teacher.\\nEach time you need to study for any subject, your teacher will help you.\"\n +\"\\nTo start you need to create your question set.\");\n thisSession.createQuestions(input);\n\n do{ \n modality=changeModality(input);\n switch(modality){\n \n case \"1\":\n System.out.println(\"Flaschard initializing...\");\n System.out.println(\"\\nWelcome to Flashcards!\" );\n learnWithFlaschcards(input, modality, thisSession);\n break;\n case \"2\":\n System.out.println(\"Number mania initializing...\"+\n \"\\nWelcome to Number Mania!\");\n numberManiaDifficulty(input);\n break;\n case \"3\":\n System.out.println(\"Russian roulette initializing...\"+\n \"\\nWelcome to Russian Roulette!\");\n russianRoulette(input, thisSession);\n break;\n case \"4\":\n System.out.println(\"Hangman Initializing...\"+\n \"\\nWelcome to Hangman!\");\n hangMan(input, thisSession);\n break;\n case \"5\":\n System.out.println(\"Rock, Paper, Scissor Initializing...\"+\n \"\\nWelcome to R.P.S!\");\n rPS(input, thisSession);\n break;\n case \"6\":\n thisSession.createQuestions(input);\n break;\n case \"exit\":\n System.out.println(\"Closing all current processes...\\n\"+\n \"Closing scanner...\");\n input.close();\n System.exit(400);\n break;\n default:\n System.out.println(\"Ingrese una opcion valida\");\n input.next();\n }\n }while (modality!=\"exit\");\n \n }", "public static void main(String[] args) {\n\t\tScanner teclado = new Scanner(System.in);\n\t\tint radio;\n\t\tint base;\n\t\tint altura;\n\t\tint lado;\n\t\tString op;\n\t\tdo {\n\t\t\tSystem.out.println(\"De estas figuras (Círculo, cuadrado o triángulo), ¿Que área quieres calcular?: \");\n\t\t\top = teclado.nextLine();\n\t\t\tif (op.equals(\"Circulo\") || op.equals(\"Cuadrado\") || op.equals(\"Triangulo\")) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t}\n\t\t} while (!op.equals(\"Circulo\") && !op.equals(\"Cuadrado\") && !op.equals(\"Triangulo\"));\n\t\tif (op.equals(\"Circulo\")) {\n\t\t\tSystem.out.println(\"Dime el radio\");\n\t\t\tradio = teclado.nextInt();\n\t\t\tCirculo(op, radio);\n\t\t}else if (op.equals(\"Cuadrado\")) {\n\t\t\tSystem.out.println(\"Dime un lado\");\n\t\t\tlado = teclado.nextInt();\n\t\t\tCuadrado(op,lado);\n\t\t}else {\n\t\t\tSystem.out.println(\"Dime la altura\");\n\t\taltura = teclado.nextInt();\n\t\tSystem.out.println(\"Dime la base\");\n\t\tbase = teclado.nextInt();\n\t\tTriangulo(op,base,altura);\n\t\t}\n\t\tteclado.close();\n\t}", "static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Enter your action:\");\n\n\t\tSystem.out.println(\"1->Data Generation\" + \"\\n2->Commit Change Analysis and Import Full Log\"\n\t\t\t\t+ \"\\n3->Differential Log Analysis and Import\" + \"\\n4->Perform Fault Localization on Full Log\"\n\t\t\t\t+ \"\\n5->Perform Fault Localization on Differenttial Log\"\n\t\t\t\t+ \"\\n6->Perform Fault Localization on Differenttial Log + File Change\" + \"\\n7->For Logging\"\n\t\t\t\t+ \"\\n8->Log Fail Part Line Similarity Generator\"\n\t\t\t\t+ \"\\n9->Perform Fault Localization on Fail Part Log with Similarity Limit\"\n\t\t\t\t+ \"\\n10->Build Dependency Analysis\" + \"\\n11->Log Analysis\" + \"\\n12->ASTParser Checking\"\n\t\t\t\t+ \"\\n13->Analyze Result\" + \"\\n14->Generate Similarity on Build Dependency Graph\"\n\t\t\t\t+ \"\\n21->Param Tunning for DiffFilter\" + \"\\n22->Set Tunning Dataset Tag\"\n\t\t\t\t+ \"\\n23->Set Failing Type\"\n\t\t\t\t\n\t\t\t\t+ \"\\n31->Performance Analysis for Reverting File\" \n\t\t\t\t+ \"\\n32->Full Log Based\" \n\t\t\t\t+ \"\\n33->Full Log AST Based\"\n\t\t\t\t+ \"\\n34->Diff filter+Dependency+BoostScore\" \n\t\t\t\t+ \"\\n35->Diff filter+Dependency\"\n\t\t\t\t+ \"\\n36->Diff filter+BoostScore\" \n\t\t\t\t+ \"\\n37->Full Log+Dependency+BoostScore\"\n\t\t\t\t+ \"\\n38->Baseline(Saha et al){Fail Part Log+Java File Rank+Then Gradle Build Script}\"\n\t\t\t\t+ \"\\n39->All Evaluation Experiment\"\n\t\t\t\t+ \"\\n41->Strace Experiment\");\n\n\t\t// create an object that reads integers:\n\t\tScanner cin = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Enter an integer: \");\n\t\tint inputid = cin.nextInt();\n\n\t\tif (inputid == 1) {\n\t\t\tdataFiltering();\n\t\t} else if (inputid == 2) {\n\t\t\tcommitChangeAnalysis();\n\t\t} else if (inputid == 3) {\n\t\t\tgenDifferentialBuildLog();\n\t\t} else if (inputid == 4) {\n\t\t\tgenerateSimilarity();\n\t\t\t// generateSimilarityDifferentialLog();\n\t\t\t// genSimDifferentialLogOnChange();\n\t\t} else if (inputid == 5) {\n\t\t\tgenerateSimilarityDifferentialLog();\n\t\t} else if (inputid == 6) {\n\t\t\tgenSimDifferentialLogOnChange();\n\t\t} else if (inputid == 7) {\n\t\t\tgenSimDifferentialLogOnChangeForLogging();\n\t\t} else if (inputid == 8) {\n\t\t\tgenerateStoreFailPartSimValue();\n\t\t} else if (inputid == 9) {\n\t\t\tgenSimFailLogPartWithSimLimit();\n\t\t} else if (inputid == 10) {\n\t\t\tgenerateBuildDependencyTree();\n\t\t} else if (inputid == 11) {\n\t\t\tgenerateLogForAnalysis();\n\t\t} else if (inputid == 12) {\n\t\t\tastParserChecker();\n\t\t} else if (inputid == 13) {\n\t\t\tperformResultAnalysis();\n\t\t} else if (inputid == 14) {\n\t\t\tgenerateSimilarityWithDependency();\n\n\t\t}\n\t\t// this is for 6,8,9,13 menu runnning together for analysis\n\t\telse if (inputid == 21) {\n\t\t\tparameterTunningDiffFilter();\n\t\t} else if (inputid == 22) {\n\t\t\tTunningDTSetter dtsetter = new TunningDTSetter();\n\t\t\ttry {\n\t\t\t\tdtsetter.setTunningDataTags(100);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t;\n\n\t\t}\n\t\telse if(inputid==23)\n\t\t{\n\t\t\tGenerateTestFailType typesetobj=new GenerateTestFailType();\n\t\t\ttypesetobj.generateFailType();\n\t\t}\n\n\t\telse if (inputid == 31) {\n\t\t\tEvaluationMgr.FixWithBuildFailChangeEval();\n\t\t} else if (inputid == 32) {\n\t\t\tEvaluationMgr.FullLogFaultLocalizationEval();\n\t\t} else if (inputid == 33) {\n\t\t\tEvaluationMgr.FullLogASTFaultLocalizationEval();\n\t\t} else if (inputid == 34) {\n\t\t\tEvaluationMgr.DiffFilterDependencyWithBoostScoreSimEval();\n\t\t} else if (inputid == 35) {\n\t\t\tEvaluationMgr.DiffFilterDependencySimEval();\n\t\t} else if (inputid == 36) {\n\t\t\tEvaluationMgr.DiffFilterBoostScoreSimEval();\n\t\t} else if (inputid == 37) {\n\t\t\tEvaluationMgr.FullLogDependencyBoostScoreSimEval();\n\t\t} else if (inputid == 38) {\n\t\t\tEvaluationMgr.BaseLineForISSTA();\n\t\t} \n\t\telse if((inputid == 39))\n\t\t{\n\t\t\tEvaluationMgr.FixWithBuildFailChangeEval();\n\t\t\tEvaluationMgr.FullLogFaultLocalizationEval();\n\t\t\tEvaluationMgr.FullLogASTFaultLocalizationEval();\n\t\t\tEvaluationMgr.DiffFilterDependencyWithBoostScoreSimEval();\n\t\t\tEvaluationMgr.DiffFilterDependencySimEval();\n\t\t\tEvaluationMgr.DiffFilterBoostScoreSimEval();\n\t\t\tEvaluationMgr.FullLogDependencyBoostScoreSimEval();\n\t\t\tEvaluationMgr.BaseLineForISSTA();\n\t\t\t\n\t\t}\t\t\n\t\telse if (inputid == 68913) {\n\t\t\tgenSimDifferentialLogOnChange();\n\t\t\tgenSimDifferentialLogOnChangeForLogging();\n\t\t\tgenSimFailLogPartWithSimLimit();\n\t\t\tperformResultAnalysis();\n\t\t}\n\t\telse if(inputid == 41)\n\t\t{\n\t\t\tRankingMgr straceraking=new RankingMgr();\n\t\t\tstraceraking.generateStraceRanking();\n\t\t}\n\n\t\telse {\n\t\t\tCommitChangeExtractor obj = new CommitChangeExtractor();\n\t\t\tobj.testCommit();\n\n\t\t\tSystem.out.println(\"Wrong Function Id Entered\");\n\n\t\t\tConfig.thresholdForSimFilter = 0.1;\n\n\t\t\tSystem.out.println(Config.thresholdForSimFilter);\n\t\t}\n\n\t\tcleanupResource();\n\t}", "static void take_the_input() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\n\t\taddress = hexa_to_deci(scan.readLine());\n\t\tSystem.out.println();\n\n\t\twhile(true){\n\t\t\tprint_the_address(address);\n\t\t\tString instruction = scan.readLine();\n\t\t\tint label_size = check_for_label(instruction);\n\t\t\tinstruction = instruction.substring(label_size);\n\t\t\tmemory.put(address, instruction);\n\t\t\tif(stop_instruction(instruction))\n\t\t\t\tbreak;\n\t\t\taddress+=size_of_code(instruction);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DO YOU WANT TO ENTER ANY FURTHUR CODE (Y/N) : \");\n\t\tString choice = scan.readLine();\n\t\tSystem.out.println();\n\t\tif(choice.equals(\"Y\"))\n\t\t\ttake_the_input();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\ttry{ \n\t\t\tScanner s = new Scanner (System.in);\n\t\t\tint x = s.nextInt();\n\t\t}catch(InputMismatchException e){\n\t\tSystem.out.println(\"invalid Input\");\t\n\t\t}\n\t\t\n\t\t\n\n\t}", "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 Scanner scn =new Scanner(System.in);\n boolean b=true;\n while(b)\n {\n \n char ch=scn.next().charAt(0);\n \n if(ch=='+'||ch=='-'||ch=='*'||ch=='/'||ch=='%')\n {\n\t int N1 =scn.nextInt();\n\t int N2 =scn.nextInt();\n\t calculator(ch,N1,N2);\n }\n else if(ch!='X'&&ch=='x')\n\t {System.out.println(\"try again\");}\n else\n\tbreak;\n }\n }", "public static void userSelection(){\n\t\tint selection;\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Which program would you like to run?\");\n\t\tselection=input.nextInt();\n\n\t\tif(selection == 1)\n\t\t\tmazeUnion();\n\t\tif(selection == 2)\n\t\t\tunionPathCompression();\n\t\tif(selection == 3)\n\t\t\tmazeHeight();\n\t\tif(selection == 4)\n\t\t\tmazeSize();\n\t\tif(selection == 5)\n\t\t\tsizePathCompression();\n\t}", "private void checkRuntimeFail(String filename, int... input){\n\t\tString inputString = createInput(input);\n\t\t\n\t\tProgram prog;\n\t\tSimulator sim = null;\n\t\tMachine vm = null;\n\t\tPipedInputStream in = null;\n\t\ttry {\n\t\t\tprog = compiler.compile(new File(BASE_DIR, filename + EXT));\n\t\t\tvm = new Machine();\n\t\t\tsim = new Simulator(prog, vm);\n\t\t\tvm.clear();\n\t\t\tsim.setIn(new ByteArrayInputStream(inputString.getBytes()));\n\t\t\tin = new PipedInputStream();\n\t\t\tOutputStream out;\n\t\t\tout = new PipedOutputStream(in);\n\t\t\tsim.setOut(out);\n\t\t} catch (ParseException e) {fail(filename + \" did not generate\");\n\t\t} catch (IOException e) {\tfail(filename + \" did not generate\");}\n\t\t\n\t\ttry{\n\t\t\tsim.run();\n\t\t\tString output = \"\";\n\t\t\tint max = in.available();\n\t\t\tfor(int index = 0; index < max; index++)\n\t\t\t\toutput += (char)in.read();\n\t\t\t/** Check whether there was an error outputted. */\n\t\t\tif(!output.toLowerCase().contains(\"error: \"))\n\t\t\t\tfail(filename + \" shouldn't check but did\");\n\t\t} catch (Exception e) {\n\t\t\t// this is the expected behaviour\n\t\t}\n\t}", "private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tCharm charm = new Charm();\n\t\tSystem.out.print(\"Point of face : \");\n\t\tint face = in.nextInt();\n\t\tboolean bool = charm.isCondition(face);\n\t\twhile (!bool) {\n\t\t\tSystem.out.println(\"Input between 0 - 10 \");\n\t\t\tface = in.nextInt();\n\t\t\tbool = charm.isCondition(face);\n\t\t}\n\t\t\n\t\t//2\n\t\tSystem.out.print(\"Point of rich : \");\n\t\tint rich = in.nextInt();\n\t\tbool = charm.isCondition(rich);\n\t\twhile (!bool) {\n\t\t\tSystem.out.println(\"Input between 0 - 10 \");\n\t\t\trich = in.nextInt();\n\t\t\tbool = charm.isCondition(rich);\n\t\t}\n\t\t\n\t\t//3\n\t\tSystem.out.print(\"Point of nature : \");\n\t\tint nature = in.nextInt();\n\t\tbool = charm.isCondition(nature);\n\t\twhile (!bool) {\n\t\t\tSystem.out.println(\"Input between 0 - 10 \");\n\t\t\tnature = in.nextInt();\n\t\t\tbool = charm.isCondition(nature);\n\t\t}\n\t\t\n\t\t//4\n\t\tSystem.out.print(\"Point of smile : \");\n\t\tint smile = in.nextInt();\n\t\tbool = charm.isCondition(smile);\n\t\twhile (!bool) {\n\t\t\tSystem.out.println(\"Input between 0 - 10 \");\n\t\t\tsmile = in.nextInt();\n\t\t\tbool = charm.isCondition(smile);\n\t\t}\n\t\t\n\t\t//5\n\t\tSystem.out.print(\"Point of speech : \");\n\t\tint speech = in.nextInt();\n\t\tbool = charm.isCondition(speech);\n\t\twhile (!bool) {\n\t\t\tSystem.out.println(\"Input between 0 - 10 \");\n\t\t\tspeech = in.nextInt();\n\t\t\tbool = charm.isCondition(speech);\n\t\t}\n\t\t\n\t\tcharm.setFace(face);\n\t\tcharm.setNature(nature);\n\t\tcharm.setRich(rich);\n\t\tcharm.setSmile(smile);\n\t\tcharm.setSpeech(speech);\n\t\t\n\t\tdouble result = charm.process();\n\t\tSystem.out.println(\"Point of your charm is : \"+result);\n\t}", "public static void launch(Scanner userinput) {\n int userint; //initializes the variable before hand so it can be modified to catch exception without compile issues\n userint = userinput.nextInt();//handled to take int for the function poschecker\n methods.poschecker(userint);//function to validate if its positive\n }", "private static void takeInput() throws IOException {\n\n System.out.println(\"Enter number 1\");\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n String number1=br.readLine();\n System.out.println(\"Enter number 2\");\n String number2=br.readLine();\n System.out.println(\"Operation\");\n String op=br.readLine();\n //WhiteHatHacker processes the input\n WhiteHatHacker hack=new WhiteHatHacker(number1,number2,op);\n hack.processInput();\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify the path to the RhapsodyCL.exe file\");\n else if(!value.contains(\"RhapsodyCL.exe\")) {\n \terror(\"didn't find RhapsodyCL.exe in the path !\");\n }else{\n \tok(); \t\n }\n }", "public void runGame() {\r\n // Create the Scanner object for reading input\r\n Scanner keyboard = new Scanner(System.in);\r\n \r\n Grid.Status gridStatus = Grid.Status.OK;\r\n \r\n while (gridStatus.equals(Grid.Status.OK) && !userLost && !userQuit) {\r\n this.displayGrid();\r\n \r\n System.out.println(\"What next?\");\r\n System.out.println(\"Options: (U)ncover r c, (F)lag r c, (Q)uit\");\r\n String input = keyboard.nextLine();\r\n String[] inputChars = input.split(\"\\\\s+\");\r\n \r\n try { \r\n int row, col; \r\n switch (inputChars[0].toLowerCase()) {\r\n case \"u\":\r\n row = Integer.parseInt(inputChars[1]);\r\n col = Integer.parseInt(inputChars[2]);\r\n gridStatus = this.grid.uncoverSquare(row, col);\r\n break;\r\n case \"f\":\r\n row = Integer.parseInt(inputChars[1]);\r\n col = Integer.parseInt(inputChars[2]);\r\n this.grid.flagSquare(row, col);\r\n break;\r\n case \"q\":\r\n this.userQuit = true;\r\n break;\r\n default:\r\n System.out.println(\"You must select either u, f, or q as the first character.\");\r\n break;\r\n }\r\n } catch (NumberFormatException e) {\r\n System.out.println(\"You must enter a command in the format char digit digit (ie. u 3 3).\");\r\n } catch (ArrayIndexOutOfBoundsException err) {\r\n System.out.println(\"You must enter a command in the format char digit digit (ie. u 3 3).\");\r\n } catch (NullPointerException error) {\r\n System.out.println(\"You must enter a command in the format char digit digit (ie. u 3 3).\");\r\n }\r\n }\r\n \r\n if (userQuit) {\r\n this.quitGame();\r\n } else if (userLost || gridStatus.equals(Grid.Status.MINE)) {\r\n this.gameOver();\r\n this.playAgain();\r\n } else if (gridStatus.equals(Grid.Status.WIN)) {\r\n this.displayGrid();\r\n System.out.println(\"You won. Congrats!\");\r\n this.playAgain();\r\n }\r\n }", "public static void main(String[] args) {\n\t\tScanner input=new Scanner (System.in);\n\t\tint n1, n2,result;\n\t\tchar operator;\n\t\t\t\t\t\n\t\t\t\n\t\tSystem.out.println(\"Please enter first numbers:\");\n\t\t\n\t\tn1=input.nextInt();\n\t\t\n\n\t\tSystem.out.println(\"Please enter first number: \");\t\t\n\t\tn2=input.nextInt();\n\t\t\n\t\tSystem.out.println(\"Please enter one of the operators that you want to do with these two numbers: +,-,* or /: \");\n\t\t\n\t\toperator=input.next().charAt(0);\n\t\t\n\t\tresult=0;\n\t\t\n\t\tswitch (operator) {\n\t\tcase '+':\n\t\t\tresult=n1+n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '-':\n\t\t\tresult=n1-n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '*':\n\t\t\tresult=n1*n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '/':\n\t\t result=n1/n2;\n\t\t break;\n\t\tdefault:\n\t\t System.out.println(\"You have enetered the wrong operator\");\n\t\t \n\t\t}\n\t\t// if the result was not calculated I do not want to see below message\n\t\tif (result!=0) {\n\t\t\tSystem.out.println(\"The result of your operation is \"+result);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\t\n\t\t}", "public int readProblemType() {\n\t\t\t\t\tSystem.out.printf(\"What type of arithmetic problem do you want to study:\\n 1:+ \\n 2:* \\n 3:- \\n 4:/ \\n 5:Random \");\n\t\t\t\t\tint j = 0;\n\t\t\t\t\tj = resp.nextInt();\n\t\t\t\t\tswitch (j) {\n\t\t case 1: j = 1; \n\t\t break;\n\t\t case 2: j = 2;\n\t\t break;\n\t\t case 3: j = 3;\n\t\t break;\n\t\t case 4: j = 4;\n\t\t break;\n\t\t case 5: j= 5;\n\t\t \t\tbreak;}\n\t\t return j;\n\t\t\t\t\t\n\t}", "public static void main(String[] args) {\n menu();\r\n int num = 0;\r\n try {\r\n Scanner scan = new Scanner(System.in);\r\n num = scan.nextInt();\r\n } catch (InputMismatchException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n switch (num)\r\n {\r\n case 1:\r\n commercial();\r\n break;\r\n case 2:\r\n residential();\r\n case 3:\r\n System.out.println(\"Your session is over\");\r\n default:\r\n System.out.println(\"\");\r\n }\r\n\r\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}", "public void takeUserInput() {\n\t\t\r\n\t}", "public static int inputOptions() {\n\t\tSystem.out.println(PROMPT);\n\t\tint responseNum = -1;\n\t\tin = new Scanner(System.in);\n\t\t// Ensure that response is 0 or 1\n\t\twhile (in.hasNext()) {\n\t\t\tString rawResponse = in.nextLine();\n\t\t\tString response = rawResponse.trim();\n\t\t\tresponseNum = Integer.parseInt(response);\n\t\t\tif (responseNum == 0 || responseNum == 1) {\n\t\t\t\treturn responseNum;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(INVALID_ENTRY_MSG);\n\t\t\t}\n\t\t}\n\t\treturn responseNum;\n\t}", "public void fix5() {\n\t\tBufferedReader br;\n\t\tString name;\n\t\t\n\t\ttry {\n\t\t\tSystem.out.println(\"Enter the correct option name:\\n\");\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tname = br.readLine();\n\t\t\treturnStr = name;\n\t\t} catch (Exception e) {\n\t //return null;\n\t }\n\t}", "public static void main(String[] args) {\n PetriNet inst = new CoffeeMachinePetri();\r\n Scanner scanner = new Scanner(System.in);\r\n int input ;\r\n input = scanner.nextInt();\r\n while(input!=0)\r\n {\r\n System.out.println(\"Introduceti optiunea: \");\r\n input = scanner.nextInt();\r\n inst.exec(input);\r\n \r\n System.out.println(inst.getStareCurenta());\r\n\t\t}\r\n inst.exec(0);\r\n }", "private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }", "private static int getUserOption () {\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint input;\n\t\t\n\t\tdo {\n\t\t\tlistMainMenuOptions();\n\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 1) || (input>9)) {\n\t\t\t\t\tSystem.out.println(\"Please type in a number between 1-9 according to your choice\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Please enter a number from 1-9 according to your choice\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\t\t\t\n\t\t}while ((input < 1) || (input>9));\n\n\t\treturn input;\n\t\t\n\t}", "public void run()\n\t {\n\t stdin = new Scanner(System.in);\n\t boolean done = false;\n\t while ( !done )\n\t {\n\t String command = stdin.next();\n\t char ccommand=command.charAt(0);\n\t switch (ccommand) \n\t { \n\t case 'I': add('I');\n\t\t\t break; \n\t case 'O': add('O');\n\t break;\n\t case 'N': add('N');\n\t break;\n\t case 'R': remove();\n\t break;\n\t case 'P': print();\n\t break;\n\t case 'Q': \n\t System.out.println(\"Program terminated\");\n\t done = true;\n\t break;\n\t default: //deal with bad command here \n\t System.out.println(\"Command\"+\"'\"+command+\"'\"+\"not supported!\");\t\t\n\t } \n\t }\n\t }", "protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }", "public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\n printRule();\n\n while (true) {\n // Asks if the user wants to play or quit the game\n System.out.print(\"\\n\\n\\tTo Start enter S\"\n + \"\\n\\tTo Quit enter Q: \");\n String command = input.next();\n char gameStatus = command.charAt(0);\n\n // If s is entered, the game will begin\n switch (gameStatus) {\n case 's':\n case 'S':\n clearBoard(); // initialize the board to zero\n gameOn();\n break;\n case 'q':\n case 'Q':\n System.exit(0);\n default:\n System.out.print(\"Invalid command.\");\n break;\n }\n }\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tsolve();\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nStringBuilder sb=new StringBuilder();\nwhile(true){\n\tint K=Integer.parseInt(br.readLine());\n\tif(K==-1)break;\n\tsb.append(calculate[K]+\"\\n\");\n}\n\tSystem.out.println(sb);\n\t}", "public static void main(String [] args) {\n for(;;){\n System.out.println(\"These program solve for simultaneous 2 variable X and Y,\");\n System.out.println(\"Area and Perimeter of a circle,\");\n System.out.println(\"and Sum of Arithmathic Progression\" );\n System.out.println (\"select out the options\");\n System.out.println(\"1:Simultanous\\n2:Area and perimeter of a circle\\n3:Sum of an Arithmetic Progression \");\n System.out.print(\"option: \");\n Scanner input =new Scanner(System.in);// to select input for option\\\\\n Mathequation math=new Mathequation();\n int option;//option input \n try { //catching wrong input and Wrong arithmetic expression such as String and undefine value\n option=input.nextInt();//input for the option\n switch(option){//checking over option inputted\n case 1:math.simultaneous();\n break;\n case 2:math.area();\n break;\n case 3:math.sumOfAP();\n break;\n default:\n System.out.print(\"your input doesn't not match the option\"); }}\n catch(InputMismatchException | ArithmeticException ar){//catching wrong input and catching undefined value\n System.out.println(\"your input is incorrect retry again\"); \n } \n System.out.print(\"Enter 'N' to end the program: \");\n String arr = input.next();\n if(arr.equals(\"N\")){\n break;\n }\n \n }\n \n }", "void run() throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int numCMD = Integer.parseInt(br.readLine()); // note that numCMD is >= N\n while (numCMD-- > 0) {\n StringTokenizer st = new StringTokenizer(br.readLine());\n int command = Integer.parseInt(st.nextToken());\n switch (command) {\n case 0: ArriveAtHospital(st.nextToken(), Integer.parseInt(st.nextToken())); break;\n case 1: UpdateEmergencyLvl(st.nextToken(), Integer.parseInt(st.nextToken())); break;\n case 2: Treat(st.nextToken()); break;\n case 3: pr.println(Query()); break;\n }\n }\n pr.close();\n }", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tString ip = scanner.nextLine();\n\t\t\tcheckIP(ip);\n\t\t}\n\t\tSystem.out.println(a + \" \" + b + \" \" + c + \" \" + d + \" \" + e + \" \" + err + \" \" + own);\n\t\tscanner.close();\n\t}", "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}", "private void processInputUntilRoomChange() {\n while (true) {\n // Get the user input\n System.out.print(\"> \");\n String input = scan.nextLine();\n\n // Determine which command they used and act accordingly\n if (input.startsWith(\"help\")) {\n this.displayCommands();\n } else if (input.startsWith(\"look\")) {\n this.displayDescription(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"get\")) {\n this.acquireItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"go\")) {\n if (this.movePlayer(input.substring(input.indexOf(\" \") + 1))) {\n break;\n }\n } else if (input.startsWith(\"use\")) {\n this.useItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"inventory\")) {\n System.out.print(player.listInventory());\n } // The player did not enter a valid command.\n else {\n System.out.println(\"I don't know how to \" + input);\n }\n }\n }", "private void handleInput()\n {\n String instructions = \"Options:\\n<q> to disconnect\\n<s> to set a value to the current time\\n<p> to print the map contents\\n<?> to display this message\";\n System.out.println(instructions);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while (true) {\n String line = br.readLine();\n if (line.equals(\"q\")) {\n System.out.println(\"Closing...\");\n break;\n } else if (line.equals(\"s\")) {\n System.out.println(\"setting value cli_app to current time\");\n collabMap.set(\"cli_app\", System.currentTimeMillis());\n } else if (line.equals(\"?\")) {\n System.out.println(instructions);\n } else if (line.equals(\"p\")) {\n System.out.println(\"Map contents:\");\n for (String key : collabMap.keys()) {\n System.out.println(key + \": \" + collabMap.get(key));\n }\n }\n }\n } catch (Exception ex) {\n }\n\n if (document != null)\n document.close();\n System.out.println(\"Closed\");\n }", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(br.readLine().trim());\n\t\tint tc = Integer.parseInt(st.nextToken());\n\t\tfor (int i = 0; i < tc; i++) {\n\t\t\tst = new StringTokenizer(br.readLine().trim());\n\t\t\tint x = Integer.parseInt(st.nextToken());\n\t\t\tint y = Integer.parseInt(st.nextToken());\n\t\t\tsolve(y - x);\n\t\t}\n\t}", "public static void main(String[] args)\r\n\t{\r\n\t\tSystem.out.print(\"Choose task todo: [G]et all task, [C]reate new task, [S]tart task, [E]nd task :\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString input = sc.next();\r\n\r\n\t\ttaskProcess(input);\r\n\t}", "private void run()\n {\n\tString[] info = null;\n\tnumber = new Stack<String>();\n\totherNumber = new Stack<String>();\n\tScanner scan = new Scanner(System.in);\n\twhile(scan.hasNext())\n\t{\n\t info = scan.nextLine().trim().split(\"\\\\s+\");\n\t if(info.length == 2)\n\t {\n\t\tnum1 = isValid(info[0]);\n\t\tnum2 = isValid(info[1]);\n\t\tif(num1 != null && num2 != null)\n\t\t{\n\t\t generateLists();\n\t\t addition();\n\t\t outputData();\n\t\t clear();\n\t\t}\n\t\telse error();\n\t }\n\t else error();\n\t}\n }", "public static void main(String[] args) {\n\t\t\t\tScanner input;\n\t\t\t\tboolean valid;\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// Prompt the user for input\n\t\t\t\t\tSystem.out.println(\"Please enter a number: \");\n\t\t\t\t\t\n\t\t\t\t\t// re-initialize the scanner\n\t\t\t\t\tinput = new Scanner(System.in);\n\t\t\t\t\t\n\t\t\t\t\t// verify the right kind of input\n\t\t\t\t\tvalid = input.hasNextInt();\n\t\t\t\t\tSystem.out.println(valid);\n\t\t\t\t\t\n\t\t\t\t\t// we only read the user input if it is valid\n\t\t\t\t\tif(valid) {\n\t\t\t\t\t\t// this is the actual reading \n\t\t\t\t\t\tint userInput = input.nextInt();\n\t\t\t\t\t}\n\t\t\t\t} while (!valid);\n\t\t\t\t//Flow Control Demo Starts here:\n\t\t\t\t\n\t\t\t\t// Conditionals (If and Switch)\n\t\t\t\t\n//\t\t\t\tboolean condition = userInput >= 0;\n//\t\t\t\t\n//\t\t\t\tif (condition) {\n//\t\t\t\t\tSystem.out.println(\"Your number is Positive: \");\n//\t\t\t\t}\n////\t\t\t\tif (userInput > 50) {\n////\t\t\t\t\tSystem.out.println(\"Your in the magic range: \");\n////\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tSystem.out.println(\"Your number is Negative: \");\n//\t\t\t\t}\n//\t\t\t\t\n\t\t\t\t// Switch\n\t\t\t\t\n\t\t\t\tswitch (userInput) {\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Home Menu: \");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"User Settings: \");\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"No Options valid: \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// similar code with if\n//\t\t\t\tif(userInput <= 5) {\n//\t\t\t\t\tif (userInput > 1) {\n//\t\t\t\t\t\tif(userInput %2 ==0) {\n//\t\t\t\t\t\t\tSystem.out.println(\"Target Range: \");\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t \n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Loops\n\t\t\t\t// While loop\n\t\t\t\t\n//\t\t\t\tint counter = 0;\n\t\t\t\t\n\t\t\t\t\n//\t\t\t\twhile(counter < 10) {\n//\t\t\t\t\tSystem.out.println(counter);\n//\t\t\t\t\tcounter++;\n//\t\t\t\t}\n\t\t\t\t\n//\t\t\t\twhile(userInput < 0){\n//\t\t\t\t\tSystem.out.println(\"Enter a number: \");\n//\t\t\t\t\tuserInput = input.nextInt();\n//\t\t\t\t\tSystem.out.println(userInput);\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Do While Loop\n\t\t\t\t\n//\t\t\t\tdo {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.println(\"Enter a Positive number only: \");\n//\t\t\t\t\tuserInput = input.nextInt();\n//\t\t\t\t\tSystem.out.println(\"Iterating through Do-while\");\n//\t\t\t\n//\t\t\t\t} while (userInput < 0);\n//\t\t\t\t\n//\t\t\t\t\n\t\t\t\t// Print the input to show that we stored / received it\n//\t\t\t\tSystem.out.println(userInput);\n\t\t\t\t\n\t\t\t\t// For Loop \n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 9; i >=0; i-= 2) {\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Sample Code from Powerpoint\n\t\t\t\tboolean condition = true;\n\t\t\t\tfor(int i = 1; condition; i += 4) {\n\t\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\t\tcondition = false;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t}\n\t\t\t\n\t\t\t\t// Nested for loop\n\t\t\t\tfor(int i = 0 ; i < 10; i++) {\n\t\t\t\t\t\n\t\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\t\tSystem.out.println(i + \":\" + j);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// Close the input\n\t\t\t\tinput.close();\n\n\t}", "@Override\n public void processInput() throws IllegalArgumentException, InputMismatchException,\n FileNotFoundException {\n Scanner scanner = new Scanner(this.in);\n while (scanner.hasNext()) {\n String input = scanner.next();\n switch (input) {\n case \"q\":\n return;\n case \"load:\":\n File imageFile = new File(scanner.next());\n if (imageFile.exists()) {\n this.model = this.model.fromImage(load(imageFile));\n } else {\n throw new FileNotFoundException(\"File does not exist\");\n }\n break;\n case \"save:\":\n String path = scanner.next();\n this.save(this.model.getModelImage(), getImageFormat(path), path);\n break;\n default:\n Function<Scanner, EnhancedImageModel> getCommand = knownCommands.getOrDefault(\n input, null);\n if (getCommand == null) {\n throw new IllegalArgumentException(\"command not defined.\");\n } else {\n this.model = getCommand.apply(scanner);\n }\n break;\n }\n }\n\n }", "private void setupParameters() {\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tboolean pass = false;\r\n\t\tint userInputInt;\r\n\t\t// read input parameters\r\n\t\t// 1\r\n\t\tSystem.out.println(\"\\t*** Get Simulation Parameters ***\\n\\n\");\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter simulation time (0 < integer <= 10000)\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 10000) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 101: Maximum simulation length allowed is 10000, enter a smaller integer.\");\r\n\t\t\t\t\tin.nextLine();\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(\"Error Code 102: Minimum simulation length allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsimulationTime = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 103: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 2\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter the number (0 < integer <= 10) of tellers\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 10) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 201: Maximum numbers of allowed tellers is 10, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 202: Minimum numbers of allowed tellers is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnumTellers = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 203: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 3\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter chances (0% < integer <= 100%) of new customer \t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 100) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 301: Maximum percentage allowed is 100, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 302: Minimum percentage allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tchancesOfArrival = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 303: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 4\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter maximum transaction time (0 < integer <= 500) of customers\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 500) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 401: Maximum transaction time allowed is 500, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(\"Error Code 402: Minimum transaction time allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmaxTransactionTime = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 403: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 5\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter customer queue size (0 < integer <= 50)\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 50) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 501: Maximum queue size allowed is 50, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 502: Minimum queue size allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomerQLimit = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 503: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// setup dataFile or dataRandom\r\n\t\t// 6\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter 0/1 to get data from Random/file\t\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt == 1) {\r\n\t\t\t\t\tdataSource = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t} else if (userInputInt == 0) {\r\n\t\t\t\t\tdataSource = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Error Code 601: Enter either 0 or 1. \");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 603: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 7\r\n\t\tif (dataSource == 1) {\r\n\t\t\tgetDataFile();\r\n\t\t}\r\n\t\tin.close();\r\n\t}", "public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}", "static void backtocheckpoint1_version2() {\n System.out.println(\"You arrived to the main entrance of challenge 1... Are you ready to restart this challenge?\");\n strings = responses.nextLine();\n if (strings.contains(\"n\")) {\n System.out.println(\"It's not an option\"); \n backtocheckpoint1_version2();\n }else if (strings.contains(\"y\")) { \n Door2challenge();\n }else {\n System.out.println(\"I don't understand...type it correctly\");\n backtocheckpoint1_version2();//in case the player types something else that the system can't read\n }\n \n \n \n }", "private void launch() {\n\n boolean running = true;\n while (running) {\n System.out.println(\"What would you like to do?\");\n System.out.println(\"1 - Add a new patient file\");\n System.out.println(\"2 - Delete an existing patient file\");\n System.out.println(\"0 - Exit\");\n System.out.println(\"\\n >\");\n\n //Scanner reader = new Sca(System.in);\n // int input = reader.nextInt();\n\n try {\n String userInput = System.console().readLine();\n\n int userSelection = Integer.parseInt(userInput);\n\n switch (userSelection) {\n case 0:\n running = false;\n break;\n\n case 1:\n System.out.println(\"Please enter patient details.\");\n System.out.println(\"You selected option 1 : Enter first name:\");\n String name = System.console().readLine();\n System.out.println(\"Please Enter age:\");\n int age = Integer.parseInt(System.console().readLine());\n System.out.println(\"Please Enter illness:\");\n String illness = System.console().readLine();\n HospitalManager hm = new HospitalManager();\n Patient firstPatient = hm.getFirstPatient();\n hm.addPatient(firstPatient);\n System.out.println(\"\\n\");\n System.out.println(\"Name: \" + firstPatient.getName() + \" Age: \"\n + firstPatient.getAge() + \" illness :\" + firstPatient.getIllness());\n System.out.println(\"\\n\");\n break;\n\n case 2:\n break;\n\n default:\n System.out.println(\"Invalid option selected. Please try again.\");\n }\n } catch (NumberFormatException ex) {\n running = false;\n System.out.println(\"Please enter a valid integer. Error processing input.\");\n }\n }\n }", "public static void main(String[] args) \r\n\t{\n\t\twhile(true)\r\n\t\t{\r\n\t\ttry\r\n\t\t{\r\n\t\tRandom rn=new Random();\r\n\t\tDataInputStream dis=new DataInputStream(System.in);\r\n\t\tSystem.out.println(\"Enter number 0 to 10:\");\r\n\t\t\tint n=Integer.parseInt(dis.readLine());\r\n\t\t\tint k=rn.nextInt(10);\r\n\t\tSystem.out.println(\"Computer Thinking number:\"+k);\r\n\t\tif(n==k)\r\n\t\t{\r\n\t\tSystem.out.println(\"Success Game Finished\");\r\n\t\tSystem.exit(0);\r\n\t\t}\r\n\t\telse\r\n\t\t\tthrow new Exception(\"Input is Wrong Please Try Again: \");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t}\r\n\t\t}\r\n\t}", "static public void woundedSurvivor() {\n System.out.println(\"Maybe you could bring me some food and something to defend myself now that i cant move\");\n System.out.println(\"Do you want to accept his mission: Yes or no\");\n Scanner scan = new Scanner(System.in); //Creates a new scanner\n String input = scan.nextLine(); //Waits for input\n if (input.equalsIgnoreCase(\"yes\")) {\n System.out.println(\"You got a mission, please use the show command for more information\");\n allMissions.addMission(jungle, \"Helping the injured survivor\");\n } else if (input.equalsIgnoreCase(\"no\")) {\n System.out.println(\"Come back again if you change your mind\");\n } else {\n System.out.println(\"Come back again if you change your mind\");\n }\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T=Integer.parseInt(br.readLine());\n\t\twhile(T-->0)\n\t\t{\n\t\t\tint ob=Integer.parseInt(br.readLine());\n\t\t\tString s=br.readLine();\n\t\t\tif(s.indexOf('I')!=-1)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"INDIAN\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(s.indexOf('Y')!=-1)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NOT INDIAN\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NOT SURE\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}", "public void readUserInput(){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String input = reader.readLine();\n while (!userValidation.validateUserInput(input)){\n input = reader.readLine();\n }\n elevatorController.configureNumberOfElevators(input);\n\n } catch (\n IOException e) {\n logger.error(e);\n }\n\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint num1, num2; // declare two integer variable\n\t\tboolean flag = true; // for looping while loop\n\t\t\n\n\t\twhile (flag) {\n\t\t\tSystem.out.println(\"\\n\\nMENU : \\n\" + \"1. LCM of two numbers \\n\"\n\t\t\t\t\t+ \"2. HCF of two numbers \\n\" + \"0. Exit \\n\");\n\t\t\tSystem.out.println(\"Enter your choice: \");\n\t\t\tint choice = input.nextInt();\n\t\t\tswitch (choice) {\n\t\t\tcase 0:\n\t\t\t\tSystem.out.println(\"Okay, bye!\");\n\t\t\t\tSystem.exit(1);\n\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter first num: \");\n\t\t\t\tnum1 = PositiveIntegerException.setInput();\n\t\t\t\tSystem.out.println(\"Enter second num: \");\n\t\t\t\tnum2 = PositiveIntegerException.setInput();\n\t\t\t\tSystem.out.println(\"LCM of \" + num1 + \" and \" + num2 + \" is: \"\n\t\t\t\t\t\t+ MathematicalOperations.findLCM(num1, num2));\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter first num: \");\n\t\t\t\tnum1 = PositiveIntegerException.setInput();\n\t\t\t\tSystem.out.println(\"Enter second num: \");\n\t\t\t\tnum2 = PositiveIntegerException.setInput();\n\t\t\t\tSystem.out.println(\"HCF of \" + num1 + \" and \" + num2 + \" is: \"\n\t\t\t\t\t\t+ MathematicalOperations.findHCF(num1, num2));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Enter valid choice!!\");\n\t\t\t}\n\t\t}\n\n\t\tinput.close(); // Scanner input closed\n\t}", "public static void main(String []args) {\n\t\t/*\n\t\t * The user will be shown two options:\n\t\t * Exit from the system by pressing 0.\n\t\t * OR\n\t\t * Enabling user to enter credential information(Email Id and Password) by pressing 1.\n\t\t * If user enters any other key Invalid choice will be displayed and again user will be given two choices.\n\t\t * */\n\t\tboolean run = true;\n\t\twhile(run) {\n\t\t\tviewOptions();\n\t\t\ttry {\n\t\t\t\tint option = sc.nextInt();\n\t\t\t\tswitch(option) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t//If user enters 0 terminate the while loop by making run = false.\n\t\t\t\t\t\trun = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t//Try to login into the system\n\t\t\t\t\t\tattemptToLogin();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tlog.error(\"Invalid Choice!\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If user tries to enter non numeric characters exception will be thrown and will caught below.\n\t\t\tcatch(InputMismatchException e){\n\t\t\t\tlog.error(\"Invalid Choice!\");\n\t\t\t}\t\t\n\t\t}\n\t}" ]
[ "0.6421295", "0.63240296", "0.63158417", "0.62943596", "0.620282", "0.6186227", "0.6139959", "0.61318344", "0.61300087", "0.60606056", "0.60458934", "0.6038496", "0.6010331", "0.60052526", "0.5999764", "0.59919834", "0.59901637", "0.5987306", "0.5970411", "0.5957999", "0.5953258", "0.595129", "0.5921668", "0.5917245", "0.5916735", "0.59149855", "0.5911643", "0.5908003", "0.58978784", "0.587335", "0.5870338", "0.5864037", "0.58606744", "0.5849067", "0.5805982", "0.5804929", "0.5800671", "0.5796256", "0.5792393", "0.57898384", "0.5784635", "0.5778281", "0.5778109", "0.5776982", "0.5774643", "0.5772035", "0.5763969", "0.57528085", "0.5751902", "0.5748834", "0.5738677", "0.5731187", "0.57271075", "0.57268846", "0.57259566", "0.5722451", "0.5718119", "0.5714257", "0.57109606", "0.570761", "0.5706031", "0.570469", "0.56849146", "0.5678265", "0.56722194", "0.56697917", "0.5662127", "0.5657653", "0.56536543", "0.5651501", "0.5646031", "0.56431925", "0.56431365", "0.564219", "0.5641211", "0.56371236", "0.5632879", "0.5627204", "0.56251115", "0.5622541", "0.5621405", "0.56150293", "0.5613203", "0.5613093", "0.5610966", "0.5609654", "0.5605325", "0.56028336", "0.55987483", "0.5597076", "0.55942494", "0.55910856", "0.55909693", "0.5587989", "0.55809265", "0.55761325", "0.5575553", "0.55705744", "0.5570126", "0.5562251", "0.5561765" ]
0.0
-1
Testing all three constructors using three different DateNew objects
public void problem1() // problem 1 method { DateNew d1 = new DateNew(10,12,2002); DateNew d2 = new DateNew("March",23,2010); DateNew d3 = new DateNew(12,2009); System.out.printf("Date object d1's output is %s",d1.toString()); System.out.printf("Date object d2's output is %s\n",d2.toString2()); System.out.printf("Date object d3's output is %s\n",d3.toString3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testConstructor() throws ParseException {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date date = df.parse(\"2008-08-08 12:34:56.789\");\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n \n AbstractTemporalLiteral tl1 = new MockTemporalLiteral(date);\n assertEquals(date, tl1.getValue());\n\n try {\n new MockTemporalLiteral((Date) null);\n fail(\"NullPointerException should have been thrown\");\n } catch (NullPointerException ex) {\n assertTrue(true);\n }\n \n AbstractTemporalLiteral tl2 = new MockTemporalLiteral(cal);\n assertEquals(date, tl2.getValue());\n \n try {\n new MockTemporalLiteral((Calendar) null);\n fail(\"NullPointerException should have been thrown\");\n } catch (NullPointerException ex) {\n assertTrue(true);\n }\n }", "public void testCreateInstance() throws ParseException {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date date = df.parse(\"2008-08-08 12:34:56.789\");\n \n AbstractTemporalLiteral d = AbstractTemporalLiteral.createInstance(TemporalType.DATE, date);\n assertTrue(d instanceof DateLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIME, date);\n assertTrue(d instanceof TimeLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIMESTAMP, date);\n assertTrue(d instanceof TimestampLiteral);\n \n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n \n d = AbstractTemporalLiteral.createInstance(TemporalType.DATE, cal);\n assertTrue(d instanceof DateLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIME, cal);\n assertTrue(d instanceof TimeLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIMESTAMP, cal);\n assertTrue(d instanceof TimestampLiteral);\n }", "@Test\n public void constructor() {\n Event event1 = new Event(\"Eat Apple\", \"2020-12-12 12:00\", \"2020-12-12 13:00\",\n false);\n Event event2 = new Event(\"Write paper\", \"2020-05-05 12:00\", \"2020-05-06 23:59\",\n true);\n\n assertEquals(\"Eat Apple\", event1.description);\n assertEquals(LocalDateTime.parse(\"2020-12-12 12:00\", Event.PARSER_FORMATTER), event1.startAt);\n assertEquals(LocalDateTime.parse(\"2020-12-12 13:00\", Event.PARSER_FORMATTER), event1.endAt);\n assertEquals(false, event1.isDone);\n assertEquals(\"Write paper\", event2.description);\n assertEquals(LocalDateTime.parse(\"2020-05-05 12:00\", Event.PARSER_FORMATTER), event2.startAt);\n assertEquals(LocalDateTime.parse(\"2020-05-06 23:59\", Event.PARSER_FORMATTER), event2.endAt);\n assertEquals(true, event2.isDone);\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tfutureDate = Calendar.getInstance();\n\t\tfutureDate.set(2015, 1, 1);\n\t\tpastDate = Calendar.getInstance();\n\t\tpastDate.set(2000, 1, 1);\n\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "@Test\n public void constructorTest(){\n String retrievedName = doggy.getName();\n Date retrievedBirthDate = doggy.getBirthDate();\n Integer retrievedId = doggy.getId();\n\n // Then (we expect the given data, to match the retrieved data)\n Assert.assertEquals(givenName, retrievedName);\n Assert.assertEquals(givenBirthDate, retrievedBirthDate);\n Assert.assertEquals(givenId, retrievedId);\n }", "@Test\n public void constructorTest() {\n // Given (cat data)\n String givenName = \"Zula\";\n Date givenBirthDate = new Date();\n Integer givenId = 0;\n\n // When (a cat is constructed)\n Cat cat = new Cat(givenName, givenBirthDate, givenId);\n\n // When (we retrieve data from the cat)\n String retrievedName = cat.getName();\n Date retrievedBirthDate = cat.getBirthDate();\n Integer retrievedId = cat.getId();\n\n // Then (we expect the given data, to match the retrieved data)\n Assert.assertEquals(givenName, retrievedName);\n Assert.assertEquals(givenBirthDate, retrievedBirthDate);\n Assert.assertEquals(givenId, retrievedId);\n }", "@Test\n public void constructorTest() {\n // Given (cat data)\n String givenName = \"Zula\";\n Date givenBirthDate = new Date();\n Integer givenId = 0;\n\n // When (a cat is constructed)\n Cat cat = new Cat(givenName, givenBirthDate, givenId);\n\n // When (we retrieve data from the cat)\n String retrievedName = cat.getName();\n Date retrievedBirthDate = cat.getBirthDate();\n Integer retrievedId = cat.getId();\n\n // Then (we expect the given data, to match the retrieved data)\n Assert.assertEquals(givenName, retrievedName);\n Assert.assertEquals(givenBirthDate, retrievedBirthDate);\n Assert.assertEquals(givenId, retrievedId);\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "@Test\r\n public void testSimpleDate() {\r\n SimpleDate d1 = new SimpleDate();\r\n }", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private DateUtil() {\n\t}", "private DateUtil() {\n\t}", "public MyDate(int inYear, int inDay, int inMonth)\n {\n year = inYear;\n day = inDay;\n month = inMonth;\n }", "public void testGetDate() {\r\n assertEquals(test1.getDate(), 20200818);\r\n }", "@Test\n public void TestCreateCat() {\n String expectedName = \"Milo\";\n Date expectedBirthDate = new Date();\n\n Cat newCat = AnimalFactory.createCat(expectedName, expectedBirthDate);\n\n Assert.assertEquals(expectedName, newCat.getName());\n Assert.assertEquals(expectedBirthDate, newCat.getBirthDate());\n }", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "@Test\n public void testIncorrectDate(){\n UserRegisterKYC feb29NonLeap = new UserRegisterKYC(\"hello\",validId3,\"29/02/1995\",\"738583\");\n int requestResponse = feb29NonLeap.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC feb30Leap = new UserRegisterKYC(\"hello\",validId3,\"30/02/1996\",\"738583\");\n requestResponse = feb30Leap.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC longMonth32 = new UserRegisterKYC(\"hello\",validId3,\"32/01/1995\",\"738583\");\n requestResponse = longMonth32.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC shortMonth31 = new UserRegisterKYC(\"hello\",validId3,\"31/04/1995\",\"738583\");\n requestResponse = shortMonth31.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongSeparator = new UserRegisterKYC(\"hello\",validId3,\"28.02.1995\",\"738583\");\n requestResponse = wrongSeparator.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongDateLength = new UserRegisterKYC(\"hello\",validId3,\"9/02/1995\",\"738583\");\n requestResponse = wrongDateLength.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongMonthLength = new UserRegisterKYC(\"hello\",validId3,\"27/2/1995\",\"738583\");\n requestResponse = wrongMonthLength.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongYearLength = new UserRegisterKYC(\"hello\",validId3,\"27/02/195\",\"738583\");\n requestResponse = wrongYearLength.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC moreThan12Months = new UserRegisterKYC(\"hello\",validId3,\"15/13/1995\",\"738583\");\n requestResponse = moreThan12Months.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC dateInFuture = new UserRegisterKYC(\"hello\",validId3,\"29/03/2020\",\"738583\");\n requestResponse = feb30Leap.sendRegisterRequest();\n assertEquals(400,requestResponse);\n }", "@Test\n\tpublic void testConstructor3ParametersNegInput() {\n\t\ttry {\n\t\t\tnew CountDownTimer(-2, 3, 4);\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\tassertTrue(e != null);\n\t\t}\n\n\t\ttry {\n\t\t\tnew CountDownTimer(2, -3, 4);\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\tassertTrue(e != null);\n\t\t}\n\n\t\ttry {\n\t\t\tnew CountDownTimer(2, 3, -4);\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\tassertTrue(e != null);\n\t\t}\n\t}", "@Test (expected = IllegalArgumentException.class)\n\tpublic void testConstructor3ParametersNegSecond() {\n\t\tnew CountDownTimer(2, 3, -4);\n\t}", "public static void main(String args[])\n {\n String churchName = \"St. Bonaventure\";\n\n Church newChurch = new Church(churchName);\n\n int m, d, y;\n m = 12;\n d = 13;\n y = 2018;\n\n Date newDate = new Date(m, d, y);\n\n// SongActivity.changeDate(newDate);\n//\n// assertEquals(newDate.month, m);\n// assertEquals(newDate.day, d);\n// assertEquals(newDate.year, y);\n }", "private BusinessDateUtility() {\n\t}", "public void testConvertDate() throws Exception {\n String[] message= {\n \"from Date\",\n \"from Calendar\",\n \"from SQL Date\",\n \"from SQL Time\",\n \"from SQL Timestamp\"\n };\n \n long now = System.currentTimeMillis();\n \n Object[] date = {\n new Date(now),\n new java.util.GregorianCalendar(),\n new java.sql.Date(now),\n new java.sql.Time(now),\n new java.sql.Timestamp(now)\n };\n \n // Initialize calendar also with same ms to avoid a failing test in a new time slice\n ((GregorianCalendar)date[1]).setTimeInMillis(now);\n \n for (int i = 0; i < date.length; i++) {\n Object val = makeConverter().convert(getExpectedType(), date[i]);\n assertNotNull(\"Convert \" + message[i] + \" should not be null\", val);\n assertTrue(\"Convert \" + message[i] + \" should return a \" + getExpectedType().getName(),\n getExpectedType().isInstance(val));\n assertEquals(\"Convert \" + message[i] + \" should return a \" + date[0],\n now, ((Date) val).getTime());\n }\n }", "public Date() {\r\n }", "@Test\r\n public void testGetDateEaten()\r\n {\r\n System.out.println(\"getDateEaten\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n Date expResult = Date.valueOf(\"2014-04-01\");\r\n Date result = instance.getDateEaten();\r\n assertEquals(expResult, result);\r\n \r\n }", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public CinemaDate() {\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateToday_ExpirationDateLaterTime() {\r\n doTest(TEST_DATE_2_TODAY, TEST_DATE_3_TODAY, false);\r\n }", "private DateUtil(){\n\n }", "public Date(String dateType, int year, int month, int day, int hour,\r\n\t\t\tint min, int sec, int ehour, int emin, int esec)\r\n\t\t\tthrows BogusDataException\r\n\t{\r\n\t\tsuper(dateType, \"\");\r\n\r\n\t\tthis.dateType = dateType;\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.hour = hour;\r\n\t\tthis.minute = min;\r\n\t\tthis.second = sec;\r\n\t\tthis.ehour = ehour;\r\n\t\tthis.eminute = emin;\r\n\t\tthis.esecond = esec;\r\n\t\tthis.dateOnly = false;\r\n\r\n\t\tString yearStr, monthStr, dayStr, hourStr, minStr, secStr, ehourStr, eminStr, esecStr;\r\n\r\n\t\tyearStr = \"\" + year;\r\n\t\tmonthStr = \"\" + month;\r\n\t\tdayStr = \"\" + day;\r\n\t\thourStr = \"\" + hour;\r\n\t\tminStr = \"\" + min;\r\n\t\tsecStr = \"\" + sec;\r\n\t\tehourStr = \"\" + ehour;\r\n\t\teminStr = \"\" + emin;\r\n\t\tesecStr = \"\" + esec;\r\n\r\n\t\twhile (yearStr.length() < 4)\r\n\t\t\tyearStr = '0' + yearStr;\r\n\t\tif (monthStr.length() < 2)\r\n\t\t\tmonthStr = '0' + monthStr;\r\n\t\tif (dayStr.length() < 2)\r\n\t\t\tdayStr = '0' + dayStr;\r\n\t\tif (hourStr.length() < 2)\r\n\t\t\thourStr = '0' + hourStr;\r\n\t\tif (minStr.length() < 2)\r\n\t\t\tminStr = '0' + minStr;\r\n\t\tif (secStr.length() < 2)\r\n\t\t\tsecStr = '0' + secStr;\r\n\t\tif (ehourStr.length() < 2)\r\n\t\t\tehourStr = '0' + ehourStr;\r\n\t\tif (eminStr.length() < 2)\r\n\t\t\teminStr = '0' + eminStr;\r\n\t\tif (esecStr.length() < 2)\r\n\t\t\tesecStr = '0' + esecStr;\r\n\r\n\t\t// TODO: use StringBuffer to speed this up\r\n\t\t// TODO: validate values\r\n\t\tvalue = yearStr + monthStr + dayStr + 'T' + hourStr + minStr + secStr\r\n\t\t\t\t+ ehourStr + eminStr + esecStr;\r\n\r\n\t\t// Add attribute that says date has a time\r\n\t\taddAttribute(\"VALUE\", \"DATE-TIME\");\r\n\t}", "@Test (expected = IllegalArgumentException.class)\n\tpublic void testConstructor3ParametersNegMinute() {\n\t\tnew CountDownTimer(2, -3, 4);\n\t}", "DateConstant createDateConstant();", "public void testInstance() throws ParseException {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date date = df.parse(\"2008-08-08 12:34:56.789\");\n \n QueryObject n = new MockTemporalLiteral(date);\n assertTrue(n instanceof AbstractTemporalLiteral);\n assertTrue(n instanceof AbstractLiteral);\n assertTrue(n instanceof Literal);\n assertTrue(n instanceof AbstractExpression);\n assertTrue(n instanceof Expression);\n }", "public DateUtil ()\n {\n\n }", "public static void before0(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,6);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==6);\n assert(ret0==true);\n System.out.println(ret0);\n }", "@Test\n public void testCreationTimestamp() {\n Product newProduct = TestUtil.createProduct();\n productCurator.create(newProduct);\n Pool pool = createPoolAndSub(owner, newProduct, 1L,\n TestUtil.createDate(2011, 3, 30),\n TestUtil.createDate(2022, 11, 29));\n poolCurator.create(pool);\n \n assertNotNull(pool.getCreated());\n }", "@Test\n\tpublic void testObjectConstructor(){\n\t\tCountDownTimer s1 = new CountDownTimer(1, 30, 0);\n\t\tCountDownTimer s2 = new CountDownTimer(s1);\n\t\tassertEquals(s2.toString(), \"1:30:00\");\n\t}", "public void testCreateCreationDateFilter2() {\r\n try {\r\n instance.createCreationDateFilter(new Date(20000), new Date(10000));\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }", "private DateTimeAdjusters() {\n\n }", "public void testConvenienceConstructor() {\n\t\tthis.recordReturn(this.one, this.one.getTarget(), TARGET);\n\t\tthis.recordReturn(this.one, this.one.getChangeDescription(), \"Change description\");\n\t\tthis.replayMockObjects();\n\t\tChange<?> change = AggregateChange.aggregate(this.one, this.two);\n\t\tassertSame(\"Incorrect target\", TARGET, change.getTarget());\n\t\tassertEquals(\"Incorrect description\", \"Change description\", change.getChangeDescription());\n\t\tthis.verifyMockObjects();\n\t}", "@Test (expected = IllegalArgumentException.class)\n\tpublic void testConstructor3ParametersNegHour() {\n\t\tnew CountDownTimer(-2, 3, 4);\n\t}", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateTomorrow() {\r\n doTest(TEST_DATE_2_TOMORROW, TEST_DATE_1_TODAY, false);\r\n }", "public interface TestInterfaceDateAndTime {\n Duration duration();\n Instant instant();\n LocalDate localDate();\n LocalDateTime localDateTime();\n LocalTime localTime();\n MonthDay monthDay();\n OffsetDateTime offsetDateTime();\n OffsetTime offsetTime();\n Period period();\n Year year();\n YearMonth yearMonth();\n ZonedDateTime zonedDateTime();\n ZoneId zoneId();\n ZoneOffset zoneOffset();\n}", "@Test\n\tpublic void testNextDate(){\n\t\tif(year==444 && day==29){\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n } else if(day==30 && year==2005){ //for test case 10\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\n\t\t} else if(day==31 ){ //for test cases 13,14,15\n\t\t\tif(month==12){\n\t\t\tday=1;\n\t\t\tmonth=1;\n\t\t\tyear+=1;\n\t\t\tDate actualDate = new Date(year,month,day);\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n } else {\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\t\t\t}\n\n\t\t}\n\t\telse{\t\n\t\t\tDate actualDate = new Date(year,month,(day+1));\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\t\t}\n\t\n\t}", "@Test\n\tpublic void testTradeDateFrom2() {\n\n\t\tfinal DDF_TradeDay day = DDF_TradeDay.D30;\n\n\t\tfinal DateTime today = new DateTime(\"2012-01-01T10:39:44.647-06:00\");\n\n\t\tfinal TimeValue value = DDF_TradeDay.tradeDateFrom(day, today);\n\n\t\tfinal DateTime trade = value.asDateTime();\n\n\t\tlogger.debug(\"day=\" + day);\n\t\tlogger.debug(\"today=\" + today);\n\t\tlogger.debug(\"trade=\" + trade);\n\n\t\tassertEquals(trade.getYear(), 2011);\n\t\tassertEquals(trade.getMonthOfYear(), 12);\n\t\tassertEquals(trade.getDayOfMonth(), 30);\n\n\t}", "public static void main(String[] args) {\r\n\t\tDate today = new Date(2, 26, 2012);\r\n\t\tSystem.out.println(\"Input date is \" + today);\r\n\t\tSystem.out.println(\"Printing the next 10 days after \" + today);\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\ttoday = today.next();\r\n\t\t\tSystem.out.println(today);\r\n\t\t}\r\n\t\tDate expiry = new Date(2011);\r\n\t\tSystem.out.println(\"testing year 2011 as input:\" + expiry);\r\n\r\n\t\tDate todayDate = new Date();\r\n\t\tSystem.out.println(\"todays date: \" + todayDate);\r\n\t\tSystem.out.println(\"current month:\" + todayDate.month);\r\n\r\n\t\t// testing isValidMonth function\r\n\t\tDate start = new Date(\"08-01-2010\");\r\n\t\tDate end1 = new Date(\"09-01-2010\");\r\n\t\tboolean param1 = start.isValidMonth(4, end1);\r\n\t\tSystem.out.println(\"is April valid between: \" + start + \" and \" + end1\r\n\t\t\t\t+ \": \" + param1);\r\n\t\tDate end2 = new Date(\"02-01-2011\");\r\n\t\tboolean param2 = start.isValidMonth(2, end2);\r\n\t\tSystem.out.println(\"is feb valid between: \" + start + \" and \" + end2\r\n\t\t\t\t+ \": \" + param2);\r\n\t\tboolean param3 = start.isValidMonth(8, start);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tparam3 = start.isValidMonth(4, start);\r\n\t\tSystem.out.println(\"is april valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tDate end3 = new Date(\"02-01-2010\");\r\n\t\tboolean param4 = start.isValidMonth(8, end3);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + end3\r\n\t\t\t\t+ \": \" + param4);\r\n\t\t \r\n\t\tDate lease = new Date(\"1-01-2012\");\r\n\t\tDate expiry1 = new Date(\"12-31-2012\");\r\n\r\n\t\t// testing daysBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING daysBetween method\\n------------------------------\");\r\n\t\tint count = lease.daysBetween(expiry);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry + \"is: \"\r\n\t\t\t\t+ count);\r\n count = new Date(\"1-01-2011\").daysBetween(new Date(\"12-31-2011\"));\r\n\t\tSystem.out.println(\"Days between [1-01-2011] and [12-31-2011]\" + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tcount = lease.daysBetween(expiry1);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry1 + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tDate testDate = new Date(\"12-31-2013\");\r\n\t\tcount = lease.daysBetween(testDate);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [12-31-2013] \"\r\n\t\t\t\t+ \"is: \" + count);\r\n\t\tcount = lease.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n count = lease.daysBetween(new Date(\"1-10-2012\"));\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [1-10-2012\" + \"is: \"\r\n\t\t\t\t+ count);\r\n \r\n\t\tcount = testDate.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + testDate + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n\r\n\t\t// testin isBefore\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING isBefore method\\n------------------------------\");\r\n\t\tboolean isBefore = today.isBefore(today.next());\r\n\t\tSystem.out.println(today + \"is before \" + today.next() + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.next().isBefore(today);\r\n\t\tSystem.out.println(today.next() + \"is before \" + today + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.isBefore(today);\r\n\t\tSystem.out.println(today + \"is before \" + today + \": \" + isBefore);\r\n isBefore = today.isBefore(today.addMonths(12));\r\n\t\tSystem.out.println(today + \"is before \" + today.addMonths(12) + \": \" + isBefore);\r\n\r\n\t\t// testing addMonths\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING addMonths method\\n------------------------------\");\r\n\t\ttoday = new Date(\"1-31-2011\");\r\n\t\tDate newDate = today.addMonths(1);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 1 months to \" + today + \" gives: \" + newDate);\r\n\t\tnewDate = today.addMonths(13);\r\n\t\tSystem.out.println(\"adding 13 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\ttoday = new Date(\"3-31-2010\");\r\n\t\tnewDate = today.addMonths(15);\r\n\t\tSystem.out.println(\"adding 15 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(23);\r\n\t\tSystem.out.println(\"adding 23 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(49);\r\n\t\tSystem.out.println(\"adding 49 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(0);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 0 months to \" + today + \" gives: \" + newDate);\r\n\t\t\r\n\t\t// testing monthsBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING monthsBetween method\\n------------------------------\");\r\n\t\tint monthDiff = today.monthsBetween(today.addMonths(1));\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + today.addMonths(1)\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\tmonthDiff = today.next().monthsBetween(today);\r\n\t\tSystem.out.println(\"months between \" + today.next() + \" and \" + today\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date(\"09-30-2011\");\r\n\t\tDate endDate = new Date(\"2-29-2012\");\r\n\t\tmonthDiff = today.monthsBetween(endDate);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate + \": \"\r\n\t\t\t\t+ monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate1 = new Date(\"12-04-2011\");\r\n\t\tmonthDiff = today.monthsBetween(endDate1);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate1\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate2 = new Date(\"12-22-2010\");\r\n\t\tmonthDiff = today.monthsBetween(endDate2);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate2\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\t\r\n\t\t// following should generate exception as date is invalid!\r\n\t\t// today = new Date(13, 13, 2010);\r\n\r\n\t\t// expiry = new Date(\"2-29-2009\");\r\n // newDate = today.addMonths(-11);\r\n\r\n\t}", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "public DataPoint(String newDate, int newSiteId,\n double newX, double newY, double newZ,\n double newA, double newB, double newC)\n {\n date = newDate;\n siteId = newSiteId;\n x = newX;\n y = newY;\n z = newZ;\n a = newA;\n b = newB;\n c = newC;\n }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "@Test\n public void TestCreateDog() {\n String expectedName = \"Tyro\";\n Date expectedBirthDate = new Date();\n\n Dog newDog = AnimalFactory.createDog(expectedName, expectedBirthDate);\n\n Assert.assertEquals(expectedName, newDog.getName());\n Assert.assertEquals(expectedBirthDate, newDog.getBirthDate());\n }", "public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions, Iterable<Member> members) { throw Extensions.todo(); }", "@Test\r\n public void testSetDateEaten()\r\n {\r\n System.out.println(\"setDateEaten\");\r\n Date dateEaten = Date.valueOf(\"1982-04-08\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n instance.setDateEaten(dateEaten);\r\n assertEquals(dateEaten, instance.getDateEaten());\r\n }", "@Test\n public void testGetCreationDate() {\n System.out.println(\"getCreationDate\");\n Comment instance = new Comment(\"Test Komment 2\", testCommentable, testAuthor);\n Date expResult = new Date();\n Date result = instance.getCreationDate();\n assertEquals(expResult.getTime(), result.getTime());\n }", "@Test\npublic void getDateTest() throws ParseException {\n assertNotNull(DEFAULT_TIME_FORMAT.getDate(OLD_TEST_DATE));\n assertNotNull(DEFAULT_TIME_FORMAT.getDate(NEW_TEST_DATE));\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tDate date = new Date();\r\n\t\t\r\n\t\tLocalDate diaHoy = LocalDate.now();\r\n\t\tLocalDate diaFin = diaHoy.plusDays(15);\r\n\t\t\r\n\t\tCursoVacacional curso1 = new CursoVacacional();\r\n\t\tcurso1.setNombre(\"Volley Principiantes\");\r\n\t\tcurso1.setFechaInicio(diaHoy);\r\n\t\tcurso1.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso1.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso1.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso1.getFechaFin());\r\n\t\t\r\n\t\tLocalDate diaHoy2 = LocalDate.now();\r\n\t\tLocalDate diaQueInicio = diaHoy2.minusDays(2);\r\n\t\tLocalDate diaQueFinaliza = diaQueInicio.plusDays(20);\r\n\t\t\r\n\t\tCursoVacacional curso2 = new CursoVacacional();\r\n\t\tcurso2.setNombre(\"Volley Principiantes\");\r\n\t\tcurso2.setFechaInicio(diaHoy);\r\n\t\tcurso2.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso2.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso2.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso2.getFechaFin());\r\n\t\t\r\n\t\t\r\n\t}", "public MyDate(long inElapsedTime)\n {\n //put in logic here\n elapsedTime = inElapsedTime;\n this.setDate(elapsedTime);\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateToday_ExpirationDateEarlierTime() {\r\n doTest(TEST_DATE_2_TODAY, TEST_DATE_1_TODAY, false);\r\n }", "public FillDate() {\n }", "@Override\n\tpublic boolean create(Dates obj) {\n\t\treturn false;\n\t}", "@Ignore\n\t@Test\n\tpublic void testDate3() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(728783);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 4);\n\t\t\t// month is 0 indexed, so May is the 4th month\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 4);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1996);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions) { throw Extensions.todo(); }", "public void testSyncDates(){\r\n \ts1.syncDates();\r\n \ts2.syncDates();\r\n \tassertSame(si.getStartDate(), s1.getStartDate());\r\n \tassertSame(si.getStartDate(), s2.getStartDate());\r\n \t\r\n \tassertSame(si.getEndDate(), s1.getEndDate());\r\n \tassertSame(si.getEndDate(), s2.getEndDate());\r\n \t\r\n \t//site investigator is null. \r\n \tDate now = new Date();\r\n \tStudyInvestigator s3 = new StudyInvestigator();\r\n \ts3.setStartDate(now);\r\n \ts3.syncDates();\r\n \tassertSame(now, s3.getStartDate());\r\n \tassertNull(s3.getEndDate());\r\n \t\r\n \t\r\n }", "@Before\n\tpublic void setUp() throws ParseException{\n\t\tbc = new Bank_Control();\n\t\tmyDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"1997-03-20\");\n\t}", "CurrencyDateCalculatorBuilder<E> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag);", "CurrencyDateCalculator<E> getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag);", "protected abstract T create(final double idealStartTime);", "public MyDate(){\t\n\t\tthis(\"00/00/0000\");\n\t}", "public DateUtil (int yyyy, int mm, int dd)\n {\n set(yyyy, mm, dd, CHECK);\n }", "public DateTime() {\n this((BusinessObject) null);\n }", "@Test\r\n\tpublic void test_leap_five(){\r\n\t\tLeapYear year1555 = new LeapYear(1555);\r\n\t\tLeapYear year2135 = new LeapYear(2135);\r\n\t\tassertFalse(year1555.isLeapYear());\r\n\t\tassertFalse(year2135.isLeapYear());\r\n\t}", "@Test\r\n public void getDateValue() throws Exception {\r\n assertEquals(dt1,point1.getDateValue());\r\n assertEquals(dt2,point2.getDateValue());\r\n assertEquals(dt3,point3.getDateValue());\r\n assertEquals(dt4,point4.getDateValue());\r\n }", "@Test (expected = IllegalArgumentException.class)\n\tpublic void testConstructor3LargeMinute() {\n\t\tnew CountDownTimer(12, 60, 14);\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorNegativeHoursOne(){\n \tCountDownTimer s = new CountDownTimer(-5, 5, 20);\n }", "public void testCtor1() {\r\n assertNotNull(\"Failed to create DbTimeEntryDAO instance.\", instance);\r\n }", "Reproducible newInstance();", "@Test\n\tpublic void testTradeDateFrom3() {\n\n\t\tfinal DDF_TradeDay day = DDF_TradeDay.D03;\n\n\t\tfinal DateTime today = new DateTime(\"2011-12-30T10:39:44.647-06:00\");\n\n\t\tfinal TimeValue value = DDF_TradeDay.tradeDateFrom(day, today);\n\n\t\tfinal DateTime trade = value.asDateTime();\n\n\t\tlogger.debug(\"day=\" + day);\n\t\tlogger.debug(\"today=\" + today);\n\t\tlogger.debug(\"trade=\" + trade);\n\n\t\tassertEquals(trade.getYear(), 2012);\n\t\tassertEquals(trade.getMonthOfYear(), 01);\n\t\tassertEquals(trade.getDayOfMonth(), 03);\n\n\t}", "abstract Date getDefault();", "public WeatherDayTest()\n {\n }", "@Test\n\tpublic void testTradeDateFrom1() {\n\n\t\tfinal DDF_TradeDay day = DDF_TradeDay.D15;\n\n\t\tfinal DateTime today = new DateTime(\"2012-01-12T10:39:44.647-06:00\");\n\n\t\tfinal TimeValue value = DDF_TradeDay.tradeDateFrom(day, today);\n\n\t\tfinal DateTime trade = value.asDateTime();\n\n\t\tlogger.debug(\"day=\" + day);\n\t\tlogger.debug(\"today=\" + today);\n\t\tlogger.debug(\"trade=\" + trade);\n\n\t\tassertEquals(trade.getYear(), 2012);\n\t\tassertEquals(trade.getMonthOfYear(), 01);\n\t\tassertEquals(trade.getDayOfMonth(), 15);\n\n\t}", "@Test\n\tpublic void testSetFecha2(){\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(2);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void testCtor() {\r\n assertNotNull(\"Failed to create a new Year instance.\", new Year());\r\n }", "@Test\n public void testCreateLegalMoney() {\n setFactory(\"ThaiMoneyFactory\");\n double[] thaiValue = {1, 2, 5, 10, 20, 50, 100, 500, 1000};\n for (double val : thaiValue) {\n assertEquals(makeValuable(val), moneyFactory.createMoney(val));\n }\n setFactory(\"MalayMoneyFactory\");\n double[] malayValue = {0.05, 0.10, 0.20, 0.50, 1, 2, 5, 10, 20, 50, 100};\n for (double val : malayValue) {\n assertEquals(makeValuable(val), moneyFactory.createMoney(val));\n }\n }", "@Test\n public void tomorrowInTheSameMonth(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.tomorrow(),new Date(2,Month.january,1970));\n }", "@Test\n\tpublic void testCreateFutureCarYear() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"Z4\";\n\t\tString _color = \"black\";\n\t\tint _year = 19900;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a future year.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\n\t\t}\n\n\t}", "private Date getTestDate(int numberOfDays) {\n Calendar c = Calendar.getInstance();\n c.add(Calendar.DATE, numberOfDays);\n return c.getTime();\n }", "@Test\n\tpublic void getTheCurrentDateSystem() {\n\t\tAssert.assertNotNull(\"The actual date is returned in the expected format \",\n\t\t\t\tTimeMilisecondHelper.fromMilisecondsToDate());\n\t}", "@Test\n void getAndSetDate() {\n }", "public void testConstructor1() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateYesterday() {\r\n doTest(TEST_DATE_2_YESTERDAY, TEST_DATE_1_TODAY, true);\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorNegativeMinutesOne(){\n \tCountDownTimer s = new CountDownTimer(5, -5, 5);\n }", "public void testConstructor() {\n Measurement a = new Measurement();\n assertTrue(a.getFeet() == 0);\n assertTrue(a.getInches() == 0);\n \n Measurement b = new Measurement(5);\n assertTrue(b.getFeet() == 5);\n assertTrue(b.getInches() == 0);\n \n Measurement c = new Measurement(4, 3);\n assertTrue(c.getFeet() == 4);\n assertTrue(c.getInches() == 3);\n }", "public void testInconsistentInitializationDateRejected() {\n\n try {\n String input = CHANGE + DATE_REMOTE_PAST + \"\\n\";\n input += ADDITION + DATE_2 + \"\\n\";\n input += MODIFICATION + DATE_3 + \"\\n\";\n input += DELETION + DATE_4 + \"\\n\";\n BuildStatus bs = new BuildStatus(input);\n fail(\"Early last-change was rejected\");\n } catch (Exception e) {\n // Expected\n }\n\n try {\n String input = CHANGE + DATE_REMOTE_FUTURE + \"\\n\";\n input += ADDITION + DATE_2 + \"\\n\";\n input += MODIFICATION + DATE_3 + \"\\n\";\n input += DELETION + DATE_4 + \"\\n\";\n BuildStatus bs = new BuildStatus(input);\n fail(\"Late last-change was rejected\");\n } catch (Exception e) {\n // Expected\n }\n\n /* A change date equal to any of the others should be accepted. */\n {\n String input = CHANGE + DATE_4 + \"\\n\";\n input += ADDITION + DATE_4 + \"\\n\";\n input += MODIFICATION + DATE_3 + \"\\n\";\n input += DELETION + DATE_2 + \"\\n\";\n BuildStatus bs = new BuildStatus(input);\n }\n {\n String input = CHANGE + DATE_4 + \"\\n\";\n input += ADDITION + DATE_2 + \"\\n\";\n input += MODIFICATION + DATE_4 + \"\\n\";\n input += DELETION + DATE_3 + \"\\n\";\n BuildStatus bs = new BuildStatus(input);\n }\n {\n String input = CHANGE + DATE_4 + \"\\n\";\n input += ADDITION + DATE_2 + \"\\n\";\n input += MODIFICATION + DATE_3 + \"\\n\";\n input += DELETION + DATE_4 + \"\\n\";\n BuildStatus bs = new BuildStatus(input);\n }\n\n }", "@Test\r\n public void testCalculDureeEffectiveLocation() {\r\n LocalDate date1 = LocalDate.parse(\"2018-04-02\");\r\n LocalDate date2 = LocalDate.parse(\"2018-04-10\");\r\n\r\n int res1 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(7, res1);\r\n\r\n date1 = LocalDate.parse(\"2018-01-10\");\r\n date2 = LocalDate.parse(\"2018-01-17\");\r\n\r\n int res2 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(5, res2);\r\n\r\n date1 = LocalDate.parse(\"2018-04-30\");\r\n date2 = LocalDate.parse(\"2018-05-09\");\r\n\r\n int res3 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(6, res3);\r\n }", "@Test\n public void testGenerateInvoice() {\n System.out.println(\"generateInvoice\");\n School instance = new School();\n instance.setStudents(students);\n instance.setStudentClass(studentClass);\n instance.setClasses(classes);\n instance.setInvoices(invoices);\n\n Invoice inv1 = instance.generateInvoice(student1);\n Invoice inv2 = instance.generateInvoice(student2);\n\n DateTimeFormatter fmt = DateTimeFormat.forPattern(\"yyMMdd\");\n String todayString = fmt.print(new LocalDate());\n\n assertEquals(inv1.getId(), student1.getId() + \"-\" + todayString);\n assertEquals(inv2.getId(), student2.getId() + \"-\" + todayString);\n\n System.out.println(\"PASS ALL\");\n }", "@Test\n\tpublic void testIntConstructors(){\n CountDownTimer s = new CountDownTimer(5, 10, 30);\n assertEquals(s.toString(), \"5:10:30\");\n \n\t\ts = new CountDownTimer(10, 30);\n\t\tassertEquals(s.toString(), \"0:10:30\");\n\t\t\n\t\ts = new CountDownTimer(30);\n\t\tassertEquals(s.toString(), \"0:00:30\");\n\t}", "@Test\n public void dateUtilTest() {\n String orgStr = \"2016-01-05 10:00:17\";\n Date orgDate = new Date(1451959217000L);\n Assert.assertTrue(DateStrValueConvert.dateFormat(orgDate).equals(orgStr));\n Assert.assertTrue(DateStrValueConvert.dateConvert(orgStr).equals(orgDate));\n }", "@Test\r\n public void testCompareTo3() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"3/1/2013\");\r\n assertTrue(d1.compareTo(d2) == 0);\r\n }", "@Test\n\tpublic void testTradeDateFrom0() {\n\n\t\tfinal DDF_TradeDay day = DDF_TradeDay.D15;\n\n\t\tfinal DateTime today = new DateTime(\"2012-01-18T10:39:44.647-06:00\");\n\n\t\tfinal TimeValue value = DDF_TradeDay.tradeDateFrom(day, today);\n\n\t\tfinal DateTime trade = value.asDateTime();\n\n\t\tlogger.debug(\"day=\" + day);\n\t\tlogger.debug(\"today=\" + today);\n\t\tlogger.debug(\"trade=\" + trade);\n\n\t\tassertEquals(trade.getYear(), 2012);\n\t\tassertEquals(trade.getMonthOfYear(), 01);\n\t\tassertEquals(trade.getDayOfMonth(), 15);\n\n\t}" ]
[ "0.64639324", "0.6185704", "0.61340576", "0.61142373", "0.5981983", "0.5891842", "0.5870883", "0.5870883", "0.5870124", "0.5860932", "0.5779321", "0.5760349", "0.5760349", "0.57572377", "0.5745032", "0.57146144", "0.5703739", "0.5700624", "0.5690625", "0.56652653", "0.56582856", "0.5608814", "0.5605764", "0.5600993", "0.55804825", "0.5561229", "0.55578816", "0.55571616", "0.5554095", "0.5552634", "0.5552487", "0.5549263", "0.5542289", "0.55329907", "0.55329365", "0.5523961", "0.5515203", "0.5506174", "0.5487682", "0.54859793", "0.54834986", "0.54830515", "0.54738265", "0.54625916", "0.5456028", "0.5444964", "0.5427857", "0.5426446", "0.5418566", "0.54064286", "0.5401227", "0.5396307", "0.5391145", "0.5383849", "0.53791565", "0.53726995", "0.5368338", "0.5362426", "0.53606606", "0.5356778", "0.5352669", "0.5350803", "0.53461176", "0.5341515", "0.5340521", "0.5334928", "0.5334122", "0.53227127", "0.53218365", "0.5319245", "0.5317941", "0.53166187", "0.53015184", "0.52909714", "0.5276184", "0.5275892", "0.5268812", "0.5263089", "0.5262105", "0.5256713", "0.5254915", "0.5253974", "0.52485675", "0.5242188", "0.5225726", "0.5221766", "0.5219225", "0.5217892", "0.5217469", "0.5190731", "0.5183043", "0.5178601", "0.51782703", "0.5173197", "0.51695466", "0.51599836", "0.51495886", "0.5149045", "0.5147856", "0.51438093" ]
0.561515
21
float unitAngle = (float) 360 / defaultCount;
public void animationTrans() { float unitAngle; if (type == CIRCLE) { unitAngle = (float) 360 / defaultCount; } else { unitAngle = 45f; } final float oldAngle = mAngle; float nAngle = mAngle % actualAngle; float gapAngle = (float) (nAngle / unitAngle) - (int) (nAngle / unitAngle); final float willAngle; if (type == CIRCLE) { willAngle = (float) ((0.5 - gapAngle) * unitAngle); } else { if (gapAngle < 0.5) { willAngle = (float) ((0 - gapAngle) * unitAngle); } else { willAngle = (float) ((1 - gapAngle) * unitAngle); } } Animation a = new Animation() { @Override protected void applyTransformation(float interpolatedTime, Transformation t) { mAngle = oldAngle + willAngle * interpolatedTime; requestLayout(); } @Override public boolean willChangeBounds() { return true; } }; a.setDuration(200); startAnimation(a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getAngle();", "double getAngle();", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public double getAngle();", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public double findAngle() {\n return 0d;\n }", "public void setAngle( double a ) { angle = a; }", "float calcRotate(float rotateDeg, float anglePerIn)\n {\n return rotateDeg / anglePerIn;\n }", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public float calculateCelestialAngle(long par1, float par3)\n {\n return 0.5F;\n }", "public double getAngle() { return angle; }", "public double getAngle()\n {\n return (AngleAverage);\n }", "public double getStartAngle();", "Angle createAngle();", "public String getUnitOfViewAngle() {\n \treturn \"degrees\";\n }", "@org.junit.Test\n public void testTicksForDesiredAngle90From0() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,0, 90);\n assertEquals(90, resultsTicks);\n }", "public double getAngleToTarget(){\n return 0d;\n }", "public int getAngle() {\r\n return angle;\r\n }", "private float angularRounding(float input) {\n if (input >= 180.0f) {\n return input - 360.0f;\n } else if (input <= -180.0f) {\n return 360 + input;\n } else {\n return input;\n }\n }", "public static double to_360(double deg) {\n return modulo(deg,360);\n }", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public double nextAngle()\n {\n return nextAngle();\n }", "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }", "protected void calculateTotalDegrees() {\r\n\t\tmTotalCircleDegrees = (360f - (mStartAngle - mEndAngle)) % 360f; // Length of the entire circle/arc\r\n\t\tif (mTotalCircleDegrees <= 0f) {\r\n\t\t\tmTotalCircleDegrees = 360f;\r\n\t\t}\r\n\t}", "@Override\n\tpublic float calculateCelestialAngle(long par1, float par3) {\n\t\treturn 2.0F;\n\t}", "public float getAngle() {\n return angle;\n }", "AngleSmaller createAngleSmaller();", "EDataType getAngleDegrees();", "public int getAngle(){\n\t\treturn (int)angle;\n\t}", "private int getAngle(int amountOfCars) {\n\t\tint total = model.getNumberOfFloors() * model.getNumberOfRows() * model.getNumberOfPlaces();\n\t\tdouble angle = 1.0 * (double) amountOfCars / (double) total * 360.0;\n\t\treturn (int) angle;\n\t}", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "@Override\n public void reAngle() {\n }", "public int getCurrentAngle(){\n return flatbed.currentAngle;\n }", "@org.junit.Test\n public void testTicksForDesiredAngle90From540() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,540, 90);\n\n // Shortest path is to go left 90 (360 + 90 = 460)\n assertEquals(450, resultsTicks);\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "@Test\r\n public void testCalculateAngle3() {\r\n System.out.println(\"calculateAngle3\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(100);\r\n double expResult = Math.toRadians(0);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }", "void setAngle(double angle);", "void resetAngle();", "public float calculateCelestialAngle(long par1, float par3) {\n\t\treturn 0.0F;\n\t}", "@Override\n public int calculerPerimetre() {\n return (int)(rayon * 2 * Math.PI);\n }", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "public float getXAngle(){\n Point project=new Point(0,accel.y,accel.z);\n\n float angl=(float)Math.asin(project.y / project.module())* PreferenceHelper.sensetivity;\n //float angl=(float)Math.acos(accel.z/accel.module())*100f;\n if(Float.isNaN(angl)) angl=0.5f;\n return (float)(Math.rint( toFlowX(angl)/1.0) * 1.0);\n }", "public static double reduce360Degrees(double degrees){\n return degrees % 360;\n }", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "public float getAngle() {\n return angle;\n }", "@Test\r\n public void testCalculateAngle4() {\r\n System.out.println(\"calculateAngle4\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(90);\r\n double expResult = Math.toRadians(18);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }", "@Test\r\n public void testCalculateAngle2() {\r\n System.out.println(\"calculateAngle2\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(0);\r\n double expResult = Math.toRadians(180);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }", "public void setAngle(float angle){\n\n\t}", "static double calcAngle(long val, long centerVal, double focalLen) {\n return Math.atan(((double)(val - centerVal)) / focalLen);\n }", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n return angle;\n }", "protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "double getCalibratedLevelAngle();", "private static double radToDeg(float rad)\r\n/* 30: */ {\r\n/* 31:39 */ return rad * 180.0F / 3.141592653589793D;\r\n/* 32: */ }", "@Test\r\n public void testCalculateAngle1() {\r\n System.out.println(\"calculateAngle1\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(36);\r\n double expResult = Math.toRadians(115.2);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }", "public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }", "double getAngle(int id);", "public double getAngle ()\n {\n return angle_;\n }", "public static float map180to360(float angle) {\n return (angle + 360) % 360;\n }", "@Test\r\n public void testCalculateAngle5() {\r\n System.out.println(\"calculateAngle5\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(50);\r\n double expResult = Math.toRadians(90);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }", "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public float getAngle() {\n return mAngle;\n }", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "private double AdjustDegree(double value)\n\t{\n\t\tif(value > 360.0)\n\t\t{\n\t\t\twhile (value > 360.0)\n\t\t\t{\n\t\t\t\tvalue -= 360.0;\n\t\t\t}\n\t\t}\n\t\tif(value < 0.0)\n\t\t{\n\t\t\twhile (value < 0.0)\n\t\t\t{\n\t\t\t\tvalue += 360.0;\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}", "public Unit<Angle> microradian() {return microradian;}", "public int getDegreesOfFreedom() {return nu;}", "private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "public double ang()\n {\n \treturn Math.atan(y/x);\n }", "public double getAngle(){\n\t\treturn this.angle;\n\t}", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "public Unit<Angle> radian() {return radian;}", "private static double degToRad(float deg)\r\n/* 25: */ {\r\n/* 26:32 */ return deg * 3.141592653589793D / 180.0D;\r\n/* 27: */ }", "int getStartRotationDegree();", "public float perimetro(){\r\n return 2*(float)Math.PI*radio;\r\n }", "public double getAngleInDegrees() {\n return intakeAngle;\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public abstract int getIndexForAngle(float paramFloat);", "private float calculateAngles(){\n\t\t// First we will move the current angle heading into the previous angle heading slot.\n\t\tdata.PID.headings[0] = data.PID.headings[1];\n\t\t// Then, we assign the new angle heading.\n\t\tdata.PID.headings[1] = data.imu.getAngularOrientation().firstAngle;\n\n\t\t// Finally we calculate a computedTarget from the current angle heading.\n\t\tdata.PID.computedTarget = data.PID.headings[1] + (data.PID.IMURotations * 360);\n\n\t\t// Now we determine if we need to re-calculate the angles.\n\t\tif(data.PID.headings[0] > 300 && data.PID.headings[1] < 60) {\n\t\t\tdata.PID.IMURotations++; //rotations of 360 degrees\n\t\t\tcalculateAngles();\n\t\t} else if(data.PID.headings[0] < 60 && data.PID.headings[1] > 300) {\n\t\t\tdata.PID.IMURotations--;\n\t\t\tcalculateAngles();\n\t\t}\n\t\treturn data.PID.headings[1];\n\t}", "private float normalize(float angle) {\n\t\tfloat a = angle;\n\t\twhile (a > 180)\n\t\t\ta -= 360;\n\t\twhile (a < -180)\n\t\t\ta += 360;\n\t\treturn a;\n\t}", "private static double convertBearingTo360(double dBearing){\n\t\t\n\t\t//dOut = output\n\t\t\n\t\tdouble dOut;\n\t\t\n\t\tdOut = dBearing;\n\t\t\n\t\twhile(dOut>360){\n\t\t\tdOut=dOut-360.;\n\t\t}\n\t\twhile(dOut<0){\n\t\t\tdOut=dOut+360.;\n\t\t}\n\t\t\n\t\treturn dOut;\n\t}", "AngleScalarDivide createAngleScalarDivide();", "private int getAttackAngle() {\n\t\treturn (160 - (level * 10));\n\t}", "private void calculateAngle(){\n for (Point point : points) {\n double d = Math.abs(point.x)+Math.abs(point.z);\n double angle = 0;\n\n if (point.x >= 0 && point.z >= 0){\n angle = point.z/d;\n } else if (point.x < 0 && point.z >= 0){\n angle = 2 - point.z/d;\n } else if (point.x < 0 && point.z <0){\n angle = 2 + Math.abs(point.z)/d;\n } else if (point.x >=0 && point.z < 0){\n angle = 4 - Math.abs(point.z)/d;\n }\n point.setAngle(angle);\n }\n Collections.sort(points);\n }", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }", "public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }", "public double perimetre()\n\t{\n\t\treturn 2*Math.PI*rayon;\n\t}", "public double SolidAngle() {\n return OCCwrapJavaJNI.Units_Dimensions_SolidAngle(swigCPtr, this);\n }", "double angMomentum();", "private void setDegreeNum(double deg) {\r\n degreeNum = deg % 360.0;\r\n }", "private double degToRadian(double angle)\n\t{\n\t\treturn angle/180*Math.PI;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "void setAngle(int id, double value);", "public void resetAngle() {\n\t\t//this.angle = (this.orientation % 4 + 4) * (90);\n\t\tthis.angle = this.orientation * 90*-1;\n\t\tthis.tweenAngle.setCurrentValue(this.angle);\n\t\tthis.tweenAngle.setTargetValue(this.angle);\n\t}", "public double getCircunference(){\n return 2.0 * radius * Math.PI; \n }", "int getEndRotationDegree();" ]
[ "0.68813044", "0.68813044", "0.6834974", "0.67553496", "0.66698384", "0.66294956", "0.65839744", "0.65351105", "0.6532053", "0.6521067", "0.65026784", "0.650212", "0.6486307", "0.64762324", "0.64713377", "0.6450497", "0.63961464", "0.6372737", "0.6332704", "0.6323202", "0.6313919", "0.62974685", "0.62860376", "0.62794125", "0.6275553", "0.62707675", "0.6264504", "0.62537855", "0.6250099", "0.624961", "0.6233816", "0.6224606", "0.6219148", "0.6211796", "0.6210183", "0.61990666", "0.61962324", "0.6189322", "0.6187759", "0.6178848", "0.61769694", "0.6167769", "0.6162753", "0.6147366", "0.61395204", "0.61193794", "0.61171734", "0.6110282", "0.61080843", "0.60996807", "0.60778785", "0.60778785", "0.6076697", "0.60752636", "0.6074483", "0.6072095", "0.60719573", "0.60472804", "0.60425776", "0.6023649", "0.60213804", "0.6008368", "0.5986683", "0.59861326", "0.59793526", "0.5978116", "0.59674287", "0.5964137", "0.5955522", "0.5948735", "0.59464854", "0.59439296", "0.5942041", "0.59406376", "0.59377915", "0.59309703", "0.59264445", "0.5918682", "0.59182215", "0.5893867", "0.5890377", "0.58796483", "0.58757246", "0.58745766", "0.5865562", "0.5864096", "0.5857428", "0.58421856", "0.5841656", "0.58376056", "0.58329767", "0.5829325", "0.5825874", "0.5825328", "0.5823309", "0.5822354", "0.5822354", "0.5805952", "0.58057755", "0.58047605", "0.58015203" ]
0.0
-1
set of minimal required properties from both record types, aprun and apsys Don't include the batch ids as testing apruns not run from batch won't complete
@Override public boolean isComplete(ExpressionTargetContainer record) { PropertyTag<?>[] attrs = {APRUN_TAG, APSYS_TAG, ALPS_ID, SUBMISSION_TIMESTAMP, APRUN_START_TIMESTAMP, APSYS_END_TIMESTAMP, CWD, APRUN_CMD_STRING}; return super.isComplete(record, attrs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BatchRecordInfo(BatchRecordInfo source) {\n if (source.RecordId != null) {\n this.RecordId = new Long(source.RecordId);\n }\n if (source.SubDomain != null) {\n this.SubDomain = new String(source.SubDomain);\n }\n if (source.RecordType != null) {\n this.RecordType = new String(source.RecordType);\n }\n if (source.RecordLine != null) {\n this.RecordLine = new String(source.RecordLine);\n }\n if (source.Value != null) {\n this.Value = new String(source.Value);\n }\n if (source.TTL != null) {\n this.TTL = new Long(source.TTL);\n }\n if (source.Status != null) {\n this.Status = new String(source.Status);\n }\n if (source.Operation != null) {\n this.Operation = new String(source.Operation);\n }\n if (source.ErrMsg != null) {\n this.ErrMsg = new String(source.ErrMsg);\n }\n if (source.Id != null) {\n this.Id = new Long(source.Id);\n }\n if (source.Enabled != null) {\n this.Enabled = new Long(source.Enabled);\n }\n if (source.MX != null) {\n this.MX = new Long(source.MX);\n }\n if (source.Weight != null) {\n this.Weight = new Long(source.Weight);\n }\n if (source.Remark != null) {\n this.Remark = new String(source.Remark);\n }\n }", "public RecordSet loadAllProcessingDetail(Record inputRecord);", "protected static void initPropertyKey() {\n String path = URL_PREFIX + SCHEMA_PKS;\n\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"name\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"age\\\",\\n\"\n + \"\\\"data_type\\\": \\\"INT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"city\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"lang\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"date\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"price\\\",\\n\"\n + \"\\\"data_type\\\": \\\"INT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"weight\\\",\\n\"\n + \"\\\"data_type\\\": \\\"DOUBLE\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n }", "private void getJobDetailAttributes(HashMap<String, JobParameter> attributes) {\n String dataType = \"String\";\n // Override Parameters with user input parameter\n for(OptionalParams params:OptionalParams.values()){\n String value = inputParams.getProperty(params.name());\n JobParameter parameter = null;\n if(inputParams.containsKey(params.name()) && value!=null && !value.isEmpty()){\n value = value.trim();\n switch (params) {\n case TARGET_SHARED_IDSTORE_SEARCHBASE:\n parameter = createJobParameter(Constants.RECON_SEARCH_BASE, value,dataType);\n attributes.put(Constants.RECON_SEARCH_BASE, parameter);\n break;\n case RECON_SEARCH_FILTER:\n parameter = createJobParameter(Constants.RECON_SEARCH_FILTER, value,dataType);\n attributes.put(Constants.RECON_SEARCH_FILTER, parameter);\n break;\n case BATCHSIZE:\n parameter = getBatchSize(value);\n attributes.put(Constants.BATCH_SIZE_ATTR, parameter);\n break;\n case RECON_PARTIAL_TRIGGER:\n if(value.isEmpty() || value.equalsIgnoreCase(\"ALL\")){\n for(String key:partialTriggerOptionMap.keySet()){\n parameter = createJobParameter(partialTriggerOptionMap.get(key), null,\"Boolean\");\n\t\t\t\t parameter.setValue(new Boolean(\"true\"));\n attributes.put(partialTriggerOptionMap.get(key),parameter);\n }\n }else{\n // Parse all configured atomic reconciliation to be executed\n StringTokenizer tokens = new StringTokenizer(value,Constants.TOKEN_SEPARATOR);\n Set<String> atomicRecons = new HashSet<String>();\n while(tokens.hasMoreTokens()){\n atomicRecons.add(tokens.nextToken());\n }\n // Set atomic reconciliation job parameters\n for(String key:partialTriggerOptionMap.keySet()){\n String paramValue = atomicRecons.contains(key) ? \"true\" : \"false\";\n parameter = createJobParameter(partialTriggerOptionMap.get(key), null,\"Boolean\");\n\t\t\t\t parameter.setValue(new Boolean(paramValue));\n attributes.put(partialTriggerOptionMap.get(key),parameter);\n }\n }\n break;\n default:\n break;\n }\n }\n }\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "@Before\n\tpublic void setBatchInfo() {\n\t\t\n\t\tthis.caliberBatch = batchDao.findOneWithDroppedTrainees(2201);\n\t\tthis.caliberBatch.setTrainees(caliberTrainees);\n\t\tlog.debug(\"CaliberBatch: \"+ caliberBatch.getResourceId());\n\t\t\n\t\tthis.salesforceTrainer.setName(\"Tom Riddle\");\n\t\tthis.salesforceTrainer.setEmail(\"[email protected]\");\n\t\tthis.salesforceTrainer.setTitle(\"Trainer\");\n\t\tthis.salesforceTrainer.setTier(TrainerRole.ROLE_TRAINER);\n\t\t\n\t\tthis.salesforceBatch.setResourceId(\"TWO\");\n\t\tthis.salesforceBatch.setTrainer(salesforceTrainer);\n\t\tthis.salesforceBatch.setTrainingName(caliberBatch.getTrainingName());\n\t\tthis.salesforceBatch.setLocation(caliberBatch.getLocation());\n\t\tthis.salesforceBatch.setWeeks(caliberBatch.getWeeks());\n\t\tthis.salesforceBatch.setSkillType(caliberBatch.getSkillType());\n\t\tthis.salesforceBatch.setTrainees(caliberBatch.getTrainees());\n\t\tthis.salesforceBatch.setAddress(caliberBatch.getAddress());\n\t\tthis.salesforceBatch.setEndDate(caliberBatch.getEndDate());\n\t\tthis.salesforceBatch.setStartDate(caliberBatch.getStartDate());\n\t\tthis.salesforceBatch.setBatchId(caliberBatch.getBatchId());\n\t\tthis.salesforceBatch.setTrainees(salesforceTrainees);\n\t}", "private void validateBeforeMerge()\n {\n Assert.assertTrue(!isProductInfo() || type == TTransactionType.simple);\n }", "private void fillMandatoryFields() {\n\n }", "private static void setupRecords(String[] arr, AllDataRecords rec) {\r\n\t\t\r\n\t\tif(!arr[0].equals(\"\")) rec.setCpscCase(Integer.parseInt(arr[0]));\r\n\t\telse rec.setCpscCase(-1);\r\n\t\trec.setTrmt_date(arr[1]);\r\n\t\tif(!arr[2].equals(\"\")) rec.setPsu(Integer.parseInt(arr[2]));\r\n\t\telse rec.setPsu(-1);\r\n\t\tif(!arr[3].equals(\"\")) rec.setWeight(Double.parseDouble(arr[3]));\r\n\t\telse rec.setWeight(-1);\r\n\t\trec.setStratum(arr[4]);\r\n\t\tif(!arr[5].equals(\"\")) rec.setAge(Integer.parseInt(arr[5]));\r\n\t\telse rec.setAge(-1);\r\n\t\tif(!arr[6].equals(\"\")) rec.setSex(Integer.parseInt(arr[6]));\r\n\t\telse rec.setSex(-1);\r\n\t\tif(!arr[7].equals(\"\")) rec.setRace(Integer.parseInt(arr[7]));\r\n\t\telse rec.setRace(-1);\r\n\t\trec.setRace_other(arr[8]);\r\n\t\tif(!arr[9].equals(\"\")) rec.setDiag(Integer.parseInt(arr[9]));\r\n\t\telse rec.setDiag(-1);\r\n\t\trec.setDiag_other(arr[10]);\r\n\t\tif(!arr[11].equals(\"\")) rec.setBody_part(Integer.parseInt(arr[11]));\r\n\t\telse rec.setBody_part(-1);\r\n\t\tif(!arr[12].equals(\"\")) rec.setDisposition(Integer.parseInt(arr[12]));\r\n\t\telse rec.setDisposition(-1);\r\n\t\tif(!arr[13].equals(\"\")) rec.setLocation(Integer.parseInt(arr[13]));\r\n\t\telse rec.setLocation(-1);\r\n\t\tif(!arr[14].equals(\"\")) rec.setFmv(Integer.parseInt(arr[14]));\r\n\t\telse rec.setFmv(-1);\r\n\t\tif(!arr[15].equals(\"\")) rec.setProd1(Integer.parseInt(arr[15]));\r\n\t\telse rec.setProd1(-1);\r\n\t\tif(!arr[16].equals(\"\")) rec.setProd2(Integer.parseInt(arr[16]));\r\n\t\telse rec.setProd2(-1);\r\n\t\trec.setNarr1(arr[17]);\r\n\t\trec.setNarr2(arr[18]);\r\n\t}", "private synchronized void initializeAttributeSets(Doc paramDoc, PrintRequestAttributeSet paramPrintRequestAttributeSet)\n/* */ {\n/* 420 */ this.reqAttrSet = new HashPrintRequestAttributeSet();\n/* 421 */ this.jobAttrSet = new HashPrintJobAttributeSet();\n/* */ \n/* */ Attribute[] arrayOfAttribute;\n/* 424 */ if (paramPrintRequestAttributeSet != null) {\n/* 425 */ this.reqAttrSet.addAll(paramPrintRequestAttributeSet);\n/* 426 */ arrayOfAttribute = paramPrintRequestAttributeSet.toArray();\n/* 427 */ for (int i = 0; i < arrayOfAttribute.length; i++) {\n/* 428 */ if ((arrayOfAttribute[i] instanceof PrintJobAttribute)) {\n/* 429 */ this.jobAttrSet.add(arrayOfAttribute[i]);\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 434 */ DocAttributeSet localDocAttributeSet = paramDoc.getAttributes();\n/* 435 */ if (localDocAttributeSet != null) {\n/* 436 */ arrayOfAttribute = localDocAttributeSet.toArray();\n/* 437 */ for (int j = 0; j < arrayOfAttribute.length; j++) {\n/* 438 */ if ((arrayOfAttribute[j] instanceof PrintRequestAttribute)) {\n/* 439 */ this.reqAttrSet.add(arrayOfAttribute[j]);\n/* */ }\n/* 441 */ if ((arrayOfAttribute[j] instanceof PrintJobAttribute)) {\n/* 442 */ this.jobAttrSet.add(arrayOfAttribute[j]);\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 448 */ String str = \"\";\n/* */ try {\n/* 450 */ str = System.getProperty(\"user.name\");\n/* */ }\n/* */ catch (SecurityException localSecurityException) {}\n/* */ Object localObject1;\n/* 454 */ if ((str == null) || (str.equals(\"\")))\n/* */ {\n/* 456 */ localObject1 = (RequestingUserName)paramPrintRequestAttributeSet.get(RequestingUserName.class);\n/* 457 */ if (localObject1 != null) {\n/* 458 */ this.jobAttrSet.add(new JobOriginatingUserName(((RequestingUserName)localObject1)\n/* 459 */ .getValue(), ((RequestingUserName)localObject1)\n/* 460 */ .getLocale()));\n/* */ } else {\n/* 462 */ this.jobAttrSet.add(new JobOriginatingUserName(\"\", null));\n/* */ }\n/* */ } else {\n/* 465 */ this.jobAttrSet.add(new JobOriginatingUserName(str, null));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 470 */ if (this.jobAttrSet.get(JobName.class) == null) {\n/* */ Object localObject2;\n/* 472 */ if ((localDocAttributeSet != null) && (localDocAttributeSet.get(DocumentName.class) != null))\n/* */ {\n/* 474 */ localObject2 = (DocumentName)localDocAttributeSet.get(DocumentName.class);\n/* 475 */ localObject1 = new JobName(((DocumentName)localObject2).getValue(), ((DocumentName)localObject2).getLocale());\n/* 476 */ this.jobAttrSet.add((Attribute)localObject1);\n/* */ } else {\n/* 478 */ localObject2 = \"JPS Job:\" + paramDoc;\n/* */ try {\n/* 480 */ Object localObject3 = paramDoc.getPrintData();\n/* 481 */ if ((localObject3 instanceof URL)) {\n/* 482 */ localObject2 = ((URL)paramDoc.getPrintData()).toString();\n/* */ }\n/* */ }\n/* */ catch (IOException localIOException) {}\n/* 486 */ localObject1 = new JobName((String)localObject2, null);\n/* 487 */ this.jobAttrSet.add((Attribute)localObject1);\n/* */ }\n/* */ }\n/* */ \n/* 491 */ this.jobAttrSet = AttributeSetUtilities.unmodifiableView(this.jobAttrSet);\n/* */ }", "@TestProperties(name = \"test the parameters sorting\")\n\tpublic void testEmptyInclude(){\n\t}", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }", "protected abstract boolean populateAttributes();", "public abstract boolean promulgationDataDefined();", "public void validateAttributes() {\n if ((totalNumBuckets <= 0)) {\n throw new IllegalStateException(\n String.format(\n \"TotalNumBuckets %s is an illegal value, please choose a value greater than 0\",\n totalNumBuckets));\n }\n if ((redundancy < 0) || (redundancy >= 4)) {\n throw new IllegalStateException(\n String.format(\n \"RedundantCopies %s is an illegal value, please choose a value between 0 and 3\",\n redundancy));\n }\n for (final Object value : getLocalProperties().keySet()) {\n String propName = (String) value;\n if (!PartitionAttributesFactory.LOCAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown local property: '%s'\",\n propName));\n }\n }\n for (final Object o : getGlobalProperties().keySet()) {\n String propName = (String) o;\n if (!PartitionAttributesFactory.GLOBAL_MAX_BUCKETS_PROPERTY.equals(propName)\n && !PartitionAttributesFactory.GLOBAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown global property: '%s'\",\n propName));\n }\n }\n if (recoveryDelay < -1) {\n throw new IllegalStateException(\"RecoveryDelay \" + recoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (startupRecoveryDelay < -1) {\n throw new IllegalStateException(\"StartupRecoveryDelay \" + startupRecoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (fixedPAttrs != null) {\n List<FixedPartitionAttributesImpl> duplicateFPAattrsList =\n new ArrayList<>();\n Set<FixedPartitionAttributes> fpAttrsSet = new HashSet<>();\n for (FixedPartitionAttributesImpl fpa : fixedPAttrs) {\n if (fpa == null || fpa.getPartitionName() == null) {\n throw new IllegalStateException(\n \"Fixed partition name cannot be null\");\n }\n if (fpAttrsSet.contains(fpa)) {\n duplicateFPAattrsList.add(fpa);\n } else {\n fpAttrsSet.add(fpa);\n }\n }\n if (duplicateFPAattrsList.size() != 0) {\n throw new IllegalStateException(\n String.format(\"Partition name %s can be added only once in FixedPartitionAttributes\",\n duplicateFPAattrsList));\n }\n }\n }", "@Test\n public void gettersAndSettersShouldWorkForEachProperty() {\n assertThat(AssignForceBatch.class, hasValidGettersAndSetters());\n }", "public void setProperties(Properties p)\n/* */ {\n/* 121 */ String s = null;\n/* 122 */ if ((s = (String)p.remove(\"reads\")) != null)\n/* */ {\n/* */ try\n/* */ {\n/* */ \n/* 127 */ this.reads = Long.parseLong(s);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* 133 */ if ((s = (String)p.remove(\"avgUsers\")) != null)\n/* */ {\n/* */ try\n/* */ {\n/* 137 */ this.avgUsers = Integer.parseInt(s);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* 143 */ if ((s = (String)p.remove(\"blockSize\")) != null)\n/* */ {\n/* */ try\n/* */ {\n/* 147 */ this.blockSize = Integer.parseInt(s);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* 153 */ if ((s = (String)p.remove(\"avgExecs\")) != null)\n/* */ {\n/* */ try\n/* */ {\n/* 157 */ this.avgExecs = Integer.parseInt(s);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* 163 */ if ((s = (String)p.remove(\"writes\")) != null)\n/* */ {\n/* */ try\n/* */ {\n/* */ \n/* 168 */ this.writes = Long.parseLong(s);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* 174 */ if ((s = (String)p.remove(\"dbsize\")) != null)\n/* */ {\n/* */ try\n/* */ {\n/* 178 */ this.dbsize = Long.parseLong(s);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* 184 */ super.setProperties(p);\n/* */ }", "public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}", "RecordSet loadAllPendPriorActComp(Record record, RecordLoadProcessor recordLoadProcessor);", "public void testXmlDifferentUpdateProperties() {\r\n \r\n @SuppressWarnings(\"unused\")\r\n GrouperSession grouperSession = GrouperSession.startRootSession();\r\n \r\n AuditType auditType = null;\r\n AuditType exampleAuditType = null;\r\n\r\n \r\n //TEST UPDATE PROPERTIES\r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n \r\n auditType.setContextId(\"abc\");\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setContextId(exampleAuditType.getContextId());\r\n auditType.xmlSaveUpdateProperties();\r\n\r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setCreatedOnDb(99L);\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setCreatedOnDb(exampleAuditType.getCreatedOnDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLastUpdatedDb(99L);\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLastUpdatedDb(exampleAuditType.getLastUpdatedDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setHibernateVersionNumber(99L);\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertTrue(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setHibernateVersionNumber(exampleAuditType.getHibernateVersionNumber());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n }\r\n //TEST BUSINESS PROPERTIES\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setActionName(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setActionName(exampleAuditType.getActionName());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setAuditCategory(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setAuditCategory(exampleAuditType.getAuditCategory());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setAuditCategory(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setAuditCategory(exampleAuditType.getAuditCategory());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setId(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setId(exampleAuditType.getId());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt01(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt01(exampleAuditType.getLabelInt01());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt02(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt02(exampleAuditType.getLabelInt02());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt03(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt03(exampleAuditType.getLabelInt03());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt04(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt04(exampleAuditType.getLabelInt04());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelInt05(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelInt05(exampleAuditType.getLabelInt05());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString01(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString01(exampleAuditType.getLabelString01());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString02(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString02(exampleAuditType.getLabelString02());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString03(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString03(exampleAuditType.getLabelString03());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString04(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString04(exampleAuditType.getLabelString04());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString05(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString05(exampleAuditType.getLabelString05());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString06(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString06(exampleAuditType.getLabelString06());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString07(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString07(exampleAuditType.getLabelString07());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n {\r\n auditType = exampleAuditTypeDb();\r\n exampleAuditType = exampleRetrieveAuditTypeDb();\r\n\r\n auditType.setLabelString08(\"abc\");\r\n \r\n assertTrue(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n\r\n auditType.setLabelString08(exampleAuditType.getLabelString08());\r\n auditType.xmlSaveBusinessProperties(exampleRetrieveAuditTypeDb());\r\n auditType.xmlSaveUpdateProperties();\r\n \r\n auditType = exampleRetrieveAuditTypeDb();\r\n \r\n assertFalse(auditType.xmlDifferentBusinessProperties(exampleAuditType));\r\n assertFalse(auditType.xmlDifferentUpdateProperties(exampleAuditType));\r\n \r\n }\r\n \r\n }", "protected void initSpecSpecificConditions() {\r\n // THESE ARE ALL FOR MAF SPEC 1.0 ONLY\r\n\r\n //If variant_Type is \"ins\" Reference_Allele should always be \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"[^\\\\-]\"), \"contain anything but '-' characters\", true));\r\n // and either of Tumor_Seq_Allele1 and Tumor_Seq_Allele2 should have \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n //If variant_Type is \"del\", then Reference_Allele can't contain \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"-\"), \"contain any '-' characters\", true));\r\n // and either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should contain \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n\r\n //If validation_status is \"wildtype\", then Tumor_Seq_Allele1=Tumor_Seq_Allele2\r\n //and Tumor_Seq_Allele1=Reference_Allele)\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, false));\r\n\r\n // if mutation_status is germline, tumor_seql_allele1 must be equal to match_norm_seq_allele1\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE1,\r\n FIELD_MATCH_NORM_SEQ_ALLELE1, false));\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE2,\r\n FIELD_MATCH_NORM_SEQ_ALLELE2, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele1 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele2 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE2,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should NOT match Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true), // not\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true))); // not\r\n\r\n //If Mutation_Status == LOH AND Validation_Status==Unknown, then\r\n //Tumor_Seq_Allele1 == Tumor_Seq_Allele2 and\r\n //Match_Norm_Seq_Allele1 != Match_Norm_Seq_Allele2 and\r\n //Tumor_Seq_Allele1 = (Match_Norm_Seq_Allele1 or Match_Norm_Seq_Allele2)\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_MATCH_NORM_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, false)));\r\n //If Mutation_Status == LOH AND Validation_Status==Valid, then\r\n //Tumor_Validation_Allele1 == Tumor_Validation_Allele2 and\r\n //Match_Norm_Validation_Allele1 != Match_Norm_Validation_Allele2 and\r\n //Tumor_Validation_Allele1 == (Match_Norm_Validation_Allele1 or Match_Norm_Validation_Allele2).\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_TUMOR_VALIDATION_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, false)));\r\n // Tumor_Seq_Allele1 != Reference_Allele OR Tumor_Seq_Allele2 != Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true),\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true)));\r\n\r\n }", "@Override\n protected List<Map<String, Object>> getInputRecords() {\n Map[] simpleStructs = new Map[]{\n null, createStructInput(\"structString\", \"abc\", \"structLong\", 1000L, \"structDouble\", 5.99999),\n createStructInput(\"structString\", \"def\", \"structLong\", 2000L, \"structDouble\", 6.99999),\n createStructInput(\"structString\", \"ghi\", \"structLong\", 3000L, \"structDouble\", 7.99999)\n };\n\n // complex struct - contains a string and nested struct of int and long\n Map[] complexStructs = new Map[]{\n createStructInput(\"structString\", \"abc\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 4, \"nestedStructLong\", 4000L)),\n createStructInput(\"structString\", \"def\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 5, \"nestedStructLong\", 5000L)), null,\n createStructInput(\"structString\", \"ghi\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 6, \"nestedStructLong\", 6000L))\n };\n\n // complex list element - each element contains a struct of int and double\n List[] complexLists = new List[]{\n Arrays.asList(createStructInput(\"complexListInt\", 10, \"complexListDouble\", 100.0),\n createStructInput(\"complexListInt\", 20, \"complexListDouble\", 200.0)), null,\n Collections.singletonList(createStructInput(\"complexListInt\", 30, \"complexListDouble\", 300.0)),\n Arrays.asList(createStructInput(\"complexListInt\", 40, \"complexListDouble\", 400.0),\n createStructInput(\"complexListInt\", 50, \"complexListDouble\", 500.0))\n };\n\n // single value integer\n Integer[] userID = new Integer[]{1, 2, null, 4};\n\n // single value string\n String[] firstName = new String[]{null, \"John\", \"Ringo\", \"George\"};\n\n // collection of integers\n List[] bids = new List[]{Arrays.asList(10, 20), null, Collections.singletonList(1), Arrays.asList(1, 2, 3)};\n\n // single value double\n double[] cost = new double[]{10000, 20000, 30000, 25000};\n\n // single value long\n long[] timestamp = new long[]{1570863600000L, 1571036400000L, 1571900400000L, 1574000000000L};\n\n // simple map with string keys and integer values\n Map[] simpleMaps = new Map[]{\n createStructInput(\"key1\", 10, \"key2\", 20), null, createStructInput(\"key3\", 30),\n createStructInput(\"key4\", 40, \"key5\", 50)\n };\n\n // complex map with struct values - struct contains double and string\n Map[] complexMap = new Map[]{\n createStructInput(\"key1\", createStructInput(\"doubleField\", 2.0, \"stringField\", \"abc\")), null,\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\")),\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\"), \"key3\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"asdf\"))\n };\n\n List<Map<String, Object>> inputRecords = new ArrayList<>(4);\n for (int i = 0; i < 4; i++) {\n Map<String, Object> record = new HashMap<>();\n record.put(\"userID\", userID[i]);\n record.put(\"firstName\", firstName[i]);\n record.put(\"bids\", bids[i]);\n record.put(\"cost\", cost[i]);\n record.put(\"timestamp\", timestamp[i]);\n record.put(\"simpleStruct\", simpleStructs[i]);\n record.put(\"complexStruct\", complexStructs[i]);\n record.put(\"complexList\", complexLists[i]);\n record.put(\"simpleMap\", simpleMaps[i]);\n record.put(\"complexMap\", complexMap[i]);\n\n inputRecords.add(record);\n }\n return inputRecords;\n }", "public String loadAppliedAttributes() throws Exception {\n\t\tactionStartTime = new Date();\n\t\tif (promotionId != null && promotionId > 0) {\n\t\t\ttry {\n\t\t\t\tList<PromotionCustAttrVO> lst = promotionProgramMgr.getListPromotionCustAttrVOAlreadySet(null, promotionId);\n\t\t\t\tCustomerAttribute attribute;\n\t\t\t\tAttributeColumnType attColType;\n\t\t\t\tPromotionCustAttVO2 voTmp;\n\t\t\t\tList<PromotionCustAttVO2> lstTmp = promotionProgramMgr.getListPromotionCustAttVOValue(promotionId);\n\t\t\t\tList<PromotionCustAttVO2> lstTmpDetail = promotionProgramMgr.getListPromotionCustAttVOValueDetail(promotionId);\n\t\t\t\tArrayList<Object> lstData;\n\t\t\t\tList<AttributeDetailVO> lstAttDetail;\n\t\t\t\tAttributeDetailVO voDetail;\n\t\t\t\tint j, sz;\n\t\t\t\tint k, szk;\n\t\t\t\tif (lst != null && lst.size() > 0) {\n\t\t\t\t\tfor (PromotionCustAttrVO vo : lst) {\n\t\t\t\t\t\tif (vo.getObjectType() == AUTO_ATTRIBUTE) {\n\t\t\t\t\t\t\tattribute = customerAttributeMgr.getCustomerAttributeById(vo.getObjectId());\n\t\t\t\t\t\t\tattColType = attribute.getValueType();\n\t\t\t\t\t\t\tvo.setValueType(attColType);//setValueType\n\t\t\t\t\t\t\tif (attColType == AttributeColumnType.CHARACTER || attColType == AttributeColumnType.NUMBER || attColType == AttributeColumnType.DATE_TIME) {\n\t\t\t\t\t\t\t\t//Value cua thuoc tinh dong type (1,2,3)\n\t\t\t\t\t\t\t\tif (lstTmp != null && lstTmp.size() > 0) {\n\t\t\t\t\t\t\t\t\tif (attColType == AttributeColumnType.CHARACTER) {\n\t\t\t\t\t\t\t\t\t\tfor (j = 0, sz = lstTmp.size(); j < sz; j++) {\n\t\t\t\t\t\t\t\t\t\t\tvoTmp = lstTmp.get(j);\n\t\t\t\t\t\t\t\t\t\t\tif (voTmp.getAttributeId().equals(vo.getObjectId())) {\n\t\t\t\t\t\t\t\t\t\t\t\tlstData = new ArrayList<Object>();\n\t\t\t\t\t\t\t\t\t\t\t\tlstData.add(voTmp.getFromValue());\n\t\t\t\t\t\t\t\t\t\t\t\tvo.setListData(lstData);//setListData\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (attColType == AttributeColumnType.NUMBER) {\n\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\tvalueType=2;\n\t\t\t\t\t\t\t\t\t\tfor (j = 0, sz = lstTmp.size(); j < sz; j++) {\n\t\t\t\t\t\t\t\t\t\t\tvoTmp = lstTmp.get(j);\n\t\t\t\t\t\t\t\t\t\t\tif (voTmp.getAttributeId().equals(vo.getObjectId())) {\n\t\t\t\t\t\t\t\t\t\t\t\tlstData = new ArrayList<Object>();\n\t\t\t\t\t\t\t\t\t\t\t\tlstData.add(voTmp.getFromValue());\n\t\t\t\t\t\t\t\t\t\t\t\tlstData.add(voTmp.getToValue());\n\t\t\t\t\t\t\t\t\t\t\t\tvo.setListData(lstData);//setListData\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (attColType == AttributeColumnType.DATE_TIME) {\n\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\tvalueType=3;\n\t\t\t\t\t\t\t\t\t\tfor (j = 0, sz = lstTmp.size(); j < sz; j++) {\n\t\t\t\t\t\t\t\t\t\t\tvoTmp = lstTmp.get(j);\n\t\t\t\t\t\t\t\t\t\t\tif (voTmp.getAttributeId().equals(vo.getObjectId())) {\n\t\t\t\t\t\t\t\t\t\t\t\tlstData = new ArrayList<Object>();\n\t\t\t\t\t\t\t\t\t\t\t\tlstData.add(DateUtil.convertFormatStrFromAtt(voTmp.getFromValue()));\n\t\t\t\t\t\t\t\t\t\t\t\tlstData.add(DateUtil.convertFormatStrFromAtt(voTmp.getToValue()));\n\t\t\t\t\t\t\t\t\t\t\t\tvo.setListData(lstData);//setListData\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (attColType == AttributeColumnType.CHOICE || attColType == AttributeColumnType.MULTI_CHOICE) {\n\t\t\t\t\t\t\t\t//Value cua thuoc tinh dong type (4,5)\n\t\t\t\t\t\t\t\tif (lstTmpDetail != null && lstTmpDetail.size() > 0) {\n\t\t\t\t\t\t\t\t\tlstAttDetail = null;\n\t\t\t\t\t\t\t\t\tfor (j = 0, sz = lstTmpDetail.size(); j < sz; j++) {\n\t\t\t\t\t\t\t\t\t\tvoTmp = lstTmpDetail.get(j);\n\t\t\t\t\t\t\t\t\t\tif (voTmp.getAttributeId().equals(attribute.getId())) {\n\t\t\t\t\t\t\t\t\t\t\tif (lstAttDetail == null) {\n\t\t\t\t\t\t\t\t\t\t\t\tlstAttDetail = promotionProgramMgr.getListPromotionCustAttVOCanBeSet(attribute.getId());\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif (lstAttDetail != null && lstAttDetail.size() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tfor (k = 0, szk = lstAttDetail.size(); k < szk; k++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvoDetail = lstAttDetail.get(k);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (voDetail.getEnumId().equals(voTmp.getAttributeEnumId())) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvoDetail.setChecked(true);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tvo.setListData(lstAttDetail);//setListData\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (vo.getObjectType() == CUSTOMER_TYPE) {\n\t\t\t\t\t\t\tList<ChannelTypeVO> listChannelTypeVO = promotionProgramMgr.getListChannelTypeVO();\n\t\t\t\t\t\t\tList<ChannelTypeVO> listSelectedChannelTypeVO = promotionProgramMgr.getListChannelTypeVOAlreadySet(null, promotionId);\n\t\t\t\t\t\t\tif (listChannelTypeVO != null && listChannelTypeVO.size() > 0 && listSelectedChannelTypeVO != null && listSelectedChannelTypeVO.size() > 0) {\n\t\t\t\t\t\t\t\tfor (ChannelTypeVO channelTypeVO : listChannelTypeVO) {\n\t\t\t\t\t\t\t\t\tfor (ChannelTypeVO channelTypeVO1 : listSelectedChannelTypeVO) {\n\t\t\t\t\t\t\t\t\t\tif (channelTypeVO1.getIdChannelType().equals(channelTypeVO.getIdChannelType())) {\n\t\t\t\t\t\t\t\t\t\t\tchannelTypeVO.setChecked(true);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvo.setListData(listChannelTypeVO);//setListData\n\t\t\t\t\t\t} else if (vo.getObjectType() == SALE_LEVEL) {\n\t\t\t\t\t\t\tList<SaleCatLevelVO> listSelectedSaleCatLevelVO = promotionProgramMgr.getListSaleCatLevelVOByIdProAlreadySetSO(null, promotionId);\n\t\t\t\t\t\t\tvo.setListData(listSelectedSaleCatLevelVO);\n\t\t\t\t\t\t\tList<ProductInfoVO> listProductInfoVO = promotionProgramMgr.getListProductInfoVO();\n\t\t\t\t\t\t\tif (listProductInfoVO != null && listProductInfoVO.size() > 0) {\n\t\t\t\t\t\t\t\tfor (ProductInfoVO productInfoVO : listProductInfoVO) {\n\t\t\t\t\t\t\t\t\tList<SaleCatLevelVO> listSaleCatLevelVO = promotionProgramMgr.getListSaleCatLevelVOByIdPro(productInfoVO.getIdProductInfoVO());\n\t\t\t\t\t\t\t\t\tproductInfoVO.setListSaleCatLevelVO(listSaleCatLevelVO);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvo.setListProductInfoVO(listProductInfoVO);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tvo.setListProductInfoVO(new ArrayList<ProductInfoVO>());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tresult.put(\"list\", lst);//Neu ko co list de put thi nho new 1 arrayList roi put a.\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.loadAppliedAttributes\"), createLogErrorStandard(actionStartTime));\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t}\n\t\treturn JSON;\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "public Properties getStatusForMgs(List listOfResourceIDs, List listOfAttributeIDs)\n/* */ {\n/* 2183 */ return FaultUtil.getStatus(listOfResourceIDs, listOfAttributeIDs);\n/* */ }", "public ProAddAttrRecord() {\n super(ProAddAttr.PRO_ADD_ATTR);\n }", "private void generalizeCSARequirements(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Requirement> reqs = new ArrayList<Requirement>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\treqs = this.data.getRequirements();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Requirement r : reqs){\n\t\t\t\tRequirement temp = new Requirement();\n\t\t\t\ttry {\n\t\t\t\t\tBeanUtils.copyProperties(temp, r);\n\t\t\t\t\t//System.out.println(r.toString());\n\t\t\t\t\t//System.out.println(temp.toString());\n\t\t\t\t\tc.addReq(temp);\n\t\t\t\t} catch (IllegalAccessException | InvocationTargetException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "RecordPropertyType createRecordPropertyType();", "@Test\n public void testOmittedValues() {\n TupleMetadata schema = new SchemaBuilder()\n .add(\"id\", MinorType.INT)\n .addMapArray(\"m\")\n .addNullable(\"a\", MinorType.INT)\n .addNullable(\"b\", MinorType.VARCHAR)\n .resumeSchema()\n .buildSchema();\n ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder()\n .readerSchema(schema)\n .rowCountLimit(ValueVector.MAX_ROW_COUNT)\n .build();\n ResultSetLoader rsLoader = new ResultSetLoaderImpl(fixture.allocator(), options);\n RowSetLoader rootWriter = rsLoader.writer();\n\n int mapSkip = 5;\n int entrySkip = 3;\n int rowCount = 1000;\n int entryCount = 10;\n\n rsLoader.startBatch();\n ArrayWriter maWriter = rootWriter.array(\"m\");\n TupleWriter mWriter = maWriter.tuple();\n for (int i = 0; i < rowCount; i++) {\n rootWriter.start();\n rootWriter.scalar(0).setInt(i);\n if (i % mapSkip != 0) {\n for (int j = 0; j < entryCount; j++) {\n if (j % entrySkip != 0) {\n mWriter.scalar(0).setInt(i * entryCount + j);\n mWriter.scalar(1).setString(\"b-\" + i + \".\" + j);\n }\n maWriter.save();\n }\n }\n rootWriter.save();\n }\n\n RowSet result = fixture.wrap(rsLoader.harvest());\n assertEquals(rowCount, result.rowCount());\n RowSetReader reader = result.reader();\n ArrayReader maReader = reader.array(\"m\");\n TupleReader mReader = maReader.tuple();\n for (int i = 0; i < rowCount; i++) {\n assertTrue(reader.next());\n assertEquals(i, reader.scalar(0).getInt());\n if (i % mapSkip == 0) {\n assertEquals(0, maReader.size());\n continue;\n }\n assertEquals(entryCount, maReader.size());\n for (int j = 0; j < entryCount; j++) {\n assertTrue(maReader.next());\n if (j % entrySkip == 0) {\n assertTrue(mReader.scalar(0).isNull());\n assertTrue(mReader.scalar(1).isNull());\n } else {\n assertFalse(mReader.scalar(0).isNull());\n assertFalse(mReader.scalar(1).isNull());\n assertEquals(i * entryCount + j, mReader.scalar(0).getInt());\n assertEquals(\"b-\" + i + \".\" + j, mReader.scalar(1).getString());\n }\n }\n }\n result.clear();\n rsLoader.close();\n }", "public void testSetAllFields_Behavior(String profileConf,String behaviorOfMandatory,String behaviorOfOptional) throws Exception{\r\n ProfileManagement instProfileManagement = new ProfileManagement(selenium);\r\n String arr[]={\"givenname\",\"lastname\",\"emailaddress\",\"nickname\",\"dob\",\"gender\",\"country\",\"streetaddress\",\"telephone\",\"mobile\",\"locality\",\"postalcode\",\"region\",\"role\",\"title\",\"url\",\"im\",\"organization\",\"otherphone\",\"fullname\",\"stateorprovince\"};\r\n int i=0;\r\n while(i<21){\r\n if((\"http://wso2.org/claims/\"+arr[i]).equals(\"http://wso2.org/claims/givenname\")||(\"http://wso2.org/claims/\"+arr[i]).equals(\"http://wso2.org/claims/lastname\")||(\"http://wso2.org/claims/\"+arr[i]).equals(\"http://wso2.org/claims/emailaddress\"))\r\n instProfileManagement.testUpdateDefaultProfile_Configuration(profileConf,\"http://wso2.org/claims/\"+arr[i],behaviorOfMandatory);\r\n else\r\n instProfileManagement.testUpdateDefaultProfile_Configuration(profileConf,\"http://wso2.org/claims/\"+arr[i],behaviorOfOptional);\r\n\r\n i=i+1;\r\n }\r\n }", "public boolean requiresPropertyOrdering()\n/* */ {\n/* 377 */ return false;\n/* */ }", "public boolean setProperties(Properties props) {\n String str;\n\n super.setProperties(props);\n str=props.getProperty(\"shun\");\n if(str != null) {\n shun=Boolean.valueOf(str).booleanValue();\n props.remove(\"shun\");\n }\n\n str=props.getProperty(\"merge_leader\");\n if(str != null) {\n merge_leader=Boolean.valueOf(str).booleanValue();\n props.remove(\"merge_leader\");\n }\n\n str=props.getProperty(\"print_local_addr\");\n if(str != null) {\n print_local_addr=Boolean.valueOf(str).booleanValue();\n props.remove(\"print_local_addr\");\n }\n\n str=props.getProperty(\"join_timeout\"); // time to wait for JOIN\n if(str != null) {\n join_timeout=Long.parseLong(str);\n props.remove(\"join_timeout\");\n }\n\n str=props.getProperty(\"join_retry_timeout\"); // time to wait between JOINs\n if(str != null) {\n join_retry_timeout=Long.parseLong(str);\n props.remove(\"join_retry_timeout\");\n }\n\n str=props.getProperty(\"leave_timeout\"); // time to wait until coord responds to LEAVE req.\n if(str != null) {\n leave_timeout=Long.parseLong(str);\n props.remove(\"leave_timeout\");\n }\n\n str=props.getProperty(\"merge_timeout\"); // time to wait for MERGE_RSPS from subgroup coordinators\n if(str != null) {\n merge_timeout=Long.parseLong(str);\n props.remove(\"merge_timeout\");\n }\n\n str=props.getProperty(\"digest_timeout\"); // time to wait for GET_DIGEST_OK from PBCAST\n if(str != null) {\n digest_timeout=Long.parseLong(str);\n props.remove(\"digest_timeout\");\n }\n\n str=props.getProperty(\"view_ack_collection_timeout\");\n if(str != null) {\n view_ack_collection_timeout=Long.parseLong(str);\n props.remove(\"view_ack_collection_timeout\");\n }\n\n str=props.getProperty(\"resume_task_timeout\");\n if(str != null) {\n resume_task_timeout=Long.parseLong(str);\n props.remove(\"resume_task_timeout\");\n }\n\n str=props.getProperty(\"disable_initial_coord\");\n if(str != null) {\n disable_initial_coord=Boolean.valueOf(str).booleanValue();\n props.remove(\"disable_initial_coord\");\n }\n\n str=props.getProperty(\"handle_concurrent_startup\");\n if(str != null) {\n handle_concurrent_startup=Boolean.valueOf(str).booleanValue();\n props.remove(\"handle_concurrent_startup\");\n }\n\n str=props.getProperty(\"num_prev_mbrs\");\n if(str != null) {\n num_prev_mbrs=Integer.parseInt(str);\n props.remove(\"num_prev_mbrs\");\n }\n\n if(props.size() > 0) {\n log.error(\"GMS.setProperties(): the following properties are not recognized: \" + props);\n\n return false;\n }\n return true;\n }", "void insertBatch(List<InspectionAgency> recordLst);", "private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void checkRequiredProperties()\n\t{\n\t\tfor (ServerProperty prop : ServerProperty.values())\n\t\t{\n\t\t\tif (prop.isRequired())\n\t\t\t{\n\t\t\t\t// TODO\n//\t\t\t\tswitch (prop)\n//\t\t\t\t{\n//\t\t\t\t\tcase GERMINATE_AVAILABLE_PAGES:\n//\t\t\t\t\t\tSet<Page> availablePages = getSet(prop, Page.class);\n//\t\t\t\t\t\tif (CollectionUtils.isEmpty(availablePages))\n//\t\t\t\t\t\t\tthrowException(prop);\n//\t\t\t\t\t\tbreak;\n//\n//\t\t\t\t\tcase GERMINATE_USE_AUTHENTICATION:\n//\t\t\t\t\t\tboolean useAuthentication = getBoolean(prop);\n//\t\t\t\t\t\tif (useAuthentication)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tif (StringUtils.isEmpty(get(ServerProperty.GERMINATE_GATEKEEPER_SERVER)))\n//\t\t\t\t\t\t\t\tthrowException(ServerProperty.GERMINATE_GATEKEEPER_SERVER);\n//\t\t\t\t\t\t\tif (StringUtils.isEmpty(get(ServerProperty.GERMINATE_GATEKEEPER_NAME)))\n//\t\t\t\t\t\t\t\tthrowException(ServerProperty.GERMINATE_GATEKEEPER_NAME);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tbreak;\n//\n//\t\t\t\t\tcase GERMINATE_GATEKEEPER_REGISTRATION_ENABLED:\n//\t\t\t\t\t\tboolean registrationNeedsGatekeeper = getBoolean(prop);\n//\n//\t\t\t\t\t\tif (registrationNeedsGatekeeper)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tString gatekeeperUrl = get(ServerProperty.GERMINATE_GATEKEEPER_URL);\n//\n//\t\t\t\t\t\t\tif (StringUtils.isEmpty(gatekeeperUrl))\n//\t\t\t\t\t\t\t\tthrowException(ServerProperty.GERMINATE_GATEKEEPER_URL);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tbreak;\n//\n//\t\t\t\t\tdefault:\n\t\t\t\tif (StringUtils.isEmpty(get(prop)))\n\t\t\t\t\tthrowException(prop);\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }", "protected void perRecordInit(Record record)\n {\n }", "private void populateCommonProperties(ExchangeBaseRequest exchangeBaseRequest, RequestType rt, String user, String fr) {\n String ad = rt.getAD();\n VerbosityType vb = rt.getVB();\n exchangeBaseRequest.setUsername(user);\n exchangeBaseRequest.setFluxDataFlow(rt.getDF());\n exchangeBaseRequest.setDf(rt.getDF());\n exchangeBaseRequest.setDate(new Date());\n exchangeBaseRequest.setPluginType(PluginType.FLUX);\n exchangeBaseRequest.setSenderOrReceiver(fr);\n exchangeBaseRequest.setOnValue(rt.getON());\n exchangeBaseRequest.setTo(rt.getTO() != null ? rt.getTO().toString() : null);\n exchangeBaseRequest.setTodt(rt.getTODT() != null ? rt.getTODT().toString() : null);\n exchangeBaseRequest.setAd(ad);\n }", "private void checkMappedBy(DeployBeanInfo<?> info, List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck) {\n for (DeployBeanPropertyAssocOne<?> oneProp : info.getDescriptor().propertiesAssocOne()) {\n if (!oneProp.isTransient()) {\n if (oneProp.getMappedBy() != null) {\n checkMappedByOneToOne(oneProp);\n } else if (oneProp.isPrimaryKeyJoin()) {\n primaryKeyJoinCheck.add(oneProp);\n }\n }\n }\n\n for (DeployBeanPropertyAssocMany<?> manyProp : info.getDescriptor().propertiesAssocMany()) {\n if (!manyProp.isTransient()) {\n if (manyProp.isManyToMany()) {\n checkMappedByManyToMany(manyProp);\n } else {\n checkMappedByOneToMany(info, manyProp);\n }\n }\n }\n }", "public static Map<String, Property> getDefaultMapping() {\n\t\tMap<String, Property> props = new HashMap<String, Property>();\n\t\tprops.put(\"nstd\", Property.of(p -> p.nested(n -> n.enabled(true))));\n\t\tprops.put(\"properties\", Property.of(p -> {\n\t\t\t\tif (nestedMode()) {\n\t\t\t\t\tp.nested(n -> n.enabled(true));\n\t\t\t\t} else {\n\t\t\t\t\tp.object(n -> n.enabled(true));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t}\n\t\t));\n\t\tprops.put(\"latlng\", Property.of(p -> p.geoPoint(n -> n.nullValue(v -> v.text(\"0,0\")))));\n\t\tprops.put(\"_docid\", Property.of(p -> p.long_(n -> n.index(false))));\n\t\tprops.put(\"updated\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\t\tprops.put(\"timestamp\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\n\t\tprops.put(\"tag\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"id\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"key\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"name\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"type\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"tags\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"token\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"email\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"appid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"groups\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"password\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"parentid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"creatorid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"identifier\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\treturn props;\n\t}", "@Test\n public void writeMultipleEntitiesWithMissingProperties_shouldCalculateAverageAsExpected() {\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, Double.NaN);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder getDefOrBuilder();", "public void testSetMandatoryFields_Behavior(String profileConf,String behavior) throws Exception{\r\n ProfileManagement instProfileManagement = new ProfileManagement(selenium);\r\n\r\n instProfileManagement.testUpdateDefaultProfile_Configuration(profileConf,\"http://wso2.org/claims/givenname\",behavior);\r\n instProfileManagement.testUpdateDefaultProfile_Configuration(profileConf,\"http://wso2.org/claims/lastname\",behavior);\r\n instProfileManagement.testUpdateDefaultProfile_Configuration(profileConf,\"http://wso2.org/claims/emailaddress\",behavior);\r\n }", "private void validatePropertiesByDriver(PSPublishServerInfo pubServerInfo, String[] requieredProperties) throws PSValidationException {\n PSValidationErrorsBuilder builder = validateParameters(\"validatePropertiesByDriver\");\n String val = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_AS3_USE_ASSUME_ROLE);\n boolean useAssumeRole = false;\n if(val != null){\n useAssumeRole = Boolean.valueOf(val);\n }\n for (String property : requieredProperties)\n {\n String value = pubServerInfo.findProperty(property);\n if(IPSPubServerDao.PUBLISH_AS3_BUCKET_PROPERTY.equals(property)){\n builder.rejectIfBlank(property, value).throwIfInvalid();\n }else if(IPSPubServerDao.PUBLISH_AS3_ACCESSKEY_PROPERTY.equals(property)){\n if(!isEC2Instance()){\n builder.rejectIfBlank(property, value).throwIfInvalid();\n }\n }else if(IPSPubServerDao.PUBLISH_AS3_SECURITYKEY_PROPERTY.equals(property)){\n if(!isEC2Instance()){\n builder.rejectIfBlank(property, value).throwIfInvalid();\n }\n }else if(IPSPubServerDao.PUBLISH_AS3_ARN_ROLE.equals(property)){\n if(useAssumeRole) {\n builder.rejectIfBlank(property, value).throwIfInvalid();\n }\n }\n }\n }", "public static void main(String[] args)\n\t{\n\t\tRecordDefinition recordDef = new RecordDefinition();\n\n\t\trecordDef.addFieldDefinition(000, Long.TYPE, \"Time\");\n\t\trecordDef.addFieldDefinition(001, Double.TYPE, \"Velocity\");\n\t\trecordDef.addFieldDefinition(002, Double.TYPE, \"Altitude\");\n\t\trecordDef.addFieldDefinition(003, Double.TYPE, \"Pressure\");\n\t\trecordDef.addFieldDefinition(004, Double.TYPE, \"Temperature\");\n\t\trecordDef.addFieldDefinition(005, Double.TYPE, \"Attitude\");\n\n\n\t\tRecord record = new Record(recordDef);\n\t\t//Should have all fields and no values\n\t\tSystem.out.println(record);\n\t\t\n\t\trecord.setValueByCode(0,1);\n\t\trecord.setValueByCode(1,1);\n\t\trecord.setValueByCode(2,1);\n\t\trecord.setValueByCode(3,1);\n\t\trecord.setValueByCode(4,1);\n\t\trecord.setValueByCode(5,1);\n\t\t\n\t\t//Should have all fields the fields set now\n\t\tSystem.out.println(record);\n\n\t}", "@Override\n\tprotected void prepare() {\n\t\tfor(ProcessInfoParameter parameter :getParameter()){\n\t\t\tString name = parameter.getParameterName();\n\t\t\tif(parameter.getParameter() == null){\n\t\t\t\t;\n\t\t\t}else if(name.equals(\"XX_TipoRetencion\")){\n\t\t\t\tp_TypeRetention = (String) parameter.getParameter();\n\t\t\t}\n\t\t\telse if(name.equals(\"C_Invoice_From_ID\"))\n\t\t\t\tp_Invoice_From = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"C_Invoice_To_ID\"))\n\t\t\t\tp_Invoice_To = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"DateDoc\"))\n\t\t\t\tp_DateDoc = (Timestamp) parameter.getParameter();\t\t\n\t\t}\n\t}", "public CdtAwdPriXpsTypeMapRecord() {\n super(CdtAwdPriXpsTypeMap.CDT_AWD_PRI_XPS_TYPE_MAP);\n }", "public void baiscSetting(){\n generations_ = 0;\n maxGenerations_ = ((Integer) this.getInputParameter(\"maxGenerations\")).intValue();\n populationSize_ = ((Integer) this.getInputParameter(\"populationSize\")).intValue();\n mutation_ = operators_.get(\"mutation\");\n crossover_ = operators_.get(\"crossover\");\n selection_ = operators_.get(\"selection\");\n learning_ = operators_.get(\"learning\");\n\n }", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "public static void main(String[] args) throws ParseException {\n\t\tString key = \"0_NJTIPIpaJTl1XOyn9SmfFFrK0=\";\n\t\tCompanyID = FindConcurCompany.getCompanyID(key);// get the CompanyID for the company associated to the owner of the key\n\n\t\t// Begin by deleting any existing batch definitions for this company\n\t\tmyMongoCompanyFunctions.deleteDoc(batCollection, \"CompanyID\", CompanyID);\n\t\t\n\t\t\n\t\t// Create the Batch Definitions\n\n\t\t// Batch Definition for the Cash payment type\n\t\tdefinition.setID(GUID.getGUID(2));\n\t\tdefinition.setCompanyID(CompanyID);\n\t\tdefinition.setPaymentTypeCode(\"CASH\");// Payment Type Code for Cash\n\t\tdefinition.setPaymentTypeName(\"Cash\");// Payment Type Code for Cash\n\t\tdefinition.setPaymentMethod(\"CNQRPAY\");// Payment Method for Concur Pay\n\t\tdefinition.setTransactionType(\"BILL\");// Transaction Type for a Bill or AP Transactions\n\t\tdefinition.setCountry(\"US\");\n\t\tdefinition.setCurrency(\"USD\");\n\t\tdefinition.setPayeeType(\"EMP\");\n\t\t\n\t\t// Set Ledger ID HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Apex\");// set to use the constant, Apex\n\t\tdefinition.setLedgerID(map);\n\t\t\n\t\t// Set Entity ID to the Employee ID\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"EmployeeID\");// set to use the EmployeeID Expense field\n\t\tdefinition.setEntityID(map);\n\t\t\n\t\t// Set Invoice Number HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"ReportID\");// set to use the ReportID Expense field\n\t\tdefinition.setInvoiceNumber(map);\n\t\t\n\t\t// Set Posting Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Today\", \"\");// set to use today's date\n\t\tdefinition.setPostingDate(map);\n\t\t\n\t\t// Set Invoice Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"PaidDate\");// set to use the PaidDate Expense field\n\t\tdefinition.setInvoiceDate(map);\n\t\t\n\t\t// Set the Header Accounting Object HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Accounts Payable\");// set to use the constant Accounts Payable\n\t\tdefinition.setHeaderAccountObject(map);\n\t\t\n\t\t// Set Header Description HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"ReportName\");// set to use the ReportName Expense field\n\t\tdefinition.setHeaderDescription(map);\n\t\t\n\t\t// Set PrivateNote HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Private Note\");// set to use the ReportName Expense field\n\t\tdefinition.setPrivateNote(map);\n\t\t\n\t\t// Set VendorNote HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Vendor Note\");// set to use the ReportName Expense field\n\t\tdefinition.setVendorNote(map);\n\t\t\n\t\t// Set Header Custom Field Mappings\n\n\t\tArrayList<FieldMapping> mappings = new ArrayList<FieldMapping>();\n\t\tFieldMapping mapping = new FieldMapping();\n\t\tString SourceFormName = \"ExpenseField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tString SourceFieldName = \"ReportName\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tString TargetFormName=\"Bill Header\";// the name of the data entry form or \"object\" in the target application\n\t\tString TargetFieldName= \"Memo\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\t\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ExpenseField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"EmployeeID\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Header\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Reference\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\tdefinition.setHeaderCustomFields(mappings);\n\t\t\n\t\t// Set Detail Account HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Lookup\", \"BRNA2204PYOC9531\");// set to use the constant Accounting Object Lookup\n\t\tdefinition.setDetailAccountObject(map);\n\t\t\n\t\t// Set Detail Description HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"Description\");// set to use the ReportName Expense field\n\t\tdefinition.setDetailDescription(map);\n\t\t\n\t\t// Set Detail OrgUnit HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Org Unit\");// set to use the ReportName Expense field\n\t\tdefinition.setOrgUnitID(map);\n\t\t\n\t\t// Set Customer HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom2\");// set to use the ReportName Expense field\n\t\tdefinition.setCustomerID(map);\n\t\t\n\t\t// Set Billable HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom3\");// set to use the ReportName Expense field\n\t\tdefinition.setBillable(map);\n\t\t\n\t\t// Set Detail Custom Field Mappings\n\n\t\tmappings = new ArrayList<FieldMapping>();\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"ExpenseTypeName\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Expense Type\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\t\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"Date\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Date\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\tdefinition.setDetailCustomFields(mappings);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\tout.println(\"----------------------\");\n\t\tmyDoc = definition.getDocument();\n\t\tmyMongoCompanyFunctions.addDoc(batCollection, myDoc);\n\t\tdefinition.display();\n\n\n\t\t\n\t\t//Batch Definition for Company Paid Credit Card\n\t\tdefinition.setID(GUID.getGUID(2));\n\t\tdefinition.setCompanyID(CompanyID);\n\t\tdefinition.setPaymentTypeCode(\"COPD\");// Payment Type Code for Company Paid\n\t\tdefinition.setPaymentTypeName(\"Company Paid\");// Payment Type Code for Company Paid\n\t\tdefinition.setPaymentMethod(\"AP\");\n\t\tdefinition.setTransactionType(\"CARD\");// Transaction Type for a Bill or AP Transactions\n\t\tdefinition.setCountry(\"US\");\n\t\tdefinition.setCurrency(\"USD\");\n\t\tdefinition.setPayeeType(\"CARD\");\n\t\t\n\t\t// Set Ledger ID HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Apex\");// set to use the constant, Apex\n\t\tdefinition.setLedgerID(map);\n\t\t\n\t\t// Set the Header Accounting Object HashMap to the Asset account for the Credit Card\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"American Express\");// set to use the constant American Express\n\t\tdefinition.setHeaderAccountObject(map);\n\t\t\t\n\t\t// Set Entity ID to the Merchant Name\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"MerchantName\");// set to use the MerchantName Expense field\n\t\tdefinition.setEntityID(map);\n\t\t\n\t\t// Set Transaction Currency to the OriginalCurrency\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"OriginalCurrency\");// set to use the OriginalCurrency Expense field\n\t\tdefinition.setTransactionCurrency(map);\n\t\t\n\t\t\n\t\t// Set Posting Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"PostingDate\");// set to the PostingDate Expense Field\n\t\tdefinition.setPostingDate(map);\n\t\t\n\t\t// Set Invoice Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"TransactionDate\");// set to use the TransactionDate Expense field\n\t\tdefinition.setInvoiceDate(map);\n\t\t\n\t\n\t\t\n\t\t// Set PrivateNote HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Private Note\");// set to use the ReportName Expense field\n\t\tdefinition.setPrivateNote(map);\n\t\t\n\t\tdefinition.setHeaderCustomFields(null);// set Header Custom fields to Null\n\t\t// Set Detail Account HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Lookup\", \"BRNA2204PYOC9531\");// set to use the constant Accounting Object Lookup\n\t\tdefinition.setDetailAccountObject(map);\n\t\t\n\t\t// Set Detail Description HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"Description\");// set to use the ReportName Expense field\n\t\tdefinition.setDetailDescription(map);\n\t\t\n\t\t// Set Detail OrgUnit HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Org Unit\");// set to use the ReportName Expense field\n\t\tdefinition.setOrgUnitID(map);\n\t\t\n\t\t// Set Customer HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom2\");// set to use the ReportName Expense field\n\t\tdefinition.setCustomerID(map);\n\t\t\n\t\t// Set Billable HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom3\");// set to use the ReportName Expense field\n\t\tdefinition.setBillable(map);\n\t\t\n\t\t// Set Detail Custom Field Mappings\n\n\t\tmappings = new ArrayList<FieldMapping>();\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"ExpenseTypeName\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Expense Type\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\t\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"Date\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Date\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\tdefinition.setDetailCustomFields(mappings);\n\t\t\n\t\tout.println(\"----------------------\");\n\n\t\tmyDoc = definition.getDocument();\n\t\tmyMongoCompanyFunctions.addDoc(batCollection, myDoc);\n\t\tdefinition.display();\n\t\t\t\t\n\n\t}", "public Map<String, Long> executeSQL12() {\n Map<String, Long> result = records.stream().filter(x -> x.getSource().equals(\"a\")).filter(x -> x.getDestination().equals(\"f\")).filter(x -> !x.getType().equals(\"b\") && !x.getType().equals(\"e\"))\n .filter(x -> x.getCustoms().equals(\"n\")).filter(x -> x.getSorter() == 8).collect(Collectors.groupingBy(Record::getExtendedSecurityCheck, Collectors.counting()\n ));\n System.out.println(\"SQL 12: \" + result);\n return result;\n }", "private static PartitionSpec spec(Properties props, Schema schema) {\n String specString = props.getProperty(InputFormatConfig.PARTITION_SPEC);\n PartitionSpec spec = PartitionSpec.unpartitioned();\n if (specString != null) {\n spec = PartitionSpecParser.fromJson(schema, specString);\n }\n return spec;\n }", "public void validateWhenAllAttributesAreSet(boolean isDeclarative) {\n if (colocatedRegionName != null) {\n if (fixedPAttrs != null) {\n throw new IllegalStateException(\n String.format(\n \"FixedPartitionAttributes %s can not be specified in PartitionAttributesFactory if colocated-with is specified. \",\n fixedPAttrs));\n }\n }\n if (fixedPAttrs != null) {\n if (localMaxMemory == 0) {\n throw new IllegalStateException(\n String.format(\"FixedPartitionAttributes %s can not be defined for accessor\",\n fixedPAttrs));\n }\n }\n }", "RecordSet getInitialValuesForPremiumAccounting(Record inputRecord);", "private Hashtable<String, ?> declareSpaceProps() {\n\t\tfinal Hashtable<String, Object> props = new Hashtable<String, Object>();\n\n\t\tprops.put(\"sapere.rdf-based\", Boolean.TRUE);\n\t\tprops.put(\"sapere.acid-transactions\", Boolean.FALSE);\n\t\tprops.put(\"sapere.lsa-space.with-reasoner\", Boolean.TRUE);\n\n\t\treturn props;\n\t}", "ArrayList<Relation> attributeCountLT4ForPropertiesbySupplierId(String supplierId);", "private void validateProperties() throws BuildException {\r\n if (this.port == null || this.port.length() == 0) {\r\n throw new BuildException(\"Attribute 'port' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.userName == null || this.userName.length() == 0) {\r\n throw new BuildException(\"Attribute 'userName' must be set.\");\r\n }\r\n if (this.password == null || this.password.length() == 0) {\r\n throw new BuildException(\"Attribute 'password' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.p4ExecutablePath == null || this.p4ExecutablePath.length() == 0) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' must be set.\");\r\n }\r\n File p4Executable = new File(this.p4ExecutablePath);\r\n if (!p4Executable.exists()) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' \" + this.p4ExecutablePath +\r\n \" does not appear to point to an actual file.\");\r\n }\r\n \r\n // If default* is specified, then all should be specified. \r\n if (((this.defaultHackystatAccount != null) || \r\n (this.defaultHackystatPassword != null) ||\r\n (this.defaultHackystatSensorbase != null)) &&\r\n ((this.defaultHackystatAccount == null) || \r\n (this.defaultHackystatPassword == null) ||\r\n (this.defaultHackystatSensorbase == null))) {\r\n throw new BuildException (\"If one of default Hackystat account, password, or sensorbase \" +\r\n \"is specified, then all must be specified.\");\r\n }\r\n \r\n // Check to make sure that defaultHackystatAccount looks like a real email address.\r\n if (!ValidateEmailSyntax.isValid(this.defaultHackystatAccount)) {\r\n throw new BuildException(\"Attribute 'defaultHackystatAccount' \" + this.defaultHackystatAccount\r\n + \" does not appear to be a valid email address.\");\r\n }\r\n \r\n // If fromDate and toDate not set, we extract commit information for the previous day.\r\n if (this.fromDateString == null && this.toDateString == null) {\r\n Day previousDay = Day.getInstance().inc(-1);\r\n this.fromDate = new Date(previousDay.getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(previousDay.getLastTickOfTheDay());\r\n }\r\n else {\r\n try {\r\n if (this.hasSetToAndFromDates()) {\r\n this.fromDate = new Date(Day.getInstance(this.dateFormat.parse(this.fromDateString))\r\n .getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(Day.getInstance(this.dateFormat.parse(this.toDateString))\r\n .getLastTickOfTheDay());\r\n }\r\n else {\r\n throw new BuildException(\r\n \"Attributes 'fromDate' and 'toDate' must either be both set or both not set.\");\r\n }\r\n }\r\n catch (ParseException ex) {\r\n throw new BuildException(\"Unable to parse 'fromDate' or 'toDate'.\", ex);\r\n }\r\n\r\n if (this.fromDate.compareTo(this.toDate) > 0) {\r\n throw new BuildException(\"Attribute 'fromDate' must be a date before 'toDate'.\");\r\n }\r\n }\r\n }", "public void merge(PartitionAttributesImpl pa) {\n if (pa.hasRedundancy) {\n setRedundantCopies(pa.getRedundantCopies());\n }\n if (pa.hasLocalMaxMemory) {\n setLocalMaxMemory(pa.getLocalMaxMemory());\n }\n if (pa.hasOffHeap) {\n setOffHeap(pa.getOffHeap());\n }\n if (pa.hasTotalMaxMemory) {\n setTotalMaxMemory(pa.getTotalMaxMemory());\n }\n if (pa.hasTotalNumBuckets) {\n setTotalNumBuckets(pa.getTotalNumBuckets());\n }\n if (pa.hasPartitionResolver) {\n setPartitionResolver(pa.getPartitionResolver());\n }\n if (pa.hasColocatedRegionName) {\n setColocatedWith(pa.getColocatedWith());\n }\n if (pa.hasRecoveryDelay) {\n setRecoveryDelay(pa.getRecoveryDelay());\n }\n if (pa.hasStartupRecoveryDelay) {\n setStartupRecoveryDelay(pa.getStartupRecoveryDelay());\n }\n if (pa.hasFixedPAttrs) {\n addFixedPartitionAttributes(pa.getFixedPartitionAttributes());\n }\n if (pa.hasPartitionListeners) {\n addPartitionListeners(pa.partitionListeners);\n }\n }", "public interface PerceptionConfigurationParametersReadOnly extends StoredPropertySetReadOnly\n{\n default int getL515ThrottlerFrequency()\n {\n return get(l515ThrottlerFrequency);\n }\n\n default int getOusterThrottlerFrequency()\n {\n return get(ousterThrottlerFrequency);\n }\n\n default int getOccupancyGridResolution()\n {\n return get(occupancyGridResolution);\n }\n\n default boolean getRapidRegionsEnabled()\n {\n return get(rapidRegionsEnabled);\n }\n\n default boolean getLoggingEnabled()\n {\n return get(loggingEnabled);\n }\n\n default boolean getPublishColor()\n {\n return get(publishColor);\n }\n\n default boolean getPublishDepth()\n {\n return get(publishDepth);\n }\n\n default boolean getLogColor()\n {\n return get(logColor);\n }\n\n default boolean getLogDepth()\n {\n return get(logDepth);\n }\n\n default boolean getSLAMEnabled()\n {\n return get(slamEnabled);\n }\n\n default boolean getSLAMReset()\n {\n return get(slamReset);\n }\n\n default boolean getSupportSquareEnabled()\n {\n return get(supportSquareEnabled);\n }\n\n default boolean getBoundingBoxFilter()\n {\n return get(boundingBoxFilter);\n }\n\n default boolean getConcaveHullFilters()\n {\n return get(concaveHullFilters);\n }\n\n default boolean getShadowFilter()\n {\n return get(shadowFilter);\n }\n\n default boolean getActiveMapping()\n {\n return get(activeMapping);\n }\n}", "private FilterCriteria buildCriteria(String preProcessFields,\n\t\t\tMap<String, String> builtInProperties,\n\t\t\tMap<String, String> dynaProperties) {\n\t\tFilterCriteria criteria = null;\n\n\t\t// EntityProperty to Hibernate Property mappings\n\t\tMap<String, String> hibMap = new HashMap<String, String>();\n\t\thibMap.put(LogMessage.EP_DEVICE_IDENTIFICATION,\n\t\t\t\tLogMessage.HP_DEVICE_IDENTIFICATION);\n\t\thibMap.put(LogMessage.EP_APP_SEVERITY_NAME,\n\t\t\t\tLogMessage.HP_APP_SEVERITY_NAME);\n\t\thibMap.put(LogMessage.EP_TEXT_MESSAGE, LogMessage.HP_TEXT_MESSAGE);\n\t\thibMap.put(LogMessage.EP_OPERATION_STATUS_NAME,\n\t\t\t\tLogMessage.HP_OPERATION_STATUS_NAME);\n\t\thibMap.put(LogMessage.EP_REPORT_DATE, LogMessage.HP_REPORT_DATE);\n\t\thibMap.put(LogMessage.EP_MONITOR_STATUS_NAME,\n\t\t\t\tLogMessage.HP_MONITOR_STATUS_NAME);\n\n\t\tStringTokenizer stkn = new StringTokenizer(preProcessFields, \",\");\n\t\tint criteriaCount = stkn.countTokens();\n\t\tint matchCount = 0;\n\t\tint dynamicPropCount = 0;\n\t\twhile (stkn.hasMoreTokens()) {\n\t\t\tString field = stkn.nextToken();\n\t\t\tif (builtInProperties != null\n\t\t\t\t\t&& builtInProperties.containsKey(field)) {\n\t\t\t\tmatchCount++;\n\t\t\t\tif (criteria == null)\n\t\t\t\t\tcriteria = FilterCriteria.eq(hibMap.get(field),\n\t\t\t\t\t\t\tbuiltInProperties.get(field));\n\t\t\t\telse\n\t\t\t\t\tcriteria.and(FilterCriteria.eq(hibMap.get(field),\n\t\t\t\t\t\t\tbuiltInProperties.get(field)));\n\t\t\t} // end if\n\t\t\tif (dynaProperties != null && dynaProperties.containsKey(field)) {\n\t\t\t\tmatchCount++;\n\t\t\t\t// An exception for monitorstatus name as this field comes as\n\t\t\t\t// dynamic properties.\n\t\t\t\tif (field.equals(LogMessage.EP_MONITOR_STATUS_NAME)) {\n\t\t\t\t\tif (criteria == null)\n\t\t\t\t\t\tcriteria = FilterCriteria.eq(field, builtInProperties\n\t\t\t\t\t\t\t\t.get(field));\n\t\t\t\t\telse\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(field, builtInProperties\n\t\t\t\t\t\t\t\t.get(field)));\n\t\t\t\t} // end if\n\t\t\t\telse {\n\t\t\t\t\tif (criteria == null) {\n\t\t\t\t\t\tcriteria = FilterCriteria.eq(\"propertyValues.name\"+ \"_\" + dynamicPropCount,\n\t\t\t\t\t\t\t\tfield);\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(\n\t\t\t\t\t\t\t\t\"propertyValues.valueString\"+ \"_\" + dynamicPropCount, dynaProperties\n\t\t\t\t\t\t\t\t\t\t.get(field)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(\n\t\t\t\t\t\t\t\t\"propertyValues.name\"+ \"_\" + dynamicPropCount, field));\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(\n\t\t\t\t\t\t\t\t\"propertyValues.valueString\"+ \"_\" + dynamicPropCount, dynaProperties\n\t\t\t\t\t\t\t\t\t\t.get(field)));\n\t\t\t\t\t} // end if\n\t\t\t\t} // end if\n\t\t\t\tdynamicPropCount++;\n\t\t\t} // end if\n\t\t} // end while\n\t\tif (matchCount == criteriaCount) {\n\t\t\t// if all the fields matches then append the open criteria\n\t\t\tcriteria.and(FilterCriteria.eq(LogMessage.HP_OPERATION_STATUS_NAME,\n\t\t\t\t\t\"OPEN\"));\n\t\t\treturn criteria;\n\t\t} // end if\n\t\treturn null;\n\t}", "public ValidationResult validatePapRest() {\n var result = new BeanValidationResult(\"identifier\", this);\n\n result.validateNotNull(\"name\", getName());\n result.validateNotNull(\"version\", getVersion());\n\n return result;\n }", "public TestSmallBenchmarkObjectRecord() {\n\t\tsuper(org.sfm.jooq.beans.tables.TestSmallBenchmarkObject.TEST_SMALL_BENCHMARK_OBJECT);\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "static Stream<Arguments> randomRecords() throws IOException {\n return (IntStream.range(0, SCHEMA_TYPES.length))\n .mapToObj((i) -> {\n try {\n return Fixture.of(TestUtils.createSession()).withRecords(SCHEMA_TYPES[i]);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n })\n .flatMap((fixture) -> {\n return IntStream.range(0, fixture.records.length)\n .mapToObj((i) -> {\n return Arguments.of(fixture, i, Arrays.asList(fixture.records[i]));\n });\n });\n }", "@Test\r\n\tpublic void testRuleSets2() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0L, testAdminCon.size());\r\n\t\ttestAdminCon.add(micah, lname, micahlname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, fname, micahfname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, developPrototypeOf, semantics, dirgraph1);\r\n\t\ttestAdminCon.add(micah, type, sEngineer, dirgraph1);\r\n\t\ttestAdminCon.add(micah, worksFor, ml, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(john, fname, johnfname,dirgraph);\r\n\t\ttestAdminCon.add(john, lname, johnlname,dirgraph);\r\n\t\ttestAdminCon.add(john, writeFuncSpecOf, inference, dirgraph);\r\n\t\ttestAdminCon.add(john, type, lEngineer, dirgraph);\r\n\t\ttestAdminCon.add(john, worksFor, ml, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(writeFuncSpecOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(developPrototypeOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(design, subProperty, develop, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(lEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(sEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(engineer, subClass, employee, dirgraph1);\r\n\t\t\r\n\t\tString query = \"select (count (?s) as ?totalcount) where {?s ?p ?o .} \";\r\n\t\tTupleQuery tupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n\t\tTupleQueryResult result\t= tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(374, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t\tRepositoryResult<Statement> resultg = testAdminCon.getStatements(null, null, null, true, dirgraph, dirgraph1);\r\n\t\t\r\n\t\tassertNotNull(\"Iterator should not be null\", resultg);\r\n\t\tassertTrue(\"Iterator should not be empty\", resultg.hasNext());\r\n\t\t\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.EQUIVALENT_CLASS);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(86, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(null,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets((SPARQLRuleset)null, null);\r\n\t\ttupleQuery.setIncludeInferred(false);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(16, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t}", "@Test\n public void basicFieldsTestForClaimObjectTransformation() {\n claim.setClaimId(EXPECTED_CLAIM_ID);\n claim.setDcn(\"dcn\");\n claim.setSequenceNumber(42L);\n claim.setIntermediaryNb(\"12345\");\n claim.setHicNo(\"hicn\");\n claim.setDrgCd(\"drug\");\n claim.setGroupCode(\"to\");\n claim.setClmTypInd(\"1\");\n claim.setCurrStatus('M');\n claim.setCurrLoc1('M');\n claim.setCurrLoc2(\"9000\");\n claim.setMedaProvId(\"mpi\");\n claim.setMedaProv_6(\"mp_6\");\n claim.setTotalChargeAmount(new BigDecimal(\"1002.54\"));\n claim.setReceivedDate(LocalDate.of(2020, 1, 2));\n claim.setCurrTranDate(LocalDate.of(2021, 3, 4));\n claim.setAdmitDiagCode(\"1234567\");\n claim.setPrincipleDiag(\"7654321\");\n claim.setNpiNumber(\"npi-123456\");\n claim.setMbiRecord(\n new Mbi(\n 1L, \"12345678901\", \"3cf7b310f8fd6e7b275ddbdc6c3cd5b4eec0ea10bc9a504d471b086bd5d9b888\"));\n claim.setFedTaxNumber(\"1234567890\");\n claim.setPracLocAddr1(\"loc-address-1\");\n claim.setPracLocAddr2(\"loc-address-2\");\n claim.setPracLocCity(\"loc-city\");\n claim.setPracLocState(\"ls\");\n claim.setPracLocZip(\"123456789012345\");\n claim.setStmtCovFromDate(LocalDate.of(2020, 2, 3));\n claim.setStmtCovFromDateText(\"2020-02-03\");\n claim.setStmtCovToDate(LocalDate.of(2021, 4, 5));\n claim.setStmtCovToDateText(\"2021-04-05\");\n claim.setLobCd(\"1\");\n claim.setServTypeCd(\"6\");\n claim.setServTypeCdMapping(RdaFissClaim.ServTypeCdMapping.Clinic);\n claim.setFreqCd(\"G\");\n claim.setBillTypCd(\"ABC\");\n claim.setLastUpdated(clock.instant());\n claimBuilder\n .setRdaClaimKey(\"claim_id\")\n .setDcn(\"dcn\")\n .setHicNo(\"hicn\")\n .setIntermediaryNb(\"12345\")\n .setDrgCd(\"drug\")\n .setGroupCode(\"to\")\n .setClmTypIndEnum(FissClaimTypeIndicator.CLAIM_TYPE_INPATIENT)\n .setCurrStatusEnum(FissClaimStatus.CLAIM_STATUS_MOVE)\n .setCurrLoc1Enum(FissProcessingType.PROCESSING_TYPE_MANUAL)\n .setCurrLoc2Enum(FissCurrentLocation2.CURRENT_LOCATION_2_CABLE)\n .setMedaProvId(\"mpi\")\n .setMedaProv6(\"mp_6\")\n .setTotalChargeAmount(\"1002.54\")\n .setRecdDtCymd(\"2020-01-02\")\n .setCurrTranDtCymd(\"2021-03-04\")\n .setAdmDiagCode(\"1234567\")\n .setPrincipleDiag(\"7654321\")\n .setNpiNumber(\"npi-123456\")\n .setMbi(\"12345678901\")\n .setFedTaxNb(\"1234567890\")\n .setPracLocAddr1(\"loc-address-1\")\n .setPracLocAddr2(\"loc-address-2\")\n .setPracLocCity(\"loc-city\")\n .setPracLocState(\"ls\")\n .setPracLocZip(\"123456789012345\")\n .setStmtCovFromCymd(\"2020-02-03\")\n .setStmtCovFromCymdText(\"2020-02-03\")\n .setStmtCovToCymd(\"2021-04-05\")\n .setStmtCovToCymdText(\"2021-04-05\")\n .setLobCdEnum(FissBillFacilityType.BILL_FACILITY_TYPE_HOSPITAL)\n .setServTypeCdForClinicsEnum(\n FissBillClassificationForClinics\n .BILL_CLASSIFICATION_FOR_CLINICS_COMMUNITY_MENTAL_HEALTH_CENTER)\n .setFreqCdEnum(FissBillFrequency.BILL_FREQUENCY_ADJUSTMENT_CLAIM_G)\n .setBillTypCd(\"ABC\");\n changeBuilder\n .setSeq(42)\n .setChangeType(ChangeType.CHANGE_TYPE_UPDATE)\n .setClaim(claimBuilder.build())\n .setSource(\n RecordSource.newBuilder()\n .setPhase(\"P1\")\n .setPhaseSeqNum(0)\n .setExtractDate(\"1970-01-01\")\n .setTransmissionTimestamp(\"1970-01-01T00:00:00.000001Z\")\n .build());\n assertChangeMatches(RdaChange.Type.UPDATE);\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 }", "RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);", "@BeforeAll\n public static void setup() {\n baseExpectedParams = AttributeMap.builder()\n .put(S3ClientContextParams.USE_ARN_REGION, false)\n .put(S3ClientContextParams.DISABLE_MULTI_REGION_ACCESS_POINTS, false)\n .put(S3ClientContextParams.ACCELERATE, false)\n .put(S3ClientContextParams.FORCE_PATH_STYLE, false)\n .build();\n }", "private Builder(org.apache.gora.cascading.test.storage.TestRow other) {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n if (isValidValue(fields()[0], other.defaultLong1)) {\n this.defaultLong1 = (java.lang.Long) data().deepCopy(fields()[0].schema(), other.defaultLong1);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.defaultStringEmpty)) {\n this.defaultStringEmpty = (java.lang.CharSequence) data().deepCopy(fields()[1].schema(), other.defaultStringEmpty);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.columnLong)) {\n this.columnLong = (java.lang.Long) data().deepCopy(fields()[2].schema(), other.columnLong);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.unionRecursive)) {\n this.unionRecursive = (org.apache.gora.cascading.test.storage.TestRow) data().deepCopy(fields()[3].schema(), other.unionRecursive);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.unionString)) {\n this.unionString = (java.lang.CharSequence) data().deepCopy(fields()[4].schema(), other.unionString);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.unionLong)) {\n this.unionLong = (java.lang.Long) data().deepCopy(fields()[5].schema(), other.unionLong);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.unionDefNull)) {\n this.unionDefNull = (java.lang.Long) data().deepCopy(fields()[6].schema(), other.unionDefNull);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.family2)) {\n this.family2 = (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>) data().deepCopy(fields()[7].schema(), other.family2);\n fieldSetFlags()[7] = true;\n }\n }", "Map getGenAttributes();", "public interface PremiumManager {\r\n /**\r\n * Retrieves all premium information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all rating log information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllRatingLog(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all member contribution info\r\n *\r\n * @param inputRecord (transactionId and riskId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllMemberContribution (Record inputRecord);\r\n\r\n /**\r\n * Retrieves all layer detail info\r\n *\r\n * @param inputRecord (transactionId and coverageId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllLayerDetail(Record inputRecord);\r\n \r\n /**\r\n * Retrieves all fund information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllFund(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all payment information\r\n *\r\n * @param policyHeader policy header\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPayment(PolicyHeader policyHeader);\r\n\r\n /**\r\n * Validate if the term base id is the current term base id and whether the data is empty.\r\n *\r\n * @param inputRecord inputRecord\r\n * @param conn live JDBC Connection\r\n * @return boolean\r\n */\r\n void validateTransactionForPremiumWorksheet(Record inputRecord, Connection conn);\r\n\r\n /**\r\n * Get the default values for premium accounting date fields\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet getInitialValuesForPremiumAccounting(Record inputRecord);\r\n\r\n /**\r\n * Generate the premium accounting data for selected transaction\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet generatePremiumAccounting(Record inputRecord);\r\n}", "public LinkedHashMap<String, LinkedHashSet<String>> getRequestedProperties()\n\t{\n\t\treturn requestedProperties;\n\t}", "private void populateDataAndVerify(ReplicatedEnvironment masterEnv) {\n createTestData();\n populateDB(masterEnv, dbName, keys);\n readDB(masterEnv, dbName, startKey, numKeys);\n logger.info(numKeys + \" records (start key: \" +\n startKey + \") have been populated into db \" +\n dbName + \" and verified\");\n }", "@Test\n public void requireKeysForAttributes() {\n Set<Attribute> attributes = EnumSet.copyOf(Arrays.asList(Attribute.values()));\n Set<Attribute> implementedAttributes = Arrays.stream(AttributeManager.Key.values())\n .map(AttributeManager.Key::getAttribute)\n .collect(() -> EnumSet.noneOf(Attribute.class), AbstractCollection::add, AbstractCollection::addAll);\n\n attributes.removeAll(implementedAttributes);\n\n if (!attributes.isEmpty()) {\n throw new RuntimeException(\"Some Attributes are not supported by glowstone: \" + attributes);\n }\n }", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "public RecordSet loadClaimInfo(Record inputRecord);", "public interface SimpleRestriction extends SchemaComponent {\n public static final String ENUMERATION_PROPERTY = \"enumerations\";\n public static final String PATTERN_PROPERTY = \"patterns\";\n public static final String MIN_EXCLUSIVE_PROPERTY = \"minExclusives\";\n public static final String MIN_LENGTH_PROPERTY = \"minLengths\";\n public static final String MAX_LENGTH_PROPERTY = \"maxLengths\";\n public static final String FRACTION_DIGITS_PROPERTY = \"fractionDigits\";\n public static final String WHITESPACE_PROPERTY = \"whitespaces\";\n public static final String MAX_INCLUSIVE_PROPERTY = \"maxInclusives\";\n public static final String TOTAL_DIGITS_PROPERTY = \"totalDigits\";\n public static final String LENGTH_PROPERTY = \"lengths\";\n public static final String MIN_INCLUSIVE_PROPERTY = \"minInclusives\";\n public static final String MAX_EXCLUSIVE_PROPERTY = \"maxExclusives\";\n public static final String BASE_PROPERTY = \"base\";\n public static final String INLINETYPE_PROPERTY = \"inlinetype\";\n \n Collection<TotalDigits> getTotalDigits();\n void addTotalDigit(TotalDigits td);\n void removeTotalDigit(TotalDigits td);\n \n Collection<MinExclusive> getMinExclusives();\n void addMinExclusive(MinExclusive me);\n void removeMinExclusive(MinExclusive me);\n \n Collection<MinInclusive> getMinInclusives();\n void addMinInclusive(MinInclusive me);\n void removeMinInclusive(MinInclusive me);\n \n Collection<MinLength> getMinLengths();\n void addMinLength(MinLength ml);\n void removeMinLength(MinLength ml);\n \n Collection<MaxLength> getMaxLengths();\n void addMaxLength(MaxLength ml);\n void removeMaxLength(MaxLength ml);\n \n Collection<Pattern> getPatterns();\n void addPattern(Pattern p);\n void removePattern(Pattern p);\n \n Collection<MaxExclusive> getMaxExclusives();\n void addMaxExclusive(MaxExclusive me);\n void removeMaxExclusive(MaxExclusive me);\n \n Collection<MaxInclusive> getMaxInclusives();\n void addMaxInclusive(MaxInclusive me);\n void removeMaxInclusive(MaxInclusive me);\n \n Collection<Length> getLengths();\n void addLength(Length me);\n void removeLength(Length me);\n \n Collection<Whitespace> getWhitespaces();\n void addWhitespace(Whitespace me);\n void removeWhitespace(Whitespace me);\n \n Collection<FractionDigits> getFractionDigits();\n void addFractionDigits(FractionDigits fd);\n void removeFractionDigits(FractionDigits fd);\n \n Collection<Enumeration> getEnumerations();\n void addEnumeration(Enumeration fd);\n void removeEnumeration(Enumeration fd);\n \n LocalSimpleType getInlineType();\n void setInlineType(LocalSimpleType aSimpleType);\n \n}", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = 1000000;\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = 1000000;\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t;//\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"DocAction\"))\n\t\t;//\t\tm_docAction = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "public static void validateJobParameters(final BatchJob batchJob,\n\t\t\tfinal OabaParameters expected, final OabaParameters params) {\n\t\tassertTrue(params != null);\n\t\tassertTrue(params.getLowThreshold() == expected.getLowThreshold());\n\t\tassertTrue(params.getHighThreshold() == expected.getHighThreshold());\n\t\tassertTrue(params.getOabaLinkageType() == expected.getOabaLinkageType());\n\n\t\tfinal OabaLinkageType linkage = params.getOabaLinkageType();\n\t\tif (OabaLinkageType.STAGING_DEDUPLICATION == linkage) {\n\t\t\tassertTrue(params.getReferenceRsId() == null);\n\t\t\tassertTrue(params.getReferenceRsType() == null);\n\t\t} else {\n\t\t\tassertTrue(params.getReferenceRsId() != null\n\t\t\t\t\t&& params.getReferenceRsId().equals(expected.getReferenceRsId()));\n\t\t\tassertTrue(params.getReferenceRsType() != null\n\t\t\t\t\t&& params.getReferenceRsType().equals(\n\t\t\t\t\t\t\texpected.getReferenceRsType()));\n\t\t}\n\t\tassertTrue(params.getQueryRsId() == expected.getQueryRsId());\n\t\tassertTrue(params.getQueryRsType() != null\n\t\t\t\t&& params.getQueryRsType().equals(expected.getQueryRsType()));\n\t\tassertTrue(params.getModelConfigurationName() != null\n\t\t\t\t&& params.getModelConfigurationName().equals(\n\t\t\t\t\t\texpected.getModelConfigurationName()));\n\n\t}", "private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\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 }", "@Test\n public void getMappedAttributes_noOrgPropertiesDefined_noPlatformPropertiesDefined_platformOp()\n throws Throwable {\n clearAllPlatformSettings();\n assertEquals(\"No platform settings must be defined\", 0,\n getPlatformSettings(null).size());\n assertEquals(\"No organization-specific settings must be defined\", 0,\n getOrganizationSettings(customerOrg2, null).size());\n\n container.login(platformOrgAdmin.getKey(),\n UserRoleType.ORGANIZATION_ADMIN.toString());\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n Set<SettingType> mappedAttributes = ldapSettingsMgmtSvc\n .getMappedAttributes();\n\n assertEquals(\"No attributes must be returned\", 0,\n mappedAttributes.size());\n return null;\n }\n });\n }", "private boolean validate(Map<String,String> requestMap){\r\n\t\tboolean result = false;\r\n\t\tString zip = requestMap.get(PublicAPIConstant.ZIP);\r\n\t\tString soStatus = requestMap.get(PublicAPIConstant.SO_STATUS);\r\n\t\tList<String> soStatusList = new ArrayList<String>();\r\n\r\n\t\tif (null != soStatus) {\r\n\t\t\tStringTokenizer strTok = new StringTokenizer(\r\n\t\t\t\t\tsoStatus,\r\n\t\t\t\t\tPublicAPIConstant.SEPARATOR, false);\r\n\t\t\tint noOfStatuses = strTok.countTokens();\r\n\t\t\tfor (int i = 1; i <= noOfStatuses; i++) {\r\n\t\t\t\tsoStatusList.add(new String(strTok\r\n\t\t\t\t\t\t.nextToken()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tInteger pageSize = Integer.parseInt(requestMap.get(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET));\r\n\t\t\r\n\t\tif(null!=zip&&zip.length() != 5){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.ZIP);\r\n\t\t\treturn result;\t\r\n\t\t}\r\n\t\tList<Integer> pageSizeSetValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_10,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_20,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_50,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_100,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_200,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_500);\t\t\r\n\t\tif(!pageSizeSetValues.contains(pageSize)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\t\r\n\t\tList<String> soStatusValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_POSTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACCEPTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACTIVE,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_CLOSED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_COMPLETED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_DRAFTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PROBLEM,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_EXPIRED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PENDINGCANCEL\r\n\t\t);\t\t\r\n\t\tif(!soStatusValues.containsAll(soStatusList)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.SO_STATUS_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\tresult = true;\r\n\t\treturn result;\r\n\t}", "private Builder(io.confluent.developer.InterceptTest other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.req_custid)) {\n this.req_custid = data().deepCopy(fields()[0].schema(), other.req_custid);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.req_message)) {\n this.req_message = data().deepCopy(fields()[1].schema(), other.req_message);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.req_json)) {\n this.req_json = data().deepCopy(fields()[2].schema(), other.req_json);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.req_remote_addr)) {\n this.req_remote_addr = data().deepCopy(fields()[3].schema(), other.req_remote_addr);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.req_uri)) {\n this.req_uri = data().deepCopy(fields()[4].schema(), other.req_uri);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.req_headers)) {\n this.req_headers = data().deepCopy(fields()[5].schema(), other.req_headers);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.req_method)) {\n this.req_method = data().deepCopy(fields()[6].schema(), other.req_method);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.result_json)) {\n this.result_json = data().deepCopy(fields()[7].schema(), other.result_json);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.result_post)) {\n this.result_post = data().deepCopy(fields()[8].schema(), other.result_post);\n fieldSetFlags()[8] = true;\n }\n }", "@SuppressWarnings(\"unchecked\")\n public final void addRecord(final Record record) {\n // TODO check if attributes present in report are also\n // present in record.\n // record.;\n// for (int i = 0; i < attributes.length; i++) {\n// if (!record.getAttributesString().contains(attributes[i])) {\n // launch new query to update list of attributes.\n// }\n// }\n records.add(record);\n }", "public HashSet<String> getUsefulAttributes() {\n\t\t \n\t\tHashSet<String> attr = new HashSet<>();\n\t\tQuery firstQ = this.rset.get(1); // get first query on rewriting set 'rset'.\n\t\t\n\t\tGrouping gPart = firstQ.getQueryTriple()._1();\n\t attr.addAll(gPart.getUsefulAttributes());\n\t \n\t Measuring mPart = firstQ.getQueryTriple()._2();\n\t attr.addAll(mPart.getMeasuringAttributes());\n\t \n\t\treturn attr;\n\t}", "@java.lang.Override\n public boolean hasAvro() {\n return schemaCase_ == 1;\n }", "public static void caso41(){\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso4.owl\",\"file:resources/caso4.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }", "private void initAllVariables(boolean showAll)\n/* */ {\n/* 281 */ ResultSet thresholdVsEntityResultSet = null;\n/* */ \n/* 283 */ if (showAll)\n/* */ {\n/* 285 */ this.thresholdVsEntityQuery = \"select mo.DESCRIPTION,RESOURCEID,ATTRIBUTEID,THRESHOLDCONFIGURATIONID from AM_ManagedObject mo join AM_ATTRIBUTES aa on mo.TYPE=aa.RESOURCETYPE left join AM_ATTRIBUTETHRESHOLDMAPPER aam on mo.RESOURCEID=aam.ID and aam.ATTRIBUTE=aa.ATTRIBUTEID left join AM_THRESHOLDCONFIG tc on tc.ID=aam.THRESHOLDCONFIGURATIONID where ((mo.type='HAI' AND (aa.ATTRIBUTE='Health' OR aa.ATTRIBUTE='Availability')) OR mo.TYPE!='HAI' OR mo.TYPE!='Network') AND mo.DCSTARTED!=0\";\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 290 */ this.thresholdVsEntityQuery = \"select mo.DESCRIPTION,RESOURCEID,ATTRIBUTEID,THRESHOLDCONFIGURATIONID from AM_ManagedObject mo join AM_ATTRIBUTES aa on mo.TYPE=aa.RESOURCETYPE join AM_ATTRIBUTETHRESHOLDMAPPER aam on mo.RESOURCEID=aam.ID and aam.ATTRIBUTE=aa.ATTRIBUTEID join AM_THRESHOLDCONFIG tc on tc.ID=aam.THRESHOLDCONFIGURATIONID where ((mo.type='HAI' AND (aa.ATTRIBUTE='Health' OR aa.ATTRIBUTE='Availability')) OR mo.TYPE!='HAI' OR mo.TYPE!='Network') AND mo.DCSTARTED!=0 \";\n/* */ }\n/* */ try\n/* */ {\n/* 294 */ thresholdVsEntityResultSet = AMConnectionPool.executeQueryStmt(this.thresholdVsEntityQuery);\n/* 295 */ while (thresholdVsEntityResultSet.next())\n/* */ {\n/* 297 */ String validResId = thresholdVsEntityResultSet.getString(\"RESOURCEID\");\n/* 298 */ String entity = validResId + \"_\" + thresholdVsEntityResultSet.getString(\"ATTRIBUTEID\");\n/* 299 */ String description = thresholdVsEntityResultSet.getString(\"DESCRIPTION\");\n/* 300 */ this.validEntities.add(entity);\n/* */ \n/* 302 */ this.validResIdsVsEntitySet.put(validResId, entity);\n/* 303 */ this.thresholdVsEntityMap.put(entity, thresholdVsEntityResultSet.getString(\"THRESHOLDCONFIGURATIONID\"));\n/* 304 */ this.thresholdVsDescriptionMap.put(validResId, description);\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 309 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 313 */ AMConnectionPool.closeStatement(thresholdVsEntityResultSet);\n/* */ }\n/* */ \n/* 316 */ ResultSet actionVsEntityResultSet = null;\n/* */ try\n/* */ {\n/* 319 */ actionVsEntityResultSet = AMConnectionPool.executeQueryStmt(\"select aam.ID,aam.ATTRIBUTE,aam.SEVERITY,aam.ACTIONID,ap.NAME from AM_ATTRIBUTEACTIONMAPPER aam join AM_ACTIONPROFILE ap on ap.ID=aam.ACTIONID join AM_ManagedObject mo on mo.RESOURCEID=aam.ID \");\n/* 320 */ while (actionVsEntityResultSet.next())\n/* */ {\n/* 322 */ String validResId = actionVsEntityResultSet.getString(\"ID\");\n/* 323 */ String entity = validResId + \"_\" + actionVsEntityResultSet.getString(\"ATTRIBUTE\");\n/* 324 */ this.validEntities.add(entity);\n/* */ \n/* */ \n/* 327 */ this.validResIdsForAction.put(validResId, entity);\n/* */ \n/* 329 */ String entityWithSeverity = entity + \"_\" + actionVsEntityResultSet.getString(\"SEVERITY\");\n/* 330 */ List<String> actions = (List)this.actionVsEntityMap.get(entityWithSeverity);\n/* 331 */ if (actions == null)\n/* */ {\n/* 333 */ actions = new ArrayList();\n/* 334 */ this.actionVsEntityMap.put(entityWithSeverity, actions);\n/* */ }\n/* 336 */ actions.add(actionVsEntityResultSet.getString(\"NAME\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 341 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 345 */ AMConnectionPool.closeStatement(actionVsEntityResultSet);\n/* */ }\n/* */ \n/* 348 */ ResultSet numericThresholdProfileResultSet = null;\n/* */ try\n/* */ {\n/* 351 */ numericThresholdProfileResultSet = AMConnectionPool.executeQueryStmt(\"select ID,NAME,TYPE,DESCRIPTION,CRITICALTHRESHOLDCONDITION,CASE WHEN TYPE=4 THEN (select AM_FLOAT_THRESHOLDCONFIG.CRITICALTHRESHOLDVALUE FROM AM_FLOAT_THRESHOLDCONFIG WHERE AM_FLOAT_THRESHOLDCONFIG.ID=AM_THRESHOLDCONFIG.ID) ELSE AM_THRESHOLDCONFIG.CRITICALTHRESHOLDVALUE END as CRITICALTHRESHOLDVALUE,CRITICALTHRESHOLDMESSAGE,WARNINGTHRESHOLDCONDITION,CASE WHEN TYPE=4 THEN (select AM_FLOAT_THRESHOLDCONFIG.WARNINGTHRESHOLDVALUE FROM AM_FLOAT_THRESHOLDCONFIG WHERE AM_FLOAT_THRESHOLDCONFIG.ID=AM_THRESHOLDCONFIG.ID) ELSE AM_THRESHOLDCONFIG.WARNINGTHRESHOLDVALUE END as WARNINGTHRESHOLDVALUE,WARNINGTHRESHOLDMESSAGE,INFOTHRESHOLDCONDITION,CASE WHEN TYPE=4 THEN (select AM_FLOAT_THRESHOLDCONFIG.INFOTHRESHOLDVALUE FROM AM_FLOAT_THRESHOLDCONFIG WHERE AM_FLOAT_THRESHOLDCONFIG.ID=AM_THRESHOLDCONFIG.ID) ELSE AM_THRESHOLDCONFIG.INFOTHRESHOLDVALUE END as INFOTHRESHOLDVALUE,INFOTHRESHOLDMESSAGE,CRITICAL_POLLSTOTRY,WARNING_POLLSTOTRY,CLEAR_POLLSTOTRY from AM_THRESHOLDCONFIG\");\n/* 352 */ while (numericThresholdProfileResultSet.next())\n/* */ {\n/* 354 */ this.numericThresholdProfileVsThresholdIdMap.put(numericThresholdProfileResultSet.getString(\"ID\"), getHashMapfromResultSetRow(numericThresholdProfileResultSet));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 359 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 363 */ AMConnectionPool.closeStatement(numericThresholdProfileResultSet);\n/* */ }\n/* */ \n/* 366 */ ResultSet stringThresholdProfileResultSet = null;\n/* */ try\n/* */ {\n/* 369 */ stringThresholdProfileResultSet = AMConnectionPool.executeQueryStmt(\"select * from AM_PATTERNMATCHERCONFIG\");\n/* 370 */ while (stringThresholdProfileResultSet.next())\n/* */ {\n/* 372 */ this.stringThresholdProfileVsThresholdIdMap.put(stringThresholdProfileResultSet.getString(\"ID\"), getHashMapfromResultSetRow(stringThresholdProfileResultSet));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 377 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 381 */ AMConnectionPool.closeStatement(stringThresholdProfileResultSet);\n/* */ }\n/* */ \n/* 384 */ ResultSet managedObjectResultSet = null;\n/* */ try\n/* */ {\n/* 387 */ managedObjectResultSet = AMConnectionPool.executeQueryStmt(\"select RESOURCEID,DISPLAYNAME,TYPE,CREATIONTIME from AM_ManagedObject\");\n/* 388 */ while (managedObjectResultSet.next())\n/* */ {\n/* 390 */ String resId = managedObjectResultSet.getString(\"RESOURCEID\");\n/* 391 */ this.managedObjectVsResourceIdMap.put(resId, getHashMapfromResultSetRow(managedObjectResultSet));\n/* 392 */ String creationTime = managedObjectResultSet.getString(\"CREATIONTIME\");\n/* 393 */ if (creationTime != null)\n/* */ {\n/* 395 */ this.resIdVsCreationTimeMap.put(resId, FormatUtil.formatDT(creationTime).replaceAll(\",\", \" \"));\n/* */ }\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 401 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 405 */ AMConnectionPool.closeStatement(managedObjectResultSet);\n/* */ }\n/* */ \n/* */ \n/* 409 */ ResultSet attributeResultSet = null;\n/* */ try\n/* */ {\n/* 412 */ attributeResultSet = AMConnectionPool.executeQueryStmt(\"select ATTRIBUTEID,DISPLAYNAME from AM_ATTRIBUTES\");\n/* 413 */ while (attributeResultSet.next())\n/* */ {\n/* 415 */ this.attributeMap.put(attributeResultSet.getString(\"ATTRIBUTEID\"), FormatUtil.getString(attributeResultSet.getString(\"DISPLAYNAME\")));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 420 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 424 */ AMConnectionPool.closeStatement(attributeResultSet);\n/* */ }\n/* */ \n/* 427 */ ResultSet actionProfileVsActionIdResultSet = null;\n/* */ \n/* */ try\n/* */ {\n/* 431 */ actionProfileVsActionIdResultSet = AMConnectionPool.executeQueryStmt(\"select ID,NAME from AM_ACTIONPROFILE\");\n/* 432 */ while (actionProfileVsActionIdResultSet.next())\n/* */ {\n/* 434 */ this.actionProfileVsActionIdMap.put(actionProfileVsActionIdResultSet.getString(\"ID\"), actionProfileVsActionIdResultSet.getString(\"NAME\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 439 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 443 */ AMConnectionPool.closeStatement(actionProfileVsActionIdResultSet);\n/* */ }\n/* */ \n/* 446 */ ResultSet monitorsResultSet = null;\n/* */ try\n/* */ {\n/* 449 */ monitorsResultSet = AMConnectionPool.executeQueryStmt(\"select RESOURCEID from AM_ManagedObject,AM_ManagedResourceType where AM_ManagedResourceType.RESOURCETYPE=AM_ManagedObject.TYPE and TYPE!='HAI'\");\n/* 450 */ while (monitorsResultSet.next())\n/* */ {\n/* 452 */ this.monitors.add(monitorsResultSet.getString(\"RESOURCEID\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 457 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 461 */ AMConnectionPool.closeStatement(monitorsResultSet);\n/* */ }\n/* */ \n/* 464 */ ResultSet parentChildMapperResultSet = null;\n/* */ try\n/* */ {\n/* 467 */ parentChildMapperResultSet = AMConnectionPool.executeQueryStmt(\"select PARENTID,CHILDID from AM_PARENTCHILDMAPPER\");\n/* 468 */ while (parentChildMapperResultSet.next())\n/* */ {\n/* 470 */ String parentId = parentChildMapperResultSet.getString(\"PARENTID\");\n/* 471 */ String childId = parentChildMapperResultSet.getString(\"CHILDID\");\n/* */ \n/* 473 */ this.childVsParentMap.put(childId, parentId);\n/* 474 */ this.parentVsChildMap.put(parentId, childId);\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 483 */ AMConnectionPool.closeStatement(parentChildMapperResultSet);\n/* */ }\n/* */ \n/* */ \n/* 487 */ Object mgIdList = new ArrayList();\n/* 488 */ ResultSet haIdQueryRs = null;\n/* */ try\n/* */ {\n/* 491 */ haIdQueryRs = AMConnectionPool.executeQueryStmt(this.haIdQuery.toString());\n/* 492 */ while (haIdQueryRs.next())\n/* */ {\n/* 494 */ ((ArrayList)mgIdList).add(haIdQueryRs.getString(\"HAID\"));\n/* */ }\n/* */ }\n/* */ catch (Exception e1)\n/* */ {\n/* 499 */ e1.printStackTrace();\n/* */ }\n/* */ finally\n/* */ {\n/* 503 */ AMConnectionPool.closeStatement(haIdQueryRs);\n/* */ }\n/* */ try\n/* */ {\n/* 507 */ for (String mgId : (ArrayList)mgIdList)\n/* */ {\n/* */ \n/* 510 */ Object subGroups = (ArrayList)ReportUtil.getLastLevelSubGroup(new ArrayList(), mgId);\n/* 511 */ this.parentGroupVsSubGrpIds.put(mgId, subGroups);\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 516 */ e.printStackTrace();\n/* */ }\n/* */ }", "private static void initDatatypeProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n ontologie.add(ontologie);\n datatypeProperties.addAll(ontologie.listDatatypeProperties().toList());\n }", "protected void setupMatcherExpectations() {\n expectedMatchRecordIds.put(\"x028abMatcher\", 0);\r\n expectedMatchRecords.put (\"x028abMatcher\", 0);\r\n\r\n expectedMatchRecordIds.put(\"x245ahMatcher\", 0);\r\n expectedMatchRecords.put (\"x245ahMatcher\", 0);\r\n\r\n expectedMatchRecordIds.put(\"x240aMatcher\", 0);\r\n expectedMatchRecords.put (\"x240aMatcher\", 0);\r\n\r\n expectedMatchRecordIds.put(\"x260abcMatcher\", 0);\r\n expectedMatchRecords.put (\"x260abcMatcher\", 0);\r\n\r\n expectedMatchRecordIds.put(\"x130aMatcher\", 0);\r\n expectedMatchRecords.put (\"x130aMatcher\", 0);\r\n //TODO end of above TODO\r\n\r\n expectedMatchRecordIds.put(\"ISSNMatcher\", 14); //confirmed\r\n expectedMatchRecords.put (\"ISSNMatcher\", 2); //confirmed\r\n\r\n expectedMatchRecordIds.put(\"ISBNMatcher\", 78); //TODO confirm both of these\r\n expectedMatchRecords.put (\"ISBNMatcher\", 23);\r\n\r\n expectedMatchRecordIds.put(\"x024aMatcher\", 3); //confirmed\r\n expectedMatchRecords.put (\"x024aMatcher\", 3); //confirmed\r\n\r\n expectedMatchRecordIds.put(\"LccnMatcher\", 49); //TODO confirm both of these\r\n expectedMatchRecords.put (\"LccnMatcher\", 8);\r\n\r\n expectedMatchRecordIds.put(\"SystemControlNumberMatcher\", 92); //TODO confirm both of these\r\n expectedMatchRecords.put (\"SystemControlNumberMatcher\", 27);\r\n\r\n\r\n /*\r\n rule 2 matchsets?:\r\n- *** Matchset: {62, 160, 201, }\r\n- *** Matchset: {10, 29, 52, 66, 132, 171, 205, 255, }\r\n- *** Matchset: {33, 71, 113, 137, 175, 207, 262, }\r\n\r\n 035 matchsets?:\r\n- *** Matchset: {1, 25, 48, 94, 107, 167, 197, 234, 251, 316, }\r\n- *** Matchset: {3, 27, 50, 64, 96, 109, 162, 169, 203, 236, 253, 318, }\r\n- *** Matchset: {31, 68, 111, 134, 173, 238, 257, 320, }\r\n- *** Matchset: {12, 73, 98, 115, 177, 209, 264, 324, }\r\n- *** Matchset: {5, 14, 35, 54, 75, 100, 117, 179, 240, 267, 326, }\r\n- *** Matchset: {56, 58, 82, 121, 141, 164, 185, 211, 243, 275, 329, }\r\n- *** Matchset: {22, 60, 89, 104, 125, 154, 191, 222, 248, 308, 312, 333, }\r\n */\r\n\r\n expectedResults.add(getExpectedMatchSet(new long[]{5,14,35,54,75,100,117,179,240,267,326}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{22,60,89,104,125,154,191,222,248,308,312,333}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{56,58,82,121,141,164,185,211,243,275,329}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{12,73,98,115,177,209,264,324}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{31,68,111,134,173,238,257,320}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{3,27,50,64,96,109,162,169,203,236,253,318}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{1,25,48,94,107,167,197,234,251,316}));\r\n\r\n expectedResults.add(getExpectedMatchSet(new long[]{62, 160, 201}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{10, 29, 52, 66, 132, 171, 205, 255}));\r\n expectedResults.add(getExpectedMatchSet(new long[]{33, 71, 113, 137, 175, 207, 262}));\r\n }", "public void parseValidPres(XPRParser.Validate_presenceContext ctx, State rootState) {\n\n String name_state = rootState.getname();\n for (int i = 0; i < ctx.ID_GLOBAL().size(); i++) {\n String name = ctx.ID_GLOBAL().get(i).getText().substring(1);\n\n Sort sort1 = rootState.getSort(name_state);\n // this field is related to one of association rules\n if (rootState.getRelation(name) != null) {\n Sort sort2 = z3ctx.mkUninterpretedSort(z3ctx.mkSymbol(name));\n\n\n Expr item1 = z3ctx.mkConst(sort2.getName(), sort2);\n Expr item2 = z3ctx.mkConst(sort1.getName(), sort1);\n\n Expr[] argOwner = new Expr[2];\n argOwner[0] = item1;\n argOwner[1] = item2;\n\n Invariant inv = new presenceInv(sort1, sort2, name_state, name);\n db.addInv(inv);\n } else {\n Sort sort2 = z3ctx.mkUninterpretedSort(z3ctx.mkSymbol(name));\n if (rootState.getSort(name) == null) {\n rootState.addSort(sort2);\n }\n TupleSort t_sort = z3ctx.mkTupleSort(z3ctx.mkSymbol(\"mk_field_tuple\"), // name of\n new Symbol[]{sort2.getName(), sort1.getName()}, // names\n new Sort[]{sort2, sort1});\n\n SetSort sortRel = z3ctx.mkSetSort(t_sort);\n Expr relation = z3ctx.mkConst(name + \"_field\", sortRel);\n rootState.putSort(name, sort2);\n rootState.addFileds(name);\n\n rootState.putSort(rootState + name, sortRel);\n\n SetSort ss = z3ctx.mkSetSort(sort2);\n Expr field_set = z3ctx.mkConst(name, ss);\n rootState.putExpr(name, field_set);\n rootState.putExpr(name_state + name, relation);\n Invariant inv = new checkFieldInv(sort1, sort2, name_state, name);\n db.addInv(inv);\n }\n }\n }", "int insertSelective(MedicalOrdersExecutePlan record);", "@Override\r\n protected void prepareDataObjsProps(XmlSignedPropertiesType xmlProps)\r\n {\n XmlSignedDataObjectPropertiesType xmlSignedDataObjProps = new XmlSignedDataObjectPropertiesType();\r\n xmlProps.setSignedDataObjectProperties(xmlSignedDataObjProps);\r\n }", "@Test\r\n\tpublic void getRelatedFieldsArraySizeOne() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"relatedFields size should be 1\", 1, testObj.getRelatedFieldsArray().length);\r\n\t}", "@Override\n protected void validateConfig() {\n super.validateConfig();\n final int iterations = commonConfig.getIterations();\n queryInstancesAggregates = new MetricAggregates(iterations);\n firstResponseAggregates = new MetricAggregates(iterations);\n firstFrameAggregates = new MetricAggregates(iterations);\n totalAggregates = new MetricAggregates(iterations);\n transferRateAggregates = new MetricAggregates(iterations);\n frameRateAggregates = new MetricAggregates(iterations);\n }", "@Override public void addImpliedProperties(UpodPropertySet ups)\n{\n}", "private Builder(com.autodesk.ws.avro.Call other) {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n if (isValidValue(fields()[0], other.responding_product_id)) {\n this.responding_product_id = (java.lang.CharSequence) data().deepCopy(fields()[0].schema(), other.responding_product_id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.requesting_product_id)) {\n this.requesting_product_id = (java.lang.CharSequence) data().deepCopy(fields()[1].schema(), other.requesting_product_id);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.module)) {\n this.module = (java.lang.CharSequence) data().deepCopy(fields()[2].schema(), other.module);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.operation)) {\n this.operation = (java.lang.CharSequence) data().deepCopy(fields()[3].schema(), other.operation);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.suboperation)) {\n this.suboperation = (java.lang.CharSequence) data().deepCopy(fields()[4].schema(), other.suboperation);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.target_object_uri)) {\n this.target_object_uri = (java.lang.CharSequence) data().deepCopy(fields()[5].schema(), other.target_object_uri);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.object_size)) {\n this.object_size = (java.lang.Long) data().deepCopy(fields()[6].schema(), other.object_size);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.execution_time)) {\n this.execution_time = (java.lang.Integer) data().deepCopy(fields()[7].schema(), other.execution_time);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.status)) {\n this.status = (java.lang.CharSequence) data().deepCopy(fields()[8].schema(), other.status);\n fieldSetFlags()[8] = true;\n }\n }" ]
[ "0.5081096", "0.49705485", "0.49580473", "0.49351585", "0.48939195", "0.4888099", "0.4879966", "0.47493982", "0.47451535", "0.4717244", "0.46993873", "0.46898067", "0.46775874", "0.4670387", "0.46322784", "0.46197942", "0.45889348", "0.45653754", "0.45595062", "0.45556328", "0.45457137", "0.45292437", "0.4516771", "0.45064244", "0.4500226", "0.44827387", "0.4466536", "0.4450511", "0.4442136", "0.44375616", "0.44367832", "0.44304636", "0.44277984", "0.44239575", "0.44209573", "0.4406416", "0.43931693", "0.43787625", "0.43778038", "0.43641898", "0.4356846", "0.43521255", "0.4349707", "0.4338368", "0.43336934", "0.43325183", "0.4323283", "0.43139955", "0.43135017", "0.43134782", "0.43112367", "0.4296627", "0.42952013", "0.42945287", "0.42937294", "0.4293452", "0.42924157", "0.42883343", "0.42876315", "0.42848846", "0.42826846", "0.42808926", "0.42767298", "0.4270248", "0.42572987", "0.4257265", "0.42567247", "0.42550573", "0.42521456", "0.42519382", "0.42486072", "0.42416275", "0.42404547", "0.42381418", "0.42376593", "0.42357463", "0.42246485", "0.42196375", "0.42152682", "0.42144772", "0.42138448", "0.42095932", "0.42095783", "0.4209468", "0.4208222", "0.42074323", "0.42068458", "0.4205841", "0.42040694", "0.4203763", "0.42009512", "0.42001116", "0.41944662", "0.41942284", "0.4193198", "0.41927385", "0.4190804", "0.4190472", "0.4189151", "0.41869864", "0.4184296" ]
0.0
-1
METODO ESTATICO PARA CRIAR DEPENDENTES
public static void criarDependentes(Funcionario fun, Scanner ler, Scanner in) { ArrayList<Dependentes> ListaDeptes = new ArrayList<>(); int opcao = 0; do { Dependentes den = new Dependentes(); System.out.println("Digite o nome do dependente:"); den.setNome(ler.nextLine()); System.out.println("Digite a idade:"); den.setIdade(in.nextInt()); System.out.println("Digite o CPF do dependente"); den.setCPF(in.nextLine()); ListaDeptes.add(den); System.out.println("Deseja adicionar outro dependente?\n 1 para Sim. \n 2 para Não."); opcao = in.nextInt(); } while (opcao == 1); fun.setListaDeptes(ListaDeptes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setDependencies() {\n\t\t\n\t}", "private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\"\\\\r?\\\\n\");\n for (String entry : dependenciesGraph) {\n String moduleToAdd = entry.split(\" \")[1];\n addModuleDependencies(moduleToAdd, cachePath);\n }\n restoreModAnsSumFiles();\n }", "public void connectDependencies();", "void depend(@Nonnull String path);", "private void addDependencies(IResource resource, ICompiler compiler, IProgressMonitor monitor) {\n\t\tmonitor.subTask(Messages.AssemblyBuilder_AddingDependencies + resource.getName());\n\n\t\tString resourcePath = resource.getFullPath().toString();\n\t\tSet<String> dependencies = compiler.getDependencies(resource, monitor);\n\t\tif (dependencies != null) {\n\t\t\tfor (String dep : dependencies) {\n\t\t\t\tif (monitor.isCanceled()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tIResource depRes = resource.getWorkspace().getRoot().findMember(dep);\n\t\t\t\tString dependency;\n\t\t\t\tif (depRes != null) {\n\t\t\t\t\tdependency = depRes.getFullPath().toString();\n\t\t\t\t} else {\n\t\t\t\t\t// System.out.println(\"Can't find dependency \" + dep);\n\t\t\t\t\tdependency = dep;\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"Adding dependency \" + resourcePath\n\t\t\t\t// + \" for \" + dependency);\n\t\t\t\tResourceDependencies.getInstance().add(dependency, resourcePath);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void checkDependencies() throws Exception\n\t{\n\t\t\n\t}", "public void runtimeDeps(String... deps)\r\n {\r\n for (String dep : deps)\r\n _runtimeDeps.add(Artifact.find(dep));\r\n }", "void depend(@Nonnull Path path);", "public void buildDeps(String... deps)\r\n {\r\n for (String dep : deps)\r\n _buildDeps.add(Artifact.find(dep));\r\n }", "private static void cajas() {\n\t\t\n\t}", "private void checkRdependencies() throws FileNotFoundException, BioclipseException {\n \trunRCmd(\"R -e \\\"getRversion()\\\" -s\");\n \tint st = compare(status.substring(5, (status.length() - 2)), \"2.15\");\n\t\tif (st < 0) {\n\t\t\trightRVersion = false;\n\t\t\tthrow new BioclipseException(\"Incompatible R version, Runnig R within Bioclipse requires R version 2.13, or later!\");\n \t}\n\t\tlogger.debug(status);\n \tif (!runRCmd(\"R -e \\\"find.package('rJava')\\\" -s\")) {\n \t\tlogger.debug(\"Error: Package rJava not found.\");\n \t\tif (!runRCmd(\"R -e \\\"install.packages('rJava', repos='http://cran.stat.ucla.edu')\\\" -s\")) {\n \t\t\tstatus += \"Error finding and installing rJava, use install.packages('rJava') within R and reboot Bioclipse afterwards\";\n \t\t\tlogger.error(status);\n \t\t\tthrow new FileNotFoundException(status);\n \t\t}\n\n \t}\n \tif (!runRCmd(\"R -e \\\"find.package('rj')\\\" -s\")) {\n \t\tlogger.debug(\"Error: Package rj not found.\");\n \t\tinstallRj();\n \t} else {\n \t\trunRCmd(\"R -e \\\"installed.packages()['rj','Version']\\\" -s\");\n \t\tif (!status.startsWith(\"[1] \\\"2\")) {\n \t\t\tstatus += \"Wrong 'rj' package installed, please install version 2.0\";\n \t\t\tlogger.error(status);\n \t\t\tif (runRCmd(\"R -e \\\"remove.packages('rj')\\\" -s\"))\n \t\t\t\tinstallRj();\n \t\t}\n \t}\n \tif (!runRCmd(\"R -e \\\"find.package('bc2r')\\\" -s\")) {\n \t\tString rPluginPath = null;\n \t\tlogger.debug(\"Error: Package bc2r not found.\");\n \t\ttry {\n\t\t\t\trPluginPath = FileUtil.getFilePath(\"bc2r_2.0.tar.gz\", \"net.bioclipse.r.business\");\n\t\t\t\tif (OS.startsWith(\"Windows\")) {\n\t\t\t\t\trPluginPath = rPluginPath.substring(1).replace(fileseparator, \"/\");\n\t\t\t\t}\n\t\t\t\tlogger.debug(rPluginPath);\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tlogger.debug(e.getMessage());\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tlogger.debug(e.getMessage());\n\t\t\t}\n \t\tif (!runRCmd(\"R -e \\\"install.packages('\" + rPluginPath + \"', repos= NULL, type='source')\\\" -s\")) {\n \t\t\tstatus += \"Error finding and installing bc2r package\";\n \t\t\tlogger.error(status);\n \t\t\tthrow new FileNotFoundException(status);\n \t\t}\n\n \t}\n }", "void addDependsOnMe(DependencyItem dependency);", "private void createDependencies(){\n client = new FireStoreClient(this);\n authentication = new FirestoreAuthentication();\n }", "public static void main(String[] args) {\n AbstractFactory engineFactory = getFactory(\"ENGINE\");\n IEngines engine1 = engineFactory.getEngine(\"DIESEL\");\n engine1.installEngine();\n IEngines engine2 = engineFactory.getEngine(\"OTTO\");\n engine2.installEngine();\n IEngines engine3 = engineFactory.getEngine(\"ELECTRIC\");\n engine3.installEngine();\n IEngines engine4 = engineFactory.getEngine(\"TURBO\");\n engine4.installEngine();\n\n // This part of code checks the installation procedure of all types of tires which have been implemented;\n // Several variables are being declared and initialized;\n AbstractFactory tireFactory = getFactory(\"TIRES\");\n ITires tire1 = tireFactory.getTires(\"WINTER\");\n tire1.installTires();\n ITires tire2 = tireFactory.getTires(\"CASUAL\");\n tire2.installTires();\n ITires tire3 = tireFactory.getTires(\"RACING\");\n tire3.installTires();\n\n\n }", "private void limpiarDatos() {\n\t\t\n\t}", "protected static void processDependencies(com.tangosol.internal.net.security.SecurityDependencies deps)\n {\n // import com.tangosol.net.security.DefaultIdentityAsserter;\n // import com.tangosol.net.security.DefaultIdentityTransformer;\n // import com.tangosol.net.security.IdentityAsserter;\n // import com.tangosol.net.security.IdentityTransformer;\n \n // if asserter and transformer are not configured then use defaults\n IdentityAsserter asserter = deps.getIdentityAsserter();\n setIdentityAsserter(asserter == null ? DefaultIdentityAsserter.INSTANCE : asserter);\n \n IdentityTransformer transformer = deps.getIdentityTransformer();\n setIdentityTransformer(transformer == null ? DefaultIdentityTransformer.INSTANCE : transformer);\n \n setAuthorizer(deps.getAuthorizer());\n setSubjectScoped(deps.isSubjectScoped());\n }", "@Test\n public void testDependencyEvolutionOnJavaComplete() {\n Depinder depinder = new Depinder(\"D:\\\\Dev\\\\licenta\\\\thisIsIt\\\\depinder\\\\src\\\\test\\\\resources\\\\testFingerprints.json\");\n\n DepinderConfiguration.getInstance().setProperty(DepinderConstants.ROOT_FOLDER, ROOT_FOLDER);\n depinder.analyzeProject(ROOT_FOLDER, \"master\", false);\n\n DependencyRegistry dependencyRegistry = depinder.getDependencyRegistry();\n\n String dependencyID = \"Java Util, External Libraries\";\n Dependency dependency = dependencyRegistry.getById(dependencyID)\n .orElseThrow(() -> new IllegalArgumentException(dependencyID));\n\n// Set<TechnologySnapshot> snapshots = dependencyEvolutionAnalyzer.dependencyValueForCommits(dependency);\n//\n// Path filePath = Paths.get(\"D:\\\\Dev\\\\licenta\\\\thisIsIt\\\\depinder\\\\src\\\\test\\\\resources\\\\test_results.json\");\n// try {\n// writeSnapshotsToFile(snapshots, filePath);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n }", "@Override\n protected void injectDependencies(Context context) {\n }", "Requires getRequires();", "private void addDependency(Project project, Hashtable<?, ?> targets, String targetName) {\n if (dependencies.get(targetName) == null) {\n Set<String> deps = new HashSet<String>();\n dependencies.put(targetName, deps);\n Target target = (Target)targets.get(targetName);\n for (Enumeration<?> depIter = target.getDependencies();\n depIter.hasMoreElements(); ) {\n String depName = (String)depIter.nextElement();\n deps.add(depName);\n addDependency(project, targets, depName);\n }\n }\n }", "public void setup() {\r\n\r\n\t}", "private void create(String[] dependencies) throws ThinklabClientException {\r\n \t\tif (dependencies == null) {\r\n \t\t\tString dps = Configuration.getProperties().getProperty(\r\n \t\t\t\t\t\"default.project.dependencies\",\r\n \t\t\t\t\t\"org.integratedmodelling.thinklab.core\");\r\n \t\t\t\r\n \t\t\tdependencies = dps.split(\",\");\r\n \t\t}\r\n \t\t\r\n \t\tFile plugdir = Configuration.getProjectDirectory(_id);\r\n \t\tcreateManifest(plugdir, dependencies);\r\n \t\t\r\n \t}", "private void initSharedPre() {\n\t}", "protected void addDependencies(MRSubmissionRequest request) {\n // Guava\n request.addJarForClass(ThreadFactoryBuilder.class);\n }", "public static void initializeDiContainer() {\n addDependency(new CamelCaseConverter());\n addDependency(new JavadocGenerator());\n addDependency(new TemplateResolver());\n addDependency(new PreferenceStoreProvider());\n addDependency(new CurrentShellProvider());\n addDependency(new ITypeExtractor());\n addDependency(new DialogWrapper(getDependency(CurrentShellProvider.class)));\n addDependency(new PreferencesManager(getDependency(PreferenceStoreProvider.class)));\n addDependency(new ErrorHandlerHook(getDependency(DialogWrapper.class)));\n\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new GeneratedAnnotationPredicate());\n addDependency(new GenericModifierPredicate());\n addDependency(new IsPrivatePredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsStaticPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsPublicPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new GeneratedAnnotationContainingBodyDeclarationFilter(getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new PrivateConstructorRemover(getDependency(IsPrivatePredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new BuilderClassRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class),\n getDependency(IsPrivatePredicate.class),\n getDependency(IsStaticPredicate.class),\n getDependency(PreferencesManager.class)));\n addDependency(new JsonDeserializeRemover(getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderInterfaceRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new StaticBuilderMethodRemover(getDependency(IsStaticPredicate.class), getDependency(IsPublicPredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BuilderAstRemover(getDependencyList(BuilderRemoverChainItem.class)));\n\n addDependency(new BuilderRemover(getDependency(PreferencesManager.class), getDependency(ErrorHandlerHook.class),\n getDependency(BuilderAstRemover.class)));\n addDependency(new CompilationUnitSourceSetter());\n addDependency(new HandlerUtilWrapper());\n addDependency(new WorkingCopyManager());\n addDependency(new WorkingCopyManagerWrapper(getDependency(HandlerUtilWrapper.class)));\n addDependency(new CompilationUnitParser());\n addDependency(new GeneratedAnnotationPopulator(getDependency(PreferencesManager.class)));\n addDependency(new MarkerAnnotationAttacher());\n addDependency(new ImportRepository());\n addDependency(new ImportPopulator(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new BuilderMethodNameBuilder(getDependency(CamelCaseConverter.class),\n getDependency(PreferencesManager.class),\n getDependency(TemplateResolver.class)));\n addDependency(new PrivateConstructorAdderFragment());\n addDependency(new JsonPOJOBuilderAdderFragment(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new EmptyBuilderClassGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocGenerator.class),\n getDependency(TemplateResolver.class),\n getDependency(JsonPOJOBuilderAdderFragment.class)));\n addDependency(new BuildMethodBodyCreatorFragment());\n addDependency(new BuildMethodDeclarationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(TemplateResolver.class)));\n addDependency(new JavadocAdder(getDependency(JavadocGenerator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuildMethodCreatorFragment(getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(BuildMethodBodyCreatorFragment.class)));\n addDependency(new FullyQualifiedNameExtractor());\n addDependency(new StaticMethodInvocationFragment());\n addDependency(new OptionalInitializerChainItem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new BuiltInCollectionsInitializerChainitem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new FieldDeclarationPostProcessor(getDependency(PreferencesManager.class), getDependency(FullyQualifiedNameExtractor.class),\n getDependency(ImportRepository.class), getDependencyList(FieldDeclarationPostProcessorChainItem.class)));\n addDependency(new BuilderFieldAdderFragment(getDependency(FieldDeclarationPostProcessor.class)));\n addDependency(new WithMethodParameterCreatorFragment(getDependency(PreferencesManager.class), getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new RegularBuilderWithMethodAdderFragment(getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new BuilderFieldAccessCreatorFragment());\n addDependency(new TypeDeclarationToVariableNameConverter(getDependency(CamelCaseConverter.class)));\n addDependency(new FieldSetterAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new IsRegularBuilderInstanceCopyEnabledPredicate(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderCopyInstanceConstructorAdderFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new PublicConstructorWithMandatoryFieldsAdderFragment());\n addDependency(new RegularBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(RegularBuilderWithMethodAdderFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(RegularBuilderCopyInstanceConstructorAdderFragment.class),\n getDependency(PublicConstructorWithMandatoryFieldsAdderFragment.class)));\n addDependency(new StaticBuilderMethodSignatureGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new BlockWithNewBuilderCreationFragment());\n addDependency(\n new RegularBuilderBuilderMethodCreator(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new PrivateConstructorMethodDefinitionCreationFragment(getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new SuperFieldSetterMethodAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new PrivateConstructorBodyCreationFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(FieldSetterAdderFragment.class),\n getDependency(BuilderFieldAccessCreatorFragment.class),\n getDependency(SuperFieldSetterMethodAdderFragment.class)));\n addDependency(new ConstructorInsertionFragment());\n addDependency(new PrivateInitializingConstructorCreator(\n getDependency(PrivateConstructorMethodDefinitionCreationFragment.class),\n getDependency(PrivateConstructorBodyCreationFragment.class),\n getDependency(ConstructorInsertionFragment.class)));\n addDependency(new FieldPrefixSuffixPreferenceProvider(getDependency(PreferenceStoreProvider.class)));\n addDependency(new FieldNameToBuilderFieldNameConverter(getDependency(PreferencesManager.class),\n getDependency(FieldPrefixSuffixPreferenceProvider.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new TypeDeclarationFromSuperclassExtractor(getDependency(CompilationUnitParser.class),\n getDependency(ITypeExtractor.class)));\n addDependency(new BodyDeclarationVisibleFromPredicate());\n addDependency(new ApplicableFieldVisibilityFilter(getDependency(BodyDeclarationVisibleFromPredicate.class)));\n addDependency(new ClassFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(ApplicableFieldVisibilityFilter.class)));\n addDependency(new RecordFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class)));\n addDependency(new BodyDeclarationFinderUtil(getDependency(CamelCaseConverter.class)));\n addDependency(new SuperConstructorParameterCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(BodyDeclarationVisibleFromPredicate.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new SuperClassSetterFieldCollector(getDependency(PreferencesManager.class),\n getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(CamelCaseConverter.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new ApplicableBuilderFieldExtractor(Arrays.asList(\n getDependency(SuperConstructorParameterCollector.class),\n getDependency(ClassFieldCollector.class),\n getDependency(SuperClassSetterFieldCollector.class),\n getDependency(RecordFieldCollector.class))));\n addDependency(new ActiveJavaEditorOffsetProvider());\n addDependency(new ParentITypeExtractor());\n addDependency(new IsTypeApplicableForBuilderGenerationPredicate(getDependency(ParentITypeExtractor.class)));\n addDependency(new CurrentlySelectedApplicableClassesClassNameProvider(getDependency(ActiveJavaEditorOffsetProvider.class),\n getDependency(IsTypeApplicableForBuilderGenerationPredicate.class),\n getDependency(ParentITypeExtractor.class)));\n addDependency(new BuilderOwnerClassFinder(getDependency(CurrentlySelectedApplicableClassesClassNameProvider.class),\n getDependency(PreferencesManager.class), getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new BlockWithNewCopyInstanceConstructorCreationFragment());\n addDependency(new CopyInstanceBuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new RegularBuilderCopyInstanceBuilderMethodCreator(getDependency(BlockWithNewCopyInstanceConstructorCreationFragment.class),\n getDependency(CopyInstanceBuilderMethodDefinitionCreatorFragment.class),\n getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new JsonDeserializeAdder(getDependency(ImportRepository.class)));\n addDependency(new GlobalBuilderPostProcessor(getDependency(PreferencesManager.class), getDependency(JsonDeserializeAdder.class)));\n addDependency(new DefaultConstructorAppender(getDependency(ConstructorInsertionFragment.class), getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new RegularBuilderCompilationUnitGenerator(getDependency(RegularBuilderClassCreator.class),\n getDependency(RegularBuilderCopyInstanceBuilderMethodCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(RegularBuilderBuilderMethodCreator.class), getDependency(ImportPopulator.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new RegularBuilderUserPreferenceDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new RegularBuilderDialogDataConverter());\n addDependency(new RegularBuilderUserPreferenceConverter(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderUserPreferenceProvider(getDependency(RegularBuilderUserPreferenceDialogOpener.class),\n getDependency(PreferencesManager.class),\n getDependency(RegularBuilderDialogDataConverter.class),\n getDependency(RegularBuilderUserPreferenceConverter.class)));\n addDependency(new RegularBuilderCompilationUnitGeneratorBuilderFieldCollectingDecorator(getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(RegularBuilderCompilationUnitGenerator.class),\n getDependency(RegularBuilderUserPreferenceProvider.class)));\n addDependency(new IsEventOnJavaFilePredicate(getDependency(HandlerUtilWrapper.class)));\n\n // staged builder dependencies\n addDependency(new StagedBuilderInterfaceNameProvider(getDependency(PreferencesManager.class),\n getDependency(CamelCaseConverter.class),\n getDependency(TemplateResolver.class)));\n addDependency(new StagedBuilderWithMethodDefiniationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new StagedBuilderInterfaceTypeDefinitionCreatorFragment(getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderInterfaceCreatorFragment(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new StagedBuilderCreationBuilderMethodAdder(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new NewBuilderAndWithMethodCallCreationFragment());\n addDependency(new StagedBuilderCreationWithMethodAdder(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(NewBuilderAndWithMethodCallCreationFragment.class), getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderStaticBuilderCreatorMethodCreator(getDependency(StagedBuilderCreationBuilderMethodAdder.class),\n getDependency(StagedBuilderCreationWithMethodAdder.class),\n getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderWithMethodAdderFragment(\n getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new InterfaceSetter());\n addDependency(new StagedBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(StagedBuilderWithMethodAdderFragment.class),\n getDependency(InterfaceSetter.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new StagedBuilderStagePropertyInputDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new StagedBuilderStagePropertiesProvider(getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(StagedBuilderStagePropertyInputDialogOpener.class)));\n addDependency(new StagedBuilderCompilationUnitGenerator(getDependency(StagedBuilderClassCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(StagedBuilderStaticBuilderCreatorMethodCreator.class),\n getDependency(ImportPopulator.class),\n getDependency(StagedBuilderInterfaceCreatorFragment.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new StagedBuilderCompilationUnitGeneratorFieldCollectorDecorator(\n getDependency(StagedBuilderCompilationUnitGenerator.class),\n getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(StagedBuilderStagePropertiesProvider.class)));\n\n // Generator chain\n addDependency(new GenerateBuilderExecutorImpl(getDependency(CompilationUnitParser.class),\n getDependencyList(BuilderCompilationUnitGenerator.class),\n getDependency(IsEventOnJavaFilePredicate.class), getDependency(WorkingCopyManagerWrapper.class),\n getDependency(CompilationUnitSourceSetter.class),\n getDependency(ErrorHandlerHook.class),\n getDependency(BuilderOwnerClassFinder.class)));\n addDependency(new GenerateBuilderHandlerErrorHandlerDecorator(getDependency(GenerateBuilderExecutorImpl.class),\n getDependency(ErrorHandlerHook.class)));\n addDependency(new StatefulBeanHandler(getDependency(PreferenceStoreProvider.class),\n getDependency(WorkingCopyManagerWrapper.class), getDependency(ImportRepository.class)));\n addDependency(\n new StateInitializerGenerateBuilderExecutorDecorator(\n getDependency(GenerateBuilderHandlerErrorHandlerDecorator.class),\n getDependency(StatefulBeanHandler.class)));\n }", "public void loadDependencies() throws Exception {\n\n\t\t// Make seperate loading bar\n\t\tif (plugin.getConfigHandler().useAdvancedDependencyLogs()) {\n\t\t\tplugin.getLogger().info(\"---------------[Autorank Dependencies]---------------\");\n\t\t\tplugin.getLogger().info(\"Searching dependencies...\");\n\t\t}\n\n\t\t// Load all dependencies\n\t\tfor (final DependencyHandler depHandler : handlers.values()) {\n\t\t\t// Make sure to respect settings\n\t\t\tdepHandler.setup(plugin.getConfigHandler().useAdvancedDependencyLogs());\n\t\t}\n\n\t\tif (plugin.getConfigHandler().useAdvancedDependencyLogs()) {\n\t\t\tplugin.getLogger().info(\"Searching stats plugin...\");\n\t\t\tplugin.getLogger().info(\"\");\n\t\t}\n\n\t\t// Search a stats plugin.\n\t\tstatsPluginManager.searchStatsPlugin();\n\n\t\tif (plugin.getConfigHandler().useAdvancedDependencyLogs()) {\n\t\t\t// Make seperate stop loading bar\n\t\t\tplugin.getLogger().info(\"---------------[Autorank Dependencies]---------------\");\n\t\t}\n\n\t\tplugin.getLogger().info(\"Loaded libraries and dependencies\");\n\n\t}", "public void installDefaultLibraries() {\n //APACHE\n this.install(\"org.apache.httpcomponents\", \"httpcore-nio\", \"4.4.6\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpcore\", \"4.3.2\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpmime\", \"4.5.3\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpclient\", \"4.5.3\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpclient\", \"4.5.2\", Repository.CENTRAL);\n this.install(\"org.apache.commons\", \"commons-lang3\", \"3.5\", Repository.CENTRAL);\n\n this.install(\"commons-io\", \"commons-io\", \"2.6\", Repository.CENTRAL);\n this.install(\"commons-logging\", \"commons-logging\", \"1.2\", Repository.CENTRAL);\n this.install(\"commons-lang\", \"commons-lang\", \"2.5\", Repository.CENTRAL);\n this.install(\"org.slf4j\", \"slf4j-api\", \"1.7.25\", Repository.CENTRAL);\n this.install(\"org.apache.logging.log4j\", \"log4j-api\", \"2.5\", Repository.CENTRAL);\n this.install(\"log4j\", \"log4j\", \"1.2.17\", Repository.CENTRAL);\n\n //NETWORK\n this.install(\"io.netty\", \"netty-all\", \"4.1.44.Final\", Repository.CENTRAL);\n this.install(\"javax.servlet\", \"servlet-api\", \"2.5\", Repository.CENTRAL);\n\n //Logging and Console\n this.install(\"jline\", \"jline\", \"2.14.6\", Repository.CENTRAL);\n this.install(\"org.jline\", \"jline-terminal-jna\", \"3.18.0\", Repository.CENTRAL);\n this.install(\"org.jline\", \"jline-terminal\", \"3.19.0\", Repository.CENTRAL);\n this.install(\"ch.qos.logback\", \"logback-classic\", \"1.2.3\", Repository.CENTRAL);\n this.install(\"ch.qos.logback\", \"logback-core\", \"1.2.3\", Repository.CENTRAL);\n\n //Database\n this.install(\"mysql\", \"mysql-connector-java\", \"8.0.11\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"bson\", \"4.2.0\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongodb-driver\", \"3.12.7\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongodb-driver-core\", \"3.12.7\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongo-java-driver\", \"3.12.7\", Repository.CENTRAL);\n //this.install(\"com.arangodb\", \"arangodb-java-driver\", \"6.9.1\", Repository.CENTRAL);\n\n //OTHER\n this.install(\"org.openjfx\", \"javafx-base\", \"11\", Repository.CENTRAL);\n this.install(\"org.projectlombok\", \"lombok\", \"1.18.16\", Repository.CENTRAL);\n this.install(\"com.google.code.gson\", \"gson\", \"2.8.5\", Repository.CENTRAL);\n this.install(\"com.google.guava\", \"guava\", \"25.1-jre\", Repository.CENTRAL);\n this.install(\"com.google.j2objc\", \"j2objc-annotations\", \"1.1\", Repository.CENTRAL);\n this.install(\"com.google.protobuf\", \"protobuf-java\", \"3.14.0\", Repository.CENTRAL);\n this.install(\"dnsjava\", \"dnsjava\", \"3.3.1\", Repository.CENTRAL);\n\n this.loaded = true;\n }", "@Test()\n\tpublic void depend() {\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\tdriver.get(\"https://www.demoblaze.com/\");\n\t\tString title=driver.getTitle();\n\t\tSystem.out.println(title+Thread.currentThread().getId());\n//\t\tSystem.out.println(\"dependency\");\n//\t\tAssert.assertEquals(true, true);\n\t}", "protected void install() {\n\t\t//\n\t}", "private void writeClassDependencies(ClassDependencyInfo classDependencyInfo) {\n\n /* Writes all classes depended on plus their packages */\n Vector<String> classesDependedOn = classDependencyInfo.getEfferentClassDependencies();\n writeSpacesCorrespondingToNestedLevel(CLASS_DEPENDENCY_INFO_NEST_LEVEL);\n writer.println(\"uses:\");\n for(String classDependency : classesDependedOn) {\n\n int lastDecimal = classDependency.lastIndexOf(\".\");\n String classDependencyName = classDependency.substring(lastDecimal + 1);\n String pkgOfClassDependency = classDependency.substring(0, lastDecimal);\n\n /* Only writes the class dependency if it does not end with a '$'.\n * Dependency Analyzer tool will return dependencies even for anonymous inner classes which\n * will have a $ appended to the end of the name. These classes are ignored in the analysis.\n */\n if(!classDependencyName.contains(\"$\")) {\n /* Writes class dependency name followed by ':' */\n writeSpacesCorrespondingToNestedLevel(CLASS_DEPENDENCY_NAME_NEST_LEVEL);\n writer.println(classDependencyName + \":\");\n\n /* Writes package the dependency belongs to */\n writeSpacesCorrespondingToNestedLevel(CLASS_DEPENDENCY_NAME_NEST_LEVEL + 1);\n writer.println(\"package: \" + pkgOfClassDependency);\n }\n\n\n }\n\n /* Writes all classes that depend on this class plus their packages */\n Vector<String> classesThatDependOnThisClass = classDependencyInfo.getAfferentClassDependencies();\n writeSpacesCorrespondingToNestedLevel(CLASS_DEPENDENCY_INFO_NEST_LEVEL);\n writer.println(\"usedBy:\");\n for(String classDependency : classesThatDependOnThisClass) {\n\n int lastDecimal = classDependency.lastIndexOf(\".\");\n String classDependencyName = classDependency.substring(lastDecimal + 1);\n String pkgOfClassDependency = classDependency.substring(0, lastDecimal);\n\n /* Only writes the class dependency if it does not end with a '$'.\n * Dependency Analyzer tool will return dependencies even for anonymous inner classes which\n * will have a $ appended to the end of the name. These classes are ignored in the analysis.\n */\n if(!classDependencyName.contains(\"$\")) {\n /* Writes class dependency name followed by ':' */\n writeSpacesCorrespondingToNestedLevel(CLASS_DEPENDENCY_NAME_NEST_LEVEL);\n writer.println(classDependencyName + \":\");\n\n /* Writes package the dependency belongs to */\n writeSpacesCorrespondingToNestedLevel(CLASS_DEPENDENCY_NAME_NEST_LEVEL + 1);\n writer.println(\"package: \" + pkgOfClassDependency);\n }\n }\n }", "@Override\n public List<FileObject> createBuildSystem(Space s, List<FileObject> files) {\n TemplatePair tmpl_extra = new TemplatePair(\"linker_script\", s.getName());\n TemplatePair tmpl_extra1 = new TemplatePair(\"sdk_config\", \"sdk_config\");\n List<TemplatePair> make_addons = new ArrayList<>();\n make_addons.add(tmpl_extra);\n //make_addons.add(tmpl_extra1);\n List<FileObject> all_files = new ArrayList<>(super.createBuildSystem(s,files, NrfPlatformOptions.getInstance(), make_addons));\n\n all_files.add(makeLinkerScript(tmpl_extra));\n //all_files.add(makeConfigFile(tmpl_extra1, build_nrf_config_file(s)));\n\n return all_files;\n }", "@Override\n\tpublic void youNeedToImplementTheStaticFunctionCalled_getExtraDependencyModules() {\n\t\t\n\t}", "private void solveDependencies() {\n requiredProjects.clear();\n requiredProjects.addAll(getFlattenedRequiredProjects(selectedProjects));\n }", "private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }", "default void buildMainSpace() throws Exception {\n buildMainBuildModules();\n buildMainCheckModules();\n buildMainGenerateAPIDocumentation();\n buildMainGenerateCustomRuntimeImage();\n }", "public void setDependsOn(List<Integer> dependsOn) {\r\n this.dependsOn = dependsOn;\r\n }", "public void inicializarCasillasLibres() {\r\n\t\tfor(int i = 0; i<casillas.length; i++) {\r\n\t\t\tfor(int j = 0; j<casillas[0].length;j++) {\r\n\t\t\t\tif(casillas[i][j] == null) {\r\n\t\t\t\t\tcasillas[i][j] = new Casilla(Casilla.LIBRE);\r\n\t\t\t\t\tcasillas[i][j].modificarValor(cantidadMinasAlrededor(i+1, j+1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public abstract List<Dependency> selectDependencies( Class<?> clazz );", "public abstract void injectDependencies(@SuppressWarnings(\"rawtypes\") Feature feature);", "public void setup() {\n }", "private void buildClassPath() throws InterruptedException, IOException, CheckedAnalysisException {\n IClassPathBuilder builder = classFactory.createClassPathBuilder(bugReporter);\n\n for (String path : project.getFileArray()) {\n builder.addCodeBase(classFactory.createFilesystemCodeBaseLocator(path), true);\n }\n for (String path : project.getAuxClasspathEntryList()) {\n builder.addCodeBase(classFactory.createFilesystemCodeBaseLocator(path), false);\n }\n\n builder.scanNestedArchives(analysisOptions.scanNestedArchives);\n\n builder.build(classPath, progress);\n\n appClassList = builder.getAppClassList();\n\n if (PROGRESS) {\n System.out.println(appClassList.size() + \" classes scanned\");\n }\n\n // If any of the application codebases contain source code,\n // add them to the source path.\n // Also, use the last modified time of application codebases\n // to set the project timestamp.\n for (Iterator<? extends ICodeBase> i = classPath.appCodeBaseIterator(); i.hasNext();) {\n ICodeBase appCodeBase = i.next();\n\n if (appCodeBase.containsSourceFiles()) {\n String pathName = appCodeBase.getPathName();\n if (pathName != null) {\n project.addSourceDir(pathName);\n }\n }\n\n project.addTimestamp(appCodeBase.getLastModifiedTime());\n }\n\n }", "private void init() {\n\t\tMvcs.scanPackagePath = analyseScanPath();\n\t\tif(StringHandler.isEmpty(Mvcs.scanPackagePath))\n\t\t\tthrow new RuntimeException(\"No scan path has been set! you need to setup ScanPackage annotation\");\n\t\t\n\t\t//put all class into the list\n\t\tList<String> allClassNames = scanAllClassNames();\n\t\tif(StringHandler.isEmpty(allClassNames)) //some loader may have no return value \n\t\t\treturn ;\n\t\t\n\t\tfor(String pkgPath : allClassNames){\n\t\t\tlist.add(ClassUtil.getClass(pkgPath));\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tHamburger cheeseBurger = new Hamburger(\"CheeseBurger\");\r\n\t\tHamburger maxiBurger = new Hamburger(\"MaxiBurger\");\r\n\t\tAccompagnement accompagnement = new Accompagnement(\"Frites\");\r\n\t\tBoisson boissonCoca = new Boisson(\"Coca\");\r\n\t\tBoisson boissonOrange = new Boisson(\"Orange\");\r\n\r\n\t\t// Mise en place de l'environnement\r\n\t\tControlCreerProfil controlCreerProfil = new ControlCreerProfil();\r\n\t\tcontrolCreerProfil.creerProfil(ProfilUtilisateur.PERSONNEL, \"Dupond\", \"Jacques\", \"jdu\");\r\n\r\n\t\t// Connexion du cuisinier\r\n\t\tControlSIdentifier controlSIdentifier = new ControlSIdentifier();\r\n\t\tint numCuisinier = controlSIdentifier.sIdentifier(ProfilUtilisateur.PERSONNEL, \"Jacques.Dupond\", \"jdu\");\r\n\r\n\t\t// Initialisation controleur du cas & cas Inclus/etendu\r\n\t\tControlVerifierIdentification controlVerifierIdentification = new ControlVerifierIdentification();\r\n\t\tcontrolVerifierIdentification.verifierIdentification(ProfilUtilisateur.PERSONNEL, numCuisinier);\r\n\r\n\t\t// cas visualiser commande du jour\r\n\t\tControlVisualiserCommandeJour controlVisualiserCommandeJour = new ControlVisualiserCommandeJour(\r\n\t\t\t\tcontrolVerifierIdentification);\r\n\t\tBoundaryVisualiserCommandeJour boundaryVisualiserCommandeJour = new BoundaryVisualiserCommandeJour(\r\n\t\t\t\tcontrolVisualiserCommandeJour);\r\n\t\tboundaryVisualiserCommandeJour.visualiserCommandeJour(numCuisinier);\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(1500);\r\n\t\t\tSystem.out.println(\"Ecriture des commandes dans le fichier\");\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// extrait cas commander\r\n\t\tBDCommande bdCommande = BDCommande.getInstance();\r\n\t\tbdCommande.enregistrerCommande(1, cheeseBurger, accompagnement, boissonCoca);\r\n\t\tbdCommande.enregistrerCommande(1, maxiBurger, accompagnement, boissonOrange);\r\n\r\n\t\t// Ecriture des commandes dans le fichier\r\n\t\t// Commande n°1 : CheeseBurger, Frites, Coca\r\n\t\t// Commande n°2 : MaxiBurger, Frites, Orange\r\n\t}", "private JacobUtils() {}", "public static void main(String[] args) throws IOException {\n\n _project _sc = _project.of();\n //reads from a maven-central jar file\n _downloadArchiveConsumer.of(\"https://search.maven.org/remotecontent?filepath=com/github/javaparser/javaparser-core/3.15.18/javaparser-core-3.15.18-sources.jar\",\n (ZipEntry ze, InputStream is)-> {\n if( ze.getName().endsWith(\".java\")){\n _sc.add( _codeUnit.of(is) );\n }\n });\n System.out.println( _sc.size() );\n\n _project _src = _githubProject.of(\"https://github.com/edefazio/bincat\").load();\n //_sources _src = _sources.of();\n //_downloadArchive _da = _downloadArchive.of(url, (ZipEntry ze,InputStream is)-> {\n // if( ze.getName().endsWith(\".java\")){\n // _src.add( _codeUnit.of(is) );\n // }\n //});\n /*\n try( InputStream inputStream = url.openStream();\n ZipInputStream zis = new ZipInputStream(inputStream) ) {\n\n byte[] buffer = new byte[2048];\n\n while (zis.available() > 0) {\n ZipEntry ze = zis.getNextEntry();\n System.out.println(\"reading \" + ze.getName());\n\n if( ze.isDirectory() ){\n ze.\n } else if( ze.)\n\n if (!ze.isDirectory() && ze.getName().endsWith(\".java\")) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int len;\n while ((len = zis.read(buffer)) > 0) {\n baos.write(buffer, 0, len);\n }\n try {\n System.out.println(\"adding\" + ze.getName());\n _src.add(_codeUnit.of(baos.toString()));\n } catch (Exception e) {\n throw new _ioException(\"could not read from entry \" + ze.getName());\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n */\n\n System.out.println( \"finished reading \"+ _src.size());\n }", "protected void installComponents() {\n\t}", "private void setupAllMafiosis()\n {\n }", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "protected void setup() {\r\n \t//inizializza gli attributi dell'iniziatore in base ai valori dei parametri\r\n Object[] args = this.getArguments();\r\n \t\tif (args != null)\r\n \t\t{\r\n \t\t\tthis.goodName = (String) args[0];\r\n \t\t\tthis.price = (int) args[1];\r\n \t\t\tthis.reservePrice = (int) args[2];\r\n \t\t\tthis.dif = (int) args[3];\r\n \t\t\tthis.quantity = (int) args[4];\r\n \t\t\tthis.msWait = (int) args[5];\r\n \t\t} \t\t\r\n\r\n manager.registerLanguage(codec);\r\n manager.registerOntology(ontology);\r\n \r\n //inizializza il bene oggetto dell'asta\r\n good = new Good(goodName, price, reservePrice, quantity);\r\n \r\n //cerca ed inserisce nell'ArrayList gli eventuali partecipanti\r\n findBidders(); \r\n \r\n //viene aggiunto l'apposito behaviour\r\n addBehaviour(new BehaviourInitiator(this));\r\n\r\n System.out.println(\"Initiator \" + this.getLocalName() + \" avviato\");\r\n }", "private void ImportLibrary(){\n for(int i = 0; i < refact.size(); i++){\n if(refact.get(i).contains(\"import\")){\n for(String library : libraries){\n refact.add(i, library + \"\\r\");\n }\n break;\n }\n }\n\n\n }", "public IPath[] getAdditionalDependencies();", "private static void buildFramework() {\n \tLOG.info(\"Begin building of shared framework.\");\n \t\n \tLOG.debug(\"Create a IterativeFileReader.\");\n \tIterativeFileReader iterativeFileReader = (IterativeFileReader) ReaderFactory.instance().getIterativeFileReader();\n \tLOG.debug(\"Create a TextFileLineReader.\");\n \tTextFileLineReader textFileLineReader = (TextFileLineReader) ReaderFactory.instance().getTextFileLineReader();\n \t\n \t// Setup IterativeFileReader\n \tFile dir = new File(clArgs.buildFrameworkInDir);\n \titerativeFileReader.setFile(dir);\n \titerativeFileReader.setFileFilter(FileUtil.acceptOnlyClusterFilesFilter());\n \titerativeFileReader.setReader(textFileLineReader);\n \t\n \t// Setup processor\n \tLOG.debug(\"Create a SharedFrameworkProcessor.\");\n \tSharedFrameworkProcessor sharedFrameworkProcessor = new SharedFrameworkProcessor();\n \ttextFileLineReader.setProcessor(sharedFrameworkProcessor);\n \t// Get informed about the finishing of each cluster (file) to reset the processor's status\n \ttextFileLineReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t// Get informed about the finishing of all clusters to give each cluster in the generated graph a pretty id\n \titerativeFileReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t\n \titerativeFileReader.read();\n \t\n \tLOG.info(\"Finished building shared framework.\");\n }", "@Override\n\tprotected void addDependencies() {\n\t\tSelectedParameter selectedParameter = (SelectedParameter) kernelType.getValue();\n\t\tSelectedParameterItem item = selectedParameter.getItems().get(selectedParameter.getSelectedIndex());\n\n\t\tif (linearKernel.equals(item)) {\n\t\t\taddDependency(\"linearKernel\");\n\t\t} else if (polynomialKernel.equals(item)) {\n\t\t\taddDependency(\"polynomialKernel\");\n\t\t} else if (radialBasisKernel.equals(item)) {\n\t\t\taddDependency(\"radialBasisKernel\");\n\t\t} else if (sigmoidKernel.equals(item)) {\n\t\t\taddDependency(\"sigmoidKernel\");\n\t\t}\n\t}", "public void addDependsfileset( final LibFileSet fileSet )\n {\n m_dependsFilesets.add( fileSet );\n }", "@Before\n public void setUp() {\n configuration.resolveAdditionalDependenciesFromClassPath(false);\n }", "public static void main(String [] args){\n \n \tpart1();\n \n \tpart2();\n \n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "public static void main(String[] args) {\n rellenarDatos();\n \n //ejercicio01();\n //ejercicio02();\n ejercicio03();\n }", "Set<String> getDependencies();", "public void execute()\n throws BuildException {\n this.validator = new TestClassValidator.DefaultClassValidator();\n this.validator.setListener(new TestClassValidator.ClassValidatorListener() {\n public void info(String message) {\n log(\"INFO> \" + message, verbosity);\n System.out.println(\"INFO> \" + message);\n }\n\n public void warning(String message) {\n log(\"WARNING> \" + message, verbosity);\n System.out.println(\"WARNING> \" + message);\n }\n\n public void error(String message) {\n log(\"ERROR> \" + message, verbosity);\n System.out.println(\"ERROR> \" + message);\n }\n });\n\n\n if (classpath != null) {\n classpath.setProject(project);\n this.loader = new AntClassLoader(project, classpath);\n }\n\n log(TestClassValidator.BANNER, Project.MSG_VERBOSE);\n System.out.println(TestClassValidator.BANNER);\n int count = 0;\n for (int i = 0; i < filesets.size(); i++) {\n FileSet fs = (FileSet) filesets.get(i);\n\n try {\n DirectoryScanner ds = fs.getDirectoryScanner(project);\n ds.scan();\n\n String[] files = ds.getIncludedFiles();\n\n for (int k = 0; k < files.length; k++) {\n String pathname = files[k];\n if (pathname.endsWith(\".class\")) {\n String classname = pathname.substring(0, pathname.length() - \".class\".length()).replace(File.separatorChar, '.');\n processFile(classname);\n }\n }\n count += files.length;\n } catch (BuildException e) {\n if (failonerror) {\n throw e;\n } else {\n log(e.getMessage(), quiet ? Project.MSG_VERBOSE : Project.MSG_WARN);\n }\n } catch (ClassNotFoundException e) {\n if (failonerror) {\n throw new BuildException(e);\n } else {\n log(e.getMessage(), quiet ? Project.MSG_VERBOSE : Project.MSG_WARN);\n }\n }\n log(\"Number of classes: \" + count, Project.MSG_VERBOSE);\n System.out.println(\"Number of classes: \" + count);\n }\n }", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "protected void getRequires() {\n System.out.println(\"\\nRequires: \");\n /******************************************/\n myIterator.next();\n myRequires = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }", "public static void main(String[] args) throws Throwable {\n\n Main object = new Main();\n String target = \"4\";\n Map<String, List<String>> deps = new HashMap<>();\n List<String> a = new ArrayList<>();\n a.add(\"3\");\n a.add(\"2\");\n deps.put(\"4\", a);\n List<String> b = new ArrayList<>();\n b.add(\"1\");\n deps.put(\"3\",b);\n deps.put(\"2\",b);\n List<String> res = object.buildOrder(\"4\",deps);\n\n System.out.print(\"res\" + Arrays.toString(res.toArray()));\n\n }", "protected void setup() {\r\n }", "protected void installComponents() {\n }", "public void execute( final Set pRemovable, final Set pDependencies, final Set pRelocateDependencies )\n throws MojoExecutionException \n {\n \t\n for ( Iterator i = pDependencies.iterator(); i.hasNext(); )\n {\n final Artifact dependency = (Artifact) i.next();\n \n final Map variables = new HashMap();\n \n variables.put( \"artifactId\", dependency.getArtifactId() );\n variables.put( \"groupId\", dependency.getGroupId() );\n variables.put( \"version\", dependency.getVersion() );\n \n final String newName = replaceVariables( variables, name ); \n \t \t\n final File inputJar = dependency.getFile();\n final File outputJar = new File( buildDirectory, newName );\n \n try\n {\n \tfinal Jar jar = new Jar( inputJar, false );\n \t\n \tJarUtils.processJars(\n \t\t\tnew Jar[] { jar },\n \t\t\tnew ResourceHandler() {\n \t\t\t\t\n\t\t\t\t\t\t\tpublic void onStartProcessing( JarOutputStream pOutput )\n\t\t\t\t\t\t\t\tthrows IOException\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpublic void onStartJar( Jar pJar, JarOutputStream pOutput )\n\t\t\t\t\t\t\t\tthrows IOException\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpublic InputStream onResource( Jar jar, String oldName, String newName, Version[] versions, InputStream inputStream )\n\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\tif ( jar != versions[0].getJar() )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// only process the first version of it\n\n\t\t\t\t\t\t\t\t\tgetLog().info( \"Ignoring resource \" + oldName);\n\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tfinal String clazzName = oldName.replace( '/' , '.' ).substring( 0, oldName.length() - \".class\".length() );\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ( pRemovable.contains(new Clazz ( clazzName ) ) )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ( isInKeepUnusedClassesFromArtifacts( dependency ) )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\treturn inputStream;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif ( isInKeepUnusedClasses( name ) )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\treturn inputStream;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn inputStream;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpublic void onStopJar(Jar pJar, JarOutputStream pOutput)\n\t\t\t\t\t\t\t\tthrows IOException\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpublic void onStopProcessing(JarOutputStream pOutput)\n\t\t\t\t\t\t\t\tthrows IOException\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t}\n \t\t\t\t\n \t\t\t},\n \t\t\tnew FileOutputStream( outputJar ),\n \t\t\tnew Console()\n \t\t\t{\n\t\t\t\t\t\t\tpublic void println( String pString )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tgetLog().debug( pString );\n\t\t\t\t\t\t\t} \t\t\n \t\t\t}\n \t\t);\n }\n catch ( ZipException ze )\n {\n getLog().info( \"No references to jar \" + inputJar.getName() + \". You can safely omit that dependency.\" );\n \n if ( outputJar.exists() )\n {\n outputJar.delete();\n }\n continue;\n }\n catch ( Exception e )\n {\n throw new MojoExecutionException( \"Could not create mini jar \" + outputJar, e );\n }\n \n getLog().info( \"Original length of \" + inputJar.getName() + \" was \" + inputJar.length() + \" bytes. \" + \"Was able shrink it to \" + outputJar.getName() + \" at \" + outputJar.length() + \" bytes (\" + (int) ( 100 * outputJar.length() / inputJar.length() ) + \"%)\" );\n }\n }", "String getApplicationDependencies();", "ConjuntoTDA claves();", "protected abstract void injectDependencies(ApplicationComponent applicationComponent);", "@Before\n public void before() throws ConfigurationException {\n\n\n List<Dependency> deps = new ArrayList<>();\n deps.add(new Dependency(\"compile\",\"org.apache.commons\",\"commons-lang3\",\"3.3.2\",false));\n\n final BaseHierarchicalConfiguration load = YamlConfig.load(new File(\"src/test/resources/test.yml\"));\n\n Build build = new BuildImpl(load);\n Application app = new ApplicationImpl(load);\n context = new BuildContextImpl(cli,app,build,\"development\",deps,null);\n assertNotNull(context);\n }", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "private void setup() throws Exception {\n\t}", "public static void load() throws IOException {\n ClassPath classPath = ClassPath.from(ClassLoader.getSystemClassLoader());\n //System.out.println(\"Length:\"+classPath.getTopLevelClasses(\"util\").size());\n for (ClassPath.ClassInfo classInfo : classPath.getTopLevelClasses(\"util\")) {\n Scene.v().addBasicClass(classInfo.getName(), SootClass.BODIES);\n sootClasses.add(classInfo.getName());\n }\n }", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}", "private static void addDependency(TopologyElement te,\n BOperatorInvocation bop, Object function) {\n te.topology().getDependencyResolver().addJarDependency(bop, function);\n }", "public DepControlar() {\n \n initComponents();\n depservice = new DepService();\n }", "static void feladat3() {\n\t}", "Dependency createDependency();", "Dependency createDependency();", "private void endRequire()\n {\n\n }", "public ListaDependente() {\n initComponents();\n carregarTabela();\n }", "public void testMain() {\n System.out.println(\"main\");\n String[] args = new String[]{\n \n \"-out\", \"ausgabe.jar\",\n \"-mc\", \"inteco.Saukopf\",\n// \"-m manifest.mf \" \n// \"-v\",\n \"-l\",\n \"-lib\", \"CustJar.jar\", \"./asm.jar\", \"D:\\\\Development\\\\Java\\\\Componenten\\\\Hibernate\\\\hibernate-3.0.2\\\\hibernate-3.0\\\\lib\"\n // -mainclass\n };\n CustJar.main(args);\n\n \n }", "public static void main(String[] args) throws IOException {\r\n\t\tString outputDirectory;\r\n\t\tString parsedFileName;\r\n\t\tString normalizedFileName;\r\n\r\n\t\t// build acquis\r\n\t\toutputDirectory = Config.get().outputDirectory + \"brown/\";\r\n\t\tparsedFileName = \"parsed.txt\";\r\n\t\tnormalizedFileName = \"normalized.txt\";\r\n\t\tString[] languages = Config.get().acquisLanguages.split(\",\");\r\n\t\tnew File(outputDirectory).mkdirs();\r\n\r\n\t\tfor (String language : languages) {\r\n\t\t\tString outputPath = outputDirectory + language + \"/\";\r\n\t\t\tnew File(outputPath).mkdirs();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tAcquisMain.run(Config.get().acquisInputDirectory, outputPath\r\n\t\t\t\t\t\t+ parsedFileName, outputPath + normalizedFileName,\r\n\t\t\t\t\t\tlanguage);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// // build acquis\r\n\t\t// outputDirectory = Config.get().outputDirectory + \"acquis/\";\r\n\t\t// parsedFileName = \"parsed.txt\";\r\n\t\t// normalizedFileName = \"normalized.txt\";\r\n\t\t// String[] languages = Config.get().acquisLanguages.split(\",\");\r\n\t\t// new File(outputDirectory).mkdirs();\r\n\t\t//\r\n\t\t// for (String language : languages) {\r\n\t\t// String outputPath = outputDirectory + language + \"/\";\r\n\t\t// new File(outputPath).mkdirs();\r\n\t\t//\r\n\t\t// try {\r\n\t\t// AcquisMain.run(Config.get().acquisInputDirectory,\r\n\t\t// outputPath + parsedFileName, outputPath\r\n\t\t// + normalizedFileName, language);\r\n\t\t// } catch (IOException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\t// }\r\n\r\n\t\t// // build enron\r\n\t\t// outputDirectory = Config.get().outputDirectory + \"enron/en/\";\r\n\t\t// parsedFileName = \"parsed.txt\";\r\n\t\t// normalizedFileName = \"normalized.txt\";\r\n\t\t// new File(outputDirectory).mkdirs();\r\n\t\t//\r\n\t\t// try {\r\n\t\t// EnronMain.run(Config.get().enronInputDirectory, outputDirectory\r\n\t\t// + parsedFileName, outputDirectory + normalizedFileName);\r\n\t\t// } catch (IOException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\t//\r\n\t\t// // build reuters\r\n\t\t// outputDirectory = Config.get().outputDirectory + \"reuters/en/\";\r\n\t\t// parsedFileName = \"parsed.txt\";\r\n\t\t// normalizedFileName = \"normalized.txt\";\r\n\t\t// new File(outputDirectory).mkdirs();\r\n\t\t//\r\n\t\t// try {\r\n\t\t// ReutersMain.run(Config.get().reutersInputDirectory,\r\n\t\t// outputDirectory + parsedFileName, outputDirectory\r\n\t\t// + normalizedFileName);\r\n\t\t// } catch (IOException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t}", "public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}", "public static void setup()\n\t{\n\t\tregisterEvent(calico.plugins.events.clients.ClientConnect.class);\n\t\tregisterEvent(calico.plugins.events.clients.ClientDisconnect.class);\n\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapCreate.class);\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapDelete.class);\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapReload.class);\n\t\t\n\t\t\n\t\t//System.out.println(\"LOAD PLUGINS: \"+COptions.server.plugins);\n\t\t\n\t\tlogger.debug(\"Loading plugins\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tPluginFinder pluginFinder = new PluginFinder();\n\t\t\tpluginFinder.search(\"plugins/\");\n\t\t\tList<Class<?>> pluginCollection = pluginFinder.getPluginCollection();\n\t\t\tfor (Class<?> plugin: pluginCollection)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Loading \" + plugin.getName());\n\t\t\t\tregisterPlugin(plugin);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString[] pluginsToLoad = COptions.server.plugins.split(\",\");\n\t\t\n//\t\tif(pluginsToLoad.length>0)\n//\t\t{\n//\t\t\tfor(int i=0;i<pluginsToLoad.length;i++)\n//\t\t\t{\n//\t\t\t\ttry\n//\t\t\t\t{\n//\t\t\t\t\tClass<?> pluginClass = Class.forName(pluginsToLoad[i].trim());\n//\t\t\t\t\tregisterPlugin(pluginClass);\n//\t\t\t\t}\n//\t\t\t\tcatch(Exception e)\n//\t\t\t\t{\n//\t\t\t\t\tlogger.error(\"Could not load plugin \"+pluginsToLoad[i].trim());\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\t\n\t\n\t}", "public Preparation(){\n\t\ttry {\n\t\t\t\n\t\t\tValueObjectRetrieve valueObjectRetrieve = new ValueObjectRetrieve(\"StaticData\",new Integer(1),remotehosturi);\n\t\t\tStaticData staticData = (StaticData)valueObjectRetrieve.getValueObject();\n\t\t\tHttpPost httpPost = new HttpPost(\"name\",nameofj2eeproject,null,remotehosturi,\"J2eeProject\");\n\t\t\tSystem.err.println(httpPost.isOk());\n\t\t\t\n\t\t\tFile file = new File(eclipseroot + nameofj2eeproject + \"/mda\");\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\tFile webxmlfile = new File(eclipseroot + nameofj2eeproject + \"/WEB-INF/web.xml\");\n\t\t\t\n\t\t\tFileDownload fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/base.css\",remotehosturi + \"/base.css\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/createscheme.bat\",remotehosturi + \"/mda/createscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/dropscheme.bat\",remotehosturi + \"/mda/dropscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/h.jsp\",remotehosturi + \"/h.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/index.jsp\",remotehosturi + \"/index.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/menu.jsp\",remotehosturi + \"/menu.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/mysql-connector-java-3.1.12-bin.jar\",remotehosturi + \"/mda/mysql-connector-java-3.1.12-bin.jar\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/systemheader.jsp\",remotehosturi + \"/systemheader.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/web.xml\",remotehosturi + \"/WEB-INF/web.xml\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/.classpath\",remotehosturi + \"/.classpath\");\n\n\t\t\t \n\t\t\tHttpClient httpClient = new HttpClient(); \n\t\t\tGetMethod getMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/copycorejar.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString contentofcopycorejat_bat = getMethod.getResponseBodyAsString();\n\t\t\tcontentofcopycorejat_bat = contentofcopycorejat_bat.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile copycorejat_batfile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\tFileWriter writer = new FileWriter(copycorejat_batfile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n\t\t\t\n\t\t\thttpClient = new HttpClient(); \n\t\t\tgetMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/createscheme.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString content = getMethod.getResponseBodyAsString();\n\t\t\tcontent = content.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile instancefile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\twriter = new FileWriter(instancefile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n//\t\t\tFile base_css = new File(eclipseroot + nameofj2eeproject + \"base.css\");\n\t\t\t\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test(enabled= true,description = \"Create Assets/Deals and add pre-requites data which is given in Manual Test Case\")\r\n\tpublic void preRequisites() throws Exception {\r\n\r\n\t\t\r\n\t}", "public void inici() {\n\t\n if (filename == null) {\n \t//System.err.println(Resources.getResource(\"./modelo/cube.obj\"));\n \t filename = Resources.getResource(\"./modelo/cube.obj\");\n if (filename == null) {\n System.err.println(\"modelo/cube.obj nots found\");\n System.exit(1);\n }\n\t}\n\t}", "public void setup()\n {\n }", "public static void main(String[] args) {\n\t\tAlarmaLibro a = new AlarmaLibro();\n\t\ta.attach(new Compras());\n\t\ta.attach(new Administracion());\n\t\ta.attach(new Stock());\n\t\t\n\t\tLibro libro = new Libro();\n\t\tlibro.setEstado(\"MALO\");\n\t\t\n\t\tBiblioteca b = new Biblioteca();\n\t\tb.devolverLibro(libro);\n\t\t\n\t}", "public static void main(String[] args){\n\n PartTwo p2 = new PartTwo();\n p2.start();\n\n PartThree p3 = new PartThree();\n p3.run(p2.getNodes());\n\n\n }", "public static void main(String[] args) {\n CandidatoServices candidatoServices = new CandidatoServices();\n candidatoServices.consultarVagas();\n //teste de candidatar a vaga\n Candidato usuCandidato = new Candidato(1, \"123\", \"321\", 25, \"[email protected]\", \"senha465\", \"Leonardo\");\n ProcessoSeletivo processo = new ProcessoSeletivo(new ArrayList<Candidatura>(),new Vaga(\"analista\",2000,\n new Empresa(\"123\",\"rua dois\")),\"Processo 1\");\n candidatoServices.candidatarVaga(processo, usuCandidato);\n //teste de acompanhamento de processo seletivo\n candidatoServices.acompanharProcessoSeletivo(new Candidatura(usuCandidato,StatusCandidatura.EMPROCESSOSELETIVO),\n new Entrevista(\"10/10/2020\",\"Rua tres\",\"12:00\",usuCandidato), processo);\n\n //testes de servicos da agencia\n //teste de consultar os candidatos em cada processo seletivo\n AgenciaServices agenciaServices = new AgenciaServices();\n agenciaServices.consultarCandidatos();\n //teste de cadasatrar uma vaga\n agenciaServices.cadastrarVaga(new Vaga(\"designer\",5000,new Empresa(\"123\",\"rua dois\")), \"Processo final\");\n //teste de gerenciamento dos processos seletivos\n agenciaServices.gerenciarProcessoSeletivo();\n }", "protected void setup() {\n\t\tgetContentManager().registerOntology(JADEManagementOntology.getInstance());\r\n getContentManager().registerLanguage(new SLCodec(), FIPANames.ContentLanguage.FIPA_SL0);\r\n\t\tSystem.out.println(\"Agent FixCop cree : \"+getLocalName());\r\n\t\tObject[] args = getArguments();\r\n\t\tList<String> itinerary = (List<String>) args[0];\r\n\t\tint period = (int) args[1];\r\n\t\t\r\n\t\t\r\n\t// POLICIER STATIONNAIRE DO THE CYCLIC BEHAVIOUR TO SCAN THE ROOT , IF THE INTRUDER IS IN ROOT, POLICIER STATIO KILLS HIM.\r\n addBehaviour(new StationScanRootBehaviour(this));\r\n\r\n\t// RESPAWN ANOTHER POLICIER MOBILE AFTER EACH POLICIER MOBILE's LIFETIME DURATION ELAPSES.\r\n addBehaviour(new RespawnCopBehaviour(this, period, itinerary));\r\n\r\n\t}", "void preProcess();", "public void initFromClasspath() throws IOException {\n \t\tcontactNames = loadFromClassPath(\"contactNames\");\n \t\tgroupNames = loadFromClassPath(\"groupNames\");\n \t\tmessageWords = loadFromClassPath(\"messageWords\");\n \t}" ]
[ "0.640413", "0.6018781", "0.5997769", "0.5883742", "0.5870112", "0.58374256", "0.5786845", "0.5638901", "0.5632816", "0.5630477", "0.5584311", "0.55225533", "0.55030495", "0.5450542", "0.54186326", "0.54090595", "0.5397164", "0.53884304", "0.53809524", "0.5335349", "0.53332895", "0.53185487", "0.5315978", "0.5302565", "0.52918494", "0.52856225", "0.5262145", "0.5251674", "0.5235805", "0.5230908", "0.5222464", "0.5214292", "0.51757795", "0.51557106", "0.5150501", "0.5145741", "0.51448965", "0.5141892", "0.5138166", "0.5137427", "0.5126443", "0.5122078", "0.5114399", "0.5113961", "0.5107346", "0.5101859", "0.5101817", "0.5101216", "0.5101216", "0.5101216", "0.5101216", "0.5101216", "0.50977206", "0.50959396", "0.5094767", "0.50921655", "0.508705", "0.50812626", "0.50793195", "0.5078471", "0.5054272", "0.5049678", "0.50495225", "0.5045938", "0.5045156", "0.503609", "0.50278294", "0.5024058", "0.50177056", "0.5010055", "0.5008986", "0.50051737", "0.49994737", "0.49992776", "0.4994836", "0.4994836", "0.49934885", "0.49927357", "0.4987891", "0.4987867", "0.4984367", "0.49745008", "0.49722445", "0.49722445", "0.49684682", "0.4964673", "0.496337", "0.49611846", "0.4958054", "0.49485338", "0.4947694", "0.49441987", "0.49374682", "0.49336946", "0.49274978", "0.49254605", "0.4921136", "0.49163327", "0.4915582", "0.49155802" ]
0.51728857
33
Metodo que inserta un dentro de la pagina web.
@SuppressWarnings("unchecked") public void insertarLineaSeparacion() { Tag hr = new Tag("hr"); hr.addAttribute(new Attribute("style", "width: 100%; height: 2px;")); // <hr style="width: 100%; height: 2px;"> body.add(hr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}", "private void insertar(String nombre, String Contra) {\n ini.Tabla.insertar(nombre, Contra);\n AVLTree arbol = new AVLTree();\n Nod nodo=null;\n ini.ListaGen.append(0,0,\"\\\\\",nombre,\"\\\\\",\"\\\\\",arbol,\"C\",nodo); \n \n }", "@Override\r\n\tpublic void doInsert(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "public void insere (String nome)\n {\n //TODO\n }", "protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }", "public void inserir(Comentario c);", "@Override\n\t\tpublic void insert() {\n\t\t\tSystem.out.println(\"새로운 등록\");\n\t\t}", "private void insert(HttpServletRequest request)throws Exception {\n\t\tPedido p = new Pedido();\r\n\t\tCliente c = new Cliente();\r\n\t\tCancion ca = new Cancion();\r\n\t\tp.setCod_pedido(request.getParameter(\"codigo\"));\r\n\t\tca.setCod_cancion(request.getParameter(\"cod_cancion\"));\r\n\t\tc.setCod_cliente(request.getParameter(\"cod_cliente\"));\r\n\t\tp.setCan(ca);\r\n\t\tp.setCl(c);\r\n\t\t\r\n\t\tpdmodel.RegistrarPedido(p);\r\n\t\t\r\n\t}", "public String insertUrl(Url url)\r\n\t{\n\t\tthis.mongo.insert(url);\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void insertar() {\n\t\ttab_nivel_funcion_programa.insertar();\r\n\t\t\t\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}", "Builder addMainEntityOfPage(URL value);", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "protected void add(HttpServletRequest request) throws ClassNotFoundException, SQLException{\n if(!request.getParameter(\"nome\").equals(\"\")){\n //Adiciona pessoa\n PessoaDAO dao = new PessoaDAO(); \n //String acao = request.getParameter(\"add\");\n int id = 0;\n for(Pessoa t:dao.findAll()){\n id =t.getId();\n }\n id++; \n Pessoa p = new Pessoa(new Integer((String)request.getParameter(\"id\")),request.getParameter(\"nome\"),request.getParameter(\"telefone\"),request.getParameter(\"email\"));\n dao.create(p);\n }\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 void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}", "abstract protected void insertByURL(URL url,\n\t\t\t\t\tDefaultListModel model,\n\t\t\t\t\tint index)\n\tthrows Exception;", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "@org.junit.Test\r\n\tpublic void insert() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"/org/save\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"name\", \"112\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}", "abstract public String createPage(int taskId, Connection con) throws SQLException, ServletException;", "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 }", "void insert(BnesBrowsingHis record) throws SQLException;", "@Override\n\tpublic void insert(Unidade obj) {\n\n\t}", "public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }", "int insert(Tipologia record);", "public void onAddByWebSitePressed( ) {\n Router.Instance().changeView(Router.Views.AddFromWebSite);\n }", "public void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "private void inserirUsuario(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tString nome = request.getParameter(\"nome\");\n\t\tString email = request.getParameter(\"email\");\n\t\tint telefone = Integer.parseInt (request.getParameter(\"telefone\"));\n\t\tString nacionalidade = request.getParameter(\"nacionalidade\");\n\t\tUsuario novoUsuario = new Usuario(nome, email, telefone, nacionalidade);\n\t\tdao.inserirUsuario(novoUsuario);\n\t\tresponse.sendRedirect(\"lista\");\n\t}", "public void insertar(Trabajo t){\r\n\t\tif(!estaLlena()){\r\n\t\t\tultimo = siguiente(ultimo);\r\n\t\t\telementos[ultimo] = t;\r\n\t\t}\r\n\t}", "public void insereInicio(String elemento) {\n No novoNo = new No(elemento, ini);\n ini = novoNo;\n }", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "@Override\r\n\tpublic String insert() {\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doSave(admin)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"²åÈë\");\r\n\t\treturn SUCCESS;\r\n\t}", "public void processInsertar() {\n }", "public void insertNewProduto(ProdutoTO produto){\n\t\ttry {\n\t\t\tmodelProduto.insertNewProduto(produto);\n\t\t\tsuper.updateViewPrincipal(viewPrincipal);\n\t\t} catch (ProdutoException e) {\n\t\t\te.printStackTrace();\n\t\t\tgetControllerError().initialize(e);\n\t\t}\n\t}", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "public void ajouter() {\n position = graph.edges.ajouterElement(this);\n origine.successeurs.inserer(destination);\n destination.predecesseurs.inserer(origine);\n origine.aretes_sortantes.inserer(this);\n destination.aretes_entrantes.inserer(this);\n }", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "@Override\n public int insert(JurUrl record) {\n return jurUrlMapper.insert(record);\n }", "public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;", "boolean insertLink(Link link);", "public String preInsert() {\n\t\tSystem.out.println(\"--------preInsert\");\n\t\tsetProducto(new Producto());\n\t\tbanderaModif = \"false\";\n\t\treturn \"altaProd.xhtml?faces-redirect=true\";\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n manager = (DBManager)super.getServletContext().getAttribute(\"dbmanager\");\n HttpSession ses = request.getSession();\n Utente utente;\n utente = (Utente)ses.getAttribute(\"utente\");\n String id_user = utente.getId();\n String id_review = request.getParameter(\"idr\");\n String id_creator = request.getParameter(\"id\");\n String like = request.getParameter(\"val\");\n String dat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new java.util.Date());\n String sql = \"INSERT INTO mainagioia.user_review_likes(id_user, id_review, id_creator, like_type, date_creation) VALUES(?,?,?,?,?) \";\n manager.setData(sql,id_user, id_review, id_creator, like, dat);\n response.sendRedirect(request.getHeader(\"referer\"));\n } catch (SQLException ex) {\n response.sendRedirect(request.getHeader(\"referer\"));\n Logger.getLogger(Registrazione.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n response.sendRedirect(request.getHeader(\"referer\"));\n Logger.getLogger(Registrazione.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void insert()\n\t{\n\t}", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "@Override\r\n public void inserirQuestaoDiscursiva(QuestaoDiscursiva questaoDiscursiva)\r\n throws Exception {\n rnQuestaoDiscursiva.inserir(questaoDiscursiva);\r\n\r\n }", "@Override\r\n\tpublic void insertar() {\n\t\ttab_cuenta.eliminar();\r\n\t\t\r\n\t\t\r\n\t}", "private void action_insert_genre(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n try {\n TemplateResult result = new TemplateResult(getServletContext());\n if (SecurityLayer.checkSession(request) != null) {\n User user = getDataLayer().getUser(SecurityLayer.checkNumeric((request.getSession().getAttribute(\"userid\")).toString()));\n if (user.getGroup().getID() != Group.ADMIN) {\n action_error(request, response, \"Non hai i permessi per effettuare questa operazione!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_insert_genre: Utente senza permessi da amministratore\");\n return;\n }\n request.setAttribute(\"where\", \"back\");\n request.setAttribute(\"user\", user);\n RESTUtility.checkNotifications(user, request, response);\n request.setAttribute(\"strip_slashes\", new SplitSlashesFmkExt());\n request.setAttribute(\"backContent_tpl\", \"insertGenre.ftl.html\");\n result.activate(\"../back/backOutline.ftl.html\", request, response);\n } else {\n //User session is no longer valid\n request.setAttribute(\"error\", \"Devi essere loggato per eseguire quest'azione!\");\n result.activate(\"logIn.ftl.html\", request, response);\n }\n } catch (NumberFormatException ex) {\n //User id is not a number\n action_error(request, response, \"Riprova di nuovo!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_insert_genre NumberFormatException\");\n }\n }", "@Override\n\tpublic Tutorial insert(Tutorial t) {\n\t\treturn cotizadorRepository.save(t);\n\n\t\t\n\t}", "int insert(PageItemCfg record);", "public boolean insert(Contribuyente contribuyente){\n return true;\n }", "public void insertPagesLocationCrwalLog(HttpServletRequest request) throws JoymeDBException, JoymeServiceException {\n if(request.getParameter(\"urls\") == null)\n return;\n \n String pageString = request.getParameter(\"urls\");\n CrwalService service = new CrwalService();\n String key = service.parseKey(pageString);\n \n if(key == null)\n return;\n \n CrwalLog bean = new CrwalLog();\n bean.setCrwalKey(key);\n bean.setIsFinish(0);\n bean.setIsRunning(0);\n bean.setCreateTime(new Timestamp(System.currentTimeMillis()));\n bean.setCrwalType(2);\n bean.setPageUrls(request.getParameter(\"urls\"));\n this.insertCrwalLog(null, bean);\n }", "public static void insert(String nome, String cognome, String email, String citta, Date dataNascita, String username, String password, int ruolo, Date dataSignup ) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>(); \r\n \tmap.put(\"nome\", nome);\r\n \tmap.put(\"cognome\", cognome);\r\n \tmap.put(\"email\", email);\r\n \tmap.put(\"citta\", citta);\r\n \tmap.put(\"dataNascita\", dataNascita);\r\n \tmap.put(\"username\", username);\r\n \tmap.put(\"password\", crypt(password));\r\n \tmap.put(\"ruolo\", ruolo); // ruolo dell'utente normale \r\n \tmap.put(\"dataSignup\", dataSignup);\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Non esiste un altro utente con queste credenziali nel DB\");\r\n\t\t\tDatabase.connect();\r\n \t\tDatabase.insertRecord(\"utente\", map);\r\n\r\n \t\tDatabase.close();\r\n \t\t\r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }catch (Exception e) {\r\n \tSystem.out.println(e); \r\n }\r\n\t\t\r\n\t}", "public void insertBig2WebNode(Big2WebSchemaBean value){\r\n\t\tdbDataAccess.initTransaction();\r\n\r\n\t\tdbDataAccess.insertBig2Web(value, TextAnalytics.Text);\r\n\r\n\t\tdbDataAccess.commit();\r\n\t\tdbDataAccess.closeTransaction();\r\n\t}", "@Override\n public void insert(J34SiscomexOrigemDi j34SiscomexOrigemDi) {\n super.doInsert(j34SiscomexOrigemDi);\n }", "int insert(AdminTab record);", "public static Paquete insertPaquete(String nombre_paquete, \n String descripcion_paquete){\n Paquete miPaquete = new Paquete(nombre_paquete, descripcion_paquete);\n miPaquete.registrarPaquete();\n return miPaquete;\n \n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarMotivo\";\r\n\t}", "public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }", "private void pageContent( String url) {\n\t\t\n\t\tif ( !url.matches(URL)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tList<String> outlinks = null; // out link urls\n\t\tUrlBean bean = null; // basic info of the url\n\t\t\n\t\tbean = new UrlBean();\n\t\ttry {\n\t\t\t\n\t\t\tconn = Jsoup.connect(url).timeout(5000);\n\t\t\tif ( conn == null) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\t\n\t\t\tdocument = conn.get(); // 得到网页源代码,超时时间是5秒\n\t\t\t\n\t\t\t/*\n\t\t\t * 文章基本信息\n\t\t\t */\n\t\t\telements = document.getElementsByTag(\"title\");\n\t\t\tif ( elements!= null && elements.size() != 0) {\n\t\t\t\telement = elements.get(0);\n\t\t\t}\n\t\t\tString title = element.text();\n\t\t\tbean.setTitle(title);\n\t\t\tbean.setKeywords(title);\n\t\t\t\n\t\t\telements = document.getElementsByTag(\"a\");\n\t\t\tif ( elements != null) {\n\t\t\t\tString linkUrl = null;\n\t\t\t\toutlinks = new ArrayList<String>();\n\t\t\t\tfor ( int i = 0; i < elements.size(); i++) {\n\t\t\t\t\tlinkUrl = elements.get(i).attr(\"href\");\n\t\t\t\t\tif ( linkUrl.matches(URL)) {\n\t\t\t\t\t\toutlinks.add(linkUrl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t} \n\t\t\n\t\tbean.setUrl(url);\n\t\tbean.setId(urlId++);\n\t\tbean.setRank(1);\n\t\tif ( outlinks != null) {\n\t\t\tint count = outlinks.size();\n\t\t\tbean.setOutlinks(count);\n\t\t\tfor ( int i = 0; i < count; i++) {\n\t\t\t\turlsSet.add(outlinks.get(i));\n\t\t\t}\n\t\t\tif ( new AllInterface().addOneUrlInfo(bean, outlinks)) {\n\t\t\t\tSystem.out.println(\"Add to database successfully, url is '\" + url + \"'.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Fail to add to database, maybe url exists. Url is '\" + url + \"'.\");\n\t\t\t}\n\t\t\tSystem.out.println(\"[\" + count + \" urls remain...]\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"Error occurs in crawl, url is '\" + url + \"'.\");\n\t\t\tSystem.out.println(\"[[FINISHED]]\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void inserir(Evento evento) {\n\t\trepository.save(evento);\r\n\t}", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void addToPage(Hashtable<String, Object> colNameValue) throws IOException, BPlusEngineException {\n Table thisTable = Database.tableMeta.get(tableName);\n if (!colNameValue.containsKey(thisTable.primaryKey)) {\n\t\t\tthrow new BPlusEngineException(\"Primary Key missing\");\n\t\t}\n if (checkTypes(thisTable, colNameValue)) {\n Tuple myTuple = new Tuple(colNameValue);\n myTuple.setPageNo(pageNo);\n myTuple.location = tuples.size();\n tuples.add(myTuple);\n touchDate.add(new Date());\n System.out.println(\"Inserted into \" + pageName);\n indexIfNeeded(thisTable, myTuple);\n thisTable.save();\n save();\n } else {\n throw new BPlusEngineException(\"UnMatching Datatpes\");\n }\n }", "int insert(ParUsuarios record);", "public boolean insert(Panier nouveau) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void insert(HttpServletRequest request,HttpServletResponse response) {\n\t\tHttpSession session = request.getSession();\n\t\tRegVo regVo = (RegVo) session.getAttribute(\"RegObj\");\n\t\tString question_department=regVo.getRegistration_department();\n\t\tint question_semester=regVo.getRegistration_semester();\n\t\tString question_name=regVo.getRegistration_name();\n\t\tlong question_enrollment=regVo.getRegistration_enrollment();\n\t\tString question_title=request.getParameter(\"que_title\");\n\t\t\n\t\tDate date= new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tString question_date=sdf.format(date);\n\t\t\n\t\tQuestionVo qv=new QuestionVo(question_department, question_semester,\n\t\t\t\tquestion_name, question_enrollment,\n\t\t\t\tquestion_title,question_date);\n \tcd.insert(qv);\n\t\ttry{\n\t\tresponse.sendRedirect(request.getContextPath()+\"/CTServlet?type=question&operation=view\");\n\t\t}\n\t\tcatch(Exception e){}\n\t\t\n\t\t\n\t}", "public void insertarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setIdSeccion(38);\n \tgrado.setNumGrado(2);\n \tgrado.setUltimoGrado(0);\n \tString respuesta = negocio.insertarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "int insertContent(@Param(\"c\") UserContent content);", "@Override\n public void insert(J34SiscomexMercadoriaAdi j34SiscomexMercadoriaAdi) {\n super.doInsert(j34SiscomexMercadoriaAdi);\n }", "public void insereFinal(String elemento) {\n No novoNo = new No(elemento, null);\n No temp = ini;\n \n //Caso a lista esteja vazia\n if (temp == null){\n ini = novoNo;\n } else {\n //Caminha ate o ultimo No, dentre todos os nos dessa listaa\n while (temp.getProx() != null) {\n temp = temp.getProx();\n }\n\n //Se chegou ate o ultimo no, adicionar o elemento desejado\n temp.setProx(novoNo);\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 }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n Date dataLoc = null;\r\n Date dataDev = null;\r\n try{\r\n dataLoc = new SimpleDateFormat(\"yyyy-MM-dd\").parse(request.getParameter(\"datalocacao\"));\r\n dataDev = new SimpleDateFormat(\"yyyy-MM-dd\").parse(request.getParameter(\"datadevolucao\"));\r\n } catch (ParseException ex) {\r\n Logger.getLogger(ControllerLocacao.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n boolean result = this.insert(\r\n Integer.parseInt(request.getParameter(\"idcliente\")),\r\n Integer.parseInt(request.getParameter(\"idbicicleta\")),\r\n Float.parseFloat(request.getParameter(\"horariolocacao\")),\r\n dataLoc,\r\n Float.parseFloat(request.getParameter(\"horariodevolucao\")),\r\n dataDev,\r\n Float.parseFloat(request.getParameter(\"valor\"))\r\n \r\n );\r\n \r\n String forward = \"/createLocacao.jsp\";\r\n\r\n RequestDispatcher view = request.getRequestDispatcher(forward);\r\n view.forward(request, response);\r\n \r\n }", "public void insertar() throws SQLException {\n String sentIn = \" INSERT INTO datosnodoactual(AmigoIP, AmigoPuerto, AmigoCertificado, AmigoNombre, AmigoSobreNombre, AmigoLogueoName, AmigoPassword) \"\r\n + \"VALUES (\" + AmigoIp + \",\" + AmigoPuerto + \",\" + AmigoCertificado + \",\" + AmigoNombre + \",\" + AmigoSobreNombre + \",\" + AmigoLogueoName + \",\" + AmigoPassword + \")\";\r\n System.out.println(sentIn);\r\n InsertApp command = new InsertApp();\r\n try (Connection conn = command.connect();\r\n PreparedStatement pstmt = conn.prepareStatement(sentIn)) {\r\n if (pstmt.executeUpdate() != 0) {\r\n System.out.println(\"guardado\");\r\n } else {\r\n System.out.println(\"error\");\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public void insert(Service servico){\n Database.servico.add(servico);\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 }", "int insert(Movimiento record);", "@Override\n\tpublic void insertArticle(BoardVO vo) {\n\t\tString sql = \"INSERT INTO board VALUES(board_id_seq.NEXTVAL,?,?,?)\";\n\t\ttemplate.update(sql,vo.getWriter(),vo.getTitle(),vo.getContent());\n\t}", "int insert(PageFunc record);", "int insert(TempletLink record);", "public static void inserir(String nome, int id){\n System.out.println(\"Dados inseridos!\");\n }", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "private String creerOeuvre(HttpServletRequest request) throws Exception {\n\n String vueReponse;\n try {\n Oeuvre oeuvreE = new Oeuvre();\n oeuvreE.setIdOeuvre(0);\n request.setAttribute(\"oeuvreR\", oeuvreE);\n request.setAttribute(\"titre\", \"Créer une oeuvre\");\n vueReponse = \"/oeuvre.jsp\";\n return (vueReponse);\n } catch (Exception e) {\n throw e;\n }\n }", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}", "public String insert(DtoEntrprs dto){\n\t\treturn null;\r\n\t}", "public void addPages() {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\t\n\t\tDb db = loadDBParams();\n\t\tDBConnection dbConn = new DBConnection();\n\t\tConnection connection = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = dbConn.loadDriver(proj.getLocation()+\"/\"+db.getDriverClassPath(), db.getDriverClass(), db.getDatabaseURL(), db.getUserName(), db.getPassWord());\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tpage = new SmartNewWizardPage(selection, connection, proj.getLocation().toString());\n\t\taddPage(page);\n\n\t}", "public String adicionarubicacion(ubicacion ubicacion) {\n String miRespuesta;\n Conexion miConexion = new Conexion();\n Connection nuevaCon;\n nuevaCon = miConexion.getConn();\n \n //sentecia \n PreparedStatement sentencia;\n //try-catch \n try {\n // consulta \n String Query = \"INSERT INTO ubicacion (Departamento,municipio)\"\n + \"VALUES (?,?)\";\n sentencia = nuevaCon.prepareStatement(Query);\n sentencia.setString(1,ubicacion.getDepartamento());\n sentencia.setString(2,ubicacion.getMunicipio());\n \n sentencia.execute();\n miRespuesta = \"\";\n } catch (Exception ex){\n miRespuesta = ex.getMessage();\n System.err.println(\"Ocurrio un problea en ubicacionDAO\\n \" + ex.getMessage());\n }\n \n return miRespuesta;\n }", "int insert(TNavigation record);", "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 void insertar(Cliente c) {\n if (cabeza == null) { //En caso de que la cabeza sea nula, el dato sera el primero de la lista.\n cabeza = new NodoCliente(c);\n } else {\n if (c.getEspacios() <= cabeza.getDato().getEspacios()) { //Con ayuda de la condicion \"if\" y \"else\" de abajo, se orden los datos por espacios reservados,\n NodoCliente aux = new NodoCliente(c); //de menor a mayor.\n aux.setNext(cabeza);\n cabeza = aux;\n } else {\n if (cabeza.getNext() == null) {\n cabeza.setNext(new NodoCliente(c));\n } else {\n NodoCliente aux = cabeza;\n while (aux.getNext() != null && c.getEspacios() > aux.getNext().getDato().getEspacios()) {\n aux = aux.getNext();\n }\n NodoCliente temp = new NodoCliente(c);\n temp.setNext(aux.getNext());\n aux.setNext(temp);\n }\n }\n }\n }", "public void insert(Conge conge) ;", "public void insert(String type, String querynum, String lianxiren, String telephonenum, String address, String qq,\r\n\t\t\tString email, String websource) {\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tSystem.out.println(\"kkkk\");\r\n\t\t\tcon = DriverManager.getConnection(\r\n\t\t\t// \"jdbc:mysql://192.168.32.19:3306/weibo_sina?useUnicode=true&amp&characterEncoding=UTF-8\", \"weibosina\",\"OyiaV5M53qTqlZjmN0OOtA==\");\r\n\t\t\t\t\t\"jdbc:mysql://127.0.0.1:3306/xiaohe\", \"root\", \"20121028mmhct1314\");\r\n\t\t\t//\"jdbc:mysql://192.168.32.19:3306/weibo_sina\", \"weibosina\",\"OyiaV5M53qTqlZjmN0OOtA==\");\r\n\t\t\tStatement stat = con.createStatement();\r\n\t\t\tString sql = \"insert into \" + type + \" values('\" + querynum + \"','\" + lianxiren + \"','\" + telephonenum\r\n\t\t\t\t\t+ \"','\" + address + \"','\" + qq + \"','\" + email + \"','\" + \" \" + \"')\";\r\n\t\t\t//\"\"+signname+\"','\"+realname+\"','\"+nickname+\"','\"+lianxiren+\"','\"+age+\"','\"+sex+\"','\"+telephonenum+\"','\"+phonepicture+\"','\"+address+\"','\"+duty+\"','\"+area+\"','\"+qq+\"','\"+email+\"','\"+websource+\"','\"+dataresource+\"','\"+deletedd+\"')\";\r\n\t\t\tstat.executeUpdate(sql);\r\n\t\t\tSystem.out.println(\"***\" + sql);\r\n\t\t\tstat.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcon.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public homePage DadosCadastraisPage() {\n\t\t\n\t\tnavegador.findElement(By.name(\"usernameRegisterPage\")).sendKeys(\"benedito\");\n\n\t\t//preencher o email name(\"emailRegisterPage\")\n\t\tnavegador.findElement(By.name(\"emailRegisterPage\")).sendKeys(\"[email protected]\");\n\n\t\t//inserir senha name (\"passwordRegisterPage\")\n\t\tnavegador.findElement(By.name(\"passwordRegisterPage\")).sendKeys(\"1Ben\");\n\n\t\t//confirmar a senha (\"confirm_passwordRegisterPage\")\n\t\tnavegador.findElement(By.name(\"confirm_passwordRegisterPage\")).sendKeys(\"1Ben\");\t\n\t\tnavegador.findElement(By.name(\"first_nameRegisterPage\")).sendKeys(\"benedito\");\n\t\tnavegador.findElement(By.name(\"last_nameRegisterPage\")).sendKeys(\"Jose\");\n\t\tnavegador.findElement(By.name(\"phone_numberRegisterPage\")).sendKeys(\"131111111111\");\n\n\t\tnavegador.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\n\t\tSelect combobox = new Select(navegador.findElement(By.name(\"countryListboxRegisterPage\")));\n\t\t\t\n\t\t//navegador.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\t\n\t\tcombobox.selectByVisibleText(\"Brazil\");\n\n\t\tnavegador.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tnavegador.findElement(By.name(\"cityRegisterPage\")).sendKeys(\"Sao Vicente\");\n\t\t\n\t\tJavascriptExecutor desceRua = (JavascriptExecutor)navegador;\n\t\tdesceRua.executeScript(\"window.scrollBy(0,200)\");\n\t\t\n\t\tnavegador.findElement(By.name(\"addressRegisterPage\")).sendKeys(\"Rua Benigno, N 040\");\n\t\tnavegador.findElement(By.name(\"state_/_province_/_regionRegisterPage\")).sendKeys(\"SP\");\n\t\tnavegador.findElement(By.name(\"postal_codeRegisterPage\")).sendKeys(\"11349440\");\n\n\t\t//Selecionar checkbox name(\"i_agree\")\n\t\tnavegador.findElement(By.name(\"i_agree\")).click();\n\n\t\t//Clicar em register id(\"register_btnundefined\")\t\t\n\t\tnavegador.findElement(By.id(\"register_btnundefined\")).click();\n\t\t\n\t\treturn new homePage (navegador);\n\t}", "@Override\n\tpublic int insert(Utente input) throws Exception {\n\t\treturn 0;\n\t}", "@RequestMapping(value = \"/insertComic\", method = RequestMethod.GET)\n\tpublic ModelAndView viewInsert(Model model, HttpSession session,\n\t\t\t@RequestParam(value = \"origine\", required = false) String origine) {\n\t\t/*verificazione della sessione suggestion: \n\t\t * qui sappiamo se il metodo č chiamato dall'accetazione\n\t\t * di una suggestione oppure della creazione di un\n\t\t * nuovo fumetto */\n\t\tif (session.getAttribute(\"suggestion\") != null) {\n\t\t\tif (origine != null) {\n\t\t\t\tsession.setAttribute(\"suggestion\", null);\n\t\t\t\tmodel.addAttribute(\"comic\", new Comic());\n\t\t\t} else {\n\t\t\t\tmodel.addAttribute(\"comic\", session.getAttribute(\"suggestion\"));\n\t\t\t}\n\t\t} else {\n\t\t\tmodel.addAttribute(\"comic\", new Comic());\n\t\t}\n\t\t//contenuto dei selectbox\n\t\tmodel.addAttribute(\"authors\", authorService.restart().find());\n\t\tmodel.addAttribute(\"genres\", genreService.restart().find());\n\t\tmodel.addAttribute(\"publishingHouses\", publishingHouseService.restart().find());\n\t\t\n\t\t//chiama la pagina di inserimento \n\t\treturn new ModelAndView(\"admin/comic/insert\");\n\t}", "@RequestMapping(value = \"themtaikhoan\", method = {RequestMethod.GET})\n public String insertAccount(ModelMap model) {\n if (conUser == null) {\n return \"dangnhap\";\n } else {\n model.addAttribute(\"user\", new User());\n model.addAttribute(\"tenUser\", conUser.getUsername());\n return \"insertAccount\";\n }\n }", "public void postPage(final String url, final String arg) throws Exception {\r\n super.postPage(url, arg);\r\n }", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}" ]
[ "0.6302186", "0.61993897", "0.616403", "0.6074142", "0.60716885", "0.5984807", "0.5933809", "0.5931044", "0.5915004", "0.5891694", "0.58613384", "0.58565104", "0.58005935", "0.579243", "0.5767469", "0.575181", "0.57313377", "0.5730227", "0.5721555", "0.5694504", "0.5675098", "0.5650705", "0.5642374", "0.56312853", "0.5630872", "0.56216305", "0.5599984", "0.55745673", "0.5556786", "0.55543536", "0.5554216", "0.5534538", "0.5532471", "0.5530845", "0.55163825", "0.5516", "0.5508275", "0.5500543", "0.5499179", "0.5498925", "0.54961073", "0.5495656", "0.54868054", "0.54842675", "0.54794997", "0.54780394", "0.5476214", "0.54722136", "0.54597193", "0.5452474", "0.54512477", "0.54498905", "0.54404014", "0.54403037", "0.5439213", "0.54339904", "0.54309267", "0.5429877", "0.5424503", "0.5424253", "0.5418012", "0.5415031", "0.5414155", "0.54126716", "0.54111713", "0.5405184", "0.5402622", "0.54008037", "0.5396583", "0.53931665", "0.5392628", "0.5392551", "0.53896666", "0.53863984", "0.5384542", "0.53843063", "0.5380529", "0.5373106", "0.53728694", "0.5366573", "0.53626555", "0.5356199", "0.53541213", "0.53456354", "0.53453946", "0.5336396", "0.5326561", "0.5323906", "0.532209", "0.53214103", "0.53164935", "0.5313858", "0.5308559", "0.53079146", "0.5306911", "0.53026354", "0.5301468", "0.52973855", "0.5295766", "0.529463", "0.5289989" ]
0.0
-1
add item to secondaryCidrs
public void addSecondaryCidr(SecondaryCidr secondaryCidr) { if (this.secondaryCidrs == null) { this.secondaryCidrs = new ArrayList<>(); } this.secondaryCidrs.add(secondaryCidr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CatalogItem addCatalogItem(CatalogItem catalogItem);", "void addCpItem(ICpItem item);", "public void add(Item item) {\r\n\t\tcatalog.add(item);\r\n\t}", "@Override\r\n\tpublic void add(SecondCategory scategory) {\n\t\tscategory.setCreattime(new Date());\r\n\t\tscategoryDao.add(scategory);\r\n\t}", "@Override\r\n\tpublic void insertEncoreItem2(Item item) {\n\t\tint i = sqlSession.insert(ns+\".insertEncoreItem2\", item);\r\n\t\tif(i>0) System.out.println(\"insert Encore item2\");\r\n\t}", "private void addNewSpinnerItem2() {\n\t\tmscust=ecust.getText().toString();\n\t\tCharSequence textHolder = \"\" +mscust; \n\t\tadapter2.insert(textHolder, 0);\n\t\tsoth.setAdapter(adapter2);\n\t\t}", "public void addCostItem(CostItem item) throws CostManagerException;", "public void secondaryAddI13nActResourceSet(com.hps.july.persistence.I13nActResourceSet anI13nActResourceSet) throws java.rmi.RemoteException;", "public void addContactItem(Contact cItem) {\n if (!hasContact(cItem)) {\n return;\n }\n // Update visual list\n contactChanged(cItem, true);\n }", "public void add(Conseiller c) {\n\t\t\r\n\t}", "@Override\n public void addItem(P_CK t) {\n \n }", "void addItem(DataRecord record);", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public String addItem(Item item){\n EntityManager em = emf.createEntityManager();\n try{\n utx.begin();\n em.joinTransaction();\n for(Tag tag : item.getTags()) {\n tag.incrementRefCount();\n tag.getItems().add(item);\n em.merge(tag);\n }\n em.persist(item);\n utx.commit();\n // index item\n if(bDebug) System.out.println(\"\\n***Item id of new item is : \" + item.getItemID());\n indexItem(new IndexDocument(item));\n \n } catch(Exception exe){\n try {\n utx.rollback();\n } catch (Exception e) {}\n throw new RuntimeException(\"Error persisting item\", exe);\n } finally {\n em.close();\n }\n return item.getItemID();\n }", "public void addItem(LibraryItem item){\r\n\t\t// use add method of list.class\r\n\t\tthis.inverntory.add(item);\r\n\t}", "@Override\n\tpublic void add(cp_company cp) {\n\t\t\n\t}", "public void addItem(Item item) {\n\t\thashOperations.put(KEY, item.getId(), item);\n\t\t//valueOperations.set(KEY + item.getId(), item);\n\t}", "int insertSelective(ItemCategory record);", "public abstract void addItem(AbstractItemAPI item);", "void add(Item item);", "public void addMedicationWithSecondary(final SecondaryProfile secondary,\n final Medication medication,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n final String endPoint =\n String.format(ADD_SECONDARY_MEDICATION_ENDPOINT,\n mSharecareToken.accountID, secondary.identifier);\n\n // Create request body.\n final HashMap<String, String> body = new HashMap<String, String>(2);\n body.put(ID, medication.id);\n body.put(NAME, medication.getName());\n\n final Gson gson = new GsonBuilder().create();\n final String bodyJson = gson.toJson(body);\n\n this.beginRequest(endPoint, ServiceMethod.PUT, headers, null, bodyJson,\n ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (!checkResultFromDataService(json))\n {\n try\n {\n final JsonElement response =\n getResponseFromJson(json);\n if (response != null)\n {\n result.errorMessage = response.getAsString();\n }\n }\n catch (final ClassCastException e)\n {\n// Crashlytics.logException(e);\n }\n result.success = false;\n result.responseCode =\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_SERVER_ERROR;\n }\n LogError(\"addMedicationWithSecondary\", result);\n return result;\n }\n }, completion);\n }", "private void addPairItem(String relation, boolean isSc) {\n\t\tFieldItem leftItem = firstListView.getSelectionModel().getSelectedItem();\n\t\tFieldItem rightItem = secondListView.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif(isNull(leftItem) || isNull(rightItem)) {\n\t\t\tRuleRankLogger.warn(\"Select items from both sides first.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(isSc && leftItem.equals(rightItem)) {\n\t\t\tRuleRankLogger.warn(\"Object cannot outrank itself. Aborting action.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tvar pair = new PairsItem(leftItem.getFields(), rightItem.getFields(), relation, leftItem.getDisplayedFieldIndex());\n\t\tif(pairsListView.getItems().contains(pair)) {\n\t\t\tRuleRankLogger.warn(\"Selected items were already added with such relation.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpairsListView.getItems().add(pair);\n\t}", "public native void addSubItem(MenuItem item);", "public synchronized void addItem(IJABXAdvertisementItem item) {\n\t\tidMap.put(item.getSerialNo(), item);\n\t\titemList.add(item);\n\t}", "@Override\n public void addBundle(Context context, Item item, Bundle b) throws SQLException, AuthorizeException\n {\n // Check authorisation\n authorizeService.authorizeAction(context, item, Constants.ADD);\n\n log.info(LogManager.getHeader(context, \"add_bundle\", \"item_id=\"\n + item.getID() + \",bundle_id=\" + b.getID()));\n\n // Check it's not already there\n if (item.getBundles().contains(b)) {\n // Bundle is already there; no change\n return;\n }\n\n // now add authorization policies from owning item\n // hmm, not very \"multiple-inclusion\" friendly\n authorizeService.inheritPolicies(context, item, b);\n\n // Add the bundle to in-memory list\n item.addBundle(b);\n b.setItems(Arrays.asList(item));\n\n // Insert the mapping\n context.addEvent(new Event(Event.ADD, Constants.ITEM, item.getID(), Constants.BUNDLE, b.getID(), b.getName()));\n }", "int insert(ItemCategory record);", "public boolean createSecondaryKey( SecondaryDatabase secondary, DatabaseEntry key, DatabaseEntry data, DatabaseEntry result) throws DatabaseException ;", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense addNewBusinessIndustryLicenses();", "private void addNewSpinnerItem() {\n\t\tmscust=ecust.getText().toString();\n\t\tCharSequence textHolder = \"\" +mscust; \n\t\tadapter.insert(textHolder, 0);\n\t\tshome.setAdapter(adapter);\n\t\t}", "public void addCoreInfo(Core c)\n {\n //this.resultSet.addSchedulingInfo(s);\n this.resultSet.addCoreInfo(c);\n }", "public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);", "void addInBookNo(Object newInBookNo);", "public void add(CartItem cartItem){\n\t\tString book_id = cartItem.getBook().getBook_id();\n\t\tint count = cartItem.getCount();\n\t\t// if book exist in cart , change count\n\t\tif(map.containsKey(book_id)){ \n\t\t\tmap.get(book_id).setCount( map.get(book_id).getCount() + count); \n\t\t\t\t\t\n\t\t}else{\n\t\t\t// book not exist in cart, put it to map\n\t\t\tmap.put(cartItem.getBook().getBook_id(), cartItem);\n\t\t}\n\t\t\n\t}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}", "SongSublist addItem( SongEntry itemToAdd )\n {\n try {\n SongSublist newSub = (SongSublist)this.clone();\n newSub.subs.add(itemToAdd);\n newSub.setDuration(this.duration + itemToAdd.getDuration());\n return newSub;\n }\n catch (CloneNotSupportedException ex)\n {\n System.out.println(\"Clone not supported\");\n return null;\n }\n }", "public Cif addResourcesItem(String resourcesItem) {\n if (this.resources == null) {\n this.resources = new ArrayList<String>();\n }\n this.resources.add(resourcesItem);\n return this;\n }", "public void add(SermCit newCit){\n if (citations == null){\n citations = new ArrayList<SermCit>();\n }\n if (citations.isEmpty()){\n citations.add(newCit);\n }\n else {\n int i = 0;\n\n //Find the place in the citation list for the new citation\n while (i < citations.size() && citations.get(i).compareTo(newCit)< 0){\n i++;\n }\n if (i < citations.size() && citations.get(i).compareTo(newCit) > 0){\n citations.add(i, newCit);\n }\n else if (i == citations.size() && citations.get(i-1).compareTo(newCit) < 0){\n citations.add(newCit);\n }\n //otherwise the citation already exists, so leave it be\n }\n }", "void addElement(String newSubResourceName, ResourceBase newSubResource);", "public String addSubCategoryListing(SubCategoryItem s){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\treturn daoObject.addSubCategories(s.getSubCategoryName(), s.getCategoryID());\n\t}", "private void importCoverageUnitItem(XResultData rd, CoverageUnit importItem) {\n // System.out.println(\"importItemsRecurse => \" + importItem + \" path \" + CoverageUtil.getFullPath(importItem));\n try {\n rd.log(\"Processing \" + importItem.getName());\n // if (!(importItem instanceof CoverageUnit)) {\n // rd.logError(String.format(\"[%s] invalid for Import; Only import CoverageUnits\",\n // importItem.getClass().getSimpleName()));\n // }\n CoverageUnit importCoverageUnit = importItem;\n\n MatchItem matchItem = mergeManager.getPackageCoverageItem(importItem);\n // Determine if item already exists first\n if (MatchType.isMatch(matchItem.getMatchType())) {\n // save assignees and notes and RATIONALE before child overwrites\n // ((CoverageUnit) importItem).updateAssigneesAndNotes((CoverageUnit) packageItem);\n // System.out.println(\"FOUND MATCH type \" + matchItem.getMatchType());\n // System.out.println(\"FOUND MATCH pack \" + matchItem.getPackageItem() + \" path \" + CoverageUtil.getFullPath(matchItem.getPackageItem()));\n // System.out.println(\"FOUND MATCH impt \" + matchItem.getImportItem() + \" path \" + CoverageUtil.getFullPath(matchItem.getImportItem()));\n }\n // This is new item\n else if (MatchType.isNoMatch(matchItem.getMatchType())) {\n // System.err.println(\"NEW ITEM \" + matchItem.getMatchType());\n // Check if parent item exists\n ICoverage parentImportItem = importItem.getParent();\n // If null, this is top level item, just add to package\n if (parentImportItem instanceof CoverageImport) {\n coveragePackage.addCoverageUnit(importItem.copy(true));\n rd.log(String.format(\"Added [%s] as top level CoverageUnit\", importCoverageUnit));\n rd.log(\"\");\n } else {\n // Else, want to add item to same parent\n CoverageUnit parentCoverageUnit = (CoverageUnit) importItem.getParent();\n MatchItem parentMatchItem = mergeManager.getPackageCoverageItem(parentCoverageUnit);\n CoverageUnit parentPackageItem = (CoverageUnit) parentMatchItem.getPackageItem();\n parentPackageItem.addCoverageUnit(importCoverageUnit.copy(true));\n rd.log(String.format(\"Added [%s] to parent [%s]\", importCoverageUnit, parentCoverageUnit));\n rd.log(\"\");\n\n // Since item was added, update parent coverage unit's file contents if necessary\n parentPackageItem.setFileContents(parentImportItem.getFileContents());\n\n }\n }\n } catch (Exception ex) {\n rd.logError(\"Exception: \" + ex.getLocalizedMessage());\n OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);\n }\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "void addGroceryItem(String item) {\n\n\t}", "@Override\n public void addCSResource(final BwCalSuite suite,\n final BwResource res,\n final String rc)\n throws CalFacadeException {\n res.setColPath(getCSResourcesDir(suite, rc));\n svci.getResourcesHandler().save(res,\n false);\n updated();\n }", "public void addObject(DcObject dco);", "private void addSavedCourseToACL() {\n System.out.println(\"(note that selecting a saved course will extract it and it will need to be saved again)\\n\");\n int numSavedCourses = courseList.getCourseList().size();\n if (numSavedCourses == 0) {\n System.out.println(\"There are no saved courses at the moment\");\n return;\n }\n System.out.println(\"The current saved courses are \\n\");\n printSavedCoursesNames();\n System.out.println(\"Select which one you want to add (select number) \");\n int courseSelected = obtainIntSafely(1, numSavedCourses,\n \"Please choose the number next to a course\");\n\n activeCourseList.add(courseList.getCourseList().get(courseSelected - 1));\n courseList.removeCourseFromList(courseSelected - 1);\n System.out.println(\"Added!\");\n }", "InvoiceItem addInvoiceItem(InvoiceItem invoiceItem);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations addNewFurtherRelations();", "public void addDestination(ReplicaCatalogEntry rce) {\n List<ReplicaCatalogEntry> l = null;\n if (mDestMap.containsKey(rce.getResourceHandle())) {\n // add the url to the existing list\n l = (List) mDestMap.get(rce.getResourceHandle());\n // add the entry to the list\n l.add(rce);\n } else {\n // add a new list\n l = new ArrayList(3);\n l.add(rce);\n mDestMap.put(rce.getResourceHandle(), l);\n }\n }", "public void addItem(int itemCollection_id, Item item) {\n\t\t// Start of user code for method addItem\n\t\t// End of user code\n\t}", "private int addNewItem(EditText titleInput, EditText descriptionInput, EditText priceInput) {\n Uri contentProviderUri = Uri.parse(\"content://saarland.cispa.trust.serviceapp.contentprovider/items\");\n ContentProviderClient cp = parentActivity.getContentResolver().acquireContentProviderClient(\n contentProviderUri);\n if (cp == null)\n return -1;\n\n String title = titleInput.getText().toString();\n String description = descriptionInput.getText().toString();\n String imagePath = photoURI.toString();\n int price = Integer.parseInt(priceInput.getText().toString());\n\n Location location = parentActivity.getLastKnownLocation();\n if (location == null) {\n location = new Location(\"\");\n location.setLatitude(0.0d);\n location.setLongitude(0.0d);\n }\n\n Uri newItem;\n ContentValues newValues = new ContentValues();\n newValues.put(\"title\", title);\n newValues.put(\"description\", description);\n newValues.put(\"image_path\", imagePath);\n newValues.put(\"price\", price);\n newValues.put(\"latitude\", location.getLatitude());\n newValues.put(\"longitude\", location.getLongitude());\n try {\n assert cp != null;\n newItem = cp.insert(contentProviderUri, newValues);\n } catch (RemoteException | NullPointerException e) {\n Toast.makeText(this.getActivity(),\n \"Something went wrong while inserting the item\",\n Toast.LENGTH_LONG).show();\n e.printStackTrace();\n return -3;\n }\n return Integer.parseInt(Objects.requireNonNull(newItem).getLastPathSegment());\n }", "public int addItem(Item i);", "@Override\r\n\tpublic void insertEncoreItem(Item item) {\n\t\tint i = sqlSession.insert(ns+\".insertEncoreItem\", item);\r\n\t\tif(i>0) System.out.println(\"insert Encore item1\");\r\n\t}", "public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }", "@RequestMapping(method = RequestMethod.POST)\n\tpublic ResponseEntity<?> addCatalogItem(@RequestBody Catalog info) {\n\t\tBraveSpanContext openTracingContext = getTracingContext();\n\t\tio.opentracing.Span span = tracer.buildSpan(\"AddCatalogService\").asChildOf(openTracingContext)\n\t\t\t\t.withTag(\"Description\", \"Create Catalog\")\n\t\t\t\t.withTag(\"http_request_url\", request.getRequestURI()).start();\n\t\tbrave.Span braveSpan = ((BraveSpan) span).unwrap();\n\t\tbraveSpan.kind(Kind.SERVER);\n\t\tif (info == null) {\n\t\t\treturn new ResponseEntity<String>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tString errorMsg = info.validate();\n\t\tif (errorMsg != null) {\n\t\t\treturn new ResponseEntity<String>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tSummary.Timer requestTimer = Prometheus.requestLatency.startTimer();\n\t\ttry {\n\t\t\tPrometheus.createCounters.inc();\n\t\t\tPrometheus.inProgressRequests.inc();\n\t\t\tio.opentracing.Span mongospan = tracer.buildSpan(\"GetCatalogsFromMongoService\").asChildOf(span)\n\t\t\t\t\t.withTag(\"Description\", \"MongoDB Service Call\").start();\n\t\t\tbrave.Span braveMongoSpan = ((BraveSpan) mongospan).unwrap();\n\t\t\tCatalog catalogItem = service.getCatalogItem(info.getSkuNumber(), mongospan);\n\t\t\tbraveMongoSpan.finish();\n\t\t\tif (catalogItem != null) {\n\t\t\t\treturn new ResponseEntity<String>(HttpStatus.CONFLICT);\n\t\t\t} else {\n\t\t\t\tio.opentracing.Span addCatalogSpan = tracer.buildSpan(\"AddCatalogToDB\").asChildOf(span)\n\t\t\t\t\t\t.withTag(\"Description\", \"MongoDB Service Call\").start();\n\t\t\t\tbrave.Span braveaddCatalogSpan = ((BraveSpan) addCatalogSpan).unwrap();\n\t\t\t\tCatalog result = service.createCatalog(info, addCatalogSpan);\n\t\t\t\tbraveaddCatalogSpan.finish();\n\n\t\t\t\tif (result != null) {\n\t\t\t\t\treturn new ResponseEntity<String>(HttpStatus.CREATED);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception exc) {\n\t\t\tPrometheus.requestFailures.inc();\n\t\t\tlog.error(\"Error in addCatalogItem\", exc);\n\t\t\tspan.setTag(\"error\", exc.getMessage());\n\t\t\treturn new ResponseEntity<String>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t} finally {\n\t\t\trequestTimer.observeDuration();\n\t\t\tPrometheus.inProgressRequests.dec();\n\t\t\tspan.finish();\n\t\t}\n\t\treturn null;\n\t}", "public static void addNewCarPlates(final CarPlatesModel carPlatesModel, final String category\n , final String userID, final int numberOfAdsToUser, final Context context) {\n insertCarForSale().child(category).push().setValue(carPlatesModel\n , new DatabaseReference.CompletionListener() {\n @RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onComplete(DatabaseError databaseError,\n DatabaseReference databaseReference) {\n String uniqueKey = databaseReference.getKey();\n //update id item on server\n insertCarForSale().child(category).child(uniqueKey).child(\"itemID\").setValue(uniqueKey);\n //insert item to userAds in user table\n FCWSU fcwsu = new FCWSU(uniqueKey);\n getUserPathInServerFB(userID).child(\"usersAds\").push().setValue(fcwsu);\n //update number of ads to this user\n getUserPathInServerFB(userID).child(\"numberOfAds\").setValue(numberOfAdsToUser + 1);\n //insert notification\n insertNotificationTable(getNotification(\"Plates\",carPlatesModel.getCarPlatesCity() + \" \" +carPlatesModel.getCarPlatesNum(),context, uniqueKey,\"out\",\"item\",carPlatesModel.getImagePathArrayL().get(0))\n ,getDataBaseInstance(context));\n }\n });\n }", "public void secondaryAddSitedoc2Splaces(com.hps.july.persistence.Sitedoc2Splace arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddSitedoc2Splaces(arg0);\n }", "@Override\n\t\tpublic void addRawitem(Rawitem Rawitem) {\n\t\t\tString sql=\"INSERT INTO rawitem(suppliedby,rquantity,riprice,rstock)\"\n\t\t\t\t\t+ \" values (:suppliedby,:rquantity,:riprice,:rstock)\";\n\t\t\tnamedParameterJdbcTemplate.update(sql,getSqlParameterByModel(Rawitem));\n\t\t}", "public void addResource(TIdentifiable resource) {\r\n // make sure that the resource doesn't exists already\r\n\t if (resourceExists(resource)) return;\t \r\n\t \r\n // check to see if we need to expand the array:\r\n\t if (m_current_resources_count == m_current_max_resources) expandTable(1, 2);\t \t \r\n\t m_resources.addID(resource);\r\n\t m_current_resources_count++;\r\n }", "public void adicionar(ItemProduto item) {\n\t\titens.add(item);\n\t}", "@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}", "public void secondaryAddStorageCard(com.hps.july.persistence.StorageCard arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddStorageCard(arg0);\n }", "protected static void addBook(Book toAdd)\n {\n if (toAdd == null) // if product is null, becuase the formatting wasnt correct, then dont go forward and print out that the book wasnt added\n ProductGUI.Display(\"Book not added\\n\");\n else{\n try{\n if (!(toAdd.isAvailable(toAdd.getID(), productList))) // if the product id alrady exists, dont go forard towards adding it\n {\n ProductGUI.Display(\"Sorry. this product already exists\\n\");\n return;\n }\n else\n ProductGUI.Display(\"New book product\\n\");\n \n myProduct = new Book(toAdd.getID(), toAdd.getName(), toAdd.getYear(), toAdd.getPrice(), toAdd.getAuthor(), toAdd.getPublisher()); // make new product using this object\n productList.add(myProduct); // add product to arraylist\n \n addToMap(toAdd.getName()); // adding the product name to the hashmap\n System.out.println(\"book added to all\");\n ProductGUI.fieldReset(); // reset the fields to being blank\n } catch (Exception e){\n ProductGUI.Display(e.getMessage()+\"errorrorror\\n\");\n }\n }\n }", "public int addItem(Itemset i);", "public void addItems(ResultItem rItem) {\r\n\t\titems.add(rItem);\r\n\t}", "private void copyItem(Connection conn, Long listItemId, User user, \n Long listId) throws AccessDeniedException, CriticalException\n {\n logger.debug(\"+\");\n ListItem listItem = ListItem.getById(conn, listItemId);\n checkPermission(user, listItem);\n Long teaserId = listItem.getTeaserId();\n Long articleId = listItem.getArticleId();\n if (isMove) {\n listItem.setTeaserId(null);\n listItem.setArticleId(null);\n listItem.delete(conn);\n }\n else {\n try {\n Article article = Article.findById(conn, teaserId);\n teaserId = article.insert(conn);\n article = Article.findById(conn, articleId);\n articleId = article.insert(conn);\n }\n catch (Exception ex) {\n logger.debug(\"- Throwing new CriticalException\");\n throw new CriticalException(ex);\n }\n }\n listItem.setListId(listId);\n listItem.setTeaserId(teaserId);\n listItem.setArticleId(articleId);\n listItem.insert(conn);\n logger.debug(\"-\");\n }", "private void addItemToContext(final Renderable rItem,\n\t\t\tfinal VelocityContext context, final RunnerContext pContext,\n\t\t\tfinal UTF8ResourceBundle bundle,\n\t\t\tfinal Map<String, HashMap<String, Object>> values) {\n\n\t\t/**\n\t\t * If it's a group, just add it's controls to the context.\n\t\t */\n\t\tif (rItem instanceof Group) {\n\n\t\t\taddGroupToContext((Group) rItem, pContext, values);\n\n\t\t\tfor (Iterator<Renderable> i = ((Group) rItem).getItems().iterator(); i\n\t\t\t\t\t.hasNext();) {\n\n\t\t\t\taddItemToContext(i.next(), context, pContext, bundle, values);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tHashMap<String, Object> itemCtx = new HashMap<String, Object>();\n\t\tModel model = pContext.getModel();\n\t\tInstance inst = pContext.getInstance();\n\n\t\tif (rItem instanceof TextBlock) {\n\t\t\t\n\t\t\tLOGGER.fine(\"Adding text block to context: \" + rItem.getId());\n\t\t\t\n\t\t\tString text = this.translate(((TextBlock) rItem).getText(), pContext.getLocale());\n\n\t\t\tLOGGER.finest(\"Found translation: \" + text);\n\n\t\t\ttext = FillProcessor.processFills(text, inst, model,\n\t\t\t\t\tpContext.getRenderConfig(), pContext.getLocale());\n\t\t\t\n\t\t\tLOGGER.finest(\"Fills processed: \" + text);\n\n\t\t\titemCtx.put(\"text\", text);\n\n\t\t\tvalues.put(rItem.getId(), itemCtx);\n\t\t\t\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (!(rItem instanceof Control)) {\n\t\t\treturn;\n\t\t}\n\n\t\tControl control = (Control) rItem;\n\t\tString bind = control.getBind();\n\t\tNode node;\n\n\t\ttry {\n\t\t\tnode = inst.getNode(bind);\n\t\t} catch (InvalidPathExpression e1) {\n\t\t\treturn;\n\t\t}\n\n\t\tItemProperties props = model.getItemProperties(bind);\n\n\t\tif (props == null) {\n\t\t\tprops = new ItemPropertiesImpl(bind);\n\t\t}\n\n\t\ttry {\n\t\t\tLOGGER.fine(\"do we have calculations: \" + props.getCalculate());\n\n\t\t\tLOGGER.fine(\"Raw node value: \" + node.getValue());\n\n\t\t\tObject val = NodeValidator.getValue(node, props, model, inst);\n\t\t\t\n\t\t\tLOGGER.fine(\"Adding item \"\n\t\t\t\t\t+ control.getId()\n\t\t\t\t\t+ \" to context with value \"\n\t\t\t\t\t+ val\n\t\t\t\t\t+ \" and lexical value \"\n\t\t\t\t\t+ control.getDisplayValue(val, props.getDatatype(),\n\t\t\t\t\t\t\tpContext.getLocale()));\n\n\t\t\tif (val == null) {\n\t\t\t\titemCtx.put(\"value\", \"\");\n\t\t\t} else {\n\t\t\t\titemCtx.put(\"value\", val);\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\titemCtx.put(\n\t\t\t\t\t\"lexical_value\",\n\t\t\t\t\tcontrol.getDisplayValue(val, props.getDatatype(),\n\t\t\t\t\t\t\tpContext.getLocale()));\n\n\t\t} catch (Exception e) {\n\t\t\titemCtx.put(\"value\", \"\");\n\t\t\titemCtx.put(\"lexical_value\", \"\");\n\t\t}\n\t\t\n\t\tString label = this.translate(control.getLabel(), pContext.getLocale());\n\n\t\tlabel = FillProcessor.processFills(label, inst, model,\n\t\t\t\tpContext.getRenderConfig(), pContext.getLocale());\n\n\t\titemCtx.put(\"label\", label);\n\n\t\tString hint = this.translate(control.getHint(), pContext.getLocale());\n\n\t\thint = FillProcessor.processFills(hint, inst,\n\t\t\t\tmodel, pContext.getRenderConfig(), pContext.getLocale());\n\n\t\titemCtx.put(\"hint\", hint);\n\n\t\titemCtx.put(\"required\",\n\t\t\t\tBoolean.valueOf(NodeValidator.isRequired(props, inst, model))\n\t\t\t\t\t\t.toString());\n\n\t\titemCtx.put(\"relevant\",\n\t\t\t\tBoolean.valueOf(NodeValidator.isRelevant(props, inst, model))\n\t\t\t\t\t\t.toString());\n\n\t\titemCtx.put(\"readonly\",\n\t\t\t\tBoolean.valueOf(NodeValidator.isReadOnly(props, inst, model))\n\t\t\t\t\t\t.toString());\n\n\t\t// To debug or not to debug...\n\t\tif (this.debug) {\n\t\t\titemCtx.put(\"required_expr\", props.getRequired().toString());\n\t\t\titemCtx.put(\"relevant_expr\", props.getRelevant().toString());\n\t\t\titemCtx.put(\"constraint_expr\", props.getConstraint().toString());\n\t\t\titemCtx.put(\"readonly_expr\", props.getReadOnly().toString());\n\t\t\titemCtx.put(\"required_expr_resolved\",\n\t\t\t\t\tXRefSolver.resolve(model, inst, props.getRequired(), node));\n\t\t\titemCtx.put(\"relevant_expr_resolved\",\n\t\t\t\t\tXRefSolver.resolve(model, inst, props.getRelevant(), node));\n\t\t\titemCtx.put(\"constraint_expr_resolved\",\n\t\t\t\t\tXRefSolver.resolve(model, inst, props.getConstraint(), node));\n\t\t\titemCtx.put(\"readonly_expr_resolved\",\n\t\t\t\t\tXRefSolver.resolve(model, inst, props.getReadOnly(), node));\n\t\t}\n\n\t\tif (control instanceof Vocabulary) {\n\n\t\t\tArrayList<Option> options = new ArrayList<Option>();\n\t\t\t\n\t\t\tfor (Option opt:((Vocabulary) rItem).getOptions()) {\n\t\t\t\toptions.add(new Option(opt.getValue(), this.translate(opt.getLabel(), pContext.getLocale())));\n\t\t\t}\n\t\t\t\n\t\t\titemCtx.put(\"options\", options);\n\t\t}\n\n\t\t// Check for error conditions. Put empty alert first.\n\t\t//\n\t\titemCtx.put(\"alert\", \"\");\n\n\t\tif (ActionResultImpl.FAIL.equals(pContext.getResult().toString())) {\n\n\t\t\t// Is it the data?\n\t\t\tException error = ((Failure) pContext.getResult()).getException();\n\n\t\t\tif (error instanceof ValidationException) {\n\n\t\t\t\tMap<String, Exception> errors = ((ValidationException) error)\n\t\t\t\t\t\t.getErrors();\n\n\t\t\t\tif (errors.containsKey(((Control) rItem).getBind())) {\n\n\t\t\t\t\tif (\"\".equals(((Control) rItem).getAlert())) {\n\t\t\t\t\t\titemCtx.put(\n\t\t\t\t\t\t\t\t\"alert\",\n\t\t\t\t\t\t\t\ttranslateError(((ConstraintViolation) errors\n\t\t\t\t\t\t\t\t\t\t.get(((Control) rItem).getBind()))\n\t\t\t\t\t\t\t\t\t\t.getMessage(), bundle));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString alert = this.translate(((Control) rItem).getAlert(), pContext.getLocale());\n\n\t\t\t\t\t\talert = FillProcessor.processFills(\n\t\t\t\t\t\t\t\talert, inst, model,\n\t\t\t\t\t\t\t\tpContext.getRenderConfig(),\n\t\t\t\t\t\t\t\tpContext.getLocale());\n\n\t\t\t\t\t\titemCtx.put(\"alert\", alert);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvalues.put(rItem.getId(), itemCtx);\n\t}", "public void createSecondaryKeys(SecondaryDatabase secondary,\r\n\t\t\tDatabaseEntry key, DatabaseEntry data, Set results)\r\n\t\t\tthrows DatabaseException;", "public void addResourceSpace(Resource r,int srt){\n t.put(r.getName(),new SupplyNode(r,srt));\n t.get(r.getName()).setCurrent(srt);\n }", "public void setSecondary(boolean secondary)\r\n\t{\tthis.secondary = secondary;\t}", "public void setSecondary2(java.lang.String secondary2) {\n this.secondary2 = secondary2;\n }", "private void addNewSpinnerItem1() {\n\t\tmscust=ecust.getText().toString();\n\t\tCharSequence textHolder = \"\" +mscust; \n\t\tadapter1.insert(textHolder, 0);\n\t\tswork.setAdapter(adapter1);\n\t\t\n\t}", "public int addItem(Item i, int x, int y) {\n i.setMapRelation(new MapItem_Relation(this, i));\n int error_code = this.map_grid_[y][x].addItem(i);\n if (error_code == 0) {\n items_list_.add(i);\n } else {\n i.setMapRelation(null);\n }\n return error_code;\n }", "public void AddtoCart(int id){\n \n itemdb= getBooksById(id);\n int ids = id;\n \n for(Books k:itemdb){ \n System.out.println(\"Quantity :\"+k.quantity); \n if (k.quantity>0){\n newcart.add(ids);\n System.out.println(\"Added to cartitem list with bookid\"+ ids);\n setAfterBuy(ids);\n System.out.println(\"Quantity Updated\");\n setCartitem(newcart);\n System.out.println(\"setCartitem :\"+getCartitem().size());\n System.out.println(\"New cart :\"+newcart.size());\n test.add(k);\n }\n else{\n System.out.println(\"Quantity is not enough !\");\n }\n }\n setBookcart(test);\n }", "public void addToCart(String userId ,ShoppingCartItem item) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\ttx.begin();\r\n\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, userId);\r\n\t\t\tcartdb.addItem(item);\r\n\t\t\ttx.commit();\r\n\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error updating cart \"+ item);\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error updating cart :\"+ item);\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t}", "private void addNewSpinnerItem3() {\n\t\tmscust=ecust.getText().toString();\n\t\tCharSequence textHolder = \"\" +mscust; \n\t\tadapter3.insert(textHolder, 0);\n\t\tsmob.setAdapter(adapter3);\n\t\t}", "public <T extends Closeable> T addResource(String id, T c) {\n\t\trks.add(id);\n\t\trvs.add(c);\n\t\treturn c;\n\t}", "public void secondaryAddAntennes(com.hps.july.persistence.Antenna arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddAntennes(arg0);\n }", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "protected void addObject(String item) {\n\t\tString p = null;\n\t\tif (tripleTable.getText(row - 1, 2).isEmpty())\n\t\t\trow--;\n\n\t\tif (tripleTable.getText(row, 1).isEmpty()) {\n\t\t\ttripleTable.setText(row, 2, item);\n\t\t} else {\n\t\t\tp = tripleTable.getText(row, 1);\n\t\t\tp = p.substring(p.indexOf('#') + 1, p.length());\n\t\t\tif (ontology.get(ontologies.getSelectedIndex()).getProperties().contains(p) || p.equals(\"RDF.type\")) {\n\t\t\t\ttripleTable.setText(row, 2, item);\n\t\t\t} else {\n\t\t\t\tif (item.startsWith(\"http://\")) {\n\t\t\t\t\tWindow.alert(\"Must enter a literal value\");\n\t\t\t\t} else {\n\t\t\t\t\ttripleTable.setText(row, 2, item);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addItem(CSVItem item)\n\t{\n\t\titemList.add(item);\n\t}", "public void additem(String item){\n\t\trep.takeitem(\"take \" + item);\n\t}", "public void insert(String newitem) {\n\t\t// TODO Write me!\n\t\t\n\t}", "@Override\r\n\tpublic boolean add(Se_cat se_cat) {\n\t\t\t\treturn se_catdao.add(se_cat);\r\n\t}", "public void addOverlayItem(OverlayItem item) {\n if (mItemOverlay == null) {\n initItemOverlay();\n }\n mItemOverlay.addItem(item);\n // TODO: do we need to refresh this?\n }", "@PostMapping(\"\")\n public ResultEntity<String> addItem(@RequestBody NewItemRequest item, Principal principal) {\n return itemService.addItem(new Item(item, ConstantUtil.TYPE_SALE_RENT, principal.getName()));\n }", "public static void addResource(ArrayList<Resource> resource){\n String id;\n String type;\n String name;\n String genre;\n String author;\n String year;\n String userID = \"0\";\n Boolean checkedOut = false;\n\n int nextID = Resource.getLastID() + 1;\n id = \"\" + nextID;\n type = stringInput(\"What type is the resource\");\n name = stringInput(\"What is the name of the resource\");\n genre = stringInput(\"What genre is the resource\");\n author = stringInput(\"Who is the author\");\n year = stringInput(\"What year is it published\");\n\n resource.add(new Resource(id, type, name, genre, author, year, userID, checkedOut));\n }", "public void addCourse(Course c){\n\t\tcourses.add(c);\n\t}", "public void addSubcontractorRecord(String[] record) { \n \tthis.records.add(record);\n }", "void addCourse(Course course);", "public Item addItem(Item item) {\r\n uniqueCounter++;\r\n items.add(item);\r\n return item;\r\n }", "void addMember(Item item) throws AccessManagementException;", "public void createSecondaryGradebook (Integer gradebookId, String thisHost, String primaryHost) throws GradebookNotFoundException {\n\t\tGradebook gradebook;\n\n\t\ttry {\n\t\t\tgradebook = getGradebookById(gradebookId);\n\t\t\tif (gradebook != null) {\n\t\t\t\tSystem.err.println(\"Found gradebook name \" + gradebook.getName());\n\t\t\t\tthrow new GradebookExistsException(gradebookId.toString() + \" already exists on this server\");\n\t\t\t}\n\t\t} catch (GradebookNotFoundException exception) {\n\t\t\t// Good...\n\t\t}\n\n\t\t// Get the gradebook from the primary.\n\t\ttry {\n\t\t\tString uri = PROTOCOL + \"://\" + primaryHost +\n\t\t\t\t\t\"/gradebook/\" + gradebookId;\n\t\t\tSystem.out.println(\"Calling: \" + uri);\n\t\t\tgradebook = this.getForObject(uri, Gradebook.class);\n\t\t} catch (RestClientException exception) {\n\t\t\tSystem.err.println(\"Failed to get the gradebook from the primary\");\n\n\t\t\t// TODO: how do we figure if it's a 404?\n\t\t\tthrow new GradebookNotFoundException(\"Not found\");\n\t\t}\n\n\t\t// This is so freaking lame. We need to get the gradebook from the primary server, save it here, and then update\n\t\t// the primary server's copy so that it knows a secondary exists.\n\n\t\t// Add secondary host.\n\t\t// We are setting the secondary host to THIS server.\n\t\tgradebook.setSecondaryHost(thisHost);\n\t\tgradebook.setIsPrimaryServer(false);\n\n\t\t// Push to secondary.\n\t\ttry {\n\t\t\tthis.postForLocation(PROTOCOL + \"://\" + primaryHost +\n\t\t\t\t\t\"/secondary/\" + gradebookId + \"/sync\", null);\n\t\t} catch (RestClientException e){\n\t\t\tSystem.err.println(\"Failed to sync the primary\");\n\t\t\t// I don't think we want to continue saving the secondary\n\t\t\tthrow e;\n\t\t}\n\t\t// Assuming the above passed, we save the gradebook's edit.\n\t\tthis.saveGradebook(gradebook);\n\t}", "public HistoryItemCS addHistoryCS(HistoryItemCS historyCS) {\n\n // 1. create ContentValues to add key \"column\"/value\n ContentValues values = new ContentValues();\n values.put(KEY_ADDRESS, historyCS.getAddress()); // get address\n values.put(KEY_DISTRICT, historyCS.getDistrict()); // get district\n values.put(KEY_DESCRIPTION, historyCS.getDescription()); // get charging station\n values.put(KEY_TYPE, historyCS.getType()); // get type\n values.put(KEY_SOCKET, historyCS.getSocket()); // get socket\n values.put(KEY_QUANTITY, historyCS.getQuantity()); // get quantity\n values.put(KEY_LATITUDE, historyCS.getLatitude()); // get latitude\n values.put(KEY_LONGITUDE, historyCS.getLongitude()); // get longitude\n values.put(KEY_INDEX, historyCS.getMatching_index()); // get availability\n\n // 2. insert or update\n\n if (!checkHistoryItemCSExist(historyCS)) {\n // Perform the insert query\n db.insert(TABLE_NAME, null, values);\n Log.d(\"addhistoryCS\", historyCS.toString());\n }\n\n // 3. return the item historyCS\n return historyCS;\n }", "public int addEntry(String cid, Date eventTime, String key, String type, Map<String,String> map){\r\n\t\tCustomer cust;\r\n\t\tif (!type.equalsIgnoreCase(sConstants.CUSTOMER)){\r\n\t\t\tif (treeData.get(cid) == null){\r\n\t\t\t\t//return sConstants.NOT_EXIST;\r\n\t\t\t\tcust = new MyCustomer(cid, eventTime, map);\r\n\t\t\t\ttreeData.put(cid, cust);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcust = treeData.get(cid);\r\n\t\t\t\tcust.update(eventTime, key, type, map);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (treeData.get(cid) != null){\r\n\t\t\t\treturn sConstants.ALREADY_EXIST;\r\n\t\t\t}\r\n\t\t\tcust = new MyCustomer(cid, eventTime, map);\r\n\t\t\ttreeData.put(cid, cust);\r\n\t\t}\r\n\t if (eventTime.before(first))\r\n\t \tfirst = eventTime;\r\n\t if (eventTime.after(last))\r\n\t \tlast = eventTime;\r\n\r\n\t\treturn sConstants.SUCCESS;\r\n\t}", "public void addAuthorizedItems(int... id2) {\n\t\tfor(int m : id2) this.authorizedItems.add(m);\n\t}", "private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }", "public native String appendItem(String newItem);", "void setSecondaryColor(String secondaryColor){\n this.secondaryColor = secondaryColor;\n }", "public void append(Object item);", "org.hl7.fhir.ResourceReference addNewSubject();" ]
[ "0.65128946", "0.6396268", "0.57577544", "0.57361317", "0.5594333", "0.5500523", "0.5477122", "0.54520935", "0.54479885", "0.54470086", "0.54196763", "0.5397022", "0.53792953", "0.5376813", "0.53754616", "0.5374173", "0.5369551", "0.53391504", "0.53256965", "0.53123176", "0.53112847", "0.5305438", "0.52659446", "0.5255967", "0.52248985", "0.5219218", "0.5215246", "0.52094877", "0.5206663", "0.5206538", "0.52051693", "0.51999366", "0.5193486", "0.51930135", "0.51758885", "0.5159856", "0.51572263", "0.51463366", "0.51344043", "0.51281434", "0.51281184", "0.5116326", "0.50990367", "0.50793976", "0.5066432", "0.5063204", "0.5061067", "0.50583553", "0.5050046", "0.5043352", "0.5042467", "0.50346005", "0.50325125", "0.50167674", "0.5013801", "0.5009656", "0.5007635", "0.50036335", "0.49973968", "0.49917766", "0.49904317", "0.4989298", "0.49880052", "0.49874324", "0.49854812", "0.49786687", "0.4971128", "0.49666312", "0.4965286", "0.49650714", "0.4964263", "0.4960852", "0.49568868", "0.4953289", "0.49414548", "0.4939372", "0.4931682", "0.49310216", "0.49123657", "0.49114534", "0.49097234", "0.4906745", "0.49063027", "0.4906133", "0.48993462", "0.48984027", "0.4896403", "0.4893094", "0.48877665", "0.4887273", "0.4886195", "0.4884052", "0.4880607", "0.48799092", "0.48793635", "0.48707607", "0.48655897", "0.48563588", "0.48551244", "0.48540404" ]
0.53850746
12
Stolen from stack overflow
public static String[] createArgsRespectingQuotes(String args) { List<String> tokens = new ArrayList<String>(); StringBuilder sb = new StringBuilder(); boolean insideQuote = false; for (char c : args.toCharArray()) { if (c == '"') insideQuote = !insideQuote; if (c == ' ' && !insideQuote) {//when space is not inside quote split.. tokens.add(sb.toString()); //token is ready, lets add it to list sb.delete(0, sb.length()); //and reset StringBuilder`s content } else sb.append(c);//else add character to token } //lets not forget about last token that doesn't have space after it tokens.add(sb.toString()); String[] array=tokens.toArray(new String[0]); for (int i = 0; i < array.length; ++i) { array[i] = removeChar(array[i],'"'); } array = removeEmpty(array); return array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void kk12() {\n\n\t}", "public abstract int mo9754s();", "private void m50366E() {\n }", "void mo57277b();", "public abstract void mo70713b();", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "public abstract void mo6549b();", "protected boolean func_70814_o() { return true; }", "public abstract void mo56925d();", "public abstract void mo27385c();", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "private static void cajas() {\n\t\t\n\t}", "public abstract String mo13682d();", "StackManipulation cached();", "private static java.lang.String m149886a() {\n /*\n r0 = 0\n java.io.BufferedReader r1 = new java.io.BufferedReader // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.io.InputStreamReader r2 = new java.io.InputStreamReader // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.io.FileInputStream r3 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r5 = \"/proc/\"\n r4.<init>(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n int r5 = android.os.Process.myPid() // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r4.append(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r5 = \"/cmdline\"\n r4.append(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r4 = r4.toString() // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r3.<init>(r4) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r4 = \"iso-8859-1\"\n r2.<init>(r3, r4) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r1.<init>(r2) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r2.<init>() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n L_0x002e:\n int r3 = r1.read() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n if (r3 <= 0) goto L_0x0039\n char r3 = (char) r3 // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r2.append(r3) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n goto L_0x002e\n L_0x0039:\n org.chromium.f r3 = org.chromium.C48317f.m149883a() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n boolean r3 = r3.loggerDebug() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n if (r3 == 0) goto L_0x005e\n org.chromium.f r3 = org.chromium.C48317f.m149883a() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r4 = \"Process\"\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r6 = \"get processName = \"\n r5.<init>(r6) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r6 = r2.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r5.append(r6) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r5 = r5.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r3.loggerD(r4, r5) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n L_0x005e:\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r1.close() // Catch:{ Exception -> 0x0065 }\n L_0x0065:\n return r2\n L_0x0066:\n r0 = move-exception\n goto L_0x006c\n L_0x0068:\n r1 = move-exception\n r7 = r1\n r1 = r0\n r0 = r7\n L_0x006c:\n if (r1 == 0) goto L_0x0071\n r1.close() // Catch:{ Exception -> 0x0071 }\n L_0x0071:\n throw r0\n L_0x0072:\n r1 = r0\n L_0x0073:\n if (r1 == 0) goto L_0x0078\n r1.close() // Catch:{ Exception -> 0x0078 }\n L_0x0078:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.C48320i.m149886a():java.lang.String\");\n }", "public abstract void mo27386d();", "public abstract long mo9229aD();", "public abstract String mo118046b();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "public abstract Object mo26777y();", "private void strin() {\n\n\t}", "public abstract String mo9239aw();", "void mo57278c();", "private void poetries() {\n\n\t}", "public abstract String mo41079d();", "void mo72113b();", "zzafe mo29840Y() throws RemoteException;", "private SBomCombiner()\n\t{}", "void m5770d() throws C0841b;", "public abstract int mo8526p();", "public abstract long mo13681c();", "public abstract int mo9747l();", "public abstract String mo11611b();", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public abstract int mo9753r();", "void m5771e() throws C0841b;", "static int size_of_xri(String passed){\n\t\treturn 2;\n\t}", "public abstract int mo9742g();", "void mo41086b();", "public void mo21877s() {\n }", "C3579d mo19679F() throws IOException;", "void mo80457c();", "private java.lang.String a(java.lang.String r6, com.google.b5 r7, com.google.e5 r8, java.lang.String r9) {\n /*\n r5 = this;\n r2 = F;\n r0 = r7.e();\n r1 = r5.o;\n r3 = r7.i();\n r1 = r1.a(r3);\n r3 = r1.matcher(r6);\n r1 = \"\";\n r1 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0092 }\n if (r8 != r1) goto L_0x004b;\n L_0x001b:\n if (r9 == 0) goto L_0x004b;\n L_0x001d:\n r1 = r9.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x0023:\n r1 = r7.d();\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x002d:\n r1 = r7.d();\n r4 = f;\n r1 = r4.matcher(r1);\n r1 = r1.replaceFirst(r9);\n r4 = z;\n r0 = r4.matcher(r0);\n r0 = r0.replaceFirst(r1);\n r1 = r3.replaceAll(r0);\n if (r2 == 0) goto L_0x009c;\n L_0x004b:\n r1 = r7.k();\n r4 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0098 }\n if (r8 != r4) goto L_0x006b;\n L_0x0053:\n if (r1 == 0) goto L_0x006b;\n L_0x0055:\n r4 = r1.length();\t Catch:{ RuntimeException -> 0x009a }\n if (r4 <= 0) goto L_0x006b;\n L_0x005b:\n r4 = z;\n r4 = r4.matcher(r0);\n r1 = r4.replaceFirst(r1);\n r1 = r3.replaceAll(r1);\n if (r2 == 0) goto L_0x009c;\n L_0x006b:\n r0 = r3.replaceAll(r0);\n L_0x006f:\n r1 = com.google.e5.RFC3966;\n if (r8 != r1) goto L_0x0091;\n L_0x0073:\n r1 = p;\n r1 = r1.matcher(r0);\n r2 = r1.lookingAt();\n if (r2 == 0) goto L_0x0086;\n L_0x007f:\n r0 = \"\";\n r0 = r1.replaceFirst(r0);\n L_0x0086:\n r0 = r1.reset(r0);\n r1 = \"-\";\n r0 = r0.replaceAll(r1);\n L_0x0091:\n return r0;\n L_0x0092:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0094 }\n L_0x0094:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0096 }\n L_0x0096:\n r0 = move-exception;\n throw r0;\n L_0x0098:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x009a }\n L_0x009a:\n r0 = move-exception;\n throw r0;\n L_0x009c:\n r0 = r1;\n goto L_0x006f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.b5, com.google.e5, java.lang.String):java.lang.String\");\n }", "public abstract void mo2624j();", "public abstract Object mo1185b();", "private static java.lang.String a(java.lang.String r5, java.util.Map r6, boolean r7) {\n /*\n r2 = F;\n r3 = new java.lang.StringBuilder;\n r0 = r5.length();\n r3.<init>(r0);\n r0 = 0;\n r1 = r0;\n L_0x000d:\n r0 = r5.length();\n if (r1 >= r0) goto L_0x0035;\n L_0x0013:\n r4 = r5.charAt(r1);\n r0 = java.lang.Character.toUpperCase(r4);\n r0 = java.lang.Character.valueOf(r0);\n r0 = r6.get(r0);\n r0 = (java.lang.Character) r0;\n if (r0 == 0) goto L_0x002c;\n L_0x0027:\n r3.append(r0);\t Catch:{ RuntimeException -> 0x003a }\n if (r2 == 0) goto L_0x0031;\n L_0x002c:\n if (r7 != 0) goto L_0x0031;\n L_0x002e:\n r3.append(r4);\t Catch:{ RuntimeException -> 0x003c }\n L_0x0031:\n r0 = r1 + 1;\n if (r2 == 0) goto L_0x003e;\n L_0x0035:\n r0 = r3.toString();\n return r0;\n L_0x003a:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003c }\n L_0x003c:\n r0 = move-exception;\n throw r0;\n L_0x003e:\n r1 = r0;\n goto L_0x000d;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.util.Map, boolean):java.lang.String\");\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "public final void mo51373a() {\n }", "public static String i() {\n Object object;\n Object object2;\n Object object3;\n block24: {\n String string2;\n block22: {\n block25: {\n block23: {\n block21: {\n byte[] byArray;\n int n10 = 0;\n object3 = null;\n object2 = Runtime.getRuntime();\n object = \"getprop ro.board.platform\";\n object2 = ((Runtime)object2).exec((String)object);\n object = ((Process)object2).getInputStream();\n int n11 = 128;\n try {\n byArray = new byte[n11];\n ((InputStream)object).read(byArray);\n string2 = new String(byArray);\n object3 = \"\\n\";\n }\n catch (IOException iOException) {\n string2 = null;\n object3 = iOException;\n break block23;\n }\n try {\n n10 = string2.indexOf((String)object3);\n n11 = -1;\n if (n10 != n11) {\n n11 = 0;\n byArray = null;\n string2 = string2.substring(0, n10);\n }\n if (object == null) break block21;\n }\n catch (IOException iOException) {\n break block23;\n }\n try {\n ((InputStream)object).close();\n }\n catch (IOException iOException) {\n iOException.printStackTrace();\n }\n }\n if (object2 == null) return string2;\n break block22;\n catch (Throwable throwable) {\n object = null;\n object3 = throwable;\n break block24;\n }\n catch (IOException iOException) {\n string2 = null;\n object3 = iOException;\n object = null;\n break block23;\n }\n catch (Throwable throwable) {\n object = null;\n object3 = throwable;\n object2 = null;\n break block24;\n }\n catch (IOException iOException) {\n object = null;\n string2 = null;\n object3 = iOException;\n object2 = null;\n }\n }\n ((Throwable)object3).printStackTrace();\n if (object == null) break block25;\n try {\n ((InputStream)object).close();\n }\n catch (IOException iOException) {\n iOException.printStackTrace();\n }\n }\n if (object2 == null) return string2;\n }\n ((Process)object2).destroy();\n return string2;\n catch (Throwable throwable) {\n // empty catch block\n }\n }\n if (object != null) {\n try {\n ((InputStream)object).close();\n }\n catch (IOException iOException) {\n iOException.printStackTrace();\n }\n }\n if (object2 == null) throw object3;\n ((Process)object2).destroy();\n throw object3;\n }", "private final java.lang.String B(java.util.Map<java.lang.String, ? extends java.lang.Object> r11) {\n /*\n r10 = this;\n r11 = r11.entrySet();\n r11 = (java.lang.Iterable) r11;\n r0 = new java.util.ArrayList;\n r0.<init>();\n r0 = (java.util.Collection) r0;\n r11 = r11.iterator();\n L_0x0011:\n r1 = r11.hasNext();\n if (r1 == 0) goto L_0x004e;\n L_0x0017:\n r1 = r11.next();\n r2 = r1;\n r2 = (java.util.Map.Entry) r2;\n r3 = r2.getKey();\n r3 = (java.lang.CharSequence) r3;\n r3 = r3.length();\n r4 = 1;\n r5 = 0;\n if (r3 <= 0) goto L_0x002e;\n L_0x002c:\n r3 = 1;\n goto L_0x002f;\n L_0x002e:\n r3 = 0;\n L_0x002f:\n if (r3 == 0) goto L_0x0047;\n L_0x0031:\n r2 = r2.getValue();\n r2 = r2.toString();\n r2 = (java.lang.CharSequence) r2;\n r2 = r2.length();\n if (r2 <= 0) goto L_0x0043;\n L_0x0041:\n r2 = 1;\n goto L_0x0044;\n L_0x0043:\n r2 = 0;\n L_0x0044:\n if (r2 == 0) goto L_0x0047;\n L_0x0046:\n goto L_0x0048;\n L_0x0047:\n r4 = 0;\n L_0x0048:\n if (r4 == 0) goto L_0x0011;\n L_0x004a:\n r0.add(r1);\n goto L_0x0011;\n L_0x004e:\n r0 = (java.util.List) r0;\n r1 = r0;\n r1 = (java.lang.Iterable) r1;\n r11 = \"&\";\n r2 = r11;\n r2 = (java.lang.CharSequence) r2;\n r3 = 0;\n r4 = 0;\n r5 = 0;\n r6 = 0;\n r11 = com.iqoption.core.connect.http.Http$urlEncode$2.baR;\n r7 = r11;\n r7 = (kotlin.jvm.a.b) r7;\n r8 = 30;\n r9 = 0;\n r11 = kotlin.collections.u.a(r1, r2, r3, r4, r5, r6, r7, r8, r9);\n r11 = r10.ft(r11);\n return r11;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.core.connect.http.c.B(java.util.Map):java.lang.String\");\n }", "public abstract int mo9797a();", "zzang mo29839S() throws RemoteException;", "public abstract String mo9751p();", "Compatibility compatibility();", "protected boolean func_70041_e_() { return false; }", "void mo119582b();", "public abstract String mo9752q();", "public abstract void mo30696a();", "void m5768b() throws C0841b;", "public void func_70305_f() {}", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "void m8368b();", "private stendhal() {\n\t}", "C3579d mo19708e(String str) throws IOException;", "abstract String mo1748c();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "static int size_of_xra(String passed){\n\t\treturn 1;\n\t}", "public abstract void mo53562a(C18796a c18796a);", "private final zzgy zzgb() {\n }", "void mo72114c();", "C32446a mo21077h() throws Exception;", "static int size_of_stax(String passed){\n\t\treturn 1;\n\t}", "static int size_of_inx(String passed){\n\t\treturn 1;\n\t}", "static void feladat9() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }", "private void m50367F() {\n }", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "void mo80455b();", "void mo21072c();", "abstract int pregnancy();", "public abstract String mo41086i();", "public abstract int mo4375b();", "void mo60893b();", "public abstract void mo42329d();", "private static int zzaz(java.lang.String r5) {\n /*\n int r0 = r5.hashCode()\n r1 = 0\n r2 = 3\n r3 = 2\n r4 = 1\n switch(r0) {\n case -1095064472: goto L_0x002a;\n case 187078296: goto L_0x0020;\n case 1504578661: goto L_0x0016;\n case 1505942594: goto L_0x000c;\n default: goto L_0x000b;\n }\n L_0x000b:\n goto L_0x0034\n L_0x000c:\n java.lang.String r0 = \"audio/vnd.dts.hd\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 3\n goto L_0x0035\n L_0x0016:\n java.lang.String r0 = \"audio/eac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 1\n goto L_0x0035\n L_0x0020:\n java.lang.String r0 = \"audio/ac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 0\n goto L_0x0035\n L_0x002a:\n java.lang.String r0 = \"audio/vnd.dts\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 2\n goto L_0x0035\n L_0x0034:\n r5 = -1\n L_0x0035:\n if (r5 == 0) goto L_0x0045\n if (r5 == r4) goto L_0x0043\n if (r5 == r3) goto L_0x0041\n if (r5 == r2) goto L_0x003e\n return r1\n L_0x003e:\n r5 = 8\n return r5\n L_0x0041:\n r5 = 7\n return r5\n L_0x0043:\n r5 = 6\n return r5\n L_0x0045:\n r5 = 5\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzio.zzaz(java.lang.String):int\");\n }", "zzand mo29852bb() throws RemoteException;", "private void a(java.lang.String r6, java.lang.StringBuilder r7) {\n /*\n r5 = this;\n r0 = F;\n r1 = J;\n r2 = 35;\n r1 = r1[r2];\n r1 = r6.indexOf(r1);\n if (r1 <= 0) goto L_0x0057;\n L_0x000e:\n r2 = J;\n r3 = 38;\n r2 = r2[r3];\n r2 = r2.length();\n r2 = r2 + r1;\n r3 = r6.charAt(r2);\n r4 = 43;\n if (r3 != r4) goto L_0x0039;\n L_0x0021:\n r3 = 59;\n r3 = r6.indexOf(r3, r2);\n if (r3 <= 0) goto L_0x0032;\n L_0x0029:\n r3 = r6.substring(r2, r3);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r3);\t Catch:{ RuntimeException -> 0x0072 }\n if (r0 == 0) goto L_0x0039;\n L_0x0032:\n r2 = r6.substring(r2);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r2);\t Catch:{ RuntimeException -> 0x0072 }\n L_0x0039:\n r2 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r3 = 37;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r6.indexOf(r2);\t Catch:{ RuntimeException -> 0x0074 }\n r3 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r4 = 36;\n r3 = r3[r4];\t Catch:{ RuntimeException -> 0x0074 }\n r3 = r3.length();\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r2 + r3;\n r1 = r6.substring(r2, r1);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r1);\t Catch:{ RuntimeException -> 0x0074 }\n if (r0 == 0) goto L_0x005e;\n L_0x0057:\n r0 = l(r6);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r0);\t Catch:{ RuntimeException -> 0x0074 }\n L_0x005e:\n r0 = J;\n r1 = 39;\n r0 = r0[r1];\n r0 = r7.indexOf(r0);\n if (r0 <= 0) goto L_0x0071;\n L_0x006a:\n r1 = r7.length();\t Catch:{ RuntimeException -> 0x0076 }\n r7.delete(r0, r1);\t Catch:{ RuntimeException -> 0x0076 }\n L_0x0071:\n return;\n L_0x0072:\n r0 = move-exception;\n throw r0;\n L_0x0074:\n r0 = move-exception;\n throw r0;\n L_0x0076:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.StringBuilder):void\");\n }", "static int size_of_sbb(String passed){\n\t\treturn 1;\n\t}", "public void mo38117a() {\n }", "void mo41083a();", "public static java.lang.String a() {\n /*\n java.lang.StringBuffer r0 = new java.lang.StringBuffer\n r0.<init>()\n r1 = 20\n r2 = 0\n char[] r3 = new char[r1] // Catch:{ Exception -> 0x005a, all -> 0x0053 }\n java.io.InputStreamReader r4 = new java.io.InputStreamReader // Catch:{ Exception -> 0x005a, all -> 0x0053 }\n java.io.FileInputStream r5 = new java.io.FileInputStream // Catch:{ Exception -> 0x005a, all -> 0x0053 }\n java.lang.String r6 = \"/sys/class/net/eth0/address\"\n r5.<init>(r6) // Catch:{ Exception -> 0x005a, all -> 0x0053 }\n r4.<init>(r5) // Catch:{ Exception -> 0x005a, all -> 0x0053 }\n L_0x0016:\n int r5 = r4.read(r3) // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n r6 = -1\n if (r5 == r6) goto L_0x003c\n r6 = 13\n if (r5 != r1) goto L_0x002d\n r7 = 19\n char r7 = r3[r7] // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n if (r7 == r6) goto L_0x002d\n java.io.PrintStream r5 = java.lang.System.out // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n r5.print(r3) // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n goto L_0x0016\n L_0x002d:\n r7 = 0\n L_0x002e:\n if (r7 >= r5) goto L_0x0016\n char r8 = r3[r7] // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n if (r8 == r6) goto L_0x0039\n char r8 = r3[r7] // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n r0.append(r8) // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n L_0x0039:\n int r7 = r7 + 1\n goto L_0x002e\n L_0x003c:\n java.lang.String r0 = r0.toString() // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n java.lang.String r0 = r0.trim() // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n java.lang.String r1 = \":\"\n java.lang.String r3 = \"\"\n java.lang.String r0 = r0.replaceAll(r1, r3) // Catch:{ Exception -> 0x005b, all -> 0x0050 }\n r4.close() // Catch:{ Exception -> 0x004f }\n L_0x004f:\n return r0\n L_0x0050:\n r0 = move-exception\n r2 = r4\n goto L_0x0054\n L_0x0053:\n r0 = move-exception\n L_0x0054:\n if (r2 == 0) goto L_0x0059\n r2.close() // Catch:{ Exception -> 0x0059 }\n L_0x0059:\n throw r0\n L_0x005a:\n r4 = r2\n L_0x005b:\n if (r4 == 0) goto L_0x0060\n r4.close() // Catch:{ Exception -> 0x0060 }\n L_0x0060:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.mobstat.bw.a():java.lang.String\");\n }", "public abstract void mo35054b();", "static void feladat7() {\n\t}", "public void mo21787L() {\n }", "public abstract long mo24409b();", "private void level7() {\n }", "public void mo12628c() {\n }" ]
[ "0.5497172", "0.53695667", "0.5354823", "0.5334771", "0.5316379", "0.52940845", "0.5293698", "0.52926725", "0.5256881", "0.5237602", "0.5216972", "0.52018225", "0.5197213", "0.5186349", "0.5157498", "0.51515615", "0.5132615", "0.5123842", "0.5102339", "0.50992143", "0.508522", "0.50782454", "0.50761193", "0.506681", "0.50592184", "0.5056114", "0.5056033", "0.50492555", "0.504861", "0.50439376", "0.5037752", "0.5033558", "0.5021628", "0.5020987", "0.501737", "0.5010076", "0.5004401", "0.49966186", "0.49925616", "0.49825677", "0.49823752", "0.49790382", "0.49700883", "0.49645278", "0.49499533", "0.49487564", "0.49460223", "0.4942543", "0.4938528", "0.49281177", "0.4925574", "0.49226785", "0.49219307", "0.49206954", "0.49204797", "0.49200296", "0.49138024", "0.49126473", "0.49081492", "0.49079165", "0.4907367", "0.49064678", "0.4905027", "0.490442", "0.4898093", "0.48964113", "0.4892315", "0.48919415", "0.4889479", "0.4889404", "0.4887", "0.48807108", "0.48790964", "0.48785758", "0.4876136", "0.4875076", "0.48747867", "0.48743358", "0.4869114", "0.48681244", "0.48679394", "0.48675045", "0.48663053", "0.4862949", "0.48605362", "0.48573205", "0.4850289", "0.4845562", "0.4844215", "0.4841827", "0.4841347", "0.48411334", "0.48378187", "0.4835311", "0.4835256", "0.48336673", "0.4828541", "0.48238105", "0.48237416", "0.4823387", "0.48205894" ]
0.0
-1
Do nothing! We never initiate.
public void initiate(TelnetClient client) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initialize() {\n \t// literally do nothing\n }", "public void init() {\r\n // nothing to do\r\n }", "private void initialize() {\n\t\t\n\t}", "private void initialize() {\n\t}", "private void initialize() {\n }", "private void init() {\n\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "protected void initialize() {}", "protected void initialize() {}", "private void init() {\n\n\n\n }", "private stendhal() {\n\t}", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public static void initial(){\n\t}", "public void init()\r\n {\r\n ;\r\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic synchronized void init() {\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "protected void _init(){}", "private void _init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "protected void initialize() {\n\t\t\n\t}", "protected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "@Override\r\n\tprotected boolean Initialize() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void autonomousInit() {\n \n }", "@Override\n protected void init() {\n }", "public void startup()\n\t{\n\t\t; // do nothing\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "public void initialize() {\n // empty for now\n }", "@Override\n\tpublic void init() {\n\t\t// Nothing to do in this example\n\t}", "public void init() {\r\n\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "protected void init() {\n init(null);\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "public void init() {\n\t\t\n\t}", "public void initialize() {\r\n }", "@Override\n\tprotected void initialise() {\n\t}", "@Override\n public void init() {}", "protected void initialize()\r\n {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n\tpublic void initialize() {\n\t\t\n\t}", "public void init() {\n \n }", "public static void init() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\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 Doodler() {\n\t}", "protected void initialize()\n\t{\n\t}", "public void init() {\n\t\t}", "public void initialize() {\n\t}", "public void initialize() {\n\t}", "protected void initialize() {\n\t}", "@Override\r\n public void initialize()\r\n {\n }", "public void init() {\n\t}", "public void init() {\n\t}" ]
[ "0.7690708", "0.74079", "0.7372492", "0.7332235", "0.7254124", "0.7214558", "0.71617055", "0.71141917", "0.71141917", "0.71141917", "0.71141917", "0.7111483", "0.7111483", "0.7111124", "0.7081988", "0.7062624", "0.70620096", "0.7047214", "0.7042304", "0.70371616", "0.70371616", "0.70371616", "0.70371616", "0.70371616", "0.70371616", "0.7027452", "0.70209074", "0.7019376", "0.7019376", "0.7019376", "0.7019376", "0.7019376", "0.7011803", "0.7006619", "0.6998669", "0.6991643", "0.6985337", "0.6985337", "0.69795346", "0.6966087", "0.6966087", "0.69543064", "0.69543064", "0.6952531", "0.6952531", "0.6952057", "0.693881", "0.69371545", "0.6936173", "0.6935932", "0.6929014", "0.69237816", "0.69201565", "0.69164497", "0.6912991", "0.69102", "0.69102", "0.69056666", "0.69056666", "0.69023824", "0.69023824", "0.69023824", "0.69023824", "0.69023824", "0.69023824", "0.69023824", "0.69023824", "0.69023824", "0.69023824", "0.6899669", "0.6898545", "0.6898545", "0.68922675", "0.68922675", "0.68922675", "0.6888395", "0.6887594", "0.68825305", "0.68788725", "0.6875088", "0.6873707", "0.68716025", "0.68682814", "0.68682814", "0.68682814", "0.68672675", "0.68622285", "0.6861846", "0.68589365", "0.68576443", "0.68576443", "0.68576443", "0.68555737", "0.68528867", "0.6852561", "0.6841018", "0.6841018", "0.68406725", "0.68354416", "0.6830711", "0.6830711" ]
0.0
-1
Consume an IAC SB SEND IAC SE
public int consumeIncoming(short[] incoming, TelnetClient client) { if (incoming[0] == client.IAC && incoming[1] == client.SB && incoming[2] == getCode() && incoming[3] == SEND && incoming[4] == client.IAC && incoming[5] == client.SE) { // Write our termtype message to our output buffer. try { out.write(new short[] {IAC, SB, getCode(), IS}); String[] names = client.getTerminalModel().getModelName(); if (requests >= names.length) { out.write(names[names.length - 1].getBytes("ASCII")); } else { out.write(names[requests].getBytes("ASCII")); } out.write(new short[] {IAC, SE}); return 6; } catch (Exception ex) {} } else if (incoming[0] == client.IAC && incoming[1] == client.SB && incoming[2] == getCode() && incoming[3] == IS) { // Search for the IAC SE... boolean subEnds = false; int end = 0; for (end = 4; end < incoming.length - 1 && !subEnds; end++) { subEnds = (incoming[end] == client.IAC && incoming[end + 1] == client.SE); } /* if subEnds == true then, * end is the zero-based offset into the array where the second * IAC is located. We need to report that we've read up through * the SE when we're done reading the remote term type. */ // Everything between (IAC SB <code> IS) and (IAC SE) is the terminal type name. if (subEnds) { StringBuffer termName = new StringBuffer(); for (int i = 4; i < end; i++) { termName.append((char)incoming[i]); } return end + 2; } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void received() throws ImsException;", "void recive() throws IOException, TimeoutException, InterruptedException, Exception\n {\n ConnectionFactory connfac = new ConnectionFactory();\n connfac.setHost(hostName);\n connfac.setUsername(\"student\");\n connfac.setPassword(\"cph\");\n \n //make the connection\n Connection conn = connfac.newConnection();\n //make the channel for messaging\n Channel chan = conn.createChannel();\n \n //Declare a queue\n chan.exchangeDeclare(ExchangeName.OUTPUT_LOAN_REQUEST, \"fanout\");\n String queueName = chan.queueDeclare().getQueue();\n chan.queueBind(queueName,ExchangeName.OUTPUT_LOAN_REQUEST,\"\");\n \n\t System.out.println(\" [*] Waiting for messages on \"+ ExchangeName.OUTPUT_LOAN_REQUEST +\". To exit press CTRL+C\");\n \n\t QueueingConsumer consumer = new QueueingConsumer(chan);\n\t chan.basicConsume(queueName, true, consumer);\n\t \n //start polling messages\n\t while (true) {\n\t QueueingConsumer.Delivery delivery = consumer.nextDelivery();\n\t String m = new String(delivery.getBody());\n\t System.out.println(\" [x] Received '\" + m + \"'\");\n Gson gson = new GsonBuilder().create();\n Message fm = gson.fromJson(m, Message.class);\n int creditScore = creditScore(fm.getSsn());\n fm.setCreditScore(creditScore);\n fm.setSsn(fm.getSsn().replace(\"-\", \"\"));\n send(fm);\n \n \n\t }\n \n \n }", "@Override\n public void action() {\n ACLMessage acl = blockingReceive();\n System.err.println(\"Hola, que gusto \" + acl.getSender() + \", yo soy \" + getAgent().getName());\n new EnviarMensaje().enviarMensajeString(ACLMessage.INFORM, \"Ag4\", getAgent(), \"Hola agente, soy \" + getAgent().getName(),\n \"COD0001\");\n }", "public interface UsbCommunicationInterface extends Runnable\n{\n byte get();\n\n void send(byte data) throws IOException;\n\n void cancel();\n}", "private void sendReceiveRes(){\n\t}", "@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }", "private void processInviteToEstablishControlSocket(final Message msg) {\n final String readString = \n (String) msg.getProperty(P2PConstants.SECRET_KEY);\n final byte[] readKey = Base64.decodeBase64(readString);\n final byte[] writeKey = CommonUtils.generateKey();\n final String sdp = (String) msg.getProperty(P2PConstants.SDP);\n final ByteBuffer offer = ByteBuffer.wrap(Base64.decodeBase64(sdp));\n final String offerString = MinaUtils.toAsciiString(offer);\n log.info(\"Processing offer: {}\", offerString);\n \n final OfferAnswer offerAnswer;\n try {\n offerAnswer = this.offerAnswerFactory.createAnswerer(\n new ControlSocketOfferAnswerListener(msg.getFrom(), readKey, writeKey), false);\n }\n catch (final OfferAnswerConnectException e) {\n // This indicates we could not establish the necessary connections \n // for generating our candidates.\n log.warn(\"We could not create candidates for offer: \" + sdp, e);\n \n final Message error = newError(msg);\n xmppConnection.sendPacket(error);\n return;\n }\n final byte[] answer = offerAnswer.generateAnswer();\n final long tid = (Long) msg.getProperty(P2PConstants.TRANSACTION_ID);\n \n // TODO: This is a throwaway key here since the control socket is not\n // encrypted as of this writing.\n final Message inviteOk = newInviteOk(tid, answer, writeKey);\n final String to = msg.getFrom();\n inviteOk.setTo(to);\n log.info(\"Sending CONTROL INVITE OK to {}\", inviteOk.getTo());\n XmppUtils.goOffTheRecord(to, xmppConnection);\n xmppConnection.sendPacket(inviteOk);\n \n offerAnswer.processOffer(offer);\n log.debug(\"Done processing CONTROL XMPP INVITE!!!\");\n }", "public Object consumeBloqueante();", "protected void sendMessage() throws IOException {\r\n\t\tif (smscListener != null) {\r\n\t\t\tint procCount = processors.count();\r\n\t\t\tif (procCount > 0) {\r\n\t\t\t\tString client;\r\n\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\tlistClients();\r\n\t\t\t\tif (procCount > 1) {\r\n\t\t\t\t\tSystem.out.print(\"Type name of the destination> \");\r\n\t\t\t\t\tclient = keyboard.readLine();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(0);\r\n\t\t\t\t\tclient = proc.getSystemId();\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\tif (proc.getSystemId().equals(client)) {\r\n\t\t\t\t\t\tif (proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"Type the message> \");\r\n\t\t\t\t\t\t\tString message = keyboard.readLine();\r\n\t\t\t\t\t\t\tDeliverSM request = new DeliverSM();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\trequest.setShortMessage(message);\r\n\t\t\t\t\t\t\t\tproc.serverRequest(request);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sent.\");\r\n\t\t\t\t\t\t\t} catch (WrongLengthOfStringException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sending failed\");\r\n\t\t\t\t\t\t\t\tevent.write(e, \"\");\r\n\t\t\t\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\t\t\t} catch (PDUException pe) {\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\tSystem.out.println(\"This session is inactive.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "private void consume()\r\n\t{\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tSubscriberMessage sifMsg = queue.blockingPull();\t\t\t\t\r\n\t\t\tif (sifMsg != null)\r\n\t\t\t{\r\n\t\t\t\tlogger.debug(consumerID+\" has receive a message from its SubscriberQueue.\");\r\n\t\t\t\tif (sifMsg.isEvent())\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFEvent sifEvent = new SIFEvent(sifMsg.getSIFObject(), sifMsg.getEventAction());\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processEvent(sifEvent, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Event for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nEvent Data:\\n\"+sifEvent, ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFDataObject sifObj = sifMsg.getSIFObject();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processResponse(sifObj, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Object for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nSIF Object Data:\\n\"+((sifObj == null) ? \"null\" : sifObj.toXML()), ex);\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\telse\r\n\t\t\t{\r\n\t\t\t\tlogger.error(consumerID+\" has encountered a problem receiving a message from its SubscriberQueue.\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "void SendIFC (int boardID);", "public static void testIBMMQSendData(){\n\n MQParam param = new MQParam();\n param.setHost(\"10.86.92.194\");\n param.setPort(30099);\n param.setCcsid(1208);\n param.setChannel(\"SVRCONN_GW_OUT\");\n param.setQueueManager(\"ESB_OUT\");\n param.setQueueName(\"EIS.QUEUE.REQUEST.OUT.GCDCHZWMES\");\n param.setUserId(\"mqm\");\n param.setPassword(\"mqm\");\n new Thread(new IBMReceiverThread(param)).run();\n }", "private void processSCCommand(APDU apdu) {\r\n\t\t// apdu is processed by SecureChannel instance. All errors occurring\r\n\t\t// during this process\r\n\t\t// are for Secure Domain to handle. Applet is only required to pass\r\n\t\t// answer, if any.\r\n\t\tbyte responseLength = (byte) mSecureChannel.processSecurity(apdu);\r\n\t\tif (responseLength != 0)\r\n\t\t\tapdu.setOutgoingAndSend((short) ISO7816.OFFSET_EXT_CDATA,\r\n\t\t\t\t\tresponseLength);\r\n\t}", "@Override\n public void completed(Integer result, AsynchronousSocketChannel channel ) {\n\n //ipaddress\n String ipAdr = \"\";\n try{\n\n //Print IPAdress\n ipAdr = channel.getRemoteAddress().toString();\n System.out.println(ipAdr);\n }catch(IOException e) {\n e.printStackTrace();\n }\n\n //if client is close ,return\n buf.flip();\n if (buf.limit() == 0) return;\n\n //Print Message\n String msg = getString(buf);\n\n //time\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Taipei\"));\n System.out.println(sdf.format(new Date()) + \" \" + buf.limit() + \" client: \"+ ipAdr + \" \" + msg);\n\n //\n order ord = null;\n try{\n ord = ParseOrder(sdf.format(new Date()), msg, ipAdr);\n }catch(Exception ex){\n startRead( channel );\n return;\n }\n //2021/05/23 15:55:14.763,TXF,B,10000.0,1,127.0.0.1\n //2021/05/23 15:55:14.763,TXF,S,10000.0,1,127.0.0.1\n\n if (ord.BS.equals(\"B\")) {\n limit(ord, bid);\n }\n if (ord.BS.equals(\"S\")) {\n limit(ord, ask);\n }\n if (trade(bid, ask, match) == true){\n startWrite(clientChannel, \"Mat:\" + match.get(match.size()-1).sysTime + \",\" + match.get(match.size()-1).stockNo+\",\"+\n match.get(match.size()-1).BS+\",\"+match.get(match.size()-1).qty+\",\"+match.get(match.size()-1).price+\"\\n\");\n }\n\n //send to all \n startWrite(clientChannel, \"Ord:\" + getAllOrder(bid, ask)+\"\\n\");\n \n //bid size and ask size\n System.out.println(\"Blist:\" + bid.size() + \" Alist:\" + ask.size());\n\n // echo the message\n//------------------> //startWrite( channel, buf );\n \n //start to read next message again\n startRead( channel );\n }", "void send() throws ImsException;", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tACLMessage message =receive(messageTemplate);\n\t\t\t\tif(message!=null) {\n\t\t\t\t\tSystem.out.println(\"Sender => \" + message.getSender().getName());\n\t\t\t\t\tSystem.out.println(\"Content => \" + message.getContent());\n\t\t\t\t\tSystem.out.println(\"SpeechAct => \" + ACLMessage.getPerformative(message.getPerformative()));\n\t\t\t\t\t//reply with a message\n//\t\t\t\t\tACLMessage reply = new ACLMessage(ACLMessage.CONFIRM);\n//\t\t\t\t\treply.addReceiver(message.getSender());\n//\t\t\t\t\treply.setContent(\"Price = 1000\");\n//\t\t\t\t\tsend(reply);\n\t\t\t\t\t\n\t\t\t\t\tconsumerContainer.logMessage(message);\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"block() ...............\");\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "private @NonNull byte[] sndAth(@NonNull ByteBuffer req) throws IOException {\n return sndMsg(req, WpcAthRsp.RES_ATH).array(); // Return the received Response\n }", "GasData receiveGasData();", "public abstract String requestCard(byte[] messageRec) throws IOException;", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\t\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\t\t\tAE_Bit=(Status_Byte&(0x04))>>2;\n\t\t\t\n\t\t\t\t\tif((AA_Bit==0)&&(AE_Bit==0)) {\n\t\t\t\t\t\tstate2=2;\n\t\t\t\t\t\ttimerflag2=false;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "public void takeABus() {\n\t\tClientCom clientCom = new ClientCom(RunParameters.ArrivalQuayHostName, RunParameters.ArrivalQuayPort);\n\t\twhile (!clientCom.open()) {\n\t\t\tSystem.out.println(\"Arrival Quay not active yet, sleeping for 1 seccond\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t\t;\n\t\tPassenger passenger = (Passenger) Thread.currentThread();\n\t\tMessage pkt = new Message();\n\t\tpkt.setType(MessageType.PASSENGERS_WAITING);\n\t\tpkt.setId(passenger.getPassengerId());\n\n\t\tclientCom.writeObject(pkt);\n\t\tpkt = (Message) clientCom.readObject();\n\n\t\tpassenger.setCurrentState(pkt.getState());\n\t\tclientCom.close();\n\t}", "public void handleAcknowledge( Acknowledge ack )\n {\n TTL_CIL_Message msg = null;\n //\tTTL_CIL_Message msg = translator.translate( ack );\n\n try\n {\n cil.sendMessage( msg );\n }\n catch( IOException ioe )\n {\n\n }\n return;\n }", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\t\n\t\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\t\tAE_Bit=(Status_Byte&(0x04))>>2;\n\t\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\t\t\t\n\t\t\t\t\tif(AE_Bit==1) {\n\t\t\t\t\t\tstate=2;\n\t\t\t\t\t\ttimerflag3=false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "public void subscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), Boolean.TRUE, new UnsignedInteger(0))).get();\n LOG.info(\"Subscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't subscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "public interface DeliverSMRequest extends SmscRequest {\n\n}", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k>=10) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\teeipClient.ForwardClose();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\ttimerflag1=false;\n\t\t\t\t\t\tstatus_write=true;\n\t\t\t\t\t\tstate=3;\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void messageReceived(IoSession session, Object message) throws Exception {\n\t\t\n\t\tSmsObject sms = (SmsObject) message;\n\t\t//log.info(\"The message is [\" + sms.getMessage() + \"]\");\n\n\t\t/*\n\t\t * other operate\n\n\t\tSystem.out.println(\"================================================\");\n\t\tSystem.out.println(\"Data From : \" + session.getRemoteAddress());\n\t\tSystem.out.println(\"Receiver : [\" + sms.getReceiver() + \"]\");\n\t\tSystem.out.println(\"Data Type : [\" + sms.getDataType() + \"]\");\n\t\tSystem.out.println(\"Data Receiver : [\" + sms.getDataReceiver() + \"]\");\n\t\tSystem.out.println(\"Data Sender : [\" + sms.getDataSender() + \"]\");\n\t\tSystem.out.println(\"Data : [\" + sms.getData() + \"]\");\n\t\tSystem.out.println(\"================================================\");\n\t\t\n\t\t * */\t\n\t\t\n\t\t//The processing of registration information \n\t\tInteger i = new Integer(255);\n\t\tif( i.equals(sms.getReceiver()) &&\n\t\t\ti.equals(sms.getDataType()) &&\n\t\t\ti.equals(sms.getDataReceiver()) &&\n\t\t\ti.equals(sms.getDataSender())) {\n\t\t\t\n\t\t\tcli.addCli(session, sms.getData());\n\t\t\tSystem.out.println(\"Client : \" + session.getRemoteAddress() + \" DONE\");\n\t\t} else {\n\t\t\t//Forwarding\n\t\t\tArrayList<IoSession> tempList = new ArrayList<IoSession>();\n\t\t\ttempList = cli.getCli(sms.getReceiver());\n\t\t\t\n\t\t\tSystem.out.println(\"tempting=======>\" + session.getRemoteAddress() + \" with receiver : \" + sms.getReceiver());\n\t\t\tif(tempList != null) {\n\t\t\t\t//System.out.println(\"true\");\n\t\t\t\tfor (IoSession session1 : tempList){\n\t\t\t\t\tSystem.out.println(\"Send =========>\" + session1.getRemoteAddress());\n\t\t\t\t\tsession1.write(sms);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"================================================\");\n\t\t\t}\n\t\t\telse System.out.println(\"forwarding false\");\n\t\t}\n\t\t\n\t\t//Trigger the client\n\t\tsms.setReceiver(i);\n\t\tsms.setDataType(i);\n\t\tsms.setDataReceiver(i);\n\t\tsms.setDataSender(i);\n\t\tsms.setData(\" \");\n\t\tsession.write(sms);\n\n\t}", "public void Subscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { // subscribe se ena buslineID\n Socket requestSocket = null;\n ObjectOutputStream out = null; // Gets and sends streams\n ObjectInputStream in = null;\n\n try {\n Client client = new Client();\n client.brokers = Subscriber.this.brokers;\n\n subscribedLists.add(busLineID);\n subscribedThreads.put(busLineID, client);\n\n int hash = HashTopic(busLineID);\n\n int no = FindBroker(hash);\n\n requestSocket = connectWithTimeout(no, TIMEOUT);\n\n subscribedSockets.put(busLineID, requestSocket);\n\n out = new ObjectOutputStream(requestSocket.getOutputStream());\n in = new ObjectInputStream(requestSocket.getInputStream());\n\n String s = in.readUTF();\n\n out.writeUTF(\"subscriber\");\n\n out.flush();\n\n s = in.readUTF();\n\n out.writeUTF(\"subscribe\");\n\n out.flush();\n\n String msg = String.valueOf(busLineID);\n out.writeUTF(msg);\n out.flush();\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 4;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n\n while (true) {\n s = in.readUTF();\n visualizeData(s);\n\n message = MapsActivity.mainHandler.obtainMessage();\n message.what = 5;\n message.obj = s;\n\n MapsActivity.mainHandler.sendMessage(message);\n }\n } catch (SocketTimeoutException ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 8;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n subscribedLists.remove(busLineID);\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n } catch (Exception ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 7;\n message.obj = ex.toString();\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n }\n }", "public void requestBoard(){\r\n try {\r\n clientThreads.get(0).getOOS().writeObject(\r\n new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.BOARDREQUEST)));\r\n } catch(IOException ioe){\r\n ioe.printStackTrace();\r\n }\r\n }", "boolean copyMessageToIccEfForSubscriber(int subId, String callingPkg, int status,\n byte[] pdu, byte[] smsc);", "public void testInBandSI() throws Exception\n {\n ServiceList services = serviceSetup();\n\n ServiceIterator it = services.createServiceIterator();\n\n try\n {\n ServiceDetailsExt[] details = null;\n while (it.hasNext())\n {\n ServiceExt service = (ServiceExt) it.nextService();\n tune(service);\n log(\"******************************************************************\");\n // dumpService(service);\n\n /*\n * Service Detail Section\n */\n ServiceDetailsHandle[] handles = null;\n try\n {\n try\n {\n handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n }\n catch (SINotAvailableYetException ex)\n {\n synchronized (sial)\n {\n // Wait for the SIAcquiredEvent\n sial.wait();\n // Try again.. if it fails, it will jump out to the\n // outer catch\n handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n }\n }\n\n details = new ServiceDetailsExt[handles.length];\n for (int j = 0; j < handles.length; j++)\n {\n details[j] = sidb.createServiceDetails(handles[j]);\n assertEquals(\"ServiceDetails' Service does not match expected value\", service,\n details[j].getService());\n /*\n * ServiceDescription Section\n */\n ServiceDescriptionExt sdesc = sidb.createServiceDescription(handles[j]);\n\n TransportStreamExt ts = (TransportStreamExt) details[j].getTransportStream();\n // dumpTransportStream(ts);\n if (ts.getModulationFormat() != 255)\n {\n /*\n * ServiceComponent Section\n */\n ServiceComponentHandle[] scHandles = { null };\n try\n {\n scHandles = sidb.getServiceComponentsByServiceDetails(handles[j]);\n }\n catch (SINotAvailableYetException ex)\n {\n synchronized (sial)\n {\n // Wait for the SIAcquiredEvent\n sial.wait();\n // Try again.. if it fails, it will jump out\n // to the outer catch\n scHandles = sidb.getServiceComponentsByServiceDetails(handles[j]);\n }\n }\n catch (Exception ex)\n {\n fail(\"Exception caught while getting SC Handles: \" + ex.getClass() + \" - \"\n + ex.getMessage());\n }\n\n dumpService(service);\n dumpServiceDetails(details[j]);\n dumpServiceDescription(sdesc);\n\n for (int k = 0; k < scHandles.length; k++)\n {\n ServiceComponentExt comp = sidb.createServiceComponent(scHandles[k]);\n dumpComponent(comp);\n assertEquals(\"ServiceComponent's ServiceDetails does not match expected value\",\n details[j], comp.getServiceDetails());\n assertEquals(\"ServiceComponent's Service does not match expected value\", service,\n comp.getService());\n }\n\n /*\n * Carousel Component Section\n */\n ServiceComponentHandle scHandle = null;\n\n try\n {\n scHandle = sidb.getCarouselComponentByServiceDetails(handles[j]);\n ServiceComponentExt comp = sidb.createServiceComponent(scHandle);\n dumpComponent(comp);\n }\n catch (SINotAvailableYetException ex)\n {\n synchronized (sial)\n {\n // Wait for the SIAcquiredEvent\n sial.wait();\n // Try again.. if it fails, it will jump out\n // to the outer catch\n scHandle = sidb.getCarouselComponentByServiceDetails(handles[j]);\n\n ServiceComponentExt comp = sidb.createServiceComponent(scHandle);\n dumpComponent(comp);\n assertEquals(\"ServiceDetails' Service does not match expected value\", details[j],\n comp.getServiceDetails());\n assertEquals(\"ServiceDetails' Service does not match expected value\", service,\n comp.getService());\n }\n }\n catch (SIRequestInvalidException ex)\n {\n log(\"* No Default Carousel Components Available\");\n }\n }\n else\n // mod format is 255\n {\n dumpService(service);\n dumpServiceDetails(details[j]);\n dumpServiceDescription(sdesc);\n }\n\n assertTrue(\"TransportStreamID should be greater than zero\", ts.getTransportStreamID() > 0);\n // ServiceDetailsExt detail =\n // sidb.createServiceDetails(handles[j]);\n // ts = (TransportStreamExt)detail.getTransportStream();\n dumpTransportStream(ts);\n\n NetworkExt network = (NetworkExt) ts.getNetwork();\n dumpNetwork(network);\n }\n }\n catch (Exception e)\n {\n fail(\"Exception caught: \" + e.getClass() + \" - \" + e.getMessage());\n }\n log(\"*\");\n log(\"******************************************************************\");\n\n // Release the NIC\n nic.release();\n }\n }\n catch (Exception e)\n {\n nic.release();\n fail(\"Exception occurred: \" + e.getClass() + \" - \" + e.getMessage());\n }\n }", "@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}", "private @NonNull ByteBuffer sndMsg(final @NonNull ByteBuffer req, int typ) throws IOException {\n final @NonNull byte[] ba = req.array(); // Get request\n WpcLog.log(WpcLog.EvtTyp.REQ, ba); // Log request\n ByteBuffer res = ByteBuffer.wrap(mCom.sndMsg(ba)); // Send the Qi Authentication Request\n WpcLog.log(WpcLog.EvtTyp.RES, res.array()); // Log response\n if ((res.get() & AppLib.BYT_UNS) != ((ATH_VER << 4) | typ)) { // Unexpected type\n throw new IOException(); // Raise error\n }\n return res; // Return the Qi Authentication Response\n }", "protected synchronized void receiveHighLevel() throws Exception{\n\t\treceivedMsg = conn.receiveALine( ); \n//\t\tprintln(\"received \" + receivedMsg);\n\t\twhile( receivedMsg == null ){ //this means that the connection works in raw mode\n\t\t\t//System.out.println(\"ConnInputReceiver waiting ... \" + conn );\n\t\t\tmemo();\n \t\t\twait();\n \t\t\t//System.out.println(\"ConnInputReceiver resuming ... \" + conn );\n\t\t\treceivedMsg = conn.receiveALine( ); \n\t\t}\t\n\t\tunmemo();\t\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "private void ClearDevice()\n throws IOException {\n\n //////////////////////////////\n // Become Controller-In-Charge\n\n // The board needs to be the Controller-In-Charge in order to find all\n // listeners on the GPIB.\n m_gpib32.SendIFC(BOARD_NR);\n\n // clean up if there was an error and throw an exception\n String str = \"The GPIB_NI driver could not become Controller-In-Charge.\\n\";\n checkErrorGPIB(str, true);\n \n\n //////////////////////////////////////\n // Find if an Instrument is listening\n\n // create a list of all primary addresses to search\n short LookUp[] = new short[2];\n\n // initialize the list; NOADDR signifies the end of the array\n LookUp[0] = (short) m_GPIB_Adr;\n LookUp[1] = (short) NOADDR;\n\n // log starting to look for listener\n m_Logger.log(Level.FINE, \"Looking for Listener at GPIB address {0}.\\n\", Integer.toString(m_GPIB_Adr));\n\n\n // find the Listener\n // Results will contain the addresses of all listening devices found by FindLstn\n short[] Results = new short[1];\n m_gpib32.FindLstn(BOARD_NR, LookUp, Results, 1);\n\n // clean up if there was an error and throw an exception\n str = \"The GPIB_NI driver could not issue FindLstn call.\\n\";\n checkErrorGPIB(str, true);\n \n\n // get the number of Listeners found\n int NrListeners = (int)m_ibcntl.getValue();\n\n // log # of Listeners found\n m_Logger.log(Level.FINE, \"Found {0} Listeners.\\n\", Integer.toString(NrListeners));\n\n\n // Exit if no Listener was found\n if (NrListeners != 1) {\n str = \"No Instrument is listening on GPIB address \" +\n Integer.toString(m_GPIB_Adr) + \".\\n\";\n str += getGPIBStatus();\n\n // close connection to the Instrument\n CloseInstrument();\n\n m_Logger.severe(str);\n throw new IOException(str);\n }\n\n ///////////////\n // Clear Device\n\n // send the GPIB Selected Device Clear (SDC) command message\n m_gpib32.DevClear(BOARD_NR, (short)m_UnitDescriptor);\n\n // clean up if there was an error and throw an exception\n str = \"Unable to clear the Listener at GPIB addresss \" +\n Integer.toString(m_GPIB_Adr) + \".\\n\";\n checkErrorGPIB(str, true);\n \n\n // log all devices cleared\n m_Logger.log(Level.FINE, \"Instrument at address {0} cleared (SDC).\\n\", Integer.toString(m_GPIB_Adr));\n }", "private boolean sendCircuit(Secs1MessageBlock block)\n\t\t\tthrows SecsSendMessageException, SecsException, InterruptedException {\n\t\t\n\t\tthis.notifyLog(new Secs1TrySendMessageBlockLog(block));\n\t\t\n\t\tthis.sendBytes(block.getBytes());\n\t\t\n\t\tByte b = this.circuitQueue.pollByte(this.secs1Config().timeout().t2());\n\t\t\n\t\tif ( b == null ) {\n\t\t\t\n\t\t\tthis.notifyLog(Secs1TimeoutT2AckCircuitControlLog.newInstance(block));\n\t\t\treturn false;\n\t\t\t\n\t\t} else if ( b.byteValue() == ACK ) {\n\t\t\t\n\t\t\tthis.notifyLog(new Secs1SendedMessageBlockLog(block));\n\t\t\treturn true;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tthis.notifyLog(Secs1NotReceiveAckCircuitControlLog.newInstance(block, b));\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}", "private void processDeviceStream(SelectionKey key, byte[] data) throws IOException{\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\tString sDeviceID = \"\";\n\t\t// Initial call where the device sends it's IMEI# - Sarat\n\t\tif ((data.length >= 10) && (data.length <= 17)) {\n\t\t\tint ii = 0;\n\t\t\tfor (byte b : data)\n\t\t\t{\n\t\t\t\tif (ii > 1) { // skipping first 2 bytes that defines the IMEI length. - Sarat\n\t\t\t\t\tchar c = (char)b;\n\t\t\t\t\tsDeviceID = sDeviceID + c;\n\t\t\t\t}\n\t\t\t\tii++;\n\t\t\t}\n\t\t\t// printing the IMEI #. - Sarat\n\t\t\tSystem.out.println(\"IMEI#: \"+sDeviceID);\n\n\t\t\tLinkedList<String> lstDevice = new LinkedList<String>();\n\t\t\tlstDevice.add(sDeviceID);\n\t\t\tdataTracking.put(channel, lstDevice);\n\n\t\t\t// send message to module that handshake is successful - Sarat\n\t\t\ttry {\n\t\t\t\tsendDeviceHandshake(key, true);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// second call post handshake where the device sends the actual data. - Sarat\n\t\t}else if(data.length > 17){\n\t\t\tmClientStatus.put(channel, System.currentTimeMillis());\n\t\t\tList<?> lst = (List<?>)dataTracking.get(channel);\n\t\t\tif (lst.size() > 0)\n\t\t\t{\n\t\t\t\t//Saving data to database\n\t\t\t\tsDeviceID = lst.get(0).toString();\n\t\t\t\tDeviceState.put(channel, sDeviceID);\n\n\t\t\t\t//String sData = org.bson.internal.Base64.encode(data);\n\n\t\t\t\t// printing the data after it has been received - Sarat\n\t\t\t\tStringBuilder deviceData = byteToStringBuilder(data);\n\t\t\t\tSystem.out.println(\" Data received from device : \"+deviceData);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//publish device IMEI and packet data to Nats Server\n\t\t\t\t\tnatsPublisher.publishMessage(sDeviceID, deviceData);\n\t\t\t\t} catch(Exception nexp) {\n\t\t\t\t\tnexp.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t//sending response to device after processing the AVL data. - Sarat\n\t\t\t\ttry {\n\t\t\t\t\tsendDataReceptionCompleteMessage(key, data);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//storing late timestamp of device\n\t\t\t\tDeviceLastTimeStamp.put(sDeviceID, System.currentTimeMillis());\n\n\t\t\t}else{\n\t\t\t\t// data not good.\n\t\t\t\ttry {\n\t\t\t\t\tsendDeviceHandshake(key, false);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new IOException(\"Bad data received\");\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t// data not good.\n\t\t\ttry {\n\t\t\t\tsendDeviceHandshake(key, false);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"Bad data received\");\n\t\t\t}\n\t\t}\n\t}", "public void enableClient(){\r\n try{\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.ENABLECODE)));\r\n oos.flush();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }", "public abstract EOutgoingSMSAcceptionStatus rawSendMessage(OutgoingSMSDto smsOut) throws IOException;", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tr.stop();\n\t\t\t\treceiFromZte r2 = new receiFromZte();\n\t\t\t\tr2.start();\n\t\t\t\tsendAckToZte connection2 = new sendAckToZte(\"B\",Connection.ipaddress);\n\t\t\t\tconnection2.SendAcknowledgmnet();\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onReceive(Context arg0, Intent intent) {\n\t\t\tif(intent.getAction().equals(Constants.P2P.ACK_GET_SD_CARD_CAPACITY)){\n\t\t\t\tint result = intent.getIntExtra(\"result\", -1);\n\t\t\t\tif(result==Constants.P2P_SET.ACK_RESULT.ACK_PWD_ERROR){\n\t\t\t\t\t\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\ti.setAction(Constants.Action.CONTROL_SETTING_PWD_ERROR);\n\t\t\t\t\tmContext.sendBroadcast(i);\n\t\t\t\t\t\n\t\t\t\t}else if(result==Constants.P2P_SET.ACK_RESULT.ACK_NET_ERROR){\n\t\t\t\t\tLog.e(\"my\",\"net error resend:get npc time\");\n\t\t\t\t\tP2PHandler.getInstance().getSdCardCapacity(contact.contactId, contact.contactPassword,command);\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_SD_CARD_CAPACITY)){\n\t\t\t\tint total_capacity=intent.getIntExtra(\"total_capacity\",-1);\n\t\t\t\tint remain_capacity=intent.getIntExtra(\"remain_capacity\",-1);\n\t\t\t\tint state=intent.getIntExtra(\"state\",-1);\n\t\t\t\tSDcardId=intent.getIntExtra(\"SDcardID\",-1);\n\t\t\t\tString id=Integer.toBinaryString(SDcardId);\n\t\t\t\tLog.e(\"id\",\"msga\"+id);\n\t\t\t\twhile(id.length()<8){\n\t\t\t\t\tid=\"0\"+id;\n\t\t\t\t}\n\t\t\t\tchar index=id.charAt(3);\n\t\t\t\tLog.e(\"id\",\"msgb\"+id);\n\t\t\t\tLog.e(\"id\",\"msgc\"+index);\n\t\t\t\tif(state==1){\n\t\t\t\t\tif(index=='1'){\n\t\t\t\t\t\tsdId=SDcardId;\n\t\t\t\t\t\ttv_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_sd_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t\tshowSDImg();\n\t\t\t\t\t}else if(index=='0'){\n\t\t\t\t\t\tusbId=SDcardId;\n\t\t\t\t\t tv_usb_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_usb_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n//\t\t\t\t\t count++;\n//\t\t\t\t\t if(contact.contactType==P2PValue.DeviceType.IPC){\n//\t\t\t\t\t \tif(count==1){\n//\t\t\t\t\t \t\tIntent back = new Intent();\n//\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n//\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n//\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n//\t\t\t\t\t \t}\n//\t\t\t\t\t }else{\n//\t\t\t\t\t \tif(count==2){\n//\t\t\t\t\t \t\tIntent back = new Intent();\n//\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n//\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n//\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n//\t\t\t\t\t \t}\n//\t\t\t\t\t }\n\t\t\t\t\tIntent back = new Intent();\n\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t }\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.ACK_GET_SD_CARD_FORMAT)){\n\t\t\t\tint result = intent.getIntExtra(\"result\", -1);\n\t\t\t\tif(result==Constants.P2P_SET.ACK_RESULT.ACK_PWD_ERROR){\n\t\t\t\t\t\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\ti.setAction(Constants.Action.CONTROL_SETTING_PWD_ERROR);\n\t\t\t\t\tmContext.sendBroadcast(i);\n\t\t\t\t\t\n\t\t\t\t}else if(result==Constants.P2P_SET.ACK_RESULT.ACK_NET_ERROR){\n\t\t\t\t\tLog.e(\"my\",\"net error resend:get npc time\");\n\t\t\t\t\tP2PHandler.getInstance().setSdFormat(contact.contactId, contact.contactPassword, sdId);\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_SD_CARD_FORMAT)){\n\t\t\t\tint result=intent.getIntExtra(\"result\", -1);\n\t\t\t if(result==Constants.P2P_SET.SD_FORMAT.SD_CARD_SUCCESS){\n\t\t\t \tT.showShort(mContext, R.string.sd_format_success);\n\t\t\t }else if(result==Constants.P2P_SET.SD_FORMAT.SD_CARD_FAIL){\n\t\t\t \tT.showShort(mContext, R.string.sd_format_fail);\n\t\t\t }else if(result==Constants.P2P_SET.SD_FORMAT.SD_NO_EXIST){\n\t\t\t \tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t }\n\t\t\t showSDImg();\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_USB_CAPACITY)){\n\t\t\t\tint total_capacity=intent.getIntExtra(\"total_capacity\",-1);\n\t\t\t\tint remain_capacity=intent.getIntExtra(\"remain_capacity\",-1);\n\t\t\t\tint state=intent.getIntExtra(\"state\",-1);\n\t\t\t\tSDcardId=intent.getIntExtra(\"SDcardID\",-1);\n\t\t\t\tString id=Integer.toBinaryString(SDcardId);\n\t\t\t\tLog.e(\"id\",\"msga\"+id);\n\t\t\t\twhile(id.length()<8){\n\t\t\t\t\tid=\"0\"+id;\n\t\t\t\t}\n\t\t\t\tchar index=id.charAt(3);\n\t\t\t\tLog.e(\"id\",\"msgb\"+id);\n\t\t\t\tLog.e(\"id\",\"msgc\"+index);\n\t\t\t\tif(state==1){\n\t\t\t\t\tif(index=='1'){\n\t\t\t\t\t\tsdId=SDcardId;\n\t\t\t\t\t\ttv_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_sd_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t\tshowSDImg();\n\t\t\t\t\t}else if(index=='0'){\n\t\t\t\t\t\tusbId=SDcardId;\n\t\t\t\t\t tv_usb_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_usb_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t count++;\n\t\t\t\t\t if(contact.contactType==P2PValue.DeviceType.IPC){\n\t\t\t\t\t \tif(count==1){\n\t\t\t\t\t \t\tIntent back = new Intent();\n\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t \tif(count==2){\n\t\t\t\t\t \t\tIntent back = new Intent();\n\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t\t\t \t}\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_DEVICE_NOT_SUPPORT)){\n\t\t\t\tIntent back = new Intent();\n\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\tT.showShort(mContext,R.string.not_support);\n\t\t\t}\n\t\t}", "public void readTheMenu(){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \t\n Message m_toServer = new Message(12, params, 0, state_fields, 2, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "public void transmit()\n { \n try\n {\n JSch jsch=new JSch(); //object that allows for making ssh connections\n //Log into the pi\n Session session=jsch.getSession(USERNAME, HOSTNAME, 22); //pi defaults to using port 22 \n session.setPassword(PASSWORD);\n session.setConfig(\"StrictHostKeyChecking\", \"no\"); //necessary to access the command line easily\n \n session.connect(1000);//connect to the pi\n \n Channel channel = session.openChannel(\"exec\");//set session to be a command line \n ((ChannelExec)channel).setCommand(this.command); //send command to the pi\n \n channel.setInputStream(System.in); \n channel.setOutputStream(System.out);\n //connect to the pi so the command can go through\n channel.connect(1000);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(frame, \"Error connecting to infrared light\", \"Error Message\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void sendKeys() throws Exception{\n ATMMessage atmMessage = (ATMMessage)is.readObject();\r\n System.out.println(\"\\nGot response\");\r\n \r\n //System.out.println(\"Received second message from the client with below details \");\r\n //System.out.println(\"Response Nonce value : \"+atmMessage.getResponseNonce());\r\n \r\n if(!verifyMessage(atmMessage))error(\" Nonce or time stamp does not match\") ;\r\n kSession = crypto.makeRijndaelKey();\r\n \r\n Key kRandom = crypto.makeRijndaelKey();\r\n byte [] cipherText = crypto.encryptRSA(kRandom,kPubClient);\r\n os.writeObject((Serializable)cipherText);\r\n System.out.println(\"\\nSending Accept and random key\");\r\n \r\n \r\n cipherText = crypto.encryptRSAPrivateKey(kSession,kPrivBank);\r\n atmMessage = new ATMMessage(); \r\n atmMessage.setEncryptedSessionKey(cipherText);\r\n cipherText = crypto.encryptRijndael(atmMessage,kRandom);\r\n currTimeStamp = System.currentTimeMillis();\r\n os.writeObject((Serializable)cipherText);\r\n //System.out.println(\"Session Key send to the client \");\r\n \r\n //SecondServerMessage secondServerMessage = new SecondServerMessage();\r\n //secondServerMessage.setSessionKey(kSession);\r\n \r\n //byte [] cipherText1;\r\n //cipherText = crypto.encryptRSAPrivateKey(kSession,kPrivBank);\r\n //cipherText1 = crypto.encryptRSA(cipherText,clientPublicKey);\r\n //os.writeObject((Serializable)cipherText1);\r\n \r\n //System.out.println(\"Second message send by the server which contains the session key. \");\r\n //System.out.println(\"\\n\\n\\n\");\r\n \r\n \r\n }", "public void sendTurno() throws RemoteException, InterruptedException, IOException ;", "public boolean processEMSInService(String p_msg_str, String msgQ) {\n String emsQueueCf = \n FCApplicationGlobals.getProps().getProperty(IFCConstants.EMS_INT_QCF);\n String emsQueue = msgQ;\n // getVal(IFCConstants.EMS_INT_QUEUE);\n flushResources();\n boolean l_retVal = false;\n PreparedStatement updPstmt = null;\n\n g_transacted = \n true; //settting g_transacted to true helps all JMS transaction to be explicitly committed once\n\n TextMessage l_txt_msg = null;\n Queue l_Qu = null;\n int res = 0;\n\n InitialContext initialContext = null;\n\n\n try {\n initialContext = new InitialContext();\n if (qConnectionFactory == null) {\n qConnectionFactory = \n (QueueConnectionFactory)initialContext.lookup(emsQueueCf);\n }\n l_Qu = (Queue)initialContext.lookup(emsQueue);\n\n if (g_Qcon == null) {\n g_Qcon = qConnectionFactory.createQueueConnection();\n }\n\n g_Qcon.start();\n\n if (g_Qses == null) {\n g_Qses = \n g_Qcon.createQueueSession(g_transacted, Session.AUTO_ACKNOWLEDGE);\n }\n\n\n //Create Sender using seesion\n if (g_Qsend == null) {\n g_Qsend = g_Qses.createSender(l_Qu);\n }\n\n\n l_txt_msg = g_Qses.createTextMessage();\n l_txt_msg.setText(p_msg_str);\n\n g_Qsend.send(l_txt_msg);\n l_retVal = true;\n } catch (Exception ex) {\n dbg(\"processEMSInService-->Exception = \" + ex.getMessage());\n\n ex.printStackTrace();\n l_retVal = false;\n }\n return l_retVal;\n }", "void requestReceived( C conn ) ;", "public void startInbound();", "public void startqqCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge qqCharge8,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/qqChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n qqCharge8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultqqCharge(\n (net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorqqCharge(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorqqCharge(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[4].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[4].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public void credit(){\r\n\t\tSystem.out.println(\"HSBC-- Credit method called from Interface USBank \");\r\n\t}", "private void readCardForSubStation() {\n\t\tif(!link.hasNextLine()) {\n\t\t\tcontroller.printError(\"Errore di Comunicazione\", \"Il seggio ausiliario \"+ip.getHostAddress()+\" non ha inviato il numero della card.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tMessage request, response = new Message();\n\t\tString card;\n\t\tPerson voter = null;\n\t\ttry {\n\t\t\trequest = (Message) Message.fromB64(link.read(), \"seggio ausiliario\");\n\t\t\t\n\t\t\tString[] required = {\"card\"};\n\t\t\tClass<?>[] types = {String.class};\n\t\t\trequest.verifyMessage(Protocol.processCardReq, required, types, \"seggio ausiliario\");\n\t\t\tcard = request.getElement(\"card\");\n\t\t\t\n\t\t\t//Si recupera la postazione associata alla card, se esiste\n\t\t\tint postIdx = ((Controller) controller).getPostIdx(card);\n\t\t\t\n\t\t\t//Si verifica se il badge era già associato ad una postazione o se sta venendo usato per crearne una nuova\n\t\t\tif (postIdx == -1) {\n\t\t\t\trequired = new String[]{\"card\", \"voter\"};\n\t\t\t\ttypes = new Class<?>[]{String.class, Person.class};\n\t\t\t\t\n\t\t\t\trequest.verifyMessage(Protocol.processCardReq, required, types, \"seggio ausiliario\");\n\t\t\t\tvoter = request.getElement(\"voter\");\n\t\t\t}\n\t\t\t\n\t\t\tresponse = ((Controller) controller).readCardForSubStation(card, voter);\n\t\t\t\n\t\t} catch (PEException e) {\n\t\t\tresponse.setValue(Protocol.processCardNack);\n\t\t\tresponse.addError(e.getMessage());\n\t\t}\n\t\t\n\t\tlink.write(response.toB64());\n\t}", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "@Override\n\tpublic void msgAtCook() {\n\t\t\n\t}", "private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }", "private int consumeIncoming(short[] incoming) {\n\t\tint read = 0;\n\t\tif (incoming[0] == IAC) {\n\t\t\tif (incoming.length >= 2) {\n\t\t\t\tswitch(incoming[1]) {\n\t\t\t\t\tcase IAC: // Handle escaped 255. we leave 'read' at 0 so this will be passed along.\n\t\t\t\t\t\t// Trim the first byte.\n\t\t\t\t\t\tSystem.arraycopy(incoming, 1, incoming, 0, incoming.length - 1);\n\t\t\t\t\t\tincoming[incoming.length - 1] = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase WILL: // Option Offered! Send do or don't.\n\t\t\t\t\t\tif (incoming.length >= 3) {\n\t\t\t\t\t\t\tboolean dosent = false;\n\t\t\t\t\t\t\tfor (Option o : options) {\n\t\t\t\t\t\t\t\tif (o.getCode() == incoming[2]) {\n\t\t\t\t\t\t\t\t\tsendDo(o.getCode());\n\t\t\t\t\t\t\t\t\tdosent = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!dosent) {\n\t\t\t\t\t\t\t\tsendDont(incoming[2]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tread = 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DO: // Option requested. Send will or wont!\n\t\t\t\t\t\tif (incoming.length >= 3) {\n\t\t\t\t\t\t\tboolean enabled = false;\n\t\t\t\t\t\t\tfor (Option o : options) {\n\t\t\t\t\t\t\t\tif (o.getCode() == incoming[2]) {\n\t\t\t\t\t\t\t\t\to.setEnabled(true, this);\n\t\t\t\t\t\t\t\t\tenabled = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (enabled) {\n\t\t\t\t\t\t\t\tsendWill(incoming[2]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsendWont(incoming[2]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tread = 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DONT: // Handle disable requests.\n\t\t\t\t\tcase WONT:\n\t\t\t\t\t\tif (incoming.length >= 3) {\n\t\t\t\t\t\t\tfor (Option o : options) {\n\t\t\t\t\t\t\t\tif (o.getCode() == incoming[2]) {\n\t\t\t\t\t\t\t\t\to.setEnabled(false, this);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tread = 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DM: // Data Mark?\n\t\t\t\t\tcase NOP:\n\t\t\t\t\tcase BRK:\n\t\t\t\t\tcase IP:\n\t\t\t\t\tcase AO:\n\t\t\t\t\tcase AYT:\n\t\t\t\t\t\tread = 2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase EC: // Erase Character\n\t\t\t\t\t\tmodel.eraseChar();\n\t\t\t\t\t\tread = 2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase EL: // Erase Line\n\t\t\t\t\t\tmodel.eraseLine();\n\t\t\t\t\t\tread = 2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GA: // We got a GO-Ahead.\n\t\t\t\t\t\tread = 2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SB: // Sub-negotiation!\n\t\t\t\t\t\tif (incoming.length >= 5) { // Must be at least IAC, SB, <code>, IAC, SE\n\t\t\t\t\t\t\tfor (Option o : options) {\n\t\t\t\t\t\t\t\tif (o.getCode() == incoming[2]) {\n\t\t\t\t\t\t\t\t\tread = o.consumeIncomingSubcommand(incoming, this);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If we didn't handle anything, we need to find something that can.\n\t\tif (read == 0) {\n\t\t\t// For any enabled options, let's try them.\n\t\t\tfor (Option o : options) {\n\t\t\t\tif (o.isEnabled()) {\n\t\t\t\t\tread += o.consumeIncoming(incoming, this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If no options handled the data, then we need to read up to the \n\t\t// next IAC, or the end of the buffer, and we'll treat that as \n\t\t// if it's data for display.\n\t\tif (read == 0) {\n\t\t\tfor (short b : incoming) {\n\t\t\t\tif (b == IAC) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tread++;\n\t\t\t}\n\t\t\tmodel.print(incoming, 0, read);\n\t\t}\n\t\treturn read;\n\t}", "private void Inscrire() {\n\t\t\r\n\t\tSystem.out.println(\"inscription\");\r\n }", "public void message() {\n OscMessage myMessage = new OscMessage(\"/test\");\n \n myMessage.add(cf.freqModulation);\n myMessage.add(cf.reverb);\n myMessage.add(cf.neighbordist);\n myMessage.add(cf.sizemod);\n myMessage.add(cf.sweight);\n myMessage.add(cf.panmod);\n myMessage.add(cf.separationforce);\n myMessage.add(cf.alignmentforce);\n myMessage.add(cf.cohesionforce);\n myMessage.add(cf.maxspeed);\n myMessage.add(cf.separationdistance);\n myMessage.add(cf.soundmodevar);\n myMessage.add(cf.visualsize);\n myMessage.add(cf.hue);\n myMessage.add(cf.saturation);\n myMessage.add(cf.brightness);\n myMessage.add(cf.alpha);\n myMessage.add(cf.mode);\n myMessage.add(cf.startedval);\n myMessage.add(cf.exitval);\n myMessage.add(cf.forexport);\n myMessage.add(cf.backgroundalpha);\n myMessage.add(cf.savescreen);\n\n\n //send the message to the \n for(int i=0; i<cf.addresslist.size(); i++){\n oscP5.send(myMessage, cf.addresslist.get(i));\n }\n}", "private void processIn() {\n if (state != State.ESTABLISHED) {\n bbin.flip();\n if (bbin.get() != 10) {\n silentlyClose();\n return;\n } else {\n state = State.ESTABLISHED;\n }\n bbin.compact();\n } else {\n switch (intReader.process(bbin)) {\n case ERROR:\n return;\n case REFILL:\n return;\n case DONE:\n var size = intReader.get();\n bbin.flip();\n var bb = ByteBuffer.allocate(size);\n for (var i = 0; i < size; i++) {\n bb.put(bbin.get());\n }\n System.out.println(UTF.decode(bb.flip()).toString());\n bbin.compact();\n intReader.reset();\n break;\n }\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tinitBroadCastClient();\n\t\t\t\t\t\t\t\t\tReceivePublicKey();\n\t\t\t\t\t\t\t\t\tReceiveEncryptPrice();\n\t\t\t\t\t\t\t\t\tgenerateEProduct();\n\t\t\t\t\t\t\t\t\tsendEProduct();\n\t\t\t\t\t\t\t\t\tGarbleCircuits();\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "public static void testIBMMQReceiveData(){\n\n MQParam param = new MQParam();\n param.setHost(\"10.86.92.194\");\n param.setPort(30099);\n param.setCcsid(1208);\n param.setChannel(\"SVRCONN_GW_OUT\");\n param.setQueueManager(\"ESB_OUT\");\n param.setQueueName(\"EIS.QUEUE.REQUEST.OUT.GCDCHZWMES\");\n param.setReplyToQueueName(\"EIS.QUEUE.RESPONSE.IN.GCDCHZWMES\");\n param.setUserId(\"mqm\");\n param.setPassword(\"mqm\");\n\n new Thread(new IBMSenderThread(param,\"data1\")).run();\n new Thread(new IBMSenderThread(param,\"datata22\")).run();\n new Thread(new IBMSenderThread(param,\"datatatata333\")).run();\n }", "private MessageAbstractType sendMat(final MessageAbstractType req, final LavercaContext context, final Security security)\n throws AxisFault, IOException\n {\n AbstractSoapBindingStub port = null;\n try {\n Long timeout = null;\n\n if (req instanceof MSSSignatureReq) {\n timeout = ((MSSSignatureReq)req).getTimeOut();\n port = (MSS_SignatureBindingStub)this.mssService.getMSS_SignaturePort(this.MSSP_SI_URL);\n } else if (req instanceof MSSReceiptReq) {\n port = (MSS_ReceiptBindingStub)this.mssService.getMSS_ReceiptPort(this.MSSP_RC_URL);\n } else if (req instanceof MSSHandshakeReq) {\n port = (MSS_HandshakeBindingStub)this.mssService.getMSS_HandshakePort(this.MSSP_HS_URL);\n } else if (req instanceof MSSStatusReq) {\n port = (MSS_StatusQueryBindingStub)this.mssService.getMSS_StatusQueryPort(this.MSSP_ST_URL);\n } else if (req instanceof MSSProfileReq) {\n port = (MSS_ProfileQueryBindingStub)this.mssService.getMSS_ProfileQueryPort(this.MSSP_PR_URL);\n } else if (req instanceof MSSRegistrationReq) {\n port = (MSS_RegistrationBindingStub)this.mssService.getMSS_RegistrationPort(this.MSSP_RG_URL);\n }\n\n if (port == null) {\n throw new IOException(\"Invalid request type\");\n }\n if (timeout != null) {\n // ETSI TS 102 204 defines TimeOut in seconds instead of milliseconds\n port.setTimeout(timeout.intValue()*1000);\n }\n } catch (ServiceException se) {\n log.error(\"Failed to get port: \" + se.getMessage());\n throw new IOException(se.getMessage());\n }\n try {\n if (port._getCall() == null) {\n port._createCall();\n }\n } catch (Exception e) {\n log.fatal(\"Could not do port._createCall()\", e);\n }\n\n // Set tools for each context.\n port.setProperty(ComponentsHTTPSender.HTTPCLIENT_INSTANCE, this.getHttpClient());\n LavercaSSLTrustManager.getInstance().setExpectedServerCerts(this.expectedServerCerts);\n\n MessageAbstractType resp = null;\n \n if (port instanceof MSS_SignatureBindingStub) {\n resp = ((MSS_SignatureBindingStub)port).MSS_Signature((MSSSignatureReq)req);\n } else if (port instanceof MSS_StatusQueryBindingStub) {\n resp = ((MSS_StatusQueryBindingStub)port).MSS_StatusQuery((MSSStatusReq)req);\n } else if (port instanceof MSS_ReceiptBindingStub) {\n resp = ((MSS_ReceiptBindingStub)port).MSS_Receipt((MSSReceiptReq)req);\n } else if (port instanceof MSS_HandshakeBindingStub) {\n resp = ((MSS_HandshakeBindingStub)port).MSS_Handshake((MSSHandshakeReq)req);\n } else if (port instanceof MSS_ProfileQueryBindingStub) {\n resp = ((MSS_ProfileQueryBindingStub)port).MSS_ProfileQuery((MSSProfileReq)req);\n } else if (port instanceof MSS_RegistrationBindingStub) {\n resp = ((MSS_RegistrationBindingStub)port).MSS_Registration((MSSRegistrationReq)req, security);\n } else {\n throw new IOException(\"Invalid call parameters\");\n }\n \n if (context != null) {\n try {\n context.setMessageContext(port.getMessageContext());\n } catch (ServiceException e) {\n log.warn(\"Unable to pass context\", e);\n }\n }\n \n return resp;\n }", "BaseConnet(){\n// pool = ThreadPool.getInstance();\n// sc = SendCommand.getInstance();\n HEART_CMD = new byte[]{\n\n WiStaticComm.UTRAL_H0,\n WiStaticComm.UTRAL_H1,\n WiStaticComm.UTRAL_H2,\n 0x00,\n 0x13,\n 0x00,\n 0x06,\n 0x01,\n 0x00,\n 0x00,\n 0x52,\n 0x00,\n 0x00,\n 0x00,\n 0x00,\n 0x0A,\n (byte) 0xF4,\n (byte) 0xAA,\n 0x40\n };\n byte checkSum = HEART_CMD[0];\n for (int i = 1; i < 19; i++)\n {\n if (i != 19 - 5)\n checkSum ^= HEART_CMD[i];\n\n }\n HEART_CMD[19 - 5] = checkSum;\n }", "private int isrSendMessage(char message) {\n\t\tif (Harness.TRACE)\n\t\t\tHarness.trace(String.format(\"[HarnessMailbox] isr_send_message to %d, message %d = 0x%x\",\n\t\t\t\t\t\t\t\t\t\t(int)mailbox_number, (int)message, (int)message)); \n\t\tsendTaskMail(message, (byte)0);\n\t\treturn TaskControl.OK;\n\t}", "public void sendPartita(Partita partita) throws InterruptedException, RemoteException, IOException;", "private void doRead() throws IOException {\n\t\t\tvar res = sc.read(bb);\n\n\t\t\tif ( res == -1 ) {\n\t\t\t\tlogger.info(\"Connection closed with the client.\");\n\t\t\t\tclosed = true;\n\t\t\t}\n\n\t\t\tupdateInterestOps();\n\t\t}", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\t\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k>=3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\teeipClient.ForwardClose();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttimerflag1=false;\n\t\t\t\t\t\tMessagerec[0]=1;\n\t\t\t\t\t\tstate2=3;\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "protected abstract void consume(InstrumentPriceVO instrumentPriceVO);", "public void onMessage(int sio, byte[] sif, Mtp2 mtp2) {\n //creating handler for received message and schedule execution\n MessageHandler handler = new MessageHandler(sio, sif, mtp2);\n processor.execute(handler);\n }", "public void alertTheWaiter(){\n Chef c = (Chef) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = c.getChefID();\n \tstate_fields[1] = c.getChefState();\n\n Message m_toServer = new Message(1, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n c.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "public SimSigClient(\n String address, int port, int debug, String stompHostName, Harness harness)\n {\n\n this.harness = harness;\n connected = false;\n clientInterface = new ClientInterface(address, port, debug, this);\n\n if (clientInterface.handshake())\n {\n if (clientInterface.connect(stompHostName))\n {\n clientInterface.subscribe(\"/topic/TD_ALL_SIG_AREA\", true);\n connected = true;\n } // End if\n } // End if\n\n harness.connected(connected);\n\n }", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, TextWebSocketFrame frame) throws Exception\n\t{\n\t\tci.invoke(frame.text());\n\t}", "public synchronized void intentionSell(String goodId) {\n\t\tGood goodToSell = goods.get(goodId);\n\t\tif (goodToSell == null) {\n\t\t\tSystem.err.println(\"ERROR: Good not found!\");\n\t\t\tSystem.out.println(\"Result: FALSE\\n------------------\");\n\t\t\treturn;\n\t\t}\n\n\t\t//writer increments timestamp\n\t\tfinal int writeTimeStamp = goodToSell.getWriteTimestamp() + 1;\n\n\t\tif (verbose) {\n\t\t\tSystem.out.println(\"WriteTimeStamp: \" + writeTimeStamp);\n\t\t}\n\n\t\tConcurrentHashMap<String, Result> acksList = new ConcurrentHashMap<>();\n\t\tConcurrentHashMap<String, Result> failedAcksList = new ConcurrentHashMap<>();\n\n\t\tCountDownLatch awaitSignal = new CountDownLatch((NUM_NOTARIES + NUM_FAULTS) / 2 + 1);\n\n\t\tint test = 0;\n\t\tAtomicInteger demo4 = new AtomicInteger(0);\n\n\t\t// if demo is Read while Write, delay two writes\n\t\t// if demo is Byzantine Client, send one wrong value to notaries each IntentionToSell\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\t\t\tif (demo == 2) {\n\t\t\t\ttest++;\n\t\t\t\ttry {\n\n\t\t\t\t\tif (test == 1) {\n\t\t\t\t\t\tSystem.out.println(\"Sleeping\");\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t} else if (test == 3) {\n\t\t\t\t\t\tSystem.out.println(\"Sleeping\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t}\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tservice.execute(() -> {\n\n\t\t\t\ttry {\n\t\t\t\t\t//send signed message\n\t\t\t\t\tboolean modify = false;\n\t\t\t\t\tif(demo == 4) {\n\t\t\t\t\t\tmodify = demo4.incrementAndGet() == 2;\n\t\t\t\t\t\tSystem.out.println(\"Sending wrong timeStamp\");\n\t\t\t\t\t}\n\n\t\t\t\t\tString nonce = notary.getNonce(this.id);\n\t\t\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\t\t\tString data = nonce + cnonce + this.id + goodId + writeTimeStamp;\n\t\t\t\t\tResult result = notary.intentionToSell(this.id, goodId, modify ? 1000 : writeTimeStamp, cnonce,\n\t\t\t\t\t\tcryptoUtils.signMessage(data));\n\n\t\t\t\t\t//verify signature of receive message\n\t\t\t\t\tif (!cryptoUtils\n\t\t\t\t\t\t.verifySignature(notaryID, data + result.getContent().hashCode(),\n\t\t\t\t\t\t\tresult.getSignature())) {\n\t\t\t\t\t\tthrow new InvalidSignatureException(notaryID);\n\t\t\t\t\t}\n\t\t\t\t\tif (verbose) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Received WriteTimeStamp: \" + result.getWriteTimestamp());\n\t\t\t\t\t}\n\n\t\t\t\t\t//check if timestamp matches\n\t\t\t\t\tif ((Boolean) result.getContent()\n\t\t\t\t\t\t&& result.getWriteTimestamp() == writeTimeStamp) {\n\t\t\t\t\t\tacksList.put(notaryID, result);\n\t\t\t\t\t\tawaitSignal.countDown();\n\t\t\t\t\t\tif (verbose) {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\"NotaryID: \" + notaryID + \"\\nResult: \" + (Boolean) result\n\t\t\t\t\t\t\t\t\t.getContent());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfailedAcksList.put(notaryID,\n\t\t\t\t\t\t\tnew Result(new Boolean(false), cryptoUtils.signMessage(\"false\")));\n\t\t\t\t\t\tawaitSignal.countDown();\n\t\t\t\t\t\tSystem.out.println(\"Result: Invalid good\");\n\t\t\t\t\t}\n\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\trebind();\n\t\t\t\t} catch (InvalidSignatureException e) {\n\t\t\t\t\tfailedAcksList.put(notaryID,\n\t\t\t\t\t\tnew Result(new Boolean(false), cryptoUtils.signMessage(\"false\")));\n\t\t\t\t\tawaitSignal.countDown();\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\n\t\t//waits for notaries replies\n\t\ttry {\n\t\t\tawaitSignal.await(TIMEOUT, TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(\"Result: FALSE\\n------------------\");\n\t\t\treturn;\n\t\t}\n\n\t\t// checks if quorum was reached\n\t\tif (acksList.size() + failedAcksList.size() > (NUM_NOTARIES + NUM_FAULTS) / 2) {\n\t\t\tif (verbose) {\n\t\t\t\tSystem.out.println(\"--> AcksList: \" + acksList.size());\n\t\t\t}\n\t\t\tSystem.out.println(\"--> Quorum Reached\");\n\n\t\t\tif (acksList.size() > failedAcksList.size()) {\n\t\t\t\tgoods.get(goodId).setForSale();\n\t\t\t\tgoodToSell.setWriteTimestamp(writeTimeStamp);\n\t\t\t\tSystem.out.println(\"Result: TRUE\\n------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Result: FALSE\\n------------------\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tSystem.out.println(\"--> Quorum not reached...\");\n\t\t\tSystem.out.println(\"Result: FALSE\\n------------------\");\n\n\t\t}\n\t}", "public void dealECarAction(Context context, Intent intent) {\n String cmd = intent.getStringExtra(\"ecarSendKey\");\n String stringExtra = intent.getStringExtra(\"cmdType\");\n String stringExtra2 = intent.getStringExtra(\"keySet\");\n if (cmd != null && cmd.length() > 0) {\n if (cmd.equals(\"StartMap\")) {\n String poiName = intent.getStringExtra(\"gaode_poiName\");\n String poiLatitude = intent.getStringExtra(\"gaode_latitude\");\n String poiLongitude = intent.getStringExtra(\"gaode_longitude\");\n startAutoMap(context, poiName, poiLatitude, poiLongitude);\n if (poiName != null && poiName.length() > 0 && poiLatitude != null && poiLatitude.length() > 0 && poiLongitude != null && poiLongitude.length() > 0) {\n System.out.println(\">>>>>>>>>> Recv Poi:\" + poiName + \";\" + poiLatitude + \";\" + poiLongitude + \" <<<<<<<<<<\");\n }\n } else if (cmd.equals(\"HideCallUI\")) {\n String tmpOper = intent.getStringExtra(\"oper\");\n if (tmpOper != null && tmpOper.length() > 0) {\n if (tmpOper.equals(\"hide\")) {\n showBTCallBox(false);\n System.out.println(\">>>>>>>>>> Recv msg: hide Call UI <<<<<<<<<<\");\n } else if (tmpOper.equals(\"show\")) {\n showBTCallBox(true);\n System.out.println(\">>>>>>>>>> Recv msg: show Call UI <<<<<<<<<<\");\n }\n }\n } else if (cmd.equals(\"TTSSpeak\")) {\n String text = intent.getStringExtra(\"text\");\n if (text != null && text.length() > 0) {\n System.out.println(\">>>>>>>>>> TTS Message:\" + text + \" <<<<<<<<<<\");\n }\n } else if (cmd.equals(\"BluetoothQueryState\")) {\n System.out.println(\">>>>>>>>>> Recv msg: BluetoothQueryState <<<<<<<<<<\");\n sendBoradCast2ECar(context, this.mReportState);\n } else if (cmd.equals(\"BluetoothMakeCall\")) {\n String name = intent.getStringExtra(IConstantData.KEY_NAME);\n String number = intent.getStringExtra(\"number\");\n if (!this.mBTConn) {\n WinShow.GotoWin(7, 0);\n return;\n }\n if (!(this.mBTExe == null || number == null || number.length() <= 0)) {\n this.mBTExe.dial(number);\n }\n if (name != null && name.length() > 0 && number != null && number.length() > 0) {\n System.out.println(\">>>>>>>>>> MakeCall:name=\" + name + \";number:\" + number + \" <<<<<<<<<<\");\n }\n } else if (cmd.equals(\"BluetoothEndCall\")) {\n if (this.mBTExe != null) {\n this.mBTExe.hangup();\n }\n System.out.println(\">>>>>>>>>> Recv msg: BluetoothEndCall <<<<<<<<<<\");\n } else if (cmd.equals(\"BluetoothConnect\")) {\n if (this.mContext != null) {\n WinShow.GotoWin(7, 0);\n }\n System.out.println(\">>>>>>>>>> Recv msg: BluetoothEndCall <<<<<<<<<<\");\n }\n }\n }", "@Override\n public void doConnect() throws IOException {\n if (!sc.finishConnect()) {\n return; // the selector gave a bad hint\n }\n\n // Sending login private\n var bb = ByteBuffer.allocate(1 + Long.BYTES);\n bb.put((byte) 9).putLong(connectId);\n queueMessage(bb.flip());\n\n updateInterestOps();\n }", "static private void readMessage(){\r\n\t\t index = 0;\r\n\t\t code = 0;\r\n\t\t firstParam = \"\";\r\n\t\t secondParam = \"\";\r\n\t\t thirdParam = \"\";\r\n\t\t StringTokenizer st = new StringTokenizer(message, \"_\");\r\n\t\t String c = st.nextToken();\r\n\t\t index = Integer.parseInt(c);\r\n\t\t c = st.nextToken();\r\n\t\t code = Integer.parseInt(c);\r\n\t\t \t\tSystem.out.println(\"ClientMessageReader: il codice del messaggio ricevuto è \"+code);\r\n\t\t \t//\t||(code == Parameters.START_PLAYBACK) \r\n\t\t if((code == Parameters.START_OFF)|| (code == Parameters.FILES_RESPONSE))\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t }\r\n\t\t if(code == Parameters.CONFIRM_REQUEST)\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t\t \t\t\tSystem.out.println(\"CONFIRM_REQUEST firstParam: \"+firstParam);\r\n\t\t }\r\n\t }", "private String requesttosend() throws IOException {\n\t\tsender.sendMsg(Constants.REQSEND);\r\n\t\t//等待接收的返回状态\r\n\t\treturn sender.getMsg();\r\n\t}", "public void receive() {\n try {\n ServerSocket s0 = new ServerSocket(PORT);\n s = s0.accept();\n rm.closeProgram();\n r = new BufferedReader(new InputStreamReader(s.getInputStream(), StandardCharsets.US_ASCII));\n w = new BufferedWriter(new OutputStreamWriter(s.getOutputStream(), StandardCharsets.US_ASCII));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void newACMsg(OL_Message msg) {\n setACMsg(msg);\n FSM_Extension e = ((FSM_Extension) msg.getFirstExtensionByType(Extension.FSM));\n switch(e.getType()) {\n case DONT_HAVE_IT:\n {\n myState = NoPayload_NoRecover;\n messageStore.setTimer(this, REC_TIMER_INDEX, timeout_REC);\n }\n break;\n case HAVE_IT:\n {\n sendToNode(NACK_SYNC, msg.getSourceAddress());\n neighboraddress = msg.getSourceAddress();\n myState = WaitforPayload;\n messageStore.setTimer(this, NACK_TIMER_INDEX, timeout_NACK);\n messageStore.setTimer(this, MAXNACK_TIMER_INDEX, max_NACK);\n }\n break;\n case NACK_SYNC:\n case QUERY_MSG_SYNC:\n {\n sendToNode(DONT_HAVE_IT, msg.getSourceAddress());\n myState = NoPayload_NoRecover;\n messageStore.setTimer(this, REC_TIMER_INDEX, timeout_REC);\n }\n break;\n }\n }", "private static void bidiStreamService(ManagedChannel channel){\n CalculatorServiceGrpc.CalculatorServiceStub asynClient = CalculatorServiceGrpc.newStub(channel);\n CountDownLatch latch = new CountDownLatch(1);\n StreamObserver<FindMaximumRequest> streamObserver = asynClient.findMaximum(new StreamObserver<FindMaximumResponse>() {\n @Override\n public void onNext(FindMaximumResponse value) {\n System.out.println(\"Got new maxium from server: \"+ value.getMaximum());\n }\n\n @Override\n public void onError(Throwable t) {\n latch.countDown();\n }\n\n @Override\n public void onCompleted() {\n System.out.println(\"Server is done sending data\");\n latch.countDown();\n }\n });\n\n Arrays.asList(1,5,3,6,2,20).forEach(\n number -> {\n System.out.println(\"Sending number: \"+ number);\n streamObserver.onNext(FindMaximumRequest.newBuilder()\n .setNumber(number)\n .build());\n }\n );\n\n streamObserver.onCompleted();\n try {\n latch.await(3L, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse qqCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge qqCharge8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/qqChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n qqCharge8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tMessageTemplate cfpTemplate = MessageTemplate.MatchPerformative(ACLMessage.CFP);\n\t\t\t\tMessageTemplate informTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\n\t\t\t\tMessageTemplate messageTemplate = MessageTemplate.or(cfpTemplate, informTemplate);\n\t\t\t\tACLMessage receivedMessage = myAgent.receive(messageTemplate);\n\t\t\t\t\n\t\t\t\tif (receivedMessage != null) {\n\t\t\t\t\thasReceivedMessage = true;\n\t\t\t\t\t\n\t\t\t\t\tif (receivedMessage.getPerformative() == ACLMessage.CFP) {\n\t\t\t\t\t\tdouble price = Double.parseDouble(receivedMessage.getContent());\n\t\t\t\t\t\tSystem.out.println(\"Buyer [\" + getAID().getLocalName() + \"] received \"\n\t\t\t\t\t\t\t\t+ \"CFP with price \" + Double.toString(price));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Value in range; send proposal\n\t\t\t\t\t\tif (price <= priceToBuy) {\n\t\t\t\t\t\t\tACLMessage proposal = new ACLMessage(ACLMessage.PROPOSE);\n\t\t\t\t\t\t\tproposal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\tproposal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(proposal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = sendProposal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Price too high; refuse and wait for new CFP\n\t\t\t\t\t\t\tACLMessage refusal = new ACLMessage(ACLMessage.REFUSE);\n\t\t\t\t\t\t\trefusal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\trefusal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(refusal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = highPrice;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (receivedMessage.getPerformative() == ACLMessage.INFORM) {\n\t\t\t\t\t\ttransitionStatus = noBuyers;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "static void in_to_acc(String passed) throws IOException{\n\t\tSystem.out.print(\"Input to port \"+hexa_to_deci(passed.substring(3))+\" : \");\n\t\tString enter = scan.readLine();\n\t\tregisters.put('A',enter);\n\t}", "RequestSender onInform(Consumer<Message> consumer);", "private void processSession()\n\t\tthrows ProtocolException, AtmException\n\t{\n\t\tboolean fDone = false;\n\t\ttry\n\t\t{\n\t\t\twhile(!fDone)\n\t\t\t{\n\t\t\t\t// listen for client to send data\n\t\t\t\tString dataIn = m_reader.readLine();\n\t\t\t\ttrace(\"handling client command \" + dataIn);\n\t\t\t\tif(dataIn.trim().equals(START_XFR))\n\t\t\t\t{\n\t\t\t\t\ttrace(\"starting a file transfer request\");\n\t\t\t\t\tsendOK();\n\t\t\t\t\t//m_writer.println(OK); // send the ack\n\t\t\t\t\t\n\t\t\t\t\t// get the file name\n\t\t\t\t\tdataIn = m_reader.readLine();\n\t\t\t\t\t\n\t\t\t\t\t// create the AtmObject\n//\t\t\t\t\tDocument inDom = XmlUtility.xmlDocumentFromXmlString(dataIn.trim());\n//\t\t\t\t\tAtmObject obj = XmlUtility.xmlToObject(inDom);\n//\t\t\t\t\t\n//\t\t\t\t\tAtmObject response = AtmApplication.getInstance().processAtmObject(obj);\n//\t\t\t\t\t\n//\t\t\t\t\tDocument xmlResponse = XmlUtility.objectToXml(response);\n//\t\t\t\t\tString xmlResponseString = XmlUtility.xmlDocumentToString(xmlResponse);\n//\t\t\t\t\tsendData(xmlResponseString);\n\t\t\t\t\t// process the object\n//\t\t\t\t\tif(dataIn.trim().startsWith(FILE_NAME))\n//\t\t\t\t\t{\n//\t\t\t\t\t\t// get the file name\n//\t\t\t\t\t\tString data = dataIn.trim();\n//\t\t\t\t\t\t//String fileName = data.trim();\t\n////\t\t\t\t\t\tString path = m_destDirectory.getAbsolutePath()\n////\t\t\t\t\t\t\t\t+ \"\\\\\" + fileName;\n////\t\t\t\t\t\ttrace(\"Preparing to copy file: \" + fileName + \n////\t\t\t\t\t\t\t\t\" to \" + path);\n//\t\t\t\t\t\t\n////\t\t\t\t\t\tdestFile = new File(path);\n////\t\t\t\t\t\tFileWriter writer = new FileWriter(destFile);\n////\t\t\t\t\t\tdestWriter = new BufferedWriter(writer);\n////\t\t\t\t\t\t\n//\t\t\t\t\t\ttrace(\"created destination file\");\n//\t\t\t\t\t\tm_writer.println(OK); // send the ack\n//\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\telse if(messageIn.trim().startsWith(DATA))\n//\t\t\t\t{\n//\t\t\t\t\ttrace(\"writing data to destination file\");\n//\t\t\t\t\t// don't trim now. We want whitespace if it's there.\n//\t\t\t\t\tString data = messageIn.substring(DATA.length());\n//\t\t\t\t\tdestWriter.write(data);\n//\t\t\t\t\tdestWriter.newLine();\n//\t\t\t\t}\n//\t\t\t\telse if(messageIn.trim().equals(END_FILE))\n//\t\t\t\t{\n//\t\t\t\t\tdestWriter.flush();\n//\t\t\t\t\tdestWriter.close();\n//\t\t\t\t\tm_writer.println(OK); // send the ack\n//\t\t\t\t}\n//\t\t\t\telse if(messageIn.trim().equals(END_SESSION))\n//\t\t\t\t{\n//\t\t\t\t\ttrace(\" - Ending session\");\n//\t\t\t\t\tm_reader.close();\n//\t\t\t\t\tm_writer.println(OK); // send the ack\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\ttrace(\"Error copying file\" + ex.getMessage());\n\t\t\tthrow new ProtocolException(\"Error copying file\", ex);\t\t\t\n\t\t}\n\t}", "public void saluteTheClient(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(0, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n\t\t\t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tString action = intent.getAction();\r\n\t\tif (action.equals(\"IOException\")) {\r\n\t\t\tIntent it = new Intent();\r\n\t\t\tit.setClass(activity, SocketService.class);\r\n\t\t\tactivity.stopService(it);\r\n\t\t\tToast.makeText(activity, \"请确认网络是否开启,操作失败,请重新登录\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tshort msgId = Short.parseShort(action.split(\"_\")[0]);\r\n\t\tbyte msgOper = Byte.parseByte(action.split(\"_\")[1]);\r\n\t\tbyte[] body = intent.getExtras().getByteArray(\"data\");\r\n\t\tCmdListActivity cmdListActivity = null;\r\n\t\tEnterDeviceListActivity enterDeviceListActivity;\r\n\t\tif (msgId == MsgId_E.MSGID_CTRL.getVal()\r\n\t\t\t\t&& msgOper == MsgOper_E.MSGOPER_QRY.getVal()) {\r\n\t\t\tMsgQryAck_S msgQryAck_S = new MsgQryAck_S();\r\n\t\t\tmsgQryAck_S.setMsgQryAck_S(body);\r\n\t\t\tcmdListActivity = (CmdListActivity) activity;\r\n\t\t\tif (msgQryAck_S.getUsError() == 0) {\r\n\t\t\t\tif (msgQryAck_S.getUsCnt() > 0) {\r\n\t\t\t\t\tfor (int i = 0; i < msgQryAck_S.getUsCnt(); i++) {\r\n\t\t\t\t\t\tbyte[] ctrl_S_Byte = Arrays.copyOfRange(\r\n\t\t\t\t\t\t\t\tmsgQryAck_S.getPucData(), i * Ctrl_S.getSize(),\r\n\t\t\t\t\t\t\t\t(i + 1) * Ctrl_S.getSize());\r\n\t\t\t\t\t\tCtrl_S ctrl_S = new Ctrl_S();\r\n\t\t\t\t\t\tctrl_S.setCtrl_S(ctrl_S_Byte);\r\n\t\t\t\t\t\tcmdListActivity.ctrlMap.put(ctrl_S.getUsIdx(), ctrl_S);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// addSenseActivity.areaListAdapter.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tErrCode_E.showError(context, msgQryAck_S.getUsError());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (msgId == MsgId_E.MSGID_RGN.getVal()\r\n\t\t\t\t&& msgOper == MsgOper_E.MSGOPER_QRY.getVal()) {\r\n\t\t\tMsgQryAck_S msgQryAck_S = new MsgQryAck_S();\r\n\t\t\tmsgQryAck_S.setMsgQryAck_S(body);\r\n\t\t\tenterDeviceListActivity = (EnterDeviceListActivity) activity;\r\n\t\t\tif (msgQryAck_S.getUsError() == 0) {\r\n\t\t\t\tif (msgQryAck_S.getUsCnt() > 0) {\r\n\t\t\t\t\tfor (int i = 0; i < msgQryAck_S.getUsCnt(); i++) {\r\n\t\t\t\t\t\tbyte[] rgn_S_Byte = Arrays.copyOfRange(\r\n\t\t\t\t\t\t\t\tmsgQryAck_S.getPucData(), i * Rgn_S.getSize(),\r\n\t\t\t\t\t\t\t\t(i + 1) * Rgn_S.getSize());\r\n\t\t\t\t\t\tRgn_S rgn_S = new Rgn_S();\r\n\t\t\t\t\t\trgn_S.setRgn_S(rgn_S_Byte);\r\n\t\t\t\t\t\tenterDeviceListActivity.areaMap.put(rgn_S.getUsIdx(),\r\n\t\t\t\t\t\t\t\trgn_S);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// enterDeviceListActivity.deviceListAdapter.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (msgId == MsgId_E.MSGID_APPL.getVal()\r\n\t\t\t\t&& msgOper == MsgOper_E.MSGOPER_QRY.getVal()) {\r\n\t\t\tMsgQryAck_S msgQryAck_S = new MsgQryAck_S();\r\n\t\t\tmsgQryAck_S.setMsgQryAck_S(body);\r\n\t\t\tenterDeviceListActivity = (EnterDeviceListActivity) activity;\r\n\t\t\tif (msgQryAck_S.getUsError() == 0) {\r\n\t\t\t\tif (msgQryAck_S.getUsCnt() > 0) {\r\n\t\t\t\t\tfor (int i = 0; i < msgQryAck_S.getUsCnt(); i++) {\r\n\t\t\t\t\t\tbyte[] appl_S_Byte = Arrays.copyOfRange(\r\n\t\t\t\t\t\t\t\tmsgQryAck_S.getPucData(), i * Appl_S.getSize(),\r\n\t\t\t\t\t\t\t\t(i + 1) * Appl_S.getSize());\r\n\t\t\t\t\t\tAppl_S appl_S = new Appl_S();\r\n\t\t\t\t\t\tappl_S.setAppl_S(appl_S_Byte);\r\n\t\t\t\t\t\tenterDeviceListActivity.deviceList.add(appl_S);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tenterDeviceListActivity.deviceListAdapter\r\n\t\t\t\t\t\t\t.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tErrCode_E.showError(context, msgQryAck_S.getUsError());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (msgId == MsgId_E.MSGID_APPL.getVal()\r\n\t\t\t\t&& msgOper == MsgOper_E.MSGOPER_DEL.getVal()) {\r\n\r\n\t\t\tMsgDelAck_S msgDelAck_S = new MsgDelAck_S();\r\n\t\t\tmsgDelAck_S.setMsgDelAck_S(body);\r\n\t\t\tenterDeviceListActivity = (EnterDeviceListActivity) activity;\r\n\t\t\tif (msgDelAck_S.getUsError() == 0) {\r\n\t\t\t\tfor (int i = 0; i < enterDeviceListActivity.deviceList.size(); i++) {\r\n\t\t\t\t\tAppl_S appl_S = enterDeviceListActivity.deviceList.get(i);\r\n\t\t\t\t\tif (appl_S.getUsIdx() == msgDelAck_S.getUsIdx()) {\r\n\t\t\t\t\t\tenterDeviceListActivity.deviceList.remove(i);\r\n\t\t\t\t\t\tenterDeviceListActivity.deviceListAdapter\r\n\t\t\t\t\t\t\t\t.notifyDataSetChanged();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(activity, \"删除成功\", Toast.LENGTH_LONG).show();\r\n\t\t\t} else {\r\n\t\t\t\tErrCode_E.showError(context, msgDelAck_S.getUsError());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (msgId == MsgId_E.MSGID_APPL.getVal()\r\n\t\t\t\t&& msgOper == MsgOperCmd_E.MSGOPER_CMD_QRY_BYDEV.getVal()) {\r\n\t\t\tMsgQryAck_S msgQryAck_S = new MsgQryAck_S();\r\n\t\t\tmsgQryAck_S.setMsgQryAck_S(body);\r\n\t\t\tenterDeviceListActivity = (EnterDeviceListActivity) activity;\r\n\t\t\tif (msgQryAck_S.getUsError() == 0) {\r\n\t\t\t\tif (msgQryAck_S.getUsCnt() > 0) {\r\n\t\t\t\t\tfor (int i = 0; i < msgQryAck_S.getUsCnt(); i++) {\r\n\t\t\t\t\t\tbyte[] appl_S_Byte = Arrays.copyOfRange(\r\n\t\t\t\t\t\t\t\tmsgQryAck_S.getPucData(), i * Appl_S.getSize(),\r\n\t\t\t\t\t\t\t\t(i + 1) * Appl_S.getSize());\r\n\t\t\t\t\t\tAppl_S appl_S = new Appl_S();\r\n\t\t\t\t\t\tappl_S.setAppl_S(appl_S_Byte);\r\n\t\t\t\t\t\tenterDeviceListActivity.deviceList.add(appl_S);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tenterDeviceListActivity.deviceListAdapter\r\n\t\t\t\t\t\t\t.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tErrCode_E.showError(context, msgQryAck_S.getUsError());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (msgId == MsgId_E.MSGID_CMD.getVal()\r\n\t\t\t\t&& msgOper == MsgOper_E.MSGOPER_DEL.getVal()) {\r\n\t\t\tMsgDelAck_S msgDelAck_S = new MsgDelAck_S();\r\n\t\t\tmsgDelAck_S.setMsgDelAck_S(body);\r\n\t\t\tcmdListActivity = (CmdListActivity) activity;\r\n\t\t\tif (msgDelAck_S.getUsError() == 0) {\r\n\t\t\t\tcmdListActivity.cmdList.clear();\r\n\t\t\t\tfor (int i = 0; i < cmdListActivity.cmdList.size(); i++) {\r\n\t\t\t\t\tCmd_S cmd_S = cmdListActivity.cmdList.get(i);\r\n\t\t\t\t\tif (cmd_S.getUsIdx() == msgDelAck_S.getUsIdx()) {\r\n\t\t\t\t\t\tcmdListActivity.cmdList.remove(i);\r\n\t\t\t\t\t\tcmdListActivity.cmdListAdapter.notifyDataSetChanged();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(activity, \"删除成功\", Toast.LENGTH_LONG).show();\r\n\t\t\t} else {\r\n\t\t\t\tErrCode_E.showError(context, msgDelAck_S.getUsError());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ((msgId == MsgId_E.MSGID_CMD.getVal() && msgOper == MsgOperCmd_E.MSGOPER_CMD_QRY_BYDEV\r\n\t\t\t\t.getVal())) {\r\n\t\t\tparseToList(body);\r\n\t\t}\r\n\r\n\t}", "public void actionPerformed(java.awt.event.ActionEvent ae)\n\t{\n\t\tObject source = ae.getSource();\n\n\t\t//listener code for speak button\n\t\tif (source == speak)\n\t\t{\n\t\t\tNGlobals.cPrint(\"ENTER\");\n\n\t\t\tString tString = input.getText();\n\t\t\tint tLen = tString.length();\n\t\t\t// char[] tStringAsChars = tString.toCharArray();\n\t\t\tbyte[] tStringAsBytes = tString.getBytes();\n\n\t\t\tdiscussSand.sendGrain((byte)NAppID.INSTRUCTOR_DISCUSS, (byte)NCommand.SEND_MESSAGE, (byte)NDataType.CHAR, tLen, tStringAsBytes );\n\n\n\t\t\t// The data \n\t\t\tNGlobals.cPrint(\"sending: (\" + tLen + \") of this data type\");\n\n\t\t\t// for (int i=0; i<tLen; i++) {\n\t\t\t// NGlobals.cPrint(\"sending: \" + tString.charAt(i));\n\t\t\t// streamOut.writeByte(tString.charAt(i));\n\t\t\t// }\n\n\t\t\tNGlobals.cPrint(\"sending: (\" + tString + \")\");\n\t\t\tinput.setText(\"\");\n\t\t\t// \t }\n\t\t} \n\t}", "@Override\n\tpublic void doService(Session session, ReceiveMsg action) {\n\t\tRoom room = WSSessionKit.getRoom(session);\n\t\tPlayerInfo playerInfo = MJCache.getCache().getPlayerInfo(action.getP());\n\t\t// 设置当前是单游中\n\t\tplayerInfo.addHuInfo(MJConst.YOU_JINGING, 2);\n\t\tint youjin = room.getArg(MJConst.YOU_JINGING);\n\t\troom.addArg(MJConst.YOU_JINGING, youjin > 2 ? youjin : 2);\n\t\tString card = dealOutCardInfo(action, playerInfo, room);\n\t\tSystem.err.println(\n\t\t\t\t\"TwoYouZhong ting: \" + playerInfo.getUserInfo().getUserId() + \":::\" + playerInfo.getTingCards());\n\t\t// SendMsg result = new SendMsg(action.getP(), true, action.getT());\n\t\t// result.setM(action);\n\t\t// this.sendMsgToSelf(room, session, result);\n\t\t// WebSocketUtil.sendAsyncMsg(result, session);\n\t\t// 出牌信息则保存下来,下次重连时发出\n\t\t// MJCache.getCache().addMsg(room.getRoomId(), result);\n\t\t// 缓存回放消息\n\t\tSendMsg replayMsg = new SendMsg(action.getP(), true, action.getT());\n\t\treplayMsg.setM(action);\n\t\troom.addReplayMsg(replayMsg);\n\t\t// 检查其他人是否对出的牌有操作\n\t\tcheckOtherOpt(action, card, room);\n\t}", "void send();", "@Override\r\n\tpublic void messageReceived( IoSession session, Object message ) throws Exception\r\n\t{\r\n\t\t//\t\tSystem.out.println(\"data \" + (byte[])message);\r\n\t\t//\t\tfor(byte b : (byte[])message){\r\n\t\t//\t\t\tSystem.out.print(b + \" \");\r\n\t\t//\t\t}\r\n\t\t//\t\tSystem.out.println();\r\n\r\n\r\n\r\n\t\tif(message instanceof ClientMessage)\t\t// Application\r\n\t\t\treceivedClientMessage = (ClientMessage) message;\r\n\t\telse{ \t\t\t\t\t\t\t\t\t\t// OBU\r\n\t\t\tinterpretData((byte[]) message, session);\r\n\t\t\t//\t\t\tboolean transactionState = obuHandlers.get(session).addData((byte[])message); \r\n\t\t\t//\t\t\tif(transactionState){\r\n\t\t\t//\t\t\t\tbyte[] b = {(byte)0x01};\r\n\t\t\t//\t\t\t\tsession.write(new OBUMessage(OBUMessage.REQUEST_TELEMETRY, b).request);\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\r\n\t\t\t//\t\t\tThread.sleep(200);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tRunnable run = new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tswitch(receivedClientMessage.getId()){\r\n\t\t\t\tcase LOGIN_CHECK:\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\t//\t\t\t\tlock.lock();\r\n\t\t\t\t\t\tint user_id = (int)receivedClientMessage.getContent();\r\n\t\t\t\t\t\tUserData response = null;\r\n\t\t\t\t\t\tif(user_id == -1){\r\n\t\t\t\t\t\t\tsession.write(new ClientMessage(ClientMessage.Ident.LOGIN_CHECK, response));\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tboolean isOnline = AmberServer.getDatabase().checkOnline(user_id);\r\n\t\t\t\t\t\tif(isOnline){\r\n\t\t\t\t\t\t\tsession.setAttribute(\"user\", user_id);\r\n\t\t\t\t\t\t\tcancelTimeout(user_id);\r\n\t\t\t\t\t\t\tresponse = new UserData().prepareUserData(user_id);\r\n\t\t\t\t\t\t\tsession.write(new ClientMessage(ClientMessage.Ident.LOGIN_CHECK, response));\r\n\t\t\t\t\t\t\tServerLogger.log(\"Login succeeded: \" + user_id, Constants.DEBUG);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tsession.write(new ClientMessage(ClientMessage.Ident.LOGIN_CHECK, response));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\t//\t\t\t\tlock.unlock();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase LOGIN:\r\n\t\t\t\t\tClientMessage responseMessage = null;\r\n\t\t\t\t\tString usernameLogin = ((User)receivedClientMessage.getContent()).getName();\r\n\t\t\t\t\tbyte[] passLogin = ((User)receivedClientMessage.getContent()).getPass();\r\n\t\t\t\t\tString regID = ((User)receivedClientMessage.getContent()).getRegistationID();\r\n\t\t\t\t\t// Database validation\r\n\t\t\t\t\t// Check for User and Password\r\n\t\t\t\t\tint userID = AmberServer.getDatabase().login(usernameLogin, passLogin);\r\n\t\t\t\t\tif(userID == -1){\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.ERROR, Constants.ERROR_LOGIN);\r\n\t\t\t\t\t\tServerLogger.log(\"Login failed: \" + usernameLogin, Constants.DEBUG);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Check for GCM Registration\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tAmberServer.getDatabase().registerGCM(userID, regID);\r\n\t\t\t\t\t\tUserData response = new UserData();\r\n\t\t\t\t\t\tresponse = response.prepareUserData(userID);\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.LOGIN, response);\r\n\t\t\t\t\t\tsession.setAttribute(\"user\", userID);\r\n\t\t\t\t\t\tServerLogger.log(\"Login success: \" + usernameLogin, Constants.DEBUG);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase LOGOUT:\r\n\t\t\t\t\tint user_id = (int)receivedClientMessage.getContent();\r\n\t\t\t\t\tAmberServer.getDatabase().logout(user_id);\r\n\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.LOGOUT, Constants.SUCCESS_LOGOUT);\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase REGISTER:\r\n\t\t\t\t\tString usernameRegister = ((User)receivedClientMessage.getContent()).getName();\r\n\t\t\t\t\tbyte[] passRegister = ((User)receivedClientMessage.getContent()).getPass();\r\n\t\t\t\t\tboolean queryRegister = AmberServer.getDatabase().addUser(usernameRegister, passRegister, 0);\r\n\t\t\t\t\t// Registration failed\r\n\t\t\t\t\tif(!queryRegister){\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.ERROR, Constants.ERROR_REGISTER);\r\n\t\t\t\t\t\tServerLogger.log(\"Registration failed: \" + usernameRegister, Constants.DEBUG);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Registration succeeded\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.REGISTER, Constants.SUCCESS_REGISTER);\r\n\t\t\t\t\t\tServerLogger.log(\"Registration success: \" + usernameRegister, Constants.DEBUG);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase EVENT_DETAIL:\r\n\t\t\t\tcase EVENT_REQUEST:\r\n\t\t\t\t\tObject[] request = (Object[]) receivedClientMessage.getContent();\r\n\t\t\t\t\tint eventID = (int) request[0];\r\n\t\t\t\t\tint obuID = (int) request[1];\r\n\t\t\t\t\tObject[] eventData = AmberServer.getDatabase().getEventData(eventID);\r\n\t\t\t\t\tString vehicleName = AmberServer.getDatabase().getVehicleName(obuID);\r\n\t\t\t\t\tString eventType = (String)eventData[1];\r\n\t\t\t\t\tString eventTime = (String)eventData[2];\r\n\t\t\t\t\tdouble eventLat = (double)eventData[3];\r\n\t\t\t\t\tdouble eventLon = (double)eventData[4];\r\n\t\t\t\t\tbyte[] eventImage = (byte[]) eventData[5];\t// EventImage\r\n\t\t\t\t\tEvent event = new Event(eventType, eventTime, eventLat, eventLon, eventImage, vehicleName);\r\n\t\t\t\t\tevent.setVehicleID(obuID);\r\n\t\t\t\t\tsession.write(new ClientMessage(receivedClientMessage.getId(), event));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase REGISTER_VEHICLE:\r\n\t\t\t\t\trequest = (Object[]) receivedClientMessage.getContent();\r\n\t\t\t\t\tuserID = (int) request[0];\r\n\t\t\t\t\tint vehicleID = (int) request[1];\r\n\r\n\t\t\t\t\tSystem.out.println(\"VEHICLE ID \" + vehicleID);\r\n\r\n\t\t\t\t\tVehicle vehicle = AmberServer.getDatabase().registerVehicle(userID, vehicleID);\r\n\t\t\t\t\tSystem.out.println(vehicle);\r\n\t\t\t\t\tif(vehicle == null){\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.ERROR, Constants.ERROR_REGISTER_VEHICLE);\r\n\t\t\t\t\t\tServerLogger.log(\"Add Vehicle failed: \" + userID, Constants.DEBUG);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Add Vehicle succeeded\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tvehicle = vehicle.prepareVehicle(vehicleID);\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.REGISTER_VEHICLE, vehicle);\r\n\t\t\t\t\t\tServerLogger.log(\"Add Vehicle succeeded: \" + userID, Constants.DEBUG);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UNREGISTER_VEHICLE:\r\n\t\t\t\t\trequest = (Object[]) receivedClientMessage.getContent();\r\n\t\t\t\t\tuserID = (int) request[0];\r\n\t\t\t\t\tvehicleID = (int) request[1];\r\n\t\t\t\t\tint position = (int) request[2];\r\n\t\t\t\t\tboolean queryUnregisterVehicle = AmberServer.getDatabase().unregisterVehicle(userID, vehicleID);\r\n\t\t\t\t\tif(!queryUnregisterVehicle){\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.UNREGISTER_VEHICLE, -1);\r\n\t\t\t\t\t\tServerLogger.log(\"Unregister Vehicle failed for User: \" + userID, Constants.DEBUG);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Unregister Vehicle succeeded\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.UNREGISTER_VEHICLE, position);\r\n\t\t\t\t\t\tServerLogger.log(\"Unregister Vehicle succeeded for User: \" + userID, Constants.DEBUG);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase TOGGLE_ALARM:\r\n\t\t\t\t\trequest = (Object[]) receivedClientMessage.getContent();\r\n\t\t\t\t\tuserID = (int) request[0];\r\n\t\t\t\t\tvehicleID = (int) request[1];\r\n\t\t\t\t\tboolean status = (boolean) request[2];\r\n\t\t\t\t\tposition = (int) request[3];\r\n\t\t\t\t\tboolean queryToggleAlarm = AmberServer.getDatabase().toggleAlarm(userID, vehicleID, status);\r\n\t\t\t\t\tObject[] responseData = {queryToggleAlarm, position};\r\n\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.TOGGLE_ALARM, responseData);\r\n\t\t\t\t\tServerLogger.log(\"Toggle Alarm for User: \" + userID + \" \" + queryToggleAlarm, Constants.DEBUG);\t\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase GET_EVENTLIST_BACKPRESS:\r\n\t\t\t\tcase GET_EVENTLIST:\r\n\t\t\t\t\tvehicleID = (int) receivedClientMessage.getContent();\r\n\t\t\t\t\tvehicleName = AmberServer.getDatabase().getVehicleName(vehicleID);\r\n\t\t\t\t\tArrayList<Event> events = Vehicle.prepareEventList(vehicleID);\r\n\t\t\t\t\tObject[] eventResponse = {events, vehicleName};\r\n\t\t\t\t\tresponseMessage = new ClientMessage(receivedClientMessage.getId(), eventResponse);\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase GET_VEHICLELIST_BACKPRESS:\r\n\t\t\t\t\tuserID = (int) receivedClientMessage.getContent();\r\n\t\t\t\t\tUserData response = new UserData();\r\n\t\t\t\t\tresponse = response.prepareUserData(userID);\r\n\t\t\t\t\tresponseMessage = new ClientMessage(ClientMessage.Ident.GET_VEHICLELIST_BACKPRESS, response.getVehicles());\r\n\t\t\t\t\tsession.write(responseMessage);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tnew Thread(run).start();\r\n\t}", "public void startterminalReturnCard(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard terminalReturnCard4,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/terminalReturnCardRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n terminalReturnCard4,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalReturnCard\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalReturnCard\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCardResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultterminalReturnCard(\n (net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCardResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorterminalReturnCard(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalReturnCard\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalReturnCard\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalReturnCard\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorterminalReturnCard(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[2].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[2].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "PToP.S2ARsp getS2Rsp();", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "private void connect(InProgInfo inProg, String address, String port, String interfaceName) throws InterruptedException\n {\n \n System.out.println(\"Starting connection to Real Time Session...\");\n \n channelSessions.add(new EDFChannelSession());\n if (channelSessions.get(channelSessions.size() - 1).initTransport(false, error) < CodecReturnCodes.SUCCESS)\n System.exit(error.errorId());\n\n // enable XML tracing\n if (CommandLine.booleanValue(\"x\"))\n {\n channelSessions.get(channelSessions.size() - 1).enableXmlTrace(dictionaryHandler.dictionary());\n }\n\n // get connect options from the channel session\n ConnectOptions copts = channelSessions.get(channelSessions.size() - 1).getConnectOptions();\n\n // set the connection parameters on the connect options\n copts.unifiedNetworkInfo().address(address);\n copts.unifiedNetworkInfo().serviceName(port);\n copts.unifiedNetworkInfo().interfaceName(interfaceName);\n copts.blocking(false);\n copts.connectionType(ConnectionTypes.SEQUENCED_MCAST);\n\n channelSessions.get(channelSessions.size() - 1).connect(inProg, error);\n }", "@Override\n\t\t\tpublic void run() {\n//\t\t\t\t\n//\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\t\t\t\tStatus_Byte=eeipClient.T_O_IOData[0x7F];\n\t\t\t\tTO_Bit=(Status_Byte&(0x20))>>5;\n\t\t\t\tAA_Bit=(Status_Byte&(0x02))>>1;\n\t\t\n\t\t\t\tif((TO_Bit_old!=TO_Bit)&&(AA_Bit==1)) {\n\t\t\t\t\tTO_Bit_old=TO_Bit;\n\t\t\t\t\tstate=1;\n\t\t\t\t\ttimerflag2=false;\n\t\t\t\t\tthis.cancel();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void updateACMsg(OL_Message msg) {\n FSM_Extension e = ((FSM_Extension) msg.getFirstExtensionByType(Extension.FSM));\n switch(myState) {\n case NoPayload_Recover:\n {\n switch(e.getType()) {\n case DONT_HAVE_IT:\n {\n myState = NoPayload_NoRecover;\n messageStore.setTimer(this, REC_TIMER_INDEX, timeout_REC);\n }\n break;\n case HAVE_IT:\n {\n neighboraddress = msg.getSourceAddress();\n sendToNode(NACK_SYNC, msg.getSourceAddress());\n myState = WaitforPayload;\n messageStore.setTimer(this, NACK_TIMER_INDEX, timeout_NACK);\n messageStore.setTimer(this, MAXNACK_TIMER_INDEX, max_NACK);\n }\n break;\n case NACK_SYNC:\n case QUERY_MSG_SYNC:\n {\n sendToNode(DONT_HAVE_IT, msg.getSourceAddress());\n myState = NoPayload_NoRecover;\n messageStore.setTimer(this, REC_TIMER_INDEX, timeout_REC);\n }\n break;\n }\n }\n break;\n case NoPayload_NoRecover:\n {\n switch(e.getType()) {\n case HAVE_IT:\n {\n neighboraddress = msg.getSourceAddress();\n sendToNode(NACK_SYNC, msg.getSourceAddress());\n myState = WaitforPayload;\n messageStore.setTimer(this, NACK_TIMER_INDEX, timeout_NACK);\n messageStore.setTimer(this, MAXNACK_TIMER_INDEX, max_NACK);\n }\n break;\n case NACK_SYNC:\n case QUERY_MSG_SYNC:\n {\n sendToNode(DONT_HAVE_IT, msg.getSourceAddress());\n }\n break;\n }\n }\n break;\n case WaitforPayload:\n {\n switch(e.getType()) {\n case DONT_HAVE_IT:\n {\n if (neighboraddress != msg.getSourceAddress() && neighboraddress != null) {\n sendToNode(NACK_SYNC, neighboraddress);\n } else {\n myState = NoPayload_NoRecover;\n messageStore.setTimer(this, REC_TIMER_INDEX, timeout_REC);\n }\n }\n break;\n case HAVE_IT:\n {\n neighboraddress = msg.getSourceAddress();\n }\n break;\n case NACK_SYNC:\n case QUERY_MSG_SYNC:\n {\n sendToNode(DONT_HAVE_IT, msg.getSourceAddress());\n }\n break;\n }\n }\n break;\n case HavePayload:\n {\n if (e.getType() == NACK_SYNC) {\n OL_Message payload = (OL_Message) socket.createMessage(data);\n ;\n msg.setHopLimit((short) 1);\n FSM_Extension ee = new FSM_Extension(MessageStore.FSM_SYNCHRONIZATION, PAYLOAD, messageid);\n payload.addExtension(ee);\n payload.setDeliveryMode(OL_Message.DELIVERY_MODE_UNICAST);\n payload.setDestinationAddress(msg.getSourceAddress());\n socket.forwardToParent(payload);\n } else if (e.getType() == QUERY_MSG_SYNC) {\n sendToNode(HAVE_IT, msg.getSourceAddress());\n }\n }\n break;\n }\n }" ]
[ "0.5813285", "0.5725858", "0.5630575", "0.5621462", "0.5620272", "0.56107014", "0.55864316", "0.5571552", "0.5570515", "0.5526295", "0.5490818", "0.54302627", "0.54200846", "0.537324", "0.534283", "0.53203315", "0.5291152", "0.5277312", "0.52539945", "0.5246214", "0.52408326", "0.52321166", "0.51917", "0.51646674", "0.5150519", "0.514283", "0.51419324", "0.51377153", "0.5115663", "0.511111", "0.5106463", "0.50955415", "0.5082072", "0.5078028", "0.5076988", "0.50610346", "0.50557035", "0.50506115", "0.50327635", "0.5032521", "0.50292593", "0.50242126", "0.50217474", "0.50206745", "0.5017184", "0.50133467", "0.5011363", "0.50024986", "0.4998471", "0.49980074", "0.49942327", "0.4989296", "0.49869898", "0.49854302", "0.49819955", "0.49789825", "0.4978903", "0.49709964", "0.49698454", "0.49582973", "0.49451816", "0.493948", "0.49307054", "0.49297056", "0.4928436", "0.4924983", "0.49159464", "0.49120498", "0.49077946", "0.4901563", "0.4898075", "0.48919427", "0.48867667", "0.48801374", "0.4872645", "0.48638216", "0.48608083", "0.4858575", "0.48574844", "0.48517987", "0.48501372", "0.48480687", "0.48404086", "0.4838892", "0.4836607", "0.48364425", "0.48361665", "0.48358774", "0.48345688", "0.48333794", "0.4831166", "0.48287988", "0.48252395", "0.48248175", "0.48240328", "0.48210287", "0.48151058", "0.480841", "0.4808005", "0.4806774" ]
0.5037242
38
Bean Docket All paths All apis
@Bean public Docket api(){ //Enables following endpoints once configured //http://localhost:8080/swagger-ui.html //http://localhost:8080/v2/api-docs return new Docket(DocumentationType.SWAGGER_2) //.apiInfo(ApiInfo.DEFAULT) .apiInfo(DEFAULT_API_INFO) .produces(DEFAULT_PRODUCES_AND_CONSUMES) .consumes(DEFAULT_PRODUCES_AND_CONSUMES); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IApiService {\n\n @GET(\"/its/master_halte/{id}\")\n public Data<Station> getSynchListStation(@Path(\"id\") String id);\n\n @GET(\"/its/eta/{koridor}/{id}\")\n public Data<Incoming> getSynchListIncoming(@Path(\"koridor\") String koridor,@Path(\"id\") String id);\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 interface EndpointsApi {\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getRecentMedia(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_PROFILE_USER_WITH_ID)\n Call<MascotasResponse> getProfile(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_FOLLOWS)\n Call<MascotasResponse> getFollows();\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getFollowsMediaRecent(@Path(\"user-id\") String id);\n}", "public interface BeaconQuestService {\n\n @GET(\"/beaconQuest/index/takeChallenge/{accountId}/{beaconId}\")\n Call<ResponseBody> takeChallenge (@Path(\"accountId\") String accountId,\n @Path(\"beaconId\") String beaconId\n );\n\n @GET(\"beaconQuest/index/challengeAnswer/{accountId}/{beaconId}/{answer}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid,\n @Path(\"answer\") String answer\n );\n\n @GET(\"beaconQuest/index//challengeCancel/{accountId}/{beaconId}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid\n );\n\n @GET(\"beaconQuest/index//register/{username}/{password}\")\n Call<ResponseBody> registerAccount(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n\n @GET(\"beaconQuest/index//login/{username}/{password}/\")\n Call<ResponseBody> login(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n}", "public interface ServiceApi {\n @GET(\"/user/login\")\n Observable<DlBean> dL(@Query(\"mobile\") String mobile,@Query(\"password\") String password );\n @GET(\"/user/reg\")\n Observable<ZcBean> zC(@Query(\"mobile\") String mobile,@Query(\"password\") String password );\n @GET(\"/ad/getAd\")\n Observable<LbBean> lieb(@Query(\"source\") String source );\n // http://120.27.23.105/product/getProductDetail?pid=1&source=android\n @GET(\"/product/getProductDetail\")\n Observable<XqBean> xQ(@Query(\"source\") String source, @Query(\"pid\") int pid);\n @GET(\"product/getCarts\")\n Observable<MsgBean<List<DataBean>>> getDatas(@Query(\"uid\") String uid, @Query(\"source\") String source);\n @GET(\"product/deleteCart\")\n Observable<MsgBean> deleteData(@Query(\"uid\") String uid, @Query(\"pid\") String pid, @Query(\"source\") String source);\n\n}", "public interface API {\n @GET(\"today\")\n Observable<RecommendBean> getRecommendData();\n\n @GET(\"search/query/listview/category/{category}/count/10/page/{page}\")\n Observable<SearchBean> getSearchData(@Path(\"category\") String category, @Path(\"page\") int page);\n\n @GET(\"xiandu/categories\")\n Observable<Categories> getCategoriesData();\n\n @GET(\"xiandu/category/{type}\")\n Observable<Category> getCategoryData(@Path(\"type\") String type);\n}", "public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}", "public interface ApiCategoria {\n @GET(\"4A/webresources/categorias\")\n Call<List<Categoria>> getCategorias();\n\n @GET(\"4A/webresources/categorias/{id}\")\n Call<List<Produto>> getProdutos(@Path(\"id\") int id);\n}", "public interface Endpoints {\n\n @GET(\"/posts\")\n Call<List<Posts>> getAllPosts();\n}", "public interface Api {\n @GET(\"ad/getAd\")\n Observable<ImageBean> getImage();\n @GET(\"product/getCatagory\")\n Observable<JiuBean> getJiu();\n @GET(\"home/getHome\")\n Observable<HomeBean> getHome();\n @GET(\"product/getProductCatagory\")\n Observable<SortBean> getSort(@Query(\"cid\") int cid);\n @GET(\"user/reg\")\n Observable<RegBean> getReg(@Query(\"mobile\") String mobile, @Query(\"password\") String password);\n @GET(\"user/login\")\n Observable<LoginBean> getLogin(@Query(\"mobile\") String mobile, @Query(\"password\") String password);\n @GET(\"product/searchProducts\")\n Observable<SouSuoBean> getSouSuo(@Query(\"keywords\") String keywords, @Query(\"page\") int page);\n @GET(\"product/getProductDetail\")\n Observable<XiangQingBean> getXiangQing(@Query(\"pid\") int pid);\n @GET(\"product/getCarts\")\n Observable<CarBean> getCar(@Query(\"uid\") int uid);\n}", "public interface ApiServer {\n//\n @GET(\"umIPmfS6c83237d9c70c7c9510c9b0f97171a308d13b611?uri=homepage\")\n Observable<HomeBean> getHome();\n @POST\n Observable<Login> getDengLu(@Url String name, @QueryMap Map<String, String> paw);\n @GET(\"product/getCatagory\")\n Observable<Sort_lift> lift();\n @GET\n Observable<Sort_right> right(@Url String s);\n @GET\n Observable<Commodity_pagingBean> xia(@Url String s);\n @GET\n Observable<detailsBean> spxq(@Url String ss);\n @GET\n Observable<AddcartBean> add(@Url String s);\n @GET\n Observable<QurryBean> qurry(@Url String s);\n @GET\n Observable<AddcartBean> delete(@Url String s);\n @GET\n Observable<AddcartBean> addDd(@Url String s);\n @GET\n Observable<OrderBean> Ddlb(@Url String s);\n\n\n\n\n\n\n}", "@Path(\"device\")\n DeviceAPI devices();", "@ApiOperation(value = \"Route Get mapping to fetch all routes\", response = List.class)\n\t@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<RouteDto>> viewAllRoutes() {\n\t \n\t List<Route> routeList = this.routeServices.viewRouteList();\n\t\tList<RouteDto> routeDtoList = new ArrayList<>();\n\t\tfor (Route r : routeList) {\n\t\t\tRouteDto routedto = modelMapper.map(r, RouteDto.class);\n\t\t\trouteDtoList.add(routedto);\n\t\t}\n\t\tif (!(routeDtoList.isEmpty())) {\n\t\t\treturn new ResponseEntity<>(routeDtoList, HttpStatus.OK);\n\t\t} else {\n\t\t\treturn new ResponseEntity<>(routeDtoList, HttpStatus.NOT_FOUND);\n\t\t}\n\t}", "@RequestMapping(\"/web/**\")\n\tpublic String allFolders() {\n\t System.out.println(\"In /web/**\");\n\t return \"success\";\n\t}", "@Bean\n\tpublic Docket api() {\n\t\treturn new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())\n\t\t\t\t.paths(PathSelectors.any()).build();\n\t}", "List<ManagedEndpoint> all();", "public interface ContaAPI {\n\n @GET(\"/conta/buscarConta/{usuario}\")\n Call <List<Conta>> buscarConta(@Path(\"usuario\") String usuario);\n\n @GET(\"/conta/buscarProduto/{usuario}/{produto}\")\n Call <Conta> buscarProduto(@Path(\"usuario\") String usuario, @Path(\"produto\") String produto);\n\n @GET(\"/conta/valorConta/{usuario}\")\n Call<Double> valorConta(@Path(\"usuario\") String usuario);\n\n @POST(\"/conta/salvar\")\n Call<Void> salvar(@Body Conta conta);\n\n @DELETE(\"/conta/delete/{usuario}/{produto}\")\n Call<Void> apagarProdutoConta(@Path(\"usuario\") String usuario, @Path(\"produto\") String produto);\n\n @DELETE(\"/conta/delete/{usuario}\")\n Call<Void> apagarConta(@Path(\"usuario\") String usuario);\n}", "public interface IEndpoint\n{\n @GET(Contract.PATH_POPULAR_MOVIE)\n Call<MovieResponse> getPopularMovies(@Query(\"api_key\") String apiKey);\n\n @GET(Contract.PATH_TOP_RATED_MOVIE)\n Call<MovieResponse> getTopRatedMovies(@Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/videos\")\n Call<MovieTrailer> getMovieTrailer(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/reviews\")\n Call<MovieReview> getMovieReview(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(Contract.SIZE_MOBILE + \"{posterImagePath}\")\n Call<ResponseBody> getPosterImage(\n @Path(value = \"posterImagePath\", encoded = true)\n String posterImagePath);\n\n @GET(\"w780{backdropImagePath}\")\n Call<ResponseBody> getBackdropImage(\n @Path(value = \"backdropImagePath\", encoded = true)\n String backdropImagePath);\n}", "@GetMapping(\"/methods\")\n @Timed\n public List<MethodsDTO> getAllMethods() {\n log.debug(\"REST request to get all Methods\");\n return methodsService.findAll();\n }", "@Bean\n\tpublic Docket api() { \n\n\t\tDocket docket= new Docket(DocumentationType.SWAGGER_2) \n\t\t\t\t.select() \n\t\t\t\t.apis(RequestHandlerSelectors.basePackage(\"com.authorizationservice.authorization\")) \n\t\t\t\t.paths(PathSelectors.any()) \n\t\t\t\t.build().apiInfo(apiDetails()); \n\t\tlog.debug(\"Docket{}:\", docket);\n\t\treturn docket;\n\t}", "@Bean\n public Docket swaggerApi() {\n\n return new Docket(DocumentationType.SWAGGER_2).apiInfo(swaggerInfo()).select()\n .apis(RequestHandlerSelectors.basePackage(\"rooftophero.io.toyp2p.api\"))\n .paths(PathSelectors.any())\n// .paths(PathSelectors.ant(\"/api/*\"))\n .build()\n .useDefaultResponseMessages(false); // 기본으로 세팅되는 200,401,403,404 메시지를 표시 하지 않음\n }", "public interface Api {\n\n\n @GET(\"users?site=stackoverflow\")\n Call<UserResponse> getUser(@Query(\"pagesize\")int size,@Query(\"sort\")String sort);\n\n @GET(\"comments?site=stackoverflow\")\n Call<CommentsResponse> getComments(@Query(\"order\")String order,@Query(\"sort\")String votes,@Query(\"pagesize\")int size,@Query(\"min\")int min);\n\n @GET(\"posts/{ids}?site=stackoverflow\")\n Call<PostResponse> getPostResponseCall(@Path(\"ids\") long id);\n @GET(\"users/{ids}/questions?site=stackoverflow\")\n Call<QuestionsResponse> getQuestionsResponseCall (@Path(\"ids\")long id),@Query(\"sort\")String votes,\n}", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "public interface ApiEndPointsAndPatameters {\n\t\n//\t/** Resource path for api resources */\n//\tString API_PREFIX = \"/api\";\n//\n\t/** Resource path for API version 1 */\n\tString API_VERSION_1 = \"/v1\";\n//\n//\t/** Resource path to get available power plants. */\n//\tString POWER_PLANT_PATH = \"/powerPlant\";\n//\n//\t/** Resource path to get power plant data for a given power plant id. */\n//\tString POWER_PLANT_DATA_PATH = \"/{id}\";\n//\n//\tString POWER_PLANT_DETAILS = \"/details\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_DAY = \"/sumByDay\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_WEEK = \"/sumByWeek\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_MONTH = \"/sumByMonth\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_YEAR = \"/sumByYear\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_HOUR_FORECAST = \"/nextHourForecast\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_DAY_FORECAST = \"/nextDayForecast\";\n//\n//\t/** Query parameter for filtering by start date. */\n//\tString QUERY_PARAMETER_START_DATE = \"startDate\";\n//\n//\t/** Query parameter for filtering by end date. */\n//\tString QUERY_PARAMETER_END_DATE = \"endDate\";\n//\n//\t/** Query parameter for filtering by power plant data type. */\n//\tString QUERY_PARAMETER_DATA_TYPE = \"dataType\";\n//\t\n//\t\n\t\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHENTICATION_ID = \"Authentication-ID\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_USER_PASSWORD = \"UserPassword\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHORISATION_ID = \"authorisation-id\";\n\t\n\t/** Resource path to get a list to the components a User has access to. */\n\tString USER_COMPONENT_LIST = \"/UserComponentLists\";\n\t\n\t/** Resource path to get a list of available resources for a component. */\n\tString DATA_LIST = \"/DataLists\";\n\t\n\t/** Resource path to authenticate. */\n\tString AUTHENTICATION = \"/authentication\";\n\t\n\t/** Resource path to logout. */\n\tString LOGOUT = \"/logout\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString COMPONENT_ID_PATH = \"/{cId}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString SIDE_PATH = \"/{side}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString TYPE_PATH = \"/{type}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString DATE_PATH = \"/{date}\";\n}", "private void dispatchRequests(RoutingContext context) {\n int initialOffset = 5; // length of `/api/`\n // Run with circuit breaker in order to deal with failure\n circuitBreaker.execute(future -> {\n getAllEndpoints().setHandler(ar -> {\n if (ar.succeeded()) {\n List<Record> recordList = ar.result();\n // Get relative path and retrieve prefix to dispatch client\n String path = context.request().uri();\n if (path.length() <= initialOffset) {\n notFound(context);\n future.complete();\n return;\n }\n\n String prefix = (path.substring(initialOffset).split(\"/\"))[0];\n String newPath = path.substring(initialOffset + prefix.length());\n\n // Get one relevant HTTP client, may not exist\n Optional<Record> client = recordList.stream()\n .filter(record -> record.getMetadata().getString(\"api.name\") != null)\n .filter(record -> record.getMetadata().getString(\"api.name\").equals(prefix))\n .findAny(); // simple load balance\n\n if (client.isPresent()) {\n doDispatch(context, newPath, discovery.getReference(client.get()).get(), future);\n } else {\n notFound(context);\n future.complete();\n }\n } else {\n future.fail(ar.cause());\n }\n });\n }).setHandler(ar -> {\n if (ar.failed()) {\n badGateway(ar.cause(), context);\n }\n });\n }", "public interface AllServiceAreaService {\n @GET(\"sarea/lists\")\n Call<List<AllServiceAreaRepo>> listRepos();\n}", "public interface ConnectService {\n\n @GET(\"/api/v1/categories\")\n void getCategories(\n @Query(\"parent_id\") int parentId,\n @Query(\"page\") int page,\n @Query(\"page_size\") int pageSize,\n Callback<Response<ArrayList<Category>>> callback\n );\n\n @GET(\"/api/v1/products\")\n void getProducts(\n @Query(\"category_id\") int categoryId,\n @Query(\"page\") int page,\n @Query(\"page_size\") int pageSize,\n Callback<Response<ArrayList<Product>>> callback\n );\n\n @GET(\"/api/v1/product\")\n void getProduct(\n @Query(\"product_id\") int productId,\n Callback<Response<Product>> callback\n );\n\n @POST(\"/api/v1/system/feedback\")\n void sendFeedback(\n @Query(\"content\") String content,\n @Query(\"contact\") String contact,\n Callback<Response> callback\n );\n\n @POST(\"/api/v1/system/contribute\")\n void contribute(\n @Query(\"title\") String title,\n @Query(\"contact\") String contact,\n Callback<Response> callback\n );\n}", "interface ApiService {\n\n @GET(\"users/{user}/repos\")\n Call<List<FlickR>> getFlickRItems(@Path(\"user\") String user);\n\n @GET(\"users/{user}\")\n Call<Owner> getFlickRMedia(@Path(\"user\") String user);\n\n }", "public interface ServiceApi\n{\n @GET(\"{list}\")\n Call<ResponseBody> request(@Path(\"list\") String postfix, @QueryMap HashMap<String, Object> params);\n}", "@Path(\"/index\")\n public void index(){\n }", "@Bean\r\n public Docket api() {\n\r\n return new Docket(DocumentationType.SWAGGER_2)\r\n .select()\r\n .apis(RequestHandlerSelectors.basePackage(\"com.varun.swaggerapp\"))\r\n .paths(PathSelectors.any())\r\n .build()\r\n .apiInfo(getMyAppInfo());\r\n }", "public interface GPAdimWS {\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.provincia\")\n Call<List<Provincia>> listProvincia();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.especialidad\")\n Call<List<Especialidad>> listEspecialidad();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.cobertura\")\n Call<List<Cobertura>> listCobertura();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.medico/byCoberturaProvinciaEspecialidad/{cobertura}/{provincia}/{especialidad}\")\n Call<List<Medico>> listMedico(@Path(\"cobertura\") String cobertura, @Path(\"provincia\") Long provincia, @Path(\"especialidad\") Long especialidad);\n @POST(\"webresources/com.gylgroup.gp.turno\")\n Call<Turno> createTurno(@Body Turno turno);\n}", "public interface AApi {\n //Post示例 http://www.apic.in/anime/33089.htm\n @GET(\"{type}/page/{page}/\")\n Observable<ResponseBody> getPosts(@Path(\"type\") String type, @Path(\"page\") int page);\n\n @GET(\"/{post}/{page}\")\n Observable<ResponseBody> getPictures(@Path(\"post\") String postUrl, @Path(\"page\") int page);\n\n}", "@Path(\"/api/khy\")\n@Produces(\"application/json\")\npublic interface LegaliteDysRESTApis {\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-durum-guncelle\")\n SimpleResponse belgeDurumGuncelle(BelgeDurumuModel belgeDurum);\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-al\")\n SimpleResponse belgeGonder(BelgeAlRestModel request);\n}", "public void configureRoutes() {\n Service http = Service.ignite();\n\n http.port( 6001 );\n\n http.after( ( (request, response) -> response.type(\"application/json\" ) ) );\n\n http.post( \"/accounts/authenticate\", this.authRoutes.authenticate );\n http.post( \"/restaurants/authenticate\", this.authRoutes.authenticateRestaurant );\n\n http.post( \"*\", (req, res) -> {\n res.status( HttpStatus.NOT_FOUND_404 );\n\n return \"{}\";\n } );\n }", "public interface APIEndpoints {\n\n @GET(\"user/{id}\")\n Call<User> getUser(@Path(\"id\") String userId);\n\n @GET(\"user\")\n Call<List<User>> getUsers();\n\n @POST(\"user\")\n Call<User> createUser(@Body User user);\n\n @PATCH(\"user/{id}\")\n Call<User> updateUser(@Body User user, @Path(\"id\") String userId);\n\n @DELETE\n Call<User> deleteUser(@Path(\"id\") String userID);\n\n @GET(\"challenge\")\n Call<List<Challenge>> getChallenges();\n\n @GET(\"challenge/{id}\")\n Call<Challenge> getChallenge(@Path(\"id\") String challengeID);\n\n @POST(\"challenge\")\n Call<User> createChallenge(@Body Challenge challenge);\n\n @PATCH(\"challenge/{id}\")\n Call<Challenge> updateChallenge(@Body Challenge challenge, @Path(\"id\") String challengeID);\n\n @DELETE\n Call<User> deleteChallenge(@Path(\"id\") String challengeID);\n\n @GET(\"issue\")\n Call<List<Issue>> getIssues();\n\n @GET(\"issue/{id}\")\n Call<Issue> getIssue(@Path(\"id\") String issueId);\n\n @POST(\"issue\")\n Call<Issue> createIssue(@Body Issue issue);\n\n @PUT(\"issue/{id}\")\n Call<Issue> updateIssue(@Body Issue issue, @Path(\"id\") String issueId);\n\n @DELETE(\"issue/{id}\")\n Call<Issue> deleteIssue(@Path(\"id\") String issueId);\n\n}", "public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}", "public interface BaiDuApis {\n\n /**\n * http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.search.common&query=%E7%88%B1%E6%88%91%E8%BF%98%E6%98%AF%E4%BB%96&page_size=30&page_no=1&format=xml\n */\n\n\n String Host = \"http://tingapi.ting.baidu.com/v1/restserver/\";\n String Method_search = \"baidu.ting.search.catalogSug\";\n //String Method_search = \"baidu.ting.search.common\";\n String Method_lrc=\"\";\n String Method_play = \"baidu.ting.song.play\";\n\n @GET(\"ting\")\n Flowable<BaiDuMusicSearchBean> fetchMusicListInfo(@Query(\"method\") String method, @Query(\"query\") String query);\n\n @GET(\"ting\")\n Flowable<BaiDuPlayBean> playMusicLink(@Query(\"method\") String method, @Query(\"songid\") String songId);\n}", "public interface apiService {\n\n\n\n String base_url= \"http://192.168.43.154:8081/\";\n\n @GET(\"getprofile\")\n Call<Employee> getProfilehero(@Query(\"racf\") String id,@Query(\"password\") String pass);\n\n @GET(\"getpeopleonleave\")\n Call<Datesss> getdetailsondate(@Query(\"date\") String d);\n\n @GET(\"authentication\")\n Call<Auth> getAuth(@Query(\"racf\") String d,@Query(\"password\") String dd);\n\n @GET(\"getleavedates\")\n Call<leaves> getleavedates(@Query(\"racf\") String d);\n\n @GET(\"getwfhdates\")\n Call<WorkFromHome> getwfhdates(@Query(\"racf\") String dd);\n\n @GET(\"updateno\")\n Call<Auth> updating(@Query(\"racf\") String d,@Query(\"contacts\") String dd,@Query(\"contactnames\") String ddd);\n\n @GET(\"updateworkfromhome\")\n Call<Auth> updatingwfh(@Query(\"racf\") String d,@Query(\"dates\") String dd,@Query(\"reasons\") String ddd);\n\n @GET(\"updateonleave\")\n Call<Auth> updatingleave(@Query(\"racf\") String d,@Query(\"date\") String dd,@Query(\"reason\") String ddd);\n\n\n}", "public interface RequestServiceMzitu {\n\n @GET(\"{number}\")\n Observable<String> getDetialData(@Path(\"number\") String number, @Query(\"time\") long time);\n\n @GET(\"page/{pageNumber}\")\n Observable<String> getIndexMoreData(@Path(\"pageNumber\") int pageNumber, @Query(\"time\") long time);\n\n @GET(UrlPath.BaseUrlRequestServiceMzitu)\n Observable<String> getIndexData(@Query(\"time\") long time);\n\n @GET(\"/tag/{path}\")\n Observable<String> getTagData(@Path(\"path\") String path, @Query(\"time\") long time);\n\n @GET(\"/tag/{path}/page/{pageNumber}\")\n Observable<String> getTagMoreData(@Path(\"path\") String path, @Path(\"pageNumber\") int pageNumber, @Query(\"time\") long time);\n}", "interface DeviceAPI {\n /**\n * Get the children of the device.\n *\n * @param device the device\n *\n * @return the children\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getChildrenOfDevice/{device}\")\n List<JsonDevice> childrenOf(@PathParam(\"device\") int device);\n\n /**\n * Get the SensorML description of the device.\n *\n * @param id the id\n *\n * @return the SensorML description\n */\n @GET\n @Produces(MediaType.APPLICATION_XML)\n @Path(\"getDeviceAsSensorML/{device}\")\n String getSensorML(@PathParam(\"device\") int id);\n\n /**\n * Get the list of all devices.\n *\n * @return the devices\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();\n\n /**\n * Get the device.\n *\n * @param device the id\n *\n * @return the device\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDevice/{device}\")\n JsonDevice byId(@PathParam(\"device\") int device);\n\n /**\n * Get all device categories.\n *\n * @return the device categories\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();\n\n /**\n * Get the device.\n *\n * @param urn the URN\n *\n * @return the device\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceByUrn/{urn}\")\n JsonDevice byURN(@PathParam(\"urn\") String urn);\n }", "@EndPoint\n@Path(\"/api\")\npublic interface DirAgent {\n\n @POST\n @Path(\"/i-directory\")\n @Address(Addr.Directory.ADD)\n JsonObject create(@BodyParam JsonObject body);\n\n @PUT\n @Path(\"/i-directory/:key\")\n @Address(Addr.Directory.UPDATE)\n JsonObject update(@PathParam(KName.KEY) String key, @BodyParam JsonObject body);\n\n @DELETE\n @Path(\"/i-directory/:key\")\n @Address(Addr.Directory.DELETE)\n JsonObject remove(@PathParam(KName.KEY) String key);\n}", "public Docket api( ) {\r\n\t\t return new Docket(DocumentationType.SWAGGER_2)\r\n\t .select()\r\n\t .apis(RequestHandlerSelectors.any())\r\n\t .paths(regex(\"/.*\"))\r\n\t .build().apiInfo(apiInfo());\r\n\t}", "@GetMapping(\"/all\")\n public List<Admin> getAll(){\n return adminService.getAll();\n }", "public interface APIEndpoint {\n\n @GET(\"/search?show-tags=keyword&show-elements=all&show-fields=headline%2CtrailText%2Cbody%2Cmain%2CcreationDate%2Cthumbnail&api-key=\" + Constant.APIKEY)\n Call<APIResponse> getLastestArticle(@Query(\"page\") int page);\n\n @GET(\"/search?show-tags=keyword&show-elements=all&show-fields=headline%2CtrailText%2Cbody%2Cmain%2CcreationDate%2Cthumbnail&page=1&page-size=5&api-key=\" + Constant.APIKEY)\n Call<APIResponse> getArticlesBySection(@Query(\"section\") String sectionId, @Query(\"from-date\") String fromDate, @Query(\"to-date\") String toDate);\n\n @GET(\"/search?show-tags=keyword&show-elements=all&show-fields=headline%2CtrailText%2Cbody%2Cmain%2CcreationDate%2Cthumbnail&page-size=10&api-key=\" + Constant.APIKEY)\n Call<APIResponse> getArticlesBySection(@Query(\"section\") String sectionId, @Query(\"page\") int page);\n\n @GET(\"/search?show-tags=keyword&show-elements=all&show-fields=headline%2CtrailText%2Cbody%2Cmain%2CcreationDate%2Cthumbnail&api-key=\" + Constant.APIKEY)\n Call<APIResponse> getArticleBySearch(@Query(\"q\") String searchQuery,@Query(\"page\") int page);\n\n @GET(\"/{id}?show-tags=keyword&show-elements=all&show-fields=headline%2CtrailText%2Cbody%2Cmain%2CcreationDate%2Cthumbnail&api-key=\" + Constant.APIKEY)\n Call<APIResponse> getArticle(@Path(\"id\") String ArticleId);\n\n @GET(\"/sections?show-tags=all&show-fields=trailText&page=1&page-size=5&api-key=\" + Constant.APIKEY)\n Call<Topic> getTopic();\n\n\n\n\n}", "public interface CategoryRestService {\n\n @GET(\"/category\")\n Call<List<SimpleCategoryDto>> listAllCategory();\n\n}", "@Bean\n\tpublic Docket api() {\n\t// @formatter:off\n return new Docket(DocumentationType.SWAGGER_2)\n // 為了顯示 CompletableFuture 內的 DTO 描述\n .genericModelSubstitutes(ResponseEntity.class, CompletableFuture.class)\n .apiInfo(this.apiInfo())\n .select()\n .apis(RequestHandlerSelectors.any())\n // 濾掉預設的與監控路徑\n .paths(\n path -> {\n return !(path.matches(\"/error\")\n || path.matches(\"/actuator+(.*)\")\n || path.matches(\"/profile\"));\n })\n .build();\n // @formatter:on\n\t}", "@Bean\n public Docket api() {\n return new Docket(DocumentationType.SWAGGER_2)\n .groupName(groupName)\n .select()\n .apis(RequestHandlerSelectors.basePackage(basePackage))\n .paths(PathSelectors.any())\n .build()\n .enable(enable)\n .apiInfo(apiInfo());\n }", "public interface TappMarketService {\n\n @GET(\"product-categories\")\n Call<List<Category>> getCategories();\n\n @GET(\"product-categories/{id}\")\n Call<JsonObject> getSubcategoriesJsonObject(\n @Path(\"id\") String id);\n\n @GET(\"product-categories/{id}\")\n Call<Subcategory> getSubcategories(\n @Path(\"id\") String id);\n\n @GET(\"product-categories/{id}\")\n Call<ProductList> getProducts(\n @Path(\"id\") String id);\n\n}", "@Override\n @Transactional\n public List getAll() {\n return routDAO.getAll();\n }", "public interface Swapi {\n\n @GET(\"/planets/{id}/\")\n Observable<Planet> planet(@Path(\"id\") int id);\n\n @GET(\"/planets/\")\n Observable<Page<Planet>> planets();\n\n @GET(\"/planets/\")\n Observable<Page<Planet>> planets(@Query(\"page\") int page);\n\n\n @GET(\"/people/{id}/\")\n Observable<People> people(@Path(\"id\") int id);\n\n @GET(\"/people/\")\n Observable<Page<People>> peoples();\n\n @GET(\"/people/\")\n Observable<Page<People>> peoples(@Query(\"page\") int page);\n\n @GET(\"/vehicles/{id}/\")\n Observable<Vehicle> vehicle(@Path(\"id\") int id);\n\n @GET(\"/vehicles/\")\n Observable<Page<Vehicle>> vehicles();\n\n @GET(\"/vehicles/\")\n Observable<Page<Vehicle>> vehicles(@Query(\"page\") int page);\n\n @GET(\"/starships/{id}/\")\n Observable<Starship> starship(@Path(\"id\") int id);\n\n @GET(\"/starships/\")\n Observable<Page<Starship>> starships();\n\n @GET(\"/starships/\")\n Observable<Page<Starship>> starships(@Query(\"page\") int page);\n\n\n}", "List<RouteBean> findAll();", "public interface Service {\n\n @GET(\"movie/{sub_type}\")\n Call<MovieResponse> getMovie(@Path(\"sub_type\")String sub_type, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"tv/{sub_type}\")\n Call<TvShowResponse> getTvShow(@Path(\"sub_type\")String sub_type, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"movie/{movie_id}/recommendations\")\n Call<MovieResponse> getMovieRecommendations(@Path(\"movie_id\")int movie_id,@Query(\"api_key\")String api_key, @Query(\"language\")String language,@Query(\"page\")int page);\n\n @GET(\"tv/{tv_id}/recommendations\")\n Call<TvShowResponse> getTvShowRecommendations(@Path(\"tv_id\")int tv_id, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"search/movie\")\n Call<MovieResponse> getMovieSearch(@Query(\"query\")String query,@Query(\"api_key\")String api_key, @Query(\"language\")String language,@Query(\"page\")int page);\n\n @GET(\"search/tv\")\n Call<TvShowResponse> getTvShowSearch(@Query(\"query\")String query, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n}", "public interface ApiService {\n\n @GET(\"classify\")\n Call<GalleryClassResult> getGalleryClassList();\n\n @GET(\"list\")\n Call<GalleryResult> getGalleryList(@Query(\"page\") int page, @Query(\"rows\") int rows, @Query(\"id\") int id);\n\n @GET(\"show\")\n Call<PictureResult> getPictureList(@Query(\"id\") long id);\n\n}", "@GET\n @Path(\"/\")\n @Produces(\"application/json\")\n public Response all() {\n // Return some cliched textual content\n return Response.ok(\"clients list goes here\", MediaType.APPLICATION_JSON).build();\n }", "public interface ApiEtherchain {\n\n @GET(\"api/blocks/count\")\n Observable<BlockCount> totalBlockCount();\n\n @GET(\"api/blocks/{offset}/{count}\")\n Observable<List<Block>> blocks(@Path(\"offset\") int offset, @Path(\"count\") int count);\n}", "public interface RequestServes {\n @GET(\"PlayVideo/{firstVideoId}\")\n Call<JsonElement> getPlayVideo(@Path(\"firstVideoId\") String firstVideoId);\n @GET\n Call<JsonElement> getData(@Url String url);\n @GET(\"{test}\")\n Call<ResponseBody> getString(@Path(\"test\") String test);\n\n @GET(\"users/{user}/repos\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user);\n\n}", "protected abstract String getBaseEndpointPath();", "private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n }", "public interface ArticleService {\n @GET(Port.GET_ARTICLE + \"/page/{page}/id/{id}\")\n Call<List<Article>> getArticleList(@Path(\"page\") String page, @Path(\"id\") String id);\n\n @GET(Port.TIME_LINE + \"/page/{page}\")\n Call<List<Article>> getTimeLine(@Path(\"page\") String page);\n}", "public interface ApiService {\n\n\n public static final String BASE_URL = \"http://112.124.22.238:8081/course_api/cniaoplay/\";\n\n// @GET(\"featured\")\n// public Call<PageBean<AppInfo>> getApps(@Query(\"p\") String jsonParam);\n\n @GET(\"featured\")\n public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query(\"p\") String jsonParam);\n\n}", "public interface ApiService {\n @GET(\"MainQuize.json\")//list\n Call<MainQuizeDao> loadPhotoList();\n}", "private List<Route> getRoutesFromContext() {\n Set<RequestMappingInfo> requestMappingInfos = requestMappingHandlerMapping.getHandlerMethods().keySet();\n List<Route> routes = new LinkedList<>();\n for (RequestMappingInfo handlerMethod : requestMappingInfos) {\n Set<String> patterns = handlerMethod.getPatternsCondition().getPatterns();\n for (String pattern : patterns) {\n Method method = requestMappingHandlerMapping.getHandlerMethods().get(handlerMethod).getMethod();\n routes.add(new Route(pattern, method));\n }\n }\n return routes;\n }", "@GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);", "public interface RestApis {\n\n @POST(Constants.ApiMethods.REGISTER_URL)\n Call<RegisterResponse> registerUser(@Body RegisterRequest aRegisterRequest);\n\n @POST(Constants.ApiMethods.LOGIN_URL)\n Call<LoginResponse> loginUser(@Body LoginRequest aRequest);\n\n @GET(Constants.ApiMethods.USER_LIST_URL)\n Call<BaseResponse<List<UserModel>>> getUserList(@Query(\"page\") int pageId);\n\n @GET(Constants.ApiMethods.ALBUM_LIST_URL)\n Call<List<AlbumModel>> getAlbumList();\n\n}", "@ApiOperation(value = \"/get_all_Daddy\", httpMethod = \"GET\",notes = \"special search that gets all values of Daddy\",response = Daddy.class)\n\t@ApiResponses(value = {\n\t\t@ApiResponse(code = 200, message = NewpMuSwaggerUIConstants.SUCCESS),\n\t @ApiResponse(code = 404, message = NewpMuSwaggerUIConstants.NOT_FOUND),\n\t @ApiResponse(code = 500, message = NewpMuSwaggerUIConstants.INTERNAL_SERVER_ERROR),\n\t @ApiResponse(code = 400, message = NewpMuSwaggerUIConstants.BAD_REQUEST),\n\t @ApiResponse(code = 412, message = NewpMuSwaggerUIConstants.PRE_CONDITION_FAILED) })\n\n\n\t@RequestMapping(method = RequestMethod.GET,value = \"/get_all_Daddy\" ,headers=\"Accept=application/json\")\n @ResponseBody\n\tpublic List<Daddy> get_all_Daddy() throws Exception {\n\n\t\tlog.setLevel(Level.INFO);\n\t log.info(\"get_all_Daddy controller started operation!\");\n\n\t\tList<Daddy> Daddy_list = new ArrayList<Daddy>();\n\n\t\tDaddy_list = Daddy_Default_Activity_service.get_all_daddy();\n\n\t\tlog.info(\"Object returned from get_all_Daddy method !\");\n\n\t\treturn Daddy_list;\n\n\n\t}", "org.naru.park.ParkController.CommonAction getAll();", "org.naru.park.ParkController.CommonAction getAll();", "List<Route> getAllRoute();", "public interface RequestAPI {\n @GET(\"group\")\n Call<ListWeatherDTO> getDataWeather(@Query(\"id\") String id,\n @Query(\"appid\") String appId);\n\n @GET(\"weather\")\n Call<WeatherDTO> getDataByLocation(@Query(\"lat\") double lat,\n @Query(\"lon\") double lon,\n @Query(\"appid\") String appId);\n}", "public interface ApiServices {\n @GET(\"/api/jadwal-bioskop\")\n Observable<ListKota> getListKota();\n\n @GET(\"/api/jadwal-bioskop\")\n Observable<JadwalBioskop> getjadwalBioskop(@Query(\"id\") int id);\n}", "public interface AppAPI {\n\n @GET(\"weather\")\n Call<WeatherInfo> getCurrentWeather(@Query(\"id\") long cityId,\n @Query(\"units\") String units,\n @Query(\"appid\") String appId);\n\n @GET(\"forecast\")\n Call<Forecast> getForecast3hrs(@Query(\"id\") long cityId,\n @Query(\"units\") String units,\n @Query(\"appid\") String appId);\n\n @GET(\"find\")\n Call<CityResult> findCity(@Query(\"q\") String cityName,\n @Query(\"type\") String type,\n @Query(\"sort\") String sort,\n @Query(\"cnt\") int cnt,\n @Query(\"appid\") String appId);\n}", "interface PlatformAPI {\n /**\n * Get all platforms.\n *\n * @return the platforms\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllRootItems\")\n List<JsonDevice> all();\n\n /**\n * Get all platform types.\n *\n * @return the platform types\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();\n }", "public interface RequestService {\n //http://gank.io/api/data/Android/10/1\n /*@GET(\"api/data/Android/10/1\")\n Call<ResponseBody> getAndroidInfo();*/\n @GET(\"api/data/Android/10/1\")\n Call<GankBean> getAndroidInfo();\n @GET(\"api/data/Android/10/{page}\")\n Call<GankBean> getAndroidInfo(@Path(\"page\") int page);\n @GET(\"api/data/query?cityname=深圳\")\n Call<ResponseBody> getWeather(@Query(\"key\") String key,@Query(\"area\") String area);\n @GET(\"group/{id}/users\")\n Call<List<User2>> groupList(@Field(\"id\") int groupId, @QueryMap Map<String,String> options);\n @GET\n Call<GankBean> getAndroid2Info(@Url String url);\n\n}", "public interface ApiService {\n\n @GET(\"datacatalog?format=json\")\n Call<Catalog> getTopCatalog();\n\n\n/* @GET(\"item/{storyid}.json\")\n Call<StoryResponse> getStoryDetails(@Path(\"storyid\") String storyid);\n\n @GET(\"autocomplete/json\")\n Call<AutoCompleteGooglePlaces> getAutoCompleteResults(@Query(\"key\") String API_KEY,\n @Query(\"input\") String encode);\n\n @GET(\"nearbysearch/json\")\n Call<GetPlacesResponse> getPlaceDetails(@Query(\"location\") String location,\n @Query(\"radius\") int radius,\n @Query(\"key\") String key);*/\n}", "public interface ServerApi {\n @GET(\"qqluck/query\")\n Call<Qq> getQq1(@Query(\"appkey\")String appkey, @Query(\"qq\") String qq);//第一种查询方法\n\n\n @GET(\"qqluck/query\")\n Call<Qq> getQq2(@QueryMap Map<String,String> map);//第二种查询方法\n @GET(\"qqluck/{q}\")\n Call<Qq> getQq3(@Path(\"q\") String q,@QueryMap Map<String,String> map);\n}", "@Bean\n\tpublic Docket postApi() {\n\t\treturn new Docket(DocumentationType.SWAGGER_2)\n\t\t\t\t.apiInfo(metadata()).select().paths(regex(\"/api.*\")).build();\n\t}", "public interface ApiService {\r\n\r\n /* Patient*/\r\n @POST(\"patient/login/{username}/{password}\")\r\n Call<Patient> login(@Path(\"username\") String username, @Path(\"password\") String password);\r\n\r\n @POST(\"patient/register\")\r\n Call<Integer> register(@Body Patient patient);\r\n\r\n @POST(\"patient/updateProfile\")\r\n Call<Patient> updateProfile(@Body Patient patient);\r\n\r\n @GET(\"patient/findProfile/{id}\")\r\n Call<Patient> findPatient(@Path(\"id\") String id);\r\n\r\n @Multipart\r\n @POST(\"patient/uploadImage/{patId}\")\r\n Call<Patient> uploadImage(@Part MultipartBody.Part image, @Path(\"patId\") String patId);\r\n\r\n @POST(\"patient/changePassword/{patId}/{oldPass}/{newPass}\")\r\n Call<Boolean> changePassword(@Path(\"patId\") String patId , @Path(\"oldPass\") String oldPass ,@Path(\"newPass\") String newPass);\r\n\r\n @POST(\"patient/forgetPass/send/{email}\")\r\n Call<String> sendEmail(@Path(\"email\") String email );\r\n\r\n /* Record*/\r\n @POST(\"record/create\")\r\n Call<Boolean> createRecord(@Body Record record);\r\n\r\n @GET(\"record/find/{recDate}/{recRound}/{patId}\")\r\n Call<String> findRecId(@Path(\"recDate\") String recDate, @Path(\"recRound\") int round, @Path(\"patId\") String patId);\r\n\r\n @GET(\"record/find/diaTime/{id}\")\r\n Call<List<Record>> findDateAndRound(@Path(\"id\") String id);\r\n\r\n @GET(\"record/find/date/{id}/{month}\")\r\n Call<List<Record>> findRecordByByte(@Path(\"id\") String id, @Path(\"month\") int month);\r\n\r\n @GET(\"record/delete/{id}\")\r\n Call<Record> deleteRecord(@Path(\"id\") String id);\r\n\r\n /* Dialysis*/\r\n @POST(\"dialysis/createDiaIn\")\r\n Call<Void> createDialysis(@Body Dialysis dialysis);\r\n\r\n @GET(\"dialysis/find/dia/{recId}\")\r\n Call<Dialysis> findDialysis(@Path(\"recId\") String recId);\r\n\r\n @POST(\"dialysis/updateDiaInEnd/{record_recId_fk}\")\r\n Call<Void> updateDiaInEnd(@Body Dialysis dialysis, @Path(\"record_recId_fk\") String recId);\r\n\r\n @POST(\"dialysis/updateDiaOutSta/{record_recId_fk}\")\r\n Call<Void> updateDiaOutSta(@Body Dialysis dialysis, @Path(\"record_recId_fk\") String recId);\r\n\r\n @POST(\"dialysis/updateDiaOutEnd/{record_recId_fk}\")\r\n Call<Void> updateDiaOutEnd(@Body Dialysis dialysis ,@Path(\"record_recId_fk\") String recId);\r\n\r\n @GET(\"dialysis/findAll/{recDate}/{patId}\")\r\n Call <List<Dialysis>> findAll(@Path(\"recDate\") String recDate , @Path (\"patId\") String patId);\r\n\r\n @GET(\"dialysis/find/{id}\")\r\n Call<Dialysis> find(@Path(\"id\") String id);\r\n\r\n @GET(\"dialysis/delete/{id}\")\r\n Call<Dialysis> deleteDialysis(@Path(\"id\") String id);\r\n\r\n\r\n @POST(\"patient/uploadImage\")\r\n Call<Patient> uploadImage(@Part MultipartBody.Part image, @Body Patient patient);\r\n\r\n @GET(\"appointment/find/{patId}\")\r\n Call<List<Appointment>> findAppointment(@Path(\"patId\") String id);\r\n\r\n\r\n @GET (\"food/find/{typeId}\")\r\n Call<List<Food>> findFoodByTypeId(@Path(\"typeId\") String typeId);\r\n\r\n @GET(\"doctor/find/hospName\")\r\n Call<List<String>> findHospName();\r\n\r\n @POST (\"record/food/{foodId}/{unit}/{patId}\")\r\n Call<RecordFood> save(@Path(\"foodId\") String foodId, @Path(\"unit\") int unit,@Path(\"patId\") String patId);\r\n\r\n @POST (\"record/food/{foodId}/{recFoodId}/{unit}/{total}\")\r\n Call<RecordFood> updateRecordFood(@Path(\"foodId\") String foodId,@Path(\"recFoodId\") String recFoodId,@Path(\"unit\") int unit,@Path(\"total\") String total);\r\n\r\n @POST (\"food/find/food\")\r\n Call<List<Food>> findFoodByFoodId(@Body List<recAllFood> recAllFood);\r\n\r\n @GET (\"find/recAllFood/{patId}\")\r\n Call<List<recAllFood>> findFoodByPatId(@Path (\"patId\") String patId);\r\n\r\n @GET (\"record/food/find/{patId}\")\r\n Call<RecordFood> findTotal(@Path (\"patId\") String patId);\r\n\r\n @POST (\"recordFood/delete\")\r\n Call<Void> deleteFood(@Body recAllFood recAllFood);\r\n\r\n @GET (\"blood/input/{potass}/{phos}/{alb}/{patId}\")\r\n Call <BloodSample> inputBloodSample (@Path(\"potass\") float potass, @Path(\"phos\") float phos,\r\n @Path(\"alb\") float alb, @Path(\"patId\") String patId);\r\n\r\n @GET (\"blood/input/fix/{gPotass}/{gPhos}/{gAlb}/{patId}\")\r\n Call <BloodSample> fixBloodSample (@Path(\"gPotass\") String gPotass, @Path(\"gPhos\") String gPhos,\r\n @Path(\"gAlb\") String gAlb, @Path(\"patId\") String patId);\r\n\r\n @GET (\"blood/input/fix/{patId}\")\r\n Call <BloodSample> findBloodSample (@Path(\"patId\") String patId);\r\n\r\n /* Noti*/\r\n @GET(\"noti/find/{patId}\")\r\n Call<List<DialysisAlarm>> findNotiList(@Path(\"patId\") String patId);\r\n\r\n @POST(\"noti/save\")\r\n Call<DialysisAlarm> saveNoti(@Body DialysisAlarm alarm);\r\n\r\n @POST(\"patient/noti/graph/one/{patId}\")\r\n Call<Void> setNotiGraphOne(@Path(\"patId\") String patId);\r\n\r\n @POST(\"patient/noti/graph/zero/{patId}\")\r\n Call<Void> setNotiGraphZero(@Path(\"patId\") String patId);\r\n\r\n @GET(\"appointment/find/orderBy/{patId}\")\r\n Call<List<Appointment>> findAppointmentSort(@Path(\"patId\") String id);\r\n\r\n @GET(\"doctor/find/one/{doctorId}\")\r\n Call<Doctor> findHospname(@Path(\"doctorId\") String doctorId);\r\n\r\n @GET(\"patient/find/list/hosp\")\r\n Call<List<String>> findHospital();\r\n\r\n @POST(\"doctor/find/list\")\r\n Call<List<Doctor>> findByDocHospName(@Body Patient patient);\r\n}", "public interface IPokeapiService {\n\n\n\n// @GET(\"lp_iem/result.json\")\n// Call<PokemonWs> listPokemon();\n\n @GET(\"?action=cardlist&\")\n Call<List<Pokemon>> listPokemon(@Query(\"user\")int user);\n //@Query(\"user\")int user\n\n @GET(\"?action=details&\")\n Call<Pokemon> getPokemon(@Query(\"card\")int id_card);\n\n @GET(\"?action=pokedex\")\n Call<List<Pokemon>> getPokedex();\n\n}", "public interface ApiService {\n @GET(\"questcms/floorplan\")\n Call<List<FloorPlan>> listFloorPlan();\n}", "public interface RestApi {\n @GET(\"house_list\")\n Call<List<HouseInfo>> getHouseInfoList();\n\n @POST(\"landlordLogin\")\n Call<Landlord> landlordLogin(\n @Body Landlord landlord\n );\n\n @POST(\"landlordUpdate\")\n Call<Landlord> landlordUpdate(\n @Body Landlord landlord\n );\n\n @POST(\"incrementViewCount\")\n Call<RestHttpResponse> incrementViewCount(\n @Body HouseInfo houseInfo\n );\n\n @POST(\"tenantLogin\")\n Call<Tenant> tenantLogin(\n @Body Tenant tenant\n );\n\n @POST(\"tenantUpdate\")\n Call<Tenant> tenantUpdate(\n @Body Tenant tenant\n );\n\n @POST(\"search_house_list\")\n Call<List<HouseInfo>> getSearchHouseInfoList(@Body HouseSchCri criteria);\n\n @POST(\"getFavoriteList\")\n Call<List<HouseInfo>> getFavoriteList(@Body List<Favorite> favoriteList);\n\n}", "public interface FolderResource {\n\n @POST\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder\")\n Response create(FolderDTO folderDTO) throws Exception;\n\n @GET\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder\")\n Response get(@QueryParam(\"folderId\") Long id) throws Exception;\n\n @DELETE\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder\")\n Response delete(@QueryParam(\"folderId\") Long id) throws Exception;\n\n @GET\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @Path(\"/mail/folder/list\")\n Response list(@QueryParam(\"userLogin\") String login) throws Exception;\n\n}", "public interface Apiservers {\n\n @GET(\"pm/interfacesManager.do?method=getSafeUserLogin\")\n Observable<Loginbeen> getData(@Query(\"loginname\") String loginname, @Query(\"password\") String password, @Query(\"appName\") String appName);\n\n // http://aqbj.cscec2b.cn:5003/pm/pm/interfacesManager.do?method=getSafeUserLogin&loginname=aqzjj&password=4321&appName=cscec2bsafe\n @GET(\"v4/categories/videoList\")\n Observable<MoviceBeen> getmovice(@Query(\"id\") String loginname);\n// http://baobab.kaiyanapp.com/api/v4/categories/videoList?id=36\n// @GET(\"v4/categories/videoList\")\n// Observable<T> getCategoryItemList(@Query(\"id\") Long id);\n//\n// @GET(\"v4/categories/detail/tab?\")\n// Observable<T> gettabdetail(@Query(\"id\") Long id);\n//// http://baobab.wandoujia.com/api/v2/feed?num=2&udid=26868b32e808498db32fd51fb422d00175e179df&vc=83\n// @GET(\"v2/feed\")\n// Observable<AusleseBeen> getdeatail(@Query(\"num\") int num, @Query(\"udid\") String udid, @Query(\"vc\") int vc);\n//\n//// http://baobab.kaiyanapp.com/api/v1/search?num=10&query=xxx&start=10\n// @GET(\"v1/search\")\n// Observable<Seachbeen> getseach(@Query(\"num\") int num, @Query(\"query\") String meesage, @Query(\"start\") int start);\n//\n//// http://baobab.kaiyanapp.com/api/v4/categories/detail/tab?id=36//分类详情\n// @GET(\"v4/categories/detail/tab\")\n// Observable<Classificationbeen> getclassification(@Query(\"id\") int id);\n//\n// @POST(\"v4\")\n// Observable<T> post(@Field(\"data\") String data);\n\n\n}", "public interface SensorAPI {\n\n /**\n * Get the sensor output API.\n *\n * @return the API\n */\n @Path(\"sensorOutputs\")\n SensorOutputAPI sensorOutputs();\n\n /**\n * Get the device API.\n *\n * @return the API\n */\n @Path(\"device\")\n DeviceAPI devices();\n\n /**\n * Get the platform API.\n *\n * @return the API\n */\n @Path(\"platforms\")\n PlatformAPI platforms();\n\n /**\n * JAX-RS interface for the sensor output resource.\n */\n interface SensorOutputAPI {\n /**\n * Get the outputs of the device\n *\n * @param device the device\n *\n * @return the outputs\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceSensorOutputs/{device}\")\n List<JsonSensorOutput> byDevice(@PathParam(\"device\") int device);\n }\n\n /**\n * JAX-RS interface for the device resource.\n */\n interface DeviceAPI {\n /**\n * Get the children of the device.\n *\n * @param device the device\n *\n * @return the children\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getChildrenOfDevice/{device}\")\n List<JsonDevice> childrenOf(@PathParam(\"device\") int device);\n\n /**\n * Get the SensorML description of the device.\n *\n * @param id the id\n *\n * @return the SensorML description\n */\n @GET\n @Produces(MediaType.APPLICATION_XML)\n @Path(\"getDeviceAsSensorML/{device}\")\n String getSensorML(@PathParam(\"device\") int id);\n\n /**\n * Get the list of all devices.\n *\n * @return the devices\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();\n\n /**\n * Get the device.\n *\n * @param device the id\n *\n * @return the device\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDevice/{device}\")\n JsonDevice byId(@PathParam(\"device\") int device);\n\n /**\n * Get all device categories.\n *\n * @return the device categories\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();\n\n /**\n * Get the device.\n *\n * @param urn the URN\n *\n * @return the device\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceByUrn/{urn}\")\n JsonDevice byURN(@PathParam(\"urn\") String urn);\n }\n\n /**\n * JAX-RS interface for the platform resource.\n */\n interface PlatformAPI {\n /**\n * Get all platforms.\n *\n * @return the platforms\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllRootItems\")\n List<JsonDevice> all();\n\n /**\n * Get all platform types.\n *\n * @return the platform types\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();\n }\n\n}", "public interface PacienteService {\n @GET(\"/paciente\")\n void getAllPatients(Callback<List<Paciente>> cb);\n\n @GET(\"/paciente/{pacienteIdTel}/\")\n void getPatientId(@Path(\"pacienteIdTel\") String id, Callback<Paciente> cb);\n\n @GET(\"/paciente/tutor/{tutorId}/\")\n void getPatientByTutor(@Path(\"tutorId\") int id, @Header(\"ACCESS_TOKEN\") String token, Callback<List<Paciente>> cb);\n}", "private void setupEndpoints() {\n\t\tpost(API_CONTEXT + \"/users\", \"application/json\", (request, response) -> {\n\t\t\t//response.status(201);\n\t\t\treturn userService.createNewUser(request.body());\n\t\t}, new JsonTransformer());\n\t\t\n\t\tpost(API_CONTEXT + \"/login\", \"application/json\", (request, response) -> {\n\t\t\t//response.status(201);\n\t\t\treturn userService.find(request.body());\n\t\t}, new JsonTransformer());\n\t\t\n\t\tput(API_CONTEXT + \"/users\", \"application/json\", (request, response)\n\t\t\t\t-> userService.update(request.body()), new JsonTransformer());\n\t\t\n\t\tdelete(API_CONTEXT + \"/users/:email\", \"application/json\", (request, response)\n\t\t\t\t-> userService.deleteUser(request.params(\":email\")), new JsonTransformer());\n\n\t}", "public interface TypiCodeServices {\n @GET(\"/photos\")\n Call<ArrayList<Model>> data();\n}", "public interface ApiService {\n\n\n //--------------------------------------------Movies------------------------------------------------------------------------------\n\n @GET(\"discover/movie?\" + ApiConstants.ApiKey)\n Call<MovieModel> getMoviesByGenre(@Query(\"with_genres\") String genre,@Query(\"page\") int page);\n\n @GET(\"discover/movie?\" + ApiConstants.ApiKey)\n Call<MovieModel> getMoviesByYear(@Query(\"primary_release_year\") int year,@Query(\"page\") int page);\n\n @GET(\"movie/{popular}?\" + ApiConstants.ApiKey)\n Call<MovieModel> getMovies(@Path(\"popular\")String popular,@Query(\"page\") int page);\n\n @GET(\"movie/{movie_id}?\" + ApiConstants.ApiKey)\n Call<Movie> getMovie(@Path(\"movie_id\") int link,@Query(\"append_to_response\")String credits);\n\n @GET(\"movie/{movie_id}/credits?\" + ApiConstants.ApiKey)\n Call<CreditsModel> getMovieCredits(@Path(\"movie_id\") int link);\n\n @GET(\"genre/movie/list?\" + ApiConstants.ApiKey)\n Call<GenresModel> getGenres();\n\n @GET(\"movie/{movie_id}/\" + \"similar?\" + ApiConstants.ApiKey)\n Call<MovieModel> getSimilar(@Path(\"movie_id\") int link);\n\n @GET(\"movie/{movie_id}/\" + \"videos?\" + ApiConstants.ApiKey)\n Call<VideoModel> getVideo(@Path(\"movie_id\") int link);\n\n @GET(\"search/movie?\" + ApiConstants.ApiKey)\n Call<MovieModel> getSearchMovie(@Query(\"query\") String query);\n\n @GET(\"movie/{movie_id}/images?\" + ApiConstants.ApiKey)\n Call<ImageModel> getMovieImages(@Path(\"movie_id\") int link);\n\n @GET(\"movie/{movie_id}/reviews?\" + ApiConstants.ApiKey)\n Call<ReviewsModel> getMovieReviews(@Path(\"movie_id\") int link);\n\n //--------------------------------------------Shows------------------------------------------------------------------------------\n @GET(\"genre/tv/list?\" + ApiConstants.ApiKey)\n Call<GenresModel> getTVGenres();\n\n @GET(\"discover/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getTVByGenre(@Query(\"with_genres\") String genre,@Query(\"page\") int page);\n\n @GET(\"discover/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getTVByNetwork(@Query(\"with_networks\") int id,@Query(\"page\") int page);\n\n @GET(\"discover/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getTVByYear(@Query(\"primary_release_year\") int year,@Query(\"page\") int page);\n\n @GET(\"tv/{tv_id}?\" + ApiConstants.ApiKey)\n Call<Shows> getShows(@Path(\"tv_id\") int link ,@Query(\"append_to_response\")String credits);\n\n @GET(\"tv/{shows}?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getShows(@Path(\"shows\")String shows,@Query(\"page\") int page);\n\n @GET(\"search/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getSearchShows(@Query(\"query\") String query);\n\n @GET(\"tv/{tv_id}/\" + \"videos?\" + ApiConstants.ApiKey)\n Call<VideoModel> getShowVideo(@Path(\"tv_id\") int link);\n\n @GET(\"tv/{tv_id}/\" + \"similar?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getSimilarShows(@Path(\"tv_id\") int link);\n\n @GET(\"tv/{tv_id}/credits?\" + ApiConstants.ApiKey)\n Call<CreditsModel> getShowCredits(@Path(\"tv_id\") int link);\n\n @GET(\"tv/{tv_id}/images?\" + ApiConstants.ApiKey)\n Call<ImageModel> getShowsImages(@Path(\"tv_id\") int link);\n\n\n //--------------------------------------------Person------------------------------------------------------------------------------\n\n @GET(\"person/popular?\" + ApiConstants.ApiKey)\n Call<PersonModel> getPopularPeople(@Query(\"page\") int page);\n\n @GET(\"person/{person_id}/\" + \"movie_credits?\" + ApiConstants.ApiKey)\n Call<CreditsModel> getPersonCredits(@Path(\"person_id\") int link);\n\n @GET(\"person/{person_id}?\" + ApiConstants.ApiKey)\n Call<Person> getPerson(@Path(\"person_id\") int link);\n\n @GET(\"search/person?\" + ApiConstants.ApiKey)\n Call<PersonModel> getSearchPerson(@Query(\"query\") String query);\n\n //--------------------------------------------Login------------------------------------------------------------------------------\n\n @GET(\"authentication/{guest_session}/new?\" + ApiConstants.ApiKey)\n Call<User> getGuestUser(@Path(\"guest_session\")String guest);\n\n @GET(\"authentication/token/validate_with_login?\" + ApiConstants.ApiKey)\n Call<User> getValidateUser(@Query(\"username\") String username,@Query(\"password\") String password,@Query(\"request_token\")String request_token);\n\n @GET(\"authentication/session/new?\" + ApiConstants.ApiKey)\n Call<User> getUserSession(@Query(\"request_token\") String reques_token);\n\n @GET(\"account?\" + ApiConstants.ApiKey)\n Call<User> getUserDetails(@Query(\"session_id\") String session_id);\n\n //--------------------------------------------Favorites------------------------------------------------------------------------------\n\n @GET(\"account/{account_id}/favorite/movies?\" + ApiConstants.ApiKey)\n Call<MovieModel> getUserFavorites(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"movie/{movie_id}/\" + \"account_states?\" + ApiConstants.ApiKey)\n Call<Movie> getFavorites(@Path(\"movie_id\") int link,@Query(\"session_id\")String session_id);\n\n @POST(\"account/{account_id}/favorite?\" + ApiConstants.ApiKey)\n Call<Movie> postUserFavorites(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body FavoriteMoviePost body);\n\n @POST(\"account/{account_id}/favorite?\" + ApiConstants.ApiKey)\n Call<Shows> postUserShowFavorites(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body FavoriteMoviePost body);\n\n @GET(\"account/{account_id}/favorite/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getUserShowsFavorites(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"tv/{tv_id}/\" + \"account_states?\" + ApiConstants.ApiKey)\n Call<Shows> getShowFavorite(@Path(\"tv_id\") int link,@Query(\"session_id\")String session_id);\n\n //--------------------------------------------Watchlist------------------------------------------------------------------------------\n\n @GET(\"account/{account_id}/watchlist/movies?\" + ApiConstants.ApiKey)\n Call<MovieModel> getUserWatchlist(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"movie/{movie_id}/\" + \"account_states?\" + ApiConstants.ApiKey)\n Call<Movie> getWatchlist(@Path(\"movie_id\") int link,@Query(\"session_id\")String session_id);\n\n @POST(\"account/{account_id}/watchlist?\" + ApiConstants.ApiKey)\n Call<Movie> postUserWatchlist(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body WatchlistMoviePost body);\n\n @POST(\"account/{account_id}/watchlist?\" + ApiConstants.ApiKey)\n Call<Shows> postUserShowWatchlist(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body WatchlistMoviePost body);\n\n @GET(\"account/{account_id}/watchlist/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getUserShowsWatchlist(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n //--------------------------------------------Rated------------------------------------------------------------------------------\n\n @POST(\"movie/{movie_id}/rating?\" + ApiConstants.ApiKey)\n Call<Movie> postUserRating(@Path(\"movie_id\") int account_id, @Query(\"session_id\") String session_id,@Body Rated body);\n\n @POST(\"tv/{tv_id}/rating?\" + ApiConstants.ApiKey)\n Call<Shows> postUserShowRating(@Path(\"tv_id\") int account_id, @Query(\"session_id\") String session_id,@Body Rated body);\n\n @GET(\"account/{account_id}/rated/movies?\" + ApiConstants.ApiKey)\n Call<MovieModel> getUserRated(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"account/{account_id}/rated/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getUserRatedShows(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n}", "public interface RequestApi {\n @GET(\"Api/getAppSettings\")\n Observable<NetResult<BAppSettings>> getAppSettings();\n\n @GET(\"User/checkIDCard\")\n Observable<NetResult> checkIDCard(@QueryMap Map<String, Object> map);\n\n @GET(\"User/regist\")\n Observable<UserResp> regist(@Query(\"userName\") String userName, @Query(\"password\") String password);\n\n @GET(\"User/login\")\n Observable<UserResp> login(@Query(\"userName\") String userName, @Query(\"password\") String password);\n\n @GET(\"User/updateUserInfo\")\n Observable<UserResp> updateUserInfo(@QueryMap Map<String, Object> map);\n\n @GET(\"User/getUserInfoByUserName\")\n Observable<UserResp> getUserInfoByUserName(@Query(\"userName\") String userName);\n\n @GET(\"User/checkUserExist\")\n Observable<BaseResp> checkUserExist(@Query(\"userName\") String userName);\n\n @GET(\"JMessage/getChartRoomMemeberList\")\n Observable<JMChartResp> getChartRoomMemeberList(@Query(\"roomId\") long roomId);\n\n @GET(\"JMessage/getChartRoomMemeberList\")\n Observable<JMChartResp> getChartMembersByUserName(@Query(\"userName\") String userName);\n\n @GET(\"JMessage/appointChatRoom\")\n Observable<JMChartResp> appointChatRoom(@QueryMap Map<String, Object> map);\n\n// @GET(\"JMessage/cancelChatRoom\")\n// Observable<NetResult> cancelChatRoom(@Query(\"userName\") String userName,@Query(\"roomId\") long roomId);\n\n @GET(\"JMessage/exitChatRoom\")\n Observable<NetResult<BChatRoom>> exitChatRoom(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/commitChatRoomResult\")\n Observable<NetResult<UserInfoBean>> commitChatRoomResult(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/startChatRoom\")\n Observable<NetResult<BChatRoom>> startChatRoom(@Query(\"roomId\") long roomId);\n\n @GET(\"JMessage/deleteChatRoom\")\n Observable<NetResult<BChatRoom>> deleteChatRoom(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/getChatRoomByUser\")\n Observable<NetResult<BChatRoom>> getChatRoomByUser(@Query(\"userName\") String userName);\n\n @GET(\"JMessage/exitChartRoom\")\n Observable<JMChartResp> exitChartRoom(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/deleteChartRoom\")\n Observable<JMChartResp> deleteChartRoom(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/joinChatRoom\")\n Observable<NetResult<BChatRoom>> joinChatRoom(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/enterChatRoom\")\n Observable<NetResult<BChatRoom>> enterChatRoom(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/getChatRoomMember\")\n Observable<NetResult<List<Member>>> getChatRoomMember(@QueryMap Map<String, Object> map);\n\n @GET(\"JMessage/leaveChatRoom\")\n Observable<NetResult> leaveChatRoom(@QueryMap Map<String, Object> map);\n\n @GET(\"User/getBlackUserByName\")\n Observable<NetResult<BBlackUser>> getBlackUserByName(@QueryMap Map<String, Object> map);\n\n @Multipart\n @POST(\"User/uploadHeadImage\")\n Call<UserResp> uploadFile(@PartMap Map<String, RequestBody> map, @Part MultipartBody.Part file);\n\n}", "@SwaggerDefinition(info = @Info(description = \"Ampula API \", version = \"1.0.0\", title = \"Ampula API\"),\n produces = MediaType.APPLICATION_JSON_UTF8_VALUE,\n schemes = SwaggerDefinition.Scheme.HTTPS\n)\n@Api(tags = \"Doctor Service\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, protocols = \"https\")\n@RequestMapping(value = \"api/doctor/\")\npublic interface DoctorEndpoint {\n\n @ApiOperation(value = \"Add new doctor\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\")\n })\n @RequestMapping(value = \"/add\", method = RequestMethod.POST)\n GeneralResponse<Long> addNewDoctor(GeneralRequest<Void, CreateDoctorRequest> request);\n\n\n @ApiOperation(value = \"Fire a doctor\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/delete\", method = RequestMethod.DELETE)\n GeneralResponse<Void> deleteDoctor(Long doctor_id);\n\n\n @ApiOperation(value = \"Update doctor data\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/update\", method = RequestMethod.POST)\n GeneralResponse<Void> updateDoctorData(GeneralRequest<Long, UpdateDoctorRequest> request);\n\n\n @ApiOperation(value = \"Get doctor data by ID\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/get\", method = RequestMethod.GET)\n GeneralResponse<DoctorDTO> getDoctor(Long doctor_id);\n\n\n @ApiOperation(value = \"Get all doctor's patients\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/get/all/patients\", method = RequestMethod.GET)\n GeneralResponse<List<CardDTO>> getAllPatients(Long doctor_id);\n\n\n @ApiOperation(value = \"Get all doctors\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\")\n })\n @RequestMapping(value = \"/get/all\", method = RequestMethod.GET)\n GeneralResponse<List<DoctorDTO>> getAll();\n\n\n}", "public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}", "public Route routes() {\n return concat(\n pathPrefix(\"hello\", () ->\n concat(\n getHello(),\n path(PathMatchers.segment(), message -> concat(\n getAck(message)\n )\n )\n )\n ),\n pathPrefix(\"mission\", this::handleMission)\n );\n }", "@Bean\n public Docket productApi() {\n return new Docket(DocumentationType.SWAGGER_2) \t\t\t\t \n\t\t .select()\n\t\t \t//.apis(RequestHandlerSelectors.any())\n\t\t \t.apis(RequestHandlerSelectors.basePackage(\"com.thingtrack.training.vertica.services.controller\"))\n\t\t \t.paths(PathSelectors.any())\t\t \t\t \n\t\t \t.build()\n\t\t .securitySchemes(Lists.newArrayList(apiKey()))\n\t\t .securityContexts(Lists.newArrayList(securityContext()))\t\t \t\n\t\t .apiInfo(metaData());\n }", "public interface BibleApi {\n @GET(\"versions.js\")\n Observable<VersionResponse> getVersions();\n\n @GET(\"versions/{version_id}/books.js\")\n Observable<BookResponse> loadBooks(@Path(\"version_id\") String versionId);\n\n @GET(\"books/{book_id}/chapters.js\")\n Observable<ChapterResponse> loadChapters(@Path(\"book_id\") String bookId);\n\n @GET(\"chapters/{chapter_id}/verses.js\")\n Observable<VerseResponse> loadVerses(@Path(\"chapter_id\") String chapterId);\n\n}", "public interface IUserBiz {\n @GET(\"TestServlet\")\n Call<List<User>> getUsers();\n\n @GET(\"{username}\")\n Call<User> getUser(@Path(\"username\")String username);\n}", "public interface ApiService {\n\n @GET(\"/api/v1/rates/daily/\")\n Call<List<ExchangeRate>> getTodayExchangeRates();\n\n}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public List<URL> index() throws MalformedURLException {\n\n List<URL> urls = new ArrayList<URL>();\n\n urls.add(new URL(\"http://localhost:8080/halogens\"));\n urls.add(new URL(\"http://localhost:8080/neutrons\"));\n urls.add(new URL(\"http://localhost:8080/weight/50\"));\n\n return urls;\n }", "public interface CoinMarketCapApiEndpointInterface {\n\n String TICKER = \"ticker\";\n\n @GET(TICKER)\n Call<List<CurrencyTicker>> getTickers();\n\n @GET(TICKER + \"/{id}\")\n Call<CurrencyTicker> getCurrencyTicker(@Path(\"id\") int tickerId);\n}", "public interface InterfaceReTrofits {\n\n @GET(\"{viewname}?name=101020100&id=11\")\n Call<String> fundGETRequest(@Path(\"viewname\") String viewname);\n\n @GET(\"{viewname}?id=12\")\n Call<BaseCallBean> fundGETRequestForBean(@Path(\"viewname\") String viewname);\n\n\n Call<BaseCallBean> fundGETRequest(@Url String url, @QueryMap Map<String, String> queryMaps);\n\n\n}", "public interface GetService {\n @GET(API.LIST_STORE)\n @Headers({API.HEADERS})\n Call<List<JSONStoreItem>> callJsonListStore();\n\n @GET(API.LIST_COUPON)\n @Headers({API.HEADERS})\n Call<List<JSONCouponItem>> callJsonListCoupon();\n}" ]
[ "0.64115447", "0.62457484", "0.61958116", "0.6174669", "0.6158384", "0.6154405", "0.61429626", "0.60694355", "0.6061859", "0.6058486", "0.6056473", "0.60272413", "0.59918696", "0.5955276", "0.59384835", "0.5933633", "0.592477", "0.5924719", "0.5922303", "0.59154874", "0.5903991", "0.5896881", "0.5878787", "0.5874189", "0.58691984", "0.5864503", "0.5862872", "0.5840901", "0.5839169", "0.5832284", "0.581314", "0.5811052", "0.57949096", "0.57776386", "0.5773565", "0.5773321", "0.57652944", "0.57613707", "0.5728367", "0.57017493", "0.56986827", "0.56981224", "0.5673607", "0.5673116", "0.5671013", "0.5669401", "0.56679356", "0.5661902", "0.56609946", "0.5658874", "0.56584775", "0.565157", "0.565057", "0.5625031", "0.56220543", "0.562147", "0.5613814", "0.560574", "0.56049174", "0.5600831", "0.5591122", "0.55851233", "0.55812156", "0.55731523", "0.5561029", "0.55594546", "0.5554496", "0.5554496", "0.5552233", "0.55488527", "0.5547851", "0.55419534", "0.5538857", "0.5537379", "0.55267304", "0.5517498", "0.55068606", "0.54995143", "0.5496516", "0.5489738", "0.5488384", "0.54814154", "0.5479594", "0.5478594", "0.547813", "0.5470002", "0.54680693", "0.5467584", "0.5450547", "0.5449492", "0.54446757", "0.5444112", "0.54427534", "0.54386365", "0.5437839", "0.543383", "0.54255146", "0.5421635", "0.54191846", "0.54181015" ]
0.57036227
39
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); Thread timerThread = new Thread() { public void run() { try { sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } finally { if (user != null) { redireccionar(); }else{ Intent intent = new Intent(SplashScreen.this, Login.class); startActivity(intent); } } } }; timerThread.start(); }
{ "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 protected void onPause() { super.onPause(); finish(); }
{ "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
Queue q1 = new ArrayDeque();
public static void main(String[] args) { Queue<QueueData> q1 = new LinkedList<>(); List<String> testArList = new ArrayList<>(); testArList.add(0, "1"); for (int i = 0; i < 10; i++){ // ArrayList의 add와 같은 기능을 가졌다. // 하지만, 자료구조의 특성상, 특정 인덱스에 add하는 메소드는 없다. q1.add(new QueueData(i, (int) (Math.random() * 1000))); } System.out.println(q1); // peek() : 0번째 인덱스 즉 head에 해당하는 데이터를 살펴본다. 해당 데이터가 없을 경우 // null이 출력된다. 검색된 데이터는 삭제되지 않고 그대로 남는다. System.out.println(q1.peek()); System.out.println("peek"); System.out.println(q1); // element() : peek과 동일한 기능을 가졌지만, 차이점은 해당 데이터가 없을때, // 예외처리를 해준다. System.out.println(q1.element()); System.out.println("element"); System.out.println(q1); // Enqueue : 추가 q1.offer(new QueueData(q1.size(), (int) (Math.random() * 1000))); // 실패시 예외발생 System.out.println("offer"); System.out.println(q1); q1.add(new QueueData(q1.size(), (int) (Math.random() * 1000))); // 실패시 false 리턴 System.out.println("add"); System.out.println(q1); // Dequeue : 삭제 q1.remove(); // 삭제 실패시, 예외 발생 System.out.println("remove"); System.out.println(q1); System.out.println("poll"); q1.poll(); // 실패시 false 리턴 System.out.println(q1); // 조건부 삭제 System.out.println("remove if idx % 10 == 0"); q1.removeIf(queueData -> queueData.idx % 10 == 0); System.out.println(q1); // priority Queue(우선순위 큐) // 가장 가중치가 낮은 순서로 poll, peek()을 할 수 있는 자료구조다. // Min Heap로 데이터를 sort 시켜놓고 출력하는 자료구조. // 데이터의 크기를 뒤죽박죽 아무렇게 넣어도 의도에 따라 오름차순 혹은 내림차순으로 // poll(), peek() 할 수 있다. Queue<QueueData> pQueue = new PriorityQueue<>(); pQueue.add(new QueueData(0, (int) (Math.random() * 1000))); pQueue.add(new QueueData(9, (int) (Math.random() * 1000))); pQueue.add(new QueueData(2, (int) (Math.random() * 1000))); pQueue.add(new QueueData(5, (int) (Math.random() * 1000))); pQueue.add(new QueueData(4, (int) (Math.random() * 1000))); System.out.println(pQueue.poll()); System.out.println(pQueue.poll()); System.out.println(pQueue.poll()); System.out.println(pQueue.poll()); System.out.println(pQueue.remove()); // 더이상 삭제할 수 없을 때, 예외처리(프로그램 종료) System.out.println(pQueue.poll()); // 더이상 삭제할 수 없을 때, null 출력 System.out.println(pQueue.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyStack2() {\n q1 = new ArrayDeque<>();\n q2 = new ArrayDeque<>();\n }", "public BlaqDeque(){super();}", "public ArrayDeque() {\n myQ = (T[]) new Object[IDeque.MAX_LENGTH];\n myLength = 0;\n }", "public Deque() {}", "public Deque() {\n size = 0;\n\n }", "public Deque() {\n\n }", "public Deque() {\n\n }", "public static void queueVsStack() {\n\n Queue<String> collection1 = new PriorityQueue<>();\n collection1.add(\"banana\");\n collection1.add(\"orange\");\n collection1.add(\"apple\");\n\n //what will be printed\n System.out.println(collection1.iterator().next());\n\n Deque<String> collection2 = new ArrayDeque<>();\n collection2.addFirst(\"banana\");\n collection2.addFirst(\"apple\");\n collection2.addFirst(\"orange\");\n\n //what will be printed\n System.out.println(collection2.iterator().next());\n\n }", "public Deque() {\n first = null;\n last = null;\n N = 0;\n }", "public Deque() {\n }", "public Deque() {\n resetDeque();\n }", "public Deque() {\n first = null;\n last = null;\n }", "public MyStack() {\n queue = new ArrayDeque<>();\n }", "public ArrayDeque() {\n array = (T[]) new Object[8];\n size = 0;\n front = 0;\n rear = 0;\n }", "public Deque() {\n first = null;\n last = null;\n len = 0;\n }", "public ArrayPriorityQueue()\n { \n\tqueue = new ArrayList();\n }", "public QueueUsingTwoStacks() \n {\n stack1 = new Stack<Item>();\n stack2 = new Stack<Item>();\n }", "public MyQueue1() {\n storeStack = new Stack<>();\n }", "public Deque() {\n\t\tfirst = null;\n\t\tlast = null;\n\t\tsize = 0;\n\t}", "public Deque() {\n first = null;\n last = null;\n n = 0;\n }", "public MyQueue() {\n s1 = new Stack<>();\n s2 = new Stack<>();\n }", "public MyQueue() {\n stk1 = new Stack<>();\n stk2 = new Stack<>();\n }", "public ResizingArrayDeque() {\n q = (Item[]) new Object[2];\n N = 0;\n first = 0;\n last = 0;\n }", "public Deque() {\n size = 0;\n first = null;\n last = null;\n }", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "public MyQueue() {\n s1 = new Stack<Integer>();\n s2 = new Stack<Integer>();\n }", "public StackWithOneQueue() {\n this.queue = new LinkedList<>();\n }", "public static void main(String[] args) {\n\t\tCreate_queue new_queue= new Create_queue();\n\t\tnew_queue.enqueu(12);\n\t\tnew_queue.enqueu(5);\n\t\tnew_queue.enqueu(36);\n\t\tnew_queue.enqueu(5);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(10);\n\t\tnew_queue.enqueu(8);\n\t\tnew_queue.enqueu(2);\n\t\tnew_queue.enqueu(14);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(32);\n\t\tnew_queue.enqueu(11);\n\t\tnew_queue.enqueu(21);\n\t\tnew_queue.enqueu(44);\n\t\tnew_queue.enqueu(46);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(50);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(100);\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue.peek());\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue.peek());\n\t\t\n\t\t\n\t}", "public I0304MyQueue() {\n nums = new Stack<>();\n temp = new Stack<>();\n }", "public Queue(){\n first = null;\n last = null;\n N = 0;\n }", "public MyQueue2() {\n storeStack = new Stack<>();\n }", "myQueue(int size){\n }", "public MyQueue() {\n stack = new Stack<>();\n }", "public ArrayDeque() {\n size = 0;\n array = (T[]) new Object[8];\n nextFirst = 0;\n nextLast = 1;\n }", "public MyQueue() {\n rearStack = new Stack();\n frontStack = new Stack();\n }", "myQueue(){\n }", "public Deque(){\n\t\tthis.first = null;\n\t\tthis.last = null;\n\t\tthis.n = 0;\n\t}", "public static void main(String[] args) {\n ArrayQueue<String> qu = new ArrayQueue<>();\n\n qu.enqueue(\"this\");\n System.out.println(qu);\n\n qu.enqueue(\"is\");\n System.out.println(qu);\n\n qu.enqueue(\"a\");\n System.out.println(qu);\n\n System.out.println(qu.dequeue());\n System.out.println(qu);\n\n qu.enqueue(\"queue\");\n System.out.println(qu);\n\n qu.enqueue(\"of\");\n System.out.println(qu);\n\n // qu.enqueue(\"strings\");\n // System.out.println(qu);\n\n\n while (!qu.isEmpty()) {\n System.out.println(qu.dequeue());\n System.out.println(qu);\n }\n\n }", "public MyQueue() { //使用两个栈\n temp1 = new Stack<>();\n temp2 = new Stack<>();\n }", "public QueueExplorator() {\n\t\tqueue = new LinkedQueue<Square>();\t\n\t}", "public MyStack() {\n queue1=new LinkedList();\n queue2=new LinkedList();\n }", "public MyStack2() {\n queue = new LinkedList<Integer>();\n }", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "public Deque() {\n first = null;\n last = null;\n size = 0;\n assert check();\n }", "public MyQueue() {\n front = null;\n rear = null;\n size = 0;\n }", "public Queue(){ }", "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "public MyStack() {\n queueA = new LinkedList<>();\n queueB = new LinkedList<>();\n }", "public 用栈实现队列() {\n stack1 = new LinkedList<>();\n stack2 = new LinkedList<>();\n }", "Queue3(int size){\n\t\tq = new char[size];\n\t\tputloc = getloc = 0;\n\t}", "public ArrayQueue() {\n Object[] arr = new Object[INITIAL_CAPACITY];\n backingArray = (T[]) arr;\n size = 0;\n front = 0;\n }", "public Deque() {\n size = 0;\n head = null;\n tail = null;\n }", "public MyQueue() {\n\n }", "public CircularArrayDeque(){\n front = -1;\n rear = -1;\n container = (T[]) new Object[DEFAULT_CAPACITY];\n size = 0;\n capacity = DEFAULT_CAPACITY;\n }", "public Queue() {\n\t\tfirst = null;\n\t\tlast = null;\n\t\tN = 0;\n\t}", "Queue() {\r\n\t\telements = new int[DEFAULT_CAPACITY];\r\n\t}", "public MyQueue() {\n pushStack = new Stack<>();\n popStack = new Stack<>();\n }", "public MyQueue() {\n left = new Stack<>();\n right = new Stack<>();\n }", "@Test\n public void queue() {\n\n Queue<String> q = new LinkedList<>();\n q.offer(\"1\");\n q.offer(\"2\");\n q.offer(\"3\");\n System.out.println(q.offer(\"4\"));\n System.out.println(q.add(\"2\"));\n System.out.println(q.toString());\n System.out.println(\"peek \" + q.peek()); // 1, peek() means get the first element in the queue\n System.out.println(\"size \" + q.size()); // 4\n System.out.println(\"poll \" + q.poll()); // 1\n System.out.println(\"size \" + q.size()); // 3\n\n\n }", "public RandomizedQueue() {\r\n\t\tqueue = (Item[]) new Object[1];\r\n\t}", "public ArrayQueue(int capacity){\r\n\t\tq = new String [capacity];\r\n\t\tn = 0;\r\n\t\tfirst = 0;\r\n\t\tlast = 0; \r\n\t}", "@NotNull\n public static <T> Queue<T> queue() {\n try {\n return new ArrayDeque<T>();\n } catch (NoClassDefFoundError nce) {\n return new LinkedList<T>();\n }\n }", "public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}", "void clear(){\n this.queueArray = (T[]) new Object[0];\n this.tail = 0;\n }", "public LinkedQueue(){\n length = 0;\n front = rear = null;\n }", "public Queue() {\n\t\tthis.front = null;\n\t\tthis.end = null;\n\t\tthis.current = null;\n\t}", "public RandomizedQueue() {\n queue = (Item[]) new Object[1];\n }", "public ArrayDequeSimple() {\n this(DEFAULT_CAPACITY);\n }", "public MyStack() {\n queue = new LinkedList<>();\n }", "Queue() {\n head = null;\n tail = null;\n }", "public MyQueue() {\n push=new Stack<>();\n pull=new Stack<>();\n }", "public MyQueue() {\n storeStack = new Stack<>();\n }", "public ArrayQueue() {\n\t\tthis(Integer.MAX_VALUE);\n\t}", "public static void main(String[] args) {\n CircleArrayQueue circleArrayQueue = new CircleArrayQueue(4);\n circleArrayQueue.addQueue(1);\n circleArrayQueue.addQueue(2);\n circleArrayQueue.addQueue(3);\n System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.showQueue();\n// System.out.println(circleArrayQueue.getQueue());\n// System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.addQueue(4);\n circleArrayQueue.showQueue();\n\n System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.showQueue();\n\n circleArrayQueue.addQueue(5);\n circleArrayQueue.showQueue();\n System.out.println(circleArrayQueue.getQueue());\n circleArrayQueue.showQueue();\n\n circleArrayQueue.addQueue(5);\n circleArrayQueue.showQueue();\n// System.out.println(circleArrayQueue.getQueue());\n }", "public static void main(String[] args) {\n\t\tQueueExample queue = new QueueExample();\r\n\t\tqueue.enque(3);\r\n\t\tqueue.enque(4);\r\n\t\tqueue.enque(5);\r\n\t\tqueue.enque(6);\r\n\t\t\r\n\t\tSystem.out.println(queue.deque());\r\n\t\tSystem.out.println(queue.deque());\r\n\t\tSystem.out.println(queue.deque());\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public Queue() {}", "public MyQueue() {\n \n }", "public MyQueue232() {\n stackIn = new Stack<Integer>();\n stackOut = new Stack<Integer>();\n isIn = true;\n }", "public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }", "public static void main(String args[]) {\r\n /* Create a queue with items 1 2 3 */\r\n Queue q = new Queue();\r\n q.stack1 = new Stack<>();\r\n q.stack2 = new Stack<>();\r\n enQueue(q, 1);\r\n enQueue(q, 2);\r\n enQueue(q, 3);\r\n\r\n /* Dequeue items */\r\n System.out.print(deQueue(q) + \" \");\r\n System.out.print(deQueue(q) + \" \");\r\n System.out.println(deQueue(q) + \" \");\r\n }", "public MyQueue() {\n stack = new LinkedList<Integer>();\n cache = new LinkedList<Integer>();\n }", "Queue3(Queue3 ob){\n\t\tputloc = ob.putloc;\n\t\tgetloc = ob.getloc;\n\t\tq = new char[ob.q.length];\n\t\t\n\t\t//copy the elements\n\t\tfor (int i = getloc; i< putloc; i++){\n\t\t\tq[i] = ob.q[i];\n\t\t}\t\t\t\n\t}", "public SQueue(){\n\n\t}", "public RandomizedQueue2() {\n first = null;\n last = null;\n size = 0;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic ArrayQueue() {\r\n a = (Item[]) new Object[2];\r\n n = 0;\r\n head =0;\r\n tail = 0;\r\n }", "public As2RandomizedQueue() {\n resize(1);\n }", "public ArrayQueue() {\n this(10);\n }", "public Queue<T> deQueue();", "public void init(Queue<Values> queue);", "public TwoStaImpQue() {\n this.stack1 = new Stack<>();\n this.stack2 = new Stack<>();\n }", "public MyQueue() {\n\n }", "public MyQueue() {\n\n }", "public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}", "public RandomizedQueue(){\n// this.head = new Node<Item>();\n// this.tail = head;\n// queueData = (Item[])new Object[0];\n }", "public RandomizedQueue() { }", "void deleteQueue();", "public MyStack() {\n this.queue=new LinkedList<Integer>();\n }", "public DVDQueue() { \n\t\tqueue = new LinkedList<DVDPackage>(); \n\t}", "public CircularArrayQueue() {\n\t\tthis(QUEUESIZE);\t// constructs queue with default queue size\n\t}", "public Queue()\r\n\t{\r\n\t\tthis(capacity);\r\n\t}" ]
[ "0.7731993", "0.77095324", "0.76705235", "0.74099934", "0.73998845", "0.7323118", "0.7323118", "0.7281098", "0.7213218", "0.72022533", "0.71981144", "0.715615", "0.713837", "0.713451", "0.7118844", "0.7114697", "0.7107708", "0.71005887", "0.708401", "0.7082075", "0.7080529", "0.70655566", "0.7063645", "0.70634425", "0.70338255", "0.70297915", "0.701503", "0.69978696", "0.69647527", "0.69642115", "0.69600904", "0.69515723", "0.6937935", "0.69315535", "0.69212", "0.69147575", "0.6914522", "0.6902791", "0.6895326", "0.6886804", "0.6856603", "0.6848431", "0.68370646", "0.6830429", "0.6800703", "0.6799427", "0.6788368", "0.67742056", "0.67703277", "0.6754491", "0.6748366", "0.6719742", "0.67148054", "0.6712637", "0.67070794", "0.66652185", "0.6660352", "0.66567886", "0.66443735", "0.66175956", "0.6612147", "0.6601891", "0.6593207", "0.6592108", "0.6584561", "0.658075", "0.6579638", "0.6576839", "0.6573701", "0.65655476", "0.6563778", "0.6563037", "0.65561366", "0.6539678", "0.6537792", "0.65328956", "0.6518606", "0.650102", "0.64980495", "0.64974475", "0.6488086", "0.6468929", "0.64671755", "0.64628553", "0.64624053", "0.6461306", "0.6446039", "0.6433136", "0.642823", "0.64115196", "0.6397653", "0.6397653", "0.63849163", "0.6383739", "0.63770986", "0.63621575", "0.6356056", "0.6355861", "0.6352767", "0.63488305" ]
0.6980089
28
Toast.makeText(context, "Alarm Triggered", Toast.LENGTH_SHORT).show();
@Override public void onReceive(Context context, Intent intent) { Log.d("ALARMA", "alarma"); AlarmUtils.scheduleAlarmHeartRate(); BleDevice device = new BleDevice(new DeviceManager().getDevice().getMacAddress()); device.connect(); /* while(!device.readSteps(new StepsListener() { @Override public void onStepsRead(int value) { Log.d("ALARMA", value+""); } })){ } */ while(!device.readHeartRate(new HeartRateListener() { @Override public void onHeartRateRead(int value) { Log.d("ALARMA", value+""); Measurement measurement = new Measurement(new SessionManager().getId(), value, currentTimeMillis()/1000); new ApiHelper().uploadHeartRateMeasure(measurement, new SessionManager().getJWT()); } })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void AlarmByNotification(String message) {\n\t\tToast.makeText(this, message, Toast.LENGTH_LONG).show();\r\n\t}", "void alarm(String text);", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "void showToast(String message);", "void showToast(String message);", "public void startAlarm(Context context) {\n\n System.out.println(\"startAlarm\");\n\n\n\n //creates Object of AlarmManager\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n\n //passing the Alarm to AlertReceiver Class\n Intent intent = new Intent(context, AlertReceiver.class);\n final int id = (int) System.currentTimeMillis();\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, id, intent, 0);\n\n //Compares the chosen time with the real time\n if (c.before(Calendar.getInstance())) {\n c.add(Calendar.DATE, 1);\n }\n\n alarmManager.setExact(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), pendingIntent);\n\n\n }", "public void onReceive(Context context, Intent intent) {\n\n Toast.makeText(context, \"Alarm worked.\", Toast.LENGTH_LONG).show();\n final Calendar c = Calendar.getInstance();\n long mHour = c.get(Calendar.HOUR_OF_DAY);\n long mMinute = c.get(Calendar.MINUTE);\n Log.d(\"myTag\", \"Alarm executed at : \" + mHour + \":\" + mMinute);\n\n }", "@Override\n public void onCreate() {\n \tToast.makeText(this, \"MyAlarmService.onCreate()\", Toast.LENGTH_LONG).show();\n \n \t \n \n \tLog.d(\"this is daya\",\"daya alaram\");\n \t\n }", "void toast(int resId);", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context, \"Your Task Time Is Over\", Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "@Override\r\n public void onClick(View v) {\n Alarm alarm = new Alarm(getContext(), userId);\r\n alarm.setAlarmWithNewPracticeTimes();\r\n }", "@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }", "private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }", "void showToast(String value);", "public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }", "public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "void simpleNotify(SimpleAlarmMessage message);", "protected void toast() {\n }", "public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }", "private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public void startAlarm() {\n Log.d(TAG, \"Starting alarm\");\n\n // Initializes the media player to play sounds and starts it\n\n mediaPlayer.start();\n alertOverlay.setVisibility(View.VISIBLE);\n sleepAlert.setVisibility(View.VISIBLE);\n\n // In main thread, starts the timer to turn the alarm off after ALARM_DURATION_MILLISECONDS seconds\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n alarmTimer = new CountDownTimer(ALARM_DURATION_MILLISECONDS, ALARM_INTERVAL_MILLISECONDS) {\n @Override\n public void onTick(long millisUntilFinished) {\n }\n\n @Override\n public void onFinish() {\n stopAlarm();\n }\n }.start();\n }\n });\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "public void viewAlarm() {\n\t\tfinal Dialog dialog = new Dialog(this);\n\t\tdialog.setContentView(R.layout.date_time_picker);\n\t\tdialog.setTitle(\"Set Reminder\");\n\t\tButton saveDate = (Button)dialog.findViewById(R.id.btnSave);\n\t\tsaveDate.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tsetAlarm(dialog);\n\t\t\t}\n\t\t});\n\t\tdialog.show();\n\t}", "@Override\n public void onClick(View v) {\n calendar.set(Calendar.HOUR_OF_DAY, alarm_timepicker.getHour());\n calendar.set(Calendar.MINUTE, alarm_timepicker.getMinute());\n\n // getting the int values of the hour and minute\n int hour = alarm_timepicker.getHour();\n int minute = alarm_timepicker.getMinute();\n\n //converting the int values to strings\n String hour_string = String.valueOf(hour);\n String minute_string = String.valueOf(minute);\n\n // 10:4 -> 10:04\n if (minute < 10) {\n minute_string = \"0\" + String.valueOf(minute);\n }\n\n // method that changes the update text Textbox\n set_alarm_text(\"Alarm set to: \" + hour_string + \":\" + minute_string);\n\n\n // put in extra string into my_intent\n // tells the clock that you pressed the \"alarm on\" button\n my_intent.putExtra(\"extra\", \"alarm on\");\n\n //put in an extra long value into my intent\n //tells the clock that you want a certain value from the\n // dropdown menu/spinners\n my_intent.putExtra(\"alarm_choice\", choose_alarm_sound);\n\n // create a pending intent that delays the intent\n // until the specified calendar time\n pending_intent = PendingIntent.getBroadcast(MainActivity.this, 0, my_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n //set the alarm manager\n alarm_manager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pending_intent);\n\n }", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }", "Alarm createAlarm();", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }", "public void setAlarm (int alarm) { this.alarm = alarm; }", "@Override\n public void onEnabled(Context context) {\n SetAlarm(context,1,mywidget.class);\n\n }", "public void onClick(View v) \n\t\t\t{\n\t\t\t\tlong sec = 0,min,hr,ts;\n\t\t\t\tString st;\n\t\t\t\tCalendar cal=Calendar.getInstance();\n\t\t\t\thr=cal.get(cal.HOUR);\n\t\t\t\tmin=cal.get(cal.MINUTE);\n\t\t\t\tsec=cal.get(cal.SECOND);\n\t\t\t\tts=cal.get(cal.AM_PM);\n\t\t\t\tst=ts>0?\"pm\":\"am\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\twhile(sec!=40)\n\t\t\t\t{Log.d(\"Toast\",\"\"+sec);\n\t\t\t\t cal=Calendar.getInstance();\n\t\t\t\thr=cal.get(cal.HOUR);\n\t\t\t\tmin=cal.get(cal.MINUTE);\n\t\t\t\tsec=cal.get(cal.SECOND);\n\t\t\t\tts=cal.get(cal.AM_PM);\n\t\t\t\tst=ts>0?\"pm\":\"am\";\n\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t{\tNotificationManager nm=(NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n\t\t\t\tNotification notify=new Notification(android.R.drawable.stat_notify_chat,\"This isimportant\",System.currentTimeMillis());\n\t\t\t\tIntent in=new Intent(getApplicationContext(),Notifn.class);\n\t\t\t\tPendingIntent pi=PendingIntent.getActivity(getApplicationContext(),0,in,0);\n\t\t\t\tnotify.setLatestEventInfo(getApplicationContext(),\"You have been notified\",\"Continue if you needsbccdcb\",pi);\n\t\t\t\tnotify.sound=Uri.parse(\"android.resource://example.pr1/\"+raw.beep);\n\t\t\t\t\tnm.notify(0,notify);\n\t\t\t\tLog.d(\"Toast\",\"\"+sec+\" Success\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tspeakout(\"Hai hoW ARE YOU\");\n\t\t\t}", "default String turnAlarmOn() {\n return \"Turning the vehicle alarm on.\";\n }", "void onMessageToast(String string);", "private void showToast (String appName) {\n Toast.makeText(this,getString(R.string.openAppMessage,appName), Toast.LENGTH_SHORT).show();\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }", "public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }", "public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }", "public static void showToast(Context context, String msg) {\n Toast.makeText(context, \"\" + msg, Toast.LENGTH_LONG).show();\n\n }", "public void onClick(DialogInterface dialog, int id) {\n\r\n Context context = getApplicationContext();\r\n CharSequence text = \"Welcome \" + name + \"! Signing up...\";\r\n int duration = Toast.LENGTH_SHORT;\r\n\r\n Toast toast = Toast.makeText(context, text, duration);\r\n toast.show();\r\n }", "private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "protected void showToast(CharSequence text) {\r\n\t Context context = getApplicationContext();\r\n\t int duration = Toast.LENGTH_SHORT;\r\n\t \r\n\t Toast toast = Toast.makeText(context, text, duration);\r\n\t toast.show();\r\n\t}", "public void onClickShowAlert(View view) {\n AlertDialog.Builder myAlertBuilder = new\n AlertDialog.Builder(MainActivity.this);\n // Set the dialog title and message.\n myAlertBuilder.setTitle(\"Alert\");\n myAlertBuilder.setMessage(\"Click OK to continue, or Cancel to stop:\");\n // Add the dialog buttons.\n myAlertBuilder.setPositiveButton(\"OK\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User clicked OK button.\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }\n });\n myAlertBuilder.setNegativeButton(\"Cancel\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User cancelled the dialog.\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }\n });\n // Create and show the AlertDialog.\n myAlertBuilder.show();\n }", "public static void showAlert(String message, Activity context) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(message).setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n\n }\n });\n try {\n builder.show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Date d = new Date();\n Toast ToastMessage = Toast.makeText(context, d.getDate() + \"\" + d.getMonth(), Toast.LENGTH_SHORT);\n\n ToastMessage.setGravity(Gravity.RIGHT | Gravity.END | Gravity.TOP, 0, 0);\n ToastMessage.show();\n }", "public void toast(String toast) {\n\t\t// TODO Auto-generated method stub\n\t\t Toast toast1 = Toast.makeText(getApplicationContext(), toast, \n Toast.LENGTH_LONG); \n\t\t toast1.setDuration(1);\n\t\t toast1.show();\n\t\t \n\t}", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }", "void templateNotify(TeampleAlarmMessage message);", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "public void setAlarmClock() {\n\n }", "public void showComingSoonMessage() {\n showToastMessage(\"Coming soon!\");\n }", "@SuppressLint(\"LongLogTag\")\n @Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context.getApplicationContext(), \"Alarm Fired\", Toast.LENGTH_SHORT).show();\n Log.d(\"Alarm Receiver\", \"Alarm Receiver Triggered\");\n //Log.i(\"intent name\",intent.toString());\n\n alarmManager = (AlarmManager) context.getSystemService(context.ALARM_SERVICE);\n\n Intent alarmReceiverIntent = new Intent(context.getApplicationContext(),\n AlarmBroadcastReceiver.class);\n PendingIntent alarmIntent = PendingIntent.getBroadcast(context, 0, alarmReceiverIntent, 0);\n\n alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + 30000, alarmIntent);\n\n\n }", "public void onToast (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tdoToast ();\r\n\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n setAlarm(context);\n }", "public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }", "@Override\n public void onClick(View view) {\n calendar.set(Calendar.HOUR_OF_DAY, tp.getHour());\n calendar.set(Calendar.MINUTE, tp.getMinute());\n\n //get int value of timepicker selected time\n int hour = tp.getHour();\n int minute = tp.getMinute();\n\n String hour_string = String.valueOf(hour);\n String minute_string = String.valueOf(minute);\n\n if (hour > 12) {\n hour_string = String.valueOf(hour - 12);\n }\n\n if (minute < 10) {\n minute_string = \"0\" + String.valueOf(minute);\n }\n\n //update status box method\n alarm_text(\"Alarm set for \" + hour_string + \":\" + minute_string);\n //put extra string in my_intent\n //tells clock \"set alarm\" button pressed\n my_intent.putExtra(\"extra\", \"alarm on\");\n //create pending intent that delays intent until user selects time\n pending_intent = PendingIntent.getBroadcast(AlarmClock.this, 0, my_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n //set alarm manager\n am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pending_intent);\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "private void showNotification() {\n\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }", "private void showMessage(String msg) {\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "@Override\nprotected void onStart() {\n\tsuper.onStart();\n\t//Toast.makeText(getApplicationContext(), \"Start\", 1).show();\n}", "public void sendMessage(View v) {\n /*\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.edit_message);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n */\n long time = currentTimeMillis();\n Date d1 = new Date();\n Date d2;\n // d2 = new Date(d1.getYear(),d1.getMonth(),d1.getDate(),d1.getHours(),d1.getMinutes(),d1.getSeconds());\n Toast.makeText(this, \"ALARM ON\", Toast.LENGTH_SHORT).show();\n // Calendar calendar = Calendar.getInstance();\n // calendar.set(Calendar.HOUR_OF_DAY, alarmTimePicker.getCurrentHour());\n // calendar.set(Calendar.MINUTE, alarmTimePicker.getCurrentMinute());\n alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(MainActivity.this, AlarmReceiver.class);\n pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n // Set the alarm's trigger time to 8:30 a.m.\n calendar.set(Calendar.HOUR_OF_DAY, 14);\n calendar.set(Calendar.MINUTE, 58);\n Toast.makeText(MainActivity.this, \"bjr\", Toast.LENGTH_SHORT).show();\n // alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time + 5, 10000, pendingIntent);\n alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), pendingIntent);\n // Bon manque de prevenir le receiver....!!\n\n }", "public void OnToggleClicked(View view)\n {\n\n long time;\n if (((ToggleButton) view).isChecked())\n {\n //startActivity(Intent)\n Toast.makeText(MainActivity.this, \"ALARM ON\", Toast.LENGTH_SHORT).show();\n Calendar calendar=Calendar.getInstance();\n\n int currentApiVersion = android.os.Build.VERSION.SDK_INT;\n if (currentApiVersion > android.os.Build.VERSION_CODES.LOLLIPOP_MR1)\n {\n calendar.set(Calendar.HOUR_OF_DAY,alarmTimePicker.getHour());\n calendar.set(Calendar.MINUTE, alarmTimePicker.getMinute());\n }\n else {\n calendar.set(Calendar.HOUR_OF_DAY,alarmTimePicker.getCurrentHour());\n calendar.set(Calendar.MINUTE, alarmTimePicker.getCurrentMinute());\n }\n\n Intent intent = new Intent(this, AlarmReceiver.class);\n pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n\n time=(calendar.getTimeInMillis()-(calendar.getTimeInMillis()%60000));\n if(System.currentTimeMillis()>time)\n {\n if (Calendar.AM_PM == 0)\n time = time + (1000*60*60*12);\n else\n time = time + (1000*60*60*24);\n }\n alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time, 10000, pendingIntent);\n }\n else\n {\n alarmManager.cancel(pendingIntent);\n Toast.makeText(MainActivity.this, \"ALARM OFF\", Toast.LENGTH_SHORT).show();\n }\n //public class DeezerConnect.Builder();\n }", "private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }", "public void startAlarm(){\r\n\t\tAlarm alarm = new Alarm(\"magAanvallen\", 1 / aanvallenPerSeconden);\r\n\t\talarm.addTarget(this);\r\n\t\talarm.start();\r\n\t}", "public static void showToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n }", "public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Capstone app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "private void sendToCatTheater()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Theater'\", Toast.LENGTH_SHORT).show();\n }", "public void scheduleAlarm()\n {\n hour = timePicker.getCurrentHour(); //get hour\n minute = timePicker.getCurrentMinute(); //get minutes\n alarmMgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(getApplicationContext(), AlarmReceiver.class);\n alarmIntent = PendingIntent.getBroadcast(getApplicationContext(), 0, intent, 0);\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n alarmMgr.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, alarmIntent);\n Toast.makeText(this, \"Alarm scheduled for \" + hour + \":\" + minute, Toast.LENGTH_SHORT).show();\n\n }", "public static void setAlarm(Context context) {\n Intent i = new Intent(context, AlarmManagerHandler.class);\n\n //helps in creating intent that must be fired at some later time\n PendingIntent pi = PendingIntent.getService(context, 0, i, 0);\n\n //schedule a repeating alarm; they are inexact\n AlarmManager mgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n mgr.setRepeating(\n AlarmManager.ELAPSED_REALTIME, //type of time(UTC, elapsed) & wake mobile or not\n SystemClock.elapsedRealtime() + PERIOD, //trigger at Milliseconds; time at which alarm should go off\n PERIOD, //interval in Milliseconds between subsequent repeat of alarm\n pi //action to perform when alarm goes off pending intent\n );\n }", "public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(getApplicationContext(), \"Holidays accepted\", Toast.LENGTH_SHORT).show();\n }", "public void setAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n // pass the alarm id as an extra to be extracted in the receivier\n intent.putExtra(\"alarmID\", alarm.getId());\n // check if the alarm is on\n if (alarm.isOn()) {\n // if so check if it is recurring\n if (alarm.isRecurring()) {\n // for each day stipulated in the alarm, schedule an new alarm, each alarm id will\n // be multiplied with 10 and then an integer representation of each day will be\n // added i.e. alarm id = 10 and days a Sun = 1, Mon = 2... Sat = 7 therefore\n // sun alarm id = 101, Mon alarm id = 102... Sat alarm id = 107.\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact() + day, intent, 0);\n // instantiate a calander object\n Calendar calendar = Calendar.getInstance();\n // set to the current system time\n calendar.setTimeInMillis(System.currentTimeMillis());\n // set the calender day to day i.e. sun = 1, mon = 2 etc...\n calendar.set(Calendar.DAY_OF_WEEK, day);\n // set the calendar hour to alarm hour\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n // as per hour, set to alarm minutes\n calendar.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n // set seconds to 0 alarm activates close to 0th second of minute\n calendar.set(Calendar.SECOND, 0);\n // as alarm is recurring schedule the alarm to repeat every 7 day from set time\n // specified by alarm set calendar object\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY * 7, alarmIntent);\n }\n } else {\n // if the alarm is not recurring\n // uniquely identify the intent for each day and ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact(), intent, 0);\n // get a calendar object\n Calendar calNow = Calendar.getInstance();\n // set the time to current system time\n calNow.setTimeInMillis(System.currentTimeMillis());\n // get a second instance of calendar\n Calendar calSet = (Calendar) calNow.clone();\n // set the time of the calendar object to the alarm specified time\n calSet.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calSet.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n calSet.set(Calendar.SECOND, 0);\n // check if the alarm specified time is set to before the current time\n if (calSet.compareTo(calNow) <= 0) {\n //Today Set time passed, count to tomorrow\n calSet.add(Calendar.DATE, 1);\n }\n // set the alarm to activate at once at the calendar specified time\n alarmMgr.setExact(AlarmManager.RTC_WAKEUP,\n calSet.getTimeInMillis(), alarmIntent);\n }\n }\n }", "public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void showAlert(String message);", "public static void toastIt(Context context, Toast toast, CharSequence msg) {\n if(toast !=null){\n toast.cancel();\n }\n\n //Make and display new toast\n toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n toast.show();\n }", "public static void showToast(Context context, String text) {\n //Toast.makeText(context, text, Toast.LENGTH_SHORT).show();\n showToastAtCenter(context, text);\n }", "public static void showToast(Context context, CharSequence message) {\n Toast.makeText(context, message, Toast.LENGTH_SHORT).show();\n }", "public void SetAlarm(Context context)\n {\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, 7);\n calendar.set(Calendar.MINUTE,20);\n Log.i(\"Set calendar\", \"for time: \" + calendar.toString());\n\n //Intent i = new Intent(context, AlarmService.class);\n Intent i = new Intent(context, Alarm.class);\n boolean alarmRunning = (PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG_NO_CREATE) !=null);\n if (!alarmRunning) {\n //PendingIntent pi = PendingIntent.getService(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n PendingIntent pi = PendingIntent.getService(context, 0, i, 0);\n\n\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, i, 0);\n AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);\n am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pendingIntent);\n //am.cancel(pi);\n }\n\n //PendingIntent pi = PendingIntent.getBroadcast(context, 0, i, 0 );\n\n\n //am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),AlarmManager.INTERVAL_DAY, pi);\n\n }" ]
[ "0.7383871", "0.7223413", "0.72178483", "0.7123275", "0.70711863", "0.70711863", "0.7022971", "0.6990934", "0.69046044", "0.68920505", "0.685936", "0.6858748", "0.68491685", "0.67995894", "0.6790868", "0.676973", "0.6742451", "0.67405725", "0.67338735", "0.67319953", "0.6730921", "0.6701143", "0.6695306", "0.665866", "0.66552866", "0.6651882", "0.6643", "0.6639885", "0.6624038", "0.6618888", "0.6588518", "0.65882385", "0.6577534", "0.6569133", "0.65634316", "0.65557426", "0.65434015", "0.6532085", "0.65218884", "0.6512885", "0.651071", "0.6497944", "0.64905214", "0.64836204", "0.64743197", "0.64725554", "0.64720833", "0.645212", "0.64498234", "0.643731", "0.6424677", "0.6419178", "0.64111954", "0.6406161", "0.6406161", "0.6405127", "0.63981336", "0.63978004", "0.63957965", "0.63936067", "0.6387748", "0.6387036", "0.6373784", "0.6370784", "0.636195", "0.6357323", "0.6352835", "0.63441813", "0.63375443", "0.6329846", "0.63269675", "0.6325633", "0.6324618", "0.6316654", "0.63126594", "0.6312647", "0.6312647", "0.6310057", "0.6307743", "0.6307703", "0.6305258", "0.63049257", "0.6286901", "0.6285385", "0.62842906", "0.627837", "0.625375", "0.6245147", "0.6240151", "0.6239282", "0.62389934", "0.6236707", "0.6232942", "0.6231487", "0.6219832", "0.62095255", "0.6206187", "0.6202315", "0.6191184", "0.61862993", "0.6183568" ]
0.0
-1
Derive a secret key from the encryption password
public static Map<String, String> aes256CtrArgon2HMacEncrypt( String plainText, String password) throws Exception { SecureRandom rand = new SecureRandom(); byte[] argon2salt = new byte[16]; rand.nextBytes(argon2salt); // Generate 128-bit salt byte[] argon2hash = Argon2Factory.createAdvanced( Argon2Factory.Argon2Types.ARGON2id).rawHash(16, 1 << 15, 2, password, argon2salt); Key secretKey = new SecretKeySpec(argon2hash, "AES"); // AES encryption: {plaintext + IV + secretKey} -> ciphertext byte[] aesIV = new byte[16]; rand.nextBytes(aesIV); // Generate 128-bit IV (salt) IvParameterSpec ivSpec = new IvParameterSpec(aesIV); Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding"); cipher.init(Cipher.ENCRYPT_MODE, secretKey, ivSpec); byte[] plainTextBytes = plainText.getBytes("utf8"); byte[] cipherBytes = cipher.doFinal(plainTextBytes); // Calculate the MAC of the plaintext with the derived argon2hash Mac mac = Mac.getInstance("HmacSHA256"); Key macKey = new SecretKeySpec(argon2hash, "HmacSHA256"); mac.init(macKey); byte[] hmac = mac.doFinal(plainText.getBytes("utf8")); var encryptedMsg = Map.of( "kdf", "argon2", "kdfSalt", Hex.toHexString(argon2salt), "cipher", "aes-256-ctr", "cipherIV", Hex.toHexString(aesIV), "cipherText", Hex.toHexString(cipherBytes), "mac", Hex.toHexString(hmac) ); return encryptedMsg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSecretByKey(String key);", "java.lang.String getServerSecret();", "private static SecretKeySpec generateKey(final String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n final MessageDigest digest = MessageDigest.getInstance(HASH_ALGORITHM);\n byte[] bytes = password.getBytes(\"UTF-8\");\n digest.update(bytes, 0, bytes.length);\n byte[] key = digest.digest();\n\n log(\"SHA-256 key \", key);\n\n SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n return secretKeySpec;\n }", "java.lang.String getSecret();", "String getSecret();", "public String getSecretKey();", "com.google.protobuf.ByteString getSecretBytes();", "PGPPrivateKey decryptSecretKey(PGPSecretKey secretKey, String password);", "private byte[] scryptDeriveKey(byte[] password, byte[] salt) {\n byte[] key = new byte[32];\n Stodium.checkStatus(Sodium.crypto_pwhash_scryptsalsa208sha256_ll(password, password.length, salt, salt.length, 512, 256, 1, key, key.length));\n return key;\n }", "protected SaltAndKey generateRandomAESKeyFromPasswordGetSalt(char[] password) throws GeneralSecurityException {\n fixPrng();\n // Generate random salt\n final byte [] salt = super.generateRandomBytes(PBE_SALT_LENGTH_BYTE);\n // Specifiy Key parameters\n final KeySpec keySpec = new PBEKeySpec(password, salt , PBE_ITERATIONS, AES_128);\n // Load the key factory\n final SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBE_ALGORITHM);\n // Generate random sequence for the key\n final byte[] temp = keyFactory.generateSecret(keySpec).getEncoded();\n // Return new key and salt the key was created with\n return new SaltAndKey(new SecretKeySpec(temp, AES_INSTANCE), salt);\n }", "@Override\n\tpublic byte[] deriveKey(String password, byte[] salt, int keyLen) {\n\t\ttry {\n\t\t SecretKeyFactory kf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n\t\t KeySpec specs = new PBEKeySpec(password.toCharArray(), salt, 1024, keyLen);\n\t\t SecretKey key = kf.generateSecret(specs);\n\t\t return key.getEncoded();\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t}", "public String getSecret(String key) throws ClassicDatabaseException,ClassicNotFoundException;", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "public abstract String getSecret();", "private String key() {\n return \"secret\";\n }", "public static SecretKey generateSecretKey(byte [] salt, char [] password) {\r\n\t\ttry {\r\n\t\t\t// create a PBE key specification\r\n\t\t\tPBEKeySpec spec = new PBEKeySpec(password, salt, SECRET_KEY_ITERATION, SYMMETRIC_KEY_LENGTH);\t\r\n\t\t\t// get a PBE factory class\r\n\t\t\tSecretKeyFactory factory = SecretKeyFactory.getInstance(secretKeyGenerationAlgorithm);\r\n\t\t\t// get a Password based key to use as key material\r\n\t\t\tbyte [] keyMaterial = factory.generateSecret(spec).getEncoded();\r\n\t\t\t// get an AES key from the material\r\n\t\t\treturn new SecretKeySpec(keyMaterial, symmetricKeyAlgorithm);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Internal error generating secret key\",e);\r\n\t\t}\r\n\t}", "public static CryptInfo deriveSecretKey(String password, int keyLen, String cryptAlgo) {\n byte[] salt = getRandomByte(keyLen);\n SecretKey secretKey = initSecretKey(password, keyLen, cryptAlgo, salt);\n return new CryptInfo(salt, secretKey);\n }", "private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }", "public static ECKey createFromPassphrase(String secret) {\n byte[] hash = null;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(secret.getBytes(\"UTF-8\"));\n hash = md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n ECKey key = new ECKey(new SecureRandom(hash));\n return key;\n }", "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "public static SecretKey getKey(char[] password, byte[] salt) throws InvalidKeySpecException, NoSuchAlgorithmException {\n\t\t// Get the Secret Key Generator\n\t\tSecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA256\");\n\t\t// Key Specification\n\t KeySpec spec = new PBEKeySpec(password, salt, C.KEY_ITERATE_NUM, 256);\n\t // Make Key for AES\n\t SecretKey secret = new SecretKeySpec(factory.generateSecret(spec).getEncoded(), \"AES\");\n\t return secret;\n\t}", "public String decodePassword(String encodedPassword, String key);", "Encryption encryption();", "private static Key generateKey(String secretKeyString) throws Exception {\n // generate secret key from string\n Key key = new SecretKeySpec(secretKeyString.getBytes(), \"AES\");\n return key;\n }", "String getCiphersPassphrase();", "protected SecretKey generateAESKeyFromPasswordSetSalt(char[] password, byte[] salt) throws GeneralSecurityException {\n fixPrng();\n // Specifiy Key parameters\n final KeySpec keySpec = new PBEKeySpec(password, salt , PBE_ITERATIONS, AES_128);\n // Load the key factory with the specified PBE Algorithm\n final SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBE_ALGORITHM);\n // Generate random sequence for the key\n final byte[] temp = keyFactory.generateSecret(keySpec).getEncoded();\n // Generate and return key\n return new SecretKeySpec(temp, AES_INSTANCE);\n }", "public String encodePassword(String normalPassword, String key);", "public SecretKey generarClaveSecreta() throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(\"AES\");\n keyGenerator.init(256);\n SecretKey secretKey = keyGenerator.generateKey();\n return secretKey;\n }", "private SecretKey createSecretKey(String password, byte[] salt) throws InvalidKeySpecException\n {\n PBEKeySpec spec = new PBEKeySpec(password.toCharArray(), salt,\n KEYHASH_ITERATION_COUNT, KEY_LENGTH);\n SecretKey tmp = secretKeyFactory.generateSecret(spec);\n return new SecretKeySpec(tmp.getEncoded(), \"AES\");\n }", "com.google.protobuf.ByteString\n getServerSecretBytes();", "void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }", "public static byte[] getSecret()\r\n/* 136: */ {\r\n/* 137: */ try\r\n/* 138: */ {\r\n/* 139:122 */ return getPropertyBytes(\"secret\");\r\n/* 140: */ }\r\n/* 141: */ catch (Exception e)\r\n/* 142: */ {\r\n/* 143:124 */ log.warning(\"Error getting secret: \" + e.getMessage());\r\n/* 144: */ }\r\n/* 145:126 */ return new byte[0];\r\n/* 146: */ }", "public static void generateKey(byte[] salt, String password) {\n PBEKeySpec spec = new PBEKeySpec(password.toCharArray(), salt, ITERATIONS, KEY_LENGTH);\n try {\n SecretKeyFactory keyfact = SecretKeyFactory.getInstance(PROVIDER);\n localKey = keyfact.generateSecret(spec);\n } catch (Exception e) {\n throw new AssertionError(\"Error while hashing a password: \" + e.getMessage(), e);\n }\n }", "byte[] get_node_secret();", "protected SecretKey generateRandomAESKey() throws GeneralSecurityException {\n fixPrng();\n // Instantiante KeyGenerator\n KeyGenerator keyGenerator = KeyGenerator.getInstance(AES_INSTANCE);\n // Initialize generator with the desired keylength\n keyGenerator.init(AES_128);\n // Return new key\n return keyGenerator.generateKey();\n }", "private static SecretKeySpec getSecretKeySpec(String password) throws Exception {\n return new SecretKeySpec(password.getBytes(), KEY_ALGORITHM);\n }", "public String getEncryptedPassword(String password) throws Exception\n {\n // PBKDF2 with SHA-1 as the hashing algorithm. Note that the NIST\n // specifically names SHA-1 as an acceptable hashing algorithm for PBKDF2\n String algorithm = \"PBKDF2WithHmacSHA1\";\n // SHA-1 generates 160 bit hashes, so that's what makes sense here\n int derivedKeyLength = 160;\n // Pick an iteration count that works for you. \n // The NIST recommends at least 1,000 iterations:\n // http://csrc.nist.gov/publications/nistpubs/800-132/nist-sp800-132.pdf\n int iterations = 3145;\n KeySpec spec = new PBEKeySpec(password.toCharArray(), salt, iterations, derivedKeyLength);\n SecretKeyFactory f = SecretKeyFactory.getInstance(algorithm);\n return base64Encode(f.generateSecret(spec).getEncoded());\n }", "public static String encrypt(String secret) {\n return BCrypt.hashpw(secret, BCrypt.gensalt(SALT_SIZE));\n }", "public String Crypt(String s);", "public static ECKey createKeyFromSha256Passphrase(String secret) {\n byte[] hash = null;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(secret.getBytes(\"UTF-8\"));\n hash = md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n @SuppressWarnings(\"deprecation\")\n ECKey key = new ECKey(hash, (byte[])null);\n return key;\n }", "private String pswd(){\n try{\n PBEKeySpec spec = new PBEKeySpec(this.Creator.toUpperCase().toCharArray(), this.Time.getBytes(), 100, 512);\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n //System.out.println(\"pswd=\"+this.toHex(skf.generateSecret(spec).getEncoded()));\n return this.toHex(skf.generateSecret(spec).getEncoded());\n }catch(InvalidKeySpecException | NoSuchAlgorithmException e){\n e.printStackTrace();\n }\n return null;\n }", "public int getSecret() {\n return secret;\n }", "public static Key generarKey() throws Exception{\n Key key = new SecretKeySpec(keyvalue, instancia); \n return key;\n }", "String generateHashFromPassword(String password, byte[] salt);", "private String deriveKey(String password, String salt, OperationCount operationType, int count) {\n byte[] saltAsByteArray = salt == null ? null : Helper.hexStringToByteArray(salt);\n byte[] key = deriveKey(password, saltAsByteArray, operationType, count);\n return byteArrayToHexString(key);\n }", "private SecretKey generateSecretKey() throws NoSuchAlgorithmException {\n final KeyGenerator keygen = KeyGenerator.getInstance(KEYSPEC_ALGORITHM);\n keygen.init(KEY_SIZE, mRandom);\n return keygen.generateKey();\n }", "public static SecretKey createSecretKey() throws KeyGenerationException {\n\t\treturn cipherKeyProvider.createKey(KEY_LENGTH, GENERATOR_TYPE);\n\t}", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public Key generateKey2(int l) throws IOException{\n int b = l/32;\r\n int [] unos = new int[b];\r\n for(int i=0;i<b;i++){\r\n unos[i] = 1;\r\n }\r\n byte [] aB = int2byte(unos);\r\n\r\n return new SecretKeySpec(aB, \"AES\");\r\n }", "public BigInteger getSharedSecret(BigInteger composite)\n {\n return composite.modPow(privateKey, modulus);\n }", "private String encrypt_password(String password)\r\n\t{\r\n\t\tString generated_password = null;\r\n try\r\n {\r\n\r\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n md.update(password.getBytes());\r\n byte[] bytes = md.digest();\r\n StringBuilder sb = new StringBuilder();\r\n for(int i=0; i< bytes.length ;i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n generated_password=sb.toString();\r\n }\r\n catch (NoSuchAlgorithmException e)\r\n {\r\n \r\n }\r\n return generated_password;\r\n\t}", "public String deriveKey(String password, String salt, int iterations) throws SecurityException {\n return deriveKey(password, salt, OperationCount.ITERATIONS, iterations);\n }", "public static String keyGen(String password) {\n\n String duplicatePassword = String.valueOf(password.charAt(0));\n //This will be the duplicate of the pw & will be used to delete repeats\n //The first character of password is added to this no matter what\n\n boolean duplicate = false;\n //This boolean stores whether or not the character is duplicated\n\n for (int i = 0; i < password.length(); i++) {\n //This will actually duplicate possibleSolutions into duplicateList\n for (int j = 0; j < duplicatePassword.length(); j++) {\n if (password.charAt(i) == duplicatePassword.charAt(j)) {\n duplicate = true;\n }\n }\n if (duplicate == false) {\n //If the char makes it through the loop without being a repeat\n duplicatePassword += password.charAt(i);\n } else {\n duplicate = false;\n }\n }\n password = duplicatePassword;\n\n String genesisKey = password; //Places pw at the start of initialKey\n boolean isTheCharacterAlreadyInThePassword;\n\n for (int i = 0; i < allCharacters.length(); i++) {\n isTheCharacterAlreadyInThePassword = false;\n for (int j = 0; j < password.length(); j++) {\n if (allCharacters.charAt(i) == password.charAt(j)) {\n isTheCharacterAlreadyInThePassword = true;\n }\n }\n if (isTheCharacterAlreadyInThePassword == false) {\n genesisKey += allCharacters.charAt(i);\n }\n }\n\n initialKey = genesisKey; //initialKey created\n return initialKey;\n\n }", "public String hashSale(String pwd){\n char[] password = pwd.toCharArray();\n byte[] sel = SALT.getBytes();\n //String Hex = Hex.encodeHexString(res);\n\n try{\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA512\");\n PBEKeySpec spec = new PBEKeySpec(password, sel, 3567, 512);\n SecretKey key = skf.generateSecret(spec);\n byte[] res = key.getEncoded();\n return res.toString();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }", "public static SecretKey generateKey(char[] passphraseOrPin, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException {\n final int iterations = 1000;\n\n // Generate a 256-bit key\n final int outputKeyLength = 177;\n\n SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n KeySpec keySpec = new PBEKeySpec(passphraseOrPin, salt, iterations, outputKeyLength);\n SecretKey secretKey = secretKeyFactory.generateSecret(keySpec);\n\n return secretKey;\n }", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "private static String generateSecret(Accessor accessor, Consumer consumer) {\n return generateHash(accessor.getToken() + consumer.getSecret() + System.nanoTime());\n }", "String password();", "DBOOtpSecret storeSecret(Long userId, String secret);", "public String getKeyPrivate() throws LibMCryptException {\n\t\t\r\n\t\tString privateK = priK.getModulus().toString(16);\r\n\t\treturn privateK;\r\n\t}", "public byte[] encrypto(String base) throws Exception {\n\t\tSecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBKDF2);\r\n\t\tKeySpec pbeKeySpec = new PBEKeySpec(\"password\".toCharArray(), \"salt\".getBytes(), 1023, 128);\r\n\t\tSecretKey pbeSecretKey = keyFactory.generateSecret(pbeKeySpec);\r\n\t\t// Create SecretKey for AES by KeyFactory-With-Hmac\r\n\t\tSecretKey aesSecretKey = new SecretKeySpec(pbeSecretKey.getEncoded(), AES);\r\n\t\t\r\n\t\tCipher cipher = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n//\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey, SecureRandom.getInstance(\"SHA1PRNG\"));\r\n\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey);\r\n\t\tbyte[] encrypted = cipher.doFinal(base.getBytes());\r\n\r\n\t\tSystem.out.println(\"IV: \" + new String(cipher.getIV()));\r\n\t\tSystem.out.println(\"AlgorithmParameter: \" + cipher.getParameters().getEncoded());\r\n\t\tCipher decryptor = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n\t\tdecryptor.init(Cipher.DECRYPT_MODE, aesSecretKey, new IvParameterSpec(cipher.getIV()));\r\n\t\tSystem.out.println(\"Decrypted: \" + new String(decryptor.doFinal(encrypted)));\r\n\t\t\r\n\t\treturn encrypted;\r\n\t}", "public static HydraKey generateKey() throws NoSuchAlgorithmException {\n // Sets the keygenerator to use blowfish key\n KeyGenerator keygen = KeyGenerator.getInstance(ALGORITHM_DEFAULT);\n keygen.init(128); // set a keylength of 128 bits\n SecretKey secret_key = keygen.generateKey();\n HydraKey hk = new HydraKey(secret_key.getEncoded(), ALGORITHM_DEFAULT);\n return hk;\n }", "public SecretKey getSecretKey() {\n return secretKey;\n }", "public String decode( String encodedPassword );", "public String getSecretKey() {\n return properties.getProperty(SECRET_KEY);\n }", "protected abstract char[] getPassword(String id)\n throws KeyStorageException, IOException;", "private SecretKey generatePukBaseKey(byte[] derivedKeyBytes) {\n // Extract bytes 10-25 as recovery puk base key bytes\n final byte[] recoveryPukBaseKeyBytes = new byte[16];\n System.arraycopy(derivedKeyBytes, 10, recoveryPukBaseKeyBytes, 0, 16);\n return keyConvertor.convertBytesToSharedSecretKey(recoveryPukBaseKeyBytes);\n }", "public String getSecretKey() {\n return secretKey;\n }", "public static SecretKey generateSecretKey() {\r\n\t\t// generate a secret symmetric key\r\n\t\ttry {\r\n\t\t\tKeyGenerator keyGenerator = KeyGenerator.getInstance(symmetricKeyAlgorithm);\r\n\t\t\tkeyGenerator.init(SYMMETRIC_KEY_LENGTH);\r\n\t\t\treturn keyGenerator.generateKey();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Internal Error-- unable to generate key\",e);\r\n\t\t}\r\n\t}", "public static String generateHalfKey(){\n return randomChars(HALF_KEY_LENGTH);\n }", "private static Key generateKey() throws NoSuchAlgorithmException {\r\n\t\tif (key == null) {\r\n\t\t\tgenerator = KeyGenerator.getInstance(\"DES\");\r\n\t\t\tgenerator.init(new SecureRandom());\r\n\t\t\tkey = generator.generateKey();\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "public byte[] deriveKey(String password, byte[] salt, int iterations) throws SecurityException {\n return deriveKey(password, salt, OperationCount.ITERATIONS, iterations);\n }", "String decrypt(PBEncryptStorage pbeStorage, String password, byte[] salt);", "String hashPassword(String password);", "public final KeyPair generateKeyPair() {\n\t\tif (SECURE_RANDOM == null) {\n\t\t\tSECURE_RANDOM = new SecureRandom();\n\t\t}\n\t\t// for p and q we divide the bits length by 2 , as they create n, \n\t\t// which is the modulus and actual key size is depend on it\n\t\tBigInteger p = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\tBigInteger q;\n\t\tdo {\n\t\t\tq = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\t} while (q.compareTo(p) == 0);\n\n\t\t// lambda = lcm(p-1, q-1) = (p-1)*(q-1)/gcd(p-1, q-1)\n\t\tBigInteger lambda = p.subtract(BigInteger.ONE).multiply(q\n\t\t\t\t.subtract(BigInteger.ONE)).divide(p.subtract(BigInteger.ONE)\n\t\t\t\t.gcd(q.subtract(BigInteger.ONE)));\n\n\t\tBigInteger n = p.multiply(q); // n = p*q\n\t\tBigInteger nsquare = n.multiply(n); // nsquare = n*n\n\t\tBigInteger g;\n\t\tdo {\n\t\t\t// generate g, a random integer in Z*_{n^2}\n\t\t\tdo {\n\t\t\t\tg = new BigInteger(STRENGTH, 64, SECURE_RANDOM);\n\t\t\t} while (g.compareTo(nsquare) >= 0\n\t\t\t\t\t|| g.gcd(nsquare).intValue() != 1);\n\n\t\t\t// verify g, the following must hold: gcd(L(g^lambda mod n^2), n) =\n\t\t\t// 1,\n\t\t\t// where L(u) = (u-1)/n\n\t\t} while (g.modPow(lambda, nsquare).subtract(BigInteger.ONE).divide(n)\n\t\t\t\t.gcd(n).intValue() != 1);\n\n\t\t// mu = (L(g^lambda mod n^2))^{-1} mod n, where L(u) = (u-1)/n\n\t\tBigInteger mu = g.modPow(lambda, nsquare).subtract(BigInteger.ONE)\n\t\t\t\t.divide(n).modInverse(n);\n\n\t\tPaillierPublicKey publicKey = new PaillierPublicKey(n, g, nsquare);\n\t\tPaillierPrivateKey privateKey = new PaillierPrivateKey(lambda, mu,\n\t\t\t\tnsquare, n);\n\n\t\treturn new KeyPair(publicKey, privateKey);\n\t}", "String getUserPasswordHash();", "private static String hashPassword(String password) throws NoSuchAlgorithmException, InvalidKeySpecException {\n\n char[] passwordChar = password.toCharArray();\n byte[] salt = getSalt();\n PBEKeySpec spec = new PBEKeySpec(passwordChar, salt, 1000, 64 * 8);\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n byte[] hash = skf.generateSecret(spec).getEncoded();\n return toHex(salt) + \":\" + toHex(hash);\n }", "public EncryptedPrivateKey mo42978a(@NonNull Wallet izVar, String str) {\n SaplingEncryptedKey brt = new SaplingEncryptedKey();\n izVar.encryptPrivateKeyByPwd(getCopyBytes(), (EncryptedPrivateKey) brt, str);\n return brt;\n }", "com.google.protobuf.ByteString\n getPasswordBytes();", "public SecretKey passwordToHash(char[] pcaPassword, byte[] pbaSalt)\n\t{\n\t\t/* Derive the key, given password and salt. */\n\t\tSecretKeyFactory factory = null;\n\t\tKeySpec spec = null;\n\t\tSecretKey tmp2 = null;\n\t\ttry\n\t\t{\n\t\t\tfactory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA512\");\n\t\t\tspec = new PBEKeySpec(pcaPassword, pbaSalt, 65536, 256);\n\t\t\ttmp2 = factory.generateSecret(spec);\n\t\t}\n\t\tcatch (NoSuchAlgorithmException | InvalidKeySpecException e)\n\t\t{\n\t\t\tlogger.fatal(\"security password to hash failed: \" + e.getMessage());\n\t\t}\n\t\treturn tmp2;\n\t}", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public int generateKey() {\n SecureRandom secureRandom = new SecureRandom();\n try {\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return secureRandom.nextInt(26);\n }", "public static byte[] getEncryptRawKey() {\n\n try {\n /*byte[] bytes64Key = App.RealmEncryptionKey.getBytes(\"UTF-8\");\n KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n sr.setSeed(bytes64Key);\n kgen.init(128, sr);\n SecretKey skey = kgen.generateKey();\n byte[] raw = skey.getEncoded();*/\n\n byte[] key = new BigInteger(App.RealmEncryptionKey, 16).toByteArray();\n return key;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public SecretKey getKeyFromString(String keyString){\n byte[] decodedKey = DatatypeConverter.parseBase64Binary(keyString);\n SecretKey key = new SecretKeySpec(decodedKey, 0, decodedKey.length, \"AES\");\n return key;\n }", "public String hashPassword(String plainTextPassword);", "public final byte[] getEncryptedPassword(String password, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException \n\t{\n\t\tString algorithm = \"PBKDF2WithHmacSHA1\";\n\t\t//SH1 generate 160 bit hashes, so here is what makes sense.\n\t\tint derivedKeyLength = 160;\n\t\tint iteration = 20000;\n\t\tKeySpec spec = new PBEKeySpec(password.toCharArray(),salt, iteration, derivedKeyLength);\n\t\tSecretKeyFactory f = SecretKeyFactory.getInstance(algorithm);\n\t\treturn f.generateSecret(spec).getEncoded();\n\t}", "void decryptMessage(String Password);", "public static SecretKey passSecretKey(char[] password, byte[] salt,\r\n\t\t\tString algorithm) {\r\n\t\tPBEKeySpec mykeyspec = null;\r\n\t\tSecretKey key = null;\r\n\t\ttry {\r\n\t\t\tfinal int HASH_ITERATIONS = 10000;\r\n\t\t\tfinal int KEY_LENGTH = 256;\r\n\t\t\tmykeyspec = new PBEKeySpec(password, salt, HASH_ITERATIONS,\r\n\t\t\t\t\tKEY_LENGTH);\r\n\r\n\t\t\tSet<String> algor = Security.getAlgorithms(\"Cipher\");\r\n\t\t\tkey = SecretKeyFactory.getInstance((String) (algor.toArray())[0])\r\n\t\t\t\t\t.generateSecret(mykeyspec);\r\n\t\t} catch (NoSuchAlgorithmException ex) {\r\n\t\t\tLogger.getLogger(AES.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t} catch (InvalidKeySpecException ex) {\r\n\t\t\tLogger.getLogger(AES.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "String getSaltedHash();", "Password getPsw();", "public PrivateKey makePrivateKey() {\n return new PrivateKey(decryptingBigInt, primesMultiplied);\n }", "OpenSSLKey mo134201a();", "private void createDerivedKey() throws NoSuchAlgorithmException, InvalidKeySpecException, IOException {\n byte[] salt = null;\n int numIterations;\n derivedKey = null;\n \n // read salt + numIterations from file if available\n File derivParamFile = configuration.getKeyDerivationParametersFile();\n if (derivParamFile.exists()) {\n DataInputStream inputStream = null;\n try {\n inputStream = new DataInputStream(new FileInputStream(derivParamFile));\n salt = new byte[FileEncryptionConstants.SALT_LENGTH];\n inputStream.read(salt);\n numIterations = inputStream.readInt();\n byte[] key = FileEncryptionUtil.getEncryptionKey(password, salt, numIterations);\n derivedKey = new DerivedKey(salt, numIterations, key);\n }\n finally {\n if (inputStream != null)\n inputStream.close();\n }\n }\n \n // if necessary, create a new salt and key and write the derivation parameters to the cache file\n if (derivedKey==null || derivedKey.numIterations!=NUM_ITERATIONS) {\n I2PAppContext appContext = I2PAppContext.getGlobalContext();\n salt = new byte[SALT_LENGTH];\n appContext.random().nextBytes(salt);\n \n DataOutputStream outputStream = null;\n try {\n byte[] key = FileEncryptionUtil.getEncryptionKey(password, salt, NUM_ITERATIONS);\n derivedKey = new DerivedKey(salt, NUM_ITERATIONS, key);\n outputStream = new DataOutputStream(new FileOutputStream(derivParamFile));\n outputStream.write(salt);\n outputStream.writeInt(NUM_ITERATIONS);\n }\n finally {\n if (outputStream != null)\n outputStream.close();\n }\n }\n }", "public Secret readSecret(final ArtifactVersion version);" ]
[ "0.7311319", "0.7160956", "0.71366006", "0.7088336", "0.6910872", "0.67576295", "0.6738879", "0.6715641", "0.66037184", "0.6575737", "0.6573041", "0.65591407", "0.6535905", "0.65155685", "0.6509055", "0.64869404", "0.64508486", "0.6450635", "0.6418441", "0.6417898", "0.63995075", "0.63898915", "0.6375258", "0.6343237", "0.6320781", "0.6286581", "0.62853956", "0.6281723", "0.62803423", "0.6274968", "0.62670517", "0.6258421", "0.623805", "0.62097955", "0.61620283", "0.61517674", "0.6120317", "0.61158735", "0.6104181", "0.60556364", "0.60372996", "0.60307527", "0.60256624", "0.6012478", "0.59866035", "0.59775454", "0.59720147", "0.5967864", "0.593181", "0.59049433", "0.58911276", "0.5889842", "0.5881798", "0.587904", "0.58675534", "0.5851113", "0.5851113", "0.58409166", "0.58271635", "0.5826627", "0.58141893", "0.58019894", "0.5801796", "0.5798812", "0.5789871", "0.5788955", "0.57877517", "0.5781046", "0.5778481", "0.57765114", "0.577523", "0.57724893", "0.57677484", "0.57584697", "0.57495826", "0.5740133", "0.57352686", "0.57352126", "0.572155", "0.57203287", "0.57149804", "0.57134354", "0.57134354", "0.57134354", "0.57134354", "0.57134354", "0.57134354", "0.57134354", "0.57116663", "0.5702963", "0.56972295", "0.56959194", "0.5680797", "0.5673679", "0.5670033", "0.5667685", "0.5665875", "0.56652755", "0.5664106", "0.5659163", "0.56527007" ]
0.0
-1
Derive the secret key from the encryption password with argon2salt
static String aes256CtrArgon2HMacDecrypt( Map<String, String> encryptedMsg, String password) throws Exception { byte[] argon2salt = Hex.decode(encryptedMsg.get("kdfSalt")); byte[] argon2hash = Argon2Factory.createAdvanced( Argon2Factory.Argon2Types.ARGON2id).rawHash(16, 1 << 15, 2, password, argon2salt); // AES decryption: {cipherText + IV + secretKey} -> plainText byte[] aesIV = Hex.decode(encryptedMsg.get("cipherIV")); IvParameterSpec ivSpec = new IvParameterSpec(aesIV); Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding"); Key secretKey = new SecretKeySpec(argon2hash, "AES"); cipher.init(Cipher.DECRYPT_MODE, secretKey, ivSpec); byte[] cipherTextBytes = Hex.decode(encryptedMsg.get("cipherText")); byte[] plainTextBytes = cipher.doFinal(cipherTextBytes); String plainText = new String(plainTextBytes, "utf8"); // Calculate and check the MAC code: HMAC(plaintext, argon2hash) Mac mac = Mac.getInstance("HmacSHA256"); Key macKey = new SecretKeySpec(argon2hash, "HmacSHA256"); mac.init(macKey); byte[] hmac = mac.doFinal(plainText.getBytes("utf8")); String decodedMac = Hex.toHexString(hmac); String cipherTextMac = encryptedMsg.get("mac"); if (! decodedMac.equals(cipherTextMac)) { throw new InvalidKeyException("MAC does not match: maybe wrong password"); } return plainText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[] scryptDeriveKey(byte[] password, byte[] salt) {\n byte[] key = new byte[32];\n Stodium.checkStatus(Sodium.crypto_pwhash_scryptsalsa208sha256_ll(password, password.length, salt, salt.length, 512, 256, 1, key, key.length));\n return key;\n }", "java.lang.String getServerSecret();", "java.lang.String getSecret();", "@Override\n\tpublic byte[] deriveKey(String password, byte[] salt, int keyLen) {\n\t\ttry {\n\t\t SecretKeyFactory kf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n\t\t KeySpec specs = new PBEKeySpec(password.toCharArray(), salt, 1024, keyLen);\n\t\t SecretKey key = kf.generateSecret(specs);\n\t\t return key.getEncoded();\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t}", "String getSecret();", "protected SaltAndKey generateRandomAESKeyFromPasswordGetSalt(char[] password) throws GeneralSecurityException {\n fixPrng();\n // Generate random salt\n final byte [] salt = super.generateRandomBytes(PBE_SALT_LENGTH_BYTE);\n // Specifiy Key parameters\n final KeySpec keySpec = new PBEKeySpec(password, salt , PBE_ITERATIONS, AES_128);\n // Load the key factory\n final SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBE_ALGORITHM);\n // Generate random sequence for the key\n final byte[] temp = keyFactory.generateSecret(keySpec).getEncoded();\n // Return new key and salt the key was created with\n return new SaltAndKey(new SecretKeySpec(temp, AES_INSTANCE), salt);\n }", "String getSecretByKey(String key);", "String getSaltedHash();", "String generateHashFromPassword(String password, byte[] salt);", "protected SecretKey generateAESKeyFromPasswordSetSalt(char[] password, byte[] salt) throws GeneralSecurityException {\n fixPrng();\n // Specifiy Key parameters\n final KeySpec keySpec = new PBEKeySpec(password, salt , PBE_ITERATIONS, AES_128);\n // Load the key factory with the specified PBE Algorithm\n final SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBE_ALGORITHM);\n // Generate random sequence for the key\n final byte[] temp = keyFactory.generateSecret(keySpec).getEncoded();\n // Generate and return key\n return new SecretKeySpec(temp, AES_INSTANCE);\n }", "private static byte[] generateSalt() {\n byte[] salt = new byte[Constants.CIPHER_SALT_LENGTH];\n SecureRandom rand = new SecureRandom();\n rand.nextBytes(salt);\n return salt;\n }", "private String createSalt()\r\n {\r\n SecureRandom random = new SecureRandom();\r\n byte bytes[] = new byte[20];\r\n random.nextBytes(bytes);\r\n StringBuilder sb = new StringBuilder();\r\n\r\n for (int i = 0; i < bytes.length; i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n\r\n String salt = sb.toString();\r\n return salt;\r\n }", "private static byte[] getSalt() throws NoSuchAlgorithmException\n {\n SecureRandom sr = SecureRandom.getInstance(prngAlgo);\n //Create array for salt\n byte[] salt = new byte[16];\n //Get a random salt\n sr.nextBytes(salt);\n //return salt\n return salt;\n }", "public abstract String getSecret();", "private static String getSalt() {\n\t\tSecureRandom gen = new SecureRandom();\n\t\tbyte[] salt = new byte[32];\n\t\tgen.nextBytes(salt);\n\t\treturn DatatypeConverter.printBase64Binary(salt);\n\t}", "String getCiphersPassphrase();", "com.google.protobuf.ByteString getSecretBytes();", "public String encodePassword(String normalPassword, String key);", "java.lang.String getSaltData();", "private static SecretKeySpec generateKey(final String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n final MessageDigest digest = MessageDigest.getInstance(HASH_ALGORITHM);\n byte[] bytes = password.getBytes(\"UTF-8\");\n digest.update(bytes, 0, bytes.length);\n byte[] key = digest.digest();\n\n log(\"SHA-256 key \", key);\n\n SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n return secretKeySpec;\n }", "public static byte[] SaltHashPwd(String username, String password) throws Exception\n\t{\n\t\tbyte[] user;\n\t\tbyte[] salt = new byte[16];\n\t\t\n\t\tbyte[] passwordHash;\n\t\tbyte[] fixedLengthPasswordHash = new byte[30];\n\t\t\n\t\t//assign value to all the parameters\n\t\tByteBuffer userBytes = ByteBuffer.allocate(100);\n\t\tuserBytes.put(username.getBytes());\n\t\tuser = userBytes.array();\n\t\trd.nextBytes(salt);\n\t\n\t\t\n\t\t\n\t\tAes aes = new Aes(Utility.pwdEncryptKey);\n\t\tbyte[] saltedPwd = Utility.concat2byte(salt, password.getBytes());\t\t\n\t\tpasswordHash = aes.hmac.getmac(saltedPwd);\n\t\tfixedLengthPasswordHash = Arrays.copyOf(passwordHash, fixedLengthPasswordHash.length);\n\t\t\n//\t\tSystem.out.println(\"truncate hashpassword= \" +fixedLengthPasswordHash+ \", length= \"+ fixedLengthPasswordHash.length);\n\t\t\n\t\tbyte[] entryByte = Utility.concat3byte(user, salt, fixedLengthPasswordHash);\n\t\t\t\n\t\n//\t\tSystem.out.println(\"Before encrypt length: \"+entryByte.length);\n\t\t//System.out.println(\"Before encrypt: \"+ Utility.ByteToString(entryByte));\n\t\treturn entryByte;\n\t\t//return aes.encrypt(entryByte);\n\t\t\n\t}", "public static void generateKey(byte[] salt, String password) {\n PBEKeySpec spec = new PBEKeySpec(password.toCharArray(), salt, ITERATIONS, KEY_LENGTH);\n try {\n SecretKeyFactory keyfact = SecretKeyFactory.getInstance(PROVIDER);\n localKey = keyfact.generateSecret(spec);\n } catch (Exception e) {\n throw new AssertionError(\"Error while hashing a password: \" + e.getMessage(), e);\n }\n }", "public String getSalt()\n {\n return base64Encode(salt);\n }", "private static byte[] getSalt() throws NoSuchAlgorithmException {\n\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n byte[] salt = new byte[16];\n sr.nextBytes(salt);\n return salt;\n }", "private String deriveKey(String password, String salt, OperationCount operationType, int count) {\n byte[] saltAsByteArray = salt == null ? null : Helper.hexStringToByteArray(salt);\n byte[] key = deriveKey(password, saltAsByteArray, operationType, count);\n return byteArrayToHexString(key);\n }", "public static byte[] generateSalt() throws GeneralSecurityException { \n return CryptorFunctions.getRandomBytes(SECRETKEY_DERIVATION_SALT_SIZE_BYTE);\n }", "public static SecretKey getKey(char[] password, byte[] salt) throws InvalidKeySpecException, NoSuchAlgorithmException {\n\t\t// Get the Secret Key Generator\n\t\tSecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA256\");\n\t\t// Key Specification\n\t KeySpec spec = new PBEKeySpec(password, salt, C.KEY_ITERATE_NUM, 256);\n\t // Make Key for AES\n\t SecretKey secret = new SecretKeySpec(factory.generateSecret(spec).getEncoded(), \"AES\");\n\t return secret;\n\t}", "Encryption encryption();", "String hashPassword(String salt, String password);", "com.google.protobuf.ByteString\n getServerSecretBytes();", "public String hashSale(String pwd){\n char[] password = pwd.toCharArray();\n byte[] sel = SALT.getBytes();\n //String Hex = Hex.encodeHexString(res);\n\n try{\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA512\");\n PBEKeySpec spec = new PBEKeySpec(password, sel, 3567, 512);\n SecretKey key = skf.generateSecret(spec);\n byte[] res = key.getEncoded();\n return res.toString();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }", "PBEncryptStorage encrypt(String inputString, String password, byte[] salt);", "public String getSecret(String key) throws ClassicDatabaseException,ClassicNotFoundException;", "String decrypt(PBEncryptStorage pbeStorage, String password, byte[] salt);", "byte[] get_node_secret();", "public String getSecretKey();", "private void generateSalt(Player player) throws NoSuchAlgorithmException {\n byte[] salt = SecureRandom.getInstance(\"SHA1PRNG\").generateSeed(32);\n player.setSalt(salt);\n }", "public String generateSalt()\r\n\t{\r\n\t\tfinal Random r = new SecureRandom();\r\n\t\tbyte[] byteSalt = new byte[32];\r\n\t\tr.nextBytes(byteSalt);\r\n\t\tsalt = DatatypeConverter.printBase64Binary(byteSalt);\r\n\r\n\t\treturn salt;\r\n\t}", "private SecretKey createSecretKey(String password, byte[] salt) throws InvalidKeySpecException\n {\n PBEKeySpec spec = new PBEKeySpec(password.toCharArray(), salt,\n KEYHASH_ITERATION_COUNT, KEY_LENGTH);\n SecretKey tmp = secretKeyFactory.generateSecret(spec);\n return new SecretKeySpec(tmp.getEncoded(), \"AES\");\n }", "public String deriveKey(String password, String salt, int iterations) throws SecurityException {\n return deriveKey(password, salt, OperationCount.ITERATIONS, iterations);\n }", "public static SecretKey generateSecretKey(byte [] salt, char [] password) {\r\n\t\ttry {\r\n\t\t\t// create a PBE key specification\r\n\t\t\tPBEKeySpec spec = new PBEKeySpec(password, salt, SECRET_KEY_ITERATION, SYMMETRIC_KEY_LENGTH);\t\r\n\t\t\t// get a PBE factory class\r\n\t\t\tSecretKeyFactory factory = SecretKeyFactory.getInstance(secretKeyGenerationAlgorithm);\r\n\t\t\t// get a Password based key to use as key material\r\n\t\t\tbyte [] keyMaterial = factory.generateSecret(spec).getEncoded();\r\n\t\t\t// get an AES key from the material\r\n\t\t\treturn new SecretKeySpec(keyMaterial, symmetricKeyAlgorithm);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Internal error generating secret key\",e);\r\n\t\t}\r\n\t}", "public byte[] deriveKey(String password, byte[] salt, int iterations) throws SecurityException {\n return deriveKey(password, salt, OperationCount.ITERATIONS, iterations);\n }", "public static String getPassHash(String password, String salt) {\n String algorithm = \"PBKDF2WithHmacSHA1\";\n int derivedKeyLength = 160; // for SHA1\n int iterations = 20000; // NIST specifies 10000\n\n byte[] saltBytes = Base64.getDecoder().decode(salt);\n KeySpec spec = new PBEKeySpec(password.toCharArray(), saltBytes, iterations, derivedKeyLength);\n\n SecretKeyFactory f = null;\n try {\n f = SecretKeyFactory.getInstance(algorithm);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n byte[] encBytes = null;\n try {\n encBytes = f.generateSecret(spec).getEncoded();\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n }\n return Base64.getEncoder().encodeToString(encBytes);\n }", "public String Crypt(String s);", "public static String encrypt(String secret) {\n return BCrypt.hashpw(secret, BCrypt.gensalt(SALT_SIZE));\n }", "public static CryptInfo deriveSecretKey(String password, int keyLen, String cryptAlgo) {\n byte[] salt = getRandomByte(keyLen);\n SecretKey secretKey = initSecretKey(password, keyLen, cryptAlgo, salt);\n return new CryptInfo(salt, secretKey);\n }", "private static String getEncryptedStoredPassword(String args[]) {\n return args[1].trim() ;\n }", "public static String generateSalt() throws NoSuchAlgorithmException {\n byte[] salt = null;\n salt = \"itdc@SYS=2\".getBytes();\n return toHexString(salt);\n }", "public final byte[] getEncryptedPassword(String password, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException \n\t{\n\t\tString algorithm = \"PBKDF2WithHmacSHA1\";\n\t\t//SH1 generate 160 bit hashes, so here is what makes sense.\n\t\tint derivedKeyLength = 160;\n\t\tint iteration = 20000;\n\t\tKeySpec spec = new PBEKeySpec(password.toCharArray(),salt, iteration, derivedKeyLength);\n\t\tSecretKeyFactory f = SecretKeyFactory.getInstance(algorithm);\n\t\treturn f.generateSecret(spec).getEncoded();\n\t}", "public static SecretKey generateKey(char[] passphraseOrPin, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException {\n final int iterations = 1000;\n\n // Generate a 256-bit key\n final int outputKeyLength = 177;\n\n SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n KeySpec keySpec = new PBEKeySpec(passphraseOrPin, salt, iterations, outputKeyLength);\n SecretKey secretKey = secretKeyFactory.generateSecret(keySpec);\n\n return secretKey;\n }", "public byte[] generateSalt()\n\t{\n\t\tSecureRandom sr = new SecureRandom();\n\t\tbyte[] ret = new byte[256];\n\t\tsr.nextBytes(ret);\n\t\treturn ret;\n\t}", "private byte[] getRandomSalt() {\n\t\tbyte[] randomSalt = new byte[SALT_LENGTH];\n\t\tSecureRandom secureRandom = new SecureRandom();\n\t\tsecureRandom.nextBytes(randomSalt);\n\t\treturn randomSalt;\n\t}", "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "public static String getNewSalt() {\n // Don't use Random!\n SecureRandom random = null;\n try {\n random = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n // NIST recommends minimum 4 bytes. We use 8.\n byte[] salt = new byte[8];\n random.nextBytes(salt);\n return Base64.getEncoder().encodeToString(salt);\n }", "private String key() {\n return \"secret\";\n }", "public byte[] encrypto(String base) throws Exception {\n\t\tSecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBKDF2);\r\n\t\tKeySpec pbeKeySpec = new PBEKeySpec(\"password\".toCharArray(), \"salt\".getBytes(), 1023, 128);\r\n\t\tSecretKey pbeSecretKey = keyFactory.generateSecret(pbeKeySpec);\r\n\t\t// Create SecretKey for AES by KeyFactory-With-Hmac\r\n\t\tSecretKey aesSecretKey = new SecretKeySpec(pbeSecretKey.getEncoded(), AES);\r\n\t\t\r\n\t\tCipher cipher = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n//\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey, SecureRandom.getInstance(\"SHA1PRNG\"));\r\n\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey);\r\n\t\tbyte[] encrypted = cipher.doFinal(base.getBytes());\r\n\r\n\t\tSystem.out.println(\"IV: \" + new String(cipher.getIV()));\r\n\t\tSystem.out.println(\"AlgorithmParameter: \" + cipher.getParameters().getEncoded());\r\n\t\tCipher decryptor = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n\t\tdecryptor.init(Cipher.DECRYPT_MODE, aesSecretKey, new IvParameterSpec(cipher.getIV()));\r\n\t\tSystem.out.println(\"Decrypted: \" + new String(decryptor.doFinal(encrypted)));\r\n\t\t\r\n\t\treturn encrypted;\r\n\t}", "private final byte[] generateSalt() throws NoSuchAlgorithmException {\n\t\tSecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\");\n\t\tbyte[] salt = new byte[8];\n\t\trandom.nextBytes(salt);\n\t\treturn salt;\n\t}", "public static byte[] generateSecrets(final byte[] password, byte[] salt) {\n // generate salts\n Random random = new Random();\n random.nextBytes(salt);\n // generate secret\n MessageDigest md = null;\n try {\n md = MessageDigest.getInstance(\"SHA-1\");\n byte[] buffer = new byte[salt.length + password.length];\n System.arraycopy(password, 0, buffer, 0, password.length);\n System.arraycopy(salt, 0, buffer, password.length, salt.length);\n return md.digest(buffer);\n } catch (NoSuchAlgorithmException e) {\n throw new Error(e);\n }\n }", "public static byte[] getSalt()\r\n/* 111: */ {\r\n/* 112: */ try\r\n/* 113: */ {\r\n/* 114:105 */ return getPropertyBytes(\"salt\");\r\n/* 115: */ }\r\n/* 116: */ catch (Exception e)\r\n/* 117: */ {\r\n/* 118:107 */ log.log(Level.WARNING, \"Error getting salt: \" + e.getLocalizedMessage());\r\n/* 119: */ }\r\n/* 120:109 */ return new byte[0];\r\n/* 121: */ }", "public static byte[] secretStuff(char[] pass, byte[] salt, int iterations, int bytes) throws NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tPBEKeySpec spec = new PBEKeySpec(pass, salt, iterations, bytes);\n\t\tSecretKeyFactory skf = SecretKeyFactory.getInstance(ALGORITHM);\n\t\treturn skf.generateSecret(spec).getEncoded();\t\n\t}", "private byte[] pbkdf2HmacSha256(final byte[] password, final byte[] salt, int iters) throws GeneralSecurityException {\n String alg = \"HmacSHA256\";\n Mac sha256mac = Mac.getInstance(alg);\n sha256mac.init(new SecretKeySpec(password, alg));\n byte[] ret = new byte[sha256mac.getMacLength()];\n byte[] tmp = new byte[salt.length + 4];\n System.arraycopy(salt, 0, tmp, 0, salt.length);\n tmp[salt.length + 3] = 1;\n for (int i = 0; i < iters; i++) {\n tmp = sha256mac.doFinal(tmp);\n for (int k = 0; k < ret.length; k++) {\n ret[k] ^= tmp[k];\n }\n }\n return ret;\n }", "private static String getUserSalt(String args[]) {\n return args[2].trim() ;\n }", "String getUserPasswordHash();", "static String getSaltString() {\n String SALTCHARS = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n StringBuilder salt = new StringBuilder();\n Random rnd = new Random();\n while (salt.length() < 18) { // length of the random string.\n int index = (int) (rnd.nextFloat() * SALTCHARS.length());\n salt.append(SALTCHARS.charAt(index));\n }\n String saltStr = salt.toString();\n return saltStr;\n }", "public void changePassword() throws NoSuchAlgorithmException, InvalidKeySpecException {\n Random ran = new Random();\n int length = ran.nextInt(10) + 30;\n salt = Hashing.generateSalt(length);\n System.out.println(newPassword);\n System.out.println(salt);\n newPassword = Hashing.hashPassword(newPassword.toCharArray(), salt.getBytes(), 24000, 256);\n }", "public byte[] generateSalt() throws NoSuchAlgorithmException {\n\t\t\t SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\");\n\n\t\t\t // Generate a 8 byte (64 bit) salt as recommended by RSA PKCS5\n\t\t\t byte[] salt = new byte[8];\n\t\t\t random.nextBytes(salt);\n\n\t\t\t return salt;\n\t\t\t }", "public static byte[] initSalt() throws Exception {\n\n // Get a random number \n SecureRandom random = new SecureRandom();\n\n // generate the SALT\n return random.generateSeed(8);\n }", "private static String getSalt() throws NoSuchAlgorithmException, NoSuchProviderException {\n String salt = null;\n\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n byte[] bytes = new byte[16];\n //Get a random salt\n sr.nextBytes(bytes);\n\n StringBuilder sb = new StringBuilder();\n for(int i=0; i< bytes.length ;i++)\n {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n //Get salt in hex format\n salt = sb.toString();\n\n return salt;\n }", "private static String hash(String password, byte[] salt) throws Exception {\n if (password == null || password.length() == 0) {\n throw new IllegalArgumentException(\"Empty passwords are not supported.\");\n }\n SecretKeyFactory f = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n SecretKey key = f.generateSecret(new PBEKeySpec(password.toCharArray(), salt, iterations, desiredKeyLen)\n );\n return Base64.encodeToString(key.getEncoded(), Base64.NO_WRAP);\n }", "public SecretKey generarClaveSecreta() throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(\"AES\");\n keyGenerator.init(256);\n SecretKey secretKey = keyGenerator.generateKey();\n return secretKey;\n }", "private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }", "@Override\r\n\tpublic String hashFunction(String saltedPass) throws NoSuchAlgorithmException\r\n\t{\r\n\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\r\n\t\tbyte[] byteHash = digest.digest(saltedPass.getBytes(StandardCharsets.UTF_8));\r\n\t\thash = DatatypeConverter.printBase64Binary(byteHash);\r\n\t\treturn hash;\r\n\t}", "public static ByteSource getSaltInByteSource()\n {\n //Always use a SecureRandom generator\n \tRandomNumberGenerator randomGenerator = new SecureRandomNumberGenerator();\n //Create array for salt\n \tByteSource salt = randomGenerator.nextBytes();\n //return salt\n return salt;\n }", "public static ECKey createFromPassphrase(String secret) {\n byte[] hash = null;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(secret.getBytes(\"UTF-8\"));\n hash = md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n ECKey key = new ECKey(new SecureRandom(hash));\n return key;\n }", "public SecretKey passwordToHash(char[] pcaPassword, byte[] pbaSalt)\n\t{\n\t\t/* Derive the key, given password and salt. */\n\t\tSecretKeyFactory factory = null;\n\t\tKeySpec spec = null;\n\t\tSecretKey tmp2 = null;\n\t\ttry\n\t\t{\n\t\t\tfactory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA512\");\n\t\t\tspec = new PBEKeySpec(pcaPassword, pbaSalt, 65536, 256);\n\t\t\ttmp2 = factory.generateSecret(spec);\n\t\t}\n\t\tcatch (NoSuchAlgorithmException | InvalidKeySpecException e)\n\t\t{\n\t\t\tlogger.fatal(\"security password to hash failed: \" + e.getMessage());\n\t\t}\n\t\treturn tmp2;\n\t}", "@Override\n\tpublic byte[] getSalt(String username) throws NoSuchAlgorithmException {\n\t\tSecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n\t\t// Create array for salt\n\t\tbyte[] salt = username.getBytes();\n\t\tif (salt.length < 16) {\n\t\t\tbyte[] temp = new byte[16];\n\n\t\t\tfor (int i = 0; i < salt.length; i++) {\n\t\t\t\ttemp[i] = salt[i];\n\t\t\t}\n\t\t\tsalt = temp;\n\t\t}\n\t\t// Get a random salt\n\t\tsr.nextBytes(salt);\n\t\t// return salt\n\t\treturn salt;\n\t}", "private String hashAndSalt(String password, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException {\n String hashedPassword = hash(password, salt);\n return Base64.encodeBase64String(salt) + hashedPassword;\n }", "private static String hash(String password, byte[] salt) throws Exception {\n if (password == null || password.length() == 0)\n throw new IllegalArgumentException(\"Empty passwords are not supported.\");\n SecretKeyFactory f = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n SecretKey key = f.generateSecret(new PBEKeySpec(\n password.toCharArray(), salt, iterations, desiredKeyLen));\n return Base64.encodeBase64String(key.getEncoded());\n }", "DBOOtpSecret storeSecret(Long userId, String secret);", "public String getSalt() {\n return mSalt;\n }", "public static String getDynamicSalt() {\n\t\treturn RandomStringUtils.randomAlphanumeric(8);\n\t}", "public static byte[] generateSaltCipher(String data) {\n byte[] salt = Security.generateRandomSalt();\n byte[] cipher = Security.encryptData(data,salt);\n byte[] enc = new byte[salt.length + cipher.length];\n System.arraycopy(salt, 0, enc, 0, salt.length);\n System.arraycopy(cipher, 0, enc, salt.length, cipher.length);\n return enc;\n }", "public static byte[] getEncryptRawKey() {\n\n try {\n /*byte[] bytes64Key = App.RealmEncryptionKey.getBytes(\"UTF-8\");\n KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n sr.setSeed(bytes64Key);\n kgen.init(128, sr);\n SecretKey skey = kgen.generateKey();\n byte[] raw = skey.getEncoded();*/\n\n byte[] key = new BigInteger(App.RealmEncryptionKey, 16).toByteArray();\n return key;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public static byte[] getSecret()\r\n/* 136: */ {\r\n/* 137: */ try\r\n/* 138: */ {\r\n/* 139:122 */ return getPropertyBytes(\"secret\");\r\n/* 140: */ }\r\n/* 141: */ catch (Exception e)\r\n/* 142: */ {\r\n/* 143:124 */ log.warning(\"Error getting secret: \" + e.getMessage());\r\n/* 144: */ }\r\n/* 145:126 */ return new byte[0];\r\n/* 146: */ }", "public byte[] getEncryptedPassword(String password, byte[] salt)\n\t\t\t throws NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\t String algorithm = \"PBKDF2WithHmacSHA1\";\n\t\t\t // SHA-1 generates 160 bit hashes, so that's what makes sense here\n\t\t\t int derivedKeyLength = 160;\n\t\t\t // Pick an iteration count that works for you. The NIST recommends at\n\t\t\t // least 1,000 iterations:\n\t\t\t // http://csrc.nist.gov/publications/nistpubs/800-132/nist-sp800-132.pdf\n\t\t\t // iOS 4.x reportedly uses 10,000:\n\t\t\t // http://blog.crackpassword.com/2010/09/smartphone-forensics-cracking-blackberry-backup-passwords/\n\t\t\t int iterations = 20000;\n\n\t\t\t KeySpec spec = new PBEKeySpec(password.toCharArray(), salt, iterations, derivedKeyLength);\n\n\t\t\t SecretKeyFactory f = SecretKeyFactory.getInstance(algorithm);\n\n\t\t\t return f.generateSecret(spec).getEncoded();\n\t\t\t }", "public String deriveKeyFor5Seconds(String password, String salt) throws SecurityException {\n return deriveKey(password, salt, OperationCount.SECONDS, 5);\n }", "com.google.protobuf.ByteString\n getSaltedHashBytes();", "DBOOtpSecret activateSecret(Long userId, Long secretId);", "public byte[] deriveKeyFor5Seconds(String password, byte[] salt) throws SecurityException {\n return deriveKey(password, salt, OperationCount.SECONDS, 5);\n }", "private byte[] deriveKey(String password, byte[] salt, OperationCount operationType, int count) {\n // Handle null arguments\n if (password == null) {\n password = \"\";\n }\n if (salt == null) {\n salt = new byte[0];\n }\n\n // Check that the password doesn't contain any null characters\n if (password.contains(\"\\0\")) {\n String errorMessage = App.getApplicationResources().getString(R.string.password_contains_null);\n throw new IllegalArgumentException(errorMessage);\n }\n\n // Append the null terminating byte to the password (part of the SQRL protocol)\n password += '\\0';\n\n // Set up the required byte arrays\n byte[] key = new byte[32];\n byte[] passwordAsByteArray = password.getBytes(Charset.forName(\"UTF-8\"));\n\n // Perform the chaining of the scrypt operations\n byte[] scryptOutput = salt;\n long startTime = System.currentTimeMillis();\n int numberOfIterationsPerformed = 0;\n while (true) {\n scryptOutput = scryptDeriveKey(passwordAsByteArray, scryptOutput);\n key = xorByteArrays(key, scryptOutput);\n numberOfIterationsPerformed++;\n\n if (operationType.equals(OperationCount.ITERATIONS)) {\n // If we have a listener, we need to give it a progress update\n if (this.mListener != null) {\n int progress = (numberOfIterationsPerformed * 100) / count;\n this.mListener.onPasswordCryptProgressUpdate(progress);\n }\n\n if (numberOfIterationsPerformed == count) {\n break;\n }\n } else if (operationType.equals(OperationCount.SECONDS)) {\n long duration = System.currentTimeMillis() - startTime;\n\n // If we have a listener, we need to give it a progress update\n if (this.mListener != null) {\n int progress = (int)duration / (count * 10);\n this.mListener.onPasswordCryptProgressUpdate(progress);\n }\n\n if (duration >= count * 1000) {\n break;\n }\n }\n }\n\n // Store the number of iterations performed, this will be required by the caller if using deriveKeyFor5Seconds\n this.mIterations = numberOfIterationsPerformed;\n\n return key;\n }", "private String hashPass(String password, String salt)\r\n {\r\n String oldpass = (password + salt);\r\n String hashedPass = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n try\r\n {\r\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n md.update(oldpass.getBytes(\"UTF-8\"));\r\n\r\n byte[] hash = md.digest();\r\n\r\n for (int i = 0; i < hash.length; i++)\r\n {\r\n sb.append(Integer.toString((hash[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n\r\n hashedPass = sb.toString();\r\n }\r\n catch (NoSuchAlgorithmException | UnsupportedEncodingException ex)\r\n {\r\n Logger.getLogger(AuthModel.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return hashedPass;\r\n }", "public String generateSalt() throws NoSuchAlgorithmException {\r\n\t\tSecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\");\r\n\t\tbyte[] salt = new byte[SALT_BYTE_SIZE];\r\n\t\trandom.nextBytes(salt);\r\n\t\treturn toHex(salt);\r\n\t}", "public static SecretKey passSecretKey(char[] password, byte[] salt,\r\n\t\t\tString algorithm) {\r\n\t\tPBEKeySpec mykeyspec = null;\r\n\t\tSecretKey key = null;\r\n\t\ttry {\r\n\t\t\tfinal int HASH_ITERATIONS = 10000;\r\n\t\t\tfinal int KEY_LENGTH = 256;\r\n\t\t\tmykeyspec = new PBEKeySpec(password, salt, HASH_ITERATIONS,\r\n\t\t\t\t\tKEY_LENGTH);\r\n\r\n\t\t\tSet<String> algor = Security.getAlgorithms(\"Cipher\");\r\n\t\t\tkey = SecretKeyFactory.getInstance((String) (algor.toArray())[0])\r\n\t\t\t\t\t.generateSecret(mykeyspec);\r\n\t\t} catch (NoSuchAlgorithmException ex) {\r\n\t\t\tLogger.getLogger(AES.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t} catch (InvalidKeySpecException ex) {\r\n\t\t\tLogger.getLogger(AES.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "public static ECKey createKeyFromSha256Passphrase(String secret) {\n byte[] hash = null;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(secret.getBytes(\"UTF-8\"));\n hash = md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n @SuppressWarnings(\"deprecation\")\n ECKey key = new ECKey(hash, (byte[])null);\n return key;\n }", "public byte[] getSalt() {\n return mSalt;\n }", "protected static String generateSaltString() {\n Random rng = new Random();\n byte[] saltBytes = new byte[32];\n rng.nextBytes(saltBytes);\n return bytesToString(saltBytes);\n }", "public byte[] getSalt() {\n return salt;\n }", "public String decodePassword(String encodedPassword, String key);", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "String password();", "private static String CalHash(byte[] passSalt) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n //get the instance value corresponding to Algorithm selected\n MessageDigest key = MessageDigest.getInstance(\"SHA-256\");\n //Reference:https://stackoverflow.com/questions/415953/how-can-i-generate-an-md5-hash\n //update the digest using specified array of bytes\n key.update(passSalt);\n String PassSaltHash = javax.xml.bind.DatatypeConverter.printHexBinary(key.digest());\n return PassSaltHash;\n }" ]
[ "0.6896962", "0.6779966", "0.66654", "0.6652962", "0.65570664", "0.6549366", "0.6520689", "0.6507579", "0.649648", "0.6387015", "0.6365622", "0.636127", "0.6324723", "0.62845045", "0.6263431", "0.62470925", "0.623415", "0.62241185", "0.62009126", "0.6199807", "0.6176954", "0.6154186", "0.6138373", "0.6104361", "0.6093347", "0.60883623", "0.60875654", "0.6062119", "0.60573226", "0.6046968", "0.6046015", "0.6041851", "0.60200405", "0.6016954", "0.6014484", "0.60123694", "0.6008949", "0.6008731", "0.59785503", "0.596258", "0.5960118", "0.5952096", "0.594578", "0.592354", "0.5921057", "0.5907194", "0.5901967", "0.5892026", "0.5883704", "0.58675724", "0.5858304", "0.5850141", "0.5846554", "0.58395123", "0.5831077", "0.58186084", "0.5816318", "0.580926", "0.57769203", "0.5776363", "0.5775128", "0.5769962", "0.5766197", "0.57546496", "0.57498556", "0.57366735", "0.57317543", "0.5725491", "0.5712644", "0.5708603", "0.5708166", "0.57013714", "0.56968933", "0.5689843", "0.5688062", "0.56766176", "0.5669249", "0.5663946", "0.5624673", "0.56176", "0.56153107", "0.561132", "0.56101906", "0.5604205", "0.55941504", "0.5592372", "0.55916756", "0.55880713", "0.5586863", "0.5572877", "0.55703586", "0.5568878", "0.5565064", "0.556284", "0.55619514", "0.55527616", "0.5546513", "0.55447185", "0.5541347", "0.55378723", "0.553485" ]
0.0
-1
id=>NUMBER(10) codigo=>VARCHAR2(20) productoId=>NUMBER(10) fechaCreacion=>DATE fechaElaboracion=>DATE fechaVencimiento=>DATE estado=>VARCHAR2(1)
private IDataSet getDataSet() throws IOException, DataSetException { File file = new File("src/test/resources/lote.xml"); IDataSet dataSet = new FlatXmlDataSet(file); return dataSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;", "public interface ModeloProdutoProduto extends DCIObjetoDominio , ModeloProdutoProdutoAgregadoI , ModeloProdutoProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdModeloProdutoProduto();\n\tpublic void setIdModeloProdutoProduto(long valor);\n\t\n\t\n\tpublic long getIdModeloProdutoRa();\n\tpublic void setIdModeloProdutoRa(long valor);\n\t\n\t\n\tpublic long getIdProdutoRa();\n\tpublic void setIdProdutoRa(long valor);\n\t\n\t\n}", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "int getEtoId(DataDate date) throws SQLException;", "public ExistenciaMaq generar(final Producto producto,final Date fecha, final Long almacenId);", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "int insert(ItoProduct record);", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "VentaJPA obtenerVenta(int comprobante);", "Tipologia selectByPrimaryKey(BigDecimal id);", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Transactional(propagation=Propagation.REQUIRED)\n\tpublic double calcularExistencia(Producto producto,Almacen almacen,final Date fecha);", "public void insertarPlanDieta(int id_plan_de_dieta, int caloria_max_diarias, Date fecha_Inicio, Date Fecha_fin, int n_comidas_diarias,int id_paciente,int id_nutricionista);", "public VVentasRecord(Integer idventa, String numerofactura, Date fecha, Integer idcliente, String nombre, String direccion, String telefono, String tipo, String tipodoc, BigDecimal total) {\n super(VVentas.V_VENTAS);\n\n set(0, idventa);\n set(1, numerofactura);\n set(2, fecha);\n set(3, idcliente);\n set(4, nombre);\n set(5, direccion);\n set(6, telefono);\n set(7, tipo);\n set(8, tipodoc);\n set(9, total);\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "@Insert({\n \"insert into PURCHASE (ID, SDATE, \",\n \"STYPE, SMONEY, TOUCHING, \",\n \"ACCOUNT, CHECKSTATUS, \",\n \"DEMO1, DEMO2, DEMO3)\",\n \"values (#{id,jdbcType=DECIMAL}, #{sdate,jdbcType=TIMESTAMP}, \",\n \"#{stype,jdbcType=VARCHAR}, #{smoney,jdbcType=DECIMAL}, #{touching,jdbcType=VARCHAR}, \",\n \"#{account,jdbcType=VARCHAR}, #{checkstatus,jdbcType=DECIMAL}, \",\n \"#{demo1,jdbcType=DECIMAL}, #{demo2,jdbcType=VARCHAR}, #{demo3,jdbcType=DECIMAL})\"\n })\n int insert(Purchase record);", "public SgfensPedidoProducto[] findWhereFechaEntregaEquals(Date fechaEntrega) throws SgfensPedidoProductoDaoException;", "public FacturaEstadoDTO obtenerFacturaEstado(Integer codigoCompania, Date fechaNotaIngreso, String numeroNotaIngreso) throws SICException;", "public BitacoraCajaRecord(Integer idcaja, Timestamp fecha, BigDecimal valor, String empleado, String movimiento, String comentario) {\n super(BitacoraCaja.BITACORA_CAJA);\n\n set(0, idcaja);\n set(1, fecha);\n set(2, valor);\n set(3, empleado);\n set(4, movimiento);\n set(5, comentario);\n }", "public List<ExistenciaMaq> buscarExistencias(final Producto producto,final Date fecha);", "public long getIdCargaTienda();", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "int insertSelective(ItoProduct record);", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "int getTrmmId(DataDate date) throws SQLException;", "public IProduto getCodProd();", "public interface modelPurchasesI {\r\n\t/***\r\n\t * ottiene l'id del record corrente\r\n\t * @return\r\n\t * un integer che contiene l'id\r\n\t */\r\n\tInteger getID();\r\n\t/***\r\n\t * salva la data dell'acquisto\r\n\t * @param data\r\n\t * data di tipo Object sql.date\r\n\t */\r\n void setDate(Date data);\r\n\t/***\r\n\t * settaggio dello sconto per questo acquisto\r\n\t * @param sconto\r\n\t * lo sconto passato come float\r\n\t */\r\n\tvoid setDiscount(float sconto);\r\n\t/***\r\n\t * settaggio del provider di questo acquisto\r\n\t * @param IDProvuder\r\n\t * ID del provider passato come Integer\r\n\t */\r\n\tvoid setProvider(modelProvidersI IDProvider);\r\n\t/***\r\n\t * settaggio del numero della recivuta per questo acquisto(lo stesso usato nello scontrino di questo acquisto)\r\n\t * @param nRicevuta\r\n\t * numero della recivuto passato come integer\r\n\t */\r\n\tvoid setNumberPaymentReceipt(int nRicevuta);\r\n\t/***\r\n\t * settaggio dell'iva per questo acquisto\r\n\t * @param iva\r\n\t * iva passato come float\r\n\t */\r\n\tvoid setIVA(float iva);\r\n\t\r\n\t/***\r\n\t * ottiene il numero della ricevuta dell'acquisto( lo stesso usato nello scontrino per questo acquisto)\r\n\t * @return\r\n\t * un int con il numero della ricevuta\r\n\t */\r\n\tint getNumberPaymentReceipt();\r\n\t/***\r\n\t * ottiene il fornitore di questo acquisto\r\n\t * @return\r\n\t * il fornitore\r\n\t */\r\n\tmodelProvidersI getProvider();\r\n\t/***\r\n\t * ottiene l'iva per questo acquisto\r\n\t * @return\r\n\t * l'iva\r\n\t */\r\n\tfloat getIva();\r\n\t/***\r\n\t * ottiene la data dell'acquisto\r\n\t * @return\r\n\t * una object sql.date che contiene la data dell'acquisto\r\n\t */\r\n\tDate getDate();\r\n\t/***\r\n\t * ottiene lo sconto per l'acquisto\r\n\t * @return\r\n\t * un float con lo sconto dell'acquisto\r\n\t */\r\n\tfloat getDiscount();\r\n\t/***\r\n\t * ottiene una lista con tutti i prodotti acquistati\r\n\t * @return\r\n\t * una lista con i prodotti acquistati altrimenti una lista vuota\r\n\t */\r\n\tList<transactionsProducts> purchasedProducts();\r\n\t/***\r\n\t * ottiene il totale speso per questo acquisto\r\n\t * @return\r\n\t * un double con il totale speso\r\n\t */\r\n\tDouble getTotalSpent();\r\n\t\r\n\t/***\r\n\t * metodo che salva ogni modifica/creazione di un acquisto. \r\n\t * @return\r\n\t * true se e andato a buon fine\r\n\t */\r\n\tboolean update();\r\n\t\r\n\t/***\r\n\t * eliminazione dell'accquisto corrente\r\n\t * @return\r\n\t * true se e andato a buon fine\r\n\t */\r\n\tboolean deletePurchase();\r\n\r\n\t/***\r\n\t * elenco di tutti gli acquisti realizzati\r\n\t * @return\r\n\t * una lista contenente tutti gli acquisti fatti\r\n\t */\r\n\tpublic static List<modelPurchasesI> purchasesList(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tDataBaseSearch query = DataBaseSearch.queryDaTabella(\"Acquisti\");\r\n\t\t\ttry {\r\n\t\t\t\treturn query.find().stream()\r\n\t\t\t\t\t\t.map(e -> new modelPurchases(e))\r\n\t\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}\r\n\t/***\r\n\t * ricerca di una ricevuta di acquisto tramite il numero\r\n\t * @param nRicevuta\r\n\t * numero della ricevuta passato come int\r\n\t * @return\r\n\t * l'acquisto realizzato altrimenti null\r\n\t */\r\n\tpublic static modelPurchasesI searchPurchase(int nRicevuta){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\treturn modelPurchasesI.purchasesList().stream()\r\n\t\t\t\t.filter(p -> p.getNumberPaymentReceipt() == nRicevuta)\r\n\t\t\t\t.findFirst()\r\n\t\t\t\t.orElse(null);\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}\r\n\t/***\r\n\t * ottiene il report degli acquisti\r\n\t * @return\r\n\t * una lista contenente tutti gli acquisti ordinati in maniera decrescente in base alle spese altrimenti una lista vuota\r\n\t */\r\n\tpublic static List<modelPurchasesI> reportPurchases(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tComparator<modelPurchasesI> sort = (primo, secondo) -> Double.compare(primo.getTotalSpent(), secondo.getTotalSpent());\r\n\t\t\t\r\n\t\t\treturn modelPurchasesI.purchasesList().stream()\r\n\t\t\t\t\t.sorted(sort)\r\n\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t}else\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}\r\n\t/***\r\n\t * creazione di un acquisto\r\n\t * @param data\r\n\t * data dell'acquisto\r\n\t * @param sconto\r\n\t * socnto dell'acquisto\r\n\t * @param iva\r\n\t * iva dell'acquisto\r\n\t * @param nRicevuta\r\n\t * numero della ricevuta\r\n\t * @param fornitore\r\n\t * fornitore dell'acquisto\r\n\t * @param prodotti\r\n\t * prodotti dell'acquisto\r\n\t * @return\r\n\t * true se creato altrimenti false\r\n\t */\r\n\tpublic static boolean builder(Date data, float sconto, float iva, int nRicevuta, modelProvidersI fornitore, List<transactionsProductsI> prodotti){\r\n\t\tif(modelUsersI.isLogged())\r\n\t\t{\r\n\t\t\tmodelPurchasesI temp = new modelPurchases();\r\n\t\t\ttemp.setProvider(fornitore);\r\n\t\t\ttemp.setDate(data);\r\n\t\t\ttemp.setDiscount(sconto);\r\n\t\t\ttemp.setIVA(iva);\r\n\t\t\t//salvataggio dei prodotti acquistati\r\n\t\t\tif(modelTransactionsI.transactionsProducts(nRicevuta, prodotti, false))\r\n\t\t\t\treturn temp.update();\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}\r\n\t\r\n}", "public PedidoRecord(Integer idPedido, Integer cliente, Date fecha, Boolean iva, String observaciones, Double total) {\n super(Pedido.PEDIDO);\n\n set(0, idPedido);\n set(1, cliente);\n set(2, fecha);\n set(3, iva);\n set(4, observaciones);\n set(5, total);\n }", "public ExistenciaMaq generar(final String clave,final Date fecha, final Long almacenId);", "public JPosicion(int id, int maquina_id, int producto_id, String fila_columna, int pr_venta, int capacidad, int ultimas, String fecha, int estado){\n\t\t\tmID = id;\n\t\t\tmMaquina_id = maquina_id;\n\t\t\tmProducto_id = producto_id;\n\t\t\tmPos_fila_columna = fila_columna;\n\t\t\tmPr_venta = pr_venta;\n\t\t\tmCapacidad = capacidad;\n\t\t\tmUltimas = ultimas;\n\t\t\tmFecha = fecha;\n\t\t\tmEstado = estado;\n\t\t\t}", "public Producto BuscarProducto(int id) {\n Producto nuevo = new Producto();\n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto where idproducto=\"+id+\";\");\n while(result.next()) {\n \n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return nuevo;\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "int insert(Product record);", "public static void insertProduct(Product product){\n\n Connection myConnection = ConnectionFactory.getConnection();\n PreparedStatement insertStatement = null;\n ResultSet rs = null;\n\n int afterId = verify(product);\n int cantitate = 0;\n if(afterId == -1) {//----------daca nu exista deja in tabel\n\n try {\n insertStatement = myConnection.prepareStatement(insertStatementString, Statement.RETURN_GENERATED_KEYS);\n insertStatement.setInt(1, product.getId());\n insertStatement.setInt(2, product.getCantitate());\n insertStatement.setString(3, product.getDenumire());\n insertStatement.setDouble(4, product.getPret());\n insertStatement.setInt(5, 0);\n\n int rowsAffected = insertStatement.executeUpdate();\n\n rs = insertStatement.getGeneratedKeys();\n\n System.out.println(\"(\" + rowsAffected + \") rows affected\");\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n else{//---------------daca deja exista updatam canntitatea\n try {\n myConnection = ConnectionFactory.getConnection();\n insertStatement = myConnection.prepareStatement(\"Select * from product where id = \" + afterId);\n insertStatement.executeQuery();\n rs = insertStatement.getResultSet();\n if(rs.next()){\n cantitate = rs.getInt(2);\n }\n myConnection = ConnectionFactory.getConnection();\n insertStatement = myConnection.prepareStatement(updateQuantityString, Statement.RETURN_GENERATED_KEYS);\n insertStatement.setInt(1, product.getCantitate() + cantitate);\n insertStatement.setInt(2, afterId);\n int rowsAffected = insertStatement.executeUpdate();\n System.out.println(\"(\" + rowsAffected + \") rows affected\");\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }\n\n }", "public String crearProducto(String id, String nombre, String precio, String idCategoria, \n String estado, String descripcion) {\n \n String validacion = \"\";\n if (verificarCamposVacios(id, nombre, precio, idCategoria, estado, descripcion) == false) {\n //Se crea en EntityManagerFactory con el nombre de nuestra unidad de persistencia\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"SG-RESTPU\");\n //se crea un objeto producto y se le asignan sus atributos\n if (verificarValoresNum(id,precio,idCategoria)) {\n //Se crea el controlador de la categoria del producto\n CategoriaProductoJpaController daoCategoriaProducto = new CategoriaProductoJpaController(emf);\n CategoriaProducto categoriaProducto = daoCategoriaProducto.findCategoriaProducto(Integer.parseInt(idCategoria));\n //se crea el controlador del producto \n ProductoJpaController daoProducto = new ProductoJpaController(emf);\n Producto producto = new Producto(Integer.parseInt(id), nombre);\n producto.setPrecio(Long.parseLong(precio));\n producto.setIdCategoria(categoriaProducto);\n producto.setDescripcion(descripcion);\n producto.setFotografia(copiarImagen());\n if (estado.equalsIgnoreCase(\"Activo\")) {\n producto.setEstado(true);\n } else {\n producto.setEstado(false);\n }\n try {\n if (ExisteProducto(nombre) == false) {\n daoProducto.create(producto);\n deshabilitar();\n limpiar();\n validacion = \"El producto se agrego exitosamente\";\n } else {\n validacion = \"El producto ya existe\";\n }\n } catch (NullPointerException ex) {\n limpiar();\n } catch (Exception ex) {\n Logger.getLogger(Gui_empleado.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n validacion = \"El campo id, precio, idCategoria deben ser numéricos\";\n }\n } else {\n validacion = \"Llene los datos obligatorios\";\n }\n return validacion;\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public void gerarparcelascontrato(int id, int idcliente, int idgrupofinanceiro) {\n\t\tContrato contrato = repo.findById(id).get();\n\t\t// contrato.setCliente(clientes);\n\t\t// contrato.setFinanceiroContrato(financeiroContrato);\n\t\trepo.save(contrato);\n\t\tMovimentoContrato movement = movimentoContratoRepository.findByContratoIdAndStatus(id,\n\t\t\t\tStatusActiv.ABERTO.getDescricao());\n\t\tif (movement == null) {\n\t\t\tmovement = new MovimentoContrato();\n\t\t\tmovement.setDataMovimento(new Date());\n\t\t\tmovement.setStatus(StatusActiv.ABERTO.getDescricao());\n\t\t\tmovement.setTipomovimento(TipoMovimentoEnum.entradaContrato.getDescricao());\n\t\t}\n\t\tmovement.setValor(contrato.getTotal());\n\t\tmovement.setContrato(contrato);\n\t\tmovement.setHistorico(contrato.getFinanceiroContrato());\n\t\tmovement.setParcela(contrato.getPeriodo());\n\n\t\tmovement.setName(\"Contrato Nº \" + String.valueOf(id) + \" Cliente: \" + contrato.getClientename());\n\t\tmovement = movimentoContratoRepository.save(movement);\n\n\t\tfichaLeituraRepository\n\t\t\t\t.deleteAll(fichaLeituraRepository.findByContratoIdAndStatus(id, StatusActiv.ABERTO.getDescricao()));\n\t\texcluirParcelas(movement);\n\t\tmovement.setValor(contrato.getTotal());\n\t\tDateTime dt;\n\t\tDateTime dt12;\n\n\t\t//if (movement.getFaturasQuit().size() > 0) {\n\n\t\t\t//dt = new DateTime(movement.getFaturasQuit().get(0).getDataVencimento());\n\t\t\tdt = new DateTime();\n\t\t\tint ano = dt.getYear();\n\t\t\tint mes = dt.getMonthOfYear();\n\t\t\tdt = new DateTime(ano, mes, contrato.getDiaVencimento(), 8, 0); \n\t\t\tdt12 = new DateTime(ano, mes, contrato.getDiaLeitura(), 8, 0); \n\n\t\t/*} \n\t\telse {\n\t\t\tdt = new DateTime();\n\t\t\tint ano = dt.getYear();\n\t\t\tint mes = dt.getMonthOfYear();\n\t\t\tdt12 = new DateTime(ano, mes, contrato.getDiaLeitura(), 8, 0);\n\t\t}*/\n\t\t/*DateTime dt1 = new DateTime(new Date());\n\t\tfor (Fatura itemmovimento : movement.getFaturasQuit()) {\n\t\t\tdt1 = new DateTime(itemmovimento.getDataVencimento());\n\t\t\tif (dt1.isAfter(dt)) {\n\t\t\t\tdt = dt1;\n\t\t\t}\n\t\t\tif (dt1.isAfter(dt12)) {\n\t\t\t\tdt12 = dt1;\n\t\t\t}\n\n\t\t}\n\t\tdt1 = dt12;*/\n\t\tDateTime plusPeriod = new DateTime();\n\t\tDateTime plusPeriodleitura = new DateTime();\n\t\tFatura itemmovimento;\n\t\tint j = movement.getParcela() - movement.getFaturasQuit().size();\n\t\tList<Integer> indiceparcalas = new LinkedList<Integer>();\n\t\tindiceparcalas = maxparcela(movement, j);\n\t\tdouble valr1 = contrato.getTotal();// getValorAberto() / j;\n\n\t\tList<FichaLeitura> fichas = new ArrayList<>();\n\t\tfor (int i = 0; i < j; i++) {\n\t\t\titemmovimento = new Fatura(movement, (movement.getValor() - movement.getValorAberto()));\n\t\t\tplusPeriod = dt.plus(org.joda.time.Period.months(i));\n\t\t\tplusPeriodleitura = dt12.plus(org.joda.time.Period.months(i));\n\t\t\tint dayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\tint DaysToAdd;\n\t\t\t// se final de semana\n\t\t\tif (dayOfWeekEndDateNumber == 6 || dayOfWeekEndDateNumber == 7) {\n\t\t\t\tDaysToAdd = 8 - dayOfWeekEndDateNumber;\n\t\t\t\tplusPeriod = plusPeriod.plusDays(DaysToAdd);\n\t\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\t}\n\n\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriodleitura.dayOfWeek().getAsString());\n\n\t\t\t// se final de semana\n\t\t\tif (dayOfWeekEndDateNumber == 6 || dayOfWeekEndDateNumber == 7) {\n\t\t\t\tDaysToAdd = 8 - dayOfWeekEndDateNumber;\n\t\t\t\tplusPeriodleitura = plusPeriodleitura.plusDays(DaysToAdd);\n\t\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\t}\n\n\t\t\titemmovimento.setParcela(indiceparcalas.get(i));\n\t\t\titemmovimento.setValor(contrato.getTotal());\n\t\t\titemmovimento.setDataVencimento(plusPeriod.toDate());\n\t\t\titemmovimento.setDataleitura(plusPeriodleitura.toDate());\n\t\t\titemmovimento.setInstantCreation(new Date());\n\t\t\titemmovimento.setStatus(StatusActiv.ABERTO.getDescricao());\n\t\t\titemmovimento.setMovimentoFinanceiro(movement);\n\t\t\titemmovimento.setContrato(contrato);\n\t\t\titemmovimento.setDataMovimento(movement.getDataMovimento());\n\t\t\titemmovimento.setTipomovimento(TipoMovimentoEnum.entradaContrato.getDescricao());\n\n\t\t\t/*\n\t\t\t * FichaLeitura fichaLeitura = new FichaLeitura(contrato, equipamentoContrato,\n\t\t\t * itemmovimento.getDataleitura(), StatusActiv.ABERTO.getDescricao());\n\t\t\t */\n\n\t\t\tCentroCusto centroCusto = centroCustoRepository.findById(movement.getHistorico().getCentrocusto().getId())\n\t\t\t\t\t.get();\n\t\t\tcentroCusto.setSaldoReceber(centroCusto.getSaldoReceber() + (contrato.getTotal()));\n\n\t\t\tcentroCustoRepository.save(centroCusto);\n\t\t\titemmovimento = faturaRepository.save(itemmovimento);\n\t\t\tfor (EquipamentosContrato equipamentoContrato : contrato.getEquipamentosContratos()) {\n\t\t\t\tfichas.add(new FichaLeitura(contrato, equipamentoContrato, itemmovimento.getDataleitura(),\n\t\t\t\t\t\tStatusActiv.ABERTO.getDescricao(), itemmovimento));\n\t\t\t}\n\n\t\t}\n\t\tfichaLeituraRepository.saveAll(fichas);\n\n\t}", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "public interface ExistenciaMaqDao extends GenericDao<ExistenciaMaq, Long>{\n\t\n\t/**\n\t * Localiza el inventario inicial para un producto, sucursal aņo y mes \n\t * \n\t * @param producto La clave del producto\n\t * @param sucursal La sucursal\n\t * @param year El aņo\n\t * @param mes El mes (valido 1 al 12)\n\t * @return\n\t */\n\t@Transactional(propagation=Propagation.SUPPORTS)\n\tpublic ExistenciaMaq buscar(String producto,long almacen,int year,int mes);\n\t\n\t\n\tpublic ExistenciaMaq buscarPorClaveSiipap(String producto,int clave,int year,int mes);\n\t\n\t\n\t/**\n\t * Actualiza las existencias para el articulo indicado en el aņo y al fin del mes solicitado\n\t * \n\t * @param clave La clave del articulo\n\t * @param year El aņo o periodo fiscal\n\t * @param mes El mes (1 - 12)\n\t * \n\t */\n\tpublic void actualizarExistencias(String clave,int year, int mes);\n\t\n\tpublic void actualizarExistencias(Long almacenlId,String clave,int year,int mes);\n\t\n\t/**\n\t * Actualiza las existencias de todas las sucursales y para todos los articulos al final del mes\n\t * \n\t * @param year\n\t * @param mes\n\t */\n\tpublic void actualizarExistencias(int year, int mes);\n\t\n\tpublic void actualizarExistencias();\n\t\n\tpublic void actualizarExistencias(Long almacenId,int year,int mes);\n\t\n\t/**\n\t * Calcula y regresa la existencia \n\t * \n\t * @param producto El producto\n\t * @param sucursal La sucursal \n\t * @param fecha A la fecha indicada (corte)\n\t * @return\n\t */\n\t@Transactional(propagation=Propagation.REQUIRED)\n\tpublic double calcularExistencia(Producto producto,Almacen almacen,final Date fecha);\t\n\t\n\t\n\t/**\n\t * Regresa las existencias del producto en el mes en curso\n\t * en la fecha/periodo indicado\n\t * \n\t * @param producto\n\t * @param fecha\n\t * @return\n\t */\n\tpublic List<ExistenciaMaq> buscarExistencias(final Producto producto,final Date fecha);\n\t\n\t/**\n\t * Regresa todas las existencias para la sucursal indicada\n\t * \n\t * @param sucursalId\n\t * @param fecha\n\t * @return\n\t */\n\tpublic List<ExistenciaMaq> buscarExistencias(final Long almacenId,final Date fecha);\n\t\n\t/**\n\t * Genera un registro de existencia si este ya existe lo regresa\n\t * \n\t * @param producto\n\t * @param fecha\n\t * @return\n\t */\n\tpublic ExistenciaMaq generar(final Producto producto,final Date fecha, final Long almacenId);\n\t\t\n\t/**\n\t * Genera un registro de existencia si este ya existe lo regresa\n\t * \n\t * @param clave\n\t * @param fecha\n\t * @param sucursalId\n\t * @return\n\t */\n\tpublic ExistenciaMaq generar(final String clave,final Date fecha, final Long almacenId);\n\t\n\t/**\n\t * Genera un registro de existencia si este ya existe lo regresa\n\t * \n\t * @param clave\n\t * @param sucursalId\n\t * @param year\n\t * @param mes El mes 1 based en 1= Enero 12= Diciembre\n\t * @return\n\t */\n\tpublic ExistenciaMaq generar(final String clave,final Long almacenId,int year,int mes);\n \n}", "void insert(Disproduct record);", "public static Factura insertFactura(Date fecha_inicio_factura,\n float tiene_costo_plan,\n float monto_total,\n ArrayList<String> comentarios_factura,\n Producto producto){\n \n Factura miFactura = new Factura(fecha_inicio_factura,tiene_costo_plan, \n 0,comentarios_factura,producto);\n \n //factura.registrarFactura();\n \n return miFactura;\n }", "public List<ProyeccionKid> getListaProyeccionKids(int idOrganizacion, Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 34: */ {\r\n/* 35:62 */ List<ProyeccionKid> listaProyeccionKid = new ArrayList();\r\n/* 36:63 */ for (ProductoMaterial productoMaterial : getListaProductoMaterial(0, null, null, null, null))\r\n/* 37: */ {\r\n/* 38:64 */ ProyeccionKid proyeccionKid = new ProyeccionKid();\r\n/* 39:65 */ proyeccionKid.setProductoMaterial(productoMaterial);\r\n/* 40:66 */ proyeccionKid.setStock(getStock(productoMaterial.getMaterial(), null, null, null));\r\n/* 41:67 */ proyeccionKid.setSaldo(proyeccionKid.getStock().divide(productoMaterial.getCantidad(), RoundingMode.HALF_UP));\r\n/* 42:68 */ listaProyeccionKid.add(proyeccionKid);\r\n/* 43: */ }\r\n/* 44:70 */ return listaProyeccionKid;\r\n/* 45: */ }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "int insertSelective(NjProductTaticsRelation record);", "public void salvarProdutos(Produto produto){\n }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "int insert(NjProductTaticsRelation record);", "Tablero consultarTablero();", "public abstract java.sql.Timestamp getFecha_ingreso();", "@Override\n\tpublic Producto buscarIdProducto(Integer codigo) {\n\t\treturn productoDao.editarProducto(codigo);\n\t}", "public int Create(Objet obj) {\n\t\tPreparedStatement smt=null; \n\t\t\n\t\tString chaineSQL=\"\";\n int rep=0;\n \t\t\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tchaineSQL=\"insert into objet_vente (Designation,Prix,Categories,Lieu,Date,Email) values(?,?,?,?,?,?)\";\t\t\t\n\t\t\tsmt=this.getCnn().prepareStatement(chaineSQL, Statement.RETURN_GENERATED_KEYS); //retourne le Id auto incrementé lors de l'envoie de la chaine sql\n\t\t\t\n\t\t\tsmt.setString(1, obj.getDesignation());\n\t\t\tsmt.setInt(2, Integer.parseInt(obj.getPrix()));\n\t\t\tsmt.setString(3, obj.getCategorie());\n\t\t\tsmt.setString(4, obj.getLieu());\n\t\t\tsmt.setDate(5, obj.getDate());\n\t\t\tsmt.setString(6, obj.getEmail());\n\t\t\t\n\t\t\t\t\t\n\t\t\trep=smt.executeUpdate();\n\t\t\t// rep contient le nbre d'enreigistrement effectué/ligne\n\t\t\tResultSet generatedKey = smt.getGeneratedKeys(); //getGeneratedKeys retourne le *id auto incrementé\n\t\t\tgeneratedKey.next();\n\t\t\t//on sait que y a q'une ligne ou on insere donc 1 seule .next()\n\t\t\tobj.setId(generatedKey.getInt(1));\n\t\t\t// lit dans la 1ere colonne avec la ligne correspondante a celle crée et retourne ici l'ID objet\n\t\t\t\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\treturn rep;\n\t}", "ParqueaderoEntidad agregar(String nombre);", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "int insert(GoodsPo record);", "@Insert({\n \"insert into SALEORDERDETAIL (SOID, LINENO, \",\n \"MID, MNAME, STANDARD, \",\n \"UNITID, UNITNAME, \",\n \"NUM, BEFOREDISCOUNT, \",\n \"DISCOUNT, PRICE, \",\n \"TOTALPRICE, TAXRATE, \",\n \"TOTALTAX, TOTALMONEY, \",\n \"BEFOREOUT, ESTIMATEDATE, \",\n \"LEFTNUM, ISGIFT, \",\n \"FROMBILLTYPE, FROMBILLID)\",\n \"values (#{soid,jdbcType=VARCHAR}, #{lineno,jdbcType=DECIMAL}, \",\n \"#{mid,jdbcType=VARCHAR}, #{mname,jdbcType=VARCHAR}, #{standard,jdbcType=VARCHAR}, \",\n \"#{unitid,jdbcType=VARCHAR}, #{unitname,jdbcType=VARCHAR}, \",\n \"#{num,jdbcType=DECIMAL}, #{beforediscount,jdbcType=DECIMAL}, \",\n \"#{discount,jdbcType=DECIMAL}, #{price,jdbcType=DECIMAL}, \",\n \"#{totalprice,jdbcType=DECIMAL}, #{taxrate,jdbcType=DECIMAL}, \",\n \"#{totaltax,jdbcType=DECIMAL}, #{totalmoney,jdbcType=DECIMAL}, \",\n \"#{beforeout,jdbcType=DECIMAL}, #{estimatedate,jdbcType=TIMESTAMP}, \",\n \"#{leftnum,jdbcType=DECIMAL}, #{isgift,jdbcType=DECIMAL}, \",\n \"#{frombilltype,jdbcType=DECIMAL}, #{frombillid,jdbcType=VARCHAR})\"\n })\n int insert(Saleorderdetail record);", "@Select({\n \"select\",\n \"ID, SDATE, STYPE, SMONEY, TOUCHING, ACCOUNT, CHECKSTATUS, DEMO1, DEMO2, DEMO3\",\n \"from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"SDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"STYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"SMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOUCHING\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"ACCOUNT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"CHECKSTATUS\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO1\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DEMO2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"DEMO3\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL)\n })\n Purchase selectByPrimaryKey(BigDecimal id);", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "public List<Sic3docuprod> obtDetOperacionesXProductos(Sic3docuprod objDocuprod) throws Exception{\n \n List<Sic3docuprod> list = new ArrayList<>();\n\n StoredProcedure Sp = null;\n ResultSet rsConsulta = null;\n \n BigDecimal fecDesde = null;\n BigDecimal fecHasta = null;\n String strCodProd = null;\n\n try{\n \n session = HibernateUtil.getSessionFactory().openSession();\n \n log.debug(\"=============== obtDetOperacionesXProductos ==================\");\n \n if(objDocuprod.getSic1docu() != null && \n objDocuprod.getSic1docu().getFecDesde() != null){\n fecDesde = UtilClass.convertDateToNumber(objDocuprod.getSic1docu().getFecDesde());\n }\n \n if(objDocuprod.getSic1docu() != null && \n objDocuprod.getSic1docu().getFecHasta()!= null){\n fecDesde = UtilClass.convertDateToNumber(objDocuprod.getSic1docu().getFecHasta());\n }\n \n if(objDocuprod.getSic1prod() != null && objDocuprod.getSic1prod().getCodProd() !=null)\n strCodProd = objDocuprod.getSic1prod().getCodProd().trim();\n \n Sp = new StoredProcedure(\"PKG_SICCONSPROD.PRC_SICOBTDETPROD\");\n Sp.addParameter(new InParameter(\"X_ID_PROD\", Types.INTEGER, objDocuprod.getSic1prod().getIdProd()));\n Sp.addParameter(new InParameter(\"X_COD_PROD\", Types.VARCHAR, strCodProd));\n Sp.addParameter(new InParameter(\"X_ID_SCLASEEVEN\", Types.INTEGER, objDocuprod.getSic1docu().getIdSclaseeven()));\n Sp.addParameter(new InParameter(\"X_FEC_DESDE\", Types.NUMERIC, fecDesde));\n Sp.addParameter(new InParameter(\"X_FEC_HASTA\", Types.NUMERIC, fecHasta));\n Sp.addParameter(new InParameter(\"X_ID_DOCU\", Types.INTEGER, objDocuprod.getSic1docu().getIdDocu()));\n Sp.addParameter(new InParameter(\"X_COD_SERIE\", Types.VARCHAR, objDocuprod.getSic1docu().getCodSerie()));\n Sp.addParameter(new InParameter(\"X_NUM_DOCU\", Types.INTEGER, objDocuprod.getSic1docu().getNumDocu()));\n Sp.addParameter(new InParameter(\"X_ID_ESTADOCU\",Types.INTEGER, null));\n \n Sp.addParameter(new OutParameter(\"X_CURSOR\", OracleTypes.CURSOR)); \n Sp.addParameter(new OutParameter(\"X_ID_ERROR\", Types.INTEGER));\n Sp.addParameter(new OutParameter(\"X_DES_ERROR\", Types.VARCHAR));\n \n \n rsConsulta = Sp.ExecuteResultCursor(((SessionImpl)session).connection(),10); \n \n while(rsConsulta.next()){\n \n //Proveedor O Cliente\n Sic1pers objPers = new Sic1pers();\n objPers.setDesPers(rsConsulta.getString(\"DES_PERS\"));\n \n //TIPO DE OPERACION\n Sic1sclaseeven objSclaseeven = new Sic1sclaseeven();\n objSclaseeven.setIdClaseeven(rsConsulta.getBigDecimal(\"ID_SCLASEEVEN\"));\n objSclaseeven.setCodSclaseeven(rsConsulta.getString(\"COD_SCLASEEVEN\"));\n objSclaseeven.setDesSclaseeven(rsConsulta.getString(\"DES_SCLASEEVEN\"));\n\n /*ESTADO DE LA OPERACION*/\n Sic3docuesta objDocuesta = new Sic3docuesta();\n objDocuesta.setDesEsta(rsConsulta.getString(\"DES_ESTA\"));\n \n /*TIPO DE DOCUMENTO*/\n Sic1stipodocu sic1stipodocu = new Sic1stipodocu();\n sic1stipodocu.setDesStipodocu(rsConsulta.getString(\"DES_STIPODOCU\"));\n \n /*Documentos Relacionados*/\n Sic1docu objDocuRel = new Sic1docu();\n objDocuRel.setIdDocu(rsConsulta.getBigDecimal(\"ID_DOCUREL\"));\n objDocuRel.setNumDocuunido(rsConsulta.getString(\"NUM_DOCUUNIDO\"));\n \n Sic3docudocu objDocusRela = new Sic3docudocu();\n objDocusRela.setSic1docurel(objDocuRel);\n \n //Cabecera de la operacion(Compra o Venta)\n Sic1docu objDocu = new Sic1docu();\n objDocu.setIdDocu(rsConsulta.getBigDecimal(\"ID_DOCU\"));\n objDocu.setFecDesde(rsConsulta.getDate(\"FEC_OPERACION\"));\n objDocu.setSic1stipodocu(sic1stipodocu);\n objDocu.setCodSerie(rsConsulta.getString(\"COD_SERIE\"));\n objDocu.setNumDocu(rsConsulta.getBigDecimal(\"NUM_DOCU\"));\n objDocu.setSic1persexterno(objPers);\n objDocu.setSic1sclaseeven(objSclaseeven);\n objDocu.setSic3docuesta(objDocuesta);\n objDocu.setSic3docudocu(objDocusRela);\n \n /*DATOS DE PRODUCTO*/\n Sic1prod objProd = new Sic1prod();\n objProd.setIdProd(rsConsulta.getBigDecimal(\"ID_PROD\"));\n objProd.setCodProd(rsConsulta.getString(\"COD_PROD\"));\n objProd.setDesProd(rsConsulta.getString(\"DES_PROD\"));\n objProd.setNumCantstock(rsConsulta.getBigDecimal(\"NUM_CANTSTOCK\"));\n \n \n \n /**/\n Sic3docuprod detOperacion = new Sic3docuprod();\n detOperacion.setNumCantidad(rsConsulta.getBigDecimal(\"NUM_CANTIDAD\"));\n detOperacion.setNumValor(rsConsulta.getBigDecimal(\"NUM_VALOR\"));\n detOperacion.setSic1docu(objDocu);\n detOperacion.setSic1prod(objProd);\n \n list.add(detOperacion); \n }\n \n } catch (SQLException | HibernateException e){\n throw new Exception(e.getMessage()); \n }finally{\n \n if(rsConsulta != null)\n rsConsulta.close();\n \n if(session != null)\n session.close();\n \n }\n \n return list; \n }", "public boolean insertarCreacionHistorialCliente(Cliente cliente) {\n String queryDividido1 = \"INSERT INTO Historial_Cliente(Usuario_Codigo, Nombre, DPI, Direccion, Sexo, Password, Nacimiento, DPI_Escaneado, Tipo, Fecha_Cambio) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?,?,?,?)\";\n java.sql.Date fechaCreacion = new java.sql.Date(Calendar.getInstance().getTime().getTime());\n\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos de Creacion de un Nuevo Cliente a la Tabla Historial_Cliente\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setString(7, cliente.getNacimiento());\n enviarDividido1.setBlob(8, cliente.getDPIEscaneado());\n enviarDividido1.setString(9, \"Creacion\");\n enviarDividido1.setString(10, fechaCreacion.toString());\n enviarDividido1.executeUpdate();\n\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "int getEviId(String project, DataDate date) throws SQLException;", "public List<Object[]> getRetencionSRI(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden)\r\n/* 59: */ {\r\n/* 60:107 */ StringBuilder sql = new StringBuilder();\r\n/* 61: */ \r\n/* 62:109 */ sql.append(\" SELECT f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, \");\r\n/* 63:110 */ sql.append(\" CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), \");\r\n/* 64:111 */ sql.append(\" f.identificacionProveedor, c.descripcion, \");\r\n/* 65:112 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) \");\r\n/* 66:113 */ sql.append(\" \\t+COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) ELSE COALESCE(dfp.baseImponibleRetencion, 0) END,0), \");\r\n/* 67:114 */ sql.append(\" coalesce(dfp.porcentajeRetencion, 0), coalesce(dfp.valorRetencion, 0), coalesce(c.codigo, 'NA'), \");\r\n/* 68:115 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA THEN 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD THEN 'ISD' ELSE '' END,'NA'), \");\r\n/* 69:116 */ sql.append(\" CONCAT(f.establecimientoRetencion,'-',f.puntoEmisionRetencion,'-',f.numeroRetencion), \");\r\n/* 70:117 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 71:118 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, f.autorizacion, f.claveAcceso, f.estado,f.idFacturaProveedorSRI, fp.descripcion \");\r\n/* 72:119 */ sql.append(\" FROM DetalleFacturaProveedorSRI dfp \");\r\n/* 73:120 */ sql.append(\" RIGHT OUTER JOIN dfp.conceptoRetencionSRI c \");\r\n/* 74:121 */ sql.append(\" RIGHT OUTER JOIN dfp.facturaProveedorSRI f \");\r\n/* 75:122 */ sql.append(\" LEFT OUTER JOIN f.facturaProveedor fp \");\r\n/* 76:123 */ sql.append(\" LEFT JOIN f.creditoTributarioSRI ct \");\r\n/* 77:124 */ sql.append(\" WHERE MONTH(f.fechaRegistro) =:mes AND f.documentoModificado IS NULL \");\r\n/* 78:125 */ sql.append(\" AND YEAR(f.fechaRegistro) =:anio \");\r\n/* 79:126 */ sql.append(\" AND f.estado!=:estadoAnulado \");\r\n/* 80:127 */ sql.append(\" AND f.indicadorSaldoInicial!=true \");\r\n/* 81:128 */ sql.append(\" AND f.idOrganizacion = :idOrganizacion \");\r\n/* 82:129 */ if (sucursalFP != null) {\r\n/* 83:130 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 84: */ }\r\n/* 85:132 */ if (sucursalRetencion != null) {\r\n/* 86:133 */ sql.append(\" AND f.establecimientoRetencion = :sucursalRetencion \");\r\n/* 87: */ }\r\n/* 88:135 */ if (puntoVentaRetencion != null) {\r\n/* 89:136 */ sql.append(\" AND f.puntoEmisionRetencion = :puntoVentaRetencion \");\r\n/* 90: */ }\r\n/* 91:138 */ sql.append(\" GROUP BY f.idFacturaProveedorSRI, c.codigo, f.numero, f.puntoEmision, \");\r\n/* 92:139 */ sql.append(\" f.establecimiento, f.identificacionProveedor, \");\r\n/* 93:140 */ sql.append(\" c.descripcion, dfp.baseImponibleRetencion, dfp.porcentajeRetencion, dfp.valorRetencion, f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, f.numeroRetencion, \");\r\n/* 94:141 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 95:142 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, c.tipoConceptoRetencion, f.autorizacion, f.claveAcceso, f.estado, \");\r\n/* 96:143 */ sql.append(\" f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion, fp.descripcion \");\r\n/* 97:144 */ if ((orden != null) && (orden.equals(\"POR_RETENCION\"))) {\r\n/* 98:145 */ sql.append(\" ORDER BY f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion \");\r\n/* 99:146 */ } else if ((orden != null) && (orden.equals(\"POR_FACTURA\"))) {\r\n/* 100:147 */ sql.append(\" ORDER BY f.establecimiento, f.puntoEmision, f.numero \");\r\n/* 101:148 */ } else if ((orden != null) && (orden.equals(\"POR_CONCEPTO\"))) {\r\n/* 102:149 */ sql.append(\" ORDER BY c.descripcion \");\r\n/* 103: */ }\r\n/* 104:151 */ Query query = this.em.createQuery(sql.toString());\r\n/* 105:152 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 106:153 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 107:154 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 108:155 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 109:156 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 110:157 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 111:158 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 112:159 */ if (sucursalFP != null) {\r\n/* 113:160 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 114: */ }\r\n/* 115:162 */ if (sucursalRetencion != null) {\r\n/* 116:163 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 117: */ }\r\n/* 118:165 */ if (puntoVentaRetencion != null) {\r\n/* 119:166 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 120: */ }\r\n/* 121:169 */ return query.getResultList();\r\n/* 122: */ }", "public interface FormularRepository extends JpaRepository<Formular, Long>\n{\n Formular findById(Long id);\n Formular findByDate(Date dataDonare);\n}", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "public void buscarproducto() {\r\n try {\r\n modelo.setNombre(vista.jTbnombre2.getText());//C.P.M le mandamos al modelo el nombre del producto\r\n rs = modelo.Buscar();//C.P.M obtenemos el resultado del modelos\r\n if (rs.equals(\"\")) {//C.P.M en caso de que el resultado venga vacio notificamos a el usuario que no encontro el producto\r\n JOptionPane.showMessageDialog(null, \"No se encontro: \" + vista.jTbnombre2.getText() + \" en la base de datos.\");\r\n }\r\n //C.P.M Para establecer el modelo al JTable\r\n DefaultTableModel buscar = new DefaultTableModel() {\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M Aqui le decimos que no seran editables los campos de la tabla\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M Auui obtenemos la estructura de la tabla(\"Los encabezados\")\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n Object[] fila = new Object[cantidadColumnas];//C.P.M Creamos un objeto con el numero de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recoremos ese vector\r\n fila[i] = rs.getObject(i + 1);//C.P.M Aqui vamos insertando la informacion obtenida de la base de datos\r\n }\r\n buscar.addRow(fila);//C.P.M y agregamos el arreglo como una nueva fila a la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurio un error al buscar el producto\");\r\n }\r\n\r\n }", "int insert(Tipologia record);", "List<FecetDocExpediente> findWhereIdPropuestaEquals(BigDecimal idPropuesta);", "public interface CamareroDAO extends CommonDAO<Camarero> {\n\n List<Object[]> obtenerConsultaCamarero(String queryNativo, String mapeador, Date fechaInicial, Date fechaFinal);\n\n}", "int insertSelective(GoodsPo record);", "@Override\n public CerereDePrietenie save(CerereDePrietenie entity) {\n\n String SQL = \"INSERT INTO cereredeprietenie(id, id_1,id_2,status,datac) VALUES(?,?,?,?,?)\";\n\n long id = 0;\n\n\n try (Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(SQL,\n Statement.RETURN_GENERATED_KEYS)) {\n\n\n pstmt.setInt(1, Math.toIntExact(entity.getId()));\n pstmt.setInt(2, Math.toIntExact(entity.getTrimite().getId()));\n pstmt.setInt(3, Math.toIntExact(entity.getPrimeste().getId()));\n pstmt.setString(4, entity.getStatus());\n pstmt.setObject(5, entity.getData());\n\n\n int affectedRows = pstmt.executeUpdate();\n // check the affected rows\n if (affectedRows > 0) {\n // get the ID back\n try (ResultSet rs = pstmt.getGeneratedKeys()) {\n if (rs.next()) {\n id = rs.getLong(1);\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n\n\n return entity;\n\n }", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public List<ProductoMaterial> getListaProductoMaterial(int idOrganizacion, Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 29: */ {\r\n/* 30:52 */ return this.reporteProyeccionKidsDao.getListaProductoMaterial(idOrganizacion, producto, bodega, fechaDesde, fechaHasta);\r\n/* 31: */ }", "@Override\n\tpublic Collection<LineaComercialClasificacionDTO> consultarLineaComercialClasificacionAsignacionMasivaNoIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,String codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva No Ingresar: {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tBoolean clearCache = Boolean.TRUE;\n\t\tCollection<LineaComercialClasificacionDTO> lineaComercialClasificacionDTOs = new ArrayList<LineaComercialClasificacionDTO>();\n\t\ttry {\n\t\t\tsession = hibernateHLineaComercialClasificacion.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\n\t\t\t\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\" SELECT LC, L, C, CV \");\n\t\t\tquery.append(\" FROM LineaComercialClasificacionDTO LC, LineaComercialDTO L, ClasificacionDTO C, CatalogoValorDTO CV \");\n\t\t\tquery.append(\" WHERE L.id.codigoLineaComercial = LC.codigoLineaComercial \");\n//\t\t\tquery.append(\" AND L.nivel = 0 \");\n\t\t\tquery.append(\" AND L.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND LC.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = '\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion = C.id.codigoClasificacion \");\n\t\tif(!codigoLinCom.equals(\"null\")){\t\n\t\t\tquery.append(\" AND L.id.codigoLineaComercial != \"+codigoLinCom);\n\t\t}\t\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = CV.id.codigoCatalogoValor \");\n\t\t\tquery.append(\" AND L.codigoTipoLineaComercial = CV.id.codigoCatalogoTipo \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion IN ( \");\n\t\t\tif(!nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" AND codigoClasificacionPadre IN( \");\n\t\t\t}\n\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+\" )) \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" \"+codigoClasificacion+\") \");\n\t\t\t}\n\n\t\t\tsqlQuery = hibernateHLineaComercialClasificacion.createQuery(query.toString(), clearCache);\n\t\t\t\n\t\t\t/**\n\t\t\t * aqui se asigna al objeto LineaComercialClasificacionDTO los objetos (ClasificacionDTO,LineaComercialDTO)\n\t\t\t * que nos entrego la consulta por separado\n\t\t\t */\n\t\t\tCollection<Object[]> var = sqlQuery.list();\n\t\t\tfor(Object[] object:var){\n\t\t\t\tLineaComercialClasificacionDTO l=(LineaComercialClasificacionDTO)object[0];\n\t\t\t\tl.setLineaComercial((LineaComercialDTO)object[1]);\n\t\t\t\tl.setClasificacion((ClasificacionDTO)object[2]);\n\t\t\t\tl.getLineaComercial().setTipoLineaComercial((CatalogoValorDTO)object[3]);\n\t\t\t\tlineaComercialClasificacionDTOs.add(l);\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n\t\t\n\t\t\n\t\treturn lineaComercialClasificacionDTOs;\n\t}", "void insertSelective(CTipoComprobante record) throws SQLException;", "private void agregarProducto(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\tString codArticulo = request.getParameter(\"CArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\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\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\t\t// Crear un objeto del tipo producto\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\t// Enviar el objeto al modelo e insertar el objeto producto en la BBDD\n\t\tmodeloProductos.agregarProducto(producto);\n\t\t// Volver al listado de productos\n\t\tobtenerProductos(request, response);\n\n\t}", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "public String addProduct(Context pActividad,int pId, String pDescripcion,float pPrecio)\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n\n // con el objeto de la clase creado habrimos la conexion\n SQLiteDatabase db = admin.getWritableDatabase();\n try\n {\n // Comprobamos si el id ya existe\n Cursor filas = db.rawQuery(\"Select codigo from Articulos where codigo = \" + pId, null);\n if(filas.getCount()<=0)\n {\n //ingresamos los valores mediante, key-value asocioados a nuestra base de datos (tecnica muñeca rusa admin <- db <- registro)\n ContentValues registro = new ContentValues();\n registro.put(\"codigo\",pId);\n registro.put(\"descripcion\",pDescripcion);\n registro.put(\"precio\", pPrecio);\n\n //ahora insertamos este registro en la base de datos\n db.insert(\"Articulos\", null, registro);\n }\n else\n return \"El ID insertado ya existe\";\n }\n catch (Exception e)\n {\n return \"Error Añadiendo producto\";\n }\n finally\n {\n db.close();\n }\n return \"Producto Añadido Correctamente\";\n }", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public static void getProduto(){\r\n try {\r\n PreparedStatement stmn = connection.prepareStatement(\"select id_produto, codigo, produto.descricao pd,preco, grupo.descricao gd from produto inner join grupo on grupo.id_grupo = produto.idgrupo order by codigo\");\r\n ResultSet result = stmn.executeQuery();\r\n\r\n System.out.println(\"id|codigo|descricao|preco|grupo\");\r\n while (result.next()){\r\n long id_produto = result.getLong(\"id_produto\");\r\n String codigo = result.getString(\"codigo\");\r\n String pd = result.getString(\"pd\");\r\n String preco = result.getString(\"preco\");\r\n String gd = result.getString(\"gd\");\r\n\r\n\r\n\r\n System.out.println(id_produto+\"\\t\"+codigo+\"\\t\"+pd+\"\\t\"+preco+\"\\t\"+gd);\r\n }\r\n\r\n }catch (Exception throwables){\r\n throwables.printStackTrace();\r\n }\r\n\r\n }", "@Transactional\n public void llenarTabla(ResultSet rs){\n if (rs==null) {\n System.out.println(\"el rs vino vacio\");\n }\n try {\n while (rs.next()) {\n //para cada fila de la consulta creo un pedido\n PedidoMaterial pedido = new PedidoMaterial();\n System.out.println(\"empezamos\");\n pedido.setId(rs.getInt(1));\n pedido.setNumeroPedido(rs.getInt(2));\n pedido.setNotaDeVenta(rs.getInt(3));\n pedido.setDescripProyecto(rs.getString(4));\n pedido.setCliente(rs.getString(5));\n pedido.setCantidadPedida(rs.getLong(6));\n pedido.setCantidadModificada(rs.getLong(7));\n Calendar fecha = Calendar.getInstance();\n fecha.setTime(rs.getDate(8));\n pedido.setUltimaActualizacionDespiece(fecha);\n pedido.setArticulo(rs.getString(9));\n pedido.setAriCod(rs.getString(10));\n pedido.setArea(rs.getString(11));\n pedido.setUnidadOrg(rs.getInt(12));\n pedido.setTarea(rs.getString(13));\n pedido.setCantidadAPD(rs.getLong(14));\n if (rs.getDate(15) != null) {\n fecha.setTime(rs.getDate(15));\n pedido.setFechaAsignacion(fecha); \n }\n pedido.setCantidadFinalP(rs.getLong(16));\n pedido.setCantidadRealU(rs.getLong(17));\n pedido.setTareaCod(rs.getInt(18));\n fecha.setTime(rs.getDate(19));\n pedido.setFechaUti(fecha);\n fecha.setTime(rs.getDate(20));\n pedido.setFechaFinUtili(fecha);\n \n guardarPedido(pedido);\n \n \n }\n } catch (SQLException ex) {\n \n System.out.println(ex.toString());\n }\n }", "public int getIdProducto() {\n return idProducto;\n }", "public static Consumo insertConsumo(int cantidad_consumo,Date fecha_inicio,\n Producto producto,Servicio servicio){\n Consumo miConsumo = new Consumo(cantidad_consumo,fecha_inicio, \n producto, servicio);\n miConsumo.registrarConsumo();\n return miConsumo;\n }", "@Override\r\n\tpublic void guardarCambiosProducto(Producto producto) {\r\nconectar();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = miConexion.prepareStatement(ConstantesSql.GUARDAR_CAMBIOS_PRODUCTO);\r\n\t\t\tps.setString(1, producto.getNombre());\r\n\t\t\tps.setString(2, producto.getCantidad());;\r\n\t\t\tps.setString(3, producto.getPrecio());\r\n\t\t\tps.setString(6, producto.getOferta());\r\n\t\t\tps.setString(4, producto.getFechaCad());\r\n\t\t\tps.setString(5, producto.getProveedor());\r\n\t\t\tps.setString(7, producto.getComentario());\r\n\t\t\tps.setInt(8, producto.getId());\r\n\t\t\tps.execute();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error sql guardar producto\");\r\n\t\t}\r\n\t\t\r\n\t\tdesconectar();\r\n\t}", "public void setIdContrato(BigDecimal idContrato) {\r\n this.idContrato = idContrato;\r\n }", "public Movimiento(int idMovimiento,int idCuenta, String operacion, double cantidad, Date fecha) {\r\n\t\tsuper();\r\n\t\tthis.idMovimiento = idMovimiento;\r\n\t\tthis.idCuenta = idCuenta;\r\n\t\tthis.operacion = operacion;\r\n\t\tthis.cantidad = cantidad;\r\n\t\tthis.fecha = fecha;\r\n\t}", "public Movimiento(int idCuenta, String operacion, double cantidad, Date fecha) {\r\n\t\tsuper();\r\n\t\tthis.idCuenta = idCuenta;\r\n\t\tthis.operacion = operacion;\r\n\t\tthis.cantidad = cantidad;\r\n\t\tthis.fecha = fecha;\r\n\t}", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public JPosicion(int maquina_id, int producto_id, String fila_columna, int pr_venta, int capacidad, int ultimas, String fecha, int estado){\n\t\t\t\n\t\t\tmMaquina_id = maquina_id;\n\t\t\tmProducto_id = producto_id;\n\t\t\tmPos_fila_columna = fila_columna;\n\t\t\tmPr_venta = pr_venta;\n\t\t\tmCapacidad = capacidad;\n\t\t\tmUltimas = ultimas;\n\t\t\tmFecha = fecha;\n\t\t\tmEstado = estado;\n\t\t\t}", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "void saveProduct(Product product);", "BpmInstanciaHistorica selectByPrimaryKey(Long idreg);", "int getEtaId(String project, DataDate date) throws SQLException;", "@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}", "int getSaviId(String project, String feature, DataDate date) throws SQLException;" ]
[ "0.6550859", "0.5953939", "0.5825299", "0.57794714", "0.57696307", "0.575021", "0.5739182", "0.5713364", "0.5695636", "0.56484497", "0.5610186", "0.5608006", "0.5602231", "0.5597912", "0.5589962", "0.5575891", "0.5564927", "0.5539546", "0.55165684", "0.5515107", "0.5489338", "0.5484015", "0.5479409", "0.54609245", "0.5460523", "0.5455165", "0.54541594", "0.54535824", "0.54422796", "0.5439709", "0.54334086", "0.5422822", "0.54182404", "0.541367", "0.5406002", "0.5399866", "0.5396854", "0.5395929", "0.539471", "0.53938806", "0.53846914", "0.53765213", "0.5372822", "0.53510517", "0.534453", "0.53401285", "0.53388464", "0.53275836", "0.5318311", "0.5315651", "0.53069395", "0.53010297", "0.52868617", "0.52853656", "0.5271489", "0.5267481", "0.5265523", "0.5263126", "0.5259124", "0.5258737", "0.5258038", "0.525745", "0.5254292", "0.52539104", "0.5252108", "0.52503633", "0.52497363", "0.524913", "0.52444005", "0.52431005", "0.52427936", "0.5242381", "0.5237203", "0.523153", "0.5224079", "0.52233547", "0.5220843", "0.52170175", "0.5214826", "0.52143645", "0.5212723", "0.520915", "0.5208297", "0.52070326", "0.5206635", "0.52061164", "0.5204404", "0.5204352", "0.5204253", "0.52035475", "0.52013475", "0.520092", "0.5200673", "0.51998776", "0.5196501", "0.51942384", "0.51874197", "0.51799715", "0.5179532", "0.5177391", "0.5174447" ]
0.0
-1
Gets the value of the id property.
public long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "public final String getIdAttribute() {\n return getAttributeValue(\"id\");\n }", "public java.lang.Integer getId() {\n return id;\n }", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public Integer getId() {\n return id.get();\n }", "public java.lang.Integer getId() {\n return id;\n }", "public java.lang.Integer getId() {\n\t\treturn id;\n\t}", "public java.lang.Integer getId() {\n\t\treturn id;\n\t}", "public java.lang.Integer getId() {\n return id;\n }", "public Long getId( )\n\t{\n\t\treturn id;\n\t}", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public java.lang.Integer getId () {\r\n return id;\r\n }", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public final String getId() {\r\n\t\treturn id;\r\n\t}", "public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}", "public final long getId() {\r\n return id;\r\n }", "public long getId() {\n\t\t\treturn id;\n\t\t}", "public java.lang.Integer getId()\n {\n return id;\n }", "public java.lang.Integer getId()\r\n {\r\n return id;\r\n }", "public long getId() {\n\t\treturn(id);\n\t}", "public long getId()\n\t{\n\t\treturn id;\n\t}", "public java.lang.Long getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public Long getId() {\n return this.id.get();\n }", "public java.lang.Long getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.Long getId () {\r\n\t\treturn id;\r\n\t}", "public java.lang.Long getId () {\r\n\t\treturn id;\r\n\t}", "public java.lang.Integer getId () {\n\t\treturn _id;\n\t}", "public java.lang.Long getId()\n\t{\n\t\treturn id;\n\t}", "public java.lang.Long getId()\n\t{\n\t\treturn id;\n\t}", "public java.lang.Long getId() {\n return id;\n }", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public com.google.protobuf.ByteString\n getIdBytes() {\n java.lang.Object ref = id_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n id_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}" ]
[ "0.84249485", "0.8159817", "0.80093676", "0.7987476", "0.79728025", "0.79675865", "0.79444265", "0.7938365", "0.79383576", "0.79383576", "0.7921156", "0.790411", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.7902068", "0.78951883", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.7888108", "0.787936", "0.7879152", "0.78761494", "0.78371584", "0.7836981", "0.7823553", "0.78143907", "0.77998257", "0.77917224", "0.7788892", "0.77767843", "0.77767843", "0.77702314", "0.7769206", "0.7768303", "0.7768303", "0.7768303", "0.7761322", "0.7761322", "0.7758925", "0.77561355", "0.77561355", "0.7750667", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7746222", "0.7745214", "0.7745214", "0.7745214", "0.7745214", "0.7745214", "0.7742794", "0.7742794", "0.7742794", "0.7742794", "0.7742794", "0.7742794", "0.7739413", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663", "0.7738663" ]
0.0
-1
Sets the value of the id property.
public void setId(long value) { this.id = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(final int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(Long id) {\n this.id.set(id);\n }", "public void setId(final int id) {\n mId = id;\n }", "public final void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(final Integer id) {\n this.id = id;\n }", "public void setId (java.lang.Integer id) {\r\n this.id = id;\r\n }", "public void setId(long id) {\n\t\tgetTo(false).setId(id);\n\t}", "public void setId(java.lang.Integer id) {\n this.id = id;\n }", "public void setId(final long id) {\n this.id = id;\n }", "public void setId(final Integer id)\n {\n this.id = id;\n }", "public void setId(final Long id) {\n\t\tthis.id = id;\n\t}", "public final void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId(java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId(int id) {\n\t\tif(id > 0)\n\t\t\tthis.id = id;\n\t}", "public final void setId(long id) {\n mId = id;\n }", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(final Long id) {\n this.id = id;\n }", "public void setId(final Long id) {\n this.id = id;\n }", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id)\n {\n data().put(_ID, id);\n }", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n if (this.id == null) {\n this.id = id;\n }\n }", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(final Long id) {\n this.id = id;\n }" ]
[ "0.85151964", "0.849269", "0.84402037", "0.8436857", "0.8434232", "0.84240294", "0.8416989", "0.8416989", "0.83925897", "0.8388507", "0.83824813", "0.83819836", "0.8380308", "0.8371262", "0.8339339", "0.82933193", "0.8276746", "0.8276746", "0.8271697", "0.8270029", "0.8267477", "0.8267477", "0.8267477", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.8265643", "0.82630277", "0.82630277", "0.8260852", "0.8260852", "0.8260852", "0.8260852", "0.8260852", "0.8260852", "0.8260852", "0.8260852", "0.8254043", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82504696", "0.82375443", "0.82375443", "0.82375443", "0.82375443", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.82295567", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8211851", "0.8208392", "0.81994486", "0.81994486", "0.8198342" ]
0.0
-1
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ID return ID; case 2: // NAME return NAME; case 3: // ARTISTS return ARTISTS; case 4: // RELEASE_DATE return RELEASE_DATE; case 5: // GENRES return GENRES; case 6: // TRACK_NAMES return TRACK_NAMES; case 7: // TEXT return TEXT; default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TOTAL_FILES_MATERIALIZED_COUNT\n return TOTAL_FILES_MATERIALIZED_COUNT;\n case 2: // FILES_MATERIALIZED_FROM_CASCOUNT\n return FILES_MATERIALIZED_FROM_CASCOUNT;\n case 3: // TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS\n return TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMB_INSTRUMENT_ID\n return COMB_INSTRUMENT_ID;\n case 2: // LEG_ID\n return LEG_ID;\n case 3: // LEG_INSTRUMENT_ID\n return LEG_INSTRUMENT_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // OUTPUT_DIR\n return OUTPUT_DIR;\n case 3: // SUBSET\n return SUBSET;\n case 4: // TYPES\n return TYPES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAM_MAP\n return PARAM_MAP;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCOUNT_IDS\n return ACCOUNT_IDS;\n case 2: // COMMODITY_IDS\n return COMMODITY_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // M_COMMAND_TYPE\n return M_COMMAND_TYPE;\n case 2: // M_BLOCK_IDS\n return M_BLOCK_IDS;\n case 3: // M_FILE_PATH\n return M_FILE_PATH;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // CUS_PER_BASE\n return CUS_PER_BASE;\n case 3: // TOTAL_ASSETS\n return TOTAL_ASSETS;\n case 4: // TOTAL_LIAB\n return TOTAL_LIAB;\n case 5: // FAMILY_ASSETS\n return FAMILY_ASSETS;\n case 6: // YEAR_PAY\n return YEAR_PAY;\n case 7: // MONTH_WAGE\n return MONTH_WAGE;\n case 8: // FAMILY_INCOME\n return FAMILY_INCOME;\n case 9: // FAMILY_CONTROL\n return FAMILY_CONTROL;\n case 10: // STATUS\n return STATUS;\n case 11: // ASSETS_DETAIL\n return ASSETS_DETAIL;\n case 12: // LIAB_DETAIL\n return LIAB_DETAIL;\n case 13: // MONTHLY_PAYMENT\n return MONTHLY_PAYMENT;\n case 14: // OVERDRAFT\n return OVERDRAFT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }" ]
[ "0.79869914", "0.7915354", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.77862614", "0.7779145", "0.77291805", "0.7727816", "0.7721567", "0.77125883", "0.77125883", "0.7709597", "0.7708822", "0.7701162", "0.7699386", "0.76957756", "0.7687628", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76785046", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.76718855", "0.766961", "0.766961", "0.7663572", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.76630384", "0.7648934", "0.7644055", "0.764325", "0.7634706", "0.76222456", "0.76209694", "0.7618461", "0.76121426", "0.76118654", "0.76118654", "0.760653", "0.760217", "0.760217", "0.760217", "0.760217", "0.760217", "0.7600617", "0.75965196", "0.75965196", "0.75958437", "0.75958437", "0.7593029", "0.7593029", "0.7593029" ]
0.0
-1
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // EXCEPTION_ID\n return EXCEPTION_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // REPORT_DATE\n return REPORT_DATE;\n case 5: // UN_ASSURE_CONDITION\n return UN_ASSURE_CONDITION;\n case 6: // HOUSE_PROPERY_CONDITION\n return HOUSE_PROPERY_CONDITION;\n case 7: // REMARK\n return REMARK;\n case 8: // CREATE_DATE\n return CREATE_DATE;\n case 9: // CREATE_ID\n return CREATE_ID;\n case 10: // UPDATE_DATE\n return UPDATE_DATE;\n case 11: // UPDATE_ID\n return UPDATE_ID;\n case 12: // PROJECT_ID\n return PROJECT_ID;\n case 13: // LEGAL_LIST\n return LEGAL_LIST;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // POSITION_ID\n return POSITION_ID;\n case 3: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // APP_CODE\n \treturn APP_CODE;\n case 2: // REQUEST_DATE\n \treturn REQUEST_DATE;\n case 3: // SIGN\n \treturn SIGN;\n case 4: // SP_ID\n \treturn SP_ID;\n case 5: // OUT_ORDER_ID\n \treturn OUT_ORDER_ID;\n case 6: // DEVICE_NO\n \treturn DEVICE_NO;\n case 7: // DEVICE_TYPE\n \treturn DEVICE_TYPE;\n case 8: // PROVINCE_ID\n \treturn PROVINCE_ID;\n case 9: // CUST_ID\n \treturn CUST_ID;\n case 10: // NUM\n \treturn NUM;\n case 11: // REMARK\n \treturn REMARK;\n case 12: // ACTIVE_ID\n \treturn ACTIVE_ID;\n case 13: // EXP_TIME\n \treturn EXP_TIME;\n default:\n \treturn null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID\r\n return ID;\r\n case 2: // ID_CURSA\r\n return ID_CURSA;\r\n case 3: // NR_LOC\r\n return NR_LOC;\r\n case 4: // CLIENT\r\n return CLIENT;\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXEC_TRADE_ID\n return EXEC_TRADE_ID;\n case 2: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 3: // SLED_CONTRACT_ID\n return SLED_CONTRACT_ID;\n case 4: // EXEC_ORDER_ID\n return EXEC_ORDER_ID;\n case 5: // TRADE_PRICE\n return TRADE_PRICE;\n case 6: // TRADE_VOLUME\n return TRADE_VOLUME;\n case 7: // EXEC_TRADE_DIRECTION\n return EXEC_TRADE_DIRECTION;\n case 8: // CREATE_TIMESTAMP_MS\n return CREATE_TIMESTAMP_MS;\n case 9: // LASTMODIFY_TIMESTAMP_MS\n return LASTMODIFY_TIMESTAMP_MS;\n case 10: // SLED_COMMODITY_ID\n return SLED_COMMODITY_ID;\n case 11: // CONFIG\n return CONFIG;\n case 12: // ORDER_TOTAL_VOLUME\n return ORDER_TOTAL_VOLUME;\n case 13: // LIMIT_PRICE\n return LIMIT_PRICE;\n case 14: // SOURCE\n return SOURCE;\n case 15: // TRADE_ACCOUNT_ID\n return TRADE_ACCOUNT_ID;\n case 16: // TRADE_TIMESTAMP_MS\n return TRADE_TIMESTAMP_MS;\n case 17: // ASSET_TRADE_DETAIL_ID\n return ASSET_TRADE_DETAIL_ID;\n case 18: // SUB_USER_ID\n return SUB_USER_ID;\n case 19: // SLED_ORDER_ID\n return SLED_ORDER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONF\n return CONF;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONTRACT_ADDRESS\n return CONTRACT_ADDRESS;\n case 2: // OBJECT\n return OBJECT;\n case 3: // STATE_CAN_MODIFY\n return STATE_CAN_MODIFY;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }" ]
[ "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.76263803", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.7621625", "0.75413454", "0.7533915", "0.7441116", "0.7441116", "0.7441116", "0.7441116", "0.7441116", "0.7441116", "0.7428211", "0.7428211", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.7427411", "0.74231005", "0.74227566", "0.7402734", "0.7394498", "0.7393535", "0.7390972", "0.738231", "0.73778975", "0.73758376", "0.73722726", "0.73624367", "0.73624367", "0.73505694", "0.73505694", "0.7341676", "0.7341676", "0.7341676", "0.7334167", "0.7326948", "0.73169744", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7315101", "0.7307957", "0.7288311", "0.7285484", "0.7270378", "0.7269859", "0.7267483", "0.72561085", "0.7254674", "0.7253376", "0.7248904", "0.7248904", "0.7247222", "0.7247222", "0.7247222", "0.7247222", "0.7247222" ]
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 }", "@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\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 }", "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}", "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}", "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "public static _Fields findByName(String name) {\n return byName.get(name);\n }" ]
[ "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7644481", "0.7633625", "0.7633625", "0.7633625", "0.7633625", "0.7633625", "0.7633625", "0.7633625", "0.7633625", "0.7633625", "0.75744087", "0.75744087", "0.7566793", "0.7566793", "0.7542289", "0.7542289", "0.7542289", "0.7542289", "0.7542289", "0.7542289" ]
0.7582317
90
Performs a deep copy on other.
public Album(Album other) { if (other.isSetId()) { this.id = other.id; } if (other.isSetName()) { Set<String> __this__name = new HashSet<String>(); for (String other_element : other.name) { __this__name.add(other_element); } this.name = __this__name; } if (other.isSetArtists()) { Set<String> __this__artists = new HashSet<String>(); for (String other_element : other.artists) { __this__artists.add(other_element); } this.artists = __this__artists; } if (other.isSetRelease_date()) { Set<String> __this__release_date = new HashSet<String>(); for (String other_element : other.release_date) { __this__release_date.add(other_element); } this.release_date = __this__release_date; } if (other.isSetGenres()) { Set<String> __this__genres = new HashSet<String>(); for (String other_element : other.genres) { __this__genres.add(other_element); } this.genres = __this__genres; } if (other.isSetTrack_names()) { Set<String> __this__track_names = new HashSet<String>(); for (String other_element : other.track_names) { __this__track_names.add(other_element); } this.track_names = __this__track_names; } if (other.isSetText()) { this.text = other.text; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperties)\n\t\t{\n\t\t\tproperties.put(property.key, property.clone());\n\t\t}\n\t}", "public void copyDataFrom(ParamUnit other)\r\n\t{\r\n\t\tif (this.data.row != other.data.row || this.data.col != other.data.col)\r\n\t\t\tthrow new DeepException(\"Cannot copy data from a different dimension.\");\r\n\t\tthis.data.copyFrom(other.data);\r\n\t}", "private Path(Path other){\n\t\t\n\t\tthis.source = other.source;\n\t\tthis.destination = other.destination;\n\t\tthis.cities = other.cities;\n\t\t\n\t\tthis.cost = other.cost;\n\t\tthis.destination = other.destination;\n\t\t\n\t\tthis.connections = new LinkedList<Connection>();\n\t\t\n\t\tfor (Connection c : other.connections){\n\t\t\tthis.connections.add((Connection) c.clone());\n\t\t}\n\t\t\n\t}", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public void copy() {\n\n\t}", "public abstract B copy();", "public CMObject copyOf();", "public T cloneDeep();", "public void copy(BlastGraph<HitVertex, ValueEdge> graphToCopy) {\n\t\t// empty this graph\n\t\tthis.empty();\n\n\t\t// union this empty graph with graphToCopy\n\t\tthis.union(graphToCopy);\n\t}", "public void mirror(Dataset other) {\n clear();\n this.ntree.addAll(other.ntree);\n }", "Model copy();", "public abstract INodo copy();", "static void setCopying(){isCopying=true;}", "Nda<V> shallowCopy();", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "T copy();", "@Override\n\t\tpublic ImmutableSequentialGraph copy() {\n\t\t\treturn new ComposedGraph( g0, g1.copy() );\n\t\t}", "public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}", "Component deepClone();", "public Data assign(Data other) {\r\n this.setDimension(other.dimension);\r\n this.distanz = other.distanz;\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = other.data[i];\r\n }\r\n this.id = other.id;\r\n return this;\r\n }", "@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }", "public AST copy()\n {\n return new Implicate(left, right);\n }", "@Override\n public void copyValues(final fr.jmmc.oiexplorer.core.model.OIBase other) {\n final View view = (View) other;\n\n // copy type, subsetDefinition (reference):\n this.type = view.getType();\n this.subsetDefinition = view.getSubsetDefinition();\n }", "public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }", "public abstract Node copy();", "protected void copy(Writable other) {\n\t\tif (other != null) {\n\t\t\ttry {\n\t\t\t\tDataOutputBuffer out = new DataOutputBuffer();\n\t\t\t\tother.write(out);\n\t\t\t\tDataInputBuffer in = new DataInputBuffer();\n\t\t\t\tin.reset(out.getData(), out.getLength());\n\t\t\t\treadFields(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalArgumentException(\"map cannot be copied: \" +\n\t\t\t\t\t\te.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"source map cannot be null\");\n\t\t}\n\t}", "protected void copyInto(Schedule other) {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++)\r\n\t\t\t\tother.schedule[i][j] = schedule[i][j];\t\t\r\n\t}", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}", "@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}", "Object clone();", "Object clone();", "@Override\n public FieldEntity copy()\n {\n return state.copy();\n }", "private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "Nda<V> deepCopy();", "@Override\n public LocalStore<V> copy() {\n return this;\n }", "public abstract TreeNode copy();", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }", "@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}", "public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }", "@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}", "public Data copy(Object value) {\n if (mValue instanceof Data) {\n ((Data) mValue).copy(value);\n } else {\n mValue = value;\n }\n return this;\n }", "public void\n\tcopy( Vector3 other )\n\t{\n\t\tdata[0] = other.data[0];\n\t\tdata[1] = other.data[1];\n\t\tdata[2] = other.data[2];\n\t}", "private static void copy(List<? super Number> dest, List<? extends Number> src) {\n for (int i = 0; i < src.size(); i++) {\n dest.set(i, src.get(i));\n //dest.add(src.get(i));\n }\n }", "private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }", "public abstract void copy(Result result, Object object);", "protected AbstractChartModel copy(AbstractChartModel aCopy) {\n aCopy.title = title;\n aCopy.xAxisTitle = xAxisTitle;\n aCopy.yAxisTitle = yAxisTitle;\n aCopy.xRangeMax = xRangeMax;\n aCopy.xRangeMin = xRangeMin;\n aCopy.xRangeIncr = xRangeIncr;\n aCopy.yRangeMax = yRangeMax;\n aCopy.yRangeMin = yRangeMin;\n aCopy.yRangeIncr = yRangeIncr;\n aCopy.simModel = simModel;\n ArrayList list = new ArrayList();\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource) dataSources.get(i);\n list.add(ds.copy());\n }\n aCopy.dataSources = list;\n\n return aCopy;\n }", "@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);", "private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }", "public Game copy();", "public void pasteFrom(Flow other)\n\t\t{\n\t\tunits.addAll(other.units);\n\t\tconns.addAll(other.conns);\n\t\t}", "@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }", "public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}", "public CFExp deepCopy(){\r\n return this;\r\n }", "DataContext copy();", "@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }", "@Override\n\tpublic SecuredRDFList copy();", "@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}", "public O copy() {\n return value();\n }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "public abstract Object clone();", "public Function clone();", "public abstract Type treeCopy();", "public Tree<K, V> copy(Tree<K, V> t, Tree<K, V> copy) {\n\t\tcopy = copy.add(key, value);\n\t\tcopy = left.copy(left, copy);\n\t\tcopy = right.copy(right, copy);\n\t\treturn copy;\n\t}", "public Results copy()\n {\n Results copy = new Results();\n for(Object object : results) {\n copy.add( object );\n }\n return copy;\n }", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}", "@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}", "public directed_weighted_graph deepCopy() {\n DWGraph_DS copyGraph = new DWGraph_DS(this); //create a new graph with the original graph data (only primitives)\n HashMap<Integer, node_data> copyNodesMap = new HashMap<>(); //create a new nodes HashMap for the new graph\n for (node_data node : nodes.values()) { //loop through all nodes in the original graph\n copyNodesMap.put(node.getKey(), new NodeData((NodeData) node)); //makes a duplicate of the original HashMap\n }\n copyGraph.nodes = copyNodesMap; //set the new graph nodes to the new HashMap we made.\n return copyGraph;\n }", "public Object clone() {\n return this.copy();\n }", "@Override\n public Operator visitCopy(Copy operator)\n {\n throw new AssertionError();\n }", "@Test\n\tpublic void copy() {\n\t\tBody b1 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tCollisionItemAdapter<Body, BodyFixture> c1 = this.item.copy();\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tCollisionItemAdapter<Body, BodyFixture> c2 = this.item.copy();\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t\t\n\t\t// make sure it's a deep copy\n\t\tc1.set(null, null);\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t}", "public abstract Object clone() ;", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "public PaginationVO(PaginationVO other) {\n __isset_bitfield = other.__isset_bitfield;\n this.pageSize = other.pageSize;\n this.pageNo = other.pageNo;\n this.upPage = other.upPage;\n this.nextPage = other.nextPage;\n this.totalCount = other.totalCount;\n this.totalPage = other.totalPage;\n if (other.isSetPageUrl()) {\n this.pageUrl = other.pageUrl;\n }\n if (other.isSetParams()) {\n this.params = other.params;\n }\n if (other.isSetDatas()) {\n List<BlogPostVO> __this__datas = new ArrayList<BlogPostVO>();\n for (BlogPostVO other_element : other.datas) {\n __this__datas.add(new BlogPostVO(other_element));\n }\n this.datas = __this__datas;\n }\n }", "public WorldState (WorldState other)\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\t\t\n\t\tcopy(other);\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}", "@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);", "@Override\n public INDArray copy(INDArray x, INDArray y) {\n //NativeBlas.dcopy(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n JavaBlas.rcopy(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n return y;\n }", "@Override\n\tpublic function copy() {\n\t\tMonom M=new Monom(this.get_coefficient(),this.get_power());\n\t\t\n\t\treturn M;\n\t}", "public Object detachCopy(Object po)\n{\n\treturn po;\n}", "public ConfabulatorObject getCopy() {\n\t\tConfabulatorObject copy = new ConfabulatorObject(getMessenger());\n\t\tlockMe(this);\n\t\tint maxD = maxLinkDistance;\n\t\tint maxC = maxLinkCount;\n\t\tList<Link> linksCopy = new ArrayList<Link>();\n\t\tfor (Link lnk: links) {\n\t\t\tlinksCopy.add(lnk.getCopy());\n\t\t}\n\t\tunlockMe(this);\n\t\tcopy.initialize(maxD,maxC,linksCopy);\n\t\treturn copy;\n\t}", "@Override\r\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS();\r\n for (node_info curr : this.Graph.getV()) { //The loop passes through all the ver' of the graph\r\n Nodes t = new Nodes(curr); //create new node\r\n copy.addNode(t.key); //copy the the old node to the new node\r\n }\r\n for (node_info curr0 : this.Graph.getV()) {\r\n for (node_info curr1 : this.Graph.getV(curr0.getKey())) { //this loops pass over the all nodes and copy the connection\r\n double i = this.Graph.getEdge(curr0.getKey(), curr1.getKey());\r\n if (i != -1) {\r\n copy.connect(curr0.getKey(), curr1.getKey(), i);\r\n }\r\n }\r\n }\r\n return copy;\r\n\r\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }", "public static void main(String[] args) throws CloneNotSupportedException\n {\n ArrayList<String> companies = new ArrayList<String>();\n companies.add(\"Baidu\");\n companies.add(\"Tencent\");\n companies.add(\"Ali\");\n WorkExprience workExprience = new WorkExprience(companies);\n String nameString = new String(\"Tom\");\n String genderString = new String(\"male\");\n Resume resume = new Resume(nameString, 23, genderString, workExprience);\n System.out.println(\"Source Resume\");\n resume.printResum();\n \n ArrayList<String> companies1 = new ArrayList<String>();\n companies1.add(\"Google\");\n companies1.add(\"Microsoft\");\n companies1.add(\"Oracle\");\n Resume copyResume = (Resume)resume.clone();\n String nameString1 = new String(\"Jerry\");\n String genderString1 = new String(\"Fmale\");\n copyResume.setName(nameString1);\n copyResume.setAge(20);\n copyResume.setGender(genderString1);\n copyResume.getWorkExprience().setCompanyArrayList(companies1);\n System.out.println();\n System.out.println(\"Source Resume\");\n resume.printResum();\n System.out.println();\n System.out.println(\"Copy Resume\");\n copyResume.printResum();\n }", "public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}", "protected void deepCloneReferences(uka.transport.DeepClone _helper)\n throws CloneNotSupportedException\n {\n //Cloning the byte array\n\t this.value = _helper.doDeepClone(this.value);\n //byte[] value_clone = new byte[this.value.length]; \n //System.arraycopy(this.value, 0, value_clone, 0, this.value.length);\n //this.value = value_clone;\n }", "static void setNotCopying(){isCopying=false;}", "void copy(DependencyRelations deps){\n if (deps == null)\n throw new IllegalArgumentException(\"the source is null.\");\n\n size_ = deps.size_;\n for(int i = 0; i < size_ ; i++){\n if (nodes_[i] == null)\n nodes_[i] = new Node();\n nodes_[i].copy(deps.nodes_[i]);\n }\n }", "@SuppressWarnings(\"All\")\n public <T> void copy(MyList<? super T> to, MyList<? extends T> from) {\n\n System.out.println(\"from size \" + from.size);\n for (int i = 0; i < from.getSize(); i++) {\n to.add(from.getByIndex(i));\n }\n }", "public void copy(Posts that) {\r\n\t\tsetId(that.getId());\r\n\t\tsetTitle(that.getTitle());\r\n\t\tsetContent(that.getContent());\r\n\t\tsetShareDate(that.getShareDate());\r\n\t\tsetIsPrivate(that.getIsPrivate());\r\n\t\tsetUsers(that.getUsers());\r\n\t\tsetCommentses(new java.util.LinkedHashSet<com.ira.domain.Comments>(that.getCommentses()));\r\n\t}", "@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }" ]
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", "0.6270614", "0.6265534", "0.6262602", "0.6245396", "0.6226707", "0.62195224", "0.6199828", "0.6194176", "0.61679715", "0.61505216", "0.6141201", "0.6141201", "0.613657", "0.61238766", "0.6113572", "0.6078777", "0.6067093", "0.6051407", "0.60489607", "0.60435355", "0.6034403", "0.6030665", "0.603029", "0.6002317", "0.5987207", "0.5984917", "0.59831345", "0.5962016", "0.5931717", "0.59043086", "0.58999294", "0.58940864", "0.5888768", "0.5887435", "0.5887003", "0.5872753", "0.58715606", "0.5867456", "0.5854781", "0.5835268", "0.5833011", "0.58237326", "0.58237326", "0.58237326", "0.58237326", "0.5821464", "0.5818652", "0.5814066", "0.57974726", "0.579667", "0.5792226", "0.57900447", "0.57734174", "0.57581633", "0.5751797", "0.57507133", "0.5744841", "0.5744065", "0.5744024", "0.5743795", "0.5740732", "0.57376605", "0.5736934", "0.5736099", "0.5727886", "0.5727659", "0.5714002", "0.5700601", "0.56953377", "0.5689013", "0.5682943", "0.5676875", "0.56736434", "0.56729144", "0.567041", "0.5669635", "0.56651294", "0.56643426", "0.5662451", "0.5647604" ]
0.0
-1
L'identifiant unique de cet album
public String getId() { return this.id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String galleryItemIdentity();", "public String getPhotoId() {\n return fullPhoto.getPhotoId();\n }", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "public static Long getAValidImageId() {\n\t\tLong id = getAId();\n\t\tif (id == null) {\n\n\t\t\tImage img = new Image(\"http://dummy.com/img.jpg\", (long)(Math.random()*10000), \"Description\", \"keyword\", new Date(0001L));\n\t\t\tIImageStore imageStore = StoreFactory.getImageStore();\n\t\t\timageStore.insert(img);\n\n\t\t\tid = getAId();\n\t\t\tif (id == null) {\n\t\t\t\tthrow new RuntimeException(\"There are no images in DB, and I can't insert one. Cannot run tests without.\");\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}", "public int getAlbumCoverId() {\n return mAlbumCoverId;\n }", "@Override\n public Song syncId(Song song) {\n Long id = create.select()\n .from(T_SONG)\n .where(T_SONG.LYRICS.eq(song.getLyrics()))\n .fetchOne(T_SONG.SONGID);\n\n if (id != null) {\n song.setId(id);\n }\n\n return song;\n }", "String getUniqueId();", "String getUniqueID();", "public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "public String getUniqueID();", "String uniqueId();", "private static String existingAlbumArt(Context context, long albumId) {\n\n if (albumId != -1) {\n\n Cursor albumArtCursor = context.getContentResolver().query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI,\n new String[]{MediaStore.Audio.Albums.ALBUM_ART},\n MediaStore.Audio.Albums._ID + \"=?\", new String[]{String.valueOf(albumId)}, null);\n\n if (albumArtCursor != null) {\n if (albumArtCursor.moveToFirst()) {\n String existingArtLocation = albumArtCursor\n .getString(albumArtCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM_ART));\n\n albumArtCursor.close();\n return existingArtLocation;\n }\n albumArtCursor.close();\n }\n }\n return null;\n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public void setLastAlbumRetrieved(String album, long id);", "public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }", "int getOwnerID();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Album)) {\n return false;\n }\n Album other = (Album) object;\n if ((this.idAlbum == null && other.idAlbum != null) || (this.idAlbum != null && !this.idAlbum.equals(other.idAlbum))) {\n return false;\n }\n return true;\n }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "int insert(UserAlbum record);", "public String getAlbum() {\n\t\treturn album;\r\n\t}", "public int getId() {\n // some code goes here\n return f.getAbsoluteFile().hashCode();\n //throw new UnsupportedOperationException(\"implement this\");\n }", "private static String getAlbum(String songID) throws SQLException {\n albumStatement = conn.createStatement();\n albumResultSet = albumStatement.executeQuery(\"SELECT * FROM album, trackAlbum WHERE trackAlbum.track_id = '\" + songID + \"' AND trackAlbum.album_id = album.id;\");\n albumResultSet.next();\n return albumResultSet.getString(\"name\");\n }", "SportAlbumPicture selectByPrimaryKey(String id);", "int insert(SportAlbumPicture record);", "public String getUniqueId() {\n return _uniqueId;\n }", "public String getAlbum()\n {\n return album;\n }", "@Override\n public int hashCode() {\n return getTrackId();\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "long getOwnerIdLong();", "public String getUniqueID ( ) { return _uniqueID; }", "int insertSelective(UserAlbum record);", "public int getUniqueID() { \n return -1;\n }", "java.lang.String getAoisId();", "@Override\n public String getIdInstagram() {\n return idInstagram;\n }", "public int getImageId(){\n \t\treturn imageId;\n \t}", "private static String getUniqueId()\n\t{\n\t\tfinal int limit = 100000000;\n\t\tint current;\n\t\tsynchronized (DiskFileItem.class)\n\t\t{\n\t\t\tcurrent = counter.nextInt();\n\t\t}\n\t\tString id = Integer.toString(current);\n\n\t\t// If you manage to get more than 100 million of ids, you'll\n\t\t// start getting ids longer than 8 characters.\n\t\tif (current < limit)\n\t\t{\n\t\t\tid = (\"00000000\" + id).substring(id.length());\n\t\t}\n\t\treturn id;\n\t}", "public String getPhotoId() {\n\t\treturn photoId;\n\t}" ]
[ "0.636904", "0.6119101", "0.6112361", "0.61000276", "0.59971714", "0.59297115", "0.5843476", "0.58405614", "0.5747894", "0.56754845", "0.5667814", "0.56338423", "0.5625195", "0.5624694", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56206465", "0.56111497", "0.55966055", "0.55790955", "0.5576862", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5563945", "0.5558298", "0.55543834", "0.55393034", "0.553429", "0.5533843", "0.55290574", "0.5520404", "0.5516369", "0.54942936", "0.5490684", "0.54890996", "0.54890996", "0.54833615", "0.5481941", "0.54746246", "0.54648066", "0.5464175", "0.5461201", "0.54603016", "0.54464936", "0.5446095" ]
0.0
-1
L'identifiant unique de cet album
public Album setId(String id) { this.id = id; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String galleryItemIdentity();", "public String getPhotoId() {\n return fullPhoto.getPhotoId();\n }", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "public static Long getAValidImageId() {\n\t\tLong id = getAId();\n\t\tif (id == null) {\n\n\t\t\tImage img = new Image(\"http://dummy.com/img.jpg\", (long)(Math.random()*10000), \"Description\", \"keyword\", new Date(0001L));\n\t\t\tIImageStore imageStore = StoreFactory.getImageStore();\n\t\t\timageStore.insert(img);\n\n\t\t\tid = getAId();\n\t\t\tif (id == null) {\n\t\t\t\tthrow new RuntimeException(\"There are no images in DB, and I can't insert one. Cannot run tests without.\");\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}", "public int getAlbumCoverId() {\n return mAlbumCoverId;\n }", "@Override\n public Song syncId(Song song) {\n Long id = create.select()\n .from(T_SONG)\n .where(T_SONG.LYRICS.eq(song.getLyrics()))\n .fetchOne(T_SONG.SONGID);\n\n if (id != null) {\n song.setId(id);\n }\n\n return song;\n }", "String getUniqueId();", "String getUniqueID();", "public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "public String getUniqueID();", "private static String existingAlbumArt(Context context, long albumId) {\n\n if (albumId != -1) {\n\n Cursor albumArtCursor = context.getContentResolver().query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI,\n new String[]{MediaStore.Audio.Albums.ALBUM_ART},\n MediaStore.Audio.Albums._ID + \"=?\", new String[]{String.valueOf(albumId)}, null);\n\n if (albumArtCursor != null) {\n if (albumArtCursor.moveToFirst()) {\n String existingArtLocation = albumArtCursor\n .getString(albumArtCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM_ART));\n\n albumArtCursor.close();\n return existingArtLocation;\n }\n albumArtCursor.close();\n }\n }\n return null;\n }", "String uniqueId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public void setLastAlbumRetrieved(String album, long id);", "public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }", "int getOwnerID();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Album)) {\n return false;\n }\n Album other = (Album) object;\n if ((this.idAlbum == null && other.idAlbum != null) || (this.idAlbum != null && !this.idAlbum.equals(other.idAlbum))) {\n return false;\n }\n return true;\n }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "int insert(UserAlbum record);", "public String getAlbum() {\n\t\treturn album;\r\n\t}", "private static String getAlbum(String songID) throws SQLException {\n albumStatement = conn.createStatement();\n albumResultSet = albumStatement.executeQuery(\"SELECT * FROM album, trackAlbum WHERE trackAlbum.track_id = '\" + songID + \"' AND trackAlbum.album_id = album.id;\");\n albumResultSet.next();\n return albumResultSet.getString(\"name\");\n }", "SportAlbumPicture selectByPrimaryKey(String id);", "public int getId() {\n // some code goes here\n return f.getAbsoluteFile().hashCode();\n //throw new UnsupportedOperationException(\"implement this\");\n }", "int insert(SportAlbumPicture record);", "public String getUniqueId() {\n return _uniqueId;\n }", "public String getAlbum()\n {\n return album;\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "@Override\n public int hashCode() {\n return getTrackId();\n }", "long getOwnerIdLong();", "public String getUniqueID ( ) { return _uniqueID; }", "int insertSelective(UserAlbum record);", "java.lang.String getAoisId();", "@Override\n public String getIdInstagram() {\n return idInstagram;\n }", "public int getImageId(){\n \t\treturn imageId;\n \t}", "public int getUniqueID() { \n return -1;\n }", "public String getPhotoId() {\n\t\treturn photoId;\n\t}", "public String getImageId() {\n return mImageId;\n }" ]
[ "0.6371401", "0.6119936", "0.6110537", "0.610489", "0.5994923", "0.59335226", "0.5843702", "0.58369976", "0.57440645", "0.5672854", "0.56663185", "0.5630191", "0.5626437", "0.56205505", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56193185", "0.56150895", "0.55935293", "0.5579144", "0.5577899", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55635965", "0.55591434", "0.55557543", "0.5544398", "0.55365336", "0.5533353", "0.5531874", "0.552191", "0.55128473", "0.5500103", "0.5490262", "0.5490262", "0.54892856", "0.548234", "0.54779774", "0.5476206", "0.546357", "0.5463166", "0.5461725", "0.54612494", "0.5447862", "0.5445756" ]
0.0
-1
Returns true if field id is set (has been assigned a value) and false otherwise
public boolean isSetId() { return this.id != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldId();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "boolean isSetID();", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean hasId() {\n return fieldSetFlags()[1];\n }", "public boolean hasId() {\n return fieldSetFlags()[0];\n }", "public boolean hasId() {\n return fieldSetFlags()[0];\n }", "public boolean hasId() {\n return fieldSetFlags()[0];\n }", "public boolean hasId() {\n return fieldSetFlags()[0];\n }", "public boolean hasId() {\n return fieldSetFlags()[0];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ID$24) != null;\n }\n }", "public boolean isSetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ID$12) != null;\n }\n }", "public boolean isSetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ID$12) != null;\n }\n }", "public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }", "public boolean hasFieldTypeId() {\n return fieldTypeIdBuilder_ != null || fieldTypeId_ != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean hasFieldTypeId() {\n return fieldTypeId_ != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetId() {\n return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSetId() {\n return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSetId() {\n return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }", "public boolean isSetId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSetId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSetId() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "@Override\n @Transient\n public boolean isIdSet() {\n return getId() != null && getId().areFieldsSet();\n }", "@Override\n public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PROCESS_ID:\n return isSetProcessId();\n case APPLICATION_INTERFACE_ID:\n return isSetApplicationInterfaceId();\n case COMPUTE_RESOURCE_ID:\n return isSetComputeResourceId();\n case QUEUE_NAME:\n return isSetQueueName();\n case NODE_COUNT:\n return isSetNodeCount();\n case CORE_COUNT:\n return isSetCoreCount();\n case WALL_TIME_LIMIT:\n return isSetWallTimeLimit();\n case PHYSICAL_MEMORY:\n return isSetPhysicalMemory();\n case STATUSES:\n return isSetStatuses();\n case ERRORS:\n return isSetErrors();\n case CREATED_AT:\n return isSetCreatedAt();\n case UPDATED_AT:\n return isSetUpdatedAt();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSetId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSetId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSetId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "public boolean isSetObjId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJID_ISSET_ID);\r\n }", "public boolean isSetId() {\n return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);\n }", "boolean hasField4();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EMPLOYEE_ID:\n return isSetEmployeeId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetId() {\n return __isset_bit_vector.get(__ID_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case RECOM_ID:\n return isSetRecomId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetId() {\n return this.id != null;\n }", "public boolean isSetId() {\n return this.id != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }" ]
[ "0.7869565", "0.78419304", "0.7609027", "0.75680906", "0.75680906", "0.75680906", "0.75680906", "0.7425691", "0.7407673", "0.7407673", "0.73894197", "0.73213446", "0.73213446", "0.7283694", "0.72741175", "0.72741175", "0.72741175", "0.72741175", "0.72741175", "0.726573", "0.72464365", "0.72387624", "0.7232111", "0.7232111", "0.7223681", "0.71975386", "0.71750945", "0.71591246", "0.71088785", "0.71088785", "0.7090864", "0.7090864", "0.70792085", "0.70792085", "0.70792085", "0.70728374", "0.70573115", "0.70573115", "0.7053724", "0.70512116", "0.7049835", "0.7044372", "0.7035431", "0.702123", "0.7017913", "0.7017913", "0.70166516", "0.70166516", "0.70166516", "0.70166516", "0.7016256", "0.7016256", "0.70125556", "0.7006826", "0.69921356", "0.69812495", "0.69812495", "0.69812495", "0.698", "0.69683224", "0.6918418", "0.6909163", "0.6909163", "0.6887919", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.68662924", "0.6864532", "0.686392", "0.6861253", "0.6855235", "0.6855235", "0.6855235", "0.6855235", "0.6855235", "0.6855235", "0.6855235", "0.6855235", "0.6855235" ]
0.69092333
61
Le nom de cet album
public Set<String> getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "private String getAlbumName(){\n return getString(R.string.album_name);\n }", "public String toString() {\n\t\treturn this.albumName;\n\t}", "public String getAlbumName()\n {\n return albumName;\n }", "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "String getAlbumName()\n {\n return albumName;\n }", "public String getAlbum()\n {\n return album;\n }", "public String getAlbum() {\n\t\treturn album;\r\n\t}", "public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }", "public SimpleStringProperty albumProperty(){\r\n\t\treturn album;\r\n\t}", "@Override\n\tpublic String getDisplayedAlbumName(String paramString)\n\t{\n\t\treturn null;\n\t}", "@Override\r\n public void DisplayAlbumName(String name) {\r\n this.setTitle(name + \" - Photo Viewer\");\r\n }", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "public String getCoverArtName();", "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo += elements.get(1).text() + \" )\\n\\n\" + getScrobbles(album);\n\n String wiki = getWiki(albumLink);\n if (wiki.contains(\"<i>Do you know any background info about this?</i>\\n\\n\"))\n return albumInfo + \"\\n\\n\" + wiki;\n if (wiki.length() > 400)\n wiki = wiki.substring(0, 400) + \" ...\";\n\n albumInfo += \"\\n\\n\" + wiki + \"\\n\\n\" + getLink(albumLink + \"/+wiki\", \" Continue on Last.fm\");\n return albumInfo;\n }", "public void addOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public void setAlbumName(String albumName)\n {\n this.albumName = albumName;\n }", "private String promptForAlbumName() {\n\t\treturn (String)\n\t\t JOptionPane.showInputDialog(\n\t\t\t\talbumTree, \n\t\t\t\t\"Album Name: \", \n\t\t\t\t\"Add Album\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\t\"\");\t\t\n\t}", "@Override\r\n\tpublic Town getDroghedaName() {\n\t\treturn new Town(\"Highlanes Gallery\");\r\n\t}", "public void addAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Album Object [ Id : \"+ id +\"Title : \"+ title + \" Description : \"+ desc +\"]\";\n\t}", "@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }", "@Override\r\n public String getInfo() {\r\n return \"Photo name: \"+this.info;\r\n }", "public String getAnoFilmagem();", "public String getAlbumArtist() {\n return albumArtist;\n }", "public String toString() {\r\n return \"Name: \" + this.name + \" | ID#: \" + this.id + \" | Photos: \" + this.photos + \" | Albums: \" + this.albums;\r\n }", "public String getName() {\n\t\treturn songName;\n\t}", "public void setOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "String getCaption();", "public void addOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "private void setDefaultSongNameAndArtist(){\r\n\t\tString[] songLocation = getLocation().split(\"/\");\r\n\t\tString[] songFragment = songLocation[songLocation.length - 1].split(\"[.]\");\r\n\t\tsetSongName(songFragment[0]);\r\n\t\t\r\n\t\tsetAlbum(songLocation[songLocation.length - 2] + \"?\");\r\n\t\tsetArtist(songLocation[songLocation.length - 3] + \"?\");\r\n\t\t\r\n\t}", "public String getSongName() {\n return mSongName;\n }", "public void setAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void doChangeAlbumName()\n/* */ {\n/* 73 */ AlbumDTO changed = this.galleryManager.saveAlbum(this.selectedAlbum);\n/* 74 */ for (AlbumDTO dto : this.albumList)\n/* */ {\n/* 76 */ if (dto.getId().equals(changed.getId()))\n/* */ {\n/* 78 */ dto.setName(changed.getName());\n/* 79 */ break;\n/* */ }\n/* */ }\n/* */ }", "public void addAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "public void setOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "private String getAlbum(File mp3){\n\t\tString tempString = \"\";\n\t InputStream input;\n\t ContentHandler handler = new DefaultHandler();\n\t Metadata metadata = new Metadata();\n\t Parser parser = new Mp3Parser();\n\t ParseContext parseCtx = new ParseContext();\n\t \n\t\ttry {\n\t\t\tinput = new FileInputStream(mp3);\n\t\t\tparser.parse(input, handler, metadata, parseCtx);\n\t\t input.close();\n\t\t} \n\t\tcatch (IOException | SAXException | TikaException e) {\n\t\t\tSystem.out.println(\"Error with: \" + mp3.getPath());\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t tempString = metadata.get(\"xmpDM:album\");\n\t\t\n\t\tif (tempString.isEmpty() || tempString.contentEquals(\" \")){\n\t\t\treturn \"Unknown\";\n\t\t}\n\t\treturn tempString;\n\t}", "public void setAlbumTiltle(String title){\n \tandroid.util.Log.d(TAG, \"setAlbumSetTiltle *** title = \" + title);\n\tif(title != null){\n \t\tmAlbumTitle.setText(title);\n\t}\n }", "public void setAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void removeOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "private static String getAlbum(String songID) throws SQLException {\n albumStatement = conn.createStatement();\n albumResultSet = albumStatement.executeQuery(\"SELECT * FROM album, trackAlbum WHERE trackAlbum.track_id = '\" + songID + \"' AND trackAlbum.album_id = album.id;\");\n albumResultSet.next();\n return albumResultSet.getString(\"name\");\n }", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "public String Name() {\t\t\r\n\t\treturn BrickFinder.getDefault().getName();\r\n\t}", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "public void removeAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public static void addOriginalAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALALBUMTITLE, value);\r\n\t}", "public static void addOriginalAlbumTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALALBUMTITLE, value);\r\n\t}", "public Album(String albumName)\n {\n photo = new ArrayList<Photo>();\n\n this.albumName = albumName;\n this.totalPics = 0;\n\n }", "@Override\r\n\tpublic String toString(){\r\n\t\treturn String.format(\"%s, %s, %s\", getSongName(), getArtist(), getAlbum());\r\n\t}", "public static void addAlbumTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "@Override\r\n public String toString()\r\n {\n\tString strAlbums = \"\";\r\n\r\n\t// create a string containing all albums\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t strAlbums += album.toString() + \"\\r\\n\";\r\n\t}\r\n\r\n\treturn strAlbums;\r\n }", "public static String getBiblioNombre() {\n\t\treturn \"nombre\";\n\t}", "public String getName() {\n return \"nickel\";\n }", "public static void addAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "String getName() ;", "String displayName();", "String displayName();", "public String getTitle()\n {\n return name;\n }", "String get_name() {\n File file = new File(url);\n return file.getName();\n }", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "void loadAlbums();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}", "public String toString() {\n return (\"\\\"\" + albumName +\n \"\\\" by \" + bandName +\n \": \" + numStocked + \" in stock\");\n }", "@Override\n public String toString() {\n String listOfPhotos = \"\";\n for (Photo a : this.photos) {\n listOfPhotos += a.toString() + \"\\n\";\n }\n return \"Library with id \" + this.ID + \" and name \" + this.name + \" with albums \" + this.albums + \" with photos:\\n\"\n + listOfPhotos;\n }", "public String getName() {\r\n\t\treturn this.title;\r\n\t}", "public static ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "public String getCoverName() {\n return mCoverName;\n }", "public void removeOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "String getDisplay_name();", "public static ReactorResult<java.lang.String> getAllAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ALBUMTITLE, java.lang.String.class);\r\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public String GetMediaTitle() {\n\t\treturn mediatitle;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn ((Extension)_item).getId() + \".\" + ((Extension)_item).getTitle();\n\t}", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "@Transient\n\tpublic String getCaption(){\n\t return \"[\" + getCode() + \"] \" + getName();\n\t}", "String getUltimoNome();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();" ]
[ "0.7663087", "0.7449724", "0.7312252", "0.7297574", "0.70736384", "0.70671886", "0.69288754", "0.6907759", "0.6891807", "0.67566144", "0.6742425", "0.6723794", "0.66883844", "0.65887207", "0.6423489", "0.63884443", "0.63657665", "0.63599735", "0.6305967", "0.6293054", "0.62844133", "0.6277713", "0.6270775", "0.62642705", "0.6211143", "0.6207917", "0.6205536", "0.61723596", "0.6161422", "0.6159945", "0.61290693", "0.6100943", "0.60749197", "0.6072314", "0.6053137", "0.603378", "0.60308236", "0.5986623", "0.5963345", "0.5939188", "0.5935258", "0.5921907", "0.59112585", "0.58989125", "0.5891517", "0.5886354", "0.5866685", "0.5860968", "0.58567905", "0.5847887", "0.5838717", "0.5831407", "0.58213055", "0.5795778", "0.57925165", "0.57760555", "0.57655287", "0.5748106", "0.5748106", "0.57469773", "0.57446855", "0.5744411", "0.573435", "0.57333994", "0.57333994", "0.57333994", "0.57333994", "0.57333994", "0.57333994", "0.57230514", "0.57128763", "0.5709585", "0.5703376", "0.5699617", "0.5699351", "0.56910706", "0.567704", "0.56737626", "0.5667239", "0.5659492", "0.5659473", "0.5654902", "0.5650078", "0.5650078", "0.5650078", "0.5650078", "0.5632206", "0.56319237", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233" ]
0.0
-1
Le nom de cet album
public Album setName(Set<String> name) { this.name = name; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "private String getAlbumName(){\n return getString(R.string.album_name);\n }", "public String toString() {\n\t\treturn this.albumName;\n\t}", "public String getAlbumName()\n {\n return albumName;\n }", "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "String getAlbumName()\n {\n return albumName;\n }", "public String getAlbum()\n {\n return album;\n }", "public String getAlbum() {\n\t\treturn album;\r\n\t}", "public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }", "public SimpleStringProperty albumProperty(){\r\n\t\treturn album;\r\n\t}", "@Override\n\tpublic String getDisplayedAlbumName(String paramString)\n\t{\n\t\treturn null;\n\t}", "@Override\r\n public void DisplayAlbumName(String name) {\r\n this.setTitle(name + \" - Photo Viewer\");\r\n }", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "public String getCoverArtName();", "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo += elements.get(1).text() + \" )\\n\\n\" + getScrobbles(album);\n\n String wiki = getWiki(albumLink);\n if (wiki.contains(\"<i>Do you know any background info about this?</i>\\n\\n\"))\n return albumInfo + \"\\n\\n\" + wiki;\n if (wiki.length() > 400)\n wiki = wiki.substring(0, 400) + \" ...\";\n\n albumInfo += \"\\n\\n\" + wiki + \"\\n\\n\" + getLink(albumLink + \"/+wiki\", \" Continue on Last.fm\");\n return albumInfo;\n }", "public void addOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public void setAlbumName(String albumName)\n {\n this.albumName = albumName;\n }", "private String promptForAlbumName() {\n\t\treturn (String)\n\t\t JOptionPane.showInputDialog(\n\t\t\t\talbumTree, \n\t\t\t\t\"Album Name: \", \n\t\t\t\t\"Add Album\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\t\"\");\t\t\n\t}", "@Override\r\n\tpublic Town getDroghedaName() {\n\t\treturn new Town(\"Highlanes Gallery\");\r\n\t}", "public void addAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Album Object [ Id : \"+ id +\"Title : \"+ title + \" Description : \"+ desc +\"]\";\n\t}", "@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }", "@Override\r\n public String getInfo() {\r\n return \"Photo name: \"+this.info;\r\n }", "public String getAnoFilmagem();", "public String getAlbumArtist() {\n return albumArtist;\n }", "public String toString() {\r\n return \"Name: \" + this.name + \" | ID#: \" + this.id + \" | Photos: \" + this.photos + \" | Albums: \" + this.albums;\r\n }", "public String getName() {\n\t\treturn songName;\n\t}", "public void setOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "String getCaption();", "public void addOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "private void setDefaultSongNameAndArtist(){\r\n\t\tString[] songLocation = getLocation().split(\"/\");\r\n\t\tString[] songFragment = songLocation[songLocation.length - 1].split(\"[.]\");\r\n\t\tsetSongName(songFragment[0]);\r\n\t\t\r\n\t\tsetAlbum(songLocation[songLocation.length - 2] + \"?\");\r\n\t\tsetArtist(songLocation[songLocation.length - 3] + \"?\");\r\n\t\t\r\n\t}", "public String getSongName() {\n return mSongName;\n }", "public void setAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void doChangeAlbumName()\n/* */ {\n/* 73 */ AlbumDTO changed = this.galleryManager.saveAlbum(this.selectedAlbum);\n/* 74 */ for (AlbumDTO dto : this.albumList)\n/* */ {\n/* 76 */ if (dto.getId().equals(changed.getId()))\n/* */ {\n/* 78 */ dto.setName(changed.getName());\n/* 79 */ break;\n/* */ }\n/* */ }\n/* */ }", "public void addAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "public void setOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "private String getAlbum(File mp3){\n\t\tString tempString = \"\";\n\t InputStream input;\n\t ContentHandler handler = new DefaultHandler();\n\t Metadata metadata = new Metadata();\n\t Parser parser = new Mp3Parser();\n\t ParseContext parseCtx = new ParseContext();\n\t \n\t\ttry {\n\t\t\tinput = new FileInputStream(mp3);\n\t\t\tparser.parse(input, handler, metadata, parseCtx);\n\t\t input.close();\n\t\t} \n\t\tcatch (IOException | SAXException | TikaException e) {\n\t\t\tSystem.out.println(\"Error with: \" + mp3.getPath());\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t tempString = metadata.get(\"xmpDM:album\");\n\t\t\n\t\tif (tempString.isEmpty() || tempString.contentEquals(\" \")){\n\t\t\treturn \"Unknown\";\n\t\t}\n\t\treturn tempString;\n\t}", "public void setAlbumTiltle(String title){\n \tandroid.util.Log.d(TAG, \"setAlbumSetTiltle *** title = \" + title);\n\tif(title != null){\n \t\tmAlbumTitle.setText(title);\n\t}\n }", "public void setAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void removeOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "private static String getAlbum(String songID) throws SQLException {\n albumStatement = conn.createStatement();\n albumResultSet = albumStatement.executeQuery(\"SELECT * FROM album, trackAlbum WHERE trackAlbum.track_id = '\" + songID + \"' AND trackAlbum.album_id = album.id;\");\n albumResultSet.next();\n return albumResultSet.getString(\"name\");\n }", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "public String Name() {\t\t\r\n\t\treturn BrickFinder.getDefault().getName();\r\n\t}", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "public void removeAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public static void addOriginalAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALALBUMTITLE, value);\r\n\t}", "public static void addOriginalAlbumTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALALBUMTITLE, value);\r\n\t}", "public Album(String albumName)\n {\n photo = new ArrayList<Photo>();\n\n this.albumName = albumName;\n this.totalPics = 0;\n\n }", "@Override\r\n\tpublic String toString(){\r\n\t\treturn String.format(\"%s, %s, %s\", getSongName(), getArtist(), getAlbum());\r\n\t}", "public static void addAlbumTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "@Override\r\n public String toString()\r\n {\n\tString strAlbums = \"\";\r\n\r\n\t// create a string containing all albums\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t strAlbums += album.toString() + \"\\r\\n\";\r\n\t}\r\n\r\n\treturn strAlbums;\r\n }", "public static String getBiblioNombre() {\n\t\treturn \"nombre\";\n\t}", "public String getName() {\n return \"nickel\";\n }", "public static void addAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "String getName() ;", "String displayName();", "String displayName();", "public String getTitle()\n {\n return name;\n }", "String get_name() {\n File file = new File(url);\n return file.getName();\n }", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "void loadAlbums();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}", "public String toString() {\n return (\"\\\"\" + albumName +\n \"\\\" by \" + bandName +\n \": \" + numStocked + \" in stock\");\n }", "@Override\n public String toString() {\n String listOfPhotos = \"\";\n for (Photo a : this.photos) {\n listOfPhotos += a.toString() + \"\\n\";\n }\n return \"Library with id \" + this.ID + \" and name \" + this.name + \" with albums \" + this.albums + \" with photos:\\n\"\n + listOfPhotos;\n }", "public String getName() {\r\n\t\treturn this.title;\r\n\t}", "public static ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "public String getCoverName() {\n return mCoverName;\n }", "public void removeOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "String getDisplay_name();", "public static ReactorResult<java.lang.String> getAllAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ALBUMTITLE, java.lang.String.class);\r\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public String GetMediaTitle() {\n\t\treturn mediatitle;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn ((Extension)_item).getId() + \".\" + ((Extension)_item).getTitle();\n\t}", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "@Transient\n\tpublic String getCaption(){\n\t return \"[\" + getCode() + \"] \" + getName();\n\t}", "String getUltimoNome();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();" ]
[ "0.7663087", "0.7449724", "0.7312252", "0.7297574", "0.70736384", "0.70671886", "0.69288754", "0.6907759", "0.6891807", "0.67566144", "0.6742425", "0.6723794", "0.66883844", "0.65887207", "0.6423489", "0.63884443", "0.63657665", "0.63599735", "0.6305967", "0.6293054", "0.62844133", "0.6277713", "0.6270775", "0.62642705", "0.6211143", "0.6207917", "0.6205536", "0.61723596", "0.6161422", "0.6159945", "0.61290693", "0.6100943", "0.60749197", "0.6072314", "0.6053137", "0.603378", "0.60308236", "0.5986623", "0.5963345", "0.5939188", "0.5935258", "0.5921907", "0.59112585", "0.58989125", "0.5891517", "0.5886354", "0.5866685", "0.5860968", "0.58567905", "0.5847887", "0.5838717", "0.5831407", "0.58213055", "0.5795778", "0.57925165", "0.57760555", "0.57655287", "0.5748106", "0.5748106", "0.57469773", "0.57446855", "0.5744411", "0.573435", "0.57333994", "0.57333994", "0.57333994", "0.57333994", "0.57333994", "0.57333994", "0.57230514", "0.57128763", "0.5709585", "0.5703376", "0.5699617", "0.5699351", "0.56910706", "0.567704", "0.56737626", "0.5667239", "0.5659492", "0.5659473", "0.5654902", "0.5650078", "0.5650078", "0.5650078", "0.5650078", "0.5632206", "0.56319237", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233", "0.5627233" ]
0.0
-1
Returns true if field name is set (has been assigned a value) and false otherwise
public boolean isSetName() { return this.name != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean hasName() {\n return fieldSetFlags()[1];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean hasName() {\n return fieldSetFlags()[0];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }", "public boolean hasField(String name)\n {\n String n = this.getMappedFieldName(name);\n return (n != null)? this.fieldMap.containsKey(n) : false;\n }", "public boolean isSetPhasename() {\n return this.phasename != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case NAME:\n return isSetName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case FILE_BODY:\n return isSetFileBody();\n case FILE_TYPE:\n return isSetFileType();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSetName() {\n\t\treturn this.name != null;\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EMAIL_ID:\n return isSetEmailId();\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case COUNTRY:\n return isSetCountry();\n case PHONE:\n return isSetPhone();\n case LAST_LOGGED_IN:\n return isSetLastLoggedIn();\n case ACTIVE:\n return isSetActive();\n case NEWSLETTER:\n return isSetNewsletter();\n case REGISTERED:\n return isSetRegistered();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INDEX_NAME:\n return isSetIndexName();\n case TYPE:\n return isSetType();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case WHERE:\r\n return isSetWhere();\r\n case COLUMN_NAMES:\r\n return isSetColumnNames();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetName() {\n return this.Name != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n case VALUE:\n return isSetValue();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_BYTE_BUFFER:\n return isSetFileByteBuffer();\n case APP_NAME:\n return isSetAppName();\n case ORIGIN_NAME:\n return isSetOriginName();\n case USER_ID:\n return isSetUserId();\n case USER_IP:\n return isSetUserIp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case PROCESS__ID:\r\n return isSetProcess_ID();\r\n case PROCESS__NAME:\r\n return isSetProcess_Name();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSetRealName() {\n\t\treturn this.realName != null;\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TUPLE_ID:\n return isSetTuple_id();\n case KEY_COLUMN_NAME:\n return isSetKey_column_name();\n case KEY_COLUMN_TYPE:\n return isSetKey_column_type();\n case IS_PREAGGREGATION:\n return isSetIs_preaggregation();\n case SORT_COLUMN:\n return isSetSort_column();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_INFO:\n return isSetUserInfo();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FUNCTION_NAME:\n return isSetFunctionName();\n case SCHEMA_NAME:\n return isSetSchemaName();\n case CLASS_NAME:\n return isSetClassName();\n case RESOURCES:\n return isSetResources();\n }\n throw new IllegalStateException();\n }" ]
[ "0.771784", "0.771784", "0.7456578", "0.7455998", "0.7455998", "0.74126655", "0.74126655", "0.7361632", "0.73207796", "0.7294589", "0.7255455", "0.7221491", "0.7221491", "0.7193376", "0.71887517", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.7186332", "0.717947", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7160175", "0.7086375", "0.7086279", "0.70689106", "0.7062863", "0.70623654", "0.70623654", "0.70608604", "0.70608604", "0.70608604", "0.70608604", "0.7058683", "0.70464903", "0.7034409", "0.7033687", "0.70306224", "0.70306224", "0.7011228", "0.7002868", "0.698952", "0.69874996", "0.69841707", "0.69841707", "0.69841707", "0.69841707", "0.69841707", "0.69841707", "0.6979334", "0.69773847", "0.69773847", "0.6974681", "0.69689715", "0.6963582", "0.6952452", "0.6944102", "0.69399095", "0.69377995", "0.6935431", "0.6930072" ]
0.70603234
72
Les identifiants uniques des artistes qui ont produit cet album
public Set<String> getArtists() { return this.artists; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getArtistId() {\r\n return artistId;\r\n }", "List<Album> getAlbumFromArtiste(Integer artisteId, Integer userId);", "public List<Album> getAlbums(Artist artist);", "public Long getArtistID()\r\n {\r\n return artistID;\r\n }", "public int getArtistID() {\n return artistID;\n }", "Set<Art> getArtByArtist(String artist);", "public void setArtistAlbums(List<Album> artistAlbums) {\n this.artistAlbums = artistAlbums;\n }", "public String getAlbumArtist() {\n return albumArtist;\n }", "public AlbumSet getAlbumsByArtist(String artistId) {\n\t\t//http://emby:8096/Items?SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=MusicAlbum&Recursive=true&ArtistIds=3c328d23e110ee9d4fbe6b1302635e32\n\t\tAlbumSetQueryParams queryParams = new AlbumSetQueryParams(artistId);\n\t\tURI targetUrl= buildUriWithQueryParams(\"/\"+ EmbyUrlConstants.ITEMS, queryParams);\n\t\treturn restTemplate.getForObject(targetUrl, AlbumSet.class);\n\t}", "Artist getById(long id);", "public Album setArtists(Set<String> artists) {\r\n this.artists = artists;\r\n return this;\r\n }", "public ArrayList<String> getAllAlbumsOfArtist(Long songid) {\n\t\tString artistName = getArtistName(songid);\n\t\t// get all albums of this artist\n\t\tArrayList<String> albums = new ArrayList<>();\n\t\talbumsidOfArtist = new ArrayList<>();\n\n\t\ttry {\n\t\t\tString sqlQuery = \"select album_name, album_id from album where prod_name like '\" + artistName + \"';\";\n\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlQuery);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tString al = (String) resultSet.getObject(1);\n\t\t\t\tLong alid = (Long) resultSet.getObject(2);\n\n\t\t\t\t// add to return album names and albumid in albumsidOfArtist list\n\t\t\t\talbums.add(al);\n\t\t\t\talbumsidOfArtist.add(alid);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn albums;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Album)) {\n return false;\n }\n Album other = (Album) object;\n if ((this.idAlbum == null && other.idAlbum != null) || (this.idAlbum != null && !this.idAlbum.equals(other.idAlbum))) {\n return false;\n }\n return true;\n }", "public Vector<Artista> findAllArtisti();", "private List<MusicVideo> selectMusicVideosFromDBOwnedByArtiste(int artisteId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id=:artisteId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "public void setArtistID(Long artistID)\r\n {\r\n this.artistID = artistID;\r\n }", "public List<Album> getAlbumsByArtist(String albumArtist)\r\n {\r\n\t// iterate over each album in my album collection and where the album \r\n\t// artist is equal to albumArtist, add the album to a list of albums\r\n\tList<Album> albumsByArtist = new ArrayList<>();\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t if (album.getAlbumArtist().equals(albumArtist))\r\n\t {\r\n\t\talbumsByArtist.add(album);\r\n\t }\r\n\t}\r\n\treturn albumsByArtist;\r\n }", "public List<Artist> listArtistsAndID() throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\t\tDriver driver = new Driver();\n\t\tString sql = \"SELECT * FROM artist \" + \"ORDER BY Artist_ID\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn artist;\n\t\t} finally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\t}", "public void parseAlbumNames(String[] albumIds, JSONObject httpResponse) {\n try{\n for (String albumId : albumIds) {\n String albumName = httpResponse.getString(albumId);\n if (((Peer2PhotoApp) getApplication()).getAlbumId(albumName) == null) {\n if (!(new File(getApplicationContext().getFilesDir().getPath() + \"/\" + albumName).exists())) {\n createAlbumInCloud(albumName, albumId);\n addNewAlbum(albumId, albumName);\n Log.d(\"debug\", \"User has been added to album of other user and its name does not exist in user's albums\");\n } else {\n File fileToDelete = new File(getApplicationContext().getFilesDir().getPath() + \"/\" + albumName);\n if (fileToDelete.delete()) {\n createAlbumInCloud(albumName, albumId);\n addNewAlbum(albumId, albumName);\n Log.d(\"debug\", \"User has been added to album of other user and its name does not exist in user's albums\");\n }\n }\n } else {\n if (!((Peer2PhotoApp) getApplication()).getAlbumId(albumName).equals(albumId)) {\n String newName = albumName + \"_\" + albumId;\n createAlbumInCloud(newName, albumId);\n addNewAlbum(albumId, newName);\n Log.d(\"debug\", \"User has been added to album of other user with name equal to one of user's albums\");\n } else {\n if(!new File(getApplicationContext().getFilesDir().getPath() + \"/\" + albumName).exists()){\n createAlbumInCloud(albumName, albumId);\n addNewAlbum(albumId, albumName);\n }\n }\n }\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "public String getArtist() {\n return artist;\n }", "public String getArtist() {\n return artist;\n }", "public String getArtist(){\n\t\treturn artist;\n\t}", "private void InicializarListaAlbums() {\n\n GestorAlbums gestorAlbums = new GestorAlbums(this.getActivity());\n albums = gestorAlbums.AsignarAlbum();\n }", "Album findAlbumByNameAndArtisteName(String albumName, String artisteName);", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public String getArtist() {\r\n\t\treturn artist;\r\n\t}", "public void displayByArtists()\n {\n Collections.sort(catalog, new ArtistComparator());\n \n System.out.printf(\"%-30s %-39s %s %n\",\"ARTIST\", \"ALBUM\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(false)); //prints the artist first.\n \n for(int i=1; i<30; i++)\n System.out.print(\"*\");\n System.out.print(\"\\n\\n\");\n }", "public void notifyFinishGetSimilarArtist(ArtistInfo a, Image img, long id);", "public String getArtist() {\n\t\treturn artist;\r\n\t}", "public void addAlbum(int id, int artist_id, String name, String cover) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_ID, id);\n values.put(KEY_HOST, host);\n values.put(KEY_ARTIST_ID, artist_id);\n values.put(KEY_NAME, name);\n values.put(KEY_COVER, cover);\n\n long insertedId = db.insert(TABLE_ALBUM, null, values);\n db.close(); // Closing database connection\n }", "private List<MusicVideo> getMusicVideosThatMatchArtisteOrGenre(int artisteId, int genreId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id = :artisteId OR mv.genre.id = :genreId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n query.setParameter(\"genreId\", genreId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "private void populateArtists(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT artist_name FROM artist ORDER BY artist_name\");\n\n while(results.next()){\n String artist = results.getString(1);\n artistList.add(artist);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "public void setArtist(String artist){\n\t\tthis.artist = artist;\n\t}", "public void addArtist(Artist artist) {\n\t\tif(!artists.containsKey(artist.id)) {\n\t\t\tartists.put(artist.id, artist);\n\t\t}\n\t}", "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Song)) {\n return false;\n }\n Song other = (Song) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public String findArtist (String song)\n\t{\n\t\tArrayList <String> name = new ArrayList <String>(); \n\t\tfor (Song e: music)\n\t\t\tif (e.getName().equals(song))\n\t\t\t\tname.add(e.getArtist());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < name.size(); i++)\n\t\t{\n\t\t\tif (name.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += name.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += name.get(i) + \", \"; \n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn results; \n\t}", "public void addArtist(int id, String name, String image) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_ID, id);\n values.put(KEY_HOST, host);\n values.put(KEY_NAME, name);\n values.put(KEY_IMAGE, image);\n\n long insertedId = db.insert(TABLE_ARTIST, null, values);\n db.close(); // Closing database connection\n }", "private void removeAlbumFromCollection() {\n //\n }", "boolean sameArtist(Artist that) {\r\n\t\treturn this.name.equals(that.name); \r\n\t\t// && this.painting.samePainting(that.painting);\r\n\t}", "private static String getArtist(String songID) throws SQLException {\n artistStatement = conn.createStatement();\n artistResultSet = artistStatement.executeQuery(\"SELECT * FROM artist, trackArtist WHERE trackArtist.track_id = '\" + songID + \"' AND trackArtist.artist_id = artist.id;\");\n artistResultSet.next();\n return artistResultSet.getString(\"name\");\n }", "void loadAlbums();", "public ArrayList<String> getAllSongsOfArtist(Long songid) {\n\t\tString artistName = getArtistName(songid);\n\t\t// get all albums of this artist\n\t\tArrayList<String> songs = new ArrayList<>();\n\t\tsongsidOfArtist = new ArrayList<>();\n\n\t\ttry {\n\t\t\tString sqlQuery = \"select song_name, song_id from song s, \"\n\t\t\t\t\t+ \"album al where s.album_id = al.album_id and prod_name like '\" + artistName + \"';\";\n\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlQuery);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tString s = (String) resultSet.getObject(1);\n\t\t\t\tLong sid = (Long) resultSet.getObject(2);\n\n\t\t\t\t// add to return song names and songid in songsidOfArtist list\n\t\t\t\tsongs.add(s);\n\t\t\t\tsongsidOfArtist.add(sid);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn songs;\n\t}", "public void getArtistsMetaDataFromDevice(){\n // implement a cursorLoader\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(MediaStore.Audio.Artists.INTERNAL_CONTENT_URI,null,null,null,MediaStore.Audio.ArtistColumns.ARTIST);\n }", "public static void clearPreviousArtists(){previousArtists.clear();}", "public String getArtist() {\n\t\treturn this.artist;\n\t}", "public static Playlist getSongsByArtist(Playlist originalList, String artist) throws IllegalArgumentException, FullPlaylistException, EmptyPlaylistException\n\t{\n\t\tPlaylist newList = new Playlist();\n\t\tint n = 0;\n\t\tfor(int i = 1; i <= originalList.size(); i++)\n\t\t\tif(artist.equals(originalList.getSong(i).getArtist()))\n\t\t\t\tnewList.addSong(originalList.getSong(i), ++n);\n\t\tif(n == 0)\n\t\t{\n\t\t\tnewList = null;\n\t\t\tthrow new IllegalArgumentException(\"Artist could not be found in this playlist\");\n\t\t}\n\t\treturn newList;\n\t}", "public Playlist(ArrayList<Nummer> albumNummers) {\n this.albumNummers = albumNummers;\n }", "private void showArtistas(Artist c) {\n\t\tif (c != null) {\n\t\t\tArtist r = ArtistDAO.List_Artist_By_Name(c.getName());\n\t\t\tNombreArtista.setText(r.getName());\n\t\t\tNacionalidadArtista.setText(r.getNationality());\n\t\t\tFotoArtista.setText(r.getPhoto());\n\t\t\tBorrarArtista.setDisable(false);\n\t\t\ttry {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(r.getPhoto()));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t} catch (Exception e) {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(\"error.jpg\"));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tBorrarArtista.setDisable(true);\n\t\t\tNombreArtista.setText(\"\");\n\t\t\tNacionalidadArtista.setText(\"\");\n\t\t\tFotoArtista.setText(\"\");\n\t\t}\n\n\t}", "public boolean hasArtist(int aid) {\n\t\treturn artists.containsKey(aid);\n\t}", "public ArtistSet getArtists() {\n\t\treturn restTemplate.getForObject(embyUrl + \"/\"+ EmbyUrlConstants.ARTISTS, ArtistSet.class);\n\t}", "public boolean isArtist(){return isArtist;}", "@Test\n public void testAddSong() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n ArrayList<Song> songs = new ArrayList<>();\n songs.add(song1);\n SongLibrary library = new SongLibrary(songs);\n \n Song song2 = new Song(\"2\", \"titre2\", \"artiste2\", \"album2\", \"2\", new LinkedList<String>(), new HashMap<String,Rights>());\n library.addSong(song2);\n \n assertTrue(library.islocal(song2.getSongId()));\n assertTrue(library.islocal(song1.getSongId()));\n\n }", "private void prepareAlbums() {\n// int[] covers = new int[]{\n// R.drawable.album1,\n// R.drawable.album2,\n// R.drawable.album3,\n// R.drawable.album4,\n// R.drawable.album5,\n// R.drawable.album6,\n// R.drawable.album7,\n// R.drawable.album8,\n// R.drawable.album9,\n// R.drawable.album10,\n// R.drawable.album11,\n// R.drawable.album12,\n// R.drawable.album13};\n int [] covers = new int [ALBUM_SIZE];\n for (int i = 0; i < ALBUM_SIZE; i++){\n int temp = i + 1;\n covers[i] = getResources().getIdentifier(\"album\" + temp, \"drawable\", getPackageName() );\n }\n\n Album a = new Album(\"True Romance\", 13, covers[0]);\n albumList.add(a);\n\n a = new Album(\"Xscpae\", 8, covers[1]);\n albumList.add(a);\n\n a = new Album(\"Maroon 5\", 11, covers[2]);\n albumList.add(a);\n\n a = new Album(\"Born to Die\", 12, covers[3]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[4]);\n albumList.add(a);\n\n a = new Album(\"I Need a Doctor\", 1, covers[5]);\n albumList.add(a);\n\n // Special image (album19, album20 )has w x h smaller than normal image\n a = new Album(\"Honeymoon\", 14, covers[18]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[19]);\n albumList.add(a);\n\n a = new Album(\"Loud\", 11, covers[6]);\n albumList.add(a);\n\n a = new Album(\"Legend\", 14, covers[7]);\n albumList.add(a);\n\n a = new Album(\"Hello\", 11, covers[8]);\n albumList.add(a);\n\n a = new Album(\"Greatest Hits\", 17, covers[9]);\n albumList.add(a);\n\n a = new Album(\"Top Hits\", 17, covers[10]);\n albumList.add(a);\n\n a = new Album(\"King Hits\", 17, covers[11]);\n albumList.add(a);\n\n a = new Album(\"VIP Hits\", 17, covers[12]);\n albumList.add(a);\n\n a = new Album(\"True Romance\", 13, covers[13]);\n albumList.add(a);\n\n a = new Album(\"Xscpae\", 8, covers[14]);\n albumList.add(a);\n\n a = new Album(\"Maroon 5\", 11, covers[15]);\n albumList.add(a);\n\n a = new Album(\"Born to Die\", 12, covers[16]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[17]);\n albumList.add(a);\n\n // Special image (album19, album20 )has w x h smaller than normal image\n a = new Album(\"Honeymoon\", 14, covers[18]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[19]);\n albumList.add(a);\n\n adapter.notifyDataSetChanged();\n }", "public String getArtistName() {\n return mArtistName;\n }", "public String getArtistName() {\n return mArtistName;\n }", "public Library(String n, int i) { \r\n super(n);\r\n id = i;\r\n albums = new HashSet<Album>();\r\n\r\n }", "public List<Song> getsongalbumsid(String albumsname) {\n\t\treturn sd.allsongalbumsname(albumsname);\r\n\t}", "@Override\r\n\tpublic void listAlbums() {\n\t\tString AlbumNames=\"\";\r\n\t\tList<IAlbum> album1=model.getUser(userId).getAlbums();\r\n\t\tif(album1.size()==0){\r\n\t\t\tString error=\"No albums exist for user \"+userId+\"\";\r\n\t\t\tsetErrorMessage(error);\r\n\t\t\tshowError();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tIAlbum temp=album1.get(0);\r\n\t\t\r\n\t\tfor(int i=0; i<album1.size(); i++){\r\n\t\t\ttemp=album1.get(i);\r\n\t\t\t/*accessing the photo list now*/\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tif(photoList.size()==0){\r\n\t\t\t\tAlbumNames=AlbumNames+\"\"+album1.get(i).getAlbumName()+\" number of photos: 0\\n\";\r\n\t\t\t}\r\n\t\t\t/*Let's compare*/\r\n\t\t\telse{Date lowest=photoList.get(0).getDate();\r\n\t\t\tDate highest=photoList.get(0).getDate();\r\n\t\t\tfor(int j=0;j<photoList.size();j++){\r\n\t\t\t\tif(photoList.get(j).getDate().before(lowest)){\r\n\t\t\t\t\tlowest=photoList.get(j).getDate();\r\n\t\t\t\t}\r\n\t\t\t\tif(photoList.get(j).getDate().after(highest)){\r\n\t\t\t\t\thighest=photoList.get(j).getDate();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/**/\r\n\t\t\tif(i==album1.size()-1){\r\n\t\t\t\t/*Do I even need this?*/\r\n\t\t\t\tAlbumNames=AlbumNames+\"\"+album1.get(i).getAlbumName()+\" number of photos: \"+album1.get(i).getAlbumSize()+\", \"+lowest+\" - \"+highest+\"\";\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\tAlbumNames=AlbumNames+\"\"+album1.get(i).getAlbumName()+\" number of photos: \"+album1.get(i).getAlbumSize()+\", \"+lowest+\" - \"+highest+\"\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\t\tsetErrorMessage(AlbumNames);\r\n\t\tshowError();\r\n\t\t\r\n\r\n\t}", "public String allSongs (String artist)\n\t{\n\t\tArrayList <String> songs = new ArrayList <String>();\n\t\tfor (Song e: music)\n\t\t\tif(e.getArtist().equals(artist))\n\t\t\t\tsongs.add(e.getName());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < songs.size(); i++)\n\t\t{\n\t\t\tif (music.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += music.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += music.get(i) + \", \";\n\t\t\t}\n\t\t}\n\t\treturn results; \n\t}", "@Test\n public void getAllPhotosFromAlbumTest() {\n loginAndSetupNewUser(username);\n\n // Upload photo to default album twice\n Response response = apiClient.uploadPhoto(photoName, ext, description, albumId, contents);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n response = apiClient.uploadPhoto(photoName, ext, description, albumId, contents);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Create second album, in preparation to upload a photo to it.\n response = apiClient.addAlbum(albumName, description);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n long albumId2 = gson.fromJson(response.readEntity(String.class), Receipt.class).getReferenceId();\n\n // Upload photo to second album\n response = apiClient.uploadPhoto(photoName, ext, description, albumId2, contents);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Get all photos from album on server\n response = apiClient.getAllPhotos(albumId);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Parse response, ensuring only the 2 original photos are present.\n String photosStr = response.readEntity(String.class);\n PhotoResult[] photoArray = gson.fromJson(photosStr, PhotoResult[].class);\n assertEquals(2, photoArray.length);\n\n // Check each photo's contents and who posted it\n for(PhotoResult result : photoArray) {\n Photo photo = result.getPhoto();\n assertEquals(photo.getAuthorName(), username);\n assertEquals(photo.getPhotoName(), photoName);\n assertEquals(photo.getDescription(), description);\n }\n }", "public Album(Album other) {\r\n if (other.isSetId()) {\r\n this.id = other.id;\r\n }\r\n if (other.isSetName()) {\r\n Set<String> __this__name = new HashSet<String>();\r\n for (String other_element : other.name) {\r\n __this__name.add(other_element);\r\n }\r\n this.name = __this__name;\r\n }\r\n if (other.isSetArtists()) {\r\n Set<String> __this__artists = new HashSet<String>();\r\n for (String other_element : other.artists) {\r\n __this__artists.add(other_element);\r\n }\r\n this.artists = __this__artists;\r\n }\r\n if (other.isSetRelease_date()) {\r\n Set<String> __this__release_date = new HashSet<String>();\r\n for (String other_element : other.release_date) {\r\n __this__release_date.add(other_element);\r\n }\r\n this.release_date = __this__release_date;\r\n }\r\n if (other.isSetGenres()) {\r\n Set<String> __this__genres = new HashSet<String>();\r\n for (String other_element : other.genres) {\r\n __this__genres.add(other_element);\r\n }\r\n this.genres = __this__genres;\r\n }\r\n if (other.isSetTrack_names()) {\r\n Set<String> __this__track_names = new HashSet<String>();\r\n for (String other_element : other.track_names) {\r\n __this__track_names.add(other_element);\r\n }\r\n this.track_names = __this__track_names;\r\n }\r\n if (other.isSetText()) {\r\n this.text = other.text;\r\n }\r\n }", "@Override\n public int hashCode() {\n return getTrackId();\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Imagen)) {\r\n return false;\r\n }\r\n Imagen other = (Imagen) object;\r\n if ((this.idImagen == null && other.idImagen != null) || (this.idImagen != null && !this.idImagen.equals(other.idImagen))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public String getAlbum()\n {\n return album;\n }", "@Test\n public void getAllAlbumsTest() throws InvalidResourceRequestException {\n loginAndSetupNewUser(username);\n\n // Add a new album, with the same name and description as the default album.\n Response response = apiClient.addAlbum(albumName, description);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Check server has record of both albums\n for(Album album : resolver.getAlbums(username)) {\n assertEquals(albumName, album.getAlbumName());\n assertEquals(description, album.getDescription());\n }\n }", "@DELETE @Path(\"/id/{albumId}/artists/{artistId}\")\n public void deleteArtist(@PathParam(\"albumId\") String albumId,\n @PathParam(\"artistId\") String artistId) {\n return;\n }", "public void addSong(Song song) {\n\t\t\n\t\tString title = song.getTitle();\n\t\tString artist = song.getArtist();\n\t\tString id = song.getTrackId();\n\t\tArrayList<String> tags = song.getTags();\n\t\t\n\t\tif(!this.titleMap.containsKey(title)) {\n\t\t\tthis.titleMap.put(title, new TreeSet<Song>(new TitleComparator()));\n\t\t}\n\t\t\n\t\tTreeSet<Song> titleTmp = this.titleMap.get(title);\n\t\ttitleTmp.add(song);\n\t\t\n\t\tif(!this.artistMap.containsKey(artist)) {\n\t\t\tthis.artistMap.put(artist, new TreeSet<Song>(new ArtistComparator()));\n\t\t}\n\t\t\n\t\tTreeSet<Song> artistTmp = this.artistMap.get(artist);\n\t\tartistTmp.add(song);\n\t\t\n\t\tfor(String tag: tags) {\n\t\t\tif(!this.tagMap.containsKey(tag)) {\n\t\t\t\tthis.tagMap.put(tag, new TreeSet<String>(new StringComparator()));\n\t\t\t}\n\t\t\t\n\t\t\tTreeSet<String> tagTmp = this.tagMap.get(tag);\n\t\t\ttagTmp.add(id);\n\t\t}\n\t\t\n\t\tif(!this.idMap.containsKey(id)) {\n\t\t\tthis.idMap.put(id, song);\n\t\t}\n\t\t//if(!this.artistList.contains(artist))\n\t\t\t//this.artistList.add(artist);\n\t}", "@Override\n public int getItemCount() {\n return album.getSongs().size() + 1;\n }", "void create(Artist artist);", "private static String getAlbum(String songID) throws SQLException {\n albumStatement = conn.createStatement();\n albumResultSet = albumStatement.executeQuery(\"SELECT * FROM album, trackAlbum WHERE trackAlbum.track_id = '\" + songID + \"' AND trackAlbum.album_id = album.id;\");\n albumResultSet.next();\n return albumResultSet.getString(\"name\");\n }", "List<String> getArtists();", "private void setDefaultSongNameAndArtist(){\r\n\t\tString[] songLocation = getLocation().split(\"/\");\r\n\t\tString[] songFragment = songLocation[songLocation.length - 1].split(\"[.]\");\r\n\t\tsetSongName(songFragment[0]);\r\n\t\t\r\n\t\tsetAlbum(songLocation[songLocation.length - 2] + \"?\");\r\n\t\tsetArtist(songLocation[songLocation.length - 3] + \"?\");\r\n\t\t\r\n\t}", "public MusicLibrary() {\n\t\tthis.idMap = new HashMap<String, Song>();\n\t\tthis.titleMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.artistMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.tagMap = new TreeMap<String, TreeSet<String>>(new StringComparator());\n\t\t//this.artistList = new ArrayList<>();\n\t}", "public void readAlbumCollectionFromFile(Object fileName)\r\n {\r\n\t// Initialise variables to hold album title, artist and tracks\r\n\tList<Track> albumTracks = new ArrayList<>();\r\n\tString albumTitle = \"\";\r\n\tString albumArtist = \"\";\r\n\tString file = (String) fileName;\r\n\ttry\r\n\t{\r\n\t // Read in the album data file line by line\r\n\t BufferedReader buffer;\r\n\t buffer = new BufferedReader(new FileReader(file));\r\n\t String currentLine;\r\n\t Album album = null;\r\n\r\n\t while ((currentLine = buffer.readLine()) != null)\r\n\t {\r\n\t\t// Lines in the album data file begin with a letter when the line \r\n\t\t// contains an album title and artist, or an integer when it \r\n\t\t// contains track info\r\n\t\t\r\n\r\n\t\t// For each line, check whether first character is a letter. If so,\r\n\t\t// assume we are at a new Album title/artist\r\n\t\tif (Character.isLetter(currentLine.charAt(0)))\r\n\t\t{\r\n\t\t // Album title found\r\n\t\t \r\n\t\t // Get Album title and artist from the current line\r\n\t\t String[] split = currentLine.split(\":\");\r\n\t\t albumArtist = split[0].trim();\r\n\t\t albumTitle = split[1].trim();\r\n\r\n\r\n\t\t // check that current album does not exist in collection\r\n\t\t // try to get album by title\r\n\t\t Album albumByTitle = this.getAlbumByTitle(albumTitle);\r\n\t\t //only add album if albumByTitle returned null\r\n\t\t //TODO checking by artist will not work here as only first album by title found is returned. Need method to check for more albums of same name.\r\n\t\t if (albumByTitle == null || !albumByTitle.getAlbumArtist().equals(albumArtist))\r\n\t\t {\r\n\t\t\t// We are at the end of the current album. Therefore, create\r\n\t\t\t// the album and add it to the album collection\r\n\t\t\talbum = new Album(albumArtist, albumTitle);\r\n\t\t\tthis.addAlbum(album);\r\n\t\t }\r\n\t\t}\r\n\t\t// If first char is not a letter assume the line is a new track\r\n\t\telse if (album != null)\r\n\t\t{\r\n\t\t // Track found - get its title and duration\r\n\t\t String[] split = currentLine.split(\"-\", 2); // ', 2' prevents \r\n\t\t //splitting where '-' character occurs in title of the track\r\n\t\t String strTrackDuration = split[0].trim();\r\n\t\t String trackTitle = split[1].trim();\r\n\r\n\t\t // create duration object from string\r\n\t\t Duration trackDuration = new Duration(strTrackDuration);\r\n\t\t // create track object and add to album track list\r\n\t\t Track track = new Track(trackTitle, trackDuration);\r\n\t\t album.addTrack(track);\r\n\t\t}\r\n\t }\r\n\r\n\t} catch (IOException e)\r\n\t{\r\n\t // if error occurs, print the IOException\r\n\t System.out.println(e);\r\n\t}\r\n }", "public void createArtist(View view){\n Artist artist = new Artist(databaseReference.push().getKey(), \"Maluma baby\", \"Reggeton\"); // PRIMER DATO SOLICITADO ES EL IDENTIFICADOR\n //.push().getKey() FUNCION DE FIRE PARA CREAR UN ID, HACE COMO QUE INSERTA ALGO ES EL IDENTIFICADOR\n databaseReference.child(ARTIST_NODE).child(artist.getId()).setValue(artist);// AQUI APUNTAMOS AL ARBOL DE LA BASE DE DATOS\n }", "@Test\n public void getAlbumsTest() {\n Integer id = null;\n Integer userId = null;\n List<Album> response = api.getAlbums(id, userId);\n\n // TODO: test validations\n }", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "private AlbumPanel createAlbumPanel(ArrayList<MP3Info> albumMusicsInfo) {\n MP3Info firstMP3Info = albumMusicsInfo.get(0);\n AlbumPanel album = null;\n String description = \"Album contains \" + albumMusicsInfo.size() + \" songs\";\n try {//creating an album panel with its listener\n album = new AlbumPanel(firstMP3Info.getImage(), firstMP3Info.getAlbum(), description, albumMusicsInfo, this, this);\n } catch (InvalidDataException | IOException | UnsupportedTagException e) {\n JOptionPane.showMessageDialog(null, \"Error reading mp3 file image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n return album;\n }", "@Override\n\tpublic String getType() {\n\t\treturn \"Artist\";\n\t}", "public boolean isArtistIDEquals(String artistID){\n\n return _id.equalsIgnoreCase(artistID);\n }", "private void prepareAlbums() {\n\n Album a;\n\n for(HashMap.Entry<String,ArrayList<String>> entry : Test.subcatList.get(name).entrySet()){\n key = entry.getKey();\n value = entry.getValue();\n a = new Album(key , value.get(2));\n albumList.add(a);\n System.out.println(\"dddd : \" + key + \" \" + value.get(2));\n }\n\n adapter.notifyDataSetChanged();\n\n }", "public static void loadAllAlbumsInfoInContainer(boolean orderByArtist, boolean orderByAlbum, boolean orderByYear)\n {\n Object[][] data = createDataForAlbums(orderByArtist, orderByAlbum, orderByYear, false);\n /* Despues del ciclo anterior, la matriz data tiene toda la información que se quiere añadir a la tabla */\n \n /* Se crea un modelo con los datos y los nombres de las columnas */\n DefaultTableModel model = new DefaultTableModel(data, columnNames);\n \n /* Se crea una nueva tabla con el modelo y se le añaden unos metodos sobre escritos a la tabla */\n table = new JTable(model)\n {\n @Override\n public TableCellEditor getCellEditor(int row, int column) {\n \n if (column == JSoundsMainWindowViewController.ALBUM_INFO_COLUMN ||\n column == JSoundsMainWindowViewController.NUMBER_SONG_COLUMN ||\n column == JSoundsMainWindowViewController.LIST_SONG_COLUMN)\n {\n return new JListTableEditor();\n }\n \n return null;\n }\n \n @Override\n public boolean isCellEditable(int row, int col) {\n switch (col) {\n case JSoundsMainWindowViewController.LIST_SONG_COLUMN:\n return true;\n default:\n return false;\n }\n }\n };\n \n setTableWithData();\n \n /* Se crea un scroll y se le añade la tabla */\n JScrollPane scrollPane = new JScrollPane(table);\n \n Dimension d = table.getSize();\n scrollPane.setPreferredSize(new Dimension(d.width,630));\n \n /* Se añade el scroll pane al panel */\n JSoundsMainWindowViewController.jPListContainer.setLayout(new GridLayout());\n JSoundsMainWindowViewController.jPListContainer.add(scrollPane);\n }", "String galleryItemIdentity();", "public ArrayList<Song> searchByArtist(String artist) \r\n {\r\n \treturn musicLibraryArtistKey.get(artist);\r\n \t\r\n }", "public String getAlbum() {\n\t\treturn album;\r\n\t}", "public Playlist(String titel, ArrayList<Nummer> albumNummers) {\n this.titel = titel;\n this.albumNummers = albumNummers;\n this.berekenDuur();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Artist : \"+this.artistName+\"\\n\";\n\t}", "public List<Sale> saleListArtistCount() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT name,\\n\"\n + \"COUNT (*) \\n\"\n + \"FROM disquera.artist JOIN disquera.sale ON artist.id_artist = sale.id_artist\\n\"\n + \"GROUP BY artist.name ORDER BY artist.name\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n\n newSale.setArtistName(result.getString(1));\n newSale.setCount(result.getInt(2));\n //System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }", "public Album getSpotifyAlbumById(String albumId){\n SpotifyService spotifyService = getSpotifyService();\n Album spotifyAlbum = spotifyService.getAlbum(albumId);\n return spotifyAlbum;\n }", "@Test\n public void testToevoegen_Album() {\n System.out.println(\"toevoegen album\");\n Album album = new Album(\"Album\", 2020, nummers);\n instance.toevoegen(album);\n ArrayList<Nummer> expResult = nummers;\n ArrayList<Nummer> result = instance.getAlbumNummers();\n assertEquals(expResult, result);\n }", "@Test\n public void albumsIdPhotosGetTest() {\n Integer id = null;\n List<Photo> response = api.albumsIdPhotosGet(id);\n\n // TODO: test validations\n }", "@Test\n public void testRemoveSong() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n Song song2 = new Song(\"2\", \"titre2\", \"artiste2\", \"album2\", \"2\", new LinkedList<String>(), new HashMap<String,Rights>());\n ArrayList<Song> songs = new ArrayList<>();\n songs.add(song1);\n songs.add(song2);\n SongLibrary library = new SongLibrary(songs);\n \n String songId = \"1\";\n \n library.removeSong(songId);\n \n assertFalse(library.islocal(\"1\"));\n assertTrue(library.islocal(\"2\"));\n \n\n }", "private void prepareAlbums() {\n int[] covers = new int[]{\n R.drawable.laser,\n R.drawable.shutterstock_sky,\n R.drawable.setalite,\n R.drawable.doctor,\n R.drawable.tower,\n R.drawable.machine,\n R.drawable.finger,\n R.drawable.polymers,\n R.drawable.liver,\n R.drawable.balls,\n R.drawable.phone};\n\n Invention a = new Invention(\"MOBILE LASER SCANNING AND INFRASTRUCTURE MONITORING SYSTEM\", \"Middle East and UAE in particular have experienced a tremendous boom in property and infrastructure development over the last decade. In other cities, the underlying infrastructure available to property developers is typically mapped and documented well before the developer begins his work.\",\n covers[0], \"Apps\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"HUB CONTEST DISTRIBUTED ALGORITHM\", \" We typically take for granted the amount of work needed for a simple phone call to occur between two mobile phones. Behind the scenes, hundreds, if not thousands of messages are communicated between a mobile handset, radio tower, and countless servers to enable your phone call to go smoothly. \",\n covers[1], \"Product Design\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"CLOCK SYNCHRONIZATION OVER COMMUNICATION \", \" In real life, the communication paths from master to slave and reverse are not perfectly symmetric mainly due to dissimilar forward and reverse physical link delays and queuing delays. asymmetry, creates an error in the estimate of the slave clock’s offset from the master\",\n covers[2], \"Table Top Games\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"PATIENT-SPECIFIC SEIZURE CLASSIFICATION\",\"The timely detection of an epileptic seizure to alert the patient is currently not available. The invention is a device that can classify specific seizures of patients. It is realized within a microchip (IC) and can be attached to the patient.\",\n covers[3], \"Software\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"ALTERNATIVE RENEWABLE ENERGY HARVESTING\", \"There has been increased demand to harvest energy from nontraditional alternative energy sources for self-powered sensors chipsets which are located in remote locations and that can operate at extremely low power levels.\",\n covers[4], \"Gadgets\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"TECHNIQUE FOR MOTOR CONTROL OVER PACKET NETWORKS\", \"Many industries rely on motor control systems to physically control automated machines in manufacturing, energy conservation, process control and other important functions. \",\n covers[5], \"Software\",getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"INDOOR WIRELESS FINGERPRINTING TECHNIQUE\",\" Location information has gained significant attention for a variety of outdoor applications thanks to the reliable and popular GPS system. \",\n covers[6], \"Apps\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"POLYMERS AND PLASTICS FROM SULFUR COMPOUND\", \"Plastics are some of the most heavily used materials in our world. From plastic bags, to computer components - they are the back-bone material of our daily lives.\",\n covers[7], \"Video Games\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"FIBER-IN-FIBER BIOARTIFICIAL LIVER DEVICE\", \"Liver is a site for proteins and amino acids production. Once the liver fails, its function is very difficult to replicate. Up to date, there is no approved therapy but human liver transplant - bio artificial liver devices and incubating liver cells are only a short term solution to bridge the time for the patients to the ultimate liver transplant.\",\n covers[8], \"Gadgets\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"COMPACT SUFFIX TREE FOR BINARY PATTERN MATCHING\", \" While the “suffix tree” is an efficient structure to solve many string problems, especially in cloud storages, it requires a large memory space for building and storing the tree structure. \",\n covers[9], \"Apps\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n adapter.notifyDataSetChanged();\n }", "List<AlbumImage> selectByAlbum(Integer albumId);", "private MyAlbumList() {\n albums = new ArrayList<Album>();\n }", "@Override\r\n public String toString()\r\n {\n\tString strAlbums = \"\";\r\n\r\n\t// create a string containing all albums\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t strAlbums += album.toString() + \"\\r\\n\";\r\n\t}\r\n\r\n\treturn strAlbums;\r\n }", "@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }", "public String getAlbumName()\n {\n return albumName;\n }" ]
[ "0.62132436", "0.61428326", "0.61325574", "0.6088659", "0.6044957", "0.5909117", "0.58634055", "0.5859839", "0.5814208", "0.574906", "0.5726084", "0.5719803", "0.567887", "0.5678446", "0.56273407", "0.55688024", "0.55434555", "0.55392545", "0.5515966", "0.550912", "0.550912", "0.5495665", "0.549196", "0.5479912", "0.5473041", "0.5473041", "0.54658026", "0.54332376", "0.5423445", "0.54002345", "0.5394994", "0.53871036", "0.53536654", "0.53533894", "0.53382856", "0.53373647", "0.5314716", "0.53136206", "0.53032833", "0.53017914", "0.52954495", "0.5284586", "0.52814454", "0.5280787", "0.52694744", "0.5262762", "0.5257706", "0.52524227", "0.52477014", "0.5245809", "0.52445054", "0.5234706", "0.5229424", "0.52232903", "0.5218341", "0.5214148", "0.5214148", "0.52042735", "0.5191573", "0.5174444", "0.51679534", "0.5165164", "0.51445496", "0.5143148", "0.51425874", "0.5138304", "0.5130572", "0.51270133", "0.51200855", "0.5102189", "0.51001954", "0.50983393", "0.50840396", "0.50791174", "0.50790083", "0.5069961", "0.50675726", "0.5065759", "0.5065294", "0.5059132", "0.5057001", "0.5049434", "0.50404483", "0.50312775", "0.5030255", "0.502747", "0.5021139", "0.5013398", "0.50118095", "0.50065553", "0.5006098", "0.50028986", "0.49841163", "0.49835008", "0.49804845", "0.49801984", "0.4976464", "0.49762112", "0.4975318", "0.49752998" ]
0.56117
15
Les identifiants uniques des artistes qui ont produit cet album
public Album setArtists(Set<String> artists) { this.artists = artists; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getArtistId() {\r\n return artistId;\r\n }", "List<Album> getAlbumFromArtiste(Integer artisteId, Integer userId);", "public List<Album> getAlbums(Artist artist);", "public Long getArtistID()\r\n {\r\n return artistID;\r\n }", "public int getArtistID() {\n return artistID;\n }", "Set<Art> getArtByArtist(String artist);", "public void setArtistAlbums(List<Album> artistAlbums) {\n this.artistAlbums = artistAlbums;\n }", "public String getAlbumArtist() {\n return albumArtist;\n }", "public AlbumSet getAlbumsByArtist(String artistId) {\n\t\t//http://emby:8096/Items?SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=MusicAlbum&Recursive=true&ArtistIds=3c328d23e110ee9d4fbe6b1302635e32\n\t\tAlbumSetQueryParams queryParams = new AlbumSetQueryParams(artistId);\n\t\tURI targetUrl= buildUriWithQueryParams(\"/\"+ EmbyUrlConstants.ITEMS, queryParams);\n\t\treturn restTemplate.getForObject(targetUrl, AlbumSet.class);\n\t}", "Artist getById(long id);", "public ArrayList<String> getAllAlbumsOfArtist(Long songid) {\n\t\tString artistName = getArtistName(songid);\n\t\t// get all albums of this artist\n\t\tArrayList<String> albums = new ArrayList<>();\n\t\talbumsidOfArtist = new ArrayList<>();\n\n\t\ttry {\n\t\t\tString sqlQuery = \"select album_name, album_id from album where prod_name like '\" + artistName + \"';\";\n\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlQuery);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tString al = (String) resultSet.getObject(1);\n\t\t\t\tLong alid = (Long) resultSet.getObject(2);\n\n\t\t\t\t// add to return album names and albumid in albumsidOfArtist list\n\t\t\t\talbums.add(al);\n\t\t\t\talbumsidOfArtist.add(alid);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn albums;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Album)) {\n return false;\n }\n Album other = (Album) object;\n if ((this.idAlbum == null && other.idAlbum != null) || (this.idAlbum != null && !this.idAlbum.equals(other.idAlbum))) {\n return false;\n }\n return true;\n }", "public Vector<Artista> findAllArtisti();", "private List<MusicVideo> selectMusicVideosFromDBOwnedByArtiste(int artisteId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id=:artisteId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "public Set<String> getArtists() {\r\n return this.artists;\r\n }", "public void setArtistID(Long artistID)\r\n {\r\n this.artistID = artistID;\r\n }", "public List<Album> getAlbumsByArtist(String albumArtist)\r\n {\r\n\t// iterate over each album in my album collection and where the album \r\n\t// artist is equal to albumArtist, add the album to a list of albums\r\n\tList<Album> albumsByArtist = new ArrayList<>();\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t if (album.getAlbumArtist().equals(albumArtist))\r\n\t {\r\n\t\talbumsByArtist.add(album);\r\n\t }\r\n\t}\r\n\treturn albumsByArtist;\r\n }", "public List<Artist> listArtistsAndID() throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\t\tDriver driver = new Driver();\n\t\tString sql = \"SELECT * FROM artist \" + \"ORDER BY Artist_ID\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn artist;\n\t\t} finally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\t}", "public void parseAlbumNames(String[] albumIds, JSONObject httpResponse) {\n try{\n for (String albumId : albumIds) {\n String albumName = httpResponse.getString(albumId);\n if (((Peer2PhotoApp) getApplication()).getAlbumId(albumName) == null) {\n if (!(new File(getApplicationContext().getFilesDir().getPath() + \"/\" + albumName).exists())) {\n createAlbumInCloud(albumName, albumId);\n addNewAlbum(albumId, albumName);\n Log.d(\"debug\", \"User has been added to album of other user and its name does not exist in user's albums\");\n } else {\n File fileToDelete = new File(getApplicationContext().getFilesDir().getPath() + \"/\" + albumName);\n if (fileToDelete.delete()) {\n createAlbumInCloud(albumName, albumId);\n addNewAlbum(albumId, albumName);\n Log.d(\"debug\", \"User has been added to album of other user and its name does not exist in user's albums\");\n }\n }\n } else {\n if (!((Peer2PhotoApp) getApplication()).getAlbumId(albumName).equals(albumId)) {\n String newName = albumName + \"_\" + albumId;\n createAlbumInCloud(newName, albumId);\n addNewAlbum(albumId, newName);\n Log.d(\"debug\", \"User has been added to album of other user with name equal to one of user's albums\");\n } else {\n if(!new File(getApplicationContext().getFilesDir().getPath() + \"/\" + albumName).exists()){\n createAlbumInCloud(albumName, albumId);\n addNewAlbum(albumId, albumName);\n }\n }\n }\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "public String getArtist() {\n return artist;\n }", "public String getArtist() {\n return artist;\n }", "public String getArtist(){\n\t\treturn artist;\n\t}", "private void InicializarListaAlbums() {\n\n GestorAlbums gestorAlbums = new GestorAlbums(this.getActivity());\n albums = gestorAlbums.AsignarAlbum();\n }", "Album findAlbumByNameAndArtisteName(String albumName, String artisteName);", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public String getArtist() {\r\n\t\treturn artist;\r\n\t}", "public void displayByArtists()\n {\n Collections.sort(catalog, new ArtistComparator());\n \n System.out.printf(\"%-30s %-39s %s %n\",\"ARTIST\", \"ALBUM\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(false)); //prints the artist first.\n \n for(int i=1; i<30; i++)\n System.out.print(\"*\");\n System.out.print(\"\\n\\n\");\n }", "public void notifyFinishGetSimilarArtist(ArtistInfo a, Image img, long id);", "public String getArtist() {\n\t\treturn artist;\r\n\t}", "public void addAlbum(int id, int artist_id, String name, String cover) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_ID, id);\n values.put(KEY_HOST, host);\n values.put(KEY_ARTIST_ID, artist_id);\n values.put(KEY_NAME, name);\n values.put(KEY_COVER, cover);\n\n long insertedId = db.insert(TABLE_ALBUM, null, values);\n db.close(); // Closing database connection\n }", "private List<MusicVideo> getMusicVideosThatMatchArtisteOrGenre(int artisteId, int genreId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id = :artisteId OR mv.genre.id = :genreId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n query.setParameter(\"genreId\", genreId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "public void setArtist(String artist){\n\t\tthis.artist = artist;\n\t}", "private void populateArtists(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT artist_name FROM artist ORDER BY artist_name\");\n\n while(results.next()){\n String artist = results.getString(1);\n artistList.add(artist);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "public void addArtist(Artist artist) {\n\t\tif(!artists.containsKey(artist.id)) {\n\t\t\tartists.put(artist.id, artist);\n\t\t}\n\t}", "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Song)) {\n return false;\n }\n Song other = (Song) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public String findArtist (String song)\n\t{\n\t\tArrayList <String> name = new ArrayList <String>(); \n\t\tfor (Song e: music)\n\t\t\tif (e.getName().equals(song))\n\t\t\t\tname.add(e.getArtist());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < name.size(); i++)\n\t\t{\n\t\t\tif (name.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += name.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += name.get(i) + \", \"; \n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn results; \n\t}", "public void addArtist(int id, String name, String image) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_ID, id);\n values.put(KEY_HOST, host);\n values.put(KEY_NAME, name);\n values.put(KEY_IMAGE, image);\n\n long insertedId = db.insert(TABLE_ARTIST, null, values);\n db.close(); // Closing database connection\n }", "private void removeAlbumFromCollection() {\n //\n }", "boolean sameArtist(Artist that) {\r\n\t\treturn this.name.equals(that.name); \r\n\t\t// && this.painting.samePainting(that.painting);\r\n\t}", "private static String getArtist(String songID) throws SQLException {\n artistStatement = conn.createStatement();\n artistResultSet = artistStatement.executeQuery(\"SELECT * FROM artist, trackArtist WHERE trackArtist.track_id = '\" + songID + \"' AND trackArtist.artist_id = artist.id;\");\n artistResultSet.next();\n return artistResultSet.getString(\"name\");\n }", "void loadAlbums();", "public ArrayList<String> getAllSongsOfArtist(Long songid) {\n\t\tString artistName = getArtistName(songid);\n\t\t// get all albums of this artist\n\t\tArrayList<String> songs = new ArrayList<>();\n\t\tsongsidOfArtist = new ArrayList<>();\n\n\t\ttry {\n\t\t\tString sqlQuery = \"select song_name, song_id from song s, \"\n\t\t\t\t\t+ \"album al where s.album_id = al.album_id and prod_name like '\" + artistName + \"';\";\n\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlQuery);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tString s = (String) resultSet.getObject(1);\n\t\t\t\tLong sid = (Long) resultSet.getObject(2);\n\n\t\t\t\t// add to return song names and songid in songsidOfArtist list\n\t\t\t\tsongs.add(s);\n\t\t\t\tsongsidOfArtist.add(sid);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn songs;\n\t}", "public void getArtistsMetaDataFromDevice(){\n // implement a cursorLoader\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(MediaStore.Audio.Artists.INTERNAL_CONTENT_URI,null,null,null,MediaStore.Audio.ArtistColumns.ARTIST);\n }", "public static void clearPreviousArtists(){previousArtists.clear();}", "public String getArtist() {\n\t\treturn this.artist;\n\t}", "public static Playlist getSongsByArtist(Playlist originalList, String artist) throws IllegalArgumentException, FullPlaylistException, EmptyPlaylistException\n\t{\n\t\tPlaylist newList = new Playlist();\n\t\tint n = 0;\n\t\tfor(int i = 1; i <= originalList.size(); i++)\n\t\t\tif(artist.equals(originalList.getSong(i).getArtist()))\n\t\t\t\tnewList.addSong(originalList.getSong(i), ++n);\n\t\tif(n == 0)\n\t\t{\n\t\t\tnewList = null;\n\t\t\tthrow new IllegalArgumentException(\"Artist could not be found in this playlist\");\n\t\t}\n\t\treturn newList;\n\t}", "public Playlist(ArrayList<Nummer> albumNummers) {\n this.albumNummers = albumNummers;\n }", "private void showArtistas(Artist c) {\n\t\tif (c != null) {\n\t\t\tArtist r = ArtistDAO.List_Artist_By_Name(c.getName());\n\t\t\tNombreArtista.setText(r.getName());\n\t\t\tNacionalidadArtista.setText(r.getNationality());\n\t\t\tFotoArtista.setText(r.getPhoto());\n\t\t\tBorrarArtista.setDisable(false);\n\t\t\ttry {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(r.getPhoto()));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t} catch (Exception e) {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(\"error.jpg\"));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tBorrarArtista.setDisable(true);\n\t\t\tNombreArtista.setText(\"\");\n\t\t\tNacionalidadArtista.setText(\"\");\n\t\t\tFotoArtista.setText(\"\");\n\t\t}\n\n\t}", "public boolean hasArtist(int aid) {\n\t\treturn artists.containsKey(aid);\n\t}", "public ArtistSet getArtists() {\n\t\treturn restTemplate.getForObject(embyUrl + \"/\"+ EmbyUrlConstants.ARTISTS, ArtistSet.class);\n\t}", "public boolean isArtist(){return isArtist;}", "@Test\n public void testAddSong() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n ArrayList<Song> songs = new ArrayList<>();\n songs.add(song1);\n SongLibrary library = new SongLibrary(songs);\n \n Song song2 = new Song(\"2\", \"titre2\", \"artiste2\", \"album2\", \"2\", new LinkedList<String>(), new HashMap<String,Rights>());\n library.addSong(song2);\n \n assertTrue(library.islocal(song2.getSongId()));\n assertTrue(library.islocal(song1.getSongId()));\n\n }", "private void prepareAlbums() {\n// int[] covers = new int[]{\n// R.drawable.album1,\n// R.drawable.album2,\n// R.drawable.album3,\n// R.drawable.album4,\n// R.drawable.album5,\n// R.drawable.album6,\n// R.drawable.album7,\n// R.drawable.album8,\n// R.drawable.album9,\n// R.drawable.album10,\n// R.drawable.album11,\n// R.drawable.album12,\n// R.drawable.album13};\n int [] covers = new int [ALBUM_SIZE];\n for (int i = 0; i < ALBUM_SIZE; i++){\n int temp = i + 1;\n covers[i] = getResources().getIdentifier(\"album\" + temp, \"drawable\", getPackageName() );\n }\n\n Album a = new Album(\"True Romance\", 13, covers[0]);\n albumList.add(a);\n\n a = new Album(\"Xscpae\", 8, covers[1]);\n albumList.add(a);\n\n a = new Album(\"Maroon 5\", 11, covers[2]);\n albumList.add(a);\n\n a = new Album(\"Born to Die\", 12, covers[3]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[4]);\n albumList.add(a);\n\n a = new Album(\"I Need a Doctor\", 1, covers[5]);\n albumList.add(a);\n\n // Special image (album19, album20 )has w x h smaller than normal image\n a = new Album(\"Honeymoon\", 14, covers[18]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[19]);\n albumList.add(a);\n\n a = new Album(\"Loud\", 11, covers[6]);\n albumList.add(a);\n\n a = new Album(\"Legend\", 14, covers[7]);\n albumList.add(a);\n\n a = new Album(\"Hello\", 11, covers[8]);\n albumList.add(a);\n\n a = new Album(\"Greatest Hits\", 17, covers[9]);\n albumList.add(a);\n\n a = new Album(\"Top Hits\", 17, covers[10]);\n albumList.add(a);\n\n a = new Album(\"King Hits\", 17, covers[11]);\n albumList.add(a);\n\n a = new Album(\"VIP Hits\", 17, covers[12]);\n albumList.add(a);\n\n a = new Album(\"True Romance\", 13, covers[13]);\n albumList.add(a);\n\n a = new Album(\"Xscpae\", 8, covers[14]);\n albumList.add(a);\n\n a = new Album(\"Maroon 5\", 11, covers[15]);\n albumList.add(a);\n\n a = new Album(\"Born to Die\", 12, covers[16]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[17]);\n albumList.add(a);\n\n // Special image (album19, album20 )has w x h smaller than normal image\n a = new Album(\"Honeymoon\", 14, covers[18]);\n albumList.add(a);\n\n a = new Album(\"Honeymoon\", 14, covers[19]);\n albumList.add(a);\n\n adapter.notifyDataSetChanged();\n }", "public String getArtistName() {\n return mArtistName;\n }", "public String getArtistName() {\n return mArtistName;\n }", "public Library(String n, int i) { \r\n super(n);\r\n id = i;\r\n albums = new HashSet<Album>();\r\n\r\n }", "public List<Song> getsongalbumsid(String albumsname) {\n\t\treturn sd.allsongalbumsname(albumsname);\r\n\t}", "@Override\r\n\tpublic void listAlbums() {\n\t\tString AlbumNames=\"\";\r\n\t\tList<IAlbum> album1=model.getUser(userId).getAlbums();\r\n\t\tif(album1.size()==0){\r\n\t\t\tString error=\"No albums exist for user \"+userId+\"\";\r\n\t\t\tsetErrorMessage(error);\r\n\t\t\tshowError();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tIAlbum temp=album1.get(0);\r\n\t\t\r\n\t\tfor(int i=0; i<album1.size(); i++){\r\n\t\t\ttemp=album1.get(i);\r\n\t\t\t/*accessing the photo list now*/\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tif(photoList.size()==0){\r\n\t\t\t\tAlbumNames=AlbumNames+\"\"+album1.get(i).getAlbumName()+\" number of photos: 0\\n\";\r\n\t\t\t}\r\n\t\t\t/*Let's compare*/\r\n\t\t\telse{Date lowest=photoList.get(0).getDate();\r\n\t\t\tDate highest=photoList.get(0).getDate();\r\n\t\t\tfor(int j=0;j<photoList.size();j++){\r\n\t\t\t\tif(photoList.get(j).getDate().before(lowest)){\r\n\t\t\t\t\tlowest=photoList.get(j).getDate();\r\n\t\t\t\t}\r\n\t\t\t\tif(photoList.get(j).getDate().after(highest)){\r\n\t\t\t\t\thighest=photoList.get(j).getDate();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/**/\r\n\t\t\tif(i==album1.size()-1){\r\n\t\t\t\t/*Do I even need this?*/\r\n\t\t\t\tAlbumNames=AlbumNames+\"\"+album1.get(i).getAlbumName()+\" number of photos: \"+album1.get(i).getAlbumSize()+\", \"+lowest+\" - \"+highest+\"\";\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\tAlbumNames=AlbumNames+\"\"+album1.get(i).getAlbumName()+\" number of photos: \"+album1.get(i).getAlbumSize()+\", \"+lowest+\" - \"+highest+\"\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\t\tsetErrorMessage(AlbumNames);\r\n\t\tshowError();\r\n\t\t\r\n\r\n\t}", "public String allSongs (String artist)\n\t{\n\t\tArrayList <String> songs = new ArrayList <String>();\n\t\tfor (Song e: music)\n\t\t\tif(e.getArtist().equals(artist))\n\t\t\t\tsongs.add(e.getName());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < songs.size(); i++)\n\t\t{\n\t\t\tif (music.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += music.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += music.get(i) + \", \";\n\t\t\t}\n\t\t}\n\t\treturn results; \n\t}", "@Test\n public void getAllPhotosFromAlbumTest() {\n loginAndSetupNewUser(username);\n\n // Upload photo to default album twice\n Response response = apiClient.uploadPhoto(photoName, ext, description, albumId, contents);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n response = apiClient.uploadPhoto(photoName, ext, description, albumId, contents);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Create second album, in preparation to upload a photo to it.\n response = apiClient.addAlbum(albumName, description);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n long albumId2 = gson.fromJson(response.readEntity(String.class), Receipt.class).getReferenceId();\n\n // Upload photo to second album\n response = apiClient.uploadPhoto(photoName, ext, description, albumId2, contents);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Get all photos from album on server\n response = apiClient.getAllPhotos(albumId);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Parse response, ensuring only the 2 original photos are present.\n String photosStr = response.readEntity(String.class);\n PhotoResult[] photoArray = gson.fromJson(photosStr, PhotoResult[].class);\n assertEquals(2, photoArray.length);\n\n // Check each photo's contents and who posted it\n for(PhotoResult result : photoArray) {\n Photo photo = result.getPhoto();\n assertEquals(photo.getAuthorName(), username);\n assertEquals(photo.getPhotoName(), photoName);\n assertEquals(photo.getDescription(), description);\n }\n }", "@Override\n public int hashCode() {\n return getTrackId();\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Imagen)) {\r\n return false;\r\n }\r\n Imagen other = (Imagen) object;\r\n if ((this.idImagen == null && other.idImagen != null) || (this.idImagen != null && !this.idImagen.equals(other.idImagen))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public Album(Album other) {\r\n if (other.isSetId()) {\r\n this.id = other.id;\r\n }\r\n if (other.isSetName()) {\r\n Set<String> __this__name = new HashSet<String>();\r\n for (String other_element : other.name) {\r\n __this__name.add(other_element);\r\n }\r\n this.name = __this__name;\r\n }\r\n if (other.isSetArtists()) {\r\n Set<String> __this__artists = new HashSet<String>();\r\n for (String other_element : other.artists) {\r\n __this__artists.add(other_element);\r\n }\r\n this.artists = __this__artists;\r\n }\r\n if (other.isSetRelease_date()) {\r\n Set<String> __this__release_date = new HashSet<String>();\r\n for (String other_element : other.release_date) {\r\n __this__release_date.add(other_element);\r\n }\r\n this.release_date = __this__release_date;\r\n }\r\n if (other.isSetGenres()) {\r\n Set<String> __this__genres = new HashSet<String>();\r\n for (String other_element : other.genres) {\r\n __this__genres.add(other_element);\r\n }\r\n this.genres = __this__genres;\r\n }\r\n if (other.isSetTrack_names()) {\r\n Set<String> __this__track_names = new HashSet<String>();\r\n for (String other_element : other.track_names) {\r\n __this__track_names.add(other_element);\r\n }\r\n this.track_names = __this__track_names;\r\n }\r\n if (other.isSetText()) {\r\n this.text = other.text;\r\n }\r\n }", "public String getAlbum()\n {\n return album;\n }", "@Test\n public void getAllAlbumsTest() throws InvalidResourceRequestException {\n loginAndSetupNewUser(username);\n\n // Add a new album, with the same name and description as the default album.\n Response response = apiClient.addAlbum(albumName, description);\n assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());\n\n // Check server has record of both albums\n for(Album album : resolver.getAlbums(username)) {\n assertEquals(albumName, album.getAlbumName());\n assertEquals(description, album.getDescription());\n }\n }", "@DELETE @Path(\"/id/{albumId}/artists/{artistId}\")\n public void deleteArtist(@PathParam(\"albumId\") String albumId,\n @PathParam(\"artistId\") String artistId) {\n return;\n }", "public void addSong(Song song) {\n\t\t\n\t\tString title = song.getTitle();\n\t\tString artist = song.getArtist();\n\t\tString id = song.getTrackId();\n\t\tArrayList<String> tags = song.getTags();\n\t\t\n\t\tif(!this.titleMap.containsKey(title)) {\n\t\t\tthis.titleMap.put(title, new TreeSet<Song>(new TitleComparator()));\n\t\t}\n\t\t\n\t\tTreeSet<Song> titleTmp = this.titleMap.get(title);\n\t\ttitleTmp.add(song);\n\t\t\n\t\tif(!this.artistMap.containsKey(artist)) {\n\t\t\tthis.artistMap.put(artist, new TreeSet<Song>(new ArtistComparator()));\n\t\t}\n\t\t\n\t\tTreeSet<Song> artistTmp = this.artistMap.get(artist);\n\t\tartistTmp.add(song);\n\t\t\n\t\tfor(String tag: tags) {\n\t\t\tif(!this.tagMap.containsKey(tag)) {\n\t\t\t\tthis.tagMap.put(tag, new TreeSet<String>(new StringComparator()));\n\t\t\t}\n\t\t\t\n\t\t\tTreeSet<String> tagTmp = this.tagMap.get(tag);\n\t\t\ttagTmp.add(id);\n\t\t}\n\t\t\n\t\tif(!this.idMap.containsKey(id)) {\n\t\t\tthis.idMap.put(id, song);\n\t\t}\n\t\t//if(!this.artistList.contains(artist))\n\t\t\t//this.artistList.add(artist);\n\t}", "@Override\n public int getItemCount() {\n return album.getSongs().size() + 1;\n }", "void create(Artist artist);", "private static String getAlbum(String songID) throws SQLException {\n albumStatement = conn.createStatement();\n albumResultSet = albumStatement.executeQuery(\"SELECT * FROM album, trackAlbum WHERE trackAlbum.track_id = '\" + songID + \"' AND trackAlbum.album_id = album.id;\");\n albumResultSet.next();\n return albumResultSet.getString(\"name\");\n }", "List<String> getArtists();", "private void setDefaultSongNameAndArtist(){\r\n\t\tString[] songLocation = getLocation().split(\"/\");\r\n\t\tString[] songFragment = songLocation[songLocation.length - 1].split(\"[.]\");\r\n\t\tsetSongName(songFragment[0]);\r\n\t\t\r\n\t\tsetAlbum(songLocation[songLocation.length - 2] + \"?\");\r\n\t\tsetArtist(songLocation[songLocation.length - 3] + \"?\");\r\n\t\t\r\n\t}", "public MusicLibrary() {\n\t\tthis.idMap = new HashMap<String, Song>();\n\t\tthis.titleMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.artistMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.tagMap = new TreeMap<String, TreeSet<String>>(new StringComparator());\n\t\t//this.artistList = new ArrayList<>();\n\t}", "public void readAlbumCollectionFromFile(Object fileName)\r\n {\r\n\t// Initialise variables to hold album title, artist and tracks\r\n\tList<Track> albumTracks = new ArrayList<>();\r\n\tString albumTitle = \"\";\r\n\tString albumArtist = \"\";\r\n\tString file = (String) fileName;\r\n\ttry\r\n\t{\r\n\t // Read in the album data file line by line\r\n\t BufferedReader buffer;\r\n\t buffer = new BufferedReader(new FileReader(file));\r\n\t String currentLine;\r\n\t Album album = null;\r\n\r\n\t while ((currentLine = buffer.readLine()) != null)\r\n\t {\r\n\t\t// Lines in the album data file begin with a letter when the line \r\n\t\t// contains an album title and artist, or an integer when it \r\n\t\t// contains track info\r\n\t\t\r\n\r\n\t\t// For each line, check whether first character is a letter. If so,\r\n\t\t// assume we are at a new Album title/artist\r\n\t\tif (Character.isLetter(currentLine.charAt(0)))\r\n\t\t{\r\n\t\t // Album title found\r\n\t\t \r\n\t\t // Get Album title and artist from the current line\r\n\t\t String[] split = currentLine.split(\":\");\r\n\t\t albumArtist = split[0].trim();\r\n\t\t albumTitle = split[1].trim();\r\n\r\n\r\n\t\t // check that current album does not exist in collection\r\n\t\t // try to get album by title\r\n\t\t Album albumByTitle = this.getAlbumByTitle(albumTitle);\r\n\t\t //only add album if albumByTitle returned null\r\n\t\t //TODO checking by artist will not work here as only first album by title found is returned. Need method to check for more albums of same name.\r\n\t\t if (albumByTitle == null || !albumByTitle.getAlbumArtist().equals(albumArtist))\r\n\t\t {\r\n\t\t\t// We are at the end of the current album. Therefore, create\r\n\t\t\t// the album and add it to the album collection\r\n\t\t\talbum = new Album(albumArtist, albumTitle);\r\n\t\t\tthis.addAlbum(album);\r\n\t\t }\r\n\t\t}\r\n\t\t// If first char is not a letter assume the line is a new track\r\n\t\telse if (album != null)\r\n\t\t{\r\n\t\t // Track found - get its title and duration\r\n\t\t String[] split = currentLine.split(\"-\", 2); // ', 2' prevents \r\n\t\t //splitting where '-' character occurs in title of the track\r\n\t\t String strTrackDuration = split[0].trim();\r\n\t\t String trackTitle = split[1].trim();\r\n\r\n\t\t // create duration object from string\r\n\t\t Duration trackDuration = new Duration(strTrackDuration);\r\n\t\t // create track object and add to album track list\r\n\t\t Track track = new Track(trackTitle, trackDuration);\r\n\t\t album.addTrack(track);\r\n\t\t}\r\n\t }\r\n\r\n\t} catch (IOException e)\r\n\t{\r\n\t // if error occurs, print the IOException\r\n\t System.out.println(e);\r\n\t}\r\n }", "public void createArtist(View view){\n Artist artist = new Artist(databaseReference.push().getKey(), \"Maluma baby\", \"Reggeton\"); // PRIMER DATO SOLICITADO ES EL IDENTIFICADOR\n //.push().getKey() FUNCION DE FIRE PARA CREAR UN ID, HACE COMO QUE INSERTA ALGO ES EL IDENTIFICADOR\n databaseReference.child(ARTIST_NODE).child(artist.getId()).setValue(artist);// AQUI APUNTAMOS AL ARBOL DE LA BASE DE DATOS\n }", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "@Test\n public void getAlbumsTest() {\n Integer id = null;\n Integer userId = null;\n List<Album> response = api.getAlbums(id, userId);\n\n // TODO: test validations\n }", "private AlbumPanel createAlbumPanel(ArrayList<MP3Info> albumMusicsInfo) {\n MP3Info firstMP3Info = albumMusicsInfo.get(0);\n AlbumPanel album = null;\n String description = \"Album contains \" + albumMusicsInfo.size() + \" songs\";\n try {//creating an album panel with its listener\n album = new AlbumPanel(firstMP3Info.getImage(), firstMP3Info.getAlbum(), description, albumMusicsInfo, this, this);\n } catch (InvalidDataException | IOException | UnsupportedTagException e) {\n JOptionPane.showMessageDialog(null, \"Error reading mp3 file image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n return album;\n }", "@Override\n\tpublic String getType() {\n\t\treturn \"Artist\";\n\t}", "public boolean isArtistIDEquals(String artistID){\n\n return _id.equalsIgnoreCase(artistID);\n }", "private void prepareAlbums() {\n\n Album a;\n\n for(HashMap.Entry<String,ArrayList<String>> entry : Test.subcatList.get(name).entrySet()){\n key = entry.getKey();\n value = entry.getValue();\n a = new Album(key , value.get(2));\n albumList.add(a);\n System.out.println(\"dddd : \" + key + \" \" + value.get(2));\n }\n\n adapter.notifyDataSetChanged();\n\n }", "public static void loadAllAlbumsInfoInContainer(boolean orderByArtist, boolean orderByAlbum, boolean orderByYear)\n {\n Object[][] data = createDataForAlbums(orderByArtist, orderByAlbum, orderByYear, false);\n /* Despues del ciclo anterior, la matriz data tiene toda la información que se quiere añadir a la tabla */\n \n /* Se crea un modelo con los datos y los nombres de las columnas */\n DefaultTableModel model = new DefaultTableModel(data, columnNames);\n \n /* Se crea una nueva tabla con el modelo y se le añaden unos metodos sobre escritos a la tabla */\n table = new JTable(model)\n {\n @Override\n public TableCellEditor getCellEditor(int row, int column) {\n \n if (column == JSoundsMainWindowViewController.ALBUM_INFO_COLUMN ||\n column == JSoundsMainWindowViewController.NUMBER_SONG_COLUMN ||\n column == JSoundsMainWindowViewController.LIST_SONG_COLUMN)\n {\n return new JListTableEditor();\n }\n \n return null;\n }\n \n @Override\n public boolean isCellEditable(int row, int col) {\n switch (col) {\n case JSoundsMainWindowViewController.LIST_SONG_COLUMN:\n return true;\n default:\n return false;\n }\n }\n };\n \n setTableWithData();\n \n /* Se crea un scroll y se le añade la tabla */\n JScrollPane scrollPane = new JScrollPane(table);\n \n Dimension d = table.getSize();\n scrollPane.setPreferredSize(new Dimension(d.width,630));\n \n /* Se añade el scroll pane al panel */\n JSoundsMainWindowViewController.jPListContainer.setLayout(new GridLayout());\n JSoundsMainWindowViewController.jPListContainer.add(scrollPane);\n }", "String galleryItemIdentity();", "public ArrayList<Song> searchByArtist(String artist) \r\n {\r\n \treturn musicLibraryArtistKey.get(artist);\r\n \t\r\n }", "public String getAlbum() {\n\t\treturn album;\r\n\t}", "public Playlist(String titel, ArrayList<Nummer> albumNummers) {\n this.titel = titel;\n this.albumNummers = albumNummers;\n this.berekenDuur();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Artist : \"+this.artistName+\"\\n\";\n\t}", "public List<Sale> saleListArtistCount() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT name,\\n\"\n + \"COUNT (*) \\n\"\n + \"FROM disquera.artist JOIN disquera.sale ON artist.id_artist = sale.id_artist\\n\"\n + \"GROUP BY artist.name ORDER BY artist.name\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n\n newSale.setArtistName(result.getString(1));\n newSale.setCount(result.getInt(2));\n //System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }", "public Album getSpotifyAlbumById(String albumId){\n SpotifyService spotifyService = getSpotifyService();\n Album spotifyAlbum = spotifyService.getAlbum(albumId);\n return spotifyAlbum;\n }", "@Test\n public void testToevoegen_Album() {\n System.out.println(\"toevoegen album\");\n Album album = new Album(\"Album\", 2020, nummers);\n instance.toevoegen(album);\n ArrayList<Nummer> expResult = nummers;\n ArrayList<Nummer> result = instance.getAlbumNummers();\n assertEquals(expResult, result);\n }", "@Test\n public void testRemoveSong() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n Song song2 = new Song(\"2\", \"titre2\", \"artiste2\", \"album2\", \"2\", new LinkedList<String>(), new HashMap<String,Rights>());\n ArrayList<Song> songs = new ArrayList<>();\n songs.add(song1);\n songs.add(song2);\n SongLibrary library = new SongLibrary(songs);\n \n String songId = \"1\";\n \n library.removeSong(songId);\n \n assertFalse(library.islocal(\"1\"));\n assertTrue(library.islocal(\"2\"));\n \n\n }", "@Test\n public void albumsIdPhotosGetTest() {\n Integer id = null;\n List<Photo> response = api.albumsIdPhotosGet(id);\n\n // TODO: test validations\n }", "private void prepareAlbums() {\n int[] covers = new int[]{\n R.drawable.laser,\n R.drawable.shutterstock_sky,\n R.drawable.setalite,\n R.drawable.doctor,\n R.drawable.tower,\n R.drawable.machine,\n R.drawable.finger,\n R.drawable.polymers,\n R.drawable.liver,\n R.drawable.balls,\n R.drawable.phone};\n\n Invention a = new Invention(\"MOBILE LASER SCANNING AND INFRASTRUCTURE MONITORING SYSTEM\", \"Middle East and UAE in particular have experienced a tremendous boom in property and infrastructure development over the last decade. In other cities, the underlying infrastructure available to property developers is typically mapped and documented well before the developer begins his work.\",\n covers[0], \"Apps\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"HUB CONTEST DISTRIBUTED ALGORITHM\", \" We typically take for granted the amount of work needed for a simple phone call to occur between two mobile phones. Behind the scenes, hundreds, if not thousands of messages are communicated between a mobile handset, radio tower, and countless servers to enable your phone call to go smoothly. \",\n covers[1], \"Product Design\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"CLOCK SYNCHRONIZATION OVER COMMUNICATION \", \" In real life, the communication paths from master to slave and reverse are not perfectly symmetric mainly due to dissimilar forward and reverse physical link delays and queuing delays. asymmetry, creates an error in the estimate of the slave clock’s offset from the master\",\n covers[2], \"Table Top Games\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"PATIENT-SPECIFIC SEIZURE CLASSIFICATION\",\"The timely detection of an epileptic seizure to alert the patient is currently not available. The invention is a device that can classify specific seizures of patients. It is realized within a microchip (IC) and can be attached to the patient.\",\n covers[3], \"Software\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"ALTERNATIVE RENEWABLE ENERGY HARVESTING\", \"There has been increased demand to harvest energy from nontraditional alternative energy sources for self-powered sensors chipsets which are located in remote locations and that can operate at extremely low power levels.\",\n covers[4], \"Gadgets\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"TECHNIQUE FOR MOTOR CONTROL OVER PACKET NETWORKS\", \"Many industries rely on motor control systems to physically control automated machines in manufacturing, energy conservation, process control and other important functions. \",\n covers[5], \"Software\",getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"INDOOR WIRELESS FINGERPRINTING TECHNIQUE\",\" Location information has gained significant attention for a variety of outdoor applications thanks to the reliable and popular GPS system. \",\n covers[6], \"Apps\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"POLYMERS AND PLASTICS FROM SULFUR COMPOUND\", \"Plastics are some of the most heavily used materials in our world. From plastic bags, to computer components - they are the back-bone material of our daily lives.\",\n covers[7], \"Video Games\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"FIBER-IN-FIBER BIOARTIFICIAL LIVER DEVICE\", \"Liver is a site for proteins and amino acids production. Once the liver fails, its function is very difficult to replicate. Up to date, there is no approved therapy but human liver transplant - bio artificial liver devices and incubating liver cells are only a short term solution to bridge the time for the patients to the ultimate liver transplant.\",\n covers[8], \"Gadgets\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n a = new Invention(\"COMPACT SUFFIX TREE FOR BINARY PATTERN MATCHING\", \" While the “suffix tree” is an efficient structure to solve many string problems, especially in cloud storages, it requires a large memory space for building and storing the tree structure. \",\n covers[9], \"Apps\", getRandomNumber(1, 30), getRandomNumber(1, 100), getRandomNumber(1, 3000));\n inventionList.add(a);\n\n adapter.notifyDataSetChanged();\n }", "List<AlbumImage> selectByAlbum(Integer albumId);", "private MyAlbumList() {\n albums = new ArrayList<Album>();\n }", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "@Override\r\n public String toString()\r\n {\n\tString strAlbums = \"\";\r\n\r\n\t// create a string containing all albums\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t strAlbums += album.toString() + \"\\r\\n\";\r\n\t}\r\n\r\n\treturn strAlbums;\r\n }", "@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }" ]
[ "0.6214235", "0.6141712", "0.6130274", "0.60893744", "0.6045654", "0.59082097", "0.5862821", "0.5858601", "0.581391", "0.5748911", "0.57183266", "0.5678181", "0.56767094", "0.5628016", "0.561093", "0.5570493", "0.5541874", "0.5538359", "0.55146444", "0.55084294", "0.55084294", "0.5494951", "0.5489764", "0.5478237", "0.5473554", "0.5473554", "0.5465494", "0.54336435", "0.5424798", "0.5399876", "0.5395692", "0.5387938", "0.53539234", "0.5353323", "0.5340337", "0.5335494", "0.5315197", "0.53127843", "0.53046894", "0.5301788", "0.5296433", "0.5284946", "0.5279785", "0.52794975", "0.5269936", "0.52638865", "0.5257391", "0.5252683", "0.52461725", "0.5246089", "0.5245333", "0.52345455", "0.5229315", "0.52233225", "0.52175343", "0.5213891", "0.5213891", "0.52018684", "0.5189408", "0.5172719", "0.51660514", "0.5164217", "0.5143937", "0.51437175", "0.51430345", "0.5135742", "0.5130074", "0.51280516", "0.5120256", "0.5101121", "0.5100536", "0.50972885", "0.50817186", "0.507877", "0.5078093", "0.50694567", "0.5068053", "0.5064522", "0.5063977", "0.5059482", "0.50560755", "0.50509477", "0.50386214", "0.5030574", "0.5029826", "0.50262886", "0.50189966", "0.50124633", "0.50109893", "0.5005237", "0.50051963", "0.50015646", "0.49836674", "0.498271", "0.4979762", "0.4978533", "0.49745518", "0.49738574", "0.4973721", "0.497339" ]
0.5726645
10
Returns true if field artists is set (has been assigned a value) and false otherwise
public boolean isSetArtists() { return this.artists != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isArtist(){return isArtist;}", "public boolean hasArtist(int aid) {\n\t\treturn artists.containsKey(aid);\n\t}", "public Album setArtists(Set<String> artists) {\r\n this.artists = artists;\r\n return this;\r\n }", "public boolean isSetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(METADATA$0) != 0;\n }\n }", "public Set<String> getArtists() {\r\n return this.artists;\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetFamilyAssets() {\n return EncodingUtils.testBit(__isset_bitfield, __FAMILYASSETS_ISSET_ID);\n }", "public boolean isSetTrack_names() {\r\n return this.track_names != null;\r\n }", "public boolean isSetEntity() {\r\n return this.entity != null;\r\n }", "boolean hasMetadataFields();", "boolean hasField3();", "public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }", "public boolean isSetMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MEDICATION$10) != 0;\n }\n }", "public boolean isSetEntries() {\n return this.entries != null;\n }", "public boolean hasTourists() {\n return tourists_ != null;\n }", "public boolean isSetGenres() {\n return this.genres != null;\n }", "public boolean isSetGenres() {\r\n return this.genres != null;\r\n }", "public boolean hasTourists() {\n return touristsBuilder_ != null || tourists_ != null;\n }", "boolean hasArtilleryFactorySelected();", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetE() {\n return this.e != null;\n }", "public boolean isSetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PART$2) != 0;\n }\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(title, type, author, details, tags);\n }", "public boolean isSetParts() {\n return this.parts != null;\n }", "@Override\n public boolean isDefined()\n {\n return getValue() != null || getChildrenCount() > 0\n || getAttributeCount() > 0;\n }", "public boolean isSetNamedAnnotTrack()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(NAMEDANNOTTRACK$38) != 0;\r\n }\r\n }", "public boolean isSetMeta() {\n return this.meta != null;\n }", "public void setArtist(String artist){\n\t\tthis.artist = artist;\n\t}", "public boolean isSetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(EMBL$10) != 0;\r\n }\r\n }", "public final boolean isForSetted() {\n\t\treturn engine.isPropertySetted(Properties.FOR);\n\t}", "@Override\n public boolean isSet() {\n return loci != null;\n }", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet() {\n\t\treturn false;\n\t}", "public boolean isSetKeff() {\r\n return isSetAttribute(MEConstants.keff);\r\n }", "public boolean isSetWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WASNOTGIVEN$4) != 0;\n }\n }", "public boolean isSetMaterialName() {\n return this.materialName != null;\n }", "public boolean isSetImg() {\n return this.img != null;\n }", "public boolean hasEta() {\n return fieldSetFlags()[1];\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntity_type() {\n return this.entity_type != null;\n }", "public boolean hasAuthor() {\n return fieldSetFlags()[0];\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isSetMids() {\n return this.mids != null;\n }", "public boolean isSetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PATENT$16) != 0;\r\n }\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "boolean isSetValueAttachment();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }", "boolean hasField4();", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "boolean sameArtist(Artist that) {\r\n\t\treturn this.name.equals(that.name); \r\n\t\t// && this.painting.samePainting(that.painting);\r\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n }\n throw new IllegalStateException();\n }", "public boolean isSetValue() {\n return this.value != null;\n }" ]
[ "0.6554021", "0.6155801", "0.6075513", "0.59044784", "0.58748", "0.58739096", "0.5845719", "0.5845719", "0.5800128", "0.5799999", "0.5782988", "0.5751487", "0.57321775", "0.57261837", "0.5721482", "0.57207274", "0.56954575", "0.5691381", "0.56740797", "0.5665774", "0.56451935", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55925566", "0.55700135", "0.5563654", "0.5558984", "0.5542879", "0.55311435", "0.5522858", "0.55020106", "0.5474641", "0.5466349", "0.54607815", "0.54591495", "0.54591495", "0.5457161", "0.5452097", "0.5445766", "0.5444818", "0.5437128", "0.54285717", "0.5426269", "0.54221404", "0.54221404", "0.54221404", "0.54221404", "0.54221404", "0.54221404", "0.54146916", "0.5404085", "0.54026943", "0.540244", "0.5402247", "0.54005694", "0.54005694", "0.5398576", "0.53896666", "0.53887916", "0.53739285", "0.5356954", "0.5337634", "0.53337234" ]
0.810704
0
La date a laquelle cet album a ete lance La date est du format yyyyMMdd'T'HH:mm:ssZZZ Voir la documentation pour plus d'information sur les formats de date
public Set<String> getRelease_date() { return this.release_date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "public abstract java.lang.String getFecha_inicio();", "private static String fechaMod(File imagen) {\n\t\tlong tiempo = imagen.lastModified();\n\t\tDate d = new Date(tiempo);\n\t\tCalendar c = new GregorianCalendar();\n\t\tc.setTime(d);\n\t\tString dia = Integer.toString(c.get(Calendar.DATE));\n\t\tString mes = Integer.toString(c.get(Calendar.MONTH));\n\t\tString anyo = Integer.toString(c.get(Calendar.YEAR));\n\t\tString hora = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\tString minuto = Integer.toString(c.get(Calendar.MINUTE));\n\t\tString segundo = Integer.toString(c.get(Calendar.SECOND));\n\t\treturn hora+\":\"+minuto+\":\"+segundo+\" - \"+ dia+\"/\"+mes+\"/\"+\n\t\tanyo;\n\t}", "public Date getRealPhotoDate() {\n return realPhotoDate;\n }", "@Test\n public void dateUtilTest() {\n String orgStr = \"2016-01-05 10:00:17\";\n Date orgDate = new Date(1451959217000L);\n Assert.assertTrue(DateStrValueConvert.dateFormat(orgDate).equals(orgStr));\n Assert.assertTrue(DateStrValueConvert.dateConvert(orgStr).equals(orgDate));\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "@GET(\"planetary/apod?api_key=\" + API_KEY)\n Single<Picture> getPictureByDate(@Query(\"date\") String date);", "public void testDateConversion() throws Exception {\n Calendar calendar = Calendar.getInstance();\n TimeDetails details = new TimeDetails(\n calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), calendar.get(Calendar.SECOND));\n DateMetadataDefinition def = new DateMetadataDefinition(\"date\", \"\",\n calendar.get(Calendar.YEAR),\n calendar.get(Calendar.MONTH),\n calendar.get(Calendar.DAY_OF_MONTH),\n details,\n false);\n List<AbstractMetadataDefinition> list = new LinkedList<AbstractMetadataDefinition>();\n list.add(def);\n PluginImpl.getInstance().setDefinitions(list);\n FreeStyleProject freeStyleProject = createFreeStyleProject();\n configRoundtrip(freeStyleProject);\n MetadataJobProperty property = freeStyleProject.getProperty(MetadataJobProperty.class);\n assertNotNull(\"No MetadataJobProperty\", property);\n DateMetadataValue dateValue = (DateMetadataValue)TreeStructureUtil.getLeaf(property, \"date\");\n assertNotNull(dateValue);\n assertEquals(def.getHour(), dateValue.getHour());\n assertEquals(def.getMinute(), dateValue.getMinute());\n assertEquals(def.getSecond(), dateValue.getSecond());\n assertEquals(def.getDay(), dateValue.getDay());\n assertEquals(def.getMonth(), dateValue.getMonth());\n assertEquals(def.getYear(), dateValue.getYear());\n }", "java.lang.String getDate();", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "java.lang.String getFoundingDate();", "String getDate();", "String getDate();", "public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }", "public String getEmotionDate() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.CANADA);\n return dateFormat.format(emotionDate);\n }", "private LocalDateTime getPhotoDate(Uri pUri) {\n LocalDateTime ret = null;\n String dtStr;\n\n try {\n InputStream inputStream = getBaseContext().getContentResolver().openInputStream(pUri);\n if (inputStream != null) {\n ExifInterface exif = new ExifInterface(inputStream);\n dtStr = exif.getAttribute(ExifInterface.TAG_DATETIME_ORIGINAL);\n if (dtStr != null) {\n // Convert string date into LocalDateTime, then adjust for timezone offset\n // Timezone offset is the difference, in hours, between the timezone that the tracking\n // data was taken in and the timezone that the camera is set to.\n ret = LocalDateTime.parse(dtStr, DateTimeFormatter.ofPattern(\"yyyy:MM:dd HH:mm:ss\")).plusHours(cameraOffset * -1);\n //String lat = exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE);\n //String lon = exif.getAttribute(ExifInterface.TAG_GPS_LONGITUDE);\n }\n inputStream.close();\n }\n } catch (IOException e) {\n Log.e(TAG, \"Photo file not found: \" + e.getLocalizedMessage());\n }\n\n return (ret);\n\n }", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "public String Get_date() \n {\n \n return date;\n }", "public static String formartDateforGraph(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "@Override\r\n\tpublic void getPhotosByDate(String start, String end) {\n\t\tDate begin=null;\r\n\t\tDate endz=null;\r\n\t\t/*check if valid dates have been passed for both of the variables*/\r\n\t\ttry {\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\t\t\tdateFormat.setLenient(false);\r\n\t\t\tbegin = dateFormat.parse(start);\r\n\t\t\tendz = dateFormat.parse(end);\r\n\t\t\t}\r\n\t\t\tcatch (ParseException e) {\r\n\t\t\t String error=\"Error: Invalid date for one of inputs\";\r\n\t\t\t setErrorMessage(error);\r\n\t\t\t showError();\r\n\t\t\t return;\r\n\t\t\t}\r\n\t\tif(begin.after(endz)){\r\n\t\t\tString error=\"Error: Invalid dates! Your start is after your end\";\r\n\t\t\t setErrorMessage(error);\r\n\t\t\t showError();\r\n\t\t\t return;\r\n\t\t}\r\n\t\t/*I don't need the this if but I'm going to keep it\r\n\t\t * to grind your gears*/\r\n\t\tif(endz.before(begin)){\r\n\t\t\tString error=\"Error: Invalid dates! Your end date is before your start\";\r\n\t\t\t setErrorMessage(error);\r\n\t\t\t showError();\r\n\t\t\t return;\r\n\t\t}\r\n\t\tString listPhotos=\"\";\r\n\t\tList<IAlbum> album1=model.getUser(userId).getAlbums();\r\n\t\tString success=\"\";\r\n\t\tString albumNames=\"\";\r\n\t//\tInteractiveControl.PhotoCompare comparePower=new InteractiveControl.PhotoCompare();\r\n\t\tfor(int i=0; i<album1.size();i++){\r\n\t\t\tIAlbum temp=album1.get(i);\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tInteractiveControl.PhotoCompare comparePower=new InteractiveControl.PhotoCompare();\r\n\t\t\tCollections.sort(photoList, comparePower);\r\n\t\t\tfor(int j=0; j<photoList.size();j++){\r\n\t\t\t\tif(photoList.get(j).getDate().after(begin) && photoList.get(j).getDate().before(endz)){\r\n\t\t\t\t\t/* getPAlbumNames(List<IAlbum> albums, String photoId)*/\r\n\t\t\t\t\talbumNames=getPAlbumNames(album1, photoList.get(j).getFileName());\r\n\t\t\t\t\tlistPhotos=listPhotos+\"\"+photoList.get(j).getCaption()+\" - \"+albumNames+\"- Date: \"+photoList.get(j).getDateString()+\"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tsuccess=\"Photos for user \"+userId+\" in range \"+start+\" to \"+end+\":\\n\"+listPhotos;\r\n\t\tsetErrorMessage(success);\r\n\t\tshowError();\r\n\t\t\r\n\r\n\t}", "public Date getMakePhotoDate() {\n return makePhotoDate;\n }", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "@Override\r\n public boolean insertAlbum(Album album)\r\n {\r\n try\r\n {\r\n String query= \"insert into album(album_id,album_name,relese_date) values(?,?,?)\";\r\n PreparedStatement preparedStatement=connection.prepareStatement(query);\r\n preparedStatement.setString(1,album.getAlbumId());\r\n preparedStatement.setString(2,album.getAlbumName());\r\n java.sql.Date date=new java.sql.Date(album.getReleseDate().getTime());\r\n preparedStatement.setDate(3,date);\r\n\r\n int count=preparedStatement.executeUpdate();\r\n\r\n if(count>0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch(SQLException ex)\r\n {\r\n ex.printStackTrace();\r\n return false;\r\n }\r\n catch(Exception ex)\r\n {\r\n ex.printStackTrace();\r\n return false;\r\n }\r\n }", "private void setUnpaidSongCountDate(String val) {\n\t\tref.edit().putString(COL_UNPAID_SONG_COUNT_DATE, val).commit();\n\t}", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@Test\n public void testGetFechaPago() {\n System.out.println(\"getFechaPago\");\n DateFormat format = new SimpleDateFormat(\"dd/mm/yyyy\"); // Creamos un formato de fecha\n Date expResult = null;\n try {\n expResult = format.parse(\"1/10/2019\");\n } catch (ParseException ex) {\n Logger.getLogger(PersonaTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n Date result = detalleAhorro.getFechaPago();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "long getDate();", "Date getDateCreated();", "public Group3Date(String date) {\n\t\t\tString[] fields = date.split(\"/\");\n\t\t\tif (fields.length != 3) {\n\t\t\t\tthrow new Error(\"Date parse error\");\n\t\t\t}\n\t\t\tmonth = Integer.parseInt(fields[0]);\n\t\t\tday = Integer.parseInt(fields[1]);\n\t\t\tyear = Integer.parseInt(fields[2]);\n\t\t\tif (!isValid(month, day, year)) throw new Error(\"Invalid date\");\n\t\t}", "public void testGetDate() {\r\n assertEquals(test1.getDate(), 20200818);\r\n }", "com.google.type.Date getAcquireDate();", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "Date getCreatedDate();", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public static String formatarData(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String date(int lmao) {\r\n switch (lmao) {\r\n case 1:\r\n return time.showDay();\r\n\r\n case 2:\r\n return time.showMonth();\r\n\r\n case 3:\r\n return time.showYear();\r\n\r\n case 4:\r\n return time.showDay() + \"/\" + time.showMonth() + \"/\" + time.showYear();\r\n\r\n default:\r\n return \"error\";\r\n }\r\n }", "String getDate() { return epoch; }", "private void checkCorrectDateFormat(String date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.getDefault());\n sdf.setLenient(false);\n try {\n sdf.parse(date);\n } catch (ParseException e) {\n throw new IllegalArgumentException(\n \"Google Calendar Event Date must follow\" + \" the format: \\\"yyyy-MM-dd'T'HH:mm:ss\\\"\");\n }\n }", "@Test\n\tpublic void testCorrectURL_forSingleDate() {\n\t\tString date =\"2017-10-01\";\n\t\tString result=urlHelper.getURLByDateRange(date, date);\n\t\tString expected = genFeedURL(date,date);\n\t\tassertEquals(result, expected);\n\t}", "public String getDate(){\n return date;\n }", "public static void readEventos(){\n\n //Cojemos el dni del trabajador logado\n dni_trabajador = DatosUsuario.getDNI();\n\n //Inicializamos\n db = FirebaseFirestore.getInstance();\n listaEventos = new ArrayList<RecyclerViewCalTrabajador>();\n listaEventosDias = new ArrayList<RecyclerViewCalTrabajador>();\n\n //Leemos todos y los metemos en un array\n db.collection(\"Evento\")\n .whereEqualTo(\"Trabajador\", dni_trabajador)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n /*Cogemos el dato fecha de la bbdd y hacemos el casting\n * a millisegundos para darselo a el evento.*/\n\n\n // Timestamp f = (Timestamp) document.get(\"Fecha\");\n Fecha = document.getString(\"Fecha\");\n System.out.println(Fecha);\n Log.d(Values.tag_log, \"Fecha: \" + document.get(\"Fecha\"));\n //Date f1 = f.toDate();\n Log.d(Values.tag_log, \"Fecha: \" );\n\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy hh:mm:ss.SSS\");\n parsedDate = dateFormat.parse(Fecha);\n timestamp = new java.sql.Timestamp(parsedDate.getTime());\n } catch(Exception e) { //this generic but you can control another types of exception\n // look the origin of excption\n }\n\n\n listaEventos.add(new RecyclerViewCalTrabajador(timestamp,document.get(\"Titulo\").toString(),\n document.get(\"Trabajador\").toString(),document.get(\"Adress\").toString()));\n //Date f1 = f.toDate();\n Log.d(Values.tag_log, \"Fecha: \" + d);\n\n\n /* listaEventos.add(new RecyclerViewCalTrabajador(d,document.get(\"Titulo\").toString(),\n document.get(\"Trabajador\").toString(),document.get(\"Adress\").toString()));*/\n }\n } else {\n Log.d(TAG, \"Error getting documents: \", task.getException());\n }\n }\n });\n\n }", "public static String GetIsoDateTime(Date dateToFormat) {\n\t\t// GPX specs say that time given should be in UTC, no local time.\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n\t\treturn sdf.format(dateToFormat);\n\t}", "@Test\n public void testCorrectAlbumWithFilterDateAndFindBy()\n throws IOException {\n Client client = Client.create(new DefaultClientConfig());\n WebResource service = client.resource(getBaseURI()\n + \"PhotoAlbum04/\");\n String response = service.path(\"search\")\n .queryParam(\"type\", \"album\")\n .queryParam(\"findBy\", \"name\")\n .queryParam(\"keywords\", \"evento\")\n .queryParam(\"orderBy\", \"date\")\n .queryParam(\"dateFirst\", \"01/11/2012\")\n .queryParam(\"dateEnd\", \"02/11/2012\")\n .get(String.class);\n assertFalse(\"Assert error failed\",\n response.contains(\"Url syntax error\"));\n assertFalse(\"Assert file-dtos error failed\",\n response.contains(\"file-dtos\"));\n\n assertTrue(\n \"Assert album-dtos failed\",\n response.contains(\"Album: Search with all parameters\"));\n }", "@Test\n\tpublic void testDate4() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36161);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 2);\n\t\t\t// month is 0 indexed, so Jan is 0\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }", "public static String getISO8601StringForDate(Date date){\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", Locale.ENGLISH);\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"IST\"));\n return dateFormat.format(date);\n }", "private static void addDateIfValid(AnalysisResults.Builder analysisBuilder, String date) {\n String separator = date.contains(\"-\") ? \"-\" : \"/\";\n String formatterPattern = \"M\" + separator + \"d\" + separator;\n\n // Determine if the date has 2 or 4 digits for the year\n if (date.lastIndexOf(separator) + 3 == date.length()) {\n formatterPattern += \"yy\";\n } else {\n formatterPattern += \"yyyy\";\n }\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(formatterPattern);\n\n try {\n ZonedDateTime dateAndTime = LocalDate.parse(date, formatter).atStartOfDay(ZoneOffset.UTC);\n dateAndTime = fixYearIfInFuture(dateAndTime);\n\n long timestamp = dateAndTime.toInstant().toEpochMilli();\n analysisBuilder.setTransactionTimestamp(timestamp);\n } catch (DateTimeParseException e) {\n // Invalid month or day\n return;\n }\n }", "public void setDate(String date){\n this.date = date;\n }", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public String fileFormat() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"D | \" + (super.isDone ? \"1 | \" : \"0 | \") + this.description + \" | \" + df.format(this.date);\n }", "@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }", "public static String formatDate(String dateValue) {\n Date uploadDateTime = null;\n try {\n uploadDateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).parse(dateValue);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.US).format(uploadDateTime);\n }", "private Date parseDate(Map m) {\n Result res = Result.fromContent(m);\n Calendar cal = Calendar.getInstance(client.getServerTimeZone());\n cal.set(Calendar.YEAR, res.getAsInteger(\"year\"));\n cal.set(Calendar.MONTH, res.getAsInteger(\"month\"));\n cal.set(Calendar.DAY_OF_MONTH, res.getAsInteger(\"day\"));\n cal.set(Calendar.HOUR_OF_DAY, res.getAsInteger(\"hours\"));\n cal.set(Calendar.MINUTE, res.getAsInteger(\"minutes\"));\n cal.set(Calendar.SECOND, res.getAsInteger(\"seconds\"));\n return cal.getTime();\n }", "long getFetchedDate();", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "public String getDate(){\n return date;\n }", "public Date getGioBatDau();", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "public Date getFileDate()\r\n {\r\n return dFileDate;\r\n }", "@Nullable\n public Single<Media> getPictureOfTheDay() {\n String date = CommonsDateUtil.getIso8601DateFormatShort().format(new Date());\n Timber.d(\"Current date is %s\", date);\n String template = \"Template:Potd/\" + date;\n return getMedia(template, true);\n }", "public String getDate(){ return this.start_date;}", "@Test\n public void toStringOk(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.toString(),\"1 january 1970\");\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "private String formatTimeToICS(LocalDateTime date) {\n return DateTimeFormatter.ofPattern(\"YYYYMMddTHHmmss\").format(date);\n }", "public Date getCreatedDate();", "public void setDate(String date){\n this.date = date;\n }", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private String dateFormat(String date) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.ENGLISH);\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date serverDate = null;\n String formattedDate = null;\n try {\n serverDate = df.parse(date);\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"MMM dd yyyy, hh:mm\");\n\n outputFormat.setTimeZone(TimeZone.getDefault());\n\n formattedDate = outputFormat.format(serverDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return formattedDate;\n }", "public Date getAlta() { return alta; }", "public void getTanggalKelahiran() {\r\n Date tanggalKelahiran = new Date(getTahunLahir() - 1900, getBulanLahir() - 1, getTanggalLahir());\r\n SimpleDateFormat ft = new SimpleDateFormat(\"dd - MM - yyyy\");\r\n System.out.println(ft.format(tanggalKelahiran));\r\n }", "public Date getDateCreated();", "@Override\n\tpublic void initDate() {\n\n\t}", "public String getDate() {\n return date;\n }", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "public String getYear(){\n return rssData.getDate().split(\"/\")[2];\n }", "public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "public String getMyDatePosted() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.US);\n try {\n Date date = format.parse(myDatePosted);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n cal.add(Calendar.HOUR, -7);\n Date temp = cal.getTime();\n format.applyPattern(\"MMM dd, yyyy hh:mm a\");\n return format.format(temp);\n } catch (ParseException e) {\n return myDatePosted;\n }\n }", "public Date getPubDate();", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "String getCreated_at();", "private String formatTime(String dateObject){\n\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"h:mm a\");\n Date jam = null;\n try {\n jam = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(jam);\n }", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "@Ignore\n\t@Test\n\tpublic void testDate3() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(728783);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 4);\n\t\t\t// month is 0 indexed, so May is the 4th month\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 4);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1996);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private static List<String> listDateFormats(){\r\n List<String> result = new ArrayList<String>();\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n result.add(\"yyyy-MM-ddZZ\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n result.add(\"EEE MMM d hh:mm:ss z yyyy\");\r\n result.add(\"EEE MMM dd HH:mm:ss yyyy\");\r\n result.add(\"EEEE, dd-MMM-yy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yy HH:mm:ss z\");\r\n result.add(\"EEE, dd MMM yy HH:mm z\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss z\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss Z\");\r\n result.add(\"dd MMM yy HH:mm:ss z\");\r\n result.add(\"dd MMM yy HH:mm z\");\r\n result.add(\"'T'HH:mm:ss\");\r\n result.add(\"'T'HH:mm:ssZZ\");\r\n result.add(\"HH:mm:ss\");\r\n result.add(\"HH:mm:ssZZ\");\r\n result.add(\"yyyy-MM-dd\");\r\n result.add(\"yyyy-MM-dd hh:mm:ss\");\r\n result.add(\"yyyy-MM-dd HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy\");\r\n result.add(\"dd.MM.yyyy hh:mm:ss\");\r\n result.add(\"dd.MM.yyyy HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssz\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy hh:mm\");\r\n result.add(\"dd.MM.yyyy HH:mm\");\r\n result.add(\"dd/MM/yyyy\");\r\n result.add(\"dd/MM/yy\");\r\n result.add(\"MM/dd/yyyy\");\r\n result.add(\"MM/dd/yy\");\r\n result.add(\"MM/dd/yyyy hh:mm:ss\");\r\n result.add(\"MM/dd/yy hh:mm:ss\");\r\n return result;\r\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "@AutoEscape\n\tpublic String getEntityAddDate();", "private String getDateString(Calendar cal) {\n Calendar current = Calendar.getInstance();\n String date = \"\";\n if (cal.get(Calendar.DAY_OF_YEAR) == current.get(Calendar.DAY_OF_YEAR)) {\n date = getResources().getString(R.string.content_today) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else if ((cal.get(Calendar.DAY_OF_YEAR) - 1) == current.get(Calendar.DAY_OF_YEAR)) {\n date = getResources().getString(R.string.content_yesterday) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else if ((cal.get(Calendar.DAY_OF_YEAR) - 2) == current.get(Calendar.DAY_OF_YEAR)\n && getResources().getConfiguration().locale.equals(new Locale(\"vn\"))) {\n date = getResources().getString(R.string.content_before_yesterday) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else {\n date = String.format(\"%02d-%02d-%02d %02d:%02d\", mCal.get(Calendar.DAY_OF_MONTH), mCal.get(Calendar.MONTH) + 1, mCal.get(Calendar.YEAR), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n }\n\n return date;\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "public String getRelativeTimeAgo(String rawJsonDate) {\n String twitterFormat = \"EEE MMM dd HH:mm:ss ZZZZZ yyyy\";\n SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);\n sf.setLenient(true);\n\n String relativeDate = \"\";\n try {\n long dateMillis = sf.parse(rawJsonDate).getTime();\n relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis,\n System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS, DateUtils.FORMAT_ABBREV_RELATIVE).toString();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return relativeDate;\n }", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setRealPhotoDate(Date realPhotoDate) {\n this.realPhotoDate = realPhotoDate;\n }", "public static void main(String[] args) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssX\"); // Quoted \"Z\" to indicate UTC, no timezone offset\n// df.setTimeZone(tz);\n// String nowAsISO = df.format(\"2017-04-21T21:25:35+05:00\");\n try {\n Date date = df.parse(\"2017-04-21T21:25:35+05:00\");\n System.out.println(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "@Test\r\n\tpublic void test1() {\n\t\tFile jpegFile = new File(\"C:\\\\Users\\\\lefto\\\\Downloads\\\\flickr\\\\test2\\\\20170814-150511-6_36561788895_o_EDIT.jpg\");\r\n\t\tMetadata metadata;\r\n\t\ttry {\r\n\t\t\tmetadata = ImageMetadataReader.readMetadata(jpegFile);\r\n\t\t\tfor (Directory directory : metadata.getDirectories()) {\r\n\t\t\t\tfor (Tag tag : directory.getTags()) {\r\n\t\t\t\t\tSystem.out.println(tag);\r\n//\t\t\t\t\tSystem.out.println(tag.getDirectoryName() + \", \" + tag.getTagName() + \", \" + tag.getDescription());\r\n//\t\t\t\t\tif (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL)\r\n//\t\t\t\t\t\tSystem.out.println(tag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ImageProcessingException | IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}" ]
[ "0.5763889", "0.5401393", "0.53893584", "0.537415", "0.5373031", "0.53721267", "0.5319192", "0.5295602", "0.5287546", "0.52776617", "0.52602845", "0.52426773", "0.52426773", "0.5217382", "0.52144265", "0.51991934", "0.5189338", "0.5183261", "0.51734823", "0.513493", "0.50969267", "0.5053479", "0.5037658", "0.5019466", "0.5008711", "0.5005561", "0.49979004", "0.49853048", "0.49833372", "0.49675122", "0.4963731", "0.4960428", "0.49562073", "0.49475497", "0.49456564", "0.49341246", "0.49328646", "0.4932651", "0.49319777", "0.49306345", "0.49296933", "0.49288157", "0.4927271", "0.49266228", "0.49207827", "0.49203014", "0.49202585", "0.4915602", "0.49152502", "0.49114814", "0.4904688", "0.4904621", "0.49041462", "0.4899759", "0.48988885", "0.48941952", "0.48910096", "0.48868537", "0.48844582", "0.48820695", "0.4880371", "0.48736903", "0.48719263", "0.48658338", "0.4864584", "0.48635247", "0.48593652", "0.48584446", "0.48561725", "0.48559913", "0.48559672", "0.48526722", "0.48492184", "0.4844682", "0.4843096", "0.48306534", "0.48264164", "0.48171803", "0.48166263", "0.48159492", "0.48117903", "0.48055068", "0.48028022", "0.47990647", "0.479747", "0.47968897", "0.4793418", "0.4792726", "0.47917327", "0.4791124", "0.47830334", "0.4773329", "0.477176", "0.4767731", "0.47626984", "0.47547022", "0.47540763", "0.47527513", "0.47524312", "0.47497284", "0.47445163" ]
0.0
-1
La date a laquelle cet album a ete lance La date est du format yyyyMMdd'T'HH:mm:ssZZZ Voir la documentation pour plus d'information sur les formats de date
public Album setRelease_date(Set<String> release_date) { this.release_date = release_date; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "public abstract java.lang.String getFecha_inicio();", "private static String fechaMod(File imagen) {\n\t\tlong tiempo = imagen.lastModified();\n\t\tDate d = new Date(tiempo);\n\t\tCalendar c = new GregorianCalendar();\n\t\tc.setTime(d);\n\t\tString dia = Integer.toString(c.get(Calendar.DATE));\n\t\tString mes = Integer.toString(c.get(Calendar.MONTH));\n\t\tString anyo = Integer.toString(c.get(Calendar.YEAR));\n\t\tString hora = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\tString minuto = Integer.toString(c.get(Calendar.MINUTE));\n\t\tString segundo = Integer.toString(c.get(Calendar.SECOND));\n\t\treturn hora+\":\"+minuto+\":\"+segundo+\" - \"+ dia+\"/\"+mes+\"/\"+\n\t\tanyo;\n\t}", "public Date getRealPhotoDate() {\n return realPhotoDate;\n }", "@Test\n public void dateUtilTest() {\n String orgStr = \"2016-01-05 10:00:17\";\n Date orgDate = new Date(1451959217000L);\n Assert.assertTrue(DateStrValueConvert.dateFormat(orgDate).equals(orgStr));\n Assert.assertTrue(DateStrValueConvert.dateConvert(orgStr).equals(orgDate));\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "@GET(\"planetary/apod?api_key=\" + API_KEY)\n Single<Picture> getPictureByDate(@Query(\"date\") String date);", "public void testDateConversion() throws Exception {\n Calendar calendar = Calendar.getInstance();\n TimeDetails details = new TimeDetails(\n calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), calendar.get(Calendar.SECOND));\n DateMetadataDefinition def = new DateMetadataDefinition(\"date\", \"\",\n calendar.get(Calendar.YEAR),\n calendar.get(Calendar.MONTH),\n calendar.get(Calendar.DAY_OF_MONTH),\n details,\n false);\n List<AbstractMetadataDefinition> list = new LinkedList<AbstractMetadataDefinition>();\n list.add(def);\n PluginImpl.getInstance().setDefinitions(list);\n FreeStyleProject freeStyleProject = createFreeStyleProject();\n configRoundtrip(freeStyleProject);\n MetadataJobProperty property = freeStyleProject.getProperty(MetadataJobProperty.class);\n assertNotNull(\"No MetadataJobProperty\", property);\n DateMetadataValue dateValue = (DateMetadataValue)TreeStructureUtil.getLeaf(property, \"date\");\n assertNotNull(dateValue);\n assertEquals(def.getHour(), dateValue.getHour());\n assertEquals(def.getMinute(), dateValue.getMinute());\n assertEquals(def.getSecond(), dateValue.getSecond());\n assertEquals(def.getDay(), dateValue.getDay());\n assertEquals(def.getMonth(), dateValue.getMonth());\n assertEquals(def.getYear(), dateValue.getYear());\n }", "java.lang.String getDate();", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "java.lang.String getFoundingDate();", "String getDate();", "String getDate();", "public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }", "public String getEmotionDate() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.CANADA);\n return dateFormat.format(emotionDate);\n }", "private LocalDateTime getPhotoDate(Uri pUri) {\n LocalDateTime ret = null;\n String dtStr;\n\n try {\n InputStream inputStream = getBaseContext().getContentResolver().openInputStream(pUri);\n if (inputStream != null) {\n ExifInterface exif = new ExifInterface(inputStream);\n dtStr = exif.getAttribute(ExifInterface.TAG_DATETIME_ORIGINAL);\n if (dtStr != null) {\n // Convert string date into LocalDateTime, then adjust for timezone offset\n // Timezone offset is the difference, in hours, between the timezone that the tracking\n // data was taken in and the timezone that the camera is set to.\n ret = LocalDateTime.parse(dtStr, DateTimeFormatter.ofPattern(\"yyyy:MM:dd HH:mm:ss\")).plusHours(cameraOffset * -1);\n //String lat = exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE);\n //String lon = exif.getAttribute(ExifInterface.TAG_GPS_LONGITUDE);\n }\n inputStream.close();\n }\n } catch (IOException e) {\n Log.e(TAG, \"Photo file not found: \" + e.getLocalizedMessage());\n }\n\n return (ret);\n\n }", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "public String Get_date() \n {\n \n return date;\n }", "public static String formartDateforGraph(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "@Override\r\n\tpublic void getPhotosByDate(String start, String end) {\n\t\tDate begin=null;\r\n\t\tDate endz=null;\r\n\t\t/*check if valid dates have been passed for both of the variables*/\r\n\t\ttry {\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\t\t\tdateFormat.setLenient(false);\r\n\t\t\tbegin = dateFormat.parse(start);\r\n\t\t\tendz = dateFormat.parse(end);\r\n\t\t\t}\r\n\t\t\tcatch (ParseException e) {\r\n\t\t\t String error=\"Error: Invalid date for one of inputs\";\r\n\t\t\t setErrorMessage(error);\r\n\t\t\t showError();\r\n\t\t\t return;\r\n\t\t\t}\r\n\t\tif(begin.after(endz)){\r\n\t\t\tString error=\"Error: Invalid dates! Your start is after your end\";\r\n\t\t\t setErrorMessage(error);\r\n\t\t\t showError();\r\n\t\t\t return;\r\n\t\t}\r\n\t\t/*I don't need the this if but I'm going to keep it\r\n\t\t * to grind your gears*/\r\n\t\tif(endz.before(begin)){\r\n\t\t\tString error=\"Error: Invalid dates! Your end date is before your start\";\r\n\t\t\t setErrorMessage(error);\r\n\t\t\t showError();\r\n\t\t\t return;\r\n\t\t}\r\n\t\tString listPhotos=\"\";\r\n\t\tList<IAlbum> album1=model.getUser(userId).getAlbums();\r\n\t\tString success=\"\";\r\n\t\tString albumNames=\"\";\r\n\t//\tInteractiveControl.PhotoCompare comparePower=new InteractiveControl.PhotoCompare();\r\n\t\tfor(int i=0; i<album1.size();i++){\r\n\t\t\tIAlbum temp=album1.get(i);\r\n\t\t\tList<IPhoto> photoList=temp.getPhotoList();\r\n\t\t\tInteractiveControl.PhotoCompare comparePower=new InteractiveControl.PhotoCompare();\r\n\t\t\tCollections.sort(photoList, comparePower);\r\n\t\t\tfor(int j=0; j<photoList.size();j++){\r\n\t\t\t\tif(photoList.get(j).getDate().after(begin) && photoList.get(j).getDate().before(endz)){\r\n\t\t\t\t\t/* getPAlbumNames(List<IAlbum> albums, String photoId)*/\r\n\t\t\t\t\talbumNames=getPAlbumNames(album1, photoList.get(j).getFileName());\r\n\t\t\t\t\tlistPhotos=listPhotos+\"\"+photoList.get(j).getCaption()+\" - \"+albumNames+\"- Date: \"+photoList.get(j).getDateString()+\"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tsuccess=\"Photos for user \"+userId+\" in range \"+start+\" to \"+end+\":\\n\"+listPhotos;\r\n\t\tsetErrorMessage(success);\r\n\t\tshowError();\r\n\t\t\r\n\r\n\t}", "public Date getMakePhotoDate() {\n return makePhotoDate;\n }", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "@Override\r\n public boolean insertAlbum(Album album)\r\n {\r\n try\r\n {\r\n String query= \"insert into album(album_id,album_name,relese_date) values(?,?,?)\";\r\n PreparedStatement preparedStatement=connection.prepareStatement(query);\r\n preparedStatement.setString(1,album.getAlbumId());\r\n preparedStatement.setString(2,album.getAlbumName());\r\n java.sql.Date date=new java.sql.Date(album.getReleseDate().getTime());\r\n preparedStatement.setDate(3,date);\r\n\r\n int count=preparedStatement.executeUpdate();\r\n\r\n if(count>0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch(SQLException ex)\r\n {\r\n ex.printStackTrace();\r\n return false;\r\n }\r\n catch(Exception ex)\r\n {\r\n ex.printStackTrace();\r\n return false;\r\n }\r\n }", "private void setUnpaidSongCountDate(String val) {\n\t\tref.edit().putString(COL_UNPAID_SONG_COUNT_DATE, val).commit();\n\t}", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@Test\n public void testGetFechaPago() {\n System.out.println(\"getFechaPago\");\n DateFormat format = new SimpleDateFormat(\"dd/mm/yyyy\"); // Creamos un formato de fecha\n Date expResult = null;\n try {\n expResult = format.parse(\"1/10/2019\");\n } catch (ParseException ex) {\n Logger.getLogger(PersonaTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n Date result = detalleAhorro.getFechaPago();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "long getDate();", "Date getDateCreated();", "public Group3Date(String date) {\n\t\t\tString[] fields = date.split(\"/\");\n\t\t\tif (fields.length != 3) {\n\t\t\t\tthrow new Error(\"Date parse error\");\n\t\t\t}\n\t\t\tmonth = Integer.parseInt(fields[0]);\n\t\t\tday = Integer.parseInt(fields[1]);\n\t\t\tyear = Integer.parseInt(fields[2]);\n\t\t\tif (!isValid(month, day, year)) throw new Error(\"Invalid date\");\n\t\t}", "public void testGetDate() {\r\n assertEquals(test1.getDate(), 20200818);\r\n }", "com.google.type.Date getAcquireDate();", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "Date getCreatedDate();", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public static String formatarData(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private void checkCorrectDateFormat(String date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.getDefault());\n sdf.setLenient(false);\n try {\n sdf.parse(date);\n } catch (ParseException e) {\n throw new IllegalArgumentException(\n \"Google Calendar Event Date must follow\" + \" the format: \\\"yyyy-MM-dd'T'HH:mm:ss\\\"\");\n }\n }", "public String date(int lmao) {\r\n switch (lmao) {\r\n case 1:\r\n return time.showDay();\r\n\r\n case 2:\r\n return time.showMonth();\r\n\r\n case 3:\r\n return time.showYear();\r\n\r\n case 4:\r\n return time.showDay() + \"/\" + time.showMonth() + \"/\" + time.showYear();\r\n\r\n default:\r\n return \"error\";\r\n }\r\n }", "String getDate() { return epoch; }", "@Test\n\tpublic void testCorrectURL_forSingleDate() {\n\t\tString date =\"2017-10-01\";\n\t\tString result=urlHelper.getURLByDateRange(date, date);\n\t\tString expected = genFeedURL(date,date);\n\t\tassertEquals(result, expected);\n\t}", "public static void readEventos(){\n\n //Cojemos el dni del trabajador logado\n dni_trabajador = DatosUsuario.getDNI();\n\n //Inicializamos\n db = FirebaseFirestore.getInstance();\n listaEventos = new ArrayList<RecyclerViewCalTrabajador>();\n listaEventosDias = new ArrayList<RecyclerViewCalTrabajador>();\n\n //Leemos todos y los metemos en un array\n db.collection(\"Evento\")\n .whereEqualTo(\"Trabajador\", dni_trabajador)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n /*Cogemos el dato fecha de la bbdd y hacemos el casting\n * a millisegundos para darselo a el evento.*/\n\n\n // Timestamp f = (Timestamp) document.get(\"Fecha\");\n Fecha = document.getString(\"Fecha\");\n System.out.println(Fecha);\n Log.d(Values.tag_log, \"Fecha: \" + document.get(\"Fecha\"));\n //Date f1 = f.toDate();\n Log.d(Values.tag_log, \"Fecha: \" );\n\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy hh:mm:ss.SSS\");\n parsedDate = dateFormat.parse(Fecha);\n timestamp = new java.sql.Timestamp(parsedDate.getTime());\n } catch(Exception e) { //this generic but you can control another types of exception\n // look the origin of excption\n }\n\n\n listaEventos.add(new RecyclerViewCalTrabajador(timestamp,document.get(\"Titulo\").toString(),\n document.get(\"Trabajador\").toString(),document.get(\"Adress\").toString()));\n //Date f1 = f.toDate();\n Log.d(Values.tag_log, \"Fecha: \" + d);\n\n\n /* listaEventos.add(new RecyclerViewCalTrabajador(d,document.get(\"Titulo\").toString(),\n document.get(\"Trabajador\").toString(),document.get(\"Adress\").toString()));*/\n }\n } else {\n Log.d(TAG, \"Error getting documents: \", task.getException());\n }\n }\n });\n\n }", "public String getDate(){\n return date;\n }", "@Test\n public void testCorrectAlbumWithFilterDateAndFindBy()\n throws IOException {\n Client client = Client.create(new DefaultClientConfig());\n WebResource service = client.resource(getBaseURI()\n + \"PhotoAlbum04/\");\n String response = service.path(\"search\")\n .queryParam(\"type\", \"album\")\n .queryParam(\"findBy\", \"name\")\n .queryParam(\"keywords\", \"evento\")\n .queryParam(\"orderBy\", \"date\")\n .queryParam(\"dateFirst\", \"01/11/2012\")\n .queryParam(\"dateEnd\", \"02/11/2012\")\n .get(String.class);\n assertFalse(\"Assert error failed\",\n response.contains(\"Url syntax error\"));\n assertFalse(\"Assert file-dtos error failed\",\n response.contains(\"file-dtos\"));\n\n assertTrue(\n \"Assert album-dtos failed\",\n response.contains(\"Album: Search with all parameters\"));\n }", "@Test\n\tpublic void testDate4() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36161);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 2);\n\t\t\t// month is 0 indexed, so Jan is 0\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public static String GetIsoDateTime(Date dateToFormat) {\n\t\t// GPX specs say that time given should be in UTC, no local time.\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n\t\treturn sdf.format(dateToFormat);\n\t}", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }", "public static String getISO8601StringForDate(Date date){\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", Locale.ENGLISH);\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"IST\"));\n return dateFormat.format(date);\n }", "private static void addDateIfValid(AnalysisResults.Builder analysisBuilder, String date) {\n String separator = date.contains(\"-\") ? \"-\" : \"/\";\n String formatterPattern = \"M\" + separator + \"d\" + separator;\n\n // Determine if the date has 2 or 4 digits for the year\n if (date.lastIndexOf(separator) + 3 == date.length()) {\n formatterPattern += \"yy\";\n } else {\n formatterPattern += \"yyyy\";\n }\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(formatterPattern);\n\n try {\n ZonedDateTime dateAndTime = LocalDate.parse(date, formatter).atStartOfDay(ZoneOffset.UTC);\n dateAndTime = fixYearIfInFuture(dateAndTime);\n\n long timestamp = dateAndTime.toInstant().toEpochMilli();\n analysisBuilder.setTransactionTimestamp(timestamp);\n } catch (DateTimeParseException e) {\n // Invalid month or day\n return;\n }\n }", "public void setDate(String date){\n this.date = date;\n }", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public String fileFormat() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"D | \" + (super.isDone ? \"1 | \" : \"0 | \") + this.description + \" | \" + df.format(this.date);\n }", "public static String formatDate(String dateValue) {\n Date uploadDateTime = null;\n try {\n uploadDateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).parse(dateValue);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.US).format(uploadDateTime);\n }", "@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }", "private Date parseDate(Map m) {\n Result res = Result.fromContent(m);\n Calendar cal = Calendar.getInstance(client.getServerTimeZone());\n cal.set(Calendar.YEAR, res.getAsInteger(\"year\"));\n cal.set(Calendar.MONTH, res.getAsInteger(\"month\"));\n cal.set(Calendar.DAY_OF_MONTH, res.getAsInteger(\"day\"));\n cal.set(Calendar.HOUR_OF_DAY, res.getAsInteger(\"hours\"));\n cal.set(Calendar.MINUTE, res.getAsInteger(\"minutes\"));\n cal.set(Calendar.SECOND, res.getAsInteger(\"seconds\"));\n return cal.getTime();\n }", "long getFetchedDate();", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "public String getDate(){\n return date;\n }", "public Date getGioBatDau();", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "public Date getFileDate()\r\n {\r\n return dFileDate;\r\n }", "@Nullable\n public Single<Media> getPictureOfTheDay() {\n String date = CommonsDateUtil.getIso8601DateFormatShort().format(new Date());\n Timber.d(\"Current date is %s\", date);\n String template = \"Template:Potd/\" + date;\n return getMedia(template, true);\n }", "public String getDate(){ return this.start_date;}", "@Test\n public void toStringOk(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.toString(),\"1 january 1970\");\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "private String formatTimeToICS(LocalDateTime date) {\n return DateTimeFormatter.ofPattern(\"YYYYMMddTHHmmss\").format(date);\n }", "public Date getCreatedDate();", "public void setDate(String date){\n this.date = date;\n }", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private String dateFormat(String date) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.ENGLISH);\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date serverDate = null;\n String formattedDate = null;\n try {\n serverDate = df.parse(date);\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"MMM dd yyyy, hh:mm\");\n\n outputFormat.setTimeZone(TimeZone.getDefault());\n\n formattedDate = outputFormat.format(serverDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return formattedDate;\n }", "public Date getAlta() { return alta; }", "public void getTanggalKelahiran() {\r\n Date tanggalKelahiran = new Date(getTahunLahir() - 1900, getBulanLahir() - 1, getTanggalLahir());\r\n SimpleDateFormat ft = new SimpleDateFormat(\"dd - MM - yyyy\");\r\n System.out.println(ft.format(tanggalKelahiran));\r\n }", "public Date getDateCreated();", "@Override\n\tpublic void initDate() {\n\n\t}", "public String getDate() {\n return date;\n }", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "public String getYear(){\n return rssData.getDate().split(\"/\")[2];\n }", "public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "public String getMyDatePosted() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.US);\n try {\n Date date = format.parse(myDatePosted);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n cal.add(Calendar.HOUR, -7);\n Date temp = cal.getTime();\n format.applyPattern(\"MMM dd, yyyy hh:mm a\");\n return format.format(temp);\n } catch (ParseException e) {\n return myDatePosted;\n }\n }", "public Date getPubDate();", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "String getCreated_at();", "@Ignore\n\t@Test\n\tpublic void testDate3() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(728783);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 4);\n\t\t\t// month is 0 indexed, so May is the 4th month\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 4);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1996);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private String formatTime(String dateObject){\n\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"h:mm a\");\n Date jam = null;\n try {\n jam = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(jam);\n }", "private static List<String> listDateFormats(){\r\n List<String> result = new ArrayList<String>();\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n result.add(\"yyyy-MM-ddZZ\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n result.add(\"EEE MMM d hh:mm:ss z yyyy\");\r\n result.add(\"EEE MMM dd HH:mm:ss yyyy\");\r\n result.add(\"EEEE, dd-MMM-yy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yy HH:mm:ss z\");\r\n result.add(\"EEE, dd MMM yy HH:mm z\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss z\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss Z\");\r\n result.add(\"dd MMM yy HH:mm:ss z\");\r\n result.add(\"dd MMM yy HH:mm z\");\r\n result.add(\"'T'HH:mm:ss\");\r\n result.add(\"'T'HH:mm:ssZZ\");\r\n result.add(\"HH:mm:ss\");\r\n result.add(\"HH:mm:ssZZ\");\r\n result.add(\"yyyy-MM-dd\");\r\n result.add(\"yyyy-MM-dd hh:mm:ss\");\r\n result.add(\"yyyy-MM-dd HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy\");\r\n result.add(\"dd.MM.yyyy hh:mm:ss\");\r\n result.add(\"dd.MM.yyyy HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssz\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy hh:mm\");\r\n result.add(\"dd.MM.yyyy HH:mm\");\r\n result.add(\"dd/MM/yyyy\");\r\n result.add(\"dd/MM/yy\");\r\n result.add(\"MM/dd/yyyy\");\r\n result.add(\"MM/dd/yy\");\r\n result.add(\"MM/dd/yyyy hh:mm:ss\");\r\n result.add(\"MM/dd/yy hh:mm:ss\");\r\n return result;\r\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "@AutoEscape\n\tpublic String getEntityAddDate();", "private String getDateString(Calendar cal) {\n Calendar current = Calendar.getInstance();\n String date = \"\";\n if (cal.get(Calendar.DAY_OF_YEAR) == current.get(Calendar.DAY_OF_YEAR)) {\n date = getResources().getString(R.string.content_today) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else if ((cal.get(Calendar.DAY_OF_YEAR) - 1) == current.get(Calendar.DAY_OF_YEAR)) {\n date = getResources().getString(R.string.content_yesterday) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else if ((cal.get(Calendar.DAY_OF_YEAR) - 2) == current.get(Calendar.DAY_OF_YEAR)\n && getResources().getConfiguration().locale.equals(new Locale(\"vn\"))) {\n date = getResources().getString(R.string.content_before_yesterday) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else {\n date = String.format(\"%02d-%02d-%02d %02d:%02d\", mCal.get(Calendar.DAY_OF_MONTH), mCal.get(Calendar.MONTH) + 1, mCal.get(Calendar.YEAR), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n }\n\n return date;\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "public String getRelativeTimeAgo(String rawJsonDate) {\n String twitterFormat = \"EEE MMM dd HH:mm:ss ZZZZZ yyyy\";\n SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);\n sf.setLenient(true);\n\n String relativeDate = \"\";\n try {\n long dateMillis = sf.parse(rawJsonDate).getTime();\n relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis,\n System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS, DateUtils.FORMAT_ABBREV_RELATIVE).toString();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return relativeDate;\n }", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setRealPhotoDate(Date realPhotoDate) {\n this.realPhotoDate = realPhotoDate;\n }", "public static void main(String[] args) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssX\"); // Quoted \"Z\" to indicate UTC, no timezone offset\n// df.setTimeZone(tz);\n// String nowAsISO = df.format(\"2017-04-21T21:25:35+05:00\");\n try {\n Date date = df.parse(\"2017-04-21T21:25:35+05:00\");\n System.out.println(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "Date getDate();" ]
[ "0.5762911", "0.5400802", "0.53869414", "0.53734016", "0.5373001", "0.5371764", "0.531727", "0.52961767", "0.52873975", "0.5277373", "0.5260267", "0.5241821", "0.5241821", "0.521713", "0.52130055", "0.5198215", "0.5188364", "0.51830167", "0.51738787", "0.5135053", "0.5097081", "0.5052015", "0.5037929", "0.50218314", "0.50105435", "0.5006032", "0.4996742", "0.49856615", "0.4982513", "0.4967226", "0.4964337", "0.4960855", "0.49558097", "0.49476564", "0.49453497", "0.49343586", "0.49335742", "0.49319983", "0.49311745", "0.49305695", "0.4929412", "0.49284628", "0.4927046", "0.49264422", "0.49222416", "0.492063", "0.49185383", "0.4914145", "0.4913504", "0.49133804", "0.49058917", "0.4905506", "0.49026", "0.4899016", "0.48980567", "0.48936507", "0.48914945", "0.48855796", "0.4883659", "0.4881671", "0.48806238", "0.48726732", "0.48690996", "0.4865325", "0.48651415", "0.4862967", "0.4858471", "0.4858218", "0.48573893", "0.48563397", "0.48561117", "0.48524496", "0.4848025", "0.4844897", "0.48432353", "0.48304245", "0.4826567", "0.48170075", "0.48165032", "0.4813782", "0.48116854", "0.4805737", "0.48022538", "0.4799016", "0.47983703", "0.47958827", "0.47923613", "0.4791864", "0.47911814", "0.47905344", "0.47820738", "0.47735628", "0.47719353", "0.47687566", "0.47618967", "0.47541866", "0.47541144", "0.47540405", "0.47530392", "0.47464296", "0.47434905" ]
0.0
-1
Returns true if field release_date is set (has been assigned a value) and false otherwise
public boolean isSetRelease_date() { return this.release_date != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetRelease_date() {\n return this.release_date != null;\n }", "@JsonIgnore\r\n public boolean hasSetReleaseDate() {\r\n return hasSetReleaseDate;\r\n }", "boolean hasAcquireDate();", "public boolean isSetPublish_date() {\n return this.publish_date != null;\n }", "public void setReleaseDate(Date date) {\r\n this.releaseDate = date;\r\n // set the fact we have called this method to set the date value\r\n this.hasSetReleaseDate=true;\r\n }", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "boolean isSetDate();", "public void setReleaseDate(Date releaseDate){\n this.releaseDate = releaseDate;\n }", "public boolean isSetDate() {\n return EncodingUtils.testBit(__isset_bitfield, __DATE_ISSET_ID);\n }", "boolean isSetFoundingDate();", "public void setReleaseDate(Date releaseDate) {\n this.releaseDate = releaseDate;\n }", "public boolean hasDate() {\n return fieldSetFlags()[5];\n }", "public boolean isSetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RELEASE$4) != 0;\r\n }\r\n }", "public void setReleaseDate(String releaseDate) {\r\n this.releaseDate = releaseDate;\r\n }", "public void setReleaseDate(Date releaseDate) {\n\t\tthis.releaseDate = releaseDate;\n\t}", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public void setReleaseDate(String releaseDate) {\n this.releaseDate = releaseDate;\n }", "public boolean isSetRepayDate() {\n return this.repayDate != null;\n }", "public boolean isSetReportDate() {\n return this.reportDate != null;\n }", "public Album setRelease_date(Set<String> release_date) {\r\n this.release_date = release_date;\r\n return this;\r\n }", "public boolean hasBegDate() {\n return fieldSetFlags()[1];\n }", "public boolean hasDate() {\n return true;\n }", "public Date getReleaseDate() {\n return releaseDate;\n }", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "public Set<String> getRelease_date() {\r\n return this.release_date;\r\n }", "public boolean isSetTransactionPostedDate() {\r\n return transactionPostedDate != null;\r\n }", "public Date getReleaseDate() {\n\t\treturn releaseDate;\n\t}", "public boolean isSetRequestDate() {\n return this.RequestDate != null;\n }", "boolean hasDate();", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetDateSec() {\n return EncodingUtils.testBit(__isset_bitfield, __DATESEC_ISSET_ID);\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public Date getReleaseDate(){\n return releaseDate;\n }", "public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }", "public boolean isUpdateDateInitialized() {\n return updateDate_is_initialized; \n }", "public String getReleaseDate() {\r\n return releaseDate;\r\n }", "public boolean isSetExam_date() {\n return this.exam_date != null;\n }", "public boolean hasCreateDate() {\n return fieldSetFlags()[2];\n }", "public boolean isSetVersion() {\n return this.version != null;\n }", "public boolean isSetVersion() {\n return this.version != null;\n }", "@JsonProperty(\"releaseDate\")\r\n public void setReleaseDate(Date releaseDate) {\r\n this.releaseDate = releaseDate;\r\n }", "boolean hasSettlementDate();", "public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "public boolean hasEndDate() {\n return fieldSetFlags()[2];\n }", "public boolean isCreateDateInitialized() {\n return createDate_is_initialized; \n }", "public boolean isSetInsertDate() {\n return this.insertDate != null;\n }", "public final boolean hasChangeDateTime() {\n \treturn m_changeDate != 0L ? true : false;\n }", "boolean hasStartDate();", "public boolean isSetCreatetime() {\n return this.createtime != null;\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "public boolean isSetCompelteDttm() {\n return this.compelteDttm != null;\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "@JsonProperty(\"releaseDate\")\r\n public Date getReleaseDate() {\r\n return releaseDate;\r\n }", "public void setReleaseTime(Date releaseTime) {\r\n this.releaseTime = releaseTime;\r\n }", "public boolean isSetCarpublishtime() {\n return this.carpublishtime != null;\n }", "boolean hasExpirationDate();", "public boolean isSetPlanRepayLoanDt() {\n return this.planRepayLoanDt != null;\n }", "boolean hasEndDate();", "public boolean isSetUpdatedAt() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UPDATEDAT_ISSET_ID);\n }", "public boolean isDateValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_DATE);\n }", "public boolean isReadyForRelease() {\r\n return true;\r\n }", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public final boolean hasAccessDateTime() {\n \treturn m_accessDate != 0L ? true : false;\n }", "boolean hasTradeDate();", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean isSetUpdate_time() {\n return this.update_time != null;\n }", "boolean hasOrderDate();", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "boolean hasExpireDate();", "private boolean hasSetToAndFromDates() {\r\n return (this.fromDateString != null) && (this.toDateString != null);\r\n }", "public String getDateOfRelease() {\n return dateOfRelease;\n }", "public boolean isSetExpTime() {\n return this.ExpTime != null;\n }", "boolean isSetAppliesDateTime();", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }", "public boolean isSetReservation_id() {\n return this.reservation_id != null;\n }", "public boolean validarFechaNac() {\n\t\treturn fecha_nac != null;\n\t}", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATE_SEC:\n return isSetDateSec();\n case TRADE_ACCOUNT_ID:\n return isSetTradeAccountId();\n case SLED_CONTRACT_ID:\n return isSetSledContractId();\n case START_DATE_TIMESTAMP_MS:\n return isSetStartDateTimestampMs();\n case END_DATE_TIMESTAMP_MS:\n return isSetEndDateTimestampMs();\n }\n throw new IllegalStateException();\n }", "boolean hasDeliveryDateBefore();", "public boolean isStatusdateInitialized() {\n return statusdate_is_initialized; \n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BLOG_POST_VO:\n return isSetBlogPostVO();\n }\n throw new IllegalStateException();\n }", "public boolean hasBeenAcquired(){\r\n\t\treturn !(acquiredBy == null);\r\n\t}", "public DateAvailableVO checkDateAvailable(String date) {\n\t\treturn null;\n\t}", "public boolean isSetVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(VERSION$4) != 0;\n }\n }", "@java.lang.Override\n public boolean hasCreationDate() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public boolean isSetActivedEndTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTIVEDENDTIMESTAMP_ISSET_ID);\n }", "boolean hasDeliveryDateAfter();", "protected boolean validateDateIsPopulated(final String date, final Errors errors, final String field)\n\t{\n\t\tif (StringUtils.isNotEmpty(date))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\trejectValue(errors, field, ERROR_TYPE_NOT_POPULATED);\n\n\t\treturn false;\n\t}", "@java.lang.Override\n public boolean hasCreationDate() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean isSetUpdateTime() {\n\t\treturn this.updateTime != null;\n\t}", "public boolean hasOrderDate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Override\n public boolean isValid() {\n return dateFrom != null && dateTo != null;\n }" ]
[ "0.89791584", "0.77577674", "0.7076767", "0.706642", "0.69555426", "0.6885262", "0.6885262", "0.68211776", "0.6820459", "0.6751786", "0.6747703", "0.67085874", "0.6695253", "0.66568774", "0.6611655", "0.66030854", "0.65663123", "0.65663123", "0.656286", "0.65003914", "0.6479117", "0.64648086", "0.6458004", "0.6431589", "0.6406557", "0.63676596", "0.63460064", "0.6345464", "0.6334395", "0.6293347", "0.6291201", "0.6277356", "0.6272693", "0.6267252", "0.6231318", "0.62287635", "0.6218806", "0.6216695", "0.6200854", "0.6198076", "0.61531526", "0.61531526", "0.61407566", "0.6122883", "0.60942644", "0.60884964", "0.6082113", "0.6080769", "0.60617924", "0.6051328", "0.6007451", "0.60052466", "0.6000304", "0.5994048", "0.59847337", "0.5965626", "0.5965489", "0.5960197", "0.59479374", "0.5933644", "0.5931394", "0.59278685", "0.5922448", "0.5911178", "0.5907588", "0.58899134", "0.5872401", "0.5860242", "0.5848291", "0.58428997", "0.5839872", "0.5817934", "0.57792264", "0.5765703", "0.5764476", "0.5750204", "0.5729644", "0.57167554", "0.56880164", "0.5685561", "0.5672204", "0.56698203", "0.5654404", "0.5654404", "0.56517756", "0.5648884", "0.5647641", "0.56445485", "0.5643975", "0.5636147", "0.5635411", "0.5633081", "0.56294036", "0.5627215", "0.56202716", "0.5614438", "0.5612762", "0.55901563", "0.55891883", "0.5587795" ]
0.89724135
1
Les genre musicaux de cet album
public Set<String> getGenres() { return this.genres; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }", "public void setGenre(String genre) {\n this.genre = genre;\n }", "public String genre14(){\n String genre14MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n if(results[i].genre()) {\n genre14MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(genre14MovieTitle);\n return genre14MovieTitle;\n }", "public String getGenre() {\n return genre;\n }", "public String getGenre() {\n return genre;\n }", "public void setGenre() {\r\n this.genre = genre;\r\n }", "public void setGenre(int genre) {\n this.genre = genre;\n }", "public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }", "public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }", "public void setGenre(Genre genre) {\n this.genre = genre;\n }", "public void setGenre(Genre genre) {\n this.genre = genre;\n }", "private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }", "public int getGenre() {\n return genre;\n }", "public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }", "boolean hasPictureGenre();", "public Genre getGenre() {\n return genre;\n }", "public Genre getGenre() {\n return genre;\n }", "public String getGenre()\r\n {\r\n String answer=genre;\r\n return answer;\r\n }", "private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }", "@Override\n\tpublic String addGenre(Genre songName, Genre songArtist, Genre songBpm, Genre songGenre) {\n\t\treturn null;\n\t}", "public void setGenre(String genre){\n\t\t//FIXME\n\t\tthis.genre = genre;\n\t}", "public Genre getGenre() {\n\n return genre;\n }", "public String getGenre()\n {\n return bookGenre;\n }", "Builder addGenre(Text value);", "private static ArrayList<String> getGenre(String songID) throws SQLException {\n ArrayList<String> genres = new ArrayList<>();\n genreStatement = conn.createStatement();\n genreResultSet = genreStatement.executeQuery(\"SELECT * FROM genre, trackGenre WHERE trackGenre.track_id = '\" + songID + \"' AND trackGenre.genre = genre.name;\");\n while (genreResultSet.next()){\n genres.add(genreResultSet.getString(\"name\"));\n }\n return genres;\n }", "public String getBasedOnGenre(String genre) {\n String cap = genre.substring(0, 1).toUpperCase() + genre.substring(1);\n StringBuilder json = new StringBuilder();\n for (Node node: books) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Book)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: music) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Music)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: movies) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Movie)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n return json.toString();\n }", "public void testGetGenre()\r\n {\r\n assertTrue(genre.equals(song.getGenre()));\r\n }", "public List<Film> findAllByGenre(String genre);", "private void populateGenres(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT DISTINCT genre FROM artist ORDER BY genre\");\n\n while(results.next()){\n String genre = results.getString(1);\n genreList.add(genre);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre();", "@Override\n\tpublic List<Genre> displayAllGenres() throws MovieException {\n\t\treturn obj.displayAllGenres();\n\t}", "Builder addGenre(String value);", "void loadAlbums();", "@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }", "public List<Books> findBooksByGenre(String genre) {\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n List<Genre> list = new ArrayList();\r\n Genre g = new Genre();\r\n g.setType(genre);\r\n list.add(g);\r\n session.setAttribute(\"lastGenre\",list);\r\n return bookController.findBooksByGenre(genre);\r\n }", "public void onGenreClick(View v) {\n // FIXME: 9ボタンのジャンル一覧ボタン押下時\n AppMeasurementWrapper.getInstance().initialize(getApplication());\n AppMeasurementWrapper.getInstance().storeTransitionSrcPoint(AppEffectClickPointEnum.HOME_GENRE_1);\n this.startGenreListActivity();\n }", "@Test\r\n public void testGetGenreList() throws MovieDbException {\r\n LOG.info(\"getGenreList\");\r\n List<Genre> results = tmdb.getGenreList(LANGUAGE_DEFAULT);\r\n assertTrue(\"No genres found\", !results.isEmpty());\r\n }", "public ArrayList<MovieGenreModel> getAllGenres() {\n\t\treturn null;\n\t}", "public void addGenre(String genre) throws SQLException {\n myGenreManager.addGenre(genre);\n allGenres.add(genre);\n }", "public BookType getGenre() {\r\n return genre;\r\n }", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "public String[] getMusicas() {\n\t\treturn musicas;\n\t}", "public String genresListText(Song [] songList){\n\t\t\n\t\tString text = \"\";\n\t\t\n\t\tfor(int i=0; i<songList.length; i++){\n\t\t\n\t\t\tif(songList[i]!=null){\n\t\t\t\tif( (i>0)&&(songList[i-1].getSongGenre().equals(songList[i].getSongGenre()))){ \n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\ttext+= songList[i].getSongGenre() + \",\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn text;\n\t}", "public String getGenreString() {\r\n return genre.getTheBookType();\r\n }", "Builder addGenre(URL value);", "public static String findGender (String songName)\n {\n String songGender=\"\";\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(songName))\n { \n songGender=song.getGender();\n return (songGender);\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n return (\"Gender\");\n }", "private void loadToChoice() {\n\t\tfor(Genre genre : genreList) {\n\t\t\tuploadPanel.getGenreChoice().add(genre.getName());\n\t\t}\n\t}", "private static HashMap<Integer, String> getMovieGenres() {\n String url = \"http://api.themoviedb.org/3/genre/movie/list?api_key=\" + BuildConfig.APPLICATION_ID;\r\n\r\n JSONArray genres = null;\r\n Integer id;\r\n String genre;\r\n\r\n HashMap<Integer, String> movieGenresMap = new HashMap<Integer, String>();\r\n\r\n try {\r\n genres = new JSONArray(\r\n \"[{\\\"id\\\":28,\\\"name\\\":\\\"Action\\\"},{\\\"id\\\":12,\\\"name\\\":\\\"Adventure\\\"},{\\\"id\\\":16,\\\"name\\\":\\\"Animation\\\"},{\\\"id\\\":35,\\\"name\\\":\\\"Comedy\\\"},{\\\"id\\\":80,\\\"name\\\":\\\"Crime\\\"},{\\\"id\\\":99,\\\"name\\\":\\\"Documentary\\\"},{\\\"id\\\":18,\\\"name\\\":\\\"Drama\\\"},{\\\"id\\\":10751,\\\"name\\\":\\\"Family\\\"},{\\\"id\\\":14,\\\"name\\\":\\\"Fantasy\\\"},{\\\"id\\\":10769,\\\"name\\\":\\\"Foreign\\\"},{\\\"id\\\":36,\\\"name\\\":\\\"History\\\"},{\\\"id\\\":27,\\\"name\\\":\\\"Horror\\\"},{\\\"id\\\":10402,\\\"name\\\":\\\"Music\\\"},{\\\"id\\\":9648,\\\"name\\\":\\\"Mystery\\\"},{\\\"id\\\":10749,\\\"name\\\":\\\"Romance\\\"},{\\\"id\\\":878,\\\"name\\\":\\\"Science Fiction\\\"},{\\\"id\\\":10770,\\\"name\\\":\\\"TV Movie\\\"},{\\\"id\\\":53,\\\"name\\\":\\\"Thriller\\\"},{\\\"id\\\":10752,\\\"name\\\":\\\"War\\\"},{\\\"id\\\":37,\\\"name\\\":\\\"Western\\\"}]\");\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (genres != null && genres.length() > 0) {\r\n try {\r\n for (int i = 0; i < genres.length(); i++) {\r\n JSONObject genrePair = genres.getJSONObject(i);\r\n id = genrePair.getInt(\"id\");\r\n genre = genrePair.getString(\"name\");\r\n movieGenresMap.put(id, genre);\r\n\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n return movieGenresMap;\r\n\r\n }", "private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: \");\n\t\tString genre = string_input.next();\n\t\tint genre_index = getGenreIndex(genre); //returns the index of the genre entered, in ALL_GENRES\n\t\t\n\t\tif(genre_index > -1){//valid genre was entered\n\t\t\tIterator<String> iter = ALL_GENRES.get(genre_index).iterator();\n\t\t\tSystem.out.println(\"All \" + genre + \" books are: \");\n\t\t\tprintAllElements(iter);\n\t\t}\n\t}", "public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void setGenre(TheatreGenre genre) {\n\t\tthis.genre = genre;\n\t}", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "public void randomGenre(View view) {\r\n String[] randomGenre = {\"Rock\", \"Funk\", \"Hip hop\", \"Country\", \"Pop\", \"Blues\", \"K-pop\", \"Punk\", \"House\", \"Soul\"};\r\n int index = (int) (Math.random() * 10);\r\n displayMessage(\"Your random genre is: \" + randomGenre[index]);\r\n }", "public static void setUpGenres(Context context){\n SharedPreferences mSetting = context.getSharedPreferences(StaticVars.GENRE_SHARED_PREFERENCES,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSetting.edit();\n //putting genre name and its id on shikimori\n\n\n editor.putInt(\"Drama\",8);\n editor.putInt(\"Драма\",8);\n editor.putInt(\"Game\",11);\n editor.putInt(\"Игры\",11);\n editor.putInt(\"Psychological\",40);\n editor.putInt(\"Психологическое\",40);\n editor.putInt(\"Adventure\",2);\n editor.putInt(\"Приключения\",2);\n editor.putInt(\"Music\",19);\n editor.putInt(\"Музыка\",19);\n editor.putInt(\"Action\",1);\n editor.putInt(\"Экшен\",1);\n editor.putInt(\"Comedy\",4);\n editor.putInt(\"Комедия\",4);\n editor.putInt(\"Demons\",6);\n editor.putInt(\"Демоны\",6);\n editor.putInt(\"Police\",39);\n editor.putInt(\"Полиция\",39);\n editor.putInt(\"Space\",29);\n editor.putInt(\"Космос\",29);\n editor.putInt(\"Ecchi\",9);\n editor.putInt(\"Этти\",9);\n editor.putInt(\"Fantasy\",10);\n editor.putInt(\"Фэнтези\",10);\n editor.putInt(\"Historical\",13);\n editor.putInt(\"Исторический\",13);\n editor.putInt(\"Horror\",14);\n editor.putInt(\"Ужасы\",14);\n editor.putInt(\"Magic\",16);\n editor.putInt(\"Магия\",16);\n editor.putInt(\"Mecha\",18);\n editor.putInt(\"Меха\",18);\n editor.putInt(\"Parody\",20);\n editor.putInt(\"Пародия\",20);\n editor.putInt(\"Samurai\",21);\n editor.putInt(\"Самураи\",21);\n editor.putInt(\"Romance\",22);\n editor.putInt(\"Романтика\",22);\n editor.putInt(\"School\",23);\n editor.putInt(\"Школа\",23);\n editor.putInt(\"Shoujo\",25);\n editor.putInt(\"Сёдзе\",25);\n editor.putInt(\"Shounen\",27);\n editor.putInt(\"Сёнен\",27);\n editor.putInt(\"Shounen Ai\",28);\n editor.putInt(\"Сёнен Ай\",28);\n editor.putInt(\"Sports\",30);\n editor.putInt(\"Спорт\",30);\n editor.putInt(\"Vampire\",32);\n editor.putInt(\"Вампиры\",32);\n editor.putInt(\"Harem\",35);\n editor.putInt(\"Гарем\",35);\n editor.putInt(\"Slice of Life\",36);\n editor.putInt(\"Повседневность\",36);\n editor.putInt(\"Seinen\",42);\n editor.putInt(\"Сейнен\",42);\n editor.putInt(\"Josei\",43);\n editor.putInt(\"Дзёсей\",43);\n editor.putInt(\"Supernatural\",37);\n editor.putInt(\"Сверхъестественное\",37);\n editor.putInt(\"Thriller\",41);\n editor.putInt(\"Триллер\",41);\n editor.putInt(\"Shoujo Ai\",26);\n editor.putInt(\"Сёдзе Ай\",26);\n editor.putInt(\"Sci-Fi\",24);\n editor.putInt(\"Фантастика\",24);\n editor.putInt(\"Super Power\",31);\n editor.putInt(\"Супер сила\",31);\n editor.putInt(\"Military\",38);\n editor.putInt(\"Военное\",38);\n editor.putInt(\"Mystery\",7);\n editor.putInt(\"Детектив\",7);\n editor.putInt(\"Kids\",15);\n editor.putInt(\"Детское\",15);\n editor.putInt(\"Cars\",3);\n editor.putInt(\"Машины\",3);\n editor.putInt(\"Martial Arts\",17);\n editor.putInt(\"Боевые искусства\",17);\n editor.putInt(\"Dementia\",5);\n editor.putInt(\"Безумие\",5);\n\n editor.apply();\n\n\n\n }", "public void addGenre(String newGenre) {\n this.genre.add(newGenre);\n }", "private static void addToGenreTable(BookDetails book, String bookTitle) {\n\t\t//ALL_GENRES representation --> Biology|Mathematics|Chemistry|Physics|Science_Fiction|Fantasy|Action|Drama|Romance|Horror|History|Autobiography|Biography \n\t\tswitch(book.getGenre()){\n\t\t\tcase Biology:\n\t\t\t\tALL_GENRES.get(0).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Mathematics:\n\t\t\t\tALL_GENRES.get(1).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Chemistry:\n\t\t\t\tALL_GENRES.get(2).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Physics:\n\t\t\t\tALL_GENRES.get(3).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Science_Fiction:\n\t\t\t\tALL_GENRES.get(4).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Fantasy:\n\t\t\t\tALL_GENRES.get(5).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Action:\n\t\t\t\tALL_GENRES.get(6).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Drama:\n\t\t\t\tALL_GENRES.get(7).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Romance:\n\t\t\t\tALL_GENRES.get(8).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Horror:\n\t\t\t\tALL_GENRES.get(9).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase History:\n\t\t\t\tALL_GENRES.get(10).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Autobiography:\n\t\t\t\tALL_GENRES.get(11).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Biography:\n\t\t\t\tALL_GENRES.get(12).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"ERROR: Invalid Genre Input\");\n\t\t\t\tbreak;\n\t\t}\n\t}", "void displayAlbums(FilterableAlbum[] albums);", "public int compareGenre(Song other) {\n return this.genre.compareTo(other.getGenre());\n }", "public Artist(String name, Genre mainGenre) {\n this.name = name;\n this.cataloue = new ArrayList<Record>();\n this.mainGenre = mainGenre;\n }", "public String toString() {\n\t\tString strMusica = \"\";\n\t\tfor (int i = 0; i < musicas.length; i++) {\n\t\t\tstrMusica += musicas[i] + \" \";\n\t\t}\n\n\t\treturn \"Autor: \" + autor + \", Nome: \" + nome + \", Preferida: \"\n\t\t\t\t+ preferida + \", Musicas: \" + strMusica;\n\t}", "void displayFilteredAlbums();", "public void setGenre(String genreStr) {\n String genresRemovedCommas = genreStr.replaceAll(COMMA, EMPTY);\r\n String[] genresArray = genresRemovedCommas.split(SPACE);\r\n Collections.addAll(genres, genresArray);\r\n }", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "public void testGenreSort() {\n sorter.inssortGenre();\n list = sorter.getLibrary();\n assertEquals(list.get(0).getGenre(), \"Hip-Hop\");\n assertEquals(list.get(1).getGenre(), \"R&B\");\n assertEquals(list.get(2).getGenre(), \"Rock\");\n }", "public ArrayList<String> Info_Disco_Mus_Rep1(String genero) {\r\n String line;\r\n ArrayList<String> Lista_datos_nombre_genero = new ArrayList();\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/cat_musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco = line.split(\";\");\r\n if (info_disco[2].equals(genero)) {\r\n Lista_datos_nombre_genero.add(info_disco[0]);\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_nombre_genero;\r\n }", "public TheatreGenre getGenre() {\n\t\treturn genre;\n\t}", "@Override\n\tpublic void finMusica() {\n\t}", "private double getGenreScore(Movie movie) {\n double genreScore = 0;\n\n for (String genre : this.generes) {\n if (movie.getGenre().contains(genre)) {\n genreScore = genreScore + 1;\n }\n }\n return genreScore;\n }", "public String getAlbum()\n {\n return album;\n }", "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "private List<MusicVideo> getMusicVideosThatMatchArtisteOrGenre(int artisteId, int genreId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id = :artisteId OR mv.genre.id = :genreId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n query.setParameter(\"genreId\", genreId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "@Test\r\n public void testGetGenreMovies() throws MovieDbException {\r\n LOG.info(\"getGenreMovies\");\r\n List<MovieDb> results = tmdb.getGenreMovies(ID_GENRE_ACTION, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No genre movies found\", !results.isEmpty());\r\n }", "public void addGenre() {\n ResultSet result = null;\n try {\n result = server.executeStatement(\"SELECT genreID FROM productiongenre WHERE prodID = \" + \"'\" + getId() + \"'\" + \";\");\n if(result.next())\n genre = result.getString(\"genreID\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public List<Album> getAlbums(Artist artist);", "public static List<String> getFilms(String acteur) {\n\t\tString movie = \"\";\n\t\tList<String> movies_list = new ArrayList<String>();\n\t\tString string_query = \"SELECT $title WHERE {\\n $film rdf:type dbo:Film;\\n\" + \n \" foaf:name $title;\\n dbo:starring $acteur.\\n\" + \n \"$acteur foaf:name \\\"ACTOR_NAME\\\"@en\\n}\".replaceAll(\"ACTOR_NAME\",acteur);\n\t\t\n\n ParameterizedSparqlString qs = new ParameterizedSparqlString(PREFIX +string_query);\n QueryExecution exec = QueryExecutionFactory.sparqlService(SERVICE, qs.asQuery());\n ResultSet results = exec.execSelect();\n \n while (results.hasNext()) {\n \tQuerySolution solution = results.nextSolution();\n \tmovie = solution.getLiteral(\"?title\").toString().replace(\"@en\", \"\");\n \tmovies_list.add(movie);\n }\n\t\t\n\t\treturn movies_list;\n\t}", "public ArrayList<String> obtenerNombresMedicos() {\n ArrayList<String> nombres = new ArrayList<String>();\n for (int i = 0; i < medicos.length; i++) {\n if (medicos[i] != null) {\n nombres.add(medicos[i].getNombre());\n }\n }\n return nombres;\n }", "private static void idVorhanden() {\n\t\tLinkedHashSet<String> genre = new LinkedHashSet<String>();\t\t\t// benötigt, um duplikate von genres zu entfernen\n\t\tLinkedHashSet<String> darsteller = new LinkedHashSet<String>();\t\t// benötigt, um duplikate von darstellern zu entfernen\n\t\tString kinofilm = \"\";\t\t\t\t\t\t\t\t\t\t\t\t// benötigt für die Ausgabe des Filmtitels und Jahr\n\t\t\n\t\tsetSql(\"SELECT g.GENRE, m.TITLE, m.YEAR, mc.CHARACTER, p.NAME from Movie m JOIN MOVgen MG ON MG.MOVIEID = M.MOVIEID right JOIN GENRE G ON MG.GENREID = G.GENREID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tright JOIN MOVIECHARACTER MC ON M.MOVIEID = MC.MOVIEID JOIN PERSON P ON MC.PERSONID = P.PERSONID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tWHERE M.MOVIEID = \" + movieID);\t// SQL Abfrage, um Genre, Title, Year, Character und Name eines Films zu bekommen\n\t\t\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und Ergebnis im ResultSet speichern\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif(!rs.next()) {\t\t\t\t\t\t\t// prüfe, ob das ResultSet leer ist\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"MovieID ungültig. Bitte eine der folgenden MovieID's angeben: \"); // Meldung ausgeben, dass ID ungültig ist\n\t\t\t\tidProblem();\t\t\t\t\t\t\t// wenn movieID nicht vorhanden, führe idProblem() aus, um mögliche Filme anzuzeigen\n\t\t\t} else {\n\t\t\t\trs.isBeforeFirst();\t\t\t\t\t\t// Durch die if-Abfrage springt der Cursor des ResultSets einen weiter und muss zurück auf die erste Stelle\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\t// Zeilenweises durchgehen des ResultSets \"rs\"\n\t\t\t\t\t/*\n\t\t\t\t\t * Aufbau des ResultSets \"rs\":\n\t\t\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t\t\t * GENRE | TITLE | YEAR | CHARACTER | NAME\n\t\t\t\t\t * (1) (2) (3) (4) (5)\n\t\t\t\t\t */\n\t\t\t\t\tgenre.add(rs.getString(1));\t\t\t\t\t\t\t\t\t\t\t// speichern und entfernen der Duplikate der Genres in \"genre\"\n\t\t\t\t\tkinofilm = (rs.getString(2) + \" (\" + rs.getString(3) + \")\");\t\t// Speichern des Filmtitels und des Jahrs in \"kinolfilm\"\n\t\t\t\t\tdarsteller.add(rs.getString(4) + \": \" + rs.getString(5));\t\t\t// speichern und entfernen der Duplikate der Darsteller in \"darsteller\"\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Zur besseres Ausgabe, werden die LinkedHashSets in ArrayLists übertragen\n\t\t\t\t * Grund: Es ist nicht möglich auf einzelne, bestimmte Elemente des HashSets zuzugreifen.\n\t\t\t\t * Bedeutet: HashSet.get(2) existiert nicht, ArrayList.get(2) existiert.\n\t\t\t\t */\n\t\t\t\tArrayList<String> genreArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : genre) {\n\t\t\t\t\t\tgenreArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\tArrayList<String> darstellerArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : darsteller) {\n\t\t\t\t\t\tdarstellerArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Ausgabe der Kinofilm Daten nach vorgegebenen Format:\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\t * Genre: ... | ... | ..\n\t\t\t\t\t\t\t * Darsteller:\n\t\t\t\t\t\t\t * Character: Name\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Kinofilme: \" + kinofilm);\t\t// Ausgabe: Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\tSystem.out.print(\"Genre: \" + genreArrayList.get(0)); // Ausgabe des ersten Genres, vermeidung des Zaunpfahlproblems\n\n\t\t\t\t\t\t\tfor (int i = 1; i < genreArrayList.size(); i++) {\t\t// Ausgabe weiterer Genres, solange es weitere Einträge in\t\n\t\t\t\t\t\t\t\tSystem.out.print(\" | \" + genreArrayList.get(i)); \t// der ArrayList \"genreArrayList\" gibt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Darsteller:\");\t\t\t\t\t// Ausgabe: Darsteller:\n\t\t\t\t\t\t\tfor (int i = 0; i < darstellerArrayList.size(); i++) {\t// Ausgabe der Darsteller, solange es\n\t\t\t\t\t\t\t\tSystem.out.println(\" \" + darstellerArrayList.get(i));\t// Darsteller in der \"darstellerArrayList\" gibt\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t}\n\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\tSystem.out.println(e); // Ausgabe Fehlermeldung\n\t\t}\n\t}", "private void InicializarListaAlbums() {\n\n GestorAlbums gestorAlbums = new GestorAlbums(this.getActivity());\n albums = gestorAlbums.AsignarAlbum();\n }", "public static String[] getAlbumFields()\r\n {\n return new String[]{\r\n \t\t\"title\",\r\n\t\t \"description\",\r\n\t\t \"artist\",\r\n\t\t \"genre\",\r\n\t\t \"theme\",\r\n\t\t \"mood\",\r\n\t\t \"style\",\r\n\t\t \"type\",\r\n\t\t \"albumlabel\",\r\n\t\t \"rating\",\r\n\t\t \"year\",\r\n\t\t \"musicbrainzalbumid\",\r\n\t\t \"musicbrainzalbumartistid\",\r\n\t\t \"fanart\",\r\n\t\t \"thumbnail\",\r\n\t\t \"artistid\"\r\n };\r\n }", "@Nullable\n GenresPage getGenres();", "public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "private String addMusic() {\n\t\t// One Parameter: MusicName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|music:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "public static List<Genre> get() throws IOException {\n return get(null);\n }", "public static void main(String[] args) {\n\t\tMusic m=new Music();\r\n\t\tm.rank=1;\r\n\t\tm.icon='-';\r\n\t\tm.idcrement=0;\r\n\t\tm.artist=\"숀(SHAUN)\";\r\n\t\tm.title=\"습관 (Bad Habits)\";\r\n\r\n\t\t\r\n\t\t\r\n\t\tMusic2 m1=new Music2();\r\n\t\tm1.rank=1;\r\n\t\tm1.icon='-';\r\n\t\tm1.idcrement='0';\r\n\t\tm1.title=\"이 노래가 클럽에서 나온다면\";\r\n\t\tm1.artist=\"우디 (Woody)\";\r\n\t\tm1.album=\"이 노래가 클럽에서 나온다면\";\r\n\t\tm1.poster=\"http://cmsimg.mnet.com/clipimage/album/1024/003/230/3230259.jpg\";\r\n\t\t\r\n\t\tSystem.out.println(\"순위:\"+m.rank);\r\n\t\tSystem.out.println(\"제목:\"+m.title);\r\n\t\tSystem.out.println(\"가수:\"+m.artist);\r\n\t\t\r\n\t\tSystem.out.println(\"앨범:\"+m.album.equals(\" \".trim()));\r\n\t\tSystem.out.println(\"앨범:\"+m.album.equals(\" \"));\r\n\t\t/*\r\n\t\t * \r\n\t\t * int a; System.out.ptinln(a);\r\n\t\t * '' != ' '\r\n\t\t * \"\" != \" \"\r\n\t\t * \"\" != null\r\n\t\t * \r\n\t\t * \"\" => 자체가 String\r\n\t\t * \r\n\t\t */\r\n\t\tm=null; // 메모리 해제\r\n\t\t\r\n\t\tSystem.out.println(\"앨범:\"+m.poster.equals(\"\"));\r\n\t\tSystem.out.println(\"앨범:\"+m.album.charAt(0));\r\n\t\t//주소는 존재하고 값이 없는 상태\r\n\t\tSystem.out.println(m.poster.charAt(0));\r\n\t\t//주소값이 없는 상태\r\n\t\tSystem.out.println(\"==================================\");\r\n\t\tSystem.out.println(\"순위:\"+m1.rank);\r\n\t\tSystem.out.println(\"제목:\"+m1.title);\r\n\t\tSystem.out.println(\"가수:\"+m1.artist);\r\n\t\tSystem.out.println(\"앨범:\"+m1.album);\r\n\r\n\t}", "public void modifyGenres(ArrayList<String> genreList)// --> Bytter ut Genre-arrayen med en ny array over de nye sjangerene for lokalet.\n\t{\n\t\tgenres = genreList;\n\t}", "public Music[] getMusics(Tag tag) {\n SQLiteDatabase db = musicDatabase.getReadableDatabase();\n\n Cursor cur = db.rawQuery(\"SELECT musicId FROM musicTagRelation WHERE tagId=? ORDER BY created_at DESC\", new String[] { String.valueOf(tag.id) });\n int count = cur.getCount();\n int[] musicIds = new int[count];\n for (int i=0; i<count; i++) {\n cur.moveToNext();\n musicIds[i] = cur.getInt(0);\n }\n\n return musicDatabase.musicTable.get(musicIds);\n }", "@Test\n public void testToevoegen_Album() {\n System.out.println(\"toevoegen album\");\n Album album = new Album(\"Album\", 2020, nummers);\n instance.toevoegen(album);\n ArrayList<Nummer> expResult = nummers;\n ArrayList<Nummer> result = instance.getAlbumNummers();\n assertEquals(expResult, result);\n }", "public Music getMusic();", "@Override\n\tpublic void addGenre(Genre genre) throws MovieException {\n obj.addGenre(genre);\n\t}", "public void testLoadMovies () {\n ArrayList<Movie> movies = loadMovies(\"ratedmoviesfull\"); \n System.out.println(\"Numero de peliculas: \" + movies.size()); \n String countInGenre = \"Comedy\"; // variable\n int countComedies = 0; \n int minutes = 150; // variable\n int countMinutes = 0;\n \n for (Movie movie : movies) {\n if (movie.getGenres().contains(countInGenre)) {\n countComedies +=1;\n }\n \n if (movie.getMinutes() > minutes) {\n countMinutes +=1;\n }\n }\n \n System.out.println(\"Hay \" + countComedies + \" comedias en la lista \");\n System.out.println(\"Hay \" + countMinutes + \" películas con más de \" + minutes + \" minutos en la lista \");\n \n // Cree un HashMap con el recuento de cuántas películas filmó cada director en particular\n HashMap<String,Integer> countMoviesByDirector = new HashMap<String,Integer> ();\n for (Movie movie : movies) {\n String[] directors = movie.getDirector().split(\",\"); \n for (String director : directors ) {\n director = director.trim();\n if (! countMoviesByDirector.containsKey(director)) {\n countMoviesByDirector.put(director, 1); \n } else {\n countMoviesByDirector.put(director, countMoviesByDirector.get(director) + 1);\n }\n }\n }\n \n // Contar el número máximo de películas dirigidas por un director en particular\n int maxNumOfMovies = 0;\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) > maxNumOfMovies) {\n maxNumOfMovies = countMoviesByDirector.get(director);\n }\n }\n \n // Cree una ArrayList con directores de la lista que dirigieron el número máximo de películas\n ArrayList<String> directorsList = new ArrayList<String> ();\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) == maxNumOfMovies) {\n directorsList.add(director);\n }\n }\n \n System.out.println(\"Número máximo de películas dirigidas por un director: \" + maxNumOfMovies);\n System.out.println(\"Los directores que dirigieron mas películas son \" + directorsList);\n }", "@NonNull\n public final List<Genres> getGenres() {\n return this.genres;\n }", "public void setFiction() {\n if (super.getGenre() == null || super.getGenre().length() == 0) {\n super.setGenre(\"Fiction\");\n } else if (!super.getGenre().contains(\"FICTION\")) {\n super.setGenre(super.getGenre() + \", Fiction\");\n }\n super.setGenre(super.getGenre().toUpperCase());\n }", "@Override\n public int getItemCount() {\n return subgenreList.size();\n }", "public Vector<Artista> findAllArtisti();", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<HashMap<String, String>> getChoiceGan(String choice) {\n\t\tList<rcmMusicListMain> musicLists = rcmMusicListMain.getAllMusic();\n\t\t\n\t\tList<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>();\n\t\tHashMap<String, String> aMap = new HashMap<String, String>();\n\t\tHashMap<String, String> bMap = new HashMap<String, String>();\n\t\t\n\t\tmusicLists.stream()\n\t\t\t.filter(musicList -> musicList.getGenre1().equals(choice) \n\t\t\t\t\t|| musicList.getGenre2().equals(choice))\n\t\t\t.sorted((musicList1, musicList2) -> musicList2.getPlayNum() - musicList1.getPlayNum())\n\t\t\t.limit(10).forEach(musicList -> {\n\t\t\t\t\t//System.out.println(musicList.getSeq()+\". \"+musicList.getTitle()+\" : \"+musicList.getSinger());\n\t\t\t\t\taMap.put(\"TITLE\", musicList.getTitle());\n\t\t\t\t\taMap.put(\"ITEM\", musicList.getSinger());\n\t\t\t\t\taList.add((HashMap<String, String>)aMap.clone());\n\t\t\t\t});\n\t\t\n\t\t\n\t\tfor(int i=0; i<aList.size(); i++) {\n\t\t\tbMap = aList.get(i); \n\t\t\tbMap.put(\"SEQ\", i+1+\"\");\n\t\t\tSystem.out.println(bMap.get(\"SEQ\")+\". \"+bMap.get(\"TITLE\")+\" : \"+bMap.get(\"ITEM\"));\n\t\t\t//System.out.println(aList.get(i).get(\"SEQ\")+\". \"+aList.get(i).get(\"TITLE\")+\" : \"+aList.get(i).get(\"ITEM\"));\n\t\t}\n\t\t\n\t\treturn aList; \n\t}", "private ArrayList<Pelicula> busquedaPorGenero(ArrayList<Pelicula> peliculas, String genero){\r\n\r\n ArrayList<Pelicula> peliculasPorGenero = new ArrayList<>();\r\n\r\n\r\n\r\n for(Pelicula unaPelicula:peliculas){\r\n\r\n if(unaPelicula.getGenre().contains(genero)){\r\n\r\n peliculasPorGenero.add(unaPelicula);\r\n }\r\n }\r\n\r\n return peliculasPorGenero;\r\n }", "public List<Sale> saleListGenreCount() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT musical_genre, COUNT (*) FROM disquera.genre \\n\"\n + \"JOIN disquera.sale ON genre.id_genre = sale.id_genre \\n\"\n + \"GROUP BY genre.musical_genre ORDER BY genre.musical_genre\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n\n newSale.setGenre(result.getString(1));\n newSale.setCount(result.getInt(2));\n //System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }", "private void reqGenre(){\n\n if(NetworkChecker.isOnline(getApplicationContext())) {\n ReqGenre.genreTvList(resGenreTvShows());\n ReqGenre.genreMovieList(resGenreMovie());\n\n }\n else {\n PopUpMsg.toastMsg(\"Network isn't avilable\",getApplicationContext());\n }\n\n }" ]
[ "0.6763317", "0.6719913", "0.66923887", "0.66463906", "0.6600217", "0.6600217", "0.65788746", "0.6569102", "0.653495", "0.6476763", "0.6472853", "0.6472853", "0.64399546", "0.6360949", "0.6316502", "0.6316001", "0.62796646", "0.62796646", "0.6272375", "0.6262704", "0.62141013", "0.62124324", "0.61751384", "0.6163899", "0.61322725", "0.6128194", "0.61232156", "0.60990185", "0.6037391", "0.6027875", "0.59824324", "0.59788495", "0.5971984", "0.5952153", "0.5943159", "0.59362495", "0.5904866", "0.58775204", "0.5868041", "0.58499163", "0.5842072", "0.58327174", "0.580874", "0.58044076", "0.5750209", "0.57490444", "0.57395315", "0.5726557", "0.571485", "0.5702824", "0.57003754", "0.5698748", "0.5680906", "0.5676209", "0.5673738", "0.5659124", "0.5640681", "0.5627719", "0.5617601", "0.56150323", "0.56146073", "0.5608882", "0.56013364", "0.56008565", "0.5597586", "0.55966693", "0.55954903", "0.5592572", "0.5574663", "0.5539207", "0.5512765", "0.5512294", "0.5492428", "0.54881537", "0.5479695", "0.54711944", "0.5470528", "0.54692096", "0.5466468", "0.5458623", "0.54511774", "0.5449781", "0.544652", "0.54353553", "0.54324174", "0.542862", "0.54125696", "0.54119927", "0.54087555", "0.5405013", "0.5397461", "0.5396399", "0.53739893", "0.5368096", "0.53602743", "0.5355243", "0.53477615", "0.5345736", "0.53446865", "0.53313196" ]
0.582569
42
Les genre musicaux de cet album
public Album setGenres(Set<String> genres) { this.genres = genres; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }", "public void setGenre(String genre) {\n this.genre = genre;\n }", "public String genre14(){\n String genre14MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n if(results[i].genre()) {\n genre14MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(genre14MovieTitle);\n return genre14MovieTitle;\n }", "public String getGenre() {\n return genre;\n }", "public String getGenre() {\n return genre;\n }", "public void setGenre() {\r\n this.genre = genre;\r\n }", "public void setGenre(int genre) {\n this.genre = genre;\n }", "public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }", "public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }", "public void setGenre(Genre genre) {\n this.genre = genre;\n }", "public void setGenre(Genre genre) {\n this.genre = genre;\n }", "private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }", "public int getGenre() {\n return genre;\n }", "boolean hasPictureGenre();", "public Genre getGenre() {\n return genre;\n }", "public Genre getGenre() {\n return genre;\n }", "public String getGenre()\r\n {\r\n String answer=genre;\r\n return answer;\r\n }", "private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }", "@Override\n\tpublic String addGenre(Genre songName, Genre songArtist, Genre songBpm, Genre songGenre) {\n\t\treturn null;\n\t}", "public void setGenre(String genre){\n\t\t//FIXME\n\t\tthis.genre = genre;\n\t}", "public Genre getGenre() {\n\n return genre;\n }", "public String getGenre()\n {\n return bookGenre;\n }", "Builder addGenre(Text value);", "private static ArrayList<String> getGenre(String songID) throws SQLException {\n ArrayList<String> genres = new ArrayList<>();\n genreStatement = conn.createStatement();\n genreResultSet = genreStatement.executeQuery(\"SELECT * FROM genre, trackGenre WHERE trackGenre.track_id = '\" + songID + \"' AND trackGenre.genre = genre.name;\");\n while (genreResultSet.next()){\n genres.add(genreResultSet.getString(\"name\"));\n }\n return genres;\n }", "public String getBasedOnGenre(String genre) {\n String cap = genre.substring(0, 1).toUpperCase() + genre.substring(1);\n StringBuilder json = new StringBuilder();\n for (Node node: books) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Book)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: music) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Music)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: movies) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Movie)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n return json.toString();\n }", "public void testGetGenre()\r\n {\r\n assertTrue(genre.equals(song.getGenre()));\r\n }", "public List<Film> findAllByGenre(String genre);", "private void populateGenres(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT DISTINCT genre FROM artist ORDER BY genre\");\n\n while(results.next()){\n String genre = results.getString(1);\n genreList.add(genre);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre();", "@Override\n\tpublic List<Genre> displayAllGenres() throws MovieException {\n\t\treturn obj.displayAllGenres();\n\t}", "Builder addGenre(String value);", "void loadAlbums();", "@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }", "public List<Books> findBooksByGenre(String genre) {\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n List<Genre> list = new ArrayList();\r\n Genre g = new Genre();\r\n g.setType(genre);\r\n list.add(g);\r\n session.setAttribute(\"lastGenre\",list);\r\n return bookController.findBooksByGenre(genre);\r\n }", "public void onGenreClick(View v) {\n // FIXME: 9ボタンのジャンル一覧ボタン押下時\n AppMeasurementWrapper.getInstance().initialize(getApplication());\n AppMeasurementWrapper.getInstance().storeTransitionSrcPoint(AppEffectClickPointEnum.HOME_GENRE_1);\n this.startGenreListActivity();\n }", "@Test\r\n public void testGetGenreList() throws MovieDbException {\r\n LOG.info(\"getGenreList\");\r\n List<Genre> results = tmdb.getGenreList(LANGUAGE_DEFAULT);\r\n assertTrue(\"No genres found\", !results.isEmpty());\r\n }", "public ArrayList<MovieGenreModel> getAllGenres() {\n\t\treturn null;\n\t}", "public void addGenre(String genre) throws SQLException {\n myGenreManager.addGenre(genre);\n allGenres.add(genre);\n }", "public BookType getGenre() {\r\n return genre;\r\n }", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "public Set<String> getGenres() {\r\n return this.genres;\r\n }", "public String[] getMusicas() {\n\t\treturn musicas;\n\t}", "public String genresListText(Song [] songList){\n\t\t\n\t\tString text = \"\";\n\t\t\n\t\tfor(int i=0; i<songList.length; i++){\n\t\t\n\t\t\tif(songList[i]!=null){\n\t\t\t\tif( (i>0)&&(songList[i-1].getSongGenre().equals(songList[i].getSongGenre()))){ \n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\ttext+= songList[i].getSongGenre() + \",\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn text;\n\t}", "public String getGenreString() {\r\n return genre.getTheBookType();\r\n }", "Builder addGenre(URL value);", "public static String findGender (String songName)\n {\n String songGender=\"\";\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(songName))\n { \n songGender=song.getGender();\n return (songGender);\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n return (\"Gender\");\n }", "private void loadToChoice() {\n\t\tfor(Genre genre : genreList) {\n\t\t\tuploadPanel.getGenreChoice().add(genre.getName());\n\t\t}\n\t}", "private static HashMap<Integer, String> getMovieGenres() {\n String url = \"http://api.themoviedb.org/3/genre/movie/list?api_key=\" + BuildConfig.APPLICATION_ID;\r\n\r\n JSONArray genres = null;\r\n Integer id;\r\n String genre;\r\n\r\n HashMap<Integer, String> movieGenresMap = new HashMap<Integer, String>();\r\n\r\n try {\r\n genres = new JSONArray(\r\n \"[{\\\"id\\\":28,\\\"name\\\":\\\"Action\\\"},{\\\"id\\\":12,\\\"name\\\":\\\"Adventure\\\"},{\\\"id\\\":16,\\\"name\\\":\\\"Animation\\\"},{\\\"id\\\":35,\\\"name\\\":\\\"Comedy\\\"},{\\\"id\\\":80,\\\"name\\\":\\\"Crime\\\"},{\\\"id\\\":99,\\\"name\\\":\\\"Documentary\\\"},{\\\"id\\\":18,\\\"name\\\":\\\"Drama\\\"},{\\\"id\\\":10751,\\\"name\\\":\\\"Family\\\"},{\\\"id\\\":14,\\\"name\\\":\\\"Fantasy\\\"},{\\\"id\\\":10769,\\\"name\\\":\\\"Foreign\\\"},{\\\"id\\\":36,\\\"name\\\":\\\"History\\\"},{\\\"id\\\":27,\\\"name\\\":\\\"Horror\\\"},{\\\"id\\\":10402,\\\"name\\\":\\\"Music\\\"},{\\\"id\\\":9648,\\\"name\\\":\\\"Mystery\\\"},{\\\"id\\\":10749,\\\"name\\\":\\\"Romance\\\"},{\\\"id\\\":878,\\\"name\\\":\\\"Science Fiction\\\"},{\\\"id\\\":10770,\\\"name\\\":\\\"TV Movie\\\"},{\\\"id\\\":53,\\\"name\\\":\\\"Thriller\\\"},{\\\"id\\\":10752,\\\"name\\\":\\\"War\\\"},{\\\"id\\\":37,\\\"name\\\":\\\"Western\\\"}]\");\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (genres != null && genres.length() > 0) {\r\n try {\r\n for (int i = 0; i < genres.length(); i++) {\r\n JSONObject genrePair = genres.getJSONObject(i);\r\n id = genrePair.getInt(\"id\");\r\n genre = genrePair.getString(\"name\");\r\n movieGenresMap.put(id, genre);\r\n\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n return movieGenresMap;\r\n\r\n }", "private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: \");\n\t\tString genre = string_input.next();\n\t\tint genre_index = getGenreIndex(genre); //returns the index of the genre entered, in ALL_GENRES\n\t\t\n\t\tif(genre_index > -1){//valid genre was entered\n\t\t\tIterator<String> iter = ALL_GENRES.get(genre_index).iterator();\n\t\t\tSystem.out.println(\"All \" + genre + \" books are: \");\n\t\t\tprintAllElements(iter);\n\t\t}\n\t}", "public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void setGenre(TheatreGenre genre) {\n\t\tthis.genre = genre;\n\t}", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "public void randomGenre(View view) {\r\n String[] randomGenre = {\"Rock\", \"Funk\", \"Hip hop\", \"Country\", \"Pop\", \"Blues\", \"K-pop\", \"Punk\", \"House\", \"Soul\"};\r\n int index = (int) (Math.random() * 10);\r\n displayMessage(\"Your random genre is: \" + randomGenre[index]);\r\n }", "public static void setUpGenres(Context context){\n SharedPreferences mSetting = context.getSharedPreferences(StaticVars.GENRE_SHARED_PREFERENCES,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSetting.edit();\n //putting genre name and its id on shikimori\n\n\n editor.putInt(\"Drama\",8);\n editor.putInt(\"Драма\",8);\n editor.putInt(\"Game\",11);\n editor.putInt(\"Игры\",11);\n editor.putInt(\"Psychological\",40);\n editor.putInt(\"Психологическое\",40);\n editor.putInt(\"Adventure\",2);\n editor.putInt(\"Приключения\",2);\n editor.putInt(\"Music\",19);\n editor.putInt(\"Музыка\",19);\n editor.putInt(\"Action\",1);\n editor.putInt(\"Экшен\",1);\n editor.putInt(\"Comedy\",4);\n editor.putInt(\"Комедия\",4);\n editor.putInt(\"Demons\",6);\n editor.putInt(\"Демоны\",6);\n editor.putInt(\"Police\",39);\n editor.putInt(\"Полиция\",39);\n editor.putInt(\"Space\",29);\n editor.putInt(\"Космос\",29);\n editor.putInt(\"Ecchi\",9);\n editor.putInt(\"Этти\",9);\n editor.putInt(\"Fantasy\",10);\n editor.putInt(\"Фэнтези\",10);\n editor.putInt(\"Historical\",13);\n editor.putInt(\"Исторический\",13);\n editor.putInt(\"Horror\",14);\n editor.putInt(\"Ужасы\",14);\n editor.putInt(\"Magic\",16);\n editor.putInt(\"Магия\",16);\n editor.putInt(\"Mecha\",18);\n editor.putInt(\"Меха\",18);\n editor.putInt(\"Parody\",20);\n editor.putInt(\"Пародия\",20);\n editor.putInt(\"Samurai\",21);\n editor.putInt(\"Самураи\",21);\n editor.putInt(\"Romance\",22);\n editor.putInt(\"Романтика\",22);\n editor.putInt(\"School\",23);\n editor.putInt(\"Школа\",23);\n editor.putInt(\"Shoujo\",25);\n editor.putInt(\"Сёдзе\",25);\n editor.putInt(\"Shounen\",27);\n editor.putInt(\"Сёнен\",27);\n editor.putInt(\"Shounen Ai\",28);\n editor.putInt(\"Сёнен Ай\",28);\n editor.putInt(\"Sports\",30);\n editor.putInt(\"Спорт\",30);\n editor.putInt(\"Vampire\",32);\n editor.putInt(\"Вампиры\",32);\n editor.putInt(\"Harem\",35);\n editor.putInt(\"Гарем\",35);\n editor.putInt(\"Slice of Life\",36);\n editor.putInt(\"Повседневность\",36);\n editor.putInt(\"Seinen\",42);\n editor.putInt(\"Сейнен\",42);\n editor.putInt(\"Josei\",43);\n editor.putInt(\"Дзёсей\",43);\n editor.putInt(\"Supernatural\",37);\n editor.putInt(\"Сверхъестественное\",37);\n editor.putInt(\"Thriller\",41);\n editor.putInt(\"Триллер\",41);\n editor.putInt(\"Shoujo Ai\",26);\n editor.putInt(\"Сёдзе Ай\",26);\n editor.putInt(\"Sci-Fi\",24);\n editor.putInt(\"Фантастика\",24);\n editor.putInt(\"Super Power\",31);\n editor.putInt(\"Супер сила\",31);\n editor.putInt(\"Military\",38);\n editor.putInt(\"Военное\",38);\n editor.putInt(\"Mystery\",7);\n editor.putInt(\"Детектив\",7);\n editor.putInt(\"Kids\",15);\n editor.putInt(\"Детское\",15);\n editor.putInt(\"Cars\",3);\n editor.putInt(\"Машины\",3);\n editor.putInt(\"Martial Arts\",17);\n editor.putInt(\"Боевые искусства\",17);\n editor.putInt(\"Dementia\",5);\n editor.putInt(\"Безумие\",5);\n\n editor.apply();\n\n\n\n }", "public void addGenre(String newGenre) {\n this.genre.add(newGenre);\n }", "private static void addToGenreTable(BookDetails book, String bookTitle) {\n\t\t//ALL_GENRES representation --> Biology|Mathematics|Chemistry|Physics|Science_Fiction|Fantasy|Action|Drama|Romance|Horror|History|Autobiography|Biography \n\t\tswitch(book.getGenre()){\n\t\t\tcase Biology:\n\t\t\t\tALL_GENRES.get(0).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Mathematics:\n\t\t\t\tALL_GENRES.get(1).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Chemistry:\n\t\t\t\tALL_GENRES.get(2).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Physics:\n\t\t\t\tALL_GENRES.get(3).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Science_Fiction:\n\t\t\t\tALL_GENRES.get(4).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Fantasy:\n\t\t\t\tALL_GENRES.get(5).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Action:\n\t\t\t\tALL_GENRES.get(6).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Drama:\n\t\t\t\tALL_GENRES.get(7).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Romance:\n\t\t\t\tALL_GENRES.get(8).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Horror:\n\t\t\t\tALL_GENRES.get(9).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase History:\n\t\t\t\tALL_GENRES.get(10).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Autobiography:\n\t\t\t\tALL_GENRES.get(11).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Biography:\n\t\t\t\tALL_GENRES.get(12).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"ERROR: Invalid Genre Input\");\n\t\t\t\tbreak;\n\t\t}\n\t}", "void displayAlbums(FilterableAlbum[] albums);", "public int compareGenre(Song other) {\n return this.genre.compareTo(other.getGenre());\n }", "public Artist(String name, Genre mainGenre) {\n this.name = name;\n this.cataloue = new ArrayList<Record>();\n this.mainGenre = mainGenre;\n }", "public String toString() {\n\t\tString strMusica = \"\";\n\t\tfor (int i = 0; i < musicas.length; i++) {\n\t\t\tstrMusica += musicas[i] + \" \";\n\t\t}\n\n\t\treturn \"Autor: \" + autor + \", Nome: \" + nome + \", Preferida: \"\n\t\t\t\t+ preferida + \", Musicas: \" + strMusica;\n\t}", "void displayFilteredAlbums();", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "public void setGenre(String genreStr) {\n String genresRemovedCommas = genreStr.replaceAll(COMMA, EMPTY);\r\n String[] genresArray = genresRemovedCommas.split(SPACE);\r\n Collections.addAll(genres, genresArray);\r\n }", "public void testGenreSort() {\n sorter.inssortGenre();\n list = sorter.getLibrary();\n assertEquals(list.get(0).getGenre(), \"Hip-Hop\");\n assertEquals(list.get(1).getGenre(), \"R&B\");\n assertEquals(list.get(2).getGenre(), \"Rock\");\n }", "public ArrayList<String> Info_Disco_Mus_Rep1(String genero) {\r\n String line;\r\n ArrayList<String> Lista_datos_nombre_genero = new ArrayList();\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/cat_musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco = line.split(\";\");\r\n if (info_disco[2].equals(genero)) {\r\n Lista_datos_nombre_genero.add(info_disco[0]);\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_nombre_genero;\r\n }", "public TheatreGenre getGenre() {\n\t\treturn genre;\n\t}", "@Override\n\tpublic void finMusica() {\n\t}", "private double getGenreScore(Movie movie) {\n double genreScore = 0;\n\n for (String genre : this.generes) {\n if (movie.getGenre().contains(genre)) {\n genreScore = genreScore + 1;\n }\n }\n return genreScore;\n }", "public String getAlbum()\n {\n return album;\n }", "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "private List<MusicVideo> getMusicVideosThatMatchArtisteOrGenre(int artisteId, int genreId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id = :artisteId OR mv.genre.id = :genreId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n query.setParameter(\"genreId\", genreId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "@Test\r\n public void testGetGenreMovies() throws MovieDbException {\r\n LOG.info(\"getGenreMovies\");\r\n List<MovieDb> results = tmdb.getGenreMovies(ID_GENRE_ACTION, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No genre movies found\", !results.isEmpty());\r\n }", "public void addGenre() {\n ResultSet result = null;\n try {\n result = server.executeStatement(\"SELECT genreID FROM productiongenre WHERE prodID = \" + \"'\" + getId() + \"'\" + \";\");\n if(result.next())\n genre = result.getString(\"genreID\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public static List<String> getFilms(String acteur) {\n\t\tString movie = \"\";\n\t\tList<String> movies_list = new ArrayList<String>();\n\t\tString string_query = \"SELECT $title WHERE {\\n $film rdf:type dbo:Film;\\n\" + \n \" foaf:name $title;\\n dbo:starring $acteur.\\n\" + \n \"$acteur foaf:name \\\"ACTOR_NAME\\\"@en\\n}\".replaceAll(\"ACTOR_NAME\",acteur);\n\t\t\n\n ParameterizedSparqlString qs = new ParameterizedSparqlString(PREFIX +string_query);\n QueryExecution exec = QueryExecutionFactory.sparqlService(SERVICE, qs.asQuery());\n ResultSet results = exec.execSelect();\n \n while (results.hasNext()) {\n \tQuerySolution solution = results.nextSolution();\n \tmovie = solution.getLiteral(\"?title\").toString().replace(\"@en\", \"\");\n \tmovies_list.add(movie);\n }\n\t\t\n\t\treturn movies_list;\n\t}", "public List<Album> getAlbums(Artist artist);", "public ArrayList<String> obtenerNombresMedicos() {\n ArrayList<String> nombres = new ArrayList<String>();\n for (int i = 0; i < medicos.length; i++) {\n if (medicos[i] != null) {\n nombres.add(medicos[i].getNombre());\n }\n }\n return nombres;\n }", "private static void idVorhanden() {\n\t\tLinkedHashSet<String> genre = new LinkedHashSet<String>();\t\t\t// benötigt, um duplikate von genres zu entfernen\n\t\tLinkedHashSet<String> darsteller = new LinkedHashSet<String>();\t\t// benötigt, um duplikate von darstellern zu entfernen\n\t\tString kinofilm = \"\";\t\t\t\t\t\t\t\t\t\t\t\t// benötigt für die Ausgabe des Filmtitels und Jahr\n\t\t\n\t\tsetSql(\"SELECT g.GENRE, m.TITLE, m.YEAR, mc.CHARACTER, p.NAME from Movie m JOIN MOVgen MG ON MG.MOVIEID = M.MOVIEID right JOIN GENRE G ON MG.GENREID = G.GENREID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tright JOIN MOVIECHARACTER MC ON M.MOVIEID = MC.MOVIEID JOIN PERSON P ON MC.PERSONID = P.PERSONID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tWHERE M.MOVIEID = \" + movieID);\t// SQL Abfrage, um Genre, Title, Year, Character und Name eines Films zu bekommen\n\t\t\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und Ergebnis im ResultSet speichern\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif(!rs.next()) {\t\t\t\t\t\t\t// prüfe, ob das ResultSet leer ist\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"MovieID ungültig. Bitte eine der folgenden MovieID's angeben: \"); // Meldung ausgeben, dass ID ungültig ist\n\t\t\t\tidProblem();\t\t\t\t\t\t\t// wenn movieID nicht vorhanden, führe idProblem() aus, um mögliche Filme anzuzeigen\n\t\t\t} else {\n\t\t\t\trs.isBeforeFirst();\t\t\t\t\t\t// Durch die if-Abfrage springt der Cursor des ResultSets einen weiter und muss zurück auf die erste Stelle\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\t// Zeilenweises durchgehen des ResultSets \"rs\"\n\t\t\t\t\t/*\n\t\t\t\t\t * Aufbau des ResultSets \"rs\":\n\t\t\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t\t\t * GENRE | TITLE | YEAR | CHARACTER | NAME\n\t\t\t\t\t * (1) (2) (3) (4) (5)\n\t\t\t\t\t */\n\t\t\t\t\tgenre.add(rs.getString(1));\t\t\t\t\t\t\t\t\t\t\t// speichern und entfernen der Duplikate der Genres in \"genre\"\n\t\t\t\t\tkinofilm = (rs.getString(2) + \" (\" + rs.getString(3) + \")\");\t\t// Speichern des Filmtitels und des Jahrs in \"kinolfilm\"\n\t\t\t\t\tdarsteller.add(rs.getString(4) + \": \" + rs.getString(5));\t\t\t// speichern und entfernen der Duplikate der Darsteller in \"darsteller\"\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Zur besseres Ausgabe, werden die LinkedHashSets in ArrayLists übertragen\n\t\t\t\t * Grund: Es ist nicht möglich auf einzelne, bestimmte Elemente des HashSets zuzugreifen.\n\t\t\t\t * Bedeutet: HashSet.get(2) existiert nicht, ArrayList.get(2) existiert.\n\t\t\t\t */\n\t\t\t\tArrayList<String> genreArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : genre) {\n\t\t\t\t\t\tgenreArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\tArrayList<String> darstellerArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : darsteller) {\n\t\t\t\t\t\tdarstellerArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Ausgabe der Kinofilm Daten nach vorgegebenen Format:\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\t * Genre: ... | ... | ..\n\t\t\t\t\t\t\t * Darsteller:\n\t\t\t\t\t\t\t * Character: Name\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Kinofilme: \" + kinofilm);\t\t// Ausgabe: Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\tSystem.out.print(\"Genre: \" + genreArrayList.get(0)); // Ausgabe des ersten Genres, vermeidung des Zaunpfahlproblems\n\n\t\t\t\t\t\t\tfor (int i = 1; i < genreArrayList.size(); i++) {\t\t// Ausgabe weiterer Genres, solange es weitere Einträge in\t\n\t\t\t\t\t\t\t\tSystem.out.print(\" | \" + genreArrayList.get(i)); \t// der ArrayList \"genreArrayList\" gibt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Darsteller:\");\t\t\t\t\t// Ausgabe: Darsteller:\n\t\t\t\t\t\t\tfor (int i = 0; i < darstellerArrayList.size(); i++) {\t// Ausgabe der Darsteller, solange es\n\t\t\t\t\t\t\t\tSystem.out.println(\" \" + darstellerArrayList.get(i));\t// Darsteller in der \"darstellerArrayList\" gibt\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t}\n\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\tSystem.out.println(e); // Ausgabe Fehlermeldung\n\t\t}\n\t}", "private void InicializarListaAlbums() {\n\n GestorAlbums gestorAlbums = new GestorAlbums(this.getActivity());\n albums = gestorAlbums.AsignarAlbum();\n }", "public static String[] getAlbumFields()\r\n {\n return new String[]{\r\n \t\t\"title\",\r\n\t\t \"description\",\r\n\t\t \"artist\",\r\n\t\t \"genre\",\r\n\t\t \"theme\",\r\n\t\t \"mood\",\r\n\t\t \"style\",\r\n\t\t \"type\",\r\n\t\t \"albumlabel\",\r\n\t\t \"rating\",\r\n\t\t \"year\",\r\n\t\t \"musicbrainzalbumid\",\r\n\t\t \"musicbrainzalbumartistid\",\r\n\t\t \"fanart\",\r\n\t\t \"thumbnail\",\r\n\t\t \"artistid\"\r\n };\r\n }", "@Nullable\n GenresPage getGenres();", "public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "private String addMusic() {\n\t\t// One Parameter: MusicName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|music:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "public static List<Genre> get() throws IOException {\n return get(null);\n }", "public static void main(String[] args) {\n\t\tMusic m=new Music();\r\n\t\tm.rank=1;\r\n\t\tm.icon='-';\r\n\t\tm.idcrement=0;\r\n\t\tm.artist=\"숀(SHAUN)\";\r\n\t\tm.title=\"습관 (Bad Habits)\";\r\n\r\n\t\t\r\n\t\t\r\n\t\tMusic2 m1=new Music2();\r\n\t\tm1.rank=1;\r\n\t\tm1.icon='-';\r\n\t\tm1.idcrement='0';\r\n\t\tm1.title=\"이 노래가 클럽에서 나온다면\";\r\n\t\tm1.artist=\"우디 (Woody)\";\r\n\t\tm1.album=\"이 노래가 클럽에서 나온다면\";\r\n\t\tm1.poster=\"http://cmsimg.mnet.com/clipimage/album/1024/003/230/3230259.jpg\";\r\n\t\t\r\n\t\tSystem.out.println(\"순위:\"+m.rank);\r\n\t\tSystem.out.println(\"제목:\"+m.title);\r\n\t\tSystem.out.println(\"가수:\"+m.artist);\r\n\t\t\r\n\t\tSystem.out.println(\"앨범:\"+m.album.equals(\" \".trim()));\r\n\t\tSystem.out.println(\"앨범:\"+m.album.equals(\" \"));\r\n\t\t/*\r\n\t\t * \r\n\t\t * int a; System.out.ptinln(a);\r\n\t\t * '' != ' '\r\n\t\t * \"\" != \" \"\r\n\t\t * \"\" != null\r\n\t\t * \r\n\t\t * \"\" => 자체가 String\r\n\t\t * \r\n\t\t */\r\n\t\tm=null; // 메모리 해제\r\n\t\t\r\n\t\tSystem.out.println(\"앨범:\"+m.poster.equals(\"\"));\r\n\t\tSystem.out.println(\"앨범:\"+m.album.charAt(0));\r\n\t\t//주소는 존재하고 값이 없는 상태\r\n\t\tSystem.out.println(m.poster.charAt(0));\r\n\t\t//주소값이 없는 상태\r\n\t\tSystem.out.println(\"==================================\");\r\n\t\tSystem.out.println(\"순위:\"+m1.rank);\r\n\t\tSystem.out.println(\"제목:\"+m1.title);\r\n\t\tSystem.out.println(\"가수:\"+m1.artist);\r\n\t\tSystem.out.println(\"앨범:\"+m1.album);\r\n\r\n\t}", "public void modifyGenres(ArrayList<String> genreList)// --> Bytter ut Genre-arrayen med en ny array over de nye sjangerene for lokalet.\n\t{\n\t\tgenres = genreList;\n\t}", "public Music[] getMusics(Tag tag) {\n SQLiteDatabase db = musicDatabase.getReadableDatabase();\n\n Cursor cur = db.rawQuery(\"SELECT musicId FROM musicTagRelation WHERE tagId=? ORDER BY created_at DESC\", new String[] { String.valueOf(tag.id) });\n int count = cur.getCount();\n int[] musicIds = new int[count];\n for (int i=0; i<count; i++) {\n cur.moveToNext();\n musicIds[i] = cur.getInt(0);\n }\n\n return musicDatabase.musicTable.get(musicIds);\n }", "@Test\n public void testToevoegen_Album() {\n System.out.println(\"toevoegen album\");\n Album album = new Album(\"Album\", 2020, nummers);\n instance.toevoegen(album);\n ArrayList<Nummer> expResult = nummers;\n ArrayList<Nummer> result = instance.getAlbumNummers();\n assertEquals(expResult, result);\n }", "public Music getMusic();", "public void testLoadMovies () {\n ArrayList<Movie> movies = loadMovies(\"ratedmoviesfull\"); \n System.out.println(\"Numero de peliculas: \" + movies.size()); \n String countInGenre = \"Comedy\"; // variable\n int countComedies = 0; \n int minutes = 150; // variable\n int countMinutes = 0;\n \n for (Movie movie : movies) {\n if (movie.getGenres().contains(countInGenre)) {\n countComedies +=1;\n }\n \n if (movie.getMinutes() > minutes) {\n countMinutes +=1;\n }\n }\n \n System.out.println(\"Hay \" + countComedies + \" comedias en la lista \");\n System.out.println(\"Hay \" + countMinutes + \" películas con más de \" + minutes + \" minutos en la lista \");\n \n // Cree un HashMap con el recuento de cuántas películas filmó cada director en particular\n HashMap<String,Integer> countMoviesByDirector = new HashMap<String,Integer> ();\n for (Movie movie : movies) {\n String[] directors = movie.getDirector().split(\",\"); \n for (String director : directors ) {\n director = director.trim();\n if (! countMoviesByDirector.containsKey(director)) {\n countMoviesByDirector.put(director, 1); \n } else {\n countMoviesByDirector.put(director, countMoviesByDirector.get(director) + 1);\n }\n }\n }\n \n // Contar el número máximo de películas dirigidas por un director en particular\n int maxNumOfMovies = 0;\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) > maxNumOfMovies) {\n maxNumOfMovies = countMoviesByDirector.get(director);\n }\n }\n \n // Cree una ArrayList con directores de la lista que dirigieron el número máximo de películas\n ArrayList<String> directorsList = new ArrayList<String> ();\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) == maxNumOfMovies) {\n directorsList.add(director);\n }\n }\n \n System.out.println(\"Número máximo de películas dirigidas por un director: \" + maxNumOfMovies);\n System.out.println(\"Los directores que dirigieron mas películas son \" + directorsList);\n }", "@Override\n\tpublic void addGenre(Genre genre) throws MovieException {\n obj.addGenre(genre);\n\t}", "@NonNull\n public final List<Genres> getGenres() {\n return this.genres;\n }", "public void setFiction() {\n if (super.getGenre() == null || super.getGenre().length() == 0) {\n super.setGenre(\"Fiction\");\n } else if (!super.getGenre().contains(\"FICTION\")) {\n super.setGenre(super.getGenre() + \", Fiction\");\n }\n super.setGenre(super.getGenre().toUpperCase());\n }", "@Override\n public int getItemCount() {\n return subgenreList.size();\n }", "public Vector<Artista> findAllArtisti();", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<HashMap<String, String>> getChoiceGan(String choice) {\n\t\tList<rcmMusicListMain> musicLists = rcmMusicListMain.getAllMusic();\n\t\t\n\t\tList<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>();\n\t\tHashMap<String, String> aMap = new HashMap<String, String>();\n\t\tHashMap<String, String> bMap = new HashMap<String, String>();\n\t\t\n\t\tmusicLists.stream()\n\t\t\t.filter(musicList -> musicList.getGenre1().equals(choice) \n\t\t\t\t\t|| musicList.getGenre2().equals(choice))\n\t\t\t.sorted((musicList1, musicList2) -> musicList2.getPlayNum() - musicList1.getPlayNum())\n\t\t\t.limit(10).forEach(musicList -> {\n\t\t\t\t\t//System.out.println(musicList.getSeq()+\". \"+musicList.getTitle()+\" : \"+musicList.getSinger());\n\t\t\t\t\taMap.put(\"TITLE\", musicList.getTitle());\n\t\t\t\t\taMap.put(\"ITEM\", musicList.getSinger());\n\t\t\t\t\taList.add((HashMap<String, String>)aMap.clone());\n\t\t\t\t});\n\t\t\n\t\t\n\t\tfor(int i=0; i<aList.size(); i++) {\n\t\t\tbMap = aList.get(i); \n\t\t\tbMap.put(\"SEQ\", i+1+\"\");\n\t\t\tSystem.out.println(bMap.get(\"SEQ\")+\". \"+bMap.get(\"TITLE\")+\" : \"+bMap.get(\"ITEM\"));\n\t\t\t//System.out.println(aList.get(i).get(\"SEQ\")+\". \"+aList.get(i).get(\"TITLE\")+\" : \"+aList.get(i).get(\"ITEM\"));\n\t\t}\n\t\t\n\t\treturn aList; \n\t}", "private ArrayList<Pelicula> busquedaPorGenero(ArrayList<Pelicula> peliculas, String genero){\r\n\r\n ArrayList<Pelicula> peliculasPorGenero = new ArrayList<>();\r\n\r\n\r\n\r\n for(Pelicula unaPelicula:peliculas){\r\n\r\n if(unaPelicula.getGenre().contains(genero)){\r\n\r\n peliculasPorGenero.add(unaPelicula);\r\n }\r\n }\r\n\r\n return peliculasPorGenero;\r\n }", "public List<Sale> saleListGenreCount() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT musical_genre, COUNT (*) FROM disquera.genre \\n\"\n + \"JOIN disquera.sale ON genre.id_genre = sale.id_genre \\n\"\n + \"GROUP BY genre.musical_genre ORDER BY genre.musical_genre\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n\n newSale.setGenre(result.getString(1));\n newSale.setCount(result.getInt(2));\n //System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }", "private void reqGenre(){\n\n if(NetworkChecker.isOnline(getApplicationContext())) {\n ReqGenre.genreTvList(resGenreTvShows());\n ReqGenre.genreMovieList(resGenreMovie());\n\n }\n else {\n PopUpMsg.toastMsg(\"Network isn't avilable\",getApplicationContext());\n }\n\n }" ]
[ "0.6762547", "0.6719366", "0.6691899", "0.6645457", "0.659959", "0.659959", "0.6578527", "0.65687245", "0.6534779", "0.64771974", "0.64723057", "0.64723057", "0.643984", "0.63606167", "0.63149536", "0.6278782", "0.6278782", "0.62719554", "0.62622505", "0.62131697", "0.62116545", "0.6174144", "0.6163279", "0.6132481", "0.6127354", "0.6122203", "0.60983735", "0.60366863", "0.60271", "0.59806716", "0.5976813", "0.597176", "0.5951942", "0.5943037", "0.5934541", "0.59049594", "0.58759", "0.5866521", "0.5848845", "0.5841149", "0.5833707", "0.58247775", "0.58079284", "0.5804149", "0.57495695", "0.5748723", "0.5739131", "0.57260585", "0.5713227", "0.57017475", "0.5699557", "0.5698513", "0.5681171", "0.5675997", "0.56729186", "0.56584424", "0.56404096", "0.56281924", "0.56174684", "0.5615948", "0.5614654", "0.56096", "0.5600891", "0.5600373", "0.559759", "0.5596641", "0.5594916", "0.55928254", "0.55741215", "0.5539595", "0.5513195", "0.5511415", "0.5492117", "0.5486573", "0.5479139", "0.54708254", "0.5470723", "0.54686755", "0.54673517", "0.54583913", "0.54510075", "0.5448876", "0.54457235", "0.543506", "0.54306465", "0.5429763", "0.54116476", "0.54114693", "0.5409403", "0.5404978", "0.53967875", "0.53959143", "0.537289", "0.53683543", "0.5359732", "0.5355397", "0.53470236", "0.5345486", "0.53437847", "0.53302807" ]
0.63150895
14
Returns true if field genres is set (has been assigned a value) and false otherwise
public boolean isSetGenres() { return this.genres != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetGenres() {\n return this.genres != null;\n }", "public boolean hasPictureGenre() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasPictureGenre() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENBANK$8) != 0;\r\n }\r\n }", "boolean hasPictureGenre();", "public boolean hasGeneIds() {\n return fieldSetFlags()[4];\n }", "boolean hasField4();", "public boolean isSetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GI$22) != 0;\r\n }\r\n }", "public boolean isSetGiim()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIIM$6) != 0;\r\n }\r\n }", "public Set<String> getGenres() {\r\n return this.genres;\r\n }", "public boolean isSetRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(REGULAR$2) != 0;\n }\n }", "boolean hasField3();", "public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }", "public boolean isSetSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SLDRG$8) != 0;\n }\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBMT$4) != 0;\r\n }\r\n }", "public boolean hasGender() {\n return fieldSetFlags()[4];\n }", "boolean hasField2();", "boolean hasField0();", "public boolean isSetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPG$30) != 0;\r\n }\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }", "boolean hasField1();", "private boolean checkGenreSeriesInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"genre\") != null && request.getParameter(\"genre\").length() > 0\n && request.getParameter(\"series\") != null && request.getParameter(\"series\").length() > 0;\n }", "public boolean hasVar14() {\n return fieldSetFlags()[15];\n }", "boolean hasPredefinedValues();", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }", "public void testGetGenre()\r\n {\r\n assertTrue(genre.equals(song.getGenre()));\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }", "public boolean hasResph() {\n return fieldSetFlags()[3];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CLASSIFICATION:\n return isSetClassification();\n case DISCOVERY_CLASSIFICATION:\n return isSetDiscoveryClassification();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENERAL$20) != 0;\r\n }\r\n }", "public boolean isSet(_Fields field) {\n\t\tif (field == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tswitch (field) {\n\t\tcase REFERENCE_VENDORED_CONST:\n\t\t\treturn isSetReference_vendored_const();\n\t\tcase REFERENCE_VENDORED_ENUM:\n\t\t\treturn isSetReference_vendored_enum();\n\t\t}\n\t\tthrow new IllegalStateException();\n\t}", "public boolean hasVariantSetIds() {\n return fieldSetFlags()[3];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "@Override()\n public boolean equals(Object object) {\n if (!(object instanceof Genre)) {\n\n return (false);\n }\n\n Genre other = (Genre) object;\n if (((this.getGenre() == null) && (other.getGenre() != null))\n || ((this.getGenre() != null)\n && !(this.getGenre().equals(other.getGenre())))) {\n\n return (false);\n }\n\n return (true);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSetDataRealizacaoRessonanciaMagnetica() {\n return EncodingUtils.testBit(__isset_bitfield, __DATAREALIZACAORESSONANCIAMAGNETICA_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldId();", "boolean isSetSpecimen();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERTICE1:\n return isSetVertice1();\n case VERTICE2:\n return isSetVertice2();\n case PESO:\n return isSetPeso();\n case DIRECIONADO:\n return isSetDirecionado();\n case DESCRICAO:\n return isSetDescricao();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERTICE1:\n return isSetVertice1();\n case VERTICE2:\n return isSetVertice2();\n case PESO:\n return isSetPeso();\n case DIRECIONADO:\n return isSetDirecionado();\n case DESCRICAO:\n return isSetDescricao();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetGpipe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GPIPE$36) != 0;\r\n }\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERTICE1:\n return isSetVertice1();\n case VERTICE2:\n return isSetVertice2();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERTICE1:\n return isSetVertice1();\n case VERTICE2:\n return isSetVertice2();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERTICE1:\n return isSetVertice1();\n case VERTICE2:\n return isSetVertice2();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case OUTPUT_DIR:\n return isSetOutputDir();\n case SUBSET:\n return isSetSubset();\n case TYPES:\n return isSetTypes();\n }\n throw new IllegalStateException();\n }", "public boolean isSetMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MEDICATION$10) != 0;\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case UCARID:\n return isSetUcarid();\n case UCARSERIALNUMBER:\n return isSetUcarserialnumber();\n case UCARSTATUS:\n return isSetUcarstatus();\n case CARPROVICEID:\n return isSetCarproviceid();\n case CARCITYID:\n return isSetCarcityid();\n case COLOR:\n return isSetColor();\n case DRIVINGMILEAGE:\n return isSetDrivingmileage();\n case COMPLETERATE:\n return isSetCompleterate();\n case CARSOURCE1L:\n return isSetCarsource1l();\n case ISVIDEO:\n return isSetIsvideo();\n case FIRSTPICTRUE:\n return isSetFirstpictrue();\n case CARTYPE:\n return isSetCartype();\n case SOURCE:\n return isSetSource();\n case ISNEGLECT:\n return isSetIsneglect();\n case PICTURECOUNT:\n return isSetPicturecount();\n case PICTURENUMBER:\n return isSetPicturenumber();\n case DISPLAYPRICE:\n return isSetDisplayprice();\n case STATUSMODIFYTIME:\n return isSetStatusmodifytime();\n case CREATETIME:\n return isSetCreatetime();\n case BUYCARDATE:\n return isSetBuycardate();\n case CARPUBLISHTIME:\n return isSetCarpublishtime();\n case UCARPICWHOLEPATH:\n return isSetUcarpicwholepath();\n case ISDEALERRECOMMEND:\n return isSetIsdealerrecommend();\n case ISAUTHENTICATED:\n return isSetIsauthenticated();\n case ISRECOMMENDGL:\n return isSetIsrecommendgl();\n case ISOWNCAR:\n return isSetIsowncar();\n case C2BPRICE:\n return isSetC2bprice();\n case ISTOP:\n return isSetIstop();\n case STATEDESCRIPTION:\n return isSetStatedescription();\n case ISWARRANTY:\n return isSetIswarranty();\n case WARRANTYTYPES:\n return isSetWarrantytypes();\n case ISSHOWMR:\n return isSetIsshowmr();\n case CARPROVINCENAME:\n return isSetCarprovincename();\n case CARCITYNAME:\n return isSetCarcityname();\n case CARDISTRICTID:\n return isSetCardistrictid();\n case CARDISTRICTNAME:\n return isSetCardistrictname();\n case SLOGAN:\n return isSetSlogan();\n case B2BPRICE:\n return isSetB2bprice();\n case ISB2B:\n return isSetIsb2b();\n case MAINBRANDID:\n return isSetMainbrandid();\n case PRODUCERID:\n return isSetProducerid();\n case COUNTRY:\n return isSetCountry();\n case BRANDID:\n return isSetBrandid();\n case CARLEVEL:\n return isSetCarlevel();\n case CARLEVELVALUE:\n return isSetCarlevelvalue();\n case CARID:\n return isSetCarid();\n case GEARBOXTYPE:\n return isSetGearboxtype();\n case GEARBOXTYPESTRING:\n return isSetGearboxtypestring();\n case EXHAUSTVALUE:\n return isSetExhaustvalue();\n case CARYEAR:\n return isSetCaryear();\n case CARREFERPRICE:\n return isSetCarreferprice();\n case ENVIRSTANDARD:\n return isSetEnvirstandard();\n case CONSUMPTION:\n return isSetConsumption();\n case OILTYPE:\n return isSetOiltype();\n case ENGINELOCATION:\n return isSetEnginelocation();\n case BODYDOORS:\n return isSetBodydoors();\n case SEATNUMMIN:\n return isSetSeatnummin();\n case SEATNUMMAX:\n return isSetSeatnummax();\n case ISWAGON:\n return isSetIswagon();\n case DRIVETYPE:\n return isSetDrivetype();\n case ISAGENCY:\n return isSetIsagency();\n case CSBODYFORM:\n return isSetCsbodyform();\n case BRANDATTR:\n return isSetBrandattr();\n case ISMARKINGVENDOR:\n return isSetIsmarkingvendor();\n case COUNTRYVALUE:\n return isSetCountryvalue();\n case USERID:\n return isSetUserid();\n case SUPERIORID:\n return isSetSuperiorid();\n case VENDORNAME:\n return isSetVendorname();\n case VENDORTYPE:\n return isSetVendortype();\n case CONTACT:\n return isSetContact();\n case ISJDVENDOR:\n return isSetIsjdvendor();\n case ISINCTRANSFER:\n return isSetIsinctransfer();\n case USERTYPE:\n return isSetUsertype();\n case ISACTIVITY:\n return isSetIsactivity();\n case MEMBERTYPE:\n return isSetMembertype();\n case ISBANGMAI:\n return isSetIsbangmai();\n case DVQFLAG:\n return isSetDvqflag();\n case ISBANGMAICHE:\n return isSetIsbangmaiche();\n case BAIDUMAP:\n return isSetBaidumap();\n case DISTANCE:\n return isSetDistance();\n case LINKMAN:\n return isSetLinkman();\n case CARTYPECONFIG:\n return isSetCartypeconfig();\n case SITEID:\n return isSetSiteid();\n case CARTITLE:\n return isSetCartitle();\n case CARLEVELSECOND:\n return isSetCarlevelsecond();\n case ISCHECKREPORTJSON:\n return isSetIscheckreportjson();\n case CLICKCOUNT:\n return isSetClickcount();\n case CRMCUSTOMERID:\n return isSetCrmcustomerid();\n case BOOST:\n return isSetBoost();\n case BOOSTC:\n return isSetBoostc();\n case BOOSTAPP:\n return isSetBoostapp();\n case SCORE:\n return isSetScore();\n case COSTRATE:\n return isSetCostrate();\n }\n throw new IllegalStateException();\n }", "public boolean isSetNumRFElements() {\n return (this.numRFElements != null ? this.numRFElements.isSetValue() : false);\n }", "public boolean isSetCarprovincename() {\n return this.carprovincename != null;\n }", "public boolean isSetIsrecommendgl() {\n return __isset_bit_vector.get(__ISRECOMMENDGL_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BID_PRICE4:\n return isSetBidPrice4();\n case BID_VOLUME4:\n return isSetBidVolume4();\n case BID_PRICE5:\n return isSetBidPrice5();\n case BID_VOLUME5:\n return isSetBidVolume5();\n }\n throw new IllegalStateException();\n }", "public void setGenre() {\r\n this.genre = genre;\r\n }", "public boolean hasClinicalRelevantVariants() {\n return fieldSetFlags()[7];\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Genre)) {\r\n return false;\r\n }\r\n Genre other = (Genre) object;\r\n if ((this.idGenre == null && other.idGenre != null) || (this.idGenre != null && !this.idGenre.equals(other.idGenre))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public void setGenre(Genre genre) {\n this.genre = genre;\n }", "public void setGenre(Genre genre) {\n this.genre = genre;\n }", "public boolean hasVar150() {\n return fieldSetFlags()[151];\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n }\n throw new IllegalStateException();\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Genre)) {\r\n return false;\r\n }\r\n Genre other = (Genre) object;\r\n if ((this.genreCode == null && other.genreCode != null) || (this.genreCode != null && !this.genreCode.equals(other.genreCode))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case FILE_BODY:\n return isSetFileBody();\n case FILE_TYPE:\n return isSetFileType();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ADULT:\n return isSetAdult();\n case BACKDROP_PATH:\n return isSetBackdrop_path();\n case BELONGS_TO_COLLECTION:\n return isSetBelongs_to_collection();\n case BUDGET:\n return isSetBudget();\n case GENRES:\n return isSetGenres();\n case HOMEPAGE:\n return isSetHomepage();\n case ID:\n return isSetId();\n case IMDB_ID:\n return isSetImdb_id();\n case ORIGINAL_LANGUAGE:\n return isSetOriginal_language();\n case ORIGINAL_TITLE:\n return isSetOriginal_title();\n case OVERVIEW:\n return isSetOverview();\n case POPULARITY:\n return isSetPopularity();\n case POSTER_PATH:\n return isSetPoster_path();\n case PRODUCTION_COMPANIES:\n return isSetProduction_companies();\n case PRODUCTION_COUNTRIES:\n return isSetProduction_countries();\n case RELEASE_DATE:\n return isSetRelease_date();\n case REVENUE:\n return isSetRevenue();\n case RUNTIME:\n return isSetRuntime();\n case SPOKEN_LANGUAGES:\n return isSetSpoken_languages();\n case STATUS:\n return isSetStatus();\n case TAGLINE:\n return isSetTagline();\n case TITLE:\n return isSetTitle();\n case VIDEO:\n return isSetVideo();\n case VOTE_AVERAGE:\n return isSetVote_average();\n case VOTE_COUNT:\n return isSetVote_count();\n }\n throw new IllegalStateException();\n }", "public boolean hasPredefinedValues() {\n return predefinedValuesBuilder_ != null || predefinedValues_ != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BLOCK_MASTER_INFO:\n return isSetBlockMasterInfo();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }" ]
[ "0.84847933", "0.6971722", "0.69334483", "0.6813787", "0.6802116", "0.6518768", "0.64196956", "0.6309347", "0.6280978", "0.62455344", "0.6231693", "0.61907995", "0.6180766", "0.6132812", "0.6124832", "0.6124832", "0.61221063", "0.6114903", "0.6031604", "0.60156286", "0.6006926", "0.59882724", "0.59846866", "0.5962639", "0.5959641", "0.5954909", "0.5905137", "0.58877385", "0.5887287", "0.58855176", "0.588213", "0.588213", "0.5871979", "0.5869699", "0.58560884", "0.5849919", "0.5846827", "0.58358586", "0.58319294", "0.58319294", "0.58319294", "0.58319294", "0.5825237", "0.5821105", "0.5816711", "0.58108735", "0.581049", "0.581049", "0.5805569", "0.58000255", "0.5788527", "0.5784292", "0.57793015", "0.5771327", "0.57697904", "0.57697904", "0.57646495", "0.57481265", "0.5744355", "0.5740193", "0.5740193", "0.5740193", "0.5739433", "0.5731865", "0.57243556", "0.5717976", "0.57177347", "0.57174385", "0.57167405", "0.57155246", "0.5715437", "0.5714053", "0.5710988", "0.57108724", "0.57108724", "0.5709898", "0.5695739", "0.5695456", "0.569383", "0.56860787", "0.56850165", "0.5679898", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705", "0.5678705" ]
0.8438703
1
Les titres des chansons sur cet album
public Set<String> getTrack_names() { return this.track_names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public void addAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "String getTitre();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "public void setAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public java.lang.String getTitle();", "public void addAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void setAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public void setAlbumTiltle(String title){\n \tandroid.util.Log.d(TAG, \"setAlbumSetTiltle *** title = \" + title);\n\tif(title != null){\n \t\tmAlbumTitle.setText(title);\n\t}\n }", "public ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "public void removeAllAlbumTitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ALBUMTITLE);\r\n\t}", "IDisplayString getTitle();", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "String getCaption();", "public static ReactorResult<java.lang.String> getAllAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ALBUMTITLE, java.lang.String.class);\r\n\t}", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "private void updateTitle() {\n\t\tAbstractFolderModel folderModel = FolderModelManager.getInstance().getCurrentModel();\n\t\tTextView titleTV = (TextView) findViewById(R.id.title);\n\t\ttitleTV.setText(folderModel.title());\n\n\t\t\t\t\n\t\tint imgCount=FolderModelManager.getInstance().getCurrentModel().files().length;\n\t\tint folderCount=FolderModelManager.getInstance().getCurrentModel().subfolders().length-1;\n\t\t\n\t\tStringBuilder sb=new StringBuilder(); \n\t\tif (imgCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.IMAGE));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(imgCount);\n\t\t}\n\t\tsb.append(' ');\n\t\tif (folderCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.SUBFOLDER));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(folderCount);\n\t\t}\n\t\t\n\t\tTextView titleRight = (TextView) findViewById(R.id.title_right);\n\t\ttitleRight.setText(sb);\n\t\tsb=null;\t\n\t}", "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo += elements.get(1).text() + \" )\\n\\n\" + getScrobbles(album);\n\n String wiki = getWiki(albumLink);\n if (wiki.contains(\"<i>Do you know any background info about this?</i>\\n\\n\"))\n return albumInfo + \"\\n\\n\" + wiki;\n if (wiki.length() > 400)\n wiki = wiki.substring(0, 400) + \" ...\";\n\n albumInfo += \"\\n\\n\" + wiki + \"\\n\\n\" + getLink(albumLink + \"/+wiki\", \" Continue on Last.fm\");\n return albumInfo;\n }", "public void addOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "@Override\r\n public void DisplayAlbumName(String name) {\r\n this.setTitle(name + \" - Photo Viewer\");\r\n }", "public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }", "public String getTitle(){\n return titlesText;\n }", "private String getAlbumName(){\n return getString(R.string.album_name);\n }", "public void listTitles() {\n for (int i = 0; i < books.length; i++) {\n System.out.println(\"The title of book\" + (i + 1) + \": \" + books[i].getTitle());\n }\n }", "public String[] getTitle() {\r\n return title;\r\n }", "public void setOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public void addOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "void displayAlbums(FilterableAlbum[] albums);", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "public void setOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "void displayFilteredAlbums();", "public String getAlbumName()\n {\n return albumName;\n }", "public static ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "public String getTitle() { return mTitle; }", "public void removeAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public String getTitre() {\n return titre;\n }", "public String getTitre() {\n return titre;\n }", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllAlbumTitle_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), ALBUMTITLE);\r\n\t}", "public static void addAlbumTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "public String getAkadimischerTitel() {\r\n return akadimischerTitel;\r\n }", "public String getTitle() {\n return \"\";\n }", "public abstract CharSequence getTitle();", "public String listTitle();", "@NotNull\n String getTitle();", "public String getCoverArtName();", "public String getTitle() { return title; }", "public String getCaption(){\n return this.caption;\n }", "String getAlbumName()\n {\n return albumName;\n }", "public void setTitre(String titre) {\n this.titre = titre;\n }", "public void setTitre(String titre) {\n this.titre = titre;\n }", "public static void addAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "public String getTitle()\n {\n return name;\n }", "public static void displaySubTitles()\r\n {\n }", "public String getTitular() {\r\n\t return this.titular;\r\n\t}", "private static String getFullTitle(JSONObject volumeInfo) throws JSONException {\n String title = volumeInfo.getString(\"title\");\n String subTitle = volumeInfo.optString(\"subtitle\");\n if (!TextUtils.isEmpty(subTitle)) {\n title += \"\\n\" + subTitle;\n }\n return title;\n }", "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "public void showAlbumSongs(String albumTitle) {\n playlistIsRunning = false;\n showSongs(albumPanels.get(albumTitle).getSongPanels());\n }", "public String getTitle() { return this.title; }", "@AutoEscape\n\tpublic String getTitle();" ]
[ "0.71814567", "0.7094571", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.67710656", "0.6714656", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6605985", "0.65941715", "0.6579143", "0.6573287", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6567594", "0.65379375", "0.64909273", "0.6449519", "0.6440189", "0.6432487", "0.6415425", "0.6410366", "0.6395893", "0.6394403", "0.63854367", "0.631381", "0.62991345", "0.6287424", "0.62851304", "0.6270377", "0.6233928", "0.6221636", "0.62097514", "0.6202664", "0.6202664", "0.6202664", "0.6202664", "0.6189759", "0.6170046", "0.6170035", "0.6153307", "0.6151973", "0.61468756", "0.61416066", "0.61355895", "0.61208075", "0.61208075", "0.6117713", "0.61134386", "0.6112024", "0.6108825", "0.6105718", "0.60990655", "0.6097018", "0.60958034", "0.60840476", "0.60764414", "0.60752577", "0.6074528", "0.6074528", "0.60633785", "0.60621023", "0.604612", "0.6044956", "0.60252166", "0.6017266", "0.6017071", "0.6015958", "0.6014092" ]
0.0
-1
Les titres des chansons sur cet album
public Album setTrack_names(Set<String> track_names) { this.track_names = track_names; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumTitle()\r\n {\r\n return mAlbumTitle;\r\n }", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public void addAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "String getTitre();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "public void setAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public java.lang.String getTitle();", "public void addAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void setAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public void setAlbumTiltle(String title){\n \tandroid.util.Log.d(TAG, \"setAlbumSetTiltle *** title = \" + title);\n\tif(title != null){\n \t\tmAlbumTitle.setText(title);\n\t}\n }", "public ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "public void removeAllAlbumTitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ALBUMTITLE);\r\n\t}", "IDisplayString getTitle();", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "String getCaption();", "public static ReactorResult<java.lang.String> getAllAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ALBUMTITLE, java.lang.String.class);\r\n\t}", "public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }", "private void updateTitle() {\n\t\tAbstractFolderModel folderModel = FolderModelManager.getInstance().getCurrentModel();\n\t\tTextView titleTV = (TextView) findViewById(R.id.title);\n\t\ttitleTV.setText(folderModel.title());\n\n\t\t\t\t\n\t\tint imgCount=FolderModelManager.getInstance().getCurrentModel().files().length;\n\t\tint folderCount=FolderModelManager.getInstance().getCurrentModel().subfolders().length-1;\n\t\t\n\t\tStringBuilder sb=new StringBuilder(); \n\t\tif (imgCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.IMAGE));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(imgCount);\n\t\t}\n\t\tsb.append(' ');\n\t\tif (folderCount>0){\n\t\t\tsb.append(Utility.getResourceString(R.string.SUBFOLDER));\n\t\t\tsb.append(\":\");\n\t\t\tsb.append(folderCount);\n\t\t}\n\t\t\n\t\tTextView titleRight = (TextView) findViewById(R.id.title_right);\n\t\ttitleRight.setText(sb);\n\t\tsb=null;\t\n\t}", "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo += elements.get(1).text() + \" )\\n\\n\" + getScrobbles(album);\n\n String wiki = getWiki(albumLink);\n if (wiki.contains(\"<i>Do you know any background info about this?</i>\\n\\n\"))\n return albumInfo + \"\\n\\n\" + wiki;\n if (wiki.length() > 400)\n wiki = wiki.substring(0, 400) + \" ...\";\n\n albumInfo += \"\\n\\n\" + wiki + \"\\n\\n\" + getLink(albumLink + \"/+wiki\", \" Continue on Last.fm\");\n return albumInfo;\n }", "public void addOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "@Override\r\n public void DisplayAlbumName(String name) {\r\n this.setTitle(name + \" - Photo Viewer\");\r\n }", "public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }", "public String getTitle(){\n return titlesText;\n }", "private String getAlbumName(){\n return getString(R.string.album_name);\n }", "public void listTitles() {\n for (int i = 0; i < books.length; i++) {\n System.out.println(\"The title of book\" + (i + 1) + \": \" + books[i].getTitle());\n }\n }", "public String[] getTitle() {\r\n return title;\r\n }", "public void setOriginalAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public void addOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "void displayAlbums(FilterableAlbum[] albums);", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "public void setOriginalAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALALBUMTITLE, value);\r\n\t}", "void displayFilteredAlbums();", "public String getAlbumName()\n {\n return albumName;\n }", "public static ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "public String getTitle() { return mTitle; }", "public void removeAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public String getTitre() {\n return titre;\n }", "public String getTitre() {\n return titre;\n }", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllAlbumTitle_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), ALBUMTITLE);\r\n\t}", "public static void addAlbumTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "public String getAkadimischerTitel() {\r\n return akadimischerTitel;\r\n }", "public String getTitle() {\n return \"\";\n }", "public abstract CharSequence getTitle();", "public String listTitle();", "@NotNull\n String getTitle();", "public String getCoverArtName();", "public String getTitle() { return title; }", "public String getCaption(){\n return this.caption;\n }", "String getAlbumName()\n {\n return albumName;\n }", "public void setTitre(String titre) {\n this.titre = titre;\n }", "public void setTitre(String titre) {\n this.titre = titre;\n }", "public static void addAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ALBUMTITLE, value);\r\n\t}", "public String getTitle()\n {\n return name;\n }", "public static void displaySubTitles()\r\n {\n }", "public String getTitular() {\r\n\t return this.titular;\r\n\t}", "private static String getFullTitle(JSONObject volumeInfo) throws JSONException {\n String title = volumeInfo.getString(\"title\");\n String subTitle = volumeInfo.optString(\"subtitle\");\n if (!TextUtils.isEmpty(subTitle)) {\n title += \"\\n\" + subTitle;\n }\n return title;\n }", "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "public void showAlbumSongs(String albumTitle) {\n playlistIsRunning = false;\n showSongs(albumPanels.get(albumTitle).getSongPanels());\n }", "public String getTitle() { return this.title; }", "@AutoEscape\n\tpublic String getTitle();" ]
[ "0.71814567", "0.7094571", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.6791983", "0.67710656", "0.6714656", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6669116", "0.6605985", "0.65941715", "0.6579143", "0.6573287", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6569766", "0.6567594", "0.65379375", "0.64909273", "0.6449519", "0.6440189", "0.6432487", "0.6415425", "0.6410366", "0.6395893", "0.6394403", "0.63854367", "0.631381", "0.62991345", "0.6287424", "0.62851304", "0.6270377", "0.6233928", "0.6221636", "0.62097514", "0.6202664", "0.6202664", "0.6202664", "0.6202664", "0.6189759", "0.6170046", "0.6170035", "0.6153307", "0.6151973", "0.61468756", "0.61416066", "0.61355895", "0.61208075", "0.61208075", "0.6117713", "0.61134386", "0.6112024", "0.6108825", "0.6105718", "0.60990655", "0.6097018", "0.60958034", "0.60840476", "0.60764414", "0.60752577", "0.6074528", "0.6074528", "0.60633785", "0.60621023", "0.604612", "0.6044956", "0.60252166", "0.6017266", "0.6017071", "0.6015958", "0.6014092" ]
0.0
-1
Returns true if field track_names is set (has been assigned a value) and false otherwise
public boolean isSetTrack_names() { return this.track_names != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetNames() {\n return this.names != null;\n }", "public boolean isSetNamedAnnotTrack()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(NAMEDANNOTTRACK$38) != 0;\r\n }\r\n }", "public boolean isSongNames() {\n return params.isSongNames();\n }", "public boolean isSetAutoForwardToName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTONAME$12) != 0;\n }\n }", "public boolean isVerifyingNames() {\n return verifyNames;\n }", "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$8) != 0;\n }\n }", "public boolean isSetPhasename() {\n return this.phasename != null;\n }", "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }", "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }", "public boolean isSetFromName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMNAME$4) != 0;\n }\n }", "public Set<String> getTrack_names() {\r\n return this.track_names;\r\n }", "boolean checkTrack (String s) {\n\t\tint n = track.size ();\n\t\tint last = -1;\n\t\tfor (int i=n-1; i>=0; i--) {\n\t\t\tString item = track.elementAt (i);\n\t\t\tif (item.startsWith (\"handleInputValue/\")) {\n\t\t\t\tlast = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (last == -1) {\n\t\t\ttrackReason = \"No handleInputValue in track\";\n\t\t\tshowTrack ();\n\t\t\tLog.finest (\"addTrack: \"+trackReason);\n\t\t\treturn false;\n\t\t}\n\t\tint count = 0;\n\t\tfor (int i=last+1; i<n; i++) {\n\t\t\tString item = track.elementAt (i);\n\t\t\tif (item.startsWith (\"handleInputDirect/\")) count++;\n\t\t}\n\t\tif (count > 1) {\n\t\t\ttrackReason = \"Muliple handleInputDirect after last handleInputValue\";\n\t\t\tLog.finest (\"addTrack: \"+trackReason);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(NAME$0) != 0;\r\n }\r\n }", "public boolean hasName() {\n return fieldSetFlags()[1];\n }", "public boolean isSetFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FRIENDLYNAME$2) != 0;\r\n }\r\n }", "public boolean isSetUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(UNIQUENAME$10) != 0;\r\n }\r\n }", "public boolean hasTracks() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_TRACKS)) {\n // The Mek has tracks\n return true;\n }\n }\n return false;\n }", "public Album setTrack_names(Set<String> track_names) {\r\n this.track_names = track_names;\r\n return this;\r\n }", "@Override\r\n\tprotected boolean isTrackValid(VidesoTrack track) {\n\t\treturn true;\r\n\t}", "public boolean isSetEngName() {\n return this.engName != null;\n }", "public boolean hasName() {\n return fieldSetFlags()[0];\n }", "public boolean hasField(String s)\n {\n int i;\n for (i=0; i<fields.size(); i++)\n {\n String name = (String) fields.elementAt(i);\n if (name.equalsIgnoreCase(s))\n return true;\n }\n return false;\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetName() {\n\t\treturn this.name != null;\n\t}", "public boolean hasField(String fname) {\n boolean result = false;\n\n try {\n cut.getField(fname);\n result = true;\n } catch (Exception e) {\n }\n\n return result;\n }", "public boolean containsTrack(int track) {\n for (int overrideTrack : tracks) {\n if (overrideTrack == track) {\n return true;\n }\n }\n return false;\n }", "public boolean isSetRecord() {\n return this.record != null;\n }", "public boolean isSetRecord() {\n return this.record != null;\n }", "public boolean visible_SetupNameField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_SetupName_txtBx);\r\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public boolean isSetName() {\r\n return this.name != null;\r\n }", "public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(NAME$2) != null;\r\n }\r\n }", "public boolean statsRecorded() {\n\t\treturn !handStats.isEmpty();\n\t}", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean isSetName() {\n return this.name != null;\n }", "public boolean hasField(String name)\n {\n String n = this.getMappedFieldName(name);\n return (n != null)? this.fieldMap.containsKey(n) : false;\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSetFileName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILENAME$0) != 0;\n }\n }", "boolean hasLocationNames();", "boolean hasAutomlObjectTrackingConfig();", "public boolean isSetStoreName() {\r\n return storeName != null;\r\n }", "@Override\n public boolean isSet() {\n return locusLocus != null;\n }", "public boolean isSetArtists() {\r\n return this.artists != null;\r\n }", "public boolean isSetSenderHeaderName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SENDERHEADERNAME$24) != 0;\n }\n }", "public boolean isSetColumnNames() {\r\n return this.columnNames != null;\r\n }", "public boolean isSetName() {\n return this.Name != null;\n }", "public boolean hasValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn false;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t}\n\t}", "public boolean isVehicleNameFieldPresent() {\r\n\t\treturn isElementPresent(vehicleNameField, SHORTWAIT);\r\n\t}", "public boolean isSetLocal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(LOCAL$0) != 0;\r\n }\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "boolean hasField4();", "public boolean isNameSet( ) {\n \t\t\treturn id == null;\n \t\t}", "public boolean isSetColumn_names() {\n return this.column_names != null;\n }", "@Override\n\tpublic boolean hasProperty(String fieldName, String value) {\n\t\tString[] fields = doc.getValues(fieldName);\n\t\tif (fields != null) {\n\t\t\tfor (String field : fields) {\n\t\t\t\tif (value.equals(field)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean hasUsername() {\n return fieldSetFlags()[1];\n }", "boolean hasField3();", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(URLNAME$12) != 0;\r\n }\r\n }", "public boolean hasField(String fname, String value) {\n boolean result = false;\n\n try {\n Field f = cut.getField(fname);\n String fValue = (String) f.get(null);\n if (fValue.equals(value)) {\n result = true;\n }\n } catch (Exception e) {\n }\n\n return result;\n }", "public boolean isSetPdb()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PDB$28) != 0;\r\n }\r\n }", "public boolean isSetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(METADATA$0) != 0;\n }\n }", "public boolean isSetAutoForwardTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTRIGGEREDSEND$16) != 0;\n }\n }", "public boolean hasField(String fname, WindowState value) {\n boolean result = false;\n\n try {\n Field f = cut.getField(fname);\n WindowState fValue = (WindowState) f.get(null);\n if (fValue.equals(value)) {\n result = true;\n }\n } catch (Exception e) {\n }\n\n return result;\n }", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean isSetDisplayName();", "public boolean hasValues()\r\n\t{\r\n\t\t\r\n\t\tif ((this.criteriaType != null && !this.criteriaType.trim().equals(\"\"))\r\n\t\t\t\t&& (this.criteriaValues != null && !this.criteriaValues.isEmpty()))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "public boolean isSetTeamName() {\n return this.teamName != null;\n }", "boolean hasField0();", "public boolean isSetUsername() {\n\t\treturn this.username != null;\n\t}", "boolean hasSendPlayerName();", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetString_vals() {\n return this.string_vals != null;\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasCampaignName();", "public final boolean isGroupNameSetted() {\n\t\treturn engine.isPropertySetted(Properties.GROUP_NAME);\n\t}", "public boolean isSetRealName() {\n\t\treturn this.realName != null;\n\t}", "public boolean getIsTrack(){\n return isTrack;\n }", "public boolean isSetStr()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STR$0) != 0;\r\n }\r\n }", "public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }" ]
[ "0.686053", "0.6833472", "0.63845134", "0.61962336", "0.61512125", "0.6110976", "0.60979843", "0.6068947", "0.6068947", "0.6051339", "0.6045103", "0.60269517", "0.6020223", "0.5995987", "0.59709406", "0.5925214", "0.5909275", "0.59063834", "0.58688444", "0.58530533", "0.58352655", "0.579682", "0.5782124", "0.5782124", "0.5770647", "0.5769011", "0.5742014", "0.5738615", "0.5738615", "0.57361585", "0.5735166", "0.57303065", "0.572306", "0.57203", "0.57136565", "0.57136565", "0.57136565", "0.57136565", "0.56981665", "0.5687653", "0.5683346", "0.5665444", "0.5661966", "0.5656897", "0.5642917", "0.56399286", "0.5637114", "0.5621128", "0.5620264", "0.5616992", "0.56010115", "0.5594883", "0.55922544", "0.5583988", "0.5583988", "0.5569004", "0.55657756", "0.55579937", "0.5555028", "0.55246884", "0.55234575", "0.5514237", "0.5514237", "0.5514237", "0.5514237", "0.5514237", "0.5514237", "0.55128753", "0.55109113", "0.54968643", "0.54934585", "0.5493107", "0.5492092", "0.5488297", "0.5488297", "0.54770094", "0.54770094", "0.54765856", "0.54765856", "0.5470976", "0.5470205", "0.5467867", "0.54668003", "0.54658383", "0.54584754", "0.54565495", "0.5454122", "0.54510427", "0.54503053", "0.54503053", "0.54503053", "0.54503053", "0.54503053", "0.54503053", "0.54400676", "0.54392046", "0.5435835", "0.54335696", "0.54298073", "0.5424262" ]
0.8508908
0
La description de cet album. La description est extraite de Wikipedia et contient de la syntaxe Mediawiki
public String getText() { return this.text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo += elements.get(1).text() + \" )\\n\\n\" + getScrobbles(album);\n\n String wiki = getWiki(albumLink);\n if (wiki.contains(\"<i>Do you know any background info about this?</i>\\n\\n\"))\n return albumInfo + \"\\n\\n\" + wiki;\n if (wiki.length() > 400)\n wiki = wiki.substring(0, 400) + \" ...\";\n\n albumInfo += \"\\n\\n\" + wiki + \"\\n\\n\" + getLink(albumLink + \"/+wiki\", \" Continue on Last.fm\");\n return albumInfo;\n }", "public void setDescription(String descr);", "void showFullDesc(String desc, String title);", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "public void setDescription(String desc);", "public abstract String getDescription ( );", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getContentDescription();", "public String getDescription(String lang) {\n/* 188 */ return getLangAlt(lang, \"description\");\n/* */ }", "public String getDescription ();", "String getDesc();", "java.lang.String getDesc();", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();" ]
[ "0.6609474", "0.64808494", "0.64388424", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.639141", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6374704", "0.6317229", "0.62777716", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.62712663", "0.6256368", "0.6256368", "0.6256368", "0.6256368", "0.6256368", "0.6256368", "0.6256368", "0.6256368", "0.62489396", "0.62288964", "0.6222046", "0.62132406", "0.6153346", "0.6152521", "0.6152521", "0.6152521", "0.6152521", "0.6152521", "0.6152521", "0.6149515", "0.6149515", "0.6149515", "0.6149515", "0.6149515", "0.6149515" ]
0.0
-1
La description de cet album. La description est extraite de Wikipedia et contient de la syntaxe Mediawiki
public Album setText(String text) { this.text = text; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbumInfo() {\n String albumInfo = \"\";\n Elements elements = album.getElementsByClass(\"header-new-title\");\n albumInfo += \"<strong>\" + elements.text() + \"</strong> ( \";\n elements = album.getElementsByClass(\"catalogue-metadata-description\");\n albumInfo += elements.get(1).text() + \" )\\n\\n\" + getScrobbles(album);\n\n String wiki = getWiki(albumLink);\n if (wiki.contains(\"<i>Do you know any background info about this?</i>\\n\\n\"))\n return albumInfo + \"\\n\\n\" + wiki;\n if (wiki.length() > 400)\n wiki = wiki.substring(0, 400) + \" ...\";\n\n albumInfo += \"\\n\\n\" + wiki + \"\\n\\n\" + getLink(albumLink + \"/+wiki\", \" Continue on Last.fm\");\n return albumInfo;\n }", "public void setDescription(String descr);", "void showFullDesc(String desc, String title);", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "public void setDescription(String desc);", "public abstract String getDescription ( );", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getContentDescription();", "public String getDescription(String lang) {\n/* 188 */ return getLangAlt(lang, \"description\");\n/* */ }", "public String getDescription ();", "String getDesc();", "java.lang.String getDesc();", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();" ]
[ "0.66080225", "0.6479853", "0.64373976", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.63894546", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6372698", "0.6316075", "0.6276505", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62696993", "0.62550324", "0.62550324", "0.62550324", "0.62550324", "0.62550324", "0.62550324", "0.62550324", "0.62550324", "0.62473613", "0.62274843", "0.62205756", "0.6211598", "0.6151803", "0.6151094", "0.6151094", "0.6151094", "0.6151094", "0.6151094", "0.6151094", "0.6147724", "0.6147724", "0.6147724", "0.6147724", "0.6147724", "0.6147724" ]
0.0
-1
Returns true if field text is set (has been assigned a value) and false otherwise
public boolean isSetText() { return this.text != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }", "public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean hasTextValue() {\r\n return getTextValue() != null;\r\n // return StringUtils.isNotBlank(getTextValue());\r\n }", "public boolean isSetText() {\n return this.text != null;\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 }", "public final boolean hasTextForm ()\r\n {\r\n return isSpecialForm() && !specialForm().isValue();\r\n }", "private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }", "public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "boolean isSetValueString();", "private boolean campiVuoti(){\n return nomeVarTextField.getText().equals(\"\") || tipoVarComboBox.getSelectedIndex() == -1;\n }", "public boolean isTextValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_TEXT);\n }", "boolean hasStringValue();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CIPHERTEXT:\n return isSetCiphertext();\n }\n throw new IllegalStateException();\n }", "public boolean isTextLocked()\n {\n return textLocked.isSet(field_1_options);\n }", "private boolean fieldsFilled(){\n return !editTextEmail.getText().toString().isEmpty() &&\n !editTextPassword.getText().toString().isEmpty();\n }", "public boolean isDisplayed_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isDisplayed()) { return true; } else { return false;} \r\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case TOKEN_INDEX:\n return isSetTokenIndex();\n case TEXT:\n return isSetText();\n case TEXT_SPAN:\n return isSetTextSpan();\n case RAW_TEXT_SPAN:\n return isSetRawTextSpan();\n case AUDIO_SPAN:\n return isSetAudioSpan();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean check(){\n for(TextField texts:textFields){\n if(texts.getText().isEmpty()){\n return false;\n }\n }\n return true;\n }", "boolean isSetValue();", "boolean isSetValue();", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NOME:\n return isSetNome();\n }\n throw new IllegalStateException();\n }", "protected boolean isFieldEmpty(EditText text) {\n if (text.getText().toString().trim().length() == 0) {\n text.setError(getString(R.string.empty_field));\n text.requestFocus();\n return true;\n }\n return false;\n }", "private boolean check()\n\t{\n\t\tComponent[] comp = contentPanel.getComponents();\n\t\tint check=0;\n\t\tfor(Component c:comp)\n\t\t{\n\t\t\tif(c instanceof JTextField)\n\t\t\t{\n\t\t\t\tif(((JTextField)c).getText().trim().equals(\"\"))\n\t\t\t\t\tcheck++;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn check==0 ? true : false;\n\t}", "@Override\n\tpublic boolean verifyText(JTextField arg0, String arg1) {\n\t\treturn true;\n\t}", "public boolean isSetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TEXT$18) != 0;\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "private boolean estValide() {\n if (textFieldNom.getText() == null || textFieldNom.getText().isEmpty() || comboBoxVisibilite.getSelectionModel().getSelectedItem() == null\n || comboBoxType.getSelectionModel().getSelectedItem() == null) {\n erreurLabel.setText(\"Tous les champs doivent etre remplis\");\n return false;\n }\n erreurLabel.setText(\"\");\n return true;\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(title, moduleCode, credits, memo, description, semester, tags);\n }", "protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "private boolean isEmptyField (EditText editText){\n boolean result = editText.getText().toString().length() <= 0;\n if (result)\n Toast.makeText(UserSignUp.this, \"Fill all fields!\", Toast.LENGTH_SHORT).show();\n return result;\n }", "private Boolean isFieldEmpty(EditText field) {\n return field.getText().toString().trim().equals(\"\");\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n }\n throw new IllegalStateException();\n }", "public Boolean EsDefecto()\n {\n return (m_szTextoDefecto.isEmpty()) || (getText().toString().trim().equals(m_szTextoDefecto));\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }", "private boolean textFieldsChange() {\r\n\r\n if (!passwordEditText.getText().toString().equals(db.getSetting(\"password\").getValue()))\r\n return true;\r\n if (!idEditText.getText().toString().equals(db.getSetting(\"id\").getValue())) {\r\n return true;\r\n }\r\n if (deleteEntriesCheckBox.isChecked() != db.getSetting(\"notDeleteAfterTransmission\").getValue().equals(\"t\")) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean hasField3();", "boolean hasText();", "boolean hasText();", "boolean hasText();", "boolean hasText();", "public boolean isDataValid() {\r\n boolean dataValid = true;\r\n\r\n if (this.needDefaultValue) {\r\n try {\r\n this.getDefaultValue();\r\n } catch (Exception e) {\r\n dataValid = false;\r\n }\r\n }\r\n\r\n if (this.nameTextField.getText() == null || this.nameTextField.getText().length() == 0) {\r\n dataValid = false;\r\n }\r\n\r\n return dataValid;\r\n\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }", "private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "@Override\r\n public boolean checkNull() {\r\n // Check if the two textfields are null or default \r\n return newIng_ingName.getText().equals(\"\") || newIng_ingCal.getText().equals(\"\");\r\n }", "private boolean isInvalid(JTextField campo) {\n return campo.getText().isEmpty();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }" ]
[ "0.7541731", "0.7526784", "0.75057566", "0.75057566", "0.74317765", "0.709548", "0.70288384", "0.7011679", "0.69644994", "0.6907379", "0.68655246", "0.68457085", "0.6830692", "0.68117344", "0.6811571", "0.67032564", "0.667429", "0.6641774", "0.6622963", "0.6620911", "0.6592283", "0.65842664", "0.6581094", "0.6581094", "0.6576925", "0.6519073", "0.6519073", "0.6503441", "0.64904165", "0.6489774", "0.6486885", "0.64815974", "0.64815974", "0.64501405", "0.6412918", "0.6412506", "0.63849604", "0.63749146", "0.6361882", "0.6351836", "0.6347445", "0.6347445", "0.6334588", "0.63212574", "0.63204783", "0.63204783", "0.63204783", "0.63204783", "0.63115114", "0.63030696", "0.63030696", "0.629815", "0.62977594", "0.6275657", "0.62742674", "0.62687033", "0.62598467", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.6241145", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156", "0.62378156" ]
0.7116472
5
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ID: return isSetId(); case NAME: return isSetName(); case ARTISTS: return isSetArtists(); case RELEASE_DATE: return isSetRelease_date(); case GENRES: return isSetGenres(); case TRACK_NAMES: return isSetTrack_names(); case TEXT: return isSetText(); } throw new IllegalStateException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "boolean hasField4();", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldId();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "boolean hasField0();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_ID:\n return isSetParentId();\n case TYPE:\n return isSetType();\n case VALUE:\n return isSetValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RELATED_ID:\n return isSetRelatedId();\n case COMPANY_ID:\n return isSetCompanyId();\n case COMPANY_GROUP_ID:\n return isSetCompanyGroupId();\n case MACHINE_ID:\n return isSetMachineId();\n case ACTIVE_START_TIMESTAMP:\n return isSetActiveStartTimestamp();\n case ACTIVED_END_TIMESTAMP:\n return isSetActivedEndTimestamp();\n case MACHINE_INNER_IP:\n return isSetMachineInnerIP();\n case MACHINE_OUTER_IP:\n return isSetMachineOuterIP();\n case CREATE_TIMESTAMP:\n return isSetCreateTimestamp();\n case LASTMODIFY_TIMESTAMP:\n return isSetLastmodifyTimestamp();\n }\n throw new IllegalStateException();\n }", "boolean hasField1();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case X:\n return isSetX();\n case Y:\n return isSetY();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case EXCEPTION_ID:\n return isSetExceptionId();\n case USER_ID:\n return isSetUserId();\n case REPORT_DATE:\n return isSetReportDate();\n case UN_ASSURE_CONDITION:\n return isSetUnAssureCondition();\n case HOUSE_PROPERY_CONDITION:\n return isSetHouseProperyCondition();\n case REMARK:\n return isSetRemark();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATE_ID:\n return isSetCreateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n case UPDATE_ID:\n return isSetUpdateId();\n case PROJECT_ID:\n return isSetProjectId();\n case LEGAL_LIST:\n return isSetLegalList();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }" ]
[ "0.7907901", "0.7907901", "0.7833246", "0.78040636", "0.7793545", "0.77811927", "0.77811927", "0.77811927", "0.77811927", "0.76476574", "0.75487775", "0.75456387", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.754349", "0.75252956", "0.75205344", "0.75205344", "0.7519845", "0.7517962", "0.7517962", "0.7517962", "0.7517962", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.751781", "0.7508511", "0.74794304", "0.7463957", "0.7451302", "0.7447322", "0.7447322", "0.743344", "0.7413083", "0.7395081", "0.73936796", "0.738756", "0.7382807", "0.7381033", "0.7374877", "0.73736453", "0.7354578", "0.73480624", "0.73478544", "0.7345956", "0.7345956", "0.7344986", "0.7338739", "0.7333971", "0.7333511", "0.7325345", "0.73248893", "0.7320922", "0.7319924", "0.7319517", "0.7310419", "0.7310419", "0.7310419", "0.7310419", "0.7310419" ]
0.73584396
81
check for required fields check for substruct validity
public void validate() throws org.apache.thrift.TException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetResourcePlanName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resourcePlanName' is unset! Struct:\" + toString());\n }\n\n if (!isSetPoolPath()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'poolPath' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (emailId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'emailId' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (code == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'code' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (op == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'op' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (parseId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'parseId' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'constituentIndex' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (parseId != null) {\n parseId.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUuidFicha()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'uuidFicha' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (headerTransport != null) {\n headerTransport.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (statusCode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statusCode' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void fillMandatoryFields() {\n\n }", "public void checkFields(){\n }", "public void validate() throws org.apache.thrift.TException {\n if (tableType == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableType' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'numCols' because it's a primitive and you chose the non-beans generator.\n // alas, we cannot check 'numClusteringCols' because it's a primitive and you chose the non-beans generator.\n if (tableName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableName' was not present! Struct: \" + toString());\n }\n if (dbName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'dbName' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (hdfsTable != null) {\n hdfsTable.validate();\n }\n if (hbaseTable != null) {\n hbaseTable.validate();\n }\n if (dataSourceTable != null) {\n dataSourceTable.validate();\n }\n }", "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }", "public static boolean checkMandatoryFields(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }", "public static boolean checkMandatoryFieldsRegistration(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "private void validateData() {\n }", "public interface FieldValidator {\n static boolean validateStringIfPresent(Object o, int len) {\n return o == null || o instanceof String && !((String) o).isEmpty() && ((String) o).length() < len;\n }\n\n static boolean validateString(Object o, int len) {\n return !(o == null || !(o instanceof String) || ((String) o).isEmpty() || (((String) o).length() > len));\n }\n\n static boolean validateInteger(Object o) {\n if (o == null) {\n return false;\n }\n try {\n Integer.valueOf(o.toString());\n } catch (NumberFormatException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateDateWithFormat(Object o, DateTimeFormatter formatter, boolean allowedInPast) {\n if (o == null) {\n return false;\n }\n try {\n LocalDate date = LocalDate.parse(o.toString(), formatter);\n if (!allowedInPast) {\n return date.isAfter(LocalDate.now());\n }\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateJsonIfPresent(Object o) {\n return o == null || o instanceof JsonObject && !((JsonObject) o).isEmpty();\n }\n\n static boolean validateJson(Object o) {\n return !(o == null || !(o instanceof JsonObject) || ((JsonObject) o).isEmpty());\n }\n\n static boolean validateJsonArrayIfPresent(Object o) {\n return o == null || o instanceof JsonArray && !((JsonArray) o).isEmpty();\n }\n\n static boolean validateJsonArray(Object o) {\n return !(o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty());\n }\n\n static boolean validateDeepJsonArrayIfPresent(Object o, FieldValidator fv) {\n if (o == null) {\n return true;\n } else if (!(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n } else {\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n }\n return true;\n }\n\n static boolean validateDeepJsonArray(Object o, FieldValidator fv) {\n if (o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n }\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n return true;\n }\n\n static boolean validateBoolean(Object o) {\n return o != null && o instanceof Boolean;\n }\n\n static boolean validateBooleanIfPresent(Object o) {\n return o == null || o instanceof Boolean;\n }\n\n static boolean validateUuid(Object o) {\n try {\n UUID uuid = UUID.fromString((String) o);\n return true;\n } catch (IllegalArgumentException e) {\n return false;\n }\n }\n\n static boolean validateUuidIfPresent(String o) {\n return o == null || validateUuid(o);\n }\n\n boolean validateField(Object value);\n\n Pattern EMAIL_PATTERN =\n Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\");\n\n static boolean validateEmail(Object o) {\n Matcher matcher = EMAIL_PATTERN.matcher((String) o);\n return matcher.matches();\n }\n}", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean checkDataStructure(Data data) throws ImportitException {\n\t\tdata.setDatabase(39);\n\t\tdata.setGroup(3);\n\t\tboolean validDb = checkDatabaseName(data);\n\t\tboolean validHead = false;\n\t\tboolean validTable = false;\n\t\tboolean existImportantFields = false;\n\t\tif (validDb) {\n\t\t\tList<Field> headerFields = data.getHeaderFields();\n\t\t\tList<Field> tableFields = data.getTableFields();\n\t\t\tvalidHead = false;\n\t\t\tvalidTable = false;\n\t\t\ttry {\n\n\t\t\t\tvalidHead = checkWarehouseGroupProperties(headerFields, data.getOptionCode().useEnglishVariables());\n\t\t\t\tvalidTable = checkFieldList(tableFields, 39, 3, false, data.getOptionCode().useEnglishVariables());\n\t\t\t\tString[] checkDataCustomerPartProperties = checkDataWarehouseGroupProperties(data);\n\t\t\t\texistImportantFields = checkDataCustomerPartProperties.length == 2;\n\n\t\t\t} catch (ImportitException e) {\n\t\t\t\tlogger.error(e);\n\t\t\t\tdata.appendError(Util.getMessage(\"err.structure.check\", e.getMessage()));\n\t\t\t}\n\t\t}\n\t\tif (validTable && validHead && validDb & existImportantFields) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}", "@Override\n\tpublic boolean isValid(SchemaField field, Data data) {\n\t\treturn false;\n\t}", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "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\tpublic void testCheckForEmptyFields() {\n\t\t\n\t\t// Case 1: when all fields are present\n\t\tRequestData requestDataObj1 = new RequestData();\n\t\trequestDataObj1.setDomain(\"PBTV\");\n\t\trequestDataObj1.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj1.setSourceSystemName(\"CDI\");\n\t\tboolean expectedResponse1 = true;\n\t\tboolean response1 = tokenisationMainObj.checkForEmptyFields(requestDataObj1);\n\t\tassertEquals(response1, expectedResponse1);\n\n\t\t// Case 2: when any of them is empty\n\t\tRequestData requestDataObj2 = new RequestData();\n\t\trequestDataObj2.setDomain(\"PBTV\");\n\t\trequestDataObj2.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj2.setSourceSystemName(\"\");\n\t\tboolean expectedResponse2 = false;\n\t\tboolean response2 = tokenisationMainObj.checkForEmptyFields(requestDataObj2);\n\t\tassertEquals(response2, expectedResponse2);\n\t}", "public static boolean checkMandatoryFieldsUpdateUser(Object obj) {\n\n\t\tif (obj instanceof UpdateUserDTO) {\n\n\t\t\tUpdateUserDTO updateUserDTO = (UpdateUserDTO) obj;\n\n\t\t\tif (updateUserDTO.getFirstName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getLastName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getAddress1().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getCity().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getState().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getZipCode().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getNewEmailId().trim().isEmpty()\n\n\t\t\t) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public abstract List<String> requiredFields();", "public void partValidation () throws ValidationException {\n\n // checks for a name to be entered\n if (getPartName().isEmpty() || !getPartName().matches(\"^[a-zA-Z0-9_ ]*$\")){\n throw new ValidationException(\"Name field is invalid. Can't be blank. Must be alphanumeric\");\n\n // checks that minimum stock isn't less than 0\n }else if (getPartStockMin() < 0) {\n throw new ValidationException(\"Inventory minimum can't be less than 0\");\n\n } else if (getPartStockMax() < 0) {\n throw new ValidationException(\"Inventory max must be greater than 0\");\n\n // checks to make sure max stock is not less than the minimum\n }else if (getPartStockMax() < getPartStockMin()) {\n throw new ValidationException(\"Max inventory can't be less than the minimum\");\n\n // checks that stock on hadn is not less than the minimum\n } else if (getPartStock() < getPartStockMin()){\n throw new ValidationException(\"Part inventory can't be less than the minimum\");\n\n // part price can't be 0 or less\n }else if (getPartPrice() < 0){\n throw new ValidationException(\"Price has to be a positive number\");\n\n // max stock can't be less than what you already have\n }else if (getPartStockMax() < getPartStock()){\n throw new ValidationException(\"Max inventory can't be less than what you have on hand\");\n\n // check stock is between min and max\n } else if (getPartStock() < getPartStockMin() || getPartStock() > getPartStockMax()){\n throw new ValidationException(\"Inventory level must be between min and max\");\n\n }\n }", "private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }", "void validateState() throws EPPCodecException {\n // add/chg/rem\n if ((addDsData == null) && (chgDsData == null) && (remKeyTag == null)) {\n throw new EPPCodecException(\"EPPSecDNSExtUpdate required attribute missing\");\n }\n \n // Ensure there is only one non-null add, chg, or rem\n\t\tif (((addDsData != null) && ((chgDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((chgDsData != null) && ((addDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((remKeyTag != null) && ((chgDsData != null) || (addDsData != null)))) {\n\t\t\tthrow new EPPCodecException(\"Only one add, chg, or rem is allowed\");\n\t\t}\n }", "protected void doExtraValidation(Properties props) {\n /* nothing by default */\n }", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "boolean hasFieldNested();", "private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }", "public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }", "@Override\n public boolean validate() throws ValidationException\n {\n boolean isValid = super.validate();\n return checkAAField() && isValid;\n }", "boolean hasNestedField();", "protected abstract List<TemporalField> validFields();", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }", "@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}", "boolean hasNestedOuterField();", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "@Override\n public JsonNode required(String fieldName) {\n return _reportRequiredViolation(\"Node of type %s has no fields\",\n ClassUtil.nameOf(getClass()));\n }", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Override\r\n public void validate() {\r\n }", "public boolean hasFieldErrors();", "private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}", "boolean valid() {\n boolean valid = true;\n\n if (!isAgencyLogoPathValid()) {\n valid = false;\n }\n if (!isMemFieldValid()) {\n valid = false;\n }\n if (!isLogNumFieldValid()) {\n valid = false;\n }\n\n return valid;\n }", "private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }", "public void check(ResourceMemberInterface resource) {\n\t\tassert resource.getParent() != null;\r\n\t\tassert resource.getName() != null;\r\n\t\tassert resource.getLabel() != null;\r\n\t\tassert resource.getTLModelObject() != null;\r\n\t\tassert resource.getTLModelObject().getListeners() != null;\r\n\t\tassert !resource.getTLModelObject().getListeners().isEmpty();\r\n\t\tassert Node.GetNode(resource.getTLModelObject()) == resource;\r\n\t\tresource.getFields(); // don't crash\r\n\t}", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}", "public void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif (MappingClassElement.VERSION_CONSISTENCY == \n\t\t\t\t\tmappingClass.getConsistencyLevel())\n\t\t\t\t{\n\t\t\t\t\tMappingFieldElement versionField =\n\t\t\t\t\t\t validateVersionFieldExistence();\n\t\t\t\t\tString className = mappingClass.getName();\n\t\t\t\t\tString fieldName = versionField.getName();\n\t\t\t\t\tString columnName = null;\n\t\t\t\t\tColumnElement column = null;\n\n\t\t\t\t\tif (versionField instanceof MappingRelationshipElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_relationship_not_allowed\");//NOI18N\n\t\t\t\t\t}\n\t\t\t\t\telse if (MappingFieldElement.GROUP_DEFAULT != \n\t\t\t\t\t\tversionField.getFetchGroup()) // must be in DFG\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_fetch_group_invalid\");//NOI18N\n\t\t\t\t\t}\n\n\t\t\t\t\tvalidatePersistenceFieldAttributes(className, fieldName);\n\t\t\t\t\tcolumnName = validateVersionFieldMapping(versionField);\n\t\t\t\t\tcolumn = validateTableMatch(className, fieldName, columnName);\n\t\t\t\t\tvalidateColumnAttributes(className, fieldName, column);\n\t\t\t\t}\n\t\t\t}", "private boolean checkIfHasRequiredFields(BoxItem shareItem){\n return shareItem.getSharedLink() != null && shareItem.getAllowedSharedLinkAccessLevels() != null;\n }", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "boolean isValidSubResource(Object fieldValue) {\n return fieldValue != null\n && BaseEntity.class.isAssignableFrom(fieldValue.getClass())\n && fieldValue.getClass().getDeclaredAnnotation(Sensible.class) == null;\n }", "void calculateValidationRequirement() {\n this.elementRequiringJSR303Validation = Util.hasValidation(this.type);\n\n // Check for JSR 303 or @OnValidate annotations in default group\n if (Util.requiresDefaultValidation(this.type)) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any simple index uniqueness constraints\n if (!this.uniqueConstraintFields.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any composite index uniqueness constraints\n if (!this.uniqueConstraintCompositeIndexes.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n }", "protected void validate() {\n // no op\n }", "protected boolean isValidData() {\n return true;\n }", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public boolean isRequired();", "public void validate() throws org.apache.thrift.TException {\n if (levelInfo != null) {\r\n levelInfo.validate();\r\n }\r\n }", "public void validate() {\n\t\tClass<?> clazz = this.getModelObject().getClass();\n\t\tif (!ArenaUtils.isObservable(clazz)) {\n\t\t\tthrow new RuntimeException(\"La clase \" + clazz.getName() + \" no tiene alguna de estas annotations \" + ArenaUtils.getRequiredAnnotationForModels() + \" que son necesarias para ser modelo de una vista en Arena\");\n\t\t}\n\t\t// TODO: Validate children bindings?\n\t}", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void validate() {\n\t}", "void checkValid();", "private void validateInputParameters(){\n\n }", "public boolean validate(Struct data) {\r\n\t\tif (data == null)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tif (this.options.size() == 0) {\r\n\t\t\tOperationContext.get().errorTr(437, data);\t\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (this.options.size() == 1) \r\n\t\t\treturn this.options.get(0).validate(data);\r\n\t\t\r\n\t\tfor (DataType dt : this.options) {\r\n\t\t\tif (dt.match(data)) \r\n\t\t\t\treturn dt.validate(data);\r\n\t\t}\r\n\t\t\r\n\t\tOperationContext.get().errorTr(438, data);\t\t\t\r\n\t\treturn false;\r\n\t}", "private void validate() throws BaseException\n {\n boolean okay = true;\n\n //TODO: check the bases in seq for validity\n // If the type is RNA, the base T is not allowed\n // If the type is DNA, the base U is not allowed\n // If a disallowed type is present, set okay to false.\n \n if (!okay)\n {\n throw new BaseException();\n }\n }", "@Override\r\n\tprotected void validate() {\n\t}", "public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }", "public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }", "public void validate() {}" ]
[ "0.75401354", "0.74719286", "0.7333375", "0.7304861", "0.72982836", "0.729518", "0.72577775", "0.7225706", "0.71371984", "0.7129901", "0.7116786", "0.7092598", "0.70728713", "0.70518136", "0.70367175", "0.70314413", "0.69580764", "0.690188", "0.68602306", "0.6692948", "0.66799486", "0.66016793", "0.6531198", "0.6201798", "0.61862105", "0.6125509", "0.60847056", "0.6062816", "0.6039728", "0.600999", "0.59966576", "0.5976531", "0.59758466", "0.5965871", "0.5947064", "0.59223855", "0.5922278", "0.58906883", "0.58834726", "0.5867908", "0.5825018", "0.58205366", "0.57992554", "0.5780987", "0.57802767", "0.5757422", "0.5754295", "0.5752983", "0.57528615", "0.57414174", "0.5738411", "0.57320136", "0.57320136", "0.57320136", "0.5725357", "0.5719012", "0.5706793", "0.5690102", "0.5678541", "0.5659636", "0.5639797", "0.5627573", "0.56135464", "0.5606204", "0.5589754", "0.55717397", "0.5568869", "0.5565506", "0.55608743", "0.55607665", "0.5547348", "0.5544268", "0.55411816", "0.55269957", "0.5522637", "0.5516646", "0.5516371", "0.55138063", "0.55137813", "0.5500658", "0.5499726", "0.54987335", "0.5498394", "0.5496379", "0.54960924", "0.5473159", "0.54723763", "0.54722196", "0.546883", "0.54670763", "0.54607475", "0.54482555", "0.5445599", "0.5433513", "0.54323035", "0.54323", "0.542701", "0.54248434", "0.54239476", "0.5421569", "0.5419966" ]
0.0
-1
Takes the note and duration and adds them to the variable
public Note(char n, int dur) { note = n; duration = dur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;", "void note(float start, float duration, float freq){\n\t out.playNote(start,duration,freq); \n\t }", "void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n throws IllegalArgumentException;", "Posn getDuration();", "@Override\n\tpublic String toString() {\n\t\treturn note + \" \" + duration + (duration == 1 ? \" Quaver\" : \" Crotchet\");\n\t}", "@Override\n public void addNote(int startTime, int duration, Pitch pitch, Octave octave) {\n List<Note> notes = new ArrayList<>();\n Note newNote = new SimpleNote(pitch, octave, startTime, duration);\n notes.add(newNote);\n\n if (this.notes.get(startTime) == null) {\n this.notes.put(startTime, notes);\n } else {\n List<Note> oldList = this.notes.remove(startTime);\n oldList.addAll(notes);\n this.notes.put(startTime, oldList);\n }\n\n }", "private static StringBuilder appendNoteValueAndDuration(StringBuilder inputBuilder, byte noteValue, double noteDuration){\r\n \tinputBuilder.append(\"[\");\r\n \tinputBuilder.append(noteValue);\r\n \tinputBuilder.append(\"]/\");\r\n \tinputBuilder.append(noteDuration);\r\n \tinputBuilder.append(\" \");\r\n \treturn inputBuilder;\r\n }", "public NoteDuration getNoteDuration(int duration)\n\t{\n\t\tint whole = quarternote * 4;\n\t\t//\t\t 1 = 32/32\n\t\t//\t\t 3/4 = 24/32\n\t\t//\t\t 1/2 = 16/32\n\t\t//\t\t 3/8 = 12/32\n\t\t//\t\t 1/4 = 8/32\n\t\t//\t\t 3/16 = 6/32\n\t\t//\t\t 1/8 = 4/32 = 8/64\n\t\t//\t\t triplet = 5.33/64\n\t\t//\t\t 1/16 = 2/32 = 4/64\n\t\t//\t\t 1/32 = 1/32 = 2/64\n\n\t\tif (duration >= 28 * whole / 32)\n\t\t return NoteDuration.Whole;\n\t\telse if (duration >= 20 * whole / 32)\n\t\t return NoteDuration.DottedHalf;\n\t\telse if (duration >= 14 * whole / 32)\n\t\t return NoteDuration.Half;\n\t\telse if (duration >= 10 * whole / 32)\n\t\t return NoteDuration.DottedQuarter;\n\t\telse if (duration >= 7 * whole / 32)\n\t\t return NoteDuration.Quarter;\n\t\telse if (duration >= 5 * whole / 32)\n\t\t return NoteDuration.DottedEighth;\n\t\telse if (duration >= 6 * whole / 64)\n\t\t return NoteDuration.Eighth;\n\t\telse if (duration >= 5 * whole / 64)\n\t\t return NoteDuration.Triplet;\n\t\telse if (duration >= 3 * whole / 64)\n\t\t return NoteDuration.Sixteenth;\n\t\telse if (duration >= 2 * whole / 64)\n\t\t return NoteDuration.ThirtySecond;\n\t\telse if (duration >= whole / 64)\n\t\t return NoteDuration.SixtyFour; // TODO : EXTEND UNTIL 1/128 to be able to extract the onset in SYMBOLIC representation\n\t\telse if (duration >= whole / 128)\n\t\t return NoteDuration.HundredTwentyEight;\n\t\telse\n\t\t return NoteDuration.ZERO;\n\t}", "public double getTime() { return duration; }", "public int getDuration() { return duration; }", "public int getDuration() {return this.duration;}", "public void setDuration(int val){this.duration = val;}", "java.lang.String getDuration();", "@Override\n\tpublic void setDuration(Duration duration) {\n\t\tfor (NoteBuilder builder : this) {\n\t\t\tbuilder.setDuration(duration);\n\t\t}\n\t\tthis.duration = duration;\n\t}", "public int durationToTime(NoteDuration dur)\n\t{\n\t\tint eighth = quarternote / 2;\n\t\tint sixteenth = eighth / 2;\n\n\t\tswitch (dur)\n\t\t{\n\t\t\tcase Whole:\n\t\t\t\treturn quarternote * 4;\n\t\t\tcase DottedHalf:\n\t\t\t\treturn quarternote * 3;\n\t\t\tcase Half:\n\t\t\t\treturn quarternote * 2;\n\t\t\tcase DottedQuarter:\n\t\t\t\treturn 3 * eighth;\n\t\t\tcase Quarter:\n\t\t\t\treturn quarternote;\n\t\t\tcase DottedEighth:\n\t\t\t\treturn 3 * sixteenth;\n\t\t\tcase Eighth:\n\t\t\t\treturn eighth;\n\t\t\tcase Triplet:\n\t\t\t\treturn quarternote / 3;\n\t\t\tcase Sixteenth:\n\t\t\t\treturn sixteenth;\n\t\t\tcase ThirtySecond:\n\t\t\t\treturn sixteenth / 2;\n\t\t\tcase HundredTwentyEight:\n\t\t\t\treturn quarternote / 32;\n\t\t\tdefault:\n\t\t\t\treturn 0;\n\t\t}//end switch\n\t}", "long getDuration();", "public int getDuration();", "public void setDuration( Long duration );", "int getDuration();", "int getDuration();", "void setDuration(int duration);", "CompositionBuilder<T> addNote(int start, int end, int instrument, int pitch, int volume);", "public void setDuration(int duration){\n this.duration = duration;\n }", "long duration();", "public void addNote()\n {\n String stringNote;\n char actualNote;\n int beat;\n \n System.out.print(\"Enter the note > \"); //gets the note from user\n stringNote = in.nextLine();\n actualNote = stringNote.charAt(0);\n \n System.out.print(\"Enter the length of the note in beats > \"); //gets the beats from user\n beat = in.nextInt();\n \n Note note = new Note(actualNote, beat); //creates Note to be added\n \n score.add(note); //adds the note to the score\n \n in.nextLine();\n }", "public void setLength(int duration){\n\t\tlength = duration;\n\t}", "private String convertToDuration(Long songDuration){\n long seconds = songDuration/1000;\n long minutes = seconds / 60;\n seconds = seconds % 60;\n return minutes +\":\"+seconds;\n }", "public void noteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n getReturnPattern().addElement(note);\r\n }", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "public double getDuration () {\n return duration;\n }", "public void parallelNoteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n\r\n getReturnPattern().addElement(note);\r\n }", "public void setDuration(Long duration)\r\n {\r\n this.duration = duration;\r\n }", "public void recordDuration(long duration) {\n recording.get(recording.size()-1).setDuration(duration); \n }", "public Note(int duration, int offset, int pitch, int channel, int velocity) {\n this.duration = duration;\n this.offset = offset;\n this.pitch = pitch;\n this.channel = channel;\n this.velocity = velocity;\n }", "public void setDuration(Number duration) {\n this.duration = duration;\n }", "public void addSample(int note, String fileName, double startMs, double endMs) {\n\t\taddSample(note, fileName, startMs, endMs, 1.0);\n\t}", "public long getDuration()\n {\n return duration;\n }", "public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}", "@Override\n\tpublic void playSequenceNote(final int note, final double duration,\n\t\t\tfinal int instrument, final int velocity) {\n\t\ttry {\n\t\t\tstopCurrentSound();\n\t\t\tcurrentSoundType = SOUNDTYPE_MIDI;\n\t\t\tgetMidiSound().playSequenceNote(note, duration, instrument);\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}", "void setDuration(java.lang.String duration);", "public String getDuration() {\n return this.duration;\n }", "private void updateDuration() {\n duration = ((double) endTimeCalendar.getTime().getTime() - (startTimeCalendar.getTime().getTime())) / (1000 * 60 * 60.0);\n int hour = (int) duration;\n String hourString = dfHour.format(hour);\n int minute = (int) Math.round((duration - hour) * 60);\n String minuteString = dfMinute.format(minute);\n String textToPut = \"duration: \" + hourString + \" hours \" + minuteString + \" minutes\";\n eventDuration.setText(textToPut);\n }", "public String getDuration() {\n return duration;\n }", "public Note(int _pitch, int _duration, int _dynamic) {\n pitch = _pitch;\n duration = _duration;\n dynamic = _dynamic;\n tiedIn = false;\n tiedOut = false;\n displayDynamic = false;\n }", "public Rational getRawDuration ()\r\n {\r\n Rational rawDuration = null;\r\n\r\n if (!getNotes().isEmpty()) {\r\n // All note heads are assumed to be the same within one chord\r\n Note note = (Note) getNotes().get(0);\r\n\r\n if (!note.getShape().isMeasureRest()) {\r\n // Duration (with flags/beams applied for non-rests)\r\n rawDuration = note.getNoteDuration();\r\n\r\n // Apply augmentation (applies to rests as well)\r\n if (dotsNumber == 1) {\r\n rawDuration = rawDuration.times(new Rational(3, 2));\r\n } else if (dotsNumber == 2) {\r\n rawDuration = rawDuration.times(new Rational(7, 4));\r\n }\r\n }\r\n }\r\n\r\n return rawDuration;\r\n }", "public void setDuration(String duration) {\n this.duration = duration;\n }", "public void setDuration(String duration) {\n this.duration = duration;\n }", "Duration getDuration();", "public int getDuration() {\n return duration;\n }", "public int getDuration() {\n return duration;\n }", "public int getDuration() {\n return duration;\n }", "public Long getDuration()\r\n {\r\n return duration;\r\n }", "@Override\n public void addNote(Note n) {\n if (this.sheet.size() < n.getDuration() + n.getStartMeasure()) {\n for (int i = this.sheet.size(); i < n.getDuration() + n.getStartMeasure(); i++) {\n sheet.add(new HashSet<>());\n }\n }\n for (int i = 0; i < n.getDuration(); i++) {\n for (Note t : this.sheet.get(i + n.getStartMeasure())) {\n if (t.equals(n)) {\n throw new IllegalArgumentException(\"Already placed a note.\");\n }\n }\n }\n this.sheet.get(n.getStartMeasure()).add(n);\n int currentMeasure = n.getStartMeasure() + 1;\n for (int i = 1; i < n.getDuration(); i++) {\n Note hold = new Note(1, n.getOctave(), currentMeasure,\n n.getPitch(), false, n.getInstrument(), n.getVolume());\n this.sheet.get(currentMeasure).add(hold);\n currentMeasure++;\n }\n\n this.high = this.getHighest();\n this.low = this.getLowest();\n }", "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "@Override\n public CompositionBuilder<MusicOperation> addNote(int start, int end, int instrument,\n int pitch, int volume) {\n this.listNotes.add(new SimpleNote(Pitch.values()[(pitch) % 12],\n Octave.values()[(pitch / 12) - 2 ], start, end - start, instrument, volume));\n return this;\n }", "public static PatternInterface trill(Note baseNote, char trillDirection, double singleSoundDuration){\r\n \r\n \tStringBuilder musicStringBuilder = new StringBuilder();\r\n \r\n \tdouble totalDuration = baseNote.getDecimalDuration();\r\n double actualDuration = 0.0d;\r\n \r\n byte secondNote = baseNote.getValue();\r\n \r\n if(trillDirection == EFFECT_DIRECTION_UP){\r\n \tsecondNote++;\r\n } else if(trillDirection == EFFECT_DIRECTION_DOWN){\r\n \tsecondNote--;\r\n }\r\n \r\n double remainingDuration = totalDuration - (2*singleSoundDuration);\r\n if(remainingDuration > 0.0d){\r\n \t\r\n \tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), singleSoundDuration);\r\n \tactualDuration+=singleSoundDuration;\r\n \t\r\n \twhile(actualDuration < totalDuration){\r\n \t\tif(actualDuration + (2*singleSoundDuration) < totalDuration){\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, secondNote, singleSoundDuration);\r\n \t\t\tactualDuration += singleSoundDuration;\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), singleSoundDuration);\r\n \t\t\tactualDuration += singleSoundDuration;\r\n \t\t} else if(actualDuration + singleSoundDuration > totalDuration){\r\n \t\t\tdouble gapDuration = totalDuration - actualDuration;\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), gapDuration);\r\n \t\t\tactualDuration+=gapDuration;\r\n \t\t} else {\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), singleSoundDuration);\r\n \t\t\tactualDuration+=singleSoundDuration;\r\n \t\t}\r\n \t}\r\n \treturn new Pattern(musicStringBuilder.toString().trim());\r\n } else {\r\n \treturn new Pattern(baseNote.getMusicString());\r\n }\r\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public static void setTextDuration(TextView textView, String duration) {\n if (textView == null || duration == null || duration.isEmpty()) {\n return;\n }\n try {\n int min = (int) Double.parseDouble(duration) + 1;\n String minutes = Integer.toString(min % 60);\n minutes = minutes.length() == 1 ? \"0\" + minutes : minutes;\n textView.setText((min / 60) + \":\" + minutes);\n } catch (Exception e) {\n LLog.e(TAG, \"Error setTextDuration \" + e.toString());\n textView.setText(\" - \");\n }\n }", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public static void main(String[] args) {\n String ttime = getDurationString(200,45);\n System.out.println(ttime);\n ttime = getDurationString(400);\n System.out.println(ttime);\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "void add(Note note);", "public void sequentialNoteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n\r\n getReturnPattern().addElement(note);\r\n }", "public void duration() {\n\t\tDuration daily = Duration.of(1, ChronoUnit.DAYS);\n\t\tDuration hourly = Duration.of(1, ChronoUnit.HOURS);\n\t\tDuration everyMinute = Duration.of(1, ChronoUnit.MINUTES);\n\t\tDuration everyTenSeconds = Duration.of(10, ChronoUnit.SECONDS);\n\t\tDuration everyMilli = Duration.of(1, ChronoUnit.MILLIS);\n\t\tDuration everyNano = Duration.of(1, ChronoUnit.NANOS);\n\n\t\tLocalDate date = LocalDate.of(2015, 5, 25);\n\t\tPeriod period = Period.ofDays(1);\n\t\tDuration days = Duration.ofDays(1);\n\t\tSystem.out.println(date.plus(period)); // 2015–05–26\n\t\t// System.out.println(date.plus(days)); // Unsupported unit: Seconds\n\t}", "public long getDuration() {\n return duration;\n }", "public void setDuration(int duration) {\n mDuration = duration;\n }", "public int getDuration() {\n return duration_;\n }", "public Integer getDuration() {\n return duration;\n }", "public void setDuration(float duration) {\n\t\tthis.duration = duration;\n\t}", "public int getDuration() {\n return this.duration;\n }", "org.apache.xmlbeans.GDuration getDuration();", "public SimpleStringProperty durationProperty(){\r\n\t\treturn duration;\r\n\t}", "public void setDuration(Duration duration)\r\n {\r\n m_duration = duration;\r\n }", "@Override\n public int getDuration() {\n if (this.music.size() == 0) {\n return 0;\n }\n else {\n int highestDuration = 0;\n ArrayList<Note> allNotes = this.getAllNotes();\n // find the note that has the longest length in the last arrayList\n for (Note note : allNotes) {\n if (note.getEndBeat() > highestDuration) {\n highestDuration = note.getEndBeat();\n }\n }\n return highestDuration;\n }\n }", "private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }", "public default int getDuration(int casterLevel){ return Reference.Values.TICKS_PER_SECOND; }", "public Long getDurationMs();", "public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }", "public double playTimeInSeconds(){\n\t\treturn durationInSeconds;\n\t}", "public long getDuration() {\n return duration;\n }", "public float getDuration()\n\t{\n\t\treturn duration;\n\t}", "public DeltaSeconds getDuration() { \n return duration ;\n }", "private static double[] note(double hz, double duration, double amplitude) {\n int N = (int) (StdAudio.SAMPLE_RATE * duration);\n double[] a = new double[N + 1];\n for (int i = 0; i <= N; i++)\n a[i] = amplitude * Math.sin(2 * Math.PI * i * hz / StdAudio.SAMPLE_RATE);\n return a;\n }", "public static String getDurationString(long minutes, long seconds) {\n if(minutes>=0 && (seconds >=0 && seconds<=59)){\n// minutes = hours/60;\n// seconds = hours/3600;\n long hours = minutes / 60;\n long remainingMinutes = minutes % 60;\n\n return hours + \" h \" + remainingMinutes + \"m \" + seconds + \"s\";\n }\n else\n\n {\n return \"invalid value\";\n }\n }", "public int getDuration() {\n\t\treturn duration;\n\t}", "public void setDuration(DeltaSeconds d) {\n duration = d ;\n }", "public static void duration(){\n Instant instant1 = Instant.ofEpochSecond(3);\n Instant instant2 = Instant.ofEpochSecond(3, 0);\n\n// Duration d1 = Duration.between(time1, time2);\n// Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(instant1, instant2);\n }", "public int getDuration() {\n return duration_;\n }", "long getDurationNanos();", "protected void setDuraction(int seconds) {\n duration = seconds * 1000L;\n }", "@Override\r\n\tpublic void setNote(long d, int hz) {\n\t\t\r\n\t}", "public double getDuration() {\n\t\treturn duration;\n\t}", "public void repeatNotes()\n {\n int start, end;\n \n printScore(); //prints the current score that we have for the user to reference\n \n System.out.print(\"\\nEnter the note number that starts the repetition > \"); //prompts to enter the start of the repetition\n start = in.nextInt();\n \n System.out.print(\"Enter the note number that ends the repetition > \"); //prompts user to enter the end of the repetition\n end = in.nextInt();\n \n if (start <= score.size() && start > 0 && end <= score.size() && end >= start)\n {\n for (int i = 0; i <= ((end - 1) - (start - 1)); i++)\n {\n Note tempNote = new Note(score.get((start - 1) + i).getNote(), score.get((start - 1) + i).getBeat());\n score.add(tempNote);\n }\n }\n else\n {\n System.out.print(\"Error. \");\n if (end < 1 || end > score.size())\n System.out.println(\"The ending note number is not valid.\");\n else if (start < 1 || start > score.size())\n System.out.println(\"The starting note number is not valid.\");\n else if (start > end)\n System.out.println(\"The starting note number can not be bigger than the ending note number.\"); \n }\n }", "public float getDuration() {\n\t\treturn duration;\n\t}", "private static void testDuration() {\n LocalTime time1 = LocalTime.of(15, 20, 38);\n LocalTime time2 = LocalTime.of(21, 8, 49);\n\n LocalDateTime dateTime1 = time1.atDate(LocalDate.of(2014, 5, 27));\n LocalDateTime dateTime2 = time2.atDate(LocalDate.of(2015, 9, 15));\n\n Instant i1 = Instant.ofEpochSecond(1_000_000_000);\n Instant i2 = Instant.now();\n\n // create duration between two points\n Duration d1 = Duration.between(time1, time2);\n Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(i1, i2);\n Duration d4 = Duration.between(time1, dateTime2);\n\n // create duration from some random value\n Duration threeMinutes;\n threeMinutes = Duration.ofMinutes(3);\n threeMinutes = Duration.of(3, ChronoUnit.MINUTES);\n }", "void addRepeat(int beatNum, RepeatType repeatType);", "public abstract long toSeconds(long duration);" ]
[ "0.68381524", "0.6723301", "0.6677108", "0.6597617", "0.6374146", "0.6294225", "0.6201427", "0.6151268", "0.6086837", "0.6049343", "0.60483634", "0.60184276", "0.6018174", "0.6005242", "0.59572136", "0.5931135", "0.5923843", "0.59191865", "0.58596087", "0.58596087", "0.5857246", "0.5814883", "0.5812427", "0.5809919", "0.5803649", "0.5800375", "0.57934487", "0.5718893", "0.5705489", "0.5703271", "0.5701863", "0.56962657", "0.5694352", "0.568954", "0.56507736", "0.5648738", "0.56224096", "0.56183815", "0.5607928", "0.55857867", "0.55841976", "0.5575999", "0.556104", "0.5557257", "0.5557209", "0.55553377", "0.55553377", "0.55552286", "0.55496246", "0.55496246", "0.55496246", "0.5533574", "0.55325365", "0.5526897", "0.5521884", "0.55192006", "0.55170417", "0.55170417", "0.55095005", "0.55091256", "0.55091256", "0.5499862", "0.5499775", "0.5490498", "0.5488415", "0.5450857", "0.54348487", "0.54305965", "0.54293185", "0.5394845", "0.5394159", "0.53917813", "0.5381266", "0.53727895", "0.5372062", "0.53597385", "0.5358813", "0.5349576", "0.5343965", "0.5337644", "0.5330092", "0.53282666", "0.5318731", "0.5304661", "0.5294694", "0.5271639", "0.5270574", "0.52645504", "0.5250234", "0.5240774", "0.52289194", "0.5212455", "0.52106225", "0.5207077", "0.51858044", "0.51848906", "0.5182901", "0.5181", "0.5180248", "0.51694506" ]
0.5983396
14
Returns the note value, duration and note name
@Override public String toString() { return note + " " + duration + (duration == 1 ? " Quaver" : " Crotchet"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String get_note()\n {\n return note;\n }", "public Double getNote()\r\n {\r\n return note;\r\n }", "java.lang.String getNotes();", "java.lang.String getNotes();", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public String getNote() {\r\n return note; \r\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote()\n {\n return note;\n }", "public String getNote()\n\t{\n\t\treturn note;\n\t}", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n\t\treturn note;\n\t}", "public String getNote() {\n\t\treturn _note;\n\t}", "public NoteDuration getNoteDuration(int duration)\n\t{\n\t\tint whole = quarternote * 4;\n\t\t//\t\t 1 = 32/32\n\t\t//\t\t 3/4 = 24/32\n\t\t//\t\t 1/2 = 16/32\n\t\t//\t\t 3/8 = 12/32\n\t\t//\t\t 1/4 = 8/32\n\t\t//\t\t 3/16 = 6/32\n\t\t//\t\t 1/8 = 4/32 = 8/64\n\t\t//\t\t triplet = 5.33/64\n\t\t//\t\t 1/16 = 2/32 = 4/64\n\t\t//\t\t 1/32 = 1/32 = 2/64\n\n\t\tif (duration >= 28 * whole / 32)\n\t\t return NoteDuration.Whole;\n\t\telse if (duration >= 20 * whole / 32)\n\t\t return NoteDuration.DottedHalf;\n\t\telse if (duration >= 14 * whole / 32)\n\t\t return NoteDuration.Half;\n\t\telse if (duration >= 10 * whole / 32)\n\t\t return NoteDuration.DottedQuarter;\n\t\telse if (duration >= 7 * whole / 32)\n\t\t return NoteDuration.Quarter;\n\t\telse if (duration >= 5 * whole / 32)\n\t\t return NoteDuration.DottedEighth;\n\t\telse if (duration >= 6 * whole / 64)\n\t\t return NoteDuration.Eighth;\n\t\telse if (duration >= 5 * whole / 64)\n\t\t return NoteDuration.Triplet;\n\t\telse if (duration >= 3 * whole / 64)\n\t\t return NoteDuration.Sixteenth;\n\t\telse if (duration >= 2 * whole / 64)\n\t\t return NoteDuration.ThirtySecond;\n\t\telse if (duration >= whole / 64)\n\t\t return NoteDuration.SixtyFour; // TODO : EXTEND UNTIL 1/128 to be able to extract the onset in SYMBOLIC representation\n\t\telse if (duration >= whole / 128)\n\t\t return NoteDuration.HundredTwentyEight;\n\t\telse\n\t\t return NoteDuration.ZERO;\n\t}", "public String getNote() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_note);}", "String getNotes();", "String note();", "String notes();", "public String getInfo()\r\n\t{\r\n\t\treturn theItem.getNote();\r\n\t}", "public java.lang.String getNotes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }", "private static StringBuilder appendNoteValueAndDuration(StringBuilder inputBuilder, byte noteValue, double noteDuration){\r\n \tinputBuilder.append(\"[\");\r\n \tinputBuilder.append(noteValue);\r\n \tinputBuilder.append(\"]/\");\r\n \tinputBuilder.append(noteDuration);\r\n \tinputBuilder.append(\" \");\r\n \treturn inputBuilder;\r\n }", "public String getNotes();", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String toString() {\n\t\treturn String.format(\"%.0f-%s note [%d]\", this.getValue(),this.getCurrency(),this.getSerial());\n\t}", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getDocumentNote();", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n }\n }", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n notes_ = s;\n }\n return s;\n }\n }", "@JsonProperty(\"note\")\n\tpublic String getNote() {\n\t\treturn note;\n\t}", "public String getNotes() {\n return notes.get();\n }", "public String notes() {\n return this.innerProperties() == null ? null : this.innerProperties().notes();\n }", "public java.lang.String getNotes() {\n return notes;\n }", "public Map<Tone, Prefix> getNotes() {\n return notes;\n }", "String getNotesArgument() throws Exception {\n String output = \"\";\n String line = this.readLine().trim();\n\n while (!line.contains(\"[/event]\")) {\n output += line;\n line = this.readLine().trim();\n }\n\n return output;\n }", "public String getNotes() {\n return notes;\n }", "public String getNotes() {\n return notes;\n }", "@Override\n\tpublic String getNotes() {\n\t\treturn text;\n\t}", "public String getNotes() {\n\treturn notes;\n}", "public String getEventNote() {\r\n\t\treturn eventNote;\r\n\t}", "public String getNotes() {\n\t\treturn notes;\n\t}", "public Rational getRawDuration ()\r\n {\r\n Rational rawDuration = null;\r\n\r\n if (!getNotes().isEmpty()) {\r\n // All note heads are assumed to be the same within one chord\r\n Note note = (Note) getNotes().get(0);\r\n\r\n if (!note.getShape().isMeasureRest()) {\r\n // Duration (with flags/beams applied for non-rests)\r\n rawDuration = note.getNoteDuration();\r\n\r\n // Apply augmentation (applies to rests as well)\r\n if (dotsNumber == 1) {\r\n rawDuration = rawDuration.times(new Rational(3, 2));\r\n } else if (dotsNumber == 2) {\r\n rawDuration = rawDuration.times(new Rational(7, 4));\r\n }\r\n }\r\n }\r\n\r\n return rawDuration;\r\n }", "@AutoEscape\n\tpublic String getNote();", "public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void testfindNote() {\n System.out.println(\"findNote\");\n net.sharedmemory.tuner.Note instance = new net.sharedmemory.tuner.Note();\n\n double frequency = 441.123;\n java.lang.String expectedResult = \"A4\";\n java.lang.String result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 523.25;\n expectedResult = \"C5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 417.96875;\n expectedResult = \"G#4\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 1316.40625;\n expectedResult = \"B5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n }", "protected String usaNote() {\n String testo = VUOTA;\n String tag = \"Note\";\n String ref = \"<references/>\";\n\n testo += LibWiki.setParagrafo(tag);\n testo += A_CAPO;\n testo += ref;\n testo += A_CAPO;\n testo += A_CAPO;\n\n return testo;\n }", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getRecord() {\n return (long)S + \" \" + (long)I + \" \" + (long)R;\n }", "public Note(char n, int dur) {\n\t\tnote = n;\n\t\tduration = dur;\n\t}", "public List<String> getNote() {\n\t\treturn observationNotes;\n\t}", "@Override\n public com.gensym.util.Sequence getItemNotes() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_NOTES_);\n return (com.gensym.util.Sequence)retnValue;\n }", "private void getNotes(MusicCircle circle){\n\t\tif(! circle.isMuted()){\n\t\t\tfor(int i=0; i<circle.getNumNotes(); i++){\n\t\t\t\tif( circle.getS(i) != SILENCE) note(circle.getT(i) + loopOffset, circle.getD(i), Fofs(circle.getS(i) + circle.getBaseSemitone()));\n\t\t\t}\n\t\t}\n\t}", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public java.lang.String getNotes() {\r\n return localNotes;\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getName() + \" (\"+getDuration()+\"s)\";\r\n\t}", "java.lang.String getDuration();", "public void setNote(String note) {\r\n this.note = note;\r\n }", "public String getElementNote(String elementName)\n\t{\n\t\tassert(elementName != null);\n\t\tString result = \"\";\n\t\tInteger elementSort = Integer.valueOf(elementName);\n\t\t\n\t\tif (elementSort.compareTo(29) < 0)\n\t\t{\n\t\t\tif (elementSort.compareTo(15) < 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(8) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(4) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// notes don't exist for elements 1, 2, or 3 in MVwRecordToExport\n\t\t\t\t\t\tassert(!elementName.equals(\"1\"));\n\t\t\t\t\t\tassert(!elementName.equals(\"2\"));\n\t\t\t\t\t\tassert(!elementName.equals(\"3\"));\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(4) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(6) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE5Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (elementSort.compareTo(6) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE7Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE6Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE4Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(8) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(12) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(10) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE9Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(10) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE11Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE10Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(12) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(13) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE14Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE13Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE12Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult = this.getE8Notes();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (elementSort.compareTo(15) > 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(23) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(19) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(17) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE16Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(17) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE18Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE17Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(19) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(21) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE20Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(21) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE22Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE21Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE19Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(23) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(27) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(25) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE24Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(25) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE26Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE25Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(27) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(28) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE29Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE28Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE27Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult = this.getE23Notes();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresult = this.getE15Notes();\n\t\t\t}\n\t\t}\n\t\telse if (elementSort.compareTo(29) > 0)\n\t\t{\n\t\t\tif (elementSort.compareTo(44) < 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(37) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(33) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(31) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE30Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(31) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE32Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE31Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(33) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(35) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE34Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (elementSort.compareTo(35) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE36Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE35Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE33Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(37) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(41) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(39) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE38Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(39) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE40Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE39Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(41) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(42) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE43Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE42Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE41Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult = this.getE37Notes();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (elementSort.compareTo(44) > 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(52) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(48) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(46) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE45Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(46) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE47Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE46Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(48) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(50) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE49Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(50) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE51Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE50Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE48Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(52) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(56) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(54) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE53Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(54) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE55Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE54Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (elementSort.compareTo(56) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(57) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE58Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = this.getE57Notes();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = this.getE56Notes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult = this.getE52Notes();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresult = this.getE44Notes();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresult = this.getE29Notes();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "private List<String> allNotes() {\n List allNotes = new ArrayList();\n\n for (int i = 0; i < 10; i++) {\n Octave octave = getOctave(i);\n\n for (int x = 0; x < 12; x++) {\n Pitch pitch = getPitch(x);\n\n String note = pitch.getValue() + octave.getValue();\n allNotes.add(note);\n }\n }\n return allNotes;\n }", "public int getNoteType() {\n return noteType;\n }", "@Import(\"notedTemplate\")\n\tint getNote();", "public int durationToTime(NoteDuration dur)\n\t{\n\t\tint eighth = quarternote / 2;\n\t\tint sixteenth = eighth / 2;\n\n\t\tswitch (dur)\n\t\t{\n\t\t\tcase Whole:\n\t\t\t\treturn quarternote * 4;\n\t\t\tcase DottedHalf:\n\t\t\t\treturn quarternote * 3;\n\t\t\tcase Half:\n\t\t\t\treturn quarternote * 2;\n\t\t\tcase DottedQuarter:\n\t\t\t\treturn 3 * eighth;\n\t\t\tcase Quarter:\n\t\t\t\treturn quarternote;\n\t\t\tcase DottedEighth:\n\t\t\t\treturn 3 * sixteenth;\n\t\t\tcase Eighth:\n\t\t\t\treturn eighth;\n\t\t\tcase Triplet:\n\t\t\t\treturn quarternote / 3;\n\t\t\tcase Sixteenth:\n\t\t\t\treturn sixteenth;\n\t\t\tcase ThirtySecond:\n\t\t\t\treturn sixteenth / 2;\n\t\t\tcase HundredTwentyEight:\n\t\t\t\treturn quarternote / 32;\n\t\t\tdefault:\n\t\t\t\treturn 0;\n\t\t}//end switch\n\t}", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "String getMyNoteText(MyNoteDto usernote, boolean abbreviated);", "@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }", "@Override\n public int getDuration() {\n if (this.music.size() == 0) {\n return 0;\n }\n else {\n int highestDuration = 0;\n ArrayList<Note> allNotes = this.getAllNotes();\n // find the note that has the longest length in the last arrayList\n for (Note note : allNotes) {\n if (note.getEndBeat() > highestDuration) {\n highestDuration = note.getEndBeat();\n }\n }\n return highestDuration;\n }\n }", "java.lang.String getEmploymentDurationText();", "public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}", "public String fetchNoteNames() {\n\t\treturn \"NoteNames from SubClass overridden meth.MinorScale\";\n\t}", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;", "protected String description() {\r\n\t\treturn \"Exam: duration \" + duration + \" minutes, weight \" + this.getWeight() + \"%\";\r\n\t}", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "Posn getDuration();", "void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n throws IllegalArgumentException;", "public String toString() {\r\n\t\treturn modifier + \" \" + value + \" \" + measure;\r\n\t}", "com.google.protobuf.ByteString\n getNotesBytes();", "com.google.protobuf.ByteString\n getNotesBytes();", "public java.lang.String getStudent_note() {\n\t\treturn _primarySchoolStudent.getStudent_note();\n\t}", "public void setNote(String note);", "public double getNoteDistance() {\n\t\treturn noteDistance;\n\t}", "public String getEventInfo() {\n\t\treturn String.format(\"%s, which now has %s participant(s)\",\n\t\t\tthis.title, this.participants);\n\t}", "public String toString()\n {\n return \"Measure (\" + id + \") = '\" + systolic + \"|\" + diastolic + \"' @ \" + time;\n }" ]
[ "0.66896605", "0.66523755", "0.6601166", "0.6601166", "0.6594496", "0.6581612", "0.6572958", "0.6572958", "0.65712327", "0.6561788", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.65077215", "0.64019877", "0.6401887", "0.6372876", "0.6320251", "0.6309041", "0.6272945", "0.625888", "0.6236988", "0.6219197", "0.61985284", "0.61603683", "0.61042017", "0.6095891", "0.60512", "0.60163647", "0.6007139", "0.599652", "0.59719115", "0.5969836", "0.5874815", "0.58308566", "0.5830848", "0.58271176", "0.5817694", "0.5812182", "0.5794264", "0.5790373", "0.57880694", "0.5779294", "0.5753929", "0.57487667", "0.571851", "0.56903553", "0.56845725", "0.56845725", "0.56627125", "0.56621057", "0.564528", "0.564528", "0.5642902", "0.5601083", "0.55927354", "0.5564889", "0.55606174", "0.55414623", "0.55102926", "0.550157", "0.547659", "0.5476432", "0.5461045", "0.54607534", "0.5449841", "0.54488504", "0.54460067", "0.5436478", "0.5436478", "0.5436478", "0.5436478", "0.5436478", "0.5423373", "0.5421985", "0.54197395", "0.5418144", "0.5409324", "0.53938115", "0.53643733", "0.5362304", "0.5361671", "0.5358817", "0.5343187", "0.53420484", "0.5334117", "0.53325343", "0.53325343", "0.5326744", "0.5314665", "0.5313585", "0.5305128", "0.5303018" ]
0.68542784
0
une methode de l'objet
private String formulerMonNom() { return "Je m'appelle " + this.nom; // appel de la propriété nom }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "Objet getObjetAlloue();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void operacao();", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void datos_elegidos(){\n\n\n }", "public void Ingresar() {\nTipoCliente();\n\t\t\t\t\t\t\t\t\t\n}", "public void trenneVerbindung();", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "public void asetaTeksti(){\n }", "public void method(){}", "@Override\n\tpublic void anular() {\n\n\t}", "public void ouvrirListe(){\n\t\n}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected abstract void action(Object obj);", "public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}", "@Override\n public void alRechazarOperacion() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void finePartita() {\n\r\n }", "public void iniciar()\n {\n }", "Method getMethod();", "Method getMethod();", "MethodName getMethod();", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "public Method getMethod();", "public void cocinar(){\n\n }", "@Override\n public void memoria() {\n \n }", "public void Ordenamiento() {\n\n\t}", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "@Override\r\n public void salir() {\n }", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void sendeSpielfeld();", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void miseAJour();", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void member() {\n\t\t\r\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\n\tpublic void nuevo() {\n\n\t}", "public void activar(){\n\n }", "@Override\n\tpublic void doYouWantTo() {\n\n\t}", "Input getObjetivo();", "protected void agregarUbicacion(){\n\n\n\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public interface MethodeBaseDeDonnee\n{\n public void insertion(Object object);\n public Object afficherObject(long id);\n}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public void mostrarCompra() {\n }", "@Override\n\t\t\t\t\tpublic Method handleSimpleMethod(Element parent, FMethod src) {\n\t\t\t\t\t\treturn super.handleSimpleMethod(parent, src);\n\t\t\t\t\t}", "String getMethod();", "String getMethod();", "public void selecao () {}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public abstract void mo1184a(Object obj);", "private void mostrarEmenta (){\n }", "public void callmetoo(){\r\n\tSystem.out.println(\"This is a concrete method\");\r\n\t}", "public abstract void afvuren();", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void method() {\n\t\t\r\n\t\t\r\n\t\tnew Inter() {\t\t\t\t\t\t\t//实现Inter接口\r\n\t\t\tpublic void print() {\t\t\t\t//重写抽象方法\r\n\t\t\t\tSystem.out.println(\"print\");\r\n\t\t\t}\r\n\t\t}.print();\r\n\t\t\r\n\t\t\r\n\t}", "public void actualiserAffichage();", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public void Usuarios() {\n\t\r\n}", "public abstract String dohvatiKontakt();", "@Override\n public void updete(Object obj) {\n\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "@Override\n\tpublic void trabajar() {\n\n\t}", "@Override\n public void action(Jugador jugador) {\n\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public static void method(Object obj){\n\t System.out.println(\"method with param type - Object\");\n\t }", "@Override\n\tpublic void recreo() {\n\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "MethodType getMethodType();", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\n\tpublic void respuestaObj(WSInfomovilMethods metodo,\n\t\t\tWsInfomovilProcessStatus status, Object obj) {\n\n\t}", "public void objectTest() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "Methodsig getMethod();", "@Override\npublic void tipoAnimal() {\n\tSystem.out.println(\"Tipo animal es GATO\");\n}", "public void jeu() {\n\n }", "@Override\n\tpublic void yürü() {\n\n\t}" ]
[ "0.6988119", "0.6606684", "0.6601308", "0.6454696", "0.63857603", "0.63762283", "0.63711435", "0.63711435", "0.6343363", "0.63414186", "0.6300578", "0.6288817", "0.6278458", "0.62576747", "0.62571156", "0.62220937", "0.6211353", "0.62065905", "0.61614233", "0.61551535", "0.61483276", "0.6121874", "0.61217093", "0.6118101", "0.61122286", "0.6111704", "0.6111704", "0.61048615", "0.6099436", "0.6081737", "0.6060912", "0.6056189", "0.6034431", "0.60156906", "0.6009044", "0.5996237", "0.5993255", "0.5982909", "0.5978797", "0.5968547", "0.5958376", "0.59505385", "0.5949874", "0.593916", "0.5936967", "0.59346116", "0.592766", "0.59216005", "0.5915081", "0.5908859", "0.59010714", "0.58897984", "0.58693874", "0.58680916", "0.5865994", "0.58505553", "0.58438575", "0.5843661", "0.58403456", "0.58403456", "0.58389026", "0.58214796", "0.5821426", "0.58123803", "0.5808733", "0.58070016", "0.5806297", "0.58054477", "0.58044237", "0.5803194", "0.5803194", "0.5803194", "0.5786703", "0.57814234", "0.57760996", "0.5758132", "0.57556415", "0.57500905", "0.5748479", "0.5747823", "0.5742692", "0.5730583", "0.5730583", "0.5730583", "0.5728241", "0.572335", "0.5722641", "0.572249", "0.5720942", "0.5718182", "0.5717791", "0.5713191", "0.5705727", "0.5705723", "0.57052267", "0.57026136", "0.5700489", "0.56996024", "0.56958705", "0.56893194", "0.5685768" ]
0.0
-1
une methode de l'objet
public void parler() { System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet System.out.println("Je suis un animal et j'ai " + this.nombreDePatte + " pattes"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "Objet getObjetAlloue();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void operacao();", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void datos_elegidos(){\n\n\n }", "public void Ingresar() {\nTipoCliente();\n\t\t\t\t\t\t\t\t\t\n}", "public void trenneVerbindung();", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "public void asetaTeksti(){\n }", "public void method(){}", "@Override\n\tpublic void anular() {\n\n\t}", "public void ouvrirListe(){\n\t\n}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected abstract void action(Object obj);", "public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void alRechazarOperacion() {\n }", "public void finePartita() {\n\r\n }", "public void iniciar()\n {\n }", "Method getMethod();", "Method getMethod();", "MethodName getMethod();", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "public Method getMethod();", "public void cocinar(){\n\n }", "@Override\n public void memoria() {\n \n }", "public void Ordenamiento() {\n\n\t}", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "@Override\r\n public void salir() {\n }", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void sendeSpielfeld();", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void miseAJour();", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void member() {\n\t\t\r\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\n\tpublic void nuevo() {\n\n\t}", "public void activar(){\n\n }", "@Override\n\tpublic void doYouWantTo() {\n\n\t}", "Input getObjetivo();", "protected void agregarUbicacion(){\n\n\n\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public interface MethodeBaseDeDonnee\n{\n public void insertion(Object object);\n public Object afficherObject(long id);\n}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n\t\t\t\t\tpublic Method handleSimpleMethod(Element parent, FMethod src) {\n\t\t\t\t\t\treturn super.handleSimpleMethod(parent, src);\n\t\t\t\t\t}", "public void mostrarCompra() {\n }", "String getMethod();", "String getMethod();", "public void selecao () {}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public abstract void mo1184a(Object obj);", "public void callmetoo(){\r\n\tSystem.out.println(\"This is a concrete method\");\r\n\t}", "private void mostrarEmenta (){\n }", "public abstract void afvuren();", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void method() {\n\t\t\r\n\t\t\r\n\t\tnew Inter() {\t\t\t\t\t\t\t//实现Inter接口\r\n\t\t\tpublic void print() {\t\t\t\t//重写抽象方法\r\n\t\t\t\tSystem.out.println(\"print\");\r\n\t\t\t}\r\n\t\t}.print();\r\n\t\t\r\n\t\t\r\n\t}", "public void actualiserAffichage();", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public void Usuarios() {\n\t\r\n}", "public abstract String dohvatiKontakt();", "@Override\n public void updete(Object obj) {\n\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "@Override\n\tpublic void trabajar() {\n\n\t}", "@Override\n public void action(Jugador jugador) {\n\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public static void method(Object obj){\n\t System.out.println(\"method with param type - Object\");\n\t }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "MethodType getMethodType();", "@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\n\tpublic void respuestaObj(WSInfomovilMethods metodo,\n\t\t\tWsInfomovilProcessStatus status, Object obj) {\n\n\t}", "public void objectTest() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "Methodsig getMethod();", "@Override\npublic void tipoAnimal() {\n\tSystem.out.println(\"Tipo animal es GATO\");\n}", "public void jeu() {\n\n }", "@Override\n\tpublic void yürü() {\n\n\t}" ]
[ "0.69877046", "0.6607568", "0.6601215", "0.64545727", "0.6385349", "0.6376459", "0.63715535", "0.63715535", "0.6343694", "0.63413596", "0.6301061", "0.6289347", "0.6278468", "0.62581563", "0.62568974", "0.62229747", "0.6210616", "0.62065023", "0.61619407", "0.6157058", "0.6148711", "0.61221486", "0.6121182", "0.6118654", "0.61131966", "0.6111054", "0.6111054", "0.61045015", "0.60992247", "0.6081021", "0.6062115", "0.6055257", "0.6034351", "0.6016263", "0.6009727", "0.59964865", "0.5992698", "0.59834313", "0.5979351", "0.59687144", "0.5958725", "0.59513736", "0.5950283", "0.5940282", "0.59385085", "0.59349483", "0.59280306", "0.5922997", "0.591536", "0.5909533", "0.5901477", "0.58901364", "0.5870165", "0.5868893", "0.5866489", "0.5850258", "0.5844196", "0.58441114", "0.5840533", "0.5840533", "0.5839182", "0.5821829", "0.58214575", "0.5811823", "0.5808322", "0.5807936", "0.58075583", "0.5806853", "0.58057666", "0.58046186", "0.58046186", "0.58046186", "0.57877666", "0.5780569", "0.5775767", "0.575818", "0.5756654", "0.575063", "0.57486403", "0.5748091", "0.5744801", "0.57320917", "0.57320917", "0.57320917", "0.57287467", "0.5725233", "0.5722877", "0.57216054", "0.57211286", "0.57183856", "0.5717868", "0.5712873", "0.5707132", "0.57068086", "0.570498", "0.5703382", "0.5701955", "0.5699157", "0.5697678", "0.5690411", "0.56859577" ]
0.0
-1
une methode de la classe
public static void afficherNombreDAnimaux() { System.out.println("**************************"); System.out.println("Il y a " + totalNumber + " animaux"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void asetaTeksti(){\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void method(){}", "@Override\n public void memoria() {\n \n }", "public void trenneVerbindung();", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void iniciar()\n {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void finePartita() {\n\r\n }", "public void cocinar(){\n\n }", "public void operacao();", "public void datos_elegidos(){\n\n\n }", "@Override\r\n public void salir() {\n }", "public void miseAJour();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "public abstract void afvuren();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void alRechazarOperacion() {\n }", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected FanisamBato(){\n\t}", "void berechneFlaeche() {\n\t}", "public void Ingresar() {\nTipoCliente();\n\t\t\t\t\t\t\t\t\t\n}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public FuncionesSemanticas(){\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void nuevo() {\n\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void yürü() {\n\n\t}", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\n\tpublic void trabajar() {\n\n\t}", "public void jeu() {\n\n }", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "public void Ordenamiento() {\n\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "abstract void method();", "public void selecao () {}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "Funcionario(){\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public void ouvrirListe(){\n\t\n}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void inicio(){\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public void sinyal();", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public MijnKlasse()\r\n\t\t{\r\n\t\t\tmijnMethode();\r\n\t\t}", "public void furyo ()\t{\n }", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\n\tpublic void method() {\n\t\tSystem.out.println(\"这是第三个实现\");\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void sendeSpielfeld();", "public void Usuarios() {\n\t\r\n}", "public void dor(){\n }", "void method();", "void method();", "public abstract void alimentarse();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "public Final_parametre() {\r\n\t}", "public void Test(){\n }", "public void activar(){\n\n }", "MethodName getMethod();", "@Override\n\tpublic void salir() {\n\t\t\n\t}", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "public void maullar() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public Pengenalan(){ //Constructor (Nama harus sama dengan Class)\n System.out.println(\"\\nConstructor : \");\n System.out.println(\"Dibutuhkan untuk pemanggilan saat diimport oleh Class lain atau Class sendiri\");\n methode();\n int men = menthos();\n System.out.println(\"Nilai yang didapat dari method menthos : \"+men);\n }", "public void my_method();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void amethod() {\n\t}", "protected void agregarUbicacion(){\n\n\n\n }", "@Override\n\tpublic void recreo() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "private ControleurAcceuil(){ }", "void courir();" ]
[ "0.7321068", "0.7126594", "0.6936388", "0.6900602", "0.6900602", "0.68693596", "0.68636197", "0.6852336", "0.68184376", "0.6817924", "0.68024385", "0.6723292", "0.671767", "0.66798043", "0.6667153", "0.6657298", "0.6643424", "0.6642182", "0.6625154", "0.66244537", "0.661797", "0.65763956", "0.65763324", "0.6575966", "0.65250486", "0.65068436", "0.649949", "0.6475206", "0.6438367", "0.6416187", "0.64002025", "0.6396434", "0.6393715", "0.63842195", "0.6373517", "0.6370239", "0.63496417", "0.63478464", "0.6346026", "0.63322794", "0.63233", "0.63203424", "0.63135123", "0.63072807", "0.6295332", "0.62896836", "0.62868845", "0.62837815", "0.6281866", "0.6276382", "0.6272846", "0.6266744", "0.6265701", "0.62593645", "0.62584716", "0.62509674", "0.6250759", "0.62497133", "0.624699", "0.6245205", "0.6245039", "0.6243911", "0.6241333", "0.6236533", "0.6230464", "0.6227803", "0.6225936", "0.621496", "0.6213477", "0.61915183", "0.6189069", "0.6188093", "0.61842114", "0.6173508", "0.6169145", "0.6164511", "0.61631584", "0.61631584", "0.616043", "0.6144447", "0.61240846", "0.61238444", "0.61215806", "0.6121377", "0.61148244", "0.61057264", "0.61040807", "0.60977894", "0.6073912", "0.6071529", "0.60702205", "0.60664", "0.6056965", "0.6049212", "0.6043436", "0.6042359", "0.6042072", "0.6036789", "0.60365343", "0.60363066", "0.6030246" ]
0.0
-1
TODO Autogenerated method stub
@Override public LovServiceResponse getLovDetails() { LovServiceResponse l_res = new LovServiceResponse(); List<LovDetail> l_lovList=null; List<LovVO> l_lovVoList=new ArrayList<LovVO>(); LovVO l_lovVo = null; try { l_lovList = lovDao.getLovDetails(); for(LovDetail l_etity : l_lovList ){ l_lovVo = new LovVO(l_etity); BeanUtils.copyProperties(l_etity, l_lovVo); l_lovVoList.add(l_lovVo); } l_res.setLovList(l_lovVoList); l_res.setStatus(true); }catch(DataAccessException e){ throw new ServiceException("DataAccessException while fetch lov data",e); } catch (Exception e) { throw new ServiceException("Unhandled Exception while fetch lov data",e); } return l_res; }
{ "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
intent from this Activity to first activity begin animation from right to left code in res anim
@Override public void run() { Intent intent = new Intent(getApplicationContext(), FirstActivity.class); startActivity(intent); overridePendingTransition(R.anim.enter_from_right, R.anim.exit_out_left); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnext.startAnimation(animAlpha);\r\n\t\t\t\tIntent i = new Intent(Train.this, Truck.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\toverridePendingTransition(R.anim.right_in,R.anim.left_out);\r\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationEnd(Animator arg0) {\n\t\t\t\t\t\t\t\tLog.v(\"Main activity\",\"animation ended\");\n\t\t\t\t\t\t\t\tisLeft=!isLeft;\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n Intent startIntent = new Intent(MainActivity.this, FirstActivity.class);\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(MainActivity.this);\n ActivityCompat.startActivity(MainActivity.this, startIntent, options.toBundle());\n }", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n\t}", "public void enterAnimation() {\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n ImageView image = (ImageView)findViewById(R.id.logo);//logo image\n Animation animation1 =\n AnimationUtils.loadAnimation(getApplicationContext(), R.anim.side_slide); //animation\n image.startAnimation(animation1);\n TextView t = (TextView) findViewById(R.id.textView2);\n t.startAnimation(animation1);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n\n Intent mySuperIntent = new Intent(MainActivity.this, Main2Activity.class);//link to main activity 2\n startActivity(mySuperIntent);\n finish();\n }\n }, SPLASH_TIME);\n }", "private void animateLeft(){\n if(frame == 1){\n setImage(run1_l);\n }\n else if(frame == 2){\n setImage(run2_l);\n }\n else if(frame == 3){\n setImage(run3_l);\n }\n else if(frame == 4){\n setImage(run4_l);\n }\n else if(frame == 5){\n setImage(run5_l);\n }\n else if(frame == 6){\n setImage(run6_l);\n }\n else if(frame == 7){\n setImage(run7_l);\n }\n else if(frame == 8){\n setImage(run8_l);\n frame =1;\n return;\n }\n frame ++;\n }", "public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setClass(MainPage.this, Setting.class);\n\t\t\tstartActivityForResult(intent,0);\n\t\t\toverridePendingTransition(R.anim.in_from_left, R.anim.out_to_right);\n\t\t}", "public void toHomescreen () {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right); //animation for transitioning back to the homescreen\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t// Override how this activity is animated into view\n // The new activity is pulled in from the left and the current activity is kept still\n // This has to be called before onCreate\n overridePendingTransition(R.anim.pull_in_from_left, R.anim.hold);\n\t}", "@Override\n public void onAnimationEnd(Animation animation) {\n if (time) {\n //第二次打开时\n Intent intent_main = new Intent(WelcomeActivity.this,\n MainActivity.class);\n startActivity(intent_main);\n finish();\n } else {\n //第一次安装打开\n editor.putBoolean(\"time\", true);\n editor.commit();\n Intent intent_guide = new Intent(WelcomeActivity.this,\n MineActivity.class);\n startActivity(intent_guide);\n finish();\n }\n }", "@Override\n public void onAnimationEnd(Animation animation) {\n Intent intent = new Intent(this, MGuideAction.class);\n startActivity(intent);\n //设置切换动画,从右边进入,左边退出,带动态效果\n overridePendingTransition(R.anim.enter_from_right,\n R.anim.out_exist_left);\n }", "void showNext(){\n Log.d(\"Nexting\");\n right.post(new Runnable() {\n @Override\n public void run() {\n ViewAnimator.popInZero(right, 0, 200);\n }\n });\n }", "protected void gotoReadyPage(){\n\n Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n //\n finish();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_welecome);\n l1 = (LinearLayout) findViewById(R.id.l1);\n l2 = (LinearLayout) findViewById(R.id.l2);\n progressBar=(ProgressBar)findViewById(R.id.loadingPanel);\n progressBar.setVisibility(View.GONE);\n progressBar.setVisibility(View.VISIBLE);\n uptodown = AnimationUtils.loadAnimation(this,R.anim.uptodown);\n downtoup = AnimationUtils.loadAnimation(this,R.anim.downtoup);\n l1.setAnimation\n (uptodown);\n l2.setAnimation(downtoup);\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n //Do any action here. Now we are moving to next page\n Intent mySuperIntent = new Intent(welecomeActivity.this, IntroApplicationActivity.class);\n startActivity(mySuperIntent);\n /* This 'finish()' is for exiting the app when back button pressed\n * from Home page which is ActivityHome\n */\n finish();\n }\n }, SPLASH_TIME);\n }", "private void animateRight(){\n if(frame == 1){\n setImage(run1);\n }\n else if(frame == 2){\n setImage(run2);\n }\n else if(frame == 3){\n setImage(run3);\n }\n else if(frame == 4){\n setImage(run4);\n }\n else if(frame == 5){\n setImage(run5);\n }\n else if(frame == 6){\n setImage(run6);\n }\n else if(frame == 7){\n setImage(run7);\n }\n else if(frame == 8){\n setImage(run8);\n frame =1;\n return;\n }\n frame ++;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent (GalleryOfImages.this, MainMenu3.class);\n \tstartActivity(intent);\n \toverridePendingTransition(R.anim.anim_slide_in_right,\n R.anim.anim_slide_out_right);\n\t\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n /* ani = AnimationUtils.loadAnimation(this,R.anim.animation_1);\n ani.setDuration(2000);\n ll = (LinearLayout)findViewById(R.id.back1);\n ll.setBackgroundResource(R.drawable.list_view);\n animationDrawable = (AnimationDrawable)ll.getBackground();\n animationDrawable.start();\n ll.startAnimation(ani);*/\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n /* Create an Intent that will start the Menu-Activity. */\n Intent mainIntent = new Intent(getApplicationContext(), Login_state_checker.class);\n startActivity(mainIntent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGTH);\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tback.startAnimation(animAlpha);\r\n\t\t\t\tIntent i = new Intent(Train.this, Boat.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\toverridePendingTransition(R.anim.bottom_in,R.anim.top_out);\r\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.activity_slide_in_left, R.anim.activity_slide_out_right);\n }", "private void startBookMain() {\n Intent intent = new Intent();\r\n intent.setClass(this, MainActivity.class);\r\n this.startActivity(intent);\r\n this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\r\n this.finish();\r\n }", "private void startAnimating() {\t\n\t\t// Fade in bottom title after a built-in delay.\n\t\tTextView logo2 = (TextView) findViewById(R.id.TextViewBottomTitle);\n\t\tAnimation fade2 = AnimationUtils.loadAnimation(this, R.anim.fade_in2);\n\t\tlogo2.startAnimation(fade2);\n\t\t// Transition to Main Menu when bottom title finishes animating\n\t\tfade2.setAnimationListener(new AnimationListener() {\n\t\t\tpublic void onAnimationEnd(Animation animation) {\n\t\t\t\t// The animation has ended, transition to the Main Menu screen\n\t\t\t\tstartActivity(new Intent(SplashActivity.this, MainMenu.class));\n\t\t\t\tSplashActivity.this.finish();\n\t\t\t}\n\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t}\n\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this,HomeActivity.class);\r\n\t\t\t\tintent.putExtra(\"key\", \"0\");\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\tfinish();\r\n\t\t\t}", "public void startActivity(final Intent intent) {\n Bitmap screenBitmap = this.getScreenBitmap(this.container);\n\n this.container.addView(this.createBackground());\n\n int width = DeviceUtil.getScreenWidth(activity);\n int height = DeviceUtil.getScreenHeight(activity);\n\n createLeftMask(screenBitmap, width, height);\n createRightMask(screenBitmap, width, height);\n screenBitmap.recycle();//Has to be after createLeftMaskImageView and createRightMaskImageView\n\n startLeftMaskAnimation(intent, width);\n startRightMaskAnimation(width);\n }", "@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }", "private void restartActivity() {\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in,R.anim.fade_out);\n }", "private Animation inFromRightAnimation(){\r\n\t\tAnimation inFromRight = new TranslateAnimation(\r\n\t\tAnimation.RELATIVE_TO_PARENT, +1.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f);\r\n\t\tinFromRight.setDuration(350);\r\n\t\tinFromRight.setInterpolator(new AccelerateInterpolator());\r\n\t\treturn inFromRight;\r\n\t}", "@Override\n public void run() {\n if(!isClicked) {\n Intent mainIntent = new Intent(splash.this, firstAct.class);\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n }", "@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }", "public void splash(){\n ImageView splash = (ImageView) findViewById(R.id.mekslogo);\n Animation animation1 =\n AnimationUtils.loadAnimation(getApplicationContext(),\n R.anim.clockwise);\n animation1.setDuration(5000);\n splash.startAnimation(animation1);\n animation1.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n // Toast.makeText(getApplicationContext(),\"Animation ended\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(MainActivity.this, sign_up.class);\n startActivity(intent);\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n\n }\n });\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tAnimation alpha=AnimationUtils.loadAnimation(MainActivity.this,\n\t\t\t\t\tR.anim.all_animation);\n\t\t\ttv.startAnimation(alpha);\n\t\t}", "@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }", "@Override\n public void finish()\n {\n super.finish();\n\n // Allow for a smooth transition to the new Activity.\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }", "@Override\n protected void animStart() {\n }", "private Animation inFromLeftAnimation(){\r\n\t\tAnimation inFromLeft = new TranslateAnimation(\r\n\t\tAnimation.RELATIVE_TO_PARENT, -1.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f);\r\n\t\tinFromLeft.setDuration(350);\r\n\t\tinFromLeft.setInterpolator(new AccelerateInterpolator());\r\n\t\treturn inFromLeft;\r\n\t}", "private void rerunAnimation() {\n transition.playFromStart();\r\n}", "@Override\n public void aPressed() {\n if (currAnimation == Animation.CROUCHING) {\n currFrame = 0;\n counter = 0; // (to begin the sliding time count)\n setAnimation(Animation.SLIDING);\n dx = (facingLeft) ? -2 : 2;\n }\n }", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private void rocketLaunch2() {\n AnimatorSet launch = new AnimatorSet();\n ObjectAnimator y = ObjectAnimator.ofFloat(cool_rocket, \"translationY\", -2000);\n ObjectAnimator x = ObjectAnimator.ofFloat(cool_rocket, \"translationX\", 1500);\n launch.playTogether(x,y);\n launch.setInterpolator(new LinearInterpolator());\n launch.setDuration(10000);\n launch.start();\n }", "private void AnimateandSlideShow() {\n\n\t\tslidingimage = (ImageView) findViewById(R.id.ImageView3_Left);\n\t\t// Log.i(\"bitarray\", Integer.toString(bit_array.length));\n\t\tslidingimage.setImageBitmap(bit_array[currentimageindex\n\t\t\t\t% bit_array.length]);\n\n\t\tcurrentimageindex++;\n\n\t\tAnimation rotateimage = AnimationUtils.loadAnimation(this,\n\t\t\t\tR.anim.custom_anim);\n\n\t\tslidingimage.startAnimation(rotateimage);\n\n\t}", "@Override\r\n\t\t\t\t\tpublic void onAnimationEnd(Animation animation) {\n\t\t\t\t\t\tstartActivity(new Intent(GuideActivity.this,MainActivity.class));\r\n\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t}", "private void initAnim() {\n mAnim = new RotateAnimation(0, 359, Animation.RESTART, 0.5f, Animation.RESTART, 0.5f);\n mAnim.setDuration(1000);\n mAnim.setRepeatCount(Animation.INFINITE);\n mAnim.setRepeatMode(Animation.RESTART);\n //mAnim.setStartTime(Animation.START_ON_FIRST_FRAME);\n }", "@Override public void onAnimationStart(Animator arg0) {\n\n }", "public void animate(){\n\n if (ra1.hasStarted() && ra2.hasStarted()) {\n\n// animation1.cancel();\n// animation1.reset();\n// animation2.cancel();\n// animation2.reset();\n gear1Img.clearAnimation();\n gear2Img.clearAnimation();\n initializeAnimations(); // Necessary to restart an animation\n button.setText(R.string.start_gears);\n }\n else{\n gear1Img.startAnimation(ra1);\n gear2Img.startAnimation(ra2);\n button.setText(R.string.stop_gears);\n }\n }", "private void initView() {\n\t\tstart_anima = new AlphaAnimation(0.3f, 1.0f);\r\n\t\tstart_anima.setDuration(2000);\r\n\t\tview.startAnimation(start_anima);\r\n\t\tstart_anima.setAnimationListener(new AnimationListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationEnd(Animation animation) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tredirectTo();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "void startAnimation();", "private void leftToRightAnimation(View v, int t) {\n ObjectAnimator canonMoveLeft = ObjectAnimator.ofFloat(v, \"translationX\", 0f);\n canonMoveLeft.setDuration(t);\n ObjectAnimator canonMoveRight = ObjectAnimator.ofFloat(v, \"translationX\", 870f);\n canonMoveRight.setDuration(t);\n AnimatorSet moveCanon = new AnimatorSet();\n moveCanon.play(canonMoveRight).before(canonMoveLeft);\n moveCanon.start();\n }", "void onAnimationStart();", "@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\tthis.overridePendingTransition(R.anim.slide_in_from_left, R.anim.slide_out_to_right);\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAnimation alpha=AnimationUtils.loadAnimation(MainActivity.this,\n\t\t\t\t\t\tR.anim.alpha_animation);\n\t\t\t\ttv.startAnimation(alpha);\n\t\t\t}", "private Animation inFromRightAnimation() {\n\n Animation inFromRight = new TranslateAnimation(\n Animation.RELATIVE_TO_PARENT, +1.0f,\n Animation.RELATIVE_TO_PARENT, 0.0f,\n Animation.RELATIVE_TO_PARENT, 0.0f,\n Animation.RELATIVE_TO_PARENT, 0.0f );\n\n inFromRight.setDuration(200);\n inFromRight.setInterpolator(new AccelerateInterpolator());\n\n return inFromRight;\n\n }", "@Override\n public void onClick(View v) {\n viewFlipper.setInAnimation(slideLeftIn);\n viewFlipper.setOutAnimation(slideLeftOut);\n viewFlipper.showNext();\n setNextViewItem();\n// initData();\n }", "@Override\n public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {\n if (nextAnim == 0) {\n return super.onCreateAnimation(transit, enter, nextAnim);\n }\n\n Animation anim = android.view.animation.AnimationUtils.loadAnimation(getContext(), nextAnim);\n\n //using hardware layer to make the animation stutter free\n rootView.setLayerType(View.LAYER_TYPE_HARDWARE, null);\n\n anim.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {}\n @Override\n public void onAnimationEnd(Animation animation) {\n\n //setting the layer type back to none after animation\n rootView.setLayerType(View.LAYER_TYPE_NONE, null);\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {}\n });\n return anim;\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "private void setInitialAnim()\n {\n \n \n if(level.playerFacing == Direction.LEFT)\n {\t\n \tcurrentAnim = leftWalk;\n }\n else\n {\n \tcurrentAnim = rightWalk;\n }\n \n Image i = currentAnim.getCurrentFrame();\n width = i.getWidth();\n height = i.getHeight();\n }", "private void doStartAnimation(){\n TranslateAnimation trans = new TranslateAnimation(Animation.RELATIVE_TO_PARENT,1\n ,Animation.ABSOLUTE,circleImageView.getLeft()\n ,Animation.RELATIVE_TO_SELF,0,Animation.RELATIVE_TO_SELF,0);\n trans.setDuration(3000);\n trans.setInterpolator(new BounceInterpolator());\n circleImageView.startAnimation(trans);\n }", "public void switchToSlidingTile() {\n Intent slidingTile = new Intent(this, SlidingTileGameActivity.class);\n startActivity(slidingTile);\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "public void onSwipeLeft() {\n // Animate the view left\n //\n\n cardHolder.animate()\n .translationX(0 - cardHolder.getWidth())\n .setDuration(300)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n\n cardHolder.animate()\n .translationX(0)\n .setDuration(0)\n .setListener(null);\n GetCard(\"Next\");\n //cardHolder.setVisibility(View.GONE);\n }\n });\n }", "@Override\n public void onAnimationEnd(Animation animation) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n\n }", "@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}", "private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check draw over app permission\n if (!Settings.canDrawOverlays(SplashScreenActivity.this)) {\n intent = new Intent(SplashScreenActivity.this, DrawOverAppActivity.class);\n }\n }\n startActivity(intent);\n }\n });\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n overridePendingTransition(R.anim.move_left_in_activity, R.anim.move_right_out_activity);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "public void gotoActivity(Context context, Class<?> cla) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(android.R.anim.slide_in_left, R.anim.slide_out_right);\n\t}", "@OnClick(R.id.nextButton)\n public void onNext(View view){\n Intent intent = new Intent(getApplicationContext(), SettingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n finish();\n database.close();\n }", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onAnimationStart(Animation arg0) {\n \n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAnimation alpha=AnimationUtils.loadAnimation(MainActivity.this,\n\t\t\t\t\t\tR.anim.rotate_animation);\n\t\t\t\ttv.startAnimation(alpha);\n\t\t\t}", "public void animateMovementLeft()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (leftMvt.length);\n setImage(leftMvt[imageNumber]);\n }\n }", "@Override\n public void onClick(View v) {\n ensureVisibility(tweenAnimation);\n\n //builds the rotate animation from the XML resource \"R.anim.rotate\"\n Animation rotate = AnimationUtils.loadAnimation(MainActivity.this, R.anim.rotate);\n\n //begin the rotate animation\n tweenAnimation.startAnimation(rotate);\n\n\n }", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n Intent intent = new Intent(context, cla);\n intent.putExtras(bundle);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.push_left_out);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(),LoginActivity.class);\n startActivity(intent);\n finish();\n overridePendingTransition(R.anim.push_left, R.anim.push_left_out);\n }", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(),\n R.anim.blink);\n tsCustomersLayout.startAnimation(animation1);\n Intent i = new Intent(TripSheetView.this, AgentsActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}", "private void startBoardingAct() {\n Intent intent = new Intent(this, EcomLoginActivity.class);\n startActivity(intent);\n AnimUtil.activityTransitionAnimation(this);\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {\n if (enter) {\n Animation anim= MoveAnimation.create(MoveAnimation.UP, enter, 200);\n anim.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {}\n @Override\n public void onAnimationEnd(Animation animation) {\n // when animation is done then we will show the picture slide\n // becuase animation in that case will show fulently\n\n fill_data();\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {}\n });\n return anim;\n\n } else {\n return MoveAnimation.create(MoveAnimation.DOWN, enter, 200);\n }\n }", "@Override\n public void onAnimationEnd(Animation animation) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n this.finish();\n }", "@Override\n\tpublic void onAnimationStart(Animator arg0) {\n\t\tif (mState.getState() != 0) {\n\t\t\tGBTools.GBsetAlpha(bv, 0.0F);\n\t\t\tbv.setState(mState.getState());\n\t\t\tbv.setPressed(false);\n\t\t}\n\t\tbv.bringToFront();\n\t\tmBoardView.invalidate();\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tmTextView.postDelayed(animation_runnable, 1000);\r\n\t\tsuper.onResume();\r\n\t}", "@Override\n public void run() {\n\n Intent starthome = new Intent(SplashScreenActivity.this, WelcomeActivity.class);\n starthome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(starthome);\n\n finish();\n }", "private Animation outToLeftAnimation(){\r\n\t\tAnimation outtoLeft = new TranslateAnimation(\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, -1.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f);\r\n\t\touttoLeft.setDuration(350);\r\n\t\touttoLeft.setInterpolator(new AccelerateInterpolator());\r\n\t\treturn outtoLeft;\r\n\t}", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.splashscreen);\n ((LinearLayout)findViewById(R.id.bgsplashid)).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent mainIntent = new Intent(splash.this,firstAct.class);\n isClicked = true;\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n });\n\n /* New Handler to start the Menu-Activity\n * and close this Splash-Screen after some seconds.*/\n new Handler().postDelayed(new Runnable(){\n @Override\n public void run() {\n /* Create an Intent that will start the Menu-Activity. */\n if(!isClicked) {\n Intent mainIntent = new Intent(splash.this, firstAct.class);\n splash.this.startActivity(mainIntent);\n splash.this.finish();\n }\n }\n }, SPLASH_DISPLAY_LENGTH);\n }", "public void onAnimationStart(Animation arg0) {\n\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}", "@Override\n public void onResume()\n {\n super.onResume();\n\n showThing();\n \n blue_jay_animation.start();\n }", "public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else\n {\n if(animationCount % 4 == 0)\n animateRight();\n }\n }", "public void turnPage(View view) {\r\n Intent intent = new Intent(this, WelcomeActivity.class);\r\n startActivity(intent);\r\n\r\n // Spiral shrink animation to next activity\r\n overridePendingTransition(R.animator.animation_entrance, R.animator.animation_exit);\r\n }", "@Override\n public void onClick(View v) {\n viewFlipper.setInAnimation(slideRightIn);\n viewFlipper.setOutAnimation(slideRightOut);\n viewFlipper.showPrevious();\n setPrevViewItem();\n// initData();\n }" ]
[ "0.7260109", "0.69661474", "0.67522925", "0.66841614", "0.66249216", "0.66071445", "0.6576762", "0.65568066", "0.6496857", "0.6463503", "0.6435677", "0.64316076", "0.6389182", "0.6379256", "0.6364137", "0.63388455", "0.6303034", "0.6297279", "0.62741727", "0.6271592", "0.62708986", "0.6256913", "0.62474585", "0.6229158", "0.6214937", "0.6214898", "0.6207242", "0.6185669", "0.61824775", "0.61429214", "0.6136031", "0.6135304", "0.6130196", "0.6107612", "0.6105402", "0.61016995", "0.610086", "0.6093811", "0.60925794", "0.60908645", "0.6086669", "0.6086393", "0.608605", "0.6079612", "0.60774976", "0.60764045", "0.6075729", "0.60748094", "0.60649985", "0.60605913", "0.6056751", "0.60548115", "0.6045703", "0.60395765", "0.6039424", "0.60375506", "0.6019452", "0.6016606", "0.60140985", "0.6014028", "0.6005124", "0.59962237", "0.59962237", "0.59902585", "0.59833455", "0.5983021", "0.5980079", "0.5968507", "0.5963914", "0.5963914", "0.595382", "0.5949768", "0.5927048", "0.5925412", "0.592322", "0.59207916", "0.59200835", "0.5917067", "0.5916143", "0.5905957", "0.59051657", "0.59050137", "0.5901573", "0.58985597", "0.58985597", "0.58985597", "0.58985597", "0.58901966", "0.5889168", "0.5882704", "0.587842", "0.587178", "0.586071", "0.58596", "0.5857383", "0.5853605", "0.584982", "0.58488595", "0.58450603", "0.5840827" ]
0.7369129
0
TODO Autogenerated method stub
@Override protected void onDestroy() { handler.removeCallbacks(run); super.onDestroy(); }
{ "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
Function : SortAnimationPanel Use : constructor to call JPanel class Parameter : Nothing Returns : Nothing
SortAnimationPanel() { super(); // calling super class constructor super.setPreferredSize(new Dimension(400,400)); super.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void constructAnimationPanel() {\n animationPanel = new EAPanel(model);\n animationPanel.setLayout(new FlowLayout());\n animationPanel.setPreferredSize(new Dimension(model.getWidth(), model.getHeight()));\n mainPanel.add(animationPanel);\n }", "public AnimationPanel() {\n initComponents();\n // create a new game board\n game = new GameOfLife(gridSize);\n }", "public abstract void init(JPanel panel);", "public TelaSorteio() {\n initComponents();\n }", "public CreateNewEventJPanel() {\n }", "public GridLayoutAnimationController(Animation animation, float columnDelay, float rowDelay) {\n/* 82 */ super((Animation)null); throw new RuntimeException(\"Stub!\");\n/* */ }", "public HoaDonJPanel() {\n initComponents(); \n this.init();\n }", "public Panel() {\n listaKul = new ArrayList<>();\n setBackground(Color.BLACK);\n addMouseListener(new Event());\n addMouseWheelListener(new Event());\n timer = new Timer(DELAY, new Event());\n timer.start();\n }", "public DemoPanel() {\n }", "private void InitComponents() {\n apanel = new AbsolutePanel();\n FocusPanel focus = new FocusPanel();\n DockPanel panel = new DockPanel();\n\n lastPosition[0] = 0;\n\t\tlastPosition[1] = 0;\n\n\t\tisMovable = false;\n isTransformable = false;\n\n transformPoints = new VirtualGroup();\n\t\ttransformPointers = new GraphicObject[9];\n\n currRotation = 0.0;\n\n this.currentFontFamily = new ListBox();\n this.currentFontFamily.setMultipleSelect(false);\n this.currentFontFamily.insertItem(\"Arial\", 0);\n this.currentFontFamily.insertItem(\"Courier\", 1);\n this.currentFontFamily.insertItem(\"Times New Roman\", 2);\n this.currentFontFamily.insertItem(\"Verdana\", 3);\n this.currentFontFamily.insertItem(\"Georgia\", 4);\n this.currentFontFamily.setSelectedIndex(0);\n this.currentFontFamily.addChangeListener(this);\n\n this.currentFontSize = new ListBox();\n this.currentFontSize.setMultipleSelect(false);\n this.currentFontSize.insertItem(\"8\", 0);\n this.currentFontSize.insertItem(\"10\", 1);\n this.currentFontSize.insertItem(\"12\", 2);\n this.currentFontSize.insertItem(\"14\", 3);\n this.currentFontSize.insertItem(\"16\", 4);\n this.currentFontSize.insertItem(\"18\", 5);\n this.currentFontSize.insertItem(\"20\", 6);\n this.currentFontSize.insertItem(\"24\", 7);\n this.currentFontSize.insertItem(\"28\", 8);\n this.currentFontSize.insertItem(\"36\", 9);\n this.currentFontSize.insertItem(\"48\", 10);\n this.currentFontSize.insertItem(\"72\", 11);\n this.currentFontSize.setSelectedIndex(2);\n this.currentFontSize.addChangeListener(this);\n\n this.currentFontStyle = new ListBox();\n this.currentFontStyle.setMultipleSelect(false);\n this.currentFontStyle.insertItem(\"normal\", 0);\n this.currentFontStyle.insertItem(\"italic\", 1);\n this.currentFontStyle.setSelectedIndex(0);\n this.currentFontStyle.addChangeListener(this);\n\n this.currentFontWeight = new ListBox();\n this.currentFontWeight.setMultipleSelect(false);\n this.currentFontWeight.insertItem(\"normal\",0);\n this.currentFontWeight.insertItem(\"bold\", 1);\n this.currentFontWeight.setSelectedIndex(0);\n this.currentFontWeight.addChangeListener(this);\n\n this.updateFont();\n\n canvas = new GraphicCanvas();\n\t\tcanvas.setStyleName(\"drawboard\");\n\t\tcanvas.setPixelSize(width, height);\n\t\tcanvas.addGraphicObjectListener(this);\n\n saver = new SVGFormatter(\"1.1\", \"http://www.w3.org/2000/svg\", \"demo\", width, height);\n\n buttonPanel = new VerticalPanel();\n\t\tbuttonPanel.setSpacing(0);\n\n Grid gridShape = new Grid(4, 2);\n\t\tgridShape.setCellSpacing(2);\n\t\tgridShape.setCellPadding(2);\n\n Grid gridTransform = new Grid(3, 2);\n\t\tgridTransform.setCellPadding(2);\n\t\tgridTransform.setCellSpacing(2);\n\n fill = new HTML(\" \");\n\t\tDOM.setStyleAttribute(fill.getElement(), \"backgroundColor\", this.currentFillColor.toHex());\n\t\tDOM.setStyleAttribute(fill.getElement(), \"border\", \"solid\");\n\t\tDOM.setStyleAttribute(fill.getElement(), \"borderWidth\", \"thin\");\n\t\tDOM.setStyleAttribute(fill.getElement(), \"borderColor\", \"#000000\");\n\t\tfill.setSize(\"30px\", \"30px\");\n\t\tfill.addClickListener(this);\n\n stroke = new HTML(\" \");\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\", this.currentStrokeColor.toHex());\n DOM.setStyleAttribute(stroke.getElement(), \"border\", \"solid\");\n DOM.setStyleAttribute(stroke.getElement(), \"borderWidth\", \"thin\");\n DOM.setStyleAttribute(stroke.getElement(), \"borderColor\", \"#000000\");\n stroke.setSize(\"30px\",\"30px\");\n stroke.addClickListener(this);\n\n HTML fake = new HTML(\"&nbsp;&nbsp;&nbsp;\");\n DOM.setStyleAttribute(fake.getElement(), \"backgroundColor\", \"#FFFFFF\");\n fake.setSize(\"30px\", \"30px\");\n\n HTML fake2 = new HTML(\"&nbsp;&nbsp;&nbsp;\");\n DOM.setStyleAttribute(fake2.getElement(), \"backgroundColor\", \"#FFFFFF\");\n fake2.setSize(\"30px\", \"30px\");\n\n buttonPanel.add(gridShape);\n buttonPanel.add(fake);\n buttonPanel.add(fake2);\n\n this.strokeButton = new Image(\"gfx/color.gif\");\n this.strokeButton.setTitle(\"Choose the stroke\");\n this.strokeButton.setSize(\"34px\", \"34px\");\n this.strokeButton.addClickListener(this);\n\n buttonPanel.add(this.strokeButton);\n buttonPanel.setCellHorizontalAlignment(this.strokeButton, VerticalPanel.ALIGN_CENTER);\n\n\t\tbuttonPanel.add(gridTransform);\n\n fillOpacity = new Slider(Slider.HORIZONTAL, 0, 255, 255, true);\n\t\tfillOpacity.addChangeListener(this);\n\n strokeOpacity = new Slider(Slider.HORIZONTAL, 0, 255, 255, true);\n\t\tstrokeOpacity.addChangeListener(this);\n\n currentStrokeSize = new Slider(Slider.HORIZONTAL, 0, 50, 1, true);\n currentStrokeSize.addChangeListener(this);\n\n /** This adds the buttons to the two grids */\n selectButton = addToGrid(gridShape, 0, 0, \"Select object\", \"gfx/select.gif\");\n\t\tpencilButton = addToGrid(gridShape, 0, 1, \"Draw with Pencil\", \"gfx/pencil.gif\");\n\t\tlineButton = addToGrid(gridShape, 1, 0, \"Draw a Line\", \"gfx/line.gif\");\n\t\trectButton = addToGrid(gridShape, 1, 1, \"Draw a Rect\", \"gfx/rect.gif\");\n\t\tcircleButton = addToGrid(gridShape, 2, 0, \"Draw a Circle\", \"gfx/circle.gif\");\n\t\tellipseButton = addToGrid(gridShape, 2, 1, \"Draw a Ellipse\", \"gfx/ellipse.gif\");\n\t\tpolylineButton = addToGrid(gridShape, 3, 0, \"Draw a Path\", \"gfx/polyline.gif\");\n textButton = addToGrid(gridShape, 3, 1, \"Write Text\", \"gfx/text.gif\");\n\n\t\tdeleteButton = addToGrid(gridTransform, 0, 0, \"Delete object\",\"gfx/delete.gif\");\n saveButton = addToGrid(gridTransform, 0, 1, \"Save SVG to page\",\"gfx/save.gif\");\n backButton = addToGrid(gridTransform, 1, 0, \"Send object Back\",\"gfx/back.gif\");\n\t\tfrontButton = addToGrid(gridTransform, 1, 1, \"Send object Front\",\"gfx/front.gif\");\n\n apanel.add(focus);\n\n focus.add(panel);\n panel.add(this.canvas, DockPanel.CENTER);\n\t\tpanel.add(this.buttonPanel, DockPanel.WEST);\n panel.add(this.currentFontFamily, DockPanel.SOUTH);\n panel.add(this.currentFontSize, DockPanel.SOUTH);\n panel.add(this.currentFontStyle, DockPanel.SOUTH);\n panel.add(this.currentFontWeight, DockPanel.SOUTH);\n this.apanel.setSize(\"100%\", \"100%\");\n focus.addKeyboardListener(this);\n focus.setSize(\"100%\", \"100%\");\n }", "public void dibujar(JPanel panel);", "public GraphFrame(Sort[] sorts, LayoutManager manager) {\n\n super(\"Sorting Algorithms\");\n this.sorts = sorts;\n constructContainer(manager);\n initializeFrame();\n\n }", "public Panel() {\n initComponents();\n\n\n }", "@Override\n protected Void call() {\n ((HBox) root.getTop()).getChildren().get(2).setDisable(true);\n ((HBox) root.getTop()).getChildren().get(3).setDisable(true);\n\n // The array of rectangle heights is sorted and a list of animations for the rectangles\n // on the screen is created as the sorting executes\n List<List<List<double[]>>> animations = new ArrayList<List<List<double[]>>>();\n runMergeSort(heights, numOfThreads, animations);\n runAnimations(recs, animations);\n\n return null;\n }", "public Panel(LayoutManager paramLayoutManager)\n/* */ {\n/* 65 */ setLayout(paramLayoutManager);\n/* */ }", "@Override\n\tpublic void Init(JPanel panel) {\n\n\t\tfor (int i = 0; i < tracks.size(); i++) {\n\t\t\tfor (Track track : tracks) {\n\t\t\t\tif (track.GetLevel() == i+ 1) {\n\t\t\t\t\ttrack.AtomInit(200 + 50 * i, panel);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public PanelSelectionMethod() {\n\t\t\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// CREATE THE COMPONENTS\n\t\t// ----------------------------------------------------------------------------\n\t\t// Create the model to management the elements.\n\t\tlistModel = new DefaultListModel<String>(); \n\t\tmethodList = new JList<String>(listModel);\n\t\t\n\t\tlistModel.addElement(Method_0);\n\t\tlistModel.addElement(Method_1);\n\t\tlistModel.addElement(Method_2);\n\t\tlistModel.addElement(Method_3);\n\t\tlistModel.addElement(Method_4);\n\t\tlistModel.addElement(Method_5);\n\t\t\n\t\tselectionModel = methodList.getSelectionModel(); \n\t\t\n\t\t// Create the components.\n\t\ttitle = new JLabel(\"Methods:\"); // Title\n\t\tJScrollPane scrollUniverses = new JScrollPane(methodList);\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// DEFINE LAYOUT ADMINISTRATOR\n\t\t// ----------------------------------------------------------------------------\n\t\tthis.setLayout(new GridBagLayout());\n\t\tthis.setMinimumSize(new Dimension(width,height));\n\t\tthis.setMaximumSize(new Dimension(width,height));\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// DEFINE GRIDBAGCONSTRAINTS\n\t\t// ----------------------------------------------------------------------------\n\t\tGridBagConstraints infoTitle = new GridBagConstraints();\n\t\tinfoTitle.insets = new Insets(3,3,3,3);\n\t\tinfoTitle.gridx = 0;\n\t\tinfoTitle.gridy = 0;\n\t\tinfoTitle.weightx = 1.0;\n\t\tinfoTitle.weighty = 0.0;\n\t\tinfoTitle.anchor = GridBagConstraints.NORTHWEST;\n\t\t\n\t\tGridBagConstraints infoScroll = new GridBagConstraints();\n\t\tinfoScroll.gridx = 0;\n\t\tinfoScroll.gridy = 1;\n\t\tinfoScroll.weightx = 1.0;\n\t\tinfoScroll.weighty = 1.0;\n\t\tinfoScroll.fill = GridBagConstraints.BOTH;\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// ADD THE COMPONENTS TO THE CONTAINER\n\t\t// ----------------------------------------------------------------------------\n\t\tthis.add(title,infoTitle);\n\t\tthis.add(scrollUniverses,infoScroll);\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// EVENTS HANDLERS\n\t\t// ----------------------------------------------------------------------------\n\t\tthis.selectionModel.addListSelectionListener(new ListSelectionListener(){\n\t\t\tpublic void valueChanged (ListSelectionEvent e){\n\t\t\t\tif (!e.getValueIsAdjusting() && (methodList.getSelectedValue()!=null)){\n\t\t\t\t\tPageRankGUI.actMethod = (String) methodList.getSelectedValue();\n\t\t\t\t\tSystem.out.println(\"Selected : \" + PageRankGUI.actMethod);\n\t\t\t\t\tif ((PageRankGUI.actUniverse!=null) && (PageRankGUI.actMethod!=null) &&\n\t\t\t\t\t\t (PageRankGUI.actOption!=null)){\n\t\t\t\t\t\tPanelShowPageRank.loadPageRank();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n \n\t}", "public GridLayoutAnimationController(Animation animation) {\n/* 71 */ super((Animation)null); throw new RuntimeException(\"Stub!\");\n/* */ }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public JJPanel() {\n\n\t}", "private void init() {\n\t\treturnJPanel = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_return, 0, 0, d.width, d.height, null);\n\t\t\t}\n\t\t};\n\t\treturnJPanel.addMouseListener(new Click_return());\n\t\treturnJPanel.setOpaque(false);\n\t\t\n\t\tname = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_select, 0, 0, d.width, d.height, null);\n\t\t\t\t}\n\t\t};\n\t\tname.setOpaque(false);\n\t\t\n\t\tfree = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_free, 0, 0, d.width, d.height, null);\n\t\t\t}\n\t\t};\n\t\tfree.setOpaque(false);\n\t\tfree.addMouseListener(new Click_free());\n\n\t\t\n\t\ttopbar = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tg.drawImage(image_topbar, 0, 0, 960, 102, null);\n\t\t\t}\n\t\t};\n\t\ttopbar.setOpaque(false);\n\t\ttopbar.add(returnJPanel);\n\t\ttopbar.add(name);\n\t\t//topbar.add(free);\n\t\t//topbar.add(message);\n\t\tadd(topbar);\n\t\t\n\t\tmiddleBar = new JPanel();\n\t\tmiddleBar.setOpaque(false);\n\t\t\n\t\tmiddleLeft = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_tradition, 0, 0, d.width, d.height, null);\n\t\t\t}\n\t\t};\n\t\tmiddleLeft.setOpaque(false);\n\t\tmiddleLeft.addMouseListener(new Click_Classic());\n\t\t\n\t\tmiddleRight = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_laizi, 0, 0, d.width, d.height, null);\n\t\t\t}\n\t\t};\n\t\tmiddleRight.setOpaque(false);\n\n\t\tmiddleBar.add(middleLeft);\n\t\tmiddleBar.add(middleRight);\n\t\tadd(middleBar);\n\t\t\n\t\tbottomBar = new JPanel();\n\t\tbottomBar.setOpaque(false);\n\t\t\n\t\theadJPanel = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_head, 10, 10, (int)d.getWidth()-20, (int)d.getHeight()-20, null);\n\t\t\t\tg.drawImage(image_headframe, 0, 0, (int)d.getWidth(), (int)d.getHeight(), null);\n\t\t\t}\t\n\t\t};\n\t\theadJPanel.setOpaque(false);\n\t\theadJPanel.addMouseListener(new Click_mydata());\n\t\t\n\t\tuserMessage = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_headmessage, 0, 0, d.width, d.height, null);\n\t\t\t\tg.drawImage(image_beans, 20, 60, 44, 42, null);\n\t\t\t\t}\n\t\t};\n\t\tuserMessage.setOpaque(false);\n\t\t\n\t\thelp = new JPanel(){\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tDimension d = getSize();\n\t\t\t\tg.drawImage(image_help, 0, 0, d.width, d.height, null);\n\t\t\t\t}\n\t\t};\n\t\thelp.setOpaque(false);\n\t\thelp.addMouseListener(new Click_help());\n\t\t\n\t\tbottomBar.add(headJPanel);\n\t\tbottomBar.add(userMessage);\n\t\t//bottomBar.add(honor);\n\t\tbottomBar.add(free);\n\t\t//bottomBar.add(message);\n\t\tbottomBar.add(help);\n\t\tadd(bottomBar);\n\t\t\n\t}", "private DisplayPanel(){\r\n\t\t\t\tControlActionListenter cal = new ControlActionListenter();\r\n\t\t\t\tsetLayout(new BorderLayout());\r\n\t\t\t\tfinal JButton btn1 = new JButton(\"First\");\r\n\t\t\t\tbtn1.setFocusable(false);\r\n \t \tbtn1.addActionListener(cal);\r\n \t\t\tfinal JButton btn2 = new JButton(\"Next\");\r\n \t\t\tbtn2.addActionListener(cal);\r\n \t\t\t\tfinal JButton btn3 = new JButton(\"Previous\");\r\n \t\t \tbtn3.addActionListener(cal);\r\n \t\t final JButton btn4 = new JButton(\"Last\");\r\n \t\tbtn4.addActionListener(cal);\r\n \t\tbtn2.setFocusable(false);\r\n \t\tbtn3.setFocusable(false);\r\n \t\tbtn4.setFocusable(false);\r\n \t\t \tJPanel controlButtons = new JPanel(new GridLayout(2,2,5,5));\r\n \t\t \tcontrolButtons.add(btn3);\r\n \t\t \tcontrolButtons.add(btn2);\r\n \t\t \tcontrolButtons.add(btn1);\r\n \t\tcontrolButtons.add(btn4);\r\n \t\tcontrolButtons.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n \t\tadd(controlButtons, BorderLayout.PAGE_END);\r\n\t\t\t}", "public Panel() {\n }", "public VisualView(ReadOnlyAnimatorModel aModel) {\n\n super();\n\n // attrs\n\n int leftMostX = (int) aModel.getBoundingBoxLoc().getX();\n int topMostY = (int) aModel.getBoundingBoxLoc().getY();\n int height = aModel.getBoundingBoxHeight();\n int width = aModel.getBoundingBoxWidth();\n\n List<AnimatedShapeImpl> shapesAtTick = aModel.getShapesAtTick(aModel.getModelStartTime());\n\n this.setTitle(\"Animator Visual View - Bou Lahdou and McNeill\");\n this.setSize(width, height);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setLayout(new BorderLayout());\n\n this.animationPanel = new AnimationPanel(shapesAtTick);\n animationPanel.setPreferredSize(new Dimension(width, (7 * height) / 8));\n this.add(animationPanel, BorderLayout.NORTH);\n\n JScrollPane scroller = new JScrollPane(animationPanel);\n scroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n scroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n scroller.setBounds(20, 25, 200, 50);\n\n this.add(scroller, BorderLayout.CENTER);\n }", "public PanelAmigo() {\n initComponents();\n \n }", "public PlaybackView(int tempo, IModel model) throws IllegalArgumentException {\n super(tempo, model);\n setTitle(\"Easy Animator Playback\");\n setPreferredSize(new Dimension(800, 900));\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.paused = false;\n this.loop = false;\n this.speed = tempo;\n this.delay = 1000 / speed;\n\n // set up main panel to house all other panels\n mainPanel = new JPanel();\n mainPanel.setBackground(Color.white);\n mainPanel.setBorder(BorderFactory.createTitledBorder(\"Main Panel\"));\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.X_AXIS));\n\n // set up drawPanel\n drawPanel = new DrawPanel(model);\n drawPanel.setBorder(BorderFactory.createTitledBorder(\"Animation Visualization\"));\n\n // set up the controlPanel\n controlPanel = new JPanel();\n controlPanel.setBorder(BorderFactory.createTitledBorder(\"Control Panel\"));\n controlPanel.setLocation(50, 725);\n controlPanel.setSize(700, 130);\n controlPanel.setBackground(Color.gray);\n controlPanel.setLayout(new GridLayout());\n\n // set up buttons\n play = new JButton();\n play.setText(\"Play/Pause\");\n play.setActionCommand(\"play/pause\");\n rewind = new JButton();\n rewind.setText(\"Rewind\");\n rewind.setActionCommand(\"rewind\");\n setLoop = new JCheckBox();\n setLoop.setText(\"Loop\");\n setLoop.setSelected(false);\n setLoop.setActionCommand(\"loop\");\n setSpeed = new JTextField(this.speed);\n Font field = new Font(\"SansSerif\", Font.BOLD, 30);\n setSpeed.setFont(field);\n setSpeed.setBorder(BorderFactory.createTitledBorder(\"Speed Input\"));\n changeSpeed = new JButton(\"Set Speed\");\n changeSpeed.setActionCommand(\"speed\");\n\n // set listeners\n this.setListeners(this);\n\n controlPanel.add(play);\n controlPanel.add(rewind);\n controlPanel.add(setLoop);\n controlPanel.add(changeSpeed);\n controlPanel.add(setSpeed);\n\n // add all to mainpanel\n mainPanel.add(drawPanel);\n this.add(controlPanel);\n this.add(mainPanel);\n pack();\n setVisible(true);\n }", "public MundoJuego( JPanel panel ) {\r\n\t\tthis.panel = panel;\r\n\t}", "public DashBoardPanel() {\n initComponents();\n }", "public void initPanel() {\n\n puzzlePanel.setVisible(false);\n puzzlePanel = new PuzzlePanel(panelSize);\n\n getContentPane().add(puzzlePanel, BorderLayout.CENTER);\n getContentPane().add(controlPanel, BorderLayout.SOUTH);\n puzzlePanel.setVisible(true);\n\n isWin = false;\n puzzlePanel.setMoveCount(0);\n\n lblMove.setText(\"Jumlah Gerakan: 0\");\n lblTime.setText(\"Waktu: 0 detik\");\n startTime = System.currentTimeMillis();\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n while (!isWin) {\n try {\n currentTime = System.currentTimeMillis();\n lblTime.setText(\"Waktu terpakai: \" + ((currentTime - startTime) / 1000)\n + \" detik\");\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n t.start();\n }", "public JPanelStartMafiaGame() {\n initComponents();\n\n }", "@Override\n\t public SequentialTransition SortAndDisplay(int[] arr, ArrayList<StackPane> list ,double speed) {\n\t\t\tSequentialTransition sq = new SequentialTransition();\n//\t\t\tint n = arr.length;\n\t\t\tsort(arr, 0, arr.length-1, sq, list,speed);\n\t\t\n\t\t\treturn sq;\n\t\t}", "public DotsPanel() {\n\n\t\ttimer = new Timer(10, new DotsListener());\n\n\t\tthis.setLayout(new BorderLayout());\n\n\t\t// -----------------------------------------------------------------\n\t\t// Fills the arrays with a number from -min to max, but\n\t\t// not including 0\n\t\t// -----------------------------------------------------------------\n\t\tfor (int i = 0; i < ARRAY_SIZE; i++) {\n\n\t\t\tfor (int ii = 0; ii < axis; ii++) {\n\n\t\t\t\trandomXY[i][ii] = gen.nextInt(max + 1 + min) - min;\n\n\t\t\t\twhile (randomXY[i][ii] == 0)\n\t\t\t\t\trandomXY[i][ii] = gen.nextInt(max + 1 + min) - min;\n\t\t\t}\n\n\t\t\tfor (int ii = 0; ii < colorRange; ii++) { // fills the 2D array with random values\n\n\t\t\t\trandomRGB[i][ii] = gen.nextInt(256); // for RGB values\n\t\t\t}\n\t\t}\n\n\t\tpointList = new ArrayList<Point>();\n\n\t\taddMouseListener(new DotsListener());\n\t\taddMouseMotionListener(new DotsListener());\n\t\taddMouseWheelListener(new DotsListener());\n\n\t\tdotSpeedSlider = new JSlider(JSlider.HORIZONTAL, 0, 10, 0);\n\t\tdotSpeedSlider.setMajorTickSpacing(1);\n\t\tdotSpeedSlider.setPaintTicks(true);\n\t\tdotSpeedSlider.setPaintLabels(true);\n\t\tdotSpeedSlider.setSnapToTicks(true);\n\n\t\tSlideListener listener = new SlideListener();\n\t\tdotSpeedSlider.addChangeListener(listener);\n\n\t\tdotSpeedLabel = new JLabel(\"Speed Of Dots: \" + 0);\n\t\tdotSpeedLabel.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n\t\tdotSpeedPanel = new JPanel();\n\t\tdotSpeedPanel.add(dotSpeedSlider);\n\t\tdotSpeedPanel.add(dotSpeedLabel);\n\n\t\tadd(dotSpeedPanel, BorderLayout.SOUTH);\n\n\t\tsetBackground(Color.black);\n\t\tsetPreferredSize(new Dimension(WIDTH, HEIGHT));\n\n\t\ttimer.start();\n\t}", "public Puzzle_End_Panel() {\n initComponents();\n }", "public JPanelGameState() {\n initComponents();\n initLabelsArray();\n }", "private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}", "@Override\n public void setupPanel()\n {\n\n }", "private void setUpList(JPanel panel){\n panel.setLayout(new BorderLayout());\n JPanel holder = new JPanel();\n holder.setLayout(new BoxLayout(holder,BoxLayout.Y_AXIS));\n for(Object t: agenda.getConnector().getTasks(currentList)) {\n Tasks task = (Tasks)t;\n add = false;\n this.addTask(holder,task);\n add = true;\n }\n JScrollPane scrollPane = new JScrollPane(holder,ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n JButton showCompleted = new JButton(\"Show completed\");\n showCompleted.addActionListener(e -> {\n JPanel completedPanels = new JPanel();\n this.setUpSize(completedPanels,400,400,AgendaConstants.ALL);\n completedPanels.setLayout(new BoxLayout(completedPanels,BoxLayout.Y_AXIS));\n for(Object o: agenda.getConnector().getCTasks(currentList)){\n CompletedTodo t = (CompletedTodo) o;\n Task task = new Task(t);\n this.setUpSize(task,390,50,AgendaConstants.MAXIMUM);\n completedPanels.add(task);\n }\n JOptionPane.showMessageDialog(null,completedPanels);\n });\n panel.add(showCompleted,BorderLayout.NORTH);\n panel.add(scrollPane,BorderLayout.CENTER);\n this.updateComponent(panel);\n }", "public SortPrinter() {\n initComponents();\n }", "public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public EnhancedVisualView(IReadOnlyModel model, int speed) {\n super();\n this.mm = (AnimationModel) model;\n VisualView vView = new VisualView(mm, speed);\n this.setTitle(vView.getTitle());\n this.setSize(vView.getSize());\n this.setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\n this.setDefaultCloseOperation(vView.getDefaultCloseOperation());\n\n //use a borderlayout with drawing panel in center and button panel in south\n this.setLayout(vView.getLayout());\n this.vPanel = new VisualPanel(mm, speed);\n vPanel.setPreferredSize(new Dimension(500, 500));\n this.add(vPanel, BorderLayout.CENTER);\n\n //set play button\n buttonPanel = new ButtonPanel();\n this.add(buttonPanel, BorderLayout.SOUTH);\n\n //sets the menu bar\n menuBar = new MenuPanel(mm.getShapes());\n this.add(menuBar, BorderLayout.WEST);\n\n vPanel.setSlider(menuBar.getJSlider());\n this.menuBar.getJSlider().setMinimum(0);\n this.menuBar.getJSlider().setMaximum(this.vPanel.getMaxTick());\n menuBar.getJSlider().setValue(0);\n menuBar.getJSlider().addChangeListener((ChangeEvent e) -> {\n JSlider source = (JSlider) e.getSource();\n int fps = (int) source.getValue();\n if (source.getValueIsAdjusting()) {\n vPanel.stopTimer();\n vPanel.setTick(fps);\n vPanel.repaint();\n } else {\n vPanel.startTimer();\n }\n });\n\n }", "private void setGraphPanels() {\n\n GraphArray g;\n\n for (Sort s : sorts) {\n //g = new GraphArray(s.getArray(), s.getClass().getSimpleName());\n container.add(s.getGraph().getChartPanel());\n }\n }", "@Override\n\tpublic void Update(JPanel panel) {\n\t\t\n\t}", "public MibParsePanel()\r\n {\r\n this.before();\r\n initComponents();\r\n }", "public DrawPanel() {\n initComponents();\n }", "public LayerViewPanel()\r\n {\r\n \r\n }", "public SortPanel() {\n\t\t\t fs = new Font [3];\n\t\t\t fs[0] = new Font(\"Lato\", Font.BOLD, 36);\n\t\t\t fs[1] = new Font(\"Open Sans\", 0 , 20);\n\t\t\t fs[2] = new Font(\"Open Sans\", 0 , 12);\n\t\t\t enterCondB = new JButton(\"Sort Cities\");\n\t\t\t enterCityB = new JButton(\"Sort Conditions\");\n\t\t\t backB = new JButton(\"Return\");\n\t\t\t menuL = new JLabel (\"Sort Feature\");\n\t\t\t String [] cond = new String [8];\n\t\t\t dropDownCond = new JComboBox<String> (mainGui.getCond());\n\t\t\t dropDownCity = new JComboBox<String> (mainGui.getCities());\n\t\t\t tA = new JTextArea ();\n\t\t\t enterCondB.setFont(fs[1]);\n\t\t\t enterCityB.setFont(fs[1]);\n\t\t\t backB.setFont(fs[2]);\n\t\t\t menuL.setFont(fs[0]);\n\t\t\t dropDownCond.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t dropDownCity.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t tA.setEditable(false);\n\t\t\t \n\t\t\t // loads UI elements in view\n\t\t\t add(menuL, BorderLayout.PAGE_START);\n\t\t\t add(dropDownCond, BorderLayout.LINE_START);\n\t\t\t add(enterCondB, BorderLayout.CENTER);\n\t\t\t add(dropDownCity, BorderLayout.LINE_START);\n\t\t\t add(enterCityB, BorderLayout.CENTER);\t \n\t\t\t add(tA, BorderLayout.LINE_END);\n\t\t\t add(backB, BorderLayout.PAGE_END);\n\t\t\t //listens to sort by cond button to be pressed\n\t\t\t enterCondB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t \t City[] c = mainGui.cities;\n\t\t\t \t int n = dropDownCond.getSelectedIndex();\n\t\t\t \t Heapsort.sortHeap(c, c.length, n);\n\t\t\t \t for(int i = 0; i < c.length / 2; i++)\n\t\t\t \t {\n\t\t\t \t City temp = c[i];\n\t\t\t \t c[i] = c[c.length - i - 1];\n\t\t\t \t c[c.length - i - 1] = temp;\n\t\t\t \t }\n\t\t\t \t tA.setText(\"Cities sorted by occurence of \"+dropDownCond.getSelectedItem().toString()+\":\");\n\t\t\t \t for (int i = 0; i < c.length; i++)\n\t\t\t \t\t tA.append(\"\\n\"+c[i].getCity()+ \", \"+c[i].getCond(n));\n\t\t\t }\n\t\t\t });\n\t\t\t //listens to sort by city button to be pressed\n\t\t\t enterCityB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t \t String [] s = mainGui.getCond();\n\t\t\t \t int [] cond = mainGui.cities[dropDownCity.getSelectedIndex()].getCond();\n\t\t\t \t\t System.out.println(s.length+\", \"+cond.length);\n\t\t\t \t Heapsort2.sortHeap(s, cond, cond.length);\n\t\t\t \t for(int i = 0; i < s.length / 2; i++)\n\t\t\t \t {\n\t\t\t \t String temp = s[i];\n\t\t\t \t s[i] = s[s.length - i - 1];\n\t\t\t \t s[s.length - i - 1] = temp;\n\t\t\t \t int t = cond[i];\n\t\t\t \t cond[i] = cond[cond.length - i - 1];\n\t\t\t \t cond[cond.length - i - 1] = t;\n\t\t\t \t }\n\t\t\t \t tA.setText(\"Conditions sorted by occurence in \"+dropDownCity.getSelectedItem().toString()+\":\");\n\t\t\t \t for (int i = 0; i < s.length; i++)\n\t\t\t \t\t tA.append(\"\\n\"+s[i]+ \", \" +cond[i]);\n\t\t\t }\n\t\t\t });\n\t\t\t //listens to back button to be pressed\n\t\t\t backB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t //System.out.println(\"backB clicked\");\n\t\t\t mainGui.paneSwitch(0);\n\t\t\t }\n\t\t\t });\n\t\t }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tZidingyi ccc= new Zidingyi();\r\n\t\tif (panscroll.thisone==null) {}\r\n\t\telse \r\n\t\t{\r\n\t\t\tpanscroll.add(ccc);\r\n\t\t\tccc.stringSet(panscroll.copymas);\r\n\t\t\tccc.setYanse(panscroll.copyYanse);\r\n\t\t\tccc.setYanse1(panscroll.copyYanse1);\r\n\t\t\tccc.setShape(panscroll.copyshape);\r\n\t\t\tccc.setOK(panscroll.copyOK);\r\n\t\t\tpanscroll.thisone.addson(ccc);\r\n\t\t\tccc.setdad(panscroll.thisone);\r\n\t\t\tpanscroll.revalidate();\r\n\t\t\tpanscroll.repaint();\r\n\t\t}\r\n\t}", "KeyFrameListPanel() {\n super();\n\n this.keyframes = new ArrayList<>();\n }", "public abstract void addProgressComponents (Container panel);", "public PanelMethodSEDN(){}", "public PackageVerificationJPanel(JPanel upc, Business b, UserAccount ua, ShippingRequest sr,InventoryWorkQueueJPanel iwq) {\n initComponents();\n\n this.b = b;\n userProcessContainer = upc;\n userAccount = ua;\n this.sr = sr;\n this.iwq=iwq;\n \n tempCartList=new ArrayList<Carton>();\n orderCartList=new ArrayList<Carton>();\n for(Carton c:sr.getOrder().getCartonList()){\n orderCartList.add(c);\n }\n\n refreshWorkReqTable();\n JPanel panel = this;\n panel.setOpaque(false);\n panel.setPreferredSize(this.getPreferredSize());\n\n }", "public Component getPanelControl() {\n\t\tTableSorter sorterOperaciones = new TableSorter(modeloOperaciones);\n\t\tJTable tablaOperaciones = new JTable(sorterOperaciones);\n\t\tsorterOperaciones.setTableHeader(tablaOperaciones.getTableHeader());\n\t\tJScrollPane panelScrollDerecha = new JScrollPane(tablaOperaciones);\n\t\tpanelScrollDerecha.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelDerecha = new FakeInternalFrame(\"Log de Operaciones\", panelScrollDerecha);\n\n\t\tTableSorter sorterPrecios = new TableSorter(modeloPrecios);\n\t\tJTable tablaPrecios = new JTable(sorterPrecios);\n\t\tsorterPrecios.setTableHeader(tablaPrecios.getTableHeader());\n\t\ttablaPrecios.getColumn(tablaPrecios.getColumnName(1)).setCellRenderer(modeloPrecios.getRenderer());\n\n\t\tJScrollPane panelScrollIzqAbajo = new JScrollPane(tablaPrecios);\n\t\tpanelScrollIzqAbajo.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelIzqAbajo = new FakeInternalFrame(\"Precios en bolsa\", panelScrollIzqAbajo);\n\n\t\t//panelSecundario = new JSplitPane(JSplitPane.VERTICAL_SPLIT, panelIzqAbajo, panelIzqArriba);\n\t\tpanelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelIzqAbajo, panelDerecha);\n\n\t\tpanelPrincipal.setDividerLocation(300);\n\t\t//panelSecundario.setDividerLocation(300);\n\n\t\tpanelIzqAbajo.setPreferredSize(new Dimension(250, 300));\n\t\tpanelDerecha.setPreferredSize(new Dimension(550, 600));\n\n\t\treturn panelPrincipal;\n\t}", "public void makeLongComps(JPanel[] subLong){\n\t\t\tsubLong[0] = new JPanel();\n\t\t\tsubLong[1] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[0], 0, h, longColors[5]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[2] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[1], 0, h, longColors[6]); \n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[3] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[2], 0, h, longColors[7]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[4] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[3], 0, h, longColors[8]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tsubLong[5] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, longColors[4], 0, h, longColors[9]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\tsubLong[6] = new JPanel();\n\t\t}", "public GamesPanel() {\n initComponents();\n }", "public JPanel buildContentPane() {\n\t\r\n\tconvert.addActionListener(this);\r\n\t\r\n\t//Ajout des objet au panel\r\n\t\r\n\tsouth.add(convert, BorderLayout.WEST);\r\n\tsouth.add(far, BorderLayout.EAST);\r\n\tnorth.add(temp, BorderLayout.WEST);\r\n\tnorth.add(cel, BorderLayout.EAST);\r\n\tpanel.add(north, BorderLayout.NORTH);\r\n\tpanel.add(south, BorderLayout.SOUTH);\r\n\t\r\n\treturn panel;\r\n\t\r\n}", "public void CreateScorePanel()\r\n {\r\n\r\n //time = new Timer(10000, null);\r\n scorePanel = new JPanel();\r\n scorePanel.setBackground(new Color(151, 108, 74));\r\n labelPanel = new JPanel(new GridLayout(1,2));\r\n buttonPanel = new JPanel(new GridLayout(1,3));\r\n dropButton = new JButton(\"Fetch\");\r\n dropButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n dropButton.addActionListener(listener);\r\n helpButton = new JButton(\"Help\");\r\n helpButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n helpButton.addActionListener(listener);\r\n scoreLabel = new JLabel(\"Score: \" + score + \" \");\r\n scoreLabel.setFont( new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n goalLabel = new JLabel(\"Goal: \"+ GOAL + \" \");\r\n goalLabel.setFont( new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n timeLabel = new JLabel(\"Time: 0 \" );\r\n timeLabel.setFont( new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n goalLabel.setForeground(Color.WHITE);\r\n timeLabel.setForeground(Color.WHITE);\r\n scoreLabel.setForeground(Color.WHITE);\r\n\r\n buttonPanel.add(dropButton);\r\n buttonPanel.add(helpButton);\r\n buttonPanel.setFocusable(true);\r\n labelPanel.add(scoreLabel);\r\n labelPanel.add(goalLabel);\r\n labelPanel.add(timeLabel);\r\n labelPanel.setBackground(new Color(151, 108, 74));\r\n scorePanel.add(labelPanel, BorderLayout.WEST);\r\n scorePanel.add(buttonPanel, BorderLayout.EAST);\r\n }", "public PanelSgamacView1()\n {\n }", "public void montarPainelSuperior() {\n\t\ttimer = new Temporizador();//INICIA O TEMPORIZADOR\r\n\t\tJPanel painelSuperior = new JPanel();\r\n\t\t\r\n\t\tpainelSuperior.setBounds(12, 11, 738, 55);\r\n\t\tpainelSuperior.setOpaque(false);\r\n\t\tlayeredPane.add(painelSuperior);\r\n\t\tbotaoSair = new JButton(\"MENU\");\r\n\t\tbotaoSair.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tbotaoSair.addActionListener(this);\r\n\t\tlblNumeroBombas = new JLabel();\r\n\t\tlblNumeroBombas.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNumeroBombas.setFont(timer.getFont());\r\n\t\tlblNumeroBombas.setForeground(Color.ORANGE);\r\n\t\tlblNumeroBombas.setIcon(iconContador);\r\n\t\t\r\n\t\tbtnIa = new JButton(\"AJUDA\");\r\n\t\tbtnIa.setIcon(iconIa);\r\n\t\tbtnIa.setOpaque(false);\r\n\t\tbtnIa.setContentAreaFilled(false);\r\n\t\tbtnIa.setBorder(BorderFactory.createLineBorder(Color.ORANGE, 2));\r\n\t\tbtnIa.addActionListener(this);\r\n\r\n\t\tGroupLayout gl_painelSuperior = new GroupLayout(painelSuperior);\r\n\t\tgl_painelSuperior.setHorizontalGroup(\r\n\t\t\tgl_painelSuperior.createParallelGroup(Alignment.TRAILING)\r\n\t\t\t\t.addGroup(gl_painelSuperior.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addComponent(botaoSair)\r\n\t\t\t\t\t.addGap(35)\r\n\t\t\t\t\t.addComponent(btnIa, GroupLayout.PREFERRED_SIZE, 112, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 113, Short.MAX_VALUE)\r\n\t\t\t\t\t.addComponent(timer, GroupLayout.PREFERRED_SIZE, 84, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addGap(168)\r\n\t\t\t\t\t.addComponent(lblNumeroBombas, GroupLayout.PREFERRED_SIZE, 97, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addGap(62))\r\n\t\t);\r\n\t\tgl_painelSuperior.setVerticalGroup(\r\n\t\t\tgl_painelSuperior.createParallelGroup(Alignment.TRAILING)\r\n\t\t\t\t.addGroup(gl_painelSuperior.createSequentialGroup()\r\n\t\t\t\t\t.addGap(4)\r\n\t\t\t\t\t.addComponent(timer, GroupLayout.PREFERRED_SIZE, 50, Short.MAX_VALUE)\r\n\t\t\t\t\t.addGap(4))\r\n\t\t\t\t.addGroup(gl_painelSuperior.createSequentialGroup()\r\n\t\t\t\t\t.addGap(5)\r\n\t\t\t\t\t.addComponent(botaoSair, GroupLayout.DEFAULT_SIZE, 45, Short.MAX_VALUE)\r\n\t\t\t\t\t.addGap(8))\r\n\t\t\t\t.addGroup(gl_painelSuperior.createSequentialGroup()\r\n\t\t\t\t\t.addGap(5)\r\n\t\t\t\t\t.addComponent(lblNumeroBombas, GroupLayout.DEFAULT_SIZE, 53, Short.MAX_VALUE))\r\n\t\t\t\t.addGroup(Alignment.LEADING, gl_painelSuperior.createSequentialGroup()\r\n\t\t\t\t\t.addGap(9)\r\n\t\t\t\t\t.addComponent(btnIa, GroupLayout.PREFERRED_SIZE, 36, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addContainerGap(13, Short.MAX_VALUE))\r\n\t\t);\r\n\t\tpainelSuperior.setLayout(gl_painelSuperior);\r\n\t}", "private void setupLeftPanel()\n {\n // display the radio buttons for the various sorts.\n Box leftPanel = Box.createVerticalBox();\n Box buttonColumn = Box.createVerticalBox();\n Box nameDelayBox = Box.createHorizontalBox();\n buttonColumn.setBorder(BorderFactory.createTitledBorder(\"Algorithms\"));\n ButtonGroup bg = new ButtonGroup();\n sortTypeButtons = new JRadioButton[sortNames.length]; // to change which sorts are available, look at variables\n // at the top of the class.\n for (int i=0; i<sortNames.length; i++)\n {\n sortTypeButtons[i] = new JRadioButton(sortNames[i]);\n buttonColumn.add(sortTypeButtons[i]);\n bg.add(sortTypeButtons[i]);\n sortTypeButtons[i].addActionListener(this);\n }\n sortTypeButtons[0].setSelected(true);\n nameDelayBox.add(buttonColumn);\n\n // display the delay slider.\n delaySlider = new JSlider(JSlider.VERTICAL,0,20,1);\n delaySlider.addChangeListener(this);\n delaySlider.setMajorTickSpacing(1);\n delaySlider.setPaintTicks(true);\n Hashtable<Integer,JLabel> labelTable = new Hashtable<>();\n labelTable.put(0,new JLabel(\"0\"));\n labelTable.put(5,new JLabel(\"5\"));\n labelTable.put(10,new JLabel(\"10\"));\n labelTable.put(15,new JLabel(\"15\"));\n labelTable.put(20,new JLabel(\"20\"));\n delaySlider.setLabelTable(labelTable);\n delaySlider.setPaintLabels(true);\n delaySlider.setSnapToTicks(true);\n delaySlider.setBorder(new TitledBorder(\"Delay\"));\n nameDelayBox.add(delaySlider);\n leftPanel.add(nameDelayBox);\n\n // display the run/cancel and reset buttons.\n Box runResetPanel = Box.createHorizontalBox();\n runButton = new JButton(\"Run\");\n runButton.addActionListener(this);\n resetButton = new JButton(\"Reset\");\n resetButton.addActionListener(this);\n runResetPanel.add(runButton);\n runResetPanel.add(resetButton);\n leftPanel.add(runResetPanel);\n\n // shows popup menu of possible values of N.\n nMenu = new JComboBox<>();\n for (int v:possibleNValues) // see the variables at the top of the class to modify options shown.\n nMenu.addItem(v);\n nMenu.addActionListener(this);\n nMenu.setSelectedItem(100);\n nMenu.setBorder(new TitledBorder(\"Array Size (N)\"));\n leftPanel.add(nMenu);\n\n // label that indicates whether this list is sorted correctly\n leftPanel.add(new JLabel(\"Status\"));\n statusLabel = new JLabel(\"\");\n leftPanel.add(statusLabel);\n leftPanel.add(Box.createVerticalStrut(10));\n\n // label that indicates how much time (was/has been) spent on the most recent run\n leftPanel.add(new JLabel(\"Time\"));\n timeLabel = new JLabel(\"00.000\");\n leftPanel.add(timeLabel);\n leftPanel.add(Box.createVerticalStrut(10));\n\n // label that indicates which sort was run most recently.\n leftPanel.add(new JLabel(\"Latest Run\"));\n latestRunLabel = new JLabel(\"None\");\n leftPanel.add(latestRunLabel);\n leftPanel.add(Box.createVerticalGlue());\n\n // update alignment so things look nice.\n buttonColumn.setAlignmentY(Component.TOP_ALIGNMENT);\n nameDelayBox.setAlignmentX(Component.LEFT_ALIGNMENT);\n runResetPanel.setAlignmentX(Component.LEFT_ALIGNMENT);\n nMenu.setAlignmentX(Component.LEFT_ALIGNMENT);\n delaySlider.setAlignmentY(Component.TOP_ALIGNMENT);\n statusLabel.setAlignmentX(Component.LEFT_ALIGNMENT);\n timeLabel.setAlignmentX(Component.LEFT_ALIGNMENT);\n latestRunLabel.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n getContentPane().add(leftPanel,BorderLayout.WEST);\n\n }", "public DrawingPanel(Color color, Color backColor)\r\n {\r\n\r\n /**********************************************************\r\n To be completed\r\n**********************************************************/\r\n\t currentColor = color;\r\n\t this.setBackground(backColor);\r\n\t currentX = 0;\r\n\t currentY = 0;\r\n\t moveX = 3;\r\n\t moveY = 3;\r\n\t diameter = 5;\r\n\t delay = 20;\r\n\t dotList = new ArrayList();\r\n\t MoveListener task = new MoveListener();\r\n\t timer = new Timer(delay, task);\r\n\t timer.start();\r\n }", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "private void buildPanelEast() {\n\r\n }", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "private Component getPanelOpcionesInferior() {\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tlistaUsuarios = new JList(new DefaultListModel());\n//\t\tlistaUsuarios.setCellRenderer(modeloUsuarios.getListCellRenderer());\n\t\tJScrollPane panelScrollIzqArriba = new JScrollPane(listaUsuarios);\n\n\t\tpanelScrollIzqArriba.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tFakeInternalFrame panelIzqArriba = new FakeInternalFrame(\"Usuarios\", panelScrollIzqArriba);\n\n\t\tpanel.add(panelIzqArriba);\n\n\t\tpanelIzqArriba.setPreferredSize(new Dimension(250, 300));\n\t\tJButton botonIniciarParar = new JButton(\"Iniciar Simulacion\");\n\t\tbotonIniciarParar.addActionListener(\n\t\t\t\t\tnew ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tJButton src = (JButton) e.getSource();\n\t\t\t\t\t\t\tiniciarPausar_actionPerformed(src);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\tbotonFinalizarSimulacion = new JButton(\"Finalizar Simulacion\");\n\t\tbotonFinalizarSimulacion.addActionListener(\n\t\t\t\t\tnew ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tbotonFinalizar_actionPerformed();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\tJPanel panelBotones = new JPanel();\n\t\tpanelBotones.add(botonIniciarParar);\n\t\tpanelBotones.add(botonFinalizarSimulacion);\n\t\tpanel.add(panelBotones, BorderLayout.SOUTH);\n\n\t\treturn panel;\n\t}", "public ComparatorExample(){\r\n\t\tcontrolPanel.add(addPerson);\r\n\t\tcontrolPanel.add(removePerson);\r\n\t\tcontrolPanel.add(new AntiAliasJLabel(\"sort by:\"));\r\n\t\tcontrolPanel.add(columnSelect);\r\n\t\tcontrolPanel.add(new AntiAliasJLabel(\"order:\"));\r\n\t\tcontrolPanel.add(sortOrder);\r\n\t\tcontrolPanel.add(sort);\r\n\t\t// make the buttons execute methods in the class when clicked\r\n\t\taddPerson.addActionListener(new ActionListener(){\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \taddPerson();\r\n\t\t }\r\n\t\t});\r\n\t\tremovePerson.addActionListener(new ActionListener(){\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tremovePerson();\r\n\t\t }\r\n\t\t});\r\n\t\tsort.addActionListener(new ActionListener(){\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tsort();\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\tdataTable = new JTable(personTableModel);\r\n\t\t// sets a specific renderer for JButtons, which is what is used to display the colored Color cells\r\n\t\tTableCellRenderer defaultRenderer = dataTable.getDefaultRenderer(JButton.class);\r\n\t\tdataTable.setDefaultRenderer(JButton.class,new ExtendedTableRenderer(defaultRenderer));\r\n\t\t// add the pass-through table-to-underlying-buttons listener, which is in\r\n\t\t// ExtendedTableRender.java\r\n\t\tdataTable.addMouseListener(new JTableButtonMouseListener(dataTable));\r\n\t\t// make all the string fields wider, so there's less overlap\r\n\t\tfor (int i=0;i<Person.NUM_FIELDS;i++){\r\n\t\t\tif (i == Person.COL_COLOR)\r\n\t\t\t\tcontinue;\r\n\t\t\tdataTable.getColumnModel().getColumn(i).setPreferredWidth(COLUMN_WIDTH);\r\n\t\t}\r\n\t\t//loads the example people directly so we have something to sort from the getgo\r\n\t\tloadExamplePeople();\r\n\t\t// makes the table scrollable, in case we overflow\r\n\t\tscrollPane = new JScrollPane(dataTable);\r\n\t\t// use an easy-to-use/understand layoutmanager known as borderlayout\r\n\t mainFrame.setLayout(new BorderLayout());\r\n\t\tmainFrame.add(controlPanel,BorderLayout.NORTH);\r\n\t\tmainFrame.add(scrollPane,BorderLayout.CENTER);\r\n\t\ttry{\r\n\t\t\t// make the GUI look like the operating system that it is being run on\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t\tSwingUtilities.updateComponentTreeUI(ccDialog);\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tmainFrame.setSize(800,500);\r\n\t\t// actually close the dialog and the frame when a close command is entered\r\n\t\t// prevents large programs from persisting in memory\r\n\t\tccDialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\r\n\t\tmainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tmainFrame.setVisible(true);\r\n\t\t//\t\tmainFrame.pack();\r\n\t}", "public SelectPanel(Vector projectList)\r\n {\r\n this.projectList = projectList;\r\n selectedList=new Vector();//initialize selectedList vector\r\n totalSelected=0;\r\n setLayout(new GridLayout(3,1));//set layout\r\n projects= new JList(projectList);//initialize JLists\r\n selection=new JList(selectedList);\r\n JScrollPane sp1=new JScrollPane(projects);//initialize Scrollpanes\r\n JScrollPane sp2=new JScrollPane(selection);\r\n\r\n proj=new JLabel(\"Available project(s)\");//initialize JLabels\r\n selectedProj=new JLabel(\"Selected project(s)\");\r\n numSelected=new JLabel(\"Total number of selected projects: \"+totalSelected);\r\n\r\n JPanel top=new JPanel(new GridLayout(2,1));//initialize the subpanels and set layouts\r\n JPanel middle=new JPanel(new GridLayout(1,2));\r\n JPanel bottom=new JPanel(new GridLayout(3,1));\r\n\r\n addProj=new JButton(\"Add\");//intialize buttons\r\n removeProj=new JButton(\"Remove\");\r\n addProj.addActionListener(new ButtonListener());//add listener\r\n removeProj.addActionListener(new ButtonListener());\r\n projects.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);//set selection mode to single\r\n\r\n top.add(proj);//add the components to the different subpanels\r\n top.add(sp1);\r\n middle.add(addProj);\r\n middle.add(removeProj);\r\n bottom.add(selectedProj);\r\n bottom.add(sp2);\r\n bottom.add(numSelected);\r\n add(top);\r\n add(middle);\r\n add(bottom);\r\n\r\n\r\n\r\n\r\n // organize components for the select panel\r\n }", "public TemporizadorPanel() {\n initComponents();\n }", "public ManageMarketListJPanel(JPanel cardSequenceJPanel,Business business) {\n initComponents();\n this.cardSequenceJPanel = cardSequenceJPanel;\n this.business = business;\n populateTable();\n\n }", "public SlideAdapter(){\r\n\r\n }", "public AjoutChauffeurJPanell() {\n initComponents();\n }", "public PanelIniciarSesion() {\n initComponents();\n }", "public AlgorithmDesign() {\n initComponents();\n }", "public void asetaPanelli(JPanel panel)\n {\n pane.removeAll();\n pane.add(panel);\n Refresh();\n }", "public void actPanel(VentanaMedico vm,Medico m, int leido, int diag,Vector<ECG> auxec,Vector<Paciente> auxpac) {\n\trey4.setVisible(false);\n\trey4.removeAll();\n\t\n\trey4.setOpaque(false);\n\trey4.setLayout(new BoxLayout(rey4,BoxLayout.Y_AXIS));\n\n\tint cont=0;\n\tfor(int i= 0;i<auxec.size();i++){\n\t\tif(leido==0 && diag==0) {\n\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\tJPanel invi = new JPanel();\n\t\t\tinvi.setOpaque(false);\n\t\t\trey4.add(pan);\t\n\t\t\trey4.add(invi);\n\t\t\tcont++;\n\t\t} else {\n\t\t\tif(leido==-1) {\n\t\t\t\tif(diag==-1) {\n\t\t\t\t\tif(auxec.get(i).isLeido()==false && auxec.get(i).getDiagnostico().isEmpty()) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t} else if(diag==1){\n\t\t\t\t\tif(auxec.get(i).isLeido()==false && !auxec.get(i).getDiagnostico().isEmpty()) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif(auxec.get(i).isLeido()==false) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if(leido==1){\n\t\t\t\tif(diag==-1) {\n\t\t\t\t\tif(auxec.get(i).isLeido()==true && auxec.get(i).getDiagnostico().isEmpty()) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t} else if(diag==1){\n\t\t\t\t\tif(auxec.get(i).isLeido()==true && !auxec.get(i).getDiagnostico().isEmpty()) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif(auxec.get(i).isLeido()==true) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(leido==0) {\n\t\t\t\tif(diag==-1) {\n\t\t\t\t\tif(auxec.get(i).getDiagnostico().isEmpty()) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t} else if(diag==1){\n\t\t\t\t\tif(!auxec.get(i).getDiagnostico().isEmpty()) {\n\t\t\t\t\t\tPanelPaciente pan = new PanelPaciente(auxpac.get(i),auxec.get(i));\n\t\t\t\t\t\tpan.setBorder(new LineBorder(Color.gray, 2));\n\t\t\t\t\t\tpan.addMouseListener(new ControladorPanelM(vm,auxpac.get(i), m,auxec.get(i),0));\n\t\t\t\t\t\tJPanel invi = new JPanel();\n\t\t\t\t\t\tinvi.setOpaque(false);\n\t\t\t\t\t\trey4.add(pan);\t\n\t\t\t\t\t\trey4.add(invi);\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n\tif(cont<10) {\n\t\tfor(int i= cont;i<10;i++){\n\t\t\tJPanel relle=new JPanel();\n\t\t\trelle.setLayout(new BorderLayout());\n\t\t\tJButton b=new JButton();\n\t\t\tb.setContentAreaFilled(false);\n\t\t\tb.setOpaque(false);\n\t\t\tb.setBorderPainted(false);\n\t\t\trelle.add(b,BorderLayout.CENTER);\n\t\t\trelle.setOpaque(false);\n\t\t\trey4.add(relle);\n\t\t}\n\t}\n\trey4.setVisible(true);\n}", "public VisualizarLlamada() {\n initComponents();\n }", "public ViewPanel(final ViewFrame viewFrame) {\n\t\tthis.setViewFrame(viewFrame);\n\t\tviewFrame.getModel().getObservable().addObserver(this);\n\t\t//this.setSize(640,384);\n\t\t/*JLabel image = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/pd.png\"));\n\t\tJLabel image2 = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/purse.png\"));\n\t\tJLabel image3 = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/gate_open.png\"));\n\t\tBorder blackline = BorderFactory.createLineBorder(Color.black,1); \n\t\t\n\t\tthis.setLayout(new GridLayout(12,20));\n\t\tfor(int i = 0; i<240;i++){*/\n\t\t //JPanel ptest = new JPanel();\n\t\t //ptest.setBorder(blackline);\n\t\t //this.add(image,0,0);\n\t\t \n\t\t// this.add(image3,0,2);\n\t\t\n\t\t}", "@SuppressWarnings(\"LeakingThisInConstructor\")\n public NewJFrame() {\n super(\"Linked List Visualisation\");\n initComponents();\n try{\n dout = new DataOutputStream(new FileOutputStream(\"Replay.txt\"));\n din = new DataInputStream(new FileInputStream(\"Replay.txt\"));\n } catch(FileNotFoundException fnfe){\n JOptionPane.showMessageDialog(null,fnfe);\n } \n \n cl = new CardLayout();\n \n jPanel1.setLayout(cl);\n \n AC = new AnimationClass();\n \n conn=MySqlConnect.ConnectDb(); \n \n list = new CustomLinkedList(this);\n dlist = new CustomLinkedList(this);\n clist = new CustomLinkedList(this);\n j = this;\n \n jPanel1.add(\"Main\",mainPanel);\n jPanel1.add(\"Singly\",singlyLLPanel);\n jPanel1.add(\"Doubly\",doublyLLPanel);\n jPanel1.add(\"Circular\",circularLLPanel);\n \n singlyTheoryTextArea.setText(\"\\n\\tSingly linked list is the most basic linked data structure. In this the elements can be placed anywhere in the heap memory, unlike array which uses contiguous locations. Nodes in a linked list are linked together using a next field, which stores the address of the next node i.e., each node of the list refers to its successor, and the last node contains the NULL reference. It has a dynamic size, which can be determined only at run time.\\n\\nPerformance:\\n\\n1) The advantage of a singly linked list is its ability to expand, to accept virtually unlimited number of nodes in a fragmented memory environment.\\n2) The disadvantage is its speed. Operations in a singly-linked list are slow as it uses sequential search to locate a node. \");\n singlyTheoryTextArea.setLineWrap(true);\n singlyTheoryTextArea.setCaretPosition(0);\n singlyTheoryTextArea.setWrapStyleWord(true);\n \n doublyTheoryTextArea.setText(\"\\n\\tDoubly-linked list is a more sophisticated form of linked list data structure. Each node of the list contain two references (or links) – one to the previous node and other to the next node. The previous link of the first node and the next link of the last node points to NULL. In comparison to singly-linked list, doubly-linked list requires handling of more pointers but less information is required as one can use the previous links to observe the preceding element. It has a dynamic size, which can be determined only at run time.\\n\\nPerformance:\\n\\n1) The advantage of a doubly linked list is that, we don’t need to keep track of the previous node for traversal or no need of traversing the whole list for finding the previous node.\\n2 )The disadvantage is that more pointers needs to be handled and more links need to be updated. \");\n doublyTheoryTextArea.setLineWrap(true);\n doublyTheoryTextArea.setCaretPosition(0);\n doublyTheoryTextArea.setWrapStyleWord(true);\n \n circularTheoryTextArea.setText(\"\\n\\tCircular linked list is a more complicated linked data structure. In this the elements can be placed anywhere in the heap memory unlike array which uses contiguous locations. Nodes in a linked list are linked together using a next field, which stores the address of the next node, i.e each node of the list refers to its successor and the last node points back to the first node unlike singly linked list. It has a dynamic size, which can be determined only at run time.\\n\\nPerformance:\\n\\n1)The advantage is that we no longer need both a head and tail variable to keep track of the list. Even if only a single variable is used, both the first and the last list elements canbe found in constant time. Also, for implementing queues we will only need one pointer, namely tail, to locate both head and tail.\\n2) The disadvantage is that the algorithms have become more complicated. \");\n circularTheoryTextArea.setLineWrap(true);\n circularTheoryTextArea.setCaretPosition(0);\n circularTheoryTextArea.setWrapStyleWord(true);\n \n player = new CustomPlayer(this);\n player.setPath(\"Welcome.mp3\");\n player.play(-1);\n \n menubg = new ButtonGroup();\n menubg.add(acrylMenuRadioButton);\n menubg.add(aeroMenuRadioButton);\n menubg.add(aluminiumMenuRadioButton);\n menubg.add(bernsteinMenuRadioButton);\n menubg.add(fastMenuRadioButton);\n menubg.add(graphiteMenuRadioButton);\n menubg.add(hifiMenuRadioButton);\n menubg.add(lunaMenuRadioButton);\n menubg.add(mcwinMenuRadioButton);\n menubg.add(mintMenuRadioButton);\n menubg.add(noireMenuRadioButton);\n menubg.add(smartMenuRadioButton);\n menubg.add(textureMenuRadioButton);\n noireMenuRadioButton.setSelected(true);\n \n mainbg = new ButtonGroup();\n mainbg.add(singlyRadioButton);\n mainbg.add(doublyRadioButton);\n mainbg.add(circularRadioButton);\n \n menubg = new ButtonGroup();\n menubg.add(singlyRadioButtonMenuItem);\n menubg.add(doublyRadioButtonMenuItem);\n menubg.add(circularRadioButtonMenuItem);\n menubg.clearSelection();\n \n singlybg = new ButtonGroup();\n singlybg.add(singlyInsertRadioButton);\n singlybg.add(singlyDeleteRadioButton);\n singlybg.add(singlySearchRadioButton);\n singlybg.add(singlyReverseRadioButton);\n \n doublybg = new ButtonGroup();\n doublybg.add(doublyInsertRadioButton);\n doublybg.add(doublyDeleteRadioButton);\n doublybg.add(doublySearchRadioButton);\n doublybg.add(doublyReverseRadioButton);\n \n circularbg = new ButtonGroup();\n circularbg.add(circularInsertRadioButton);\n circularbg.add(circularDeleteRadioButton);\n circularbg.add(circularSearchRadioButton);\n \n \n doublyQuizbg = new ButtonGroup();\n doublyQuizbg.add(doublyQuizRadioButton1);\n doublyQuizbg.add(doublyQuizRadioButton2);\n doublyQuizbg.add(doublyQuizRadioButton3);\n doublyQuizbg.add(doublyQuizRadioButton4);\n doublyQuizbg.clearSelection();\n \n doublyQuizRadioButton1.setVisible(false);\n doublyQuizRadioButton2.setVisible(false);\n doublyQuizRadioButton3.setVisible(false);\n doublyQuizRadioButton4.setVisible(false);\n doublyQuizWrongAnsLabel.setVisible(false);\n doublyCheckButton.setVisible(false);\n doublyReattemptButton.setVisible(false);\n \n circularQuizbg = new ButtonGroup();\n circularQuizbg.add(circularQuizRadioButton1);\n circularQuizbg.add(circularQuizRadioButton2);\n circularQuizbg.add(circularQuizRadioButton3);\n circularQuizbg.add(circularQuizRadioButton4);\n circularQuizbg.clearSelection();\n \n circularQuizRadioButton1.setVisible(false);\n circularQuizRadioButton2.setVisible(false);\n circularQuizRadioButton3.setVisible(false);\n circularQuizRadioButton4.setVisible(false);\n circularCheckButton.setVisible(false);\n circularReattemptButton.setVisible(false);\n \n circularQuizQuestion.setText(\"INSTRUCTIONS: 1) There will be 6 questions and each question has four options.\");\n circularQuizQuestion1.setText(\"2) Once you click on the next button you will not be able to reattempt the previous question\");\n \n singlyQuizbg = new ButtonGroup();\n singlyQuizbg.add(singlyQuizRadioButton1);\n singlyQuizbg.add(singlyQuizRadioButton2);\n singlyQuizbg.add(singlyQuizRadioButton3);\n singlyQuizbg.add(singlyQuizRadioButton4);\n singlyQuizbg.clearSelection();\n \n \n singlyQuizQuestion1.setText(\"INSTRUCTIONS: 1) There will be 10 questions and each question has four options.\");\n singlyQuizQuestion.setText(\"2) Once you click on the next button you will not be able to reattempt the previous question\");\n singlyQuizRadioButton1.setVisible(false);\n singlyQuizRadioButton2.setVisible(false);\n singlyQuizRadioButton3.setVisible(false);\n singlyQuizRadioButton4.setVisible(false);\n singlyQuizwrongAnsLabel.setVisible(false);\n singlyReattempt.setVisible(false);\n singlyCheckButton.setVisible(false); \n rec = new JLabel[10];\n doublyrec = new JLabel[10];\n circularrec = new JLabel[10];\n arrowLabel = new JLabel[10];\n doublyarrowLabel = new JLabel[10];\n circulararrowLabel = new JLabel[10];\n \n createRectangle();\n \n theme1.setText(\"Default\");\n theme2.setText(\"Blue\");\n theme3.setText(\"Green\");\n theme4.setVisible(false);\n theme5.setVisible(false);\n theme6.setVisible(false);\n \n \n singlyGoButton.setVisible(false);\n singlyPositionLabel.setVisible(false);\n singlyWarningLabel.setVisible(false);\n singlyPositionComboBox.setVisible(false);\n \n \n doublyGoButton.setVisible(false);\n doublyPositionLabel.setVisible(false);\n doublyWarningLabel.setVisible(false);\n doublyPositionComboBox.setVisible(false);\n \n circularGoButton.setVisible(false);\n circularWarningLabel.setVisible(false);\n \n singlyspeedofanimation = singlySpeedControllerSlider.getValue();\n doublyspeedofanimation = doublySpeedControllerSlider.getValue();\n circularspeedofanimation = circularSpeedControllerSlider.getValue();\n \n color1 = Color.BLUE;\n color3 = Color.BLUE;\n color5 = Color.BLUE;\n \n singlyChangeColorButton.setLabel(\"\");\n doublyChangeColorButton.setLabel(\"\");\n circularChangeColorButton.setLabel(\"\");\n \n this.setLocationRelativeTo(null);\n \n singlyHeadingLabel.setHorizontalAlignment(SwingConstants.CENTER);\n doublyHeadingLabel.setHorizontalAlignment(SwingConstants.CENTER);\n circularHeadingLabel.setHorizontalAlignment(SwingConstants.CENTER);\n \n singlyInsertComboBox.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n singlyPositionLabel.setVisible(false);\n singlyPositionComboBox.setVisible(false);\n Object item = singlyInsertComboBox.getSelectedItem();\n if (\"Insert at kth position\".equals(item)) {\n operation = \"Insert at kth position\";\n singlyPositionLabel.setVisible(true);\n singlyPositionComboBox.setVisible(true);\n singlyGoButton.setVisible(true);\n invalidate();\n validate();\n } else if(\"Insert Front\".equals(item)){\n operation = \"Insert Front\";\n singlyGoButton.setVisible(true);\n invalidate();\n validate();\n //Go.setVisible(true);\n } else if(\"Insert Rear\".equals(item)) {\n operation = \"Insert Rear\";\n singlyGoButton.setVisible(true);\n invalidate();\n validate();\n } else {\n operation = \"Select\";\n singlyGoButton.setVisible(false);\n }\n }\n });\n \n singlyDeleteComboBox.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n singlyPositionLabel.setVisible(false);\n singlyPositionComboBox.setVisible(false);\n Object item = singlyDeleteComboBox.getSelectedItem();\n if (\"Delete kth node\".equals(item)) {\n operation = \"Delete kth node\";\n singlyPositionLabel.setVisible(true);\n singlyPositionComboBox.setVisible(true);\n singlyGoButton.setVisible(true);\n invalidate();\n validate();\n } else if(\"Delete Front\".equals(item)) {\n operation = \"Delete Front\";\n singlyGoButton.setVisible(true);\n invalidate();\n validate();\n //Go.setVisible(true);\n } else if(\"Delete Rear\".equals(item)){\n operation = \"Delete Rear\";\n singlyGoButton.setVisible(true);\n invalidate();\n validate();\n } else {\n operation = \"Select\";\n singlyGoButton.setVisible(false);\n }\n }\n });\n singlyInsertComboBox.setVisible(false);\n singlyDeleteComboBox.setVisible(false);\n \n doublyInsertComboBox.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n doublyPositionLabel.setVisible(false);\n doublyPositionComboBox.setVisible(false);\n Object item = doublyInsertComboBox.getSelectedItem();\n if (\"Insert at kth position\".equals(item)) {\n operation = \"Insert at kth position\";\n doublyPositionLabel.setVisible(true);\n doublyPositionComboBox.setVisible(true);\n doublyGoButton.setVisible(true);\n invalidate();\n validate();\n } else if(\"Insert Front\".equals(item)){\n operation = \"Insert Front\";\n doublyGoButton.setVisible(true);\n invalidate();\n validate();\n } else if(\"Insert Rear\".equals(item)) {\n operation = \"Insert Rear\";\n doublyGoButton.setVisible(true);\n invalidate();\n validate();\n } else {\n operation = \"Select\";\n doublyGoButton.setVisible(false);\n }\n }\n });\n \n doublyDeleteComboBox.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n doublyPositionLabel.setVisible(false);\n doublyPositionComboBox.setVisible(false);\n Object item = doublyDeleteComboBox.getSelectedItem();\n if (\"Delete kth node\".equals(item)) {\n operation = \"Delete kth node\";\n doublyPositionLabel.setVisible(true);\n doublyPositionComboBox.setVisible(true);\n doublyGoButton.setVisible(true);\n invalidate();\n validate();\n } else if(\"Delete Front\".equals(item)) {\n operation = \"Delete Front\";\n doublyGoButton.setVisible(true);\n invalidate();\n validate();\n //Go.setVisible(true);\n } else if(\"Delete Rear\".equals(item)){\n operation = \"Delete Rear\";\n doublyGoButton.setVisible(true);\n invalidate();\n validate();\n } else {\n operation = \"Select\";\n doublyGoButton.setVisible(false);\n }\n }\n });\n \n doublyInsertComboBox.setVisible(false);\n doublyDeleteComboBox.setVisible(false);\n }", "public MenuPanel() {\n initComponents();\n }", "public JfAeroports() {\n initComponents();\n tableUpdate();\n }", "public ProductListJPanel() {\n initComponents();\n }", "public void initComponets(){\r\n\r\n graphPanel = new MathGraph();\r\n graphPanel.setToolTipText(\"Gráfico do lançamento oblíquo.\");\r\n animationPanel = new JPanel();\r\n topPanel = new JPanel();\r\n \r\n speedField = new JTextField(5);\r\n speedField.setToolTipText(\"Velocidade do lançamento medida em m/s.\");\r\n speedPanel = new JPanel();\r\n\t\t\r\n angleSlider = new JSliderText(\"45\",1, 89, 45);\r\n angleSlider.setToolTipText(\"Ajuste a medida do ângulo (1º - 89º).\");\r\n anglePanel = new JPanel();\r\n\t\t\r\n gravityField = new JTextField(5);\r\n gravityField.setToolTipText(\"Gravidade do espaço de lançamento medido em m/s^2.\");\r\n gravityPanel = new JPanel();\r\n String[] spaceOption = {\" Terra\",\" Lua\", \" Sol\"};\r\n spaceComboBox = new JComboBox(spaceOption);\r\n\t \t\t \r\n\t\treachField = new JTextField(5);\r\n\t \treachField.setToolTipText(\"Valor do Alcance\");\r\n\t \treachField.disable();\r\n\t \treachPanel = new JPanel();\r\n\t \r\n\t\tmHeightField = new JTextField(5);\r\n\t \tmHeightField.setToolTipText(\"Valor da Altura Máxima\");\r\n\t \tmHeightField.disable();\r\n\t \tmHeightPanel = new JPanel();\r\n\t \r\n\t spaceBoxPanel = new JPanel();\r\n\t informationPanel = new JPanel();\r\n \r\n\t situationPanel = new JPanel();\r\n \t String[] situationOptions = {\" Ângulo e Velocidade Inicial\",\" Velocidade Inicial e Alcance\",\" Angulo e Alcance\",\" Alcance e Altura Máxima\"};\r\n\t situationsComboBox = new JComboBox(situationOptions);\r\n\t situationDescriptionArea = new JTextArea(3,30);\r\n\t situationDescriptionScroll = new JScrollPane(situationDescriptionArea);\r\n\t \r\n confResPanel = new JPanel();\r\n\t \r\n resultArea = new JTextArea(5,45);\r\n resultArea.setToolTipText(\"Resultados do gráfico do lançamento\");\r\n resultScroll = new JScrollPane(resultArea);\r\n resultPanel = new JPanel();\r\n \r\n bottomPanel = new JPanel();\r\n basePanel = new JPanel();\r\n mainFrame = new JFrame(\"FIS308 - Lançamento Oblíquo - Augusto Cesar : Julian Herrera : Marcello Junior - UFAL - Julho de 2002\");\r\n \r\n mainFrame.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n System.exit(0);\r\n }\r\n });\r\n }", "public Visualize() {\n initComponents();\n \n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n scroolPane1 = new pkl49.component.ScroolPane();\n panelScroll = new pkl49.component.PanelTransparan();\n panelTabel = new pkl49.component.PanelTransparan();\n panelTransparan2 = new pkl49.component.PanelTransparan();\n label1 = new pkl49.component.Label();\n panelTransparan3 = new pkl49.component.PanelTransparan();\n label2 = new pkl49.component.Label();\n panelTransparan4 = new pkl49.component.PanelTransparan();\n label3 = new pkl49.component.Label();\n label4 = new pkl49.component.Label();\n label5 = new pkl49.component.Label();\n panelTransparan5 = new pkl49.component.PanelTransparan();\n label6 = new pkl49.component.Label();\n label8 = new pkl49.component.Label();\n label10 = new pkl49.component.Label();\n label11 = new pkl49.component.Label();\n label12 = new pkl49.component.Label();\n label39 = new pkl49.component.Label();\n panelTransparan7 = new pkl49.component.PanelTransparan();\n label9 = new pkl49.component.Label();\n label13 = new pkl49.component.Label();\n label14 = new pkl49.component.Label();\n label15 = new pkl49.component.Label();\n label16 = new pkl49.component.Label();\n label17 = new pkl49.component.Label();\n label18 = new pkl49.component.Label();\n panelTransparan13 = new pkl49.component.PanelTransparan();\n label19 = new pkl49.component.Label();\n label21 = new pkl49.component.Label();\n label22 = new pkl49.component.Label();\n label24 = new pkl49.component.Label();\n panelTransparan14 = new pkl49.component.PanelTransparan();\n label26 = new pkl49.component.Label();\n label27 = new pkl49.component.Label();\n label89 = new pkl49.component.Label();\n label90 = new pkl49.component.Label();\n panelTransparan15 = new pkl49.component.PanelTransparan();\n label28 = new pkl49.component.Label();\n label29 = new pkl49.component.Label();\n label30 = new pkl49.component.Label();\n label31 = new pkl49.component.Label();\n label32 = new pkl49.component.Label();\n label33 = new pkl49.component.Label();\n label34 = new pkl49.component.Label();\n label37 = new pkl49.component.Label();\n panelTransparan16 = new pkl49.component.PanelTransparan();\n label35 = new pkl49.component.Label();\n label36 = new pkl49.component.Label();\n label38 = new pkl49.component.Label();\n label40 = new pkl49.component.Label();\n panelTransparan17 = new pkl49.component.PanelTransparan();\n label41 = new pkl49.component.Label();\n label42 = new pkl49.component.Label();\n label43 = new pkl49.component.Label();\n label44 = new pkl49.component.Label();\n label91 = new pkl49.component.Label();\n panelTransparan18 = new pkl49.component.PanelTransparan();\n label49 = new pkl49.component.Label();\n label50 = new pkl49.component.Label();\n label51 = new pkl49.component.Label();\n label52 = new pkl49.component.Label();\n panelTransparan19 = new pkl49.component.PanelTransparan();\n label45 = new pkl49.component.Label();\n label46 = new pkl49.component.Label();\n panelTransparan20 = new pkl49.component.PanelTransparan();\n label47 = new pkl49.component.Label();\n panelTransparan27 = new pkl49.component.PanelTransparan();\n label63 = new pkl49.component.Label();\n panelTransparan23 = new pkl49.component.PanelTransparan();\n label55 = new pkl49.component.Label();\n panelTransparan24 = new pkl49.component.PanelTransparan();\n label56 = new pkl49.component.Label();\n panelTransparan21 = new pkl49.component.PanelTransparan();\n label48 = new pkl49.component.Label();\n panelTransparan22 = new pkl49.component.PanelTransparan();\n label54 = new pkl49.component.Label();\n panelTransparan25 = new pkl49.component.PanelTransparan();\n label57 = new pkl49.component.Label();\n panelTransparan26 = new pkl49.component.PanelTransparan();\n label58 = new pkl49.component.Label();\n panelTransparan28 = new pkl49.component.PanelTransparan();\n label59 = new pkl49.component.Label();\n panelTransparan29 = new pkl49.component.PanelTransparan();\n label60 = new pkl49.component.Label();\n label61 = new pkl49.component.Label();\n panelTransparan30 = new pkl49.component.PanelTransparan();\n label62 = new pkl49.component.Label();\n label64 = new pkl49.component.Label();\n label65 = new pkl49.component.Label();\n label66 = new pkl49.component.Label();\n label67 = new pkl49.component.Label();\n label70 = new pkl49.component.Label();\n panelTransparan31 = new pkl49.component.PanelTransparan();\n label68 = new pkl49.component.Label();\n label69 = new pkl49.component.Label();\n label92 = new pkl49.component.Label();\n label93 = new pkl49.component.Label();\n label104 = new pkl49.component.Label();\n panelTransparan32 = new pkl49.component.PanelTransparan();\n label71 = new pkl49.component.Label();\n label76 = new pkl49.component.Label();\n label105 = new pkl49.component.Label();\n label106 = new pkl49.component.Label();\n label107 = new pkl49.component.Label();\n panelTransparan33 = new pkl49.component.PanelTransparan();\n label77 = new pkl49.component.Label();\n label78 = new pkl49.component.Label();\n label79 = new pkl49.component.Label();\n panelTransparan34 = new pkl49.component.PanelTransparan();\n label72 = new pkl49.component.Label();\n panelTransparan35 = new pkl49.component.PanelTransparan();\n label73 = new pkl49.component.Label();\n panelTransparan36 = new pkl49.component.PanelTransparan();\n label74 = new pkl49.component.Label();\n panelTransparan37 = new pkl49.component.PanelTransparan();\n label75 = new pkl49.component.Label();\n panelTransparan38 = new pkl49.component.PanelTransparan();\n label80 = new pkl49.component.Label();\n panelTransparan39 = new pkl49.component.PanelTransparan();\n label81 = new pkl49.component.Label();\n panelTransparan40 = new pkl49.component.PanelTransparan();\n label82 = new pkl49.component.Label();\n panelTransparan41 = new pkl49.component.PanelTransparan();\n label83 = new pkl49.component.Label();\n panelTransparan42 = new pkl49.component.PanelTransparan();\n label84 = new pkl49.component.Label();\n panelTransparan43 = new pkl49.component.PanelTransparan();\n label85 = new pkl49.component.Label();\n panelTransparan44 = new pkl49.component.PanelTransparan();\n label86 = new pkl49.component.Label();\n panelTransparan45 = new pkl49.component.PanelTransparan();\n label87 = new pkl49.component.Label();\n panelTransparan46 = new pkl49.component.PanelTransparan();\n label88 = new pkl49.component.Label();\n panelTransparan52 = new pkl49.component.PanelTransparan();\n label94 = new pkl49.component.Label();\n panelTransparan53 = new pkl49.component.PanelTransparan();\n txtB9AK2_1 = new pkl49.component.TextField();\n panelTransparan54 = new pkl49.component.PanelTransparan();\n txtB9AK4_26 = new pkl49.component.TextField();\n panelTransparan55 = new pkl49.component.PanelTransparan();\n txtB9AK3_26 = new pkl49.component.TextField();\n txtB9AK3_26Als = new pkl49.component.TextField();\n panelTransparan56 = new pkl49.component.PanelTransparan();\n txtB9AK5_1 = new pkl49.component.TextField();\n txtB9AK5_1Als = new pkl49.component.TextField();\n panelTransparan57 = new pkl49.component.PanelTransparan();\n txtB9AK6_1 = new pkl49.component.TextField();\n panelTransparan58 = new pkl49.component.PanelTransparan();\n txtB9AK7_1 = new pkl49.component.TextField();\n panelTransparan59 = new pkl49.component.PanelTransparan();\n txtB9AK8_1 = new pkl49.component.TextField();\n panelTransparan60 = new pkl49.component.PanelTransparan();\n txtB9AK9_1 = new pkl49.component.TextField();\n panelTransparan61 = new pkl49.component.PanelTransparan();\n txtB9AK10_1 = new pkl49.component.TextField();\n panelTransparan62 = new pkl49.component.PanelTransparan();\n txtB9AK11_1 = new pkl49.component.TextField();\n panelTransparan63 = new pkl49.component.PanelTransparan();\n txtB9AK12_26 = new pkl49.component.TextField();\n panelTransparan64 = new pkl49.component.PanelTransparan();\n txtB9AK13_1 = new pkl49.component.TextField();\n txtB9AK13_1Als = new pkl49.component.TextField();\n panelTransparan70 = new pkl49.component.PanelTransparan();\n label95 = new pkl49.component.Label();\n panelTransparan71 = new pkl49.component.PanelTransparan();\n txtB9AK2_2 = new pkl49.component.TextField();\n panelTransparan72 = new pkl49.component.PanelTransparan();\n panelTransparan73 = new pkl49.component.PanelTransparan();\n panelTransparan74 = new pkl49.component.PanelTransparan();\n txtB9AK5_2 = new pkl49.component.TextField();\n txtB9AK5_2Als = new pkl49.component.TextField();\n panelTransparan75 = new pkl49.component.PanelTransparan();\n txtB9AK6_2 = new pkl49.component.TextField();\n panelTransparan76 = new pkl49.component.PanelTransparan();\n txtB9AK7_2 = new pkl49.component.TextField();\n panelTransparan77 = new pkl49.component.PanelTransparan();\n txtB9AK8_2 = new pkl49.component.TextField();\n panelTransparan78 = new pkl49.component.PanelTransparan();\n txtB9AK9_2 = new pkl49.component.TextField();\n panelTransparan79 = new pkl49.component.PanelTransparan();\n txtB9AK10_2 = new pkl49.component.TextField();\n panelTransparan80 = new pkl49.component.PanelTransparan();\n txtB9AK11_2 = new pkl49.component.TextField();\n panelTransparan81 = new pkl49.component.PanelTransparan();\n panelTransparan82 = new pkl49.component.PanelTransparan();\n txtB9AK13_2 = new pkl49.component.TextField();\n txtB9AK13_2Als = new pkl49.component.TextField();\n panelTransparan88 = new pkl49.component.PanelTransparan();\n label96 = new pkl49.component.Label();\n panelTransparan89 = new pkl49.component.PanelTransparan();\n txtB9AK2_3 = new pkl49.component.TextField();\n panelTransparan90 = new pkl49.component.PanelTransparan();\n panelTransparan91 = new pkl49.component.PanelTransparan();\n panelTransparan92 = new pkl49.component.PanelTransparan();\n txtB9AK5_3 = new pkl49.component.TextField();\n txtB9AK5_3Als = new pkl49.component.TextField();\n panelTransparan93 = new pkl49.component.PanelTransparan();\n txtB9AK6_3 = new pkl49.component.TextField();\n panelTransparan94 = new pkl49.component.PanelTransparan();\n txtB9AK7_3 = new pkl49.component.TextField();\n panelTransparan95 = new pkl49.component.PanelTransparan();\n txtB9AK9_3 = new pkl49.component.TextField();\n panelTransparan96 = new pkl49.component.PanelTransparan();\n txtB9AK8_3 = new pkl49.component.TextField();\n panelTransparan97 = new pkl49.component.PanelTransparan();\n txtB9AK10_3 = new pkl49.component.TextField();\n panelTransparan98 = new pkl49.component.PanelTransparan();\n txtB9AK11_3 = new pkl49.component.TextField();\n panelTransparan99 = new pkl49.component.PanelTransparan();\n panelTransparan100 = new pkl49.component.PanelTransparan();\n txtB9AK13_3 = new pkl49.component.TextField();\n txtB9AK13_3Als = new pkl49.component.TextField();\n panelTransparan106 = new pkl49.component.PanelTransparan();\n label97 = new pkl49.component.Label();\n panelTransparan107 = new pkl49.component.PanelTransparan();\n txtB9AK2_4 = new pkl49.component.TextField();\n panelTransparan108 = new pkl49.component.PanelTransparan();\n panelTransparan109 = new pkl49.component.PanelTransparan();\n panelTransparan110 = new pkl49.component.PanelTransparan();\n txtB9AK5_4 = new pkl49.component.TextField();\n txtB9AK5_4Als = new pkl49.component.TextField();\n panelTransparan111 = new pkl49.component.PanelTransparan();\n txtB9AK6_4 = new pkl49.component.TextField();\n panelTransparan112 = new pkl49.component.PanelTransparan();\n txtB9AK7_4 = new pkl49.component.TextField();\n panelTransparan113 = new pkl49.component.PanelTransparan();\n txtB9AK8_4 = new pkl49.component.TextField();\n panelTransparan114 = new pkl49.component.PanelTransparan();\n txtB9AK9_4 = new pkl49.component.TextField();\n panelTransparan115 = new pkl49.component.PanelTransparan();\n txtB9AK10_4 = new pkl49.component.TextField();\n panelTransparan116 = new pkl49.component.PanelTransparan();\n txtB9AK11_4 = new pkl49.component.TextField();\n panelTransparan117 = new pkl49.component.PanelTransparan();\n panelTransparan118 = new pkl49.component.PanelTransparan();\n txtB9AK13_4 = new pkl49.component.TextField();\n txtB9AK13_4Als = new pkl49.component.TextField();\n panelTransparan124 = new pkl49.component.PanelTransparan();\n label98 = new pkl49.component.Label();\n panelTransparan125 = new pkl49.component.PanelTransparan();\n txtB9AK2_5 = new pkl49.component.TextField();\n panelTransparan126 = new pkl49.component.PanelTransparan();\n panelTransparan127 = new pkl49.component.PanelTransparan();\n panelTransparan128 = new pkl49.component.PanelTransparan();\n txtB9AK5_5 = new pkl49.component.TextField();\n txtB9AK5_5Als = new pkl49.component.TextField();\n panelTransparan129 = new pkl49.component.PanelTransparan();\n txtB9AK6_5 = new pkl49.component.TextField();\n panelTransparan130 = new pkl49.component.PanelTransparan();\n txtB9AK7_5 = new pkl49.component.TextField();\n panelTransparan131 = new pkl49.component.PanelTransparan();\n txtB9AK8_5 = new pkl49.component.TextField();\n panelTransparan132 = new pkl49.component.PanelTransparan();\n txtB9AK9_5 = new pkl49.component.TextField();\n panelTransparan133 = new pkl49.component.PanelTransparan();\n txtB9AK10_5 = new pkl49.component.TextField();\n panelTransparan134 = new pkl49.component.PanelTransparan();\n txtB9AK11_5 = new pkl49.component.TextField();\n panelTransparan135 = new pkl49.component.PanelTransparan();\n panelTransparan136 = new pkl49.component.PanelTransparan();\n txtB9AK13_5 = new pkl49.component.TextField();\n txtB9AK13_5Als = new pkl49.component.TextField();\n panelTransparan142 = new pkl49.component.PanelTransparan();\n label99 = new pkl49.component.Label();\n panelTransparan143 = new pkl49.component.PanelTransparan();\n txtB9AK2_6 = new pkl49.component.TextField();\n panelTransparan144 = new pkl49.component.PanelTransparan();\n panelTransparan145 = new pkl49.component.PanelTransparan();\n panelTransparan146 = new pkl49.component.PanelTransparan();\n txtB9AK5_6 = new pkl49.component.TextField();\n txtB9AK5_6Als = new pkl49.component.TextField();\n panelTransparan147 = new pkl49.component.PanelTransparan();\n txtB9AK6_6 = new pkl49.component.TextField();\n panelTransparan148 = new pkl49.component.PanelTransparan();\n txtB9AK7_6 = new pkl49.component.TextField();\n panelTransparan149 = new pkl49.component.PanelTransparan();\n txtB9AK8_6 = new pkl49.component.TextField();\n panelTransparan150 = new pkl49.component.PanelTransparan();\n txtB9AK9_6 = new pkl49.component.TextField();\n panelTransparan151 = new pkl49.component.PanelTransparan();\n txtB9AK10_6 = new pkl49.component.TextField();\n panelTransparan152 = new pkl49.component.PanelTransparan();\n txtB9AK11_6 = new pkl49.component.TextField();\n panelTransparan153 = new pkl49.component.PanelTransparan();\n panelTransparan154 = new pkl49.component.PanelTransparan();\n txtB9AK13_6 = new pkl49.component.TextField();\n txtB9AK13_6Als = new pkl49.component.TextField();\n panelTransparan160 = new pkl49.component.PanelTransparan();\n label100 = new pkl49.component.Label();\n panelTransparan161 = new pkl49.component.PanelTransparan();\n txtB9AK2_7 = new pkl49.component.TextField();\n panelTransparan162 = new pkl49.component.PanelTransparan();\n panelTransparan163 = new pkl49.component.PanelTransparan();\n panelTransparan164 = new pkl49.component.PanelTransparan();\n txtB9AK5_7 = new pkl49.component.TextField();\n txtB9AK5_7Als = new pkl49.component.TextField();\n panelTransparan165 = new pkl49.component.PanelTransparan();\n txtB9AK6_7 = new pkl49.component.TextField();\n panelTransparan166 = new pkl49.component.PanelTransparan();\n txtB9AK7_7 = new pkl49.component.TextField();\n panelTransparan167 = new pkl49.component.PanelTransparan();\n txtB9AK8_7 = new pkl49.component.TextField();\n panelTransparan168 = new pkl49.component.PanelTransparan();\n txtB9AK9_7 = new pkl49.component.TextField();\n panelTransparan169 = new pkl49.component.PanelTransparan();\n txtB9AK10_7 = new pkl49.component.TextField();\n panelTransparan170 = new pkl49.component.PanelTransparan();\n txtB9AK11_7 = new pkl49.component.TextField();\n panelTransparan171 = new pkl49.component.PanelTransparan();\n panelTransparan172 = new pkl49.component.PanelTransparan();\n txtB9AK13_7 = new pkl49.component.TextField();\n txtB9AK13_7Als = new pkl49.component.TextField();\n panelTransparan178 = new pkl49.component.PanelTransparan();\n label101 = new pkl49.component.Label();\n panelTransparan179 = new pkl49.component.PanelTransparan();\n txtB9AK2_8 = new pkl49.component.TextField();\n panelTransparan180 = new pkl49.component.PanelTransparan();\n panelTransparan181 = new pkl49.component.PanelTransparan();\n panelTransparan182 = new pkl49.component.PanelTransparan();\n txtB9AK5_8 = new pkl49.component.TextField();\n txtB9AK5_8Als = new pkl49.component.TextField();\n panelTransparan183 = new pkl49.component.PanelTransparan();\n txtB9AK6_8 = new pkl49.component.TextField();\n panelTransparan184 = new pkl49.component.PanelTransparan();\n txtB9AK7_8 = new pkl49.component.TextField();\n panelTransparan185 = new pkl49.component.PanelTransparan();\n txtB9AK8_8 = new pkl49.component.TextField();\n panelTransparan186 = new pkl49.component.PanelTransparan();\n txtB9AK9_8 = new pkl49.component.TextField();\n panelTransparan187 = new pkl49.component.PanelTransparan();\n txtB9AK10_8 = new pkl49.component.TextField();\n panelTransparan188 = new pkl49.component.PanelTransparan();\n txtB9AK11_8 = new pkl49.component.TextField();\n panelTransparan189 = new pkl49.component.PanelTransparan();\n panelTransparan190 = new pkl49.component.PanelTransparan();\n txtB9AK13_8 = new pkl49.component.TextField();\n txtB9AK13_8Als = new pkl49.component.TextField();\n panelTransparan196 = new pkl49.component.PanelTransparan();\n label102 = new pkl49.component.Label();\n panelTransparan197 = new pkl49.component.PanelTransparan();\n txtB9AK2_9 = new pkl49.component.TextField();\n panelTransparan198 = new pkl49.component.PanelTransparan();\n panelTransparan199 = new pkl49.component.PanelTransparan();\n panelTransparan200 = new pkl49.component.PanelTransparan();\n txtB9AK5_9 = new pkl49.component.TextField();\n txtB9AK5_9Als = new pkl49.component.TextField();\n panelTransparan201 = new pkl49.component.PanelTransparan();\n txtB9AK6_9 = new pkl49.component.TextField();\n panelTransparan202 = new pkl49.component.PanelTransparan();\n txtB9AK7_9 = new pkl49.component.TextField();\n panelTransparan203 = new pkl49.component.PanelTransparan();\n txtB9AK8_9 = new pkl49.component.TextField();\n panelTransparan204 = new pkl49.component.PanelTransparan();\n txtB9AK9_9 = new pkl49.component.TextField();\n panelTransparan205 = new pkl49.component.PanelTransparan();\n txtB9AK10_9 = new pkl49.component.TextField();\n panelTransparan206 = new pkl49.component.PanelTransparan();\n txtB9AK11_9 = new pkl49.component.TextField();\n panelTransparan207 = new pkl49.component.PanelTransparan();\n panelTransparan208 = new pkl49.component.PanelTransparan();\n txtB9AK13_9 = new pkl49.component.TextField();\n txtB9AK13_9Als = new pkl49.component.TextField();\n panelTransparan214 = new pkl49.component.PanelTransparan();\n label103 = new pkl49.component.Label();\n panelTransparan215 = new pkl49.component.PanelTransparan();\n txtB9AK2_10 = new pkl49.component.TextField();\n panelTransparan216 = new pkl49.component.PanelTransparan();\n panelTransparan217 = new pkl49.component.PanelTransparan();\n panelTransparan218 = new pkl49.component.PanelTransparan();\n txtB9AK5_10 = new pkl49.component.TextField();\n txtB9AK5_10Als = new pkl49.component.TextField();\n panelTransparan219 = new pkl49.component.PanelTransparan();\n txtB9AK6_10 = new pkl49.component.TextField();\n panelTransparan220 = new pkl49.component.PanelTransparan();\n txtB9AK7_10 = new pkl49.component.TextField();\n panelTransparan221 = new pkl49.component.PanelTransparan();\n txtB9AK8_10 = new pkl49.component.TextField();\n panelTransparan222 = new pkl49.component.PanelTransparan();\n txtB9AK9_10 = new pkl49.component.TextField();\n panelTransparan223 = new pkl49.component.PanelTransparan();\n txtB9AK10_10 = new pkl49.component.TextField();\n panelTransparan224 = new pkl49.component.PanelTransparan();\n txtB9AK11_10 = new pkl49.component.TextField();\n panelTransparan225 = new pkl49.component.PanelTransparan();\n panelTransparan226 = new pkl49.component.PanelTransparan();\n txtB9AK13_10 = new pkl49.component.TextField();\n txtB9AK13_10Als = new pkl49.component.TextField();\n panelTransparan227 = new pkl49.component.PanelTransparan();\n label108 = new pkl49.component.Label();\n panelTransparan228 = new pkl49.component.PanelTransparan();\n txtB9AK2_11 = new pkl49.component.TextField();\n panelTransparan229 = new pkl49.component.PanelTransparan();\n panelTransparan230 = new pkl49.component.PanelTransparan();\n panelTransparan231 = new pkl49.component.PanelTransparan();\n txtB9AK5_11 = new pkl49.component.TextField();\n txtB9AK5_11Als = new pkl49.component.TextField();\n panelTransparan232 = new pkl49.component.PanelTransparan();\n txtB9AK6_11 = new pkl49.component.TextField();\n panelTransparan233 = new pkl49.component.PanelTransparan();\n txtB9AK7_11 = new pkl49.component.TextField();\n panelTransparan234 = new pkl49.component.PanelTransparan();\n txtB9AK8_11 = new pkl49.component.TextField();\n panelTransparan235 = new pkl49.component.PanelTransparan();\n txtB9AK9_11 = new pkl49.component.TextField();\n panelTransparan236 = new pkl49.component.PanelTransparan();\n txtB9AK10_11 = new pkl49.component.TextField();\n panelTransparan237 = new pkl49.component.PanelTransparan();\n txtB9AK11_11 = new pkl49.component.TextField();\n panelTransparan238 = new pkl49.component.PanelTransparan();\n panelTransparan239 = new pkl49.component.PanelTransparan();\n txtB9AK13_11 = new pkl49.component.TextField();\n txtB9AK13_11Als = new pkl49.component.TextField();\n panelTransparan240 = new pkl49.component.PanelTransparan();\n label109 = new pkl49.component.Label();\n panelTransparan241 = new pkl49.component.PanelTransparan();\n txtB9AK2_12 = new pkl49.component.TextField();\n panelTransparan242 = new pkl49.component.PanelTransparan();\n panelTransparan243 = new pkl49.component.PanelTransparan();\n txtB9AK5_12 = new pkl49.component.TextField();\n txtB9AK5_12Als = new pkl49.component.TextField();\n panelTransparan244 = new pkl49.component.PanelTransparan();\n txtB9AK6_12 = new pkl49.component.TextField();\n panelTransparan245 = new pkl49.component.PanelTransparan();\n txtB9AK7_12 = new pkl49.component.TextField();\n panelTransparan246 = new pkl49.component.PanelTransparan();\n panelTransparan247 = new pkl49.component.PanelTransparan();\n txtB9AK8_12 = new pkl49.component.TextField();\n panelTransparan248 = new pkl49.component.PanelTransparan();\n txtB9AK9_12 = new pkl49.component.TextField();\n panelTransparan249 = new pkl49.component.PanelTransparan();\n txtB9AK10_12 = new pkl49.component.TextField();\n panelTransparan250 = new pkl49.component.PanelTransparan();\n txtB9AK11_12 = new pkl49.component.TextField();\n panelTransparan251 = new pkl49.component.PanelTransparan();\n panelTransparan252 = new pkl49.component.PanelTransparan();\n txtB9AK13_12 = new pkl49.component.TextField();\n txtB9AK13_12Als = new pkl49.component.TextField();\n panelTransparan253 = new pkl49.component.PanelTransparan();\n label110 = new pkl49.component.Label();\n panelTransparan254 = new pkl49.component.PanelTransparan();\n txtB9AK2_13 = new pkl49.component.TextField();\n panelTransparan255 = new pkl49.component.PanelTransparan();\n panelTransparan256 = new pkl49.component.PanelTransparan();\n txtB9AK5_13 = new pkl49.component.TextField();\n txtB9AK5_13Als = new pkl49.component.TextField();\n panelTransparan257 = new pkl49.component.PanelTransparan();\n txtB9AK6_13 = new pkl49.component.TextField();\n panelTransparan258 = new pkl49.component.PanelTransparan();\n txtB9AK7_13 = new pkl49.component.TextField();\n panelTransparan259 = new pkl49.component.PanelTransparan();\n panelTransparan260 = new pkl49.component.PanelTransparan();\n txtB9AK8_13 = new pkl49.component.TextField();\n panelTransparan261 = new pkl49.component.PanelTransparan();\n txtB9AK9_13 = new pkl49.component.TextField();\n panelTransparan262 = new pkl49.component.PanelTransparan();\n txtB9AK10_13 = new pkl49.component.TextField();\n panelTransparan263 = new pkl49.component.PanelTransparan();\n txtB9AK11_13 = new pkl49.component.TextField();\n panelTransparan264 = new pkl49.component.PanelTransparan();\n panelTransparan265 = new pkl49.component.PanelTransparan();\n txtB9AK13_13 = new pkl49.component.TextField();\n txtB9AK13_13Als = new pkl49.component.TextField();\n panelTransparan266 = new pkl49.component.PanelTransparan();\n label111 = new pkl49.component.Label();\n panelTransparan267 = new pkl49.component.PanelTransparan();\n txtB9AK2_14 = new pkl49.component.TextField();\n panelTransparan268 = new pkl49.component.PanelTransparan();\n panelTransparan269 = new pkl49.component.PanelTransparan();\n txtB9AK5_14 = new pkl49.component.TextField();\n txtB9AK5_14Als = new pkl49.component.TextField();\n panelTransparan270 = new pkl49.component.PanelTransparan();\n txtB9AK6_14 = new pkl49.component.TextField();\n panelTransparan271 = new pkl49.component.PanelTransparan();\n txtB9AK7_14 = new pkl49.component.TextField();\n panelTransparan272 = new pkl49.component.PanelTransparan();\n panelTransparan273 = new pkl49.component.PanelTransparan();\n txtB9AK8_14 = new pkl49.component.TextField();\n panelTransparan274 = new pkl49.component.PanelTransparan();\n txtB9AK9_14 = new pkl49.component.TextField();\n panelTransparan275 = new pkl49.component.PanelTransparan();\n txtB9AK10_14 = new pkl49.component.TextField();\n panelTransparan276 = new pkl49.component.PanelTransparan();\n txtB9AK11_14 = new pkl49.component.TextField();\n panelTransparan277 = new pkl49.component.PanelTransparan();\n panelTransparan278 = new pkl49.component.PanelTransparan();\n txtB9AK13_14 = new pkl49.component.TextField();\n txtB9AK13_14Als = new pkl49.component.TextField();\n panelTransparan279 = new pkl49.component.PanelTransparan();\n label112 = new pkl49.component.Label();\n panelTransparan280 = new pkl49.component.PanelTransparan();\n txtB9AK2_15 = new pkl49.component.TextField();\n panelTransparan281 = new pkl49.component.PanelTransparan();\n panelTransparan282 = new pkl49.component.PanelTransparan();\n panelTransparan283 = new pkl49.component.PanelTransparan();\n txtB9AK5_15 = new pkl49.component.TextField();\n txtB9AK5_15Als = new pkl49.component.TextField();\n panelTransparan284 = new pkl49.component.PanelTransparan();\n txtB9AK6_15 = new pkl49.component.TextField();\n panelTransparan285 = new pkl49.component.PanelTransparan();\n txtB9AK7_15 = new pkl49.component.TextField();\n panelTransparan286 = new pkl49.component.PanelTransparan();\n txtB9AK8_15 = new pkl49.component.TextField();\n panelTransparan287 = new pkl49.component.PanelTransparan();\n txtB9AK9_15 = new pkl49.component.TextField();\n panelTransparan288 = new pkl49.component.PanelTransparan();\n txtB9AK10_15 = new pkl49.component.TextField();\n panelTransparan289 = new pkl49.component.PanelTransparan();\n txtB9AK11_15 = new pkl49.component.TextField();\n panelTransparan290 = new pkl49.component.PanelTransparan();\n panelTransparan291 = new pkl49.component.PanelTransparan();\n txtB9AK13_15 = new pkl49.component.TextField();\n txtB9AK13_15Als = new pkl49.component.TextField();\n panelTransparan292 = new pkl49.component.PanelTransparan();\n label113 = new pkl49.component.Label();\n panelTransparan293 = new pkl49.component.PanelTransparan();\n txtB9AK2_16 = new pkl49.component.TextField();\n panelTransparan294 = new pkl49.component.PanelTransparan();\n panelTransparan295 = new pkl49.component.PanelTransparan();\n panelTransparan296 = new pkl49.component.PanelTransparan();\n txtB9AK5_16 = new pkl49.component.TextField();\n txtB9AK5_16Als = new pkl49.component.TextField();\n panelTransparan297 = new pkl49.component.PanelTransparan();\n txtB9AK6_16 = new pkl49.component.TextField();\n panelTransparan298 = new pkl49.component.PanelTransparan();\n txtB9AK7_16 = new pkl49.component.TextField();\n panelTransparan299 = new pkl49.component.PanelTransparan();\n txtB9AK8_16 = new pkl49.component.TextField();\n panelTransparan300 = new pkl49.component.PanelTransparan();\n txtB9AK9_16 = new pkl49.component.TextField();\n panelTransparan301 = new pkl49.component.PanelTransparan();\n txtB9AK10_16 = new pkl49.component.TextField();\n panelTransparan302 = new pkl49.component.PanelTransparan();\n txtB9AK11_16 = new pkl49.component.TextField();\n panelTransparan303 = new pkl49.component.PanelTransparan();\n panelTransparan304 = new pkl49.component.PanelTransparan();\n txtB9AK13_16 = new pkl49.component.TextField();\n txtB9AK13_16Als = new pkl49.component.TextField();\n panelTransparan305 = new pkl49.component.PanelTransparan();\n label114 = new pkl49.component.Label();\n panelTransparan306 = new pkl49.component.PanelTransparan();\n txtB9AK2_17 = new pkl49.component.TextField();\n panelTransparan307 = new pkl49.component.PanelTransparan();\n panelTransparan308 = new pkl49.component.PanelTransparan();\n panelTransparan309 = new pkl49.component.PanelTransparan();\n txtB9AK5_17 = new pkl49.component.TextField();\n txtB9AK5_17Als = new pkl49.component.TextField();\n panelTransparan310 = new pkl49.component.PanelTransparan();\n txtB9AK6_17 = new pkl49.component.TextField();\n panelTransparan311 = new pkl49.component.PanelTransparan();\n txtB9AK7_17 = new pkl49.component.TextField();\n panelTransparan312 = new pkl49.component.PanelTransparan();\n txtB9AK8_17 = new pkl49.component.TextField();\n panelTransparan313 = new pkl49.component.PanelTransparan();\n txtB9AK9_17 = new pkl49.component.TextField();\n panelTransparan314 = new pkl49.component.PanelTransparan();\n txtB9AK10_17 = new pkl49.component.TextField();\n panelTransparan315 = new pkl49.component.PanelTransparan();\n txtB9AK11_17 = new pkl49.component.TextField();\n panelTransparan316 = new pkl49.component.PanelTransparan();\n panelTransparan317 = new pkl49.component.PanelTransparan();\n txtB9AK13_17 = new pkl49.component.TextField();\n txtB9AK13_17Als = new pkl49.component.TextField();\n panelTransparan318 = new pkl49.component.PanelTransparan();\n label115 = new pkl49.component.Label();\n panelTransparan319 = new pkl49.component.PanelTransparan();\n txtB9AK2_18 = new pkl49.component.TextField();\n panelTransparan320 = new pkl49.component.PanelTransparan();\n panelTransparan321 = new pkl49.component.PanelTransparan();\n panelTransparan322 = new pkl49.component.PanelTransparan();\n txtB9AK5_18 = new pkl49.component.TextField();\n txtB9AK5_18Als = new pkl49.component.TextField();\n panelTransparan323 = new pkl49.component.PanelTransparan();\n txtB9AK6_18 = new pkl49.component.TextField();\n panelTransparan324 = new pkl49.component.PanelTransparan();\n txtB9AK7_18 = new pkl49.component.TextField();\n panelTransparan325 = new pkl49.component.PanelTransparan();\n txtB9AK8_18 = new pkl49.component.TextField();\n panelTransparan326 = new pkl49.component.PanelTransparan();\n txtB9AK9_18 = new pkl49.component.TextField();\n panelTransparan327 = new pkl49.component.PanelTransparan();\n txtB9AK10_18 = new pkl49.component.TextField();\n panelTransparan328 = new pkl49.component.PanelTransparan();\n txtB9AK11_18 = new pkl49.component.TextField();\n panelTransparan329 = new pkl49.component.PanelTransparan();\n panelTransparan330 = new pkl49.component.PanelTransparan();\n txtB9AK13_18 = new pkl49.component.TextField();\n txtB9AK13_18Als = new pkl49.component.TextField();\n panelTransparan331 = new pkl49.component.PanelTransparan();\n label116 = new pkl49.component.Label();\n panelTransparan332 = new pkl49.component.PanelTransparan();\n txtB9AK2_19 = new pkl49.component.TextField();\n panelTransparan333 = new pkl49.component.PanelTransparan();\n panelTransparan334 = new pkl49.component.PanelTransparan();\n panelTransparan335 = new pkl49.component.PanelTransparan();\n txtB9AK5_19 = new pkl49.component.TextField();\n txtB9AK5_19Als = new pkl49.component.TextField();\n panelTransparan336 = new pkl49.component.PanelTransparan();\n txtB9AK6_19 = new pkl49.component.TextField();\n panelTransparan337 = new pkl49.component.PanelTransparan();\n txtB9AK7_19 = new pkl49.component.TextField();\n panelTransparan338 = new pkl49.component.PanelTransparan();\n txtB9AK8_19 = new pkl49.component.TextField();\n panelTransparan339 = new pkl49.component.PanelTransparan();\n txtB9AK9_19 = new pkl49.component.TextField();\n panelTransparan340 = new pkl49.component.PanelTransparan();\n txtB9AK10_19 = new pkl49.component.TextField();\n panelTransparan341 = new pkl49.component.PanelTransparan();\n txtB9AK11_19 = new pkl49.component.TextField();\n panelTransparan342 = new pkl49.component.PanelTransparan();\n panelTransparan343 = new pkl49.component.PanelTransparan();\n txtB9AK13_19 = new pkl49.component.TextField();\n txtB9AK13_19Als = new pkl49.component.TextField();\n panelTransparan344 = new pkl49.component.PanelTransparan();\n label117 = new pkl49.component.Label();\n panelTransparan345 = new pkl49.component.PanelTransparan();\n txtB9AK2_20 = new pkl49.component.TextField();\n panelTransparan346 = new pkl49.component.PanelTransparan();\n panelTransparan347 = new pkl49.component.PanelTransparan();\n panelTransparan348 = new pkl49.component.PanelTransparan();\n txtB9AK5_20 = new pkl49.component.TextField();\n txtB9AK5_20Als = new pkl49.component.TextField();\n panelTransparan349 = new pkl49.component.PanelTransparan();\n txtB9AK6_20 = new pkl49.component.TextField();\n panelTransparan350 = new pkl49.component.PanelTransparan();\n txtB9AK7_20 = new pkl49.component.TextField();\n panelTransparan351 = new pkl49.component.PanelTransparan();\n txtB9AK8_20 = new pkl49.component.TextField();\n panelTransparan352 = new pkl49.component.PanelTransparan();\n txtB9AK9_20 = new pkl49.component.TextField();\n panelTransparan353 = new pkl49.component.PanelTransparan();\n txtB9AK10_20 = new pkl49.component.TextField();\n panelTransparan354 = new pkl49.component.PanelTransparan();\n txtB9AK11_20 = new pkl49.component.TextField();\n panelTransparan355 = new pkl49.component.PanelTransparan();\n panelTransparan356 = new pkl49.component.PanelTransparan();\n txtB9AK13_20 = new pkl49.component.TextField();\n txtB9AK13_20Als = new pkl49.component.TextField();\n panelTransparan357 = new pkl49.component.PanelTransparan();\n label118 = new pkl49.component.Label();\n panelTransparan358 = new pkl49.component.PanelTransparan();\n txtB9AK2_21 = new pkl49.component.TextField();\n panelTransparan359 = new pkl49.component.PanelTransparan();\n panelTransparan360 = new pkl49.component.PanelTransparan();\n panelTransparan361 = new pkl49.component.PanelTransparan();\n txtB9AK5_21 = new pkl49.component.TextField();\n txtB9AK5_21Als = new pkl49.component.TextField();\n panelTransparan362 = new pkl49.component.PanelTransparan();\n txtB9AK6_21 = new pkl49.component.TextField();\n panelTransparan363 = new pkl49.component.PanelTransparan();\n txtB9AK7_21 = new pkl49.component.TextField();\n panelTransparan364 = new pkl49.component.PanelTransparan();\n txtB9AK8_21 = new pkl49.component.TextField();\n panelTransparan365 = new pkl49.component.PanelTransparan();\n txtB9AK9_21 = new pkl49.component.TextField();\n panelTransparan366 = new pkl49.component.PanelTransparan();\n txtB9AK10_21 = new pkl49.component.TextField();\n panelTransparan367 = new pkl49.component.PanelTransparan();\n txtB9AK11_21 = new pkl49.component.TextField();\n panelTransparan368 = new pkl49.component.PanelTransparan();\n panelTransparan369 = new pkl49.component.PanelTransparan();\n txtB9AK13_21 = new pkl49.component.TextField();\n txtB9AK13_21Als = new pkl49.component.TextField();\n panelTransparan370 = new pkl49.component.PanelTransparan();\n label119 = new pkl49.component.Label();\n panelTransparan371 = new pkl49.component.PanelTransparan();\n txtB9AK2_22 = new pkl49.component.TextField();\n panelTransparan372 = new pkl49.component.PanelTransparan();\n panelTransparan373 = new pkl49.component.PanelTransparan();\n panelTransparan374 = new pkl49.component.PanelTransparan();\n txtB9AK5_22 = new pkl49.component.TextField();\n txtB9AK5_22Als = new pkl49.component.TextField();\n panelTransparan375 = new pkl49.component.PanelTransparan();\n txtB9AK6_22 = new pkl49.component.TextField();\n panelTransparan376 = new pkl49.component.PanelTransparan();\n txtB9AK7_22 = new pkl49.component.TextField();\n panelTransparan377 = new pkl49.component.PanelTransparan();\n txtB9AK8_22 = new pkl49.component.TextField();\n panelTransparan378 = new pkl49.component.PanelTransparan();\n txtB9AK9_22 = new pkl49.component.TextField();\n panelTransparan379 = new pkl49.component.PanelTransparan();\n txtB9AK10_22 = new pkl49.component.TextField();\n panelTransparan380 = new pkl49.component.PanelTransparan();\n txtB9AK11_22 = new pkl49.component.TextField();\n panelTransparan381 = new pkl49.component.PanelTransparan();\n panelTransparan382 = new pkl49.component.PanelTransparan();\n txtB9AK13_22 = new pkl49.component.TextField();\n txtB9AK13_22Als = new pkl49.component.TextField();\n panelTransparan383 = new pkl49.component.PanelTransparan();\n label120 = new pkl49.component.Label();\n panelTransparan384 = new pkl49.component.PanelTransparan();\n txtB9AK2_23 = new pkl49.component.TextField();\n panelTransparan385 = new pkl49.component.PanelTransparan();\n panelTransparan386 = new pkl49.component.PanelTransparan();\n panelTransparan387 = new pkl49.component.PanelTransparan();\n txtB9AK5_23 = new pkl49.component.TextField();\n txtB9AK5_23Als = new pkl49.component.TextField();\n panelTransparan388 = new pkl49.component.PanelTransparan();\n txtB9AK6_23 = new pkl49.component.TextField();\n panelTransparan389 = new pkl49.component.PanelTransparan();\n txtB9AK7_23 = new pkl49.component.TextField();\n panelTransparan390 = new pkl49.component.PanelTransparan();\n txtB9AK8_23 = new pkl49.component.TextField();\n panelTransparan391 = new pkl49.component.PanelTransparan();\n txtB9AK9_23 = new pkl49.component.TextField();\n panelTransparan392 = new pkl49.component.PanelTransparan();\n txtB9AK10_23 = new pkl49.component.TextField();\n panelTransparan393 = new pkl49.component.PanelTransparan();\n txtB9AK11_23 = new pkl49.component.TextField();\n panelTransparan394 = new pkl49.component.PanelTransparan();\n panelTransparan395 = new pkl49.component.PanelTransparan();\n txtB9AK13_23 = new pkl49.component.TextField();\n txtB9AK13_23Als = new pkl49.component.TextField();\n panelTransparan396 = new pkl49.component.PanelTransparan();\n label121 = new pkl49.component.Label();\n panelTransparan397 = new pkl49.component.PanelTransparan();\n txtB9AK2_24 = new pkl49.component.TextField();\n panelTransparan398 = new pkl49.component.PanelTransparan();\n panelTransparan399 = new pkl49.component.PanelTransparan();\n panelTransparan400 = new pkl49.component.PanelTransparan();\n txtB9AK5_24 = new pkl49.component.TextField();\n txtB9AK5_24Als = new pkl49.component.TextField();\n panelTransparan401 = new pkl49.component.PanelTransparan();\n txtB9AK6_24 = new pkl49.component.TextField();\n panelTransparan402 = new pkl49.component.PanelTransparan();\n txtB9AK7_24 = new pkl49.component.TextField();\n panelTransparan403 = new pkl49.component.PanelTransparan();\n txtB9AK8_24 = new pkl49.component.TextField();\n panelTransparan404 = new pkl49.component.PanelTransparan();\n txtB9AK9_24 = new pkl49.component.TextField();\n panelTransparan405 = new pkl49.component.PanelTransparan();\n txtB9AK10_24 = new pkl49.component.TextField();\n panelTransparan406 = new pkl49.component.PanelTransparan();\n txtB9AK11_24 = new pkl49.component.TextField();\n panelTransparan407 = new pkl49.component.PanelTransparan();\n panelTransparan408 = new pkl49.component.PanelTransparan();\n txtB9AK13_24 = new pkl49.component.TextField();\n txtB9AK13_24Als = new pkl49.component.TextField();\n panelTransparan409 = new pkl49.component.PanelTransparan();\n label122 = new pkl49.component.Label();\n panelTransparan410 = new pkl49.component.PanelTransparan();\n txtB9AK2_25 = new pkl49.component.TextField();\n panelTransparan411 = new pkl49.component.PanelTransparan();\n panelTransparan412 = new pkl49.component.PanelTransparan();\n panelTransparan413 = new pkl49.component.PanelTransparan();\n txtB9AK5_25 = new pkl49.component.TextField();\n txtB9AK5_25Als = new pkl49.component.TextField();\n panelTransparan414 = new pkl49.component.PanelTransparan();\n txtB9AK6_25 = new pkl49.component.TextField();\n panelTransparan415 = new pkl49.component.PanelTransparan();\n txtB9AK7_25 = new pkl49.component.TextField();\n panelTransparan416 = new pkl49.component.PanelTransparan();\n txtB9AK8_25 = new pkl49.component.TextField();\n panelTransparan417 = new pkl49.component.PanelTransparan();\n txtB9AK9_25 = new pkl49.component.TextField();\n panelTransparan418 = new pkl49.component.PanelTransparan();\n txtB9AK10_25 = new pkl49.component.TextField();\n panelTransparan419 = new pkl49.component.PanelTransparan();\n txtB9AK11_25 = new pkl49.component.TextField();\n panelTransparan420 = new pkl49.component.PanelTransparan();\n panelTransparan421 = new pkl49.component.PanelTransparan();\n txtB9AK13_25 = new pkl49.component.TextField();\n txtB9AK13_25Als = new pkl49.component.TextField();\n panelTransparan422 = new pkl49.component.PanelTransparan();\n panelTransparan423 = new pkl49.component.PanelTransparan();\n panelTransparan424 = new pkl49.component.PanelTransparan();\n panelTransparan425 = new pkl49.component.PanelTransparan();\n panelTransparan426 = new pkl49.component.PanelTransparan();\n panelTransparan427 = new pkl49.component.PanelTransparan();\n panelTransparan428 = new pkl49.component.PanelTransparan();\n panelTransparan429 = new pkl49.component.PanelTransparan();\n panelTransparan430 = new pkl49.component.PanelTransparan();\n panelTransparan431 = new pkl49.component.PanelTransparan();\n panelTransparan432 = new pkl49.component.PanelTransparan();\n panelTransparan433 = new pkl49.component.PanelTransparan();\n panelTransparan434 = new pkl49.component.PanelTransparan();\n\n setOpaque(false);\n setLayout(new java.awt.BorderLayout());\n\n panelTabel.setLayout(new java.awt.GridBagLayout());\n\n panelTransparan2.setAlpha(70);\n panelTransparan2.setLayout(new java.awt.GridBagLayout());\n\n label1.setText(\"VIII. PENGETAHUAN TENTANG PROGRAM KESEHATAN GRATIS, PROGRAM PENDIDIKAN GRATIS, DAN PENGETAHUAN TENTANG KESEHATAN\"); // NOI18N\n label1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan2.add(label1, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan2, gridBagConstraints);\n\n panelTransparan3.setAlpha(70);\n panelTransparan3.setLayout(new java.awt.GridBagLayout());\n\n label2.setText(\"VIII.A KESEHATAN DAN PENDIDIKAN GRATIS DALAM SATU TAHUN TERAKHIR\"); // NOI18N\n label2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan3.add(label2, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan3, gridBagConstraints);\n\n panelTransparan4.setAlpha(50);\n panelTransparan4.setLayout(new java.awt.GridBagLayout());\n\n label3.setText(\"No.\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label3, gridBagConstraints);\n\n label4.setText(\"ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label4, gridBagConstraints);\n\n label5.setText(\"Urut\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label5, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridheight = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan4, gridBagConstraints);\n\n panelTransparan5.setAlpha(50);\n panelTransparan5.setLayout(new java.awt.GridBagLayout());\n\n label6.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label6, gridBagConstraints);\n\n label8.setText(\"mempunyai jaminan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label8, gridBagConstraints);\n\n label10.setText(\"pembiayaan/asuransi\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label10, gridBagConstraints);\n\n label11.setText(\"kesehatan untuk di\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label11, gridBagConstraints);\n\n label12.setText(\"[Isikan kode]\"); // NOI18N\n label12.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label12, gridBagConstraints);\n\n label39.setText(\"bawah ini?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label39, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan5, gridBagConstraints);\n\n panelTransparan7.setAlpha(50);\n panelTransparan7.setLayout(new java.awt.GridBagLayout());\n\n label9.setText(\"0. Tidak punya\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label9, gridBagConstraints);\n\n label13.setText(\"1. Askes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label13, gridBagConstraints);\n\n label14.setText(\"2. Asabri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label14, gridBagConstraints);\n\n label15.setText(\"4. Jamsostek\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label15, gridBagConstraints);\n\n label16.setText(\"8. Jamkes Swasta\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label16, gridBagConstraints);\n\n label17.setText(\"16. Jamkesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label17, gridBagConstraints);\n\n label18.setText(\"32. Jamkes Mandiri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label18, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan7, gridBagConstraints);\n\n panelTransparan13.setAlpha(50);\n panelTransparan13.setLayout(new java.awt.GridBagLayout());\n\n label19.setText(\"Apakah ada ART yang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label19, gridBagConstraints);\n\n label21.setText(\"mengetahui tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label21, gridBagConstraints);\n\n label22.setText(\"program pemerintah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label22, gridBagConstraints);\n\n label24.setText(\"Jamsoskes semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label24, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan13, gridBagConstraints);\n\n panelTransparan14.setAlpha(50);\n panelTransparan14.setLayout(new java.awt.GridBagLayout());\n\n label26.setText(\"1=ya [Sumber informasi]\"); // NOI18N\n label26.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label26, gridBagConstraints);\n\n label27.setText(\"2=tidak\"); // NOI18N\n label27.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label27, gridBagConstraints);\n\n label89.setText(\"[Jika kode=2,\"); // NOI18N\n label89.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label89, gridBagConstraints);\n\n label90.setText(\"lanjut ke K.12]\"); // NOI18N\n label90.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label90, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan14, gridBagConstraints);\n\n panelTransparan15.setAlpha(50);\n panelTransparan15.setLayout(new java.awt.GridBagLayout());\n\n label28.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label28, gridBagConstraints);\n\n label29.setText(\"tentang siapa\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label29, gridBagConstraints);\n\n label30.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label30, gridBagConstraints);\n\n label31.setText(\"yang berhak\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label31, gridBagConstraints);\n\n label32.setText(\"pelayanan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label32, gridBagConstraints);\n\n label33.setText(\"Jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label33, gridBagConstraints);\n\n label34.setText(\"semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label34, gridBagConstraints);\n\n label37.setText(\"mendapatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label37, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan15, gridBagConstraints);\n\n panelTransparan16.setAlpha(50);\n panelTransparan16.setLayout(new java.awt.GridBagLayout());\n\n label35.setText(\"1=ya\"); // NOI18N\n label35.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label35, gridBagConstraints);\n\n label36.setText(\"2=tidak\"); // NOI18N\n label36.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label36, gridBagConstraints);\n\n label38.setText(\"[Isikan jika\"); // NOI18N\n label38.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label38, gridBagConstraints);\n\n label40.setText(\"K.3=1]\"); // NOI18N\n label40.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label40, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan16, gridBagConstraints);\n\n panelTransparan17.setAlpha(50);\n panelTransparan17.setLayout(new java.awt.GridBagLayout());\n\n label41.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label41, gridBagConstraints);\n\n label42.setText(\"[Isikan jika K.2=0 dan\"); // NOI18N\n label42.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label42, gridBagConstraints);\n\n label43.setText(\"jamsoskes?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label43, gridBagConstraints);\n\n label44.setText(\"K.3=1]\"); // NOI18N\n label44.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label44, gridBagConstraints);\n\n label91.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label91, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan17, gridBagConstraints);\n\n panelTransparan18.setAlpha(50);\n panelTransparan18.setLayout(new java.awt.GridBagLayout());\n\n label49.setText(\"1=ya\"); // NOI18N\n label49.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label49, gridBagConstraints);\n\n label50.setText(\"2=tidak [alasan]\"); // NOI18N\n label50.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label50, gridBagConstraints);\n\n label51.setText(\"[jika kode=2 Lanjut\"); // NOI18N\n label51.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label51, gridBagConstraints);\n\n label52.setText(\"ke K12]\"); // NOI18N\n label52.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label52, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan18, gridBagConstraints);\n\n panelTransparan19.setAlpha(50);\n panelTransparan19.setLayout(new java.awt.GridBagLayout());\n\n label45.setText(\"Jenis pelayanan yang pernah didapatkan dengan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label45, gridBagConstraints);\n\n label46.setText(\"memanfaatkan jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label46, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan19, gridBagConstraints);\n\n panelTransparan20.setAlpha(50);\n panelTransparan20.setLayout(new java.awt.GridBagLayout());\n\n label47.setText(\"1=ya 2=tidak\"); // NOI18N\n label47.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan20.add(label47, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan20, gridBagConstraints);\n\n panelTransparan27.setAlpha(50);\n panelTransparan27.setLayout(new java.awt.GridBagLayout());\n\n label63.setText(\"Rawat Jalan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan27.add(label63, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan27, gridBagConstraints);\n\n panelTransparan23.setAlpha(50);\n panelTransparan23.setLayout(new java.awt.GridBagLayout());\n\n label55.setText(\"Rawat Inap\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan23.add(label55, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan23, gridBagConstraints);\n\n panelTransparan24.setAlpha(50);\n panelTransparan24.setLayout(new java.awt.GridBagLayout());\n\n label56.setText(\"Gawat Darurat\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan24.add(label56, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan24, gridBagConstraints);\n\n panelTransparan21.setAlpha(50);\n panelTransparan21.setLayout(new java.awt.GridBagLayout());\n\n label48.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan21.add(label48, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan21, gridBagConstraints);\n\n panelTransparan22.setAlpha(50);\n panelTransparan22.setLayout(new java.awt.GridBagLayout());\n\n label54.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan22.add(label54, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan22, gridBagConstraints);\n\n panelTransparan25.setAlpha(50);\n panelTransparan25.setLayout(new java.awt.GridBagLayout());\n\n label57.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan25.add(label57, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan25, gridBagConstraints);\n\n panelTransparan26.setAlpha(50);\n panelTransparan26.setLayout(new java.awt.GridBagLayout());\n\n label58.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan26.add(label58, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan26, gridBagConstraints);\n\n panelTransparan28.setAlpha(50);\n panelTransparan28.setLayout(new java.awt.GridBagLayout());\n\n label59.setText(\"Puskesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan28.add(label59, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan28, gridBagConstraints);\n\n panelTransparan29.setAlpha(50);\n panelTransparan29.setLayout(new java.awt.GridBagLayout());\n\n label60.setText(\"Rumah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label60, gridBagConstraints);\n\n label61.setText(\"Sakit\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label61, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan29, gridBagConstraints);\n\n panelTransparan30.setAlpha(50);\n panelTransparan30.setLayout(new java.awt.GridBagLayout());\n\n label62.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label62, gridBagConstraints);\n\n label64.setText(\"tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label64, gridBagConstraints);\n\n label65.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label65, gridBagConstraints);\n\n label66.setText(\"program\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label66, gridBagConstraints);\n\n label67.setText(\"gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label67, gridBagConstraints);\n\n label70.setText(\"pendidikan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label70, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan30, gridBagConstraints);\n\n panelTransparan31.setAlpha(50);\n panelTransparan31.setLayout(new java.awt.GridBagLayout());\n\n label68.setText(\"1=ya\"); // NOI18N\n label68.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label68, gridBagConstraints);\n\n label69.setText(\"[Jika kode=2\"); // NOI18N\n label69.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label69, gridBagConstraints);\n\n label92.setText(\"Blok IX.B]\"); // NOI18N\n label92.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label92, gridBagConstraints);\n\n label93.setText(\"2=tidak\"); // NOI18N\n label93.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label93, gridBagConstraints);\n\n label104.setText(\"lanjut ke\"); // NOI18N\n label104.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label104, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan31, gridBagConstraints);\n\n panelTransparan32.setAlpha(50);\n panelTransparan32.setLayout(new java.awt.GridBagLayout());\n\n label71.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label71, gridBagConstraints);\n\n label76.setText(\"pendidikan gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label76, gridBagConstraints);\n\n label105.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label105, gridBagConstraints);\n\n label106.setText(\"7-18 tahun]\"); // NOI18N\n label106.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label106, gridBagConstraints);\n\n label107.setText(\"[Ditanyakan untuk ART\"); // NOI18N\n label107.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label107, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan32, gridBagConstraints);\n\n panelTransparan33.setAlpha(50);\n panelTransparan33.setLayout(new java.awt.GridBagLayout());\n\n label77.setText(\"1=ya\"); // NOI18N\n label77.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label77, gridBagConstraints);\n\n label78.setText(\"alasan jika K.12=1]\"); // NOI18N\n label78.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label78, gridBagConstraints);\n\n label79.setText(\"2=tidak [tanyakan\"); // NOI18N\n label79.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label79, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan33, gridBagConstraints);\n\n panelTransparan34.setAlpha(30);\n panelTransparan34.setLayout(new java.awt.GridBagLayout());\n\n label72.setText(\"(1)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan34.add(label72, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan34, gridBagConstraints);\n\n panelTransparan35.setAlpha(30);\n panelTransparan35.setLayout(new java.awt.GridBagLayout());\n\n label73.setText(\"(2)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan35.add(label73, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan35, gridBagConstraints);\n\n panelTransparan36.setAlpha(30);\n panelTransparan36.setLayout(new java.awt.GridBagLayout());\n\n label74.setText(\"(3)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan36.add(label74, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan36, gridBagConstraints);\n\n panelTransparan37.setAlpha(30);\n panelTransparan37.setLayout(new java.awt.GridBagLayout());\n\n label75.setText(\"(4)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan37.add(label75, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan37, gridBagConstraints);\n\n panelTransparan38.setAlpha(30);\n panelTransparan38.setLayout(new java.awt.GridBagLayout());\n\n label80.setText(\"(5)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan38.add(label80, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan38, gridBagConstraints);\n\n panelTransparan39.setAlpha(30);\n panelTransparan39.setLayout(new java.awt.GridBagLayout());\n\n label81.setText(\"(6)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan39.add(label81, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan39, gridBagConstraints);\n\n panelTransparan40.setAlpha(30);\n panelTransparan40.setLayout(new java.awt.GridBagLayout());\n\n label82.setText(\"(7)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan40.add(label82, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan40, gridBagConstraints);\n\n panelTransparan41.setAlpha(30);\n panelTransparan41.setLayout(new java.awt.GridBagLayout());\n\n label83.setText(\"(8)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan41.add(label83, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan41, gridBagConstraints);\n\n panelTransparan42.setAlpha(30);\n panelTransparan42.setLayout(new java.awt.GridBagLayout());\n\n label84.setText(\"(9)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan42.add(label84, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan42, gridBagConstraints);\n\n panelTransparan43.setAlpha(30);\n panelTransparan43.setLayout(new java.awt.GridBagLayout());\n\n label85.setText(\"(10)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan43.add(label85, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan43, gridBagConstraints);\n\n panelTransparan44.setAlpha(30);\n panelTransparan44.setLayout(new java.awt.GridBagLayout());\n\n label86.setText(\"(11)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan44.add(label86, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan44, gridBagConstraints);\n\n panelTransparan45.setAlpha(30);\n panelTransparan45.setLayout(new java.awt.GridBagLayout());\n\n label87.setText(\"(12)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan45.add(label87, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan45, gridBagConstraints);\n\n panelTransparan46.setAlpha(30);\n panelTransparan46.setLayout(new java.awt.GridBagLayout());\n\n label88.setText(\"(13)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan46.add(label88, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan46, gridBagConstraints);\n\n panelTransparan52.setLayout(new java.awt.GridBagLayout());\n\n label94.setText(\"1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan52.add(label94, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan52, gridBagConstraints);\n\n txtB9AK2_1.setColumns(3);\n txtB9AK2_1.setLength(2);\n txtB9AK2_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan53.add(txtB9AK2_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan53, gridBagConstraints);\n\n panelTransparan54.setAlpha(70);\n panelTransparan54.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK4_26.setColumns(2);\n txtB9AK4_26.setMaxDigit('2');\n txtB9AK4_26.setMinDigit('1');\n txtB9AK4_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan54.add(txtB9AK4_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan54, gridBagConstraints);\n\n panelTransparan55.setAlpha(70);\n panelTransparan55.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK3_26.setColumns(2);\n txtB9AK3_26.setMaxDigit('2');\n txtB9AK3_26.setMinDigit('1');\n txtB9AK3_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 2);\n panelTransparan55.add(txtB9AK3_26, gridBagConstraints);\n\n txtB9AK3_26Als.setColumns(3);\n txtB9AK3_26Als.setCharType(1);\n txtB9AK3_26Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtB9AK3_26AlsfocusTxt(evt);\n }\n });\n panelTransparan55.add(txtB9AK3_26Als, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan55, gridBagConstraints);\n\n txtB9AK5_1.setColumns(2);\n txtB9AK5_1.setMaxDigit('2');\n txtB9AK5_1.setMinDigit('1');\n txtB9AK5_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1);\n\n txtB9AK5_1Als.setColumns(3);\n txtB9AK5_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan56, gridBagConstraints);\n\n txtB9AK6_1.setColumns(2);\n txtB9AK6_1.setMaxDigit('2');\n txtB9AK6_1.setMinDigit('1');\n txtB9AK6_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan57.add(txtB9AK6_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan57, gridBagConstraints);\n\n txtB9AK7_1.setColumns(2);\n txtB9AK7_1.setMaxDigit('2');\n txtB9AK7_1.setMinDigit('1');\n txtB9AK7_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan58.add(txtB9AK7_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan58, gridBagConstraints);\n\n txtB9AK8_1.setColumns(2);\n txtB9AK8_1.setMaxDigit('2');\n txtB9AK8_1.setMinDigit('1');\n txtB9AK8_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan59.add(txtB9AK8_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan59, gridBagConstraints);\n\n txtB9AK9_1.setColumns(2);\n txtB9AK9_1.setMaxDigit('2');\n txtB9AK9_1.setMinDigit('1');\n txtB9AK9_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan60.add(txtB9AK9_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan60, gridBagConstraints);\n\n txtB9AK10_1.setColumns(2);\n txtB9AK10_1.setMaxDigit('2');\n txtB9AK10_1.setMinDigit('1');\n txtB9AK10_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan61.add(txtB9AK10_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan61, gridBagConstraints);\n\n txtB9AK11_1.setColumns(2);\n txtB9AK11_1.setMaxDigit('2');\n txtB9AK11_1.setMinDigit('1');\n txtB9AK11_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan62.add(txtB9AK11_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan62, gridBagConstraints);\n\n panelTransparan63.setAlpha(70);\n panelTransparan63.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK12_26.setColumns(2);\n txtB9AK12_26.setMaxDigit('2');\n txtB9AK12_26.setMinDigit('1');\n txtB9AK12_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan63.add(txtB9AK12_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan63, gridBagConstraints);\n\n txtB9AK13_1.setColumns(2);\n txtB9AK13_1.setMaxDigit('2');\n txtB9AK13_1.setMinDigit('1');\n txtB9AK13_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1);\n\n txtB9AK13_1Als.setColumns(3);\n txtB9AK13_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan64, gridBagConstraints);\n\n panelTransparan70.setLayout(new java.awt.GridBagLayout());\n\n label95.setText(\"4\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan70.add(label95, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan70, gridBagConstraints);\n\n txtB9AK2_2.setColumns(3);\n txtB9AK2_2.setLength(2);\n txtB9AK2_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan71.add(txtB9AK2_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan71, gridBagConstraints);\n\n panelTransparan72.setAlpha(70);\n panelTransparan72.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan72, gridBagConstraints);\n\n panelTransparan73.setAlpha(70);\n panelTransparan73.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan73, gridBagConstraints);\n\n txtB9AK5_2.setColumns(2);\n txtB9AK5_2.setMaxDigit('2');\n txtB9AK5_2.setMinDigit('1');\n txtB9AK5_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2);\n\n txtB9AK5_2Als.setColumns(3);\n txtB9AK5_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan74, gridBagConstraints);\n\n txtB9AK6_2.setColumns(2);\n txtB9AK6_2.setMaxDigit('2');\n txtB9AK6_2.setMinDigit('1');\n txtB9AK6_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan75.add(txtB9AK6_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan75, gridBagConstraints);\n\n txtB9AK7_2.setColumns(2);\n txtB9AK7_2.setMaxDigit('2');\n txtB9AK7_2.setMinDigit('1');\n txtB9AK7_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan76.add(txtB9AK7_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan76, gridBagConstraints);\n\n txtB9AK8_2.setColumns(2);\n txtB9AK8_2.setMaxDigit('2');\n txtB9AK8_2.setMinDigit('1');\n txtB9AK8_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan77.add(txtB9AK8_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan77, gridBagConstraints);\n\n txtB9AK9_2.setColumns(2);\n txtB9AK9_2.setMaxDigit('2');\n txtB9AK9_2.setMinDigit('1');\n txtB9AK9_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan78.add(txtB9AK9_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan78, gridBagConstraints);\n\n txtB9AK10_2.setColumns(2);\n txtB9AK10_2.setMaxDigit('2');\n txtB9AK10_2.setMinDigit('1');\n txtB9AK10_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan79.add(txtB9AK10_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan79, gridBagConstraints);\n\n txtB9AK11_2.setColumns(2);\n txtB9AK11_2.setMaxDigit('2');\n txtB9AK11_2.setMinDigit('1');\n txtB9AK11_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan80.add(txtB9AK11_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan80, gridBagConstraints);\n\n panelTransparan81.setAlpha(70);\n panelTransparan81.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan81, gridBagConstraints);\n\n txtB9AK13_2.setColumns(2);\n txtB9AK13_2.setMaxDigit('2');\n txtB9AK13_2.setMinDigit('1');\n txtB9AK13_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2);\n\n txtB9AK13_2Als.setColumns(3);\n txtB9AK13_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan82, gridBagConstraints);\n\n panelTransparan88.setLayout(new java.awt.GridBagLayout());\n\n label96.setText(\"5\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan88.add(label96, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan88, gridBagConstraints);\n\n txtB9AK2_3.setColumns(3);\n txtB9AK2_3.setLength(2);\n txtB9AK2_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan89.add(txtB9AK2_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan89, gridBagConstraints);\n\n panelTransparan90.setAlpha(70);\n panelTransparan90.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan90, gridBagConstraints);\n\n panelTransparan91.setAlpha(70);\n panelTransparan91.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan91, gridBagConstraints);\n\n txtB9AK5_3.setColumns(2);\n txtB9AK5_3.setMaxDigit('2');\n txtB9AK5_3.setMinDigit('1');\n txtB9AK5_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3);\n\n txtB9AK5_3Als.setColumns(3);\n txtB9AK5_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan92, gridBagConstraints);\n\n txtB9AK6_3.setColumns(2);\n txtB9AK6_3.setMaxDigit('2');\n txtB9AK6_3.setMinDigit('1');\n txtB9AK6_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan93.add(txtB9AK6_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan93, gridBagConstraints);\n\n txtB9AK7_3.setColumns(2);\n txtB9AK7_3.setMaxDigit('2');\n txtB9AK7_3.setMinDigit('1');\n txtB9AK7_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan94.add(txtB9AK7_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan94, gridBagConstraints);\n\n txtB9AK9_3.setColumns(2);\n txtB9AK9_3.setMaxDigit('2');\n txtB9AK9_3.setMinDigit('1');\n txtB9AK9_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan95.add(txtB9AK9_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan95, gridBagConstraints);\n\n txtB9AK8_3.setColumns(2);\n txtB9AK8_3.setMaxDigit('2');\n txtB9AK8_3.setMinDigit('1');\n txtB9AK8_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan96.add(txtB9AK8_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan96, gridBagConstraints);\n\n txtB9AK10_3.setColumns(2);\n txtB9AK10_3.setMaxDigit('2');\n txtB9AK10_3.setMinDigit('1');\n txtB9AK10_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan97.add(txtB9AK10_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan97, gridBagConstraints);\n\n txtB9AK11_3.setColumns(2);\n txtB9AK11_3.setMaxDigit('2');\n txtB9AK11_3.setMinDigit('1');\n txtB9AK11_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan98.add(txtB9AK11_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan98, gridBagConstraints);\n\n panelTransparan99.setAlpha(70);\n panelTransparan99.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan99, gridBagConstraints);\n\n txtB9AK13_3.setColumns(2);\n txtB9AK13_3.setMaxDigit('2');\n txtB9AK13_3.setMinDigit('1');\n txtB9AK13_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3);\n\n txtB9AK13_3Als.setColumns(3);\n txtB9AK13_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan100, gridBagConstraints);\n\n panelTransparan106.setLayout(new java.awt.GridBagLayout());\n\n label97.setText(\"3\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan106.add(label97, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan106, gridBagConstraints);\n\n txtB9AK2_4.setColumns(3);\n txtB9AK2_4.setLength(2);\n txtB9AK2_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan107.add(txtB9AK2_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan107, gridBagConstraints);\n\n panelTransparan108.setAlpha(70);\n panelTransparan108.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan108, gridBagConstraints);\n\n panelTransparan109.setAlpha(70);\n panelTransparan109.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan109, gridBagConstraints);\n\n txtB9AK5_4.setColumns(2);\n txtB9AK5_4.setMaxDigit('2');\n txtB9AK5_4.setMinDigit('1');\n txtB9AK5_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4);\n\n txtB9AK5_4Als.setColumns(3);\n txtB9AK5_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan110, gridBagConstraints);\n\n txtB9AK6_4.setColumns(2);\n txtB9AK6_4.setMaxDigit('2');\n txtB9AK6_4.setMinDigit('1');\n txtB9AK6_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan111.add(txtB9AK6_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan111, gridBagConstraints);\n\n txtB9AK7_4.setColumns(2);\n txtB9AK7_4.setMaxDigit('2');\n txtB9AK7_4.setMinDigit('1');\n txtB9AK7_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan112.add(txtB9AK7_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan112, gridBagConstraints);\n\n txtB9AK8_4.setColumns(2);\n txtB9AK8_4.setMaxDigit('2');\n txtB9AK8_4.setMinDigit('1');\n txtB9AK8_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan113.add(txtB9AK8_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan113, gridBagConstraints);\n\n txtB9AK9_4.setColumns(2);\n txtB9AK9_4.setMaxDigit('2');\n txtB9AK9_4.setMinDigit('1');\n txtB9AK9_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan114.add(txtB9AK9_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan114, gridBagConstraints);\n\n txtB9AK10_4.setColumns(2);\n txtB9AK10_4.setMaxDigit('2');\n txtB9AK10_4.setMinDigit('1');\n txtB9AK10_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan115.add(txtB9AK10_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan115, gridBagConstraints);\n\n txtB9AK11_4.setColumns(2);\n txtB9AK11_4.setMaxDigit('2');\n txtB9AK11_4.setMinDigit('1');\n txtB9AK11_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan116.add(txtB9AK11_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan116, gridBagConstraints);\n\n panelTransparan117.setAlpha(70);\n panelTransparan117.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan117, gridBagConstraints);\n\n txtB9AK13_4.setColumns(2);\n txtB9AK13_4.setMaxDigit('2');\n txtB9AK13_4.setMinDigit('1');\n txtB9AK13_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4);\n\n txtB9AK13_4Als.setColumns(3);\n txtB9AK13_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan118, gridBagConstraints);\n\n panelTransparan124.setLayout(new java.awt.GridBagLayout());\n\n label98.setText(\"6\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan124.add(label98, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan124, gridBagConstraints);\n\n txtB9AK2_5.setColumns(3);\n txtB9AK2_5.setLength(2);\n txtB9AK2_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan125.add(txtB9AK2_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan125, gridBagConstraints);\n\n panelTransparan126.setAlpha(70);\n panelTransparan126.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan126, gridBagConstraints);\n\n panelTransparan127.setAlpha(70);\n panelTransparan127.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan127, gridBagConstraints);\n\n txtB9AK5_5.setColumns(2);\n txtB9AK5_5.setMaxDigit('2');\n txtB9AK5_5.setMinDigit('1');\n txtB9AK5_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5);\n\n txtB9AK5_5Als.setColumns(3);\n txtB9AK5_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan128, gridBagConstraints);\n\n txtB9AK6_5.setColumns(2);\n txtB9AK6_5.setMaxDigit('2');\n txtB9AK6_5.setMinDigit('1');\n txtB9AK6_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan129.add(txtB9AK6_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan129, gridBagConstraints);\n\n txtB9AK7_5.setColumns(2);\n txtB9AK7_5.setMaxDigit('2');\n txtB9AK7_5.setMinDigit('1');\n txtB9AK7_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan130.add(txtB9AK7_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan130, gridBagConstraints);\n\n txtB9AK8_5.setColumns(2);\n txtB9AK8_5.setMaxDigit('2');\n txtB9AK8_5.setMinDigit('1');\n txtB9AK8_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan131.add(txtB9AK8_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan131, gridBagConstraints);\n\n txtB9AK9_5.setColumns(2);\n txtB9AK9_5.setMaxDigit('2');\n txtB9AK9_5.setMinDigit('1');\n txtB9AK9_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan132.add(txtB9AK9_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan132, gridBagConstraints);\n\n txtB9AK10_5.setColumns(2);\n txtB9AK10_5.setMaxDigit('2');\n txtB9AK10_5.setMinDigit('1');\n txtB9AK10_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan133.add(txtB9AK10_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan133, gridBagConstraints);\n\n txtB9AK11_5.setColumns(2);\n txtB9AK11_5.setMaxDigit('2');\n txtB9AK11_5.setMinDigit('1');\n txtB9AK11_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan134.add(txtB9AK11_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan134, gridBagConstraints);\n\n panelTransparan135.setAlpha(70);\n panelTransparan135.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan135, gridBagConstraints);\n\n txtB9AK13_5.setColumns(2);\n txtB9AK13_5.setMaxDigit('2');\n txtB9AK13_5.setMinDigit('1');\n txtB9AK13_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5);\n\n txtB9AK13_5Als.setColumns(3);\n txtB9AK13_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan136, gridBagConstraints);\n\n panelTransparan142.setLayout(new java.awt.GridBagLayout());\n\n label99.setText(\"2\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan142.add(label99, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan142, gridBagConstraints);\n\n txtB9AK2_6.setColumns(3);\n txtB9AK2_6.setLength(2);\n txtB9AK2_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan143.add(txtB9AK2_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan143, gridBagConstraints);\n\n panelTransparan144.setAlpha(70);\n panelTransparan144.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan144, gridBagConstraints);\n\n panelTransparan145.setAlpha(70);\n panelTransparan145.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan145, gridBagConstraints);\n\n txtB9AK5_6.setColumns(2);\n txtB9AK5_6.setMaxDigit('2');\n txtB9AK5_6.setMinDigit('1');\n txtB9AK5_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6);\n\n txtB9AK5_6Als.setColumns(3);\n txtB9AK5_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan146, gridBagConstraints);\n\n txtB9AK6_6.setColumns(2);\n txtB9AK6_6.setMaxDigit('2');\n txtB9AK6_6.setMinDigit('1');\n txtB9AK6_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan147.add(txtB9AK6_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan147, gridBagConstraints);\n\n txtB9AK7_6.setColumns(2);\n txtB9AK7_6.setMaxDigit('2');\n txtB9AK7_6.setMinDigit('1');\n txtB9AK7_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan148.add(txtB9AK7_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan148, gridBagConstraints);\n\n txtB9AK8_6.setColumns(2);\n txtB9AK8_6.setMaxDigit('2');\n txtB9AK8_6.setMinDigit('1');\n txtB9AK8_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan149.add(txtB9AK8_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan149, gridBagConstraints);\n\n txtB9AK9_6.setColumns(2);\n txtB9AK9_6.setMaxDigit('2');\n txtB9AK9_6.setMinDigit('1');\n txtB9AK9_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan150.add(txtB9AK9_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan150, gridBagConstraints);\n\n txtB9AK10_6.setColumns(2);\n txtB9AK10_6.setMaxDigit('2');\n txtB9AK10_6.setMinDigit('1');\n txtB9AK10_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan151.add(txtB9AK10_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan151, gridBagConstraints);\n\n txtB9AK11_6.setColumns(2);\n txtB9AK11_6.setMaxDigit('2');\n txtB9AK11_6.setMinDigit('1');\n txtB9AK11_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan152.add(txtB9AK11_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan152, gridBagConstraints);\n\n panelTransparan153.setAlpha(70);\n panelTransparan153.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan153, gridBagConstraints);\n\n txtB9AK13_6.setColumns(2);\n txtB9AK13_6.setMaxDigit('2');\n txtB9AK13_6.setMinDigit('1');\n txtB9AK13_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6);\n\n txtB9AK13_6Als.setColumns(3);\n txtB9AK13_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan154, gridBagConstraints);\n\n panelTransparan160.setLayout(new java.awt.GridBagLayout());\n\n label100.setText(\"7\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan160.add(label100, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan160, gridBagConstraints);\n\n txtB9AK2_7.setColumns(3);\n txtB9AK2_7.setLength(2);\n txtB9AK2_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan161.add(txtB9AK2_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan161, gridBagConstraints);\n\n panelTransparan162.setAlpha(70);\n panelTransparan162.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan162, gridBagConstraints);\n\n panelTransparan163.setAlpha(70);\n panelTransparan163.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan163, gridBagConstraints);\n\n txtB9AK5_7.setColumns(2);\n txtB9AK5_7.setMaxDigit('2');\n txtB9AK5_7.setMinDigit('1');\n txtB9AK5_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7);\n\n txtB9AK5_7Als.setColumns(3);\n txtB9AK5_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan164, gridBagConstraints);\n\n txtB9AK6_7.setColumns(2);\n txtB9AK6_7.setMaxDigit('2');\n txtB9AK6_7.setMinDigit('1');\n txtB9AK6_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan165.add(txtB9AK6_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan165, gridBagConstraints);\n\n txtB9AK7_7.setColumns(2);\n txtB9AK7_7.setMaxDigit('2');\n txtB9AK7_7.setMinDigit('1');\n txtB9AK7_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan166.add(txtB9AK7_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan166, gridBagConstraints);\n\n txtB9AK8_7.setColumns(2);\n txtB9AK8_7.setMaxDigit('2');\n txtB9AK8_7.setMinDigit('1');\n txtB9AK8_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan167.add(txtB9AK8_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan167, gridBagConstraints);\n\n txtB9AK9_7.setColumns(2);\n txtB9AK9_7.setMaxDigit('2');\n txtB9AK9_7.setMinDigit('1');\n txtB9AK9_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan168.add(txtB9AK9_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan168, gridBagConstraints);\n\n txtB9AK10_7.setColumns(2);\n txtB9AK10_7.setMaxDigit('2');\n txtB9AK10_7.setMinDigit('1');\n txtB9AK10_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan169.add(txtB9AK10_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan169, gridBagConstraints);\n\n txtB9AK11_7.setColumns(2);\n txtB9AK11_7.setMaxDigit('2');\n txtB9AK11_7.setMinDigit('1');\n txtB9AK11_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan170.add(txtB9AK11_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan170, gridBagConstraints);\n\n panelTransparan171.setAlpha(70);\n panelTransparan171.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan171, gridBagConstraints);\n\n txtB9AK13_7.setColumns(2);\n txtB9AK13_7.setMaxDigit('2');\n txtB9AK13_7.setMinDigit('1');\n txtB9AK13_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7);\n\n txtB9AK13_7Als.setColumns(3);\n txtB9AK13_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan172, gridBagConstraints);\n\n panelTransparan178.setLayout(new java.awt.GridBagLayout());\n\n label101.setText(\"8\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan178.add(label101, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan178, gridBagConstraints);\n\n txtB9AK2_8.setColumns(3);\n txtB9AK2_8.setLength(2);\n txtB9AK2_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan179.add(txtB9AK2_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan179, gridBagConstraints);\n\n panelTransparan180.setAlpha(70);\n panelTransparan180.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan180, gridBagConstraints);\n\n panelTransparan181.setAlpha(70);\n panelTransparan181.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan181, gridBagConstraints);\n\n txtB9AK5_8.setColumns(2);\n txtB9AK5_8.setMaxDigit('2');\n txtB9AK5_8.setMinDigit('1');\n txtB9AK5_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8);\n\n txtB9AK5_8Als.setColumns(3);\n txtB9AK5_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan182, gridBagConstraints);\n\n txtB9AK6_8.setColumns(2);\n txtB9AK6_8.setMaxDigit('2');\n txtB9AK6_8.setMinDigit('1');\n txtB9AK6_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan183.add(txtB9AK6_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan183, gridBagConstraints);\n\n txtB9AK7_8.setColumns(2);\n txtB9AK7_8.setMaxDigit('2');\n txtB9AK7_8.setMinDigit('1');\n txtB9AK7_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan184.add(txtB9AK7_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan184, gridBagConstraints);\n\n txtB9AK8_8.setColumns(2);\n txtB9AK8_8.setMaxDigit('2');\n txtB9AK8_8.setMinDigit('1');\n txtB9AK8_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan185.add(txtB9AK8_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan185, gridBagConstraints);\n\n txtB9AK9_8.setColumns(2);\n txtB9AK9_8.setMaxDigit('2');\n txtB9AK9_8.setMinDigit('1');\n txtB9AK9_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan186.add(txtB9AK9_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan186, gridBagConstraints);\n\n txtB9AK10_8.setColumns(2);\n txtB9AK10_8.setMaxDigit('2');\n txtB9AK10_8.setMinDigit('1');\n txtB9AK10_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan187.add(txtB9AK10_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan187, gridBagConstraints);\n\n txtB9AK11_8.setColumns(2);\n txtB9AK11_8.setMaxDigit('2');\n txtB9AK11_8.setMinDigit('1');\n txtB9AK11_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan188.add(txtB9AK11_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan188, gridBagConstraints);\n\n panelTransparan189.setAlpha(70);\n panelTransparan189.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan189, gridBagConstraints);\n\n txtB9AK13_8.setColumns(2);\n txtB9AK13_8.setMaxDigit('2');\n txtB9AK13_8.setMinDigit('1');\n txtB9AK13_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8);\n\n txtB9AK13_8Als.setColumns(3);\n txtB9AK13_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan190, gridBagConstraints);\n\n panelTransparan196.setLayout(new java.awt.GridBagLayout());\n\n label102.setText(\"9\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan196.add(label102, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan196, gridBagConstraints);\n\n txtB9AK2_9.setColumns(3);\n txtB9AK2_9.setLength(2);\n txtB9AK2_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan197.add(txtB9AK2_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan197, gridBagConstraints);\n\n panelTransparan198.setAlpha(70);\n panelTransparan198.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan198, gridBagConstraints);\n\n panelTransparan199.setAlpha(70);\n panelTransparan199.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan199, gridBagConstraints);\n\n txtB9AK5_9.setColumns(2);\n txtB9AK5_9.setMaxDigit('2');\n txtB9AK5_9.setMinDigit('1');\n txtB9AK5_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9);\n\n txtB9AK5_9Als.setColumns(3);\n txtB9AK5_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan200, gridBagConstraints);\n\n txtB9AK6_9.setColumns(2);\n txtB9AK6_9.setMaxDigit('2');\n txtB9AK6_9.setMinDigit('1');\n txtB9AK6_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan201.add(txtB9AK6_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan201, gridBagConstraints);\n\n txtB9AK7_9.setColumns(2);\n txtB9AK7_9.setMaxDigit('2');\n txtB9AK7_9.setMinDigit('1');\n txtB9AK7_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan202.add(txtB9AK7_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan202, gridBagConstraints);\n\n txtB9AK8_9.setColumns(2);\n txtB9AK8_9.setMaxDigit('2');\n txtB9AK8_9.setMinDigit('1');\n txtB9AK8_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan203.add(txtB9AK8_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan203, gridBagConstraints);\n\n txtB9AK9_9.setColumns(2);\n txtB9AK9_9.setMaxDigit('2');\n txtB9AK9_9.setMinDigit('1');\n txtB9AK9_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan204.add(txtB9AK9_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan204, gridBagConstraints);\n\n txtB9AK10_9.setColumns(2);\n txtB9AK10_9.setMaxDigit('2');\n txtB9AK10_9.setMinDigit('1');\n txtB9AK10_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan205.add(txtB9AK10_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan205, gridBagConstraints);\n\n txtB9AK11_9.setColumns(2);\n txtB9AK11_9.setMaxDigit('2');\n txtB9AK11_9.setMinDigit('1');\n txtB9AK11_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan206.add(txtB9AK11_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan206, gridBagConstraints);\n\n panelTransparan207.setAlpha(70);\n panelTransparan207.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan207, gridBagConstraints);\n\n txtB9AK13_9.setColumns(2);\n txtB9AK13_9.setMaxDigit('2');\n txtB9AK13_9.setMinDigit('1');\n txtB9AK13_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9);\n\n txtB9AK13_9Als.setColumns(3);\n txtB9AK13_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan208, gridBagConstraints);\n\n panelTransparan214.setLayout(new java.awt.GridBagLayout());\n\n label103.setText(\"10\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan214.add(label103, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan214, gridBagConstraints);\n\n txtB9AK2_10.setColumns(3);\n txtB9AK2_10.setLength(2);\n txtB9AK2_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan215.add(txtB9AK2_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan215, gridBagConstraints);\n\n panelTransparan216.setAlpha(70);\n panelTransparan216.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan216, gridBagConstraints);\n\n panelTransparan217.setAlpha(70);\n panelTransparan217.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan217, gridBagConstraints);\n\n txtB9AK5_10.setColumns(2);\n txtB9AK5_10.setMaxDigit('2');\n txtB9AK5_10.setMinDigit('1');\n txtB9AK5_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10);\n\n txtB9AK5_10Als.setColumns(3);\n txtB9AK5_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan218, gridBagConstraints);\n\n txtB9AK6_10.setColumns(2);\n txtB9AK6_10.setMaxDigit('2');\n txtB9AK6_10.setMinDigit('1');\n txtB9AK6_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan219.add(txtB9AK6_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan219, gridBagConstraints);\n\n txtB9AK7_10.setColumns(2);\n txtB9AK7_10.setMaxDigit('2');\n txtB9AK7_10.setMinDigit('1');\n txtB9AK7_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan220.add(txtB9AK7_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan220, gridBagConstraints);\n\n txtB9AK8_10.setColumns(2);\n txtB9AK8_10.setMaxDigit('2');\n txtB9AK8_10.setMinDigit('1');\n txtB9AK8_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan221.add(txtB9AK8_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan221, gridBagConstraints);\n\n txtB9AK9_10.setColumns(2);\n txtB9AK9_10.setMaxDigit('2');\n txtB9AK9_10.setMinDigit('1');\n txtB9AK9_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan222.add(txtB9AK9_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan222, gridBagConstraints);\n\n txtB9AK10_10.setColumns(2);\n txtB9AK10_10.setMaxDigit('2');\n txtB9AK10_10.setMinDigit('1');\n txtB9AK10_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan223.add(txtB9AK10_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan223, gridBagConstraints);\n\n txtB9AK11_10.setColumns(2);\n txtB9AK11_10.setMaxDigit('2');\n txtB9AK11_10.setMinDigit('1');\n txtB9AK11_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan224.add(txtB9AK11_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan224, gridBagConstraints);\n\n panelTransparan225.setAlpha(70);\n panelTransparan225.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan225, gridBagConstraints);\n\n txtB9AK13_10.setColumns(2);\n txtB9AK13_10.setMaxDigit('2');\n txtB9AK13_10.setMinDigit('1');\n txtB9AK13_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10);\n\n txtB9AK13_10Als.setColumns(3);\n txtB9AK13_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan226, gridBagConstraints);\n\n panelTransparan227.setLayout(new java.awt.GridBagLayout());\n\n label108.setText(\"11\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan227.add(label108, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan227, gridBagConstraints);\n\n txtB9AK2_11.setColumns(3);\n txtB9AK2_11.setLength(2);\n txtB9AK2_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan228.add(txtB9AK2_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan228, gridBagConstraints);\n\n panelTransparan229.setAlpha(70);\n panelTransparan229.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan229, gridBagConstraints);\n\n panelTransparan230.setAlpha(70);\n panelTransparan230.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan230, gridBagConstraints);\n\n txtB9AK5_11.setColumns(2);\n txtB9AK5_11.setMaxDigit('2');\n txtB9AK5_11.setMinDigit('1');\n txtB9AK5_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11);\n\n txtB9AK5_11Als.setColumns(3);\n txtB9AK5_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan231, gridBagConstraints);\n\n txtB9AK6_11.setColumns(2);\n txtB9AK6_11.setMaxDigit('2');\n txtB9AK6_11.setMinDigit('1');\n txtB9AK6_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan232.add(txtB9AK6_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan232, gridBagConstraints);\n\n txtB9AK7_11.setColumns(2);\n txtB9AK7_11.setMaxDigit('2');\n txtB9AK7_11.setMinDigit('1');\n txtB9AK7_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan233.add(txtB9AK7_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan233, gridBagConstraints);\n\n txtB9AK8_11.setColumns(2);\n txtB9AK8_11.setMaxDigit('2');\n txtB9AK8_11.setMinDigit('1');\n txtB9AK8_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan234.add(txtB9AK8_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan234, gridBagConstraints);\n\n txtB9AK9_11.setColumns(2);\n txtB9AK9_11.setMaxDigit('2');\n txtB9AK9_11.setMinDigit('1');\n txtB9AK9_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan235.add(txtB9AK9_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan235, gridBagConstraints);\n\n txtB9AK10_11.setColumns(2);\n txtB9AK10_11.setMaxDigit('2');\n txtB9AK10_11.setMinDigit('1');\n txtB9AK10_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan236.add(txtB9AK10_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan236, gridBagConstraints);\n\n txtB9AK11_11.setColumns(2);\n txtB9AK11_11.setMaxDigit('2');\n txtB9AK11_11.setMinDigit('1');\n txtB9AK11_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan237.add(txtB9AK11_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan237, gridBagConstraints);\n\n panelTransparan238.setAlpha(70);\n panelTransparan238.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan238, gridBagConstraints);\n\n txtB9AK13_11.setColumns(2);\n txtB9AK13_11.setMaxDigit('2');\n txtB9AK13_11.setMinDigit('1');\n txtB9AK13_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11);\n\n txtB9AK13_11Als.setColumns(3);\n txtB9AK13_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan239, gridBagConstraints);\n\n panelTransparan240.setLayout(new java.awt.GridBagLayout());\n\n label109.setText(\"12\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan240.add(label109, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan240, gridBagConstraints);\n\n txtB9AK2_12.setColumns(3);\n txtB9AK2_12.setLength(2);\n txtB9AK2_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan241.add(txtB9AK2_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan241, gridBagConstraints);\n\n panelTransparan242.setAlpha(70);\n panelTransparan242.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan242, gridBagConstraints);\n\n txtB9AK5_12.setColumns(2);\n txtB9AK5_12.setMaxDigit('2');\n txtB9AK5_12.setMinDigit('1');\n txtB9AK5_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12);\n\n txtB9AK5_12Als.setColumns(3);\n txtB9AK5_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan243, gridBagConstraints);\n\n txtB9AK6_12.setColumns(2);\n txtB9AK6_12.setMaxDigit('2');\n txtB9AK6_12.setMinDigit('1');\n txtB9AK6_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan244.add(txtB9AK6_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan244, gridBagConstraints);\n\n txtB9AK7_12.setColumns(2);\n txtB9AK7_12.setMaxDigit('2');\n txtB9AK7_12.setMinDigit('1');\n txtB9AK7_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan245.add(txtB9AK7_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan245, gridBagConstraints);\n\n panelTransparan246.setAlpha(70);\n panelTransparan246.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan246, gridBagConstraints);\n\n txtB9AK8_12.setColumns(2);\n txtB9AK8_12.setMaxDigit('2');\n txtB9AK8_12.setMinDigit('1');\n txtB9AK8_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan247.add(txtB9AK8_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan247, gridBagConstraints);\n\n txtB9AK9_12.setColumns(2);\n txtB9AK9_12.setMaxDigit('2');\n txtB9AK9_12.setMinDigit('1');\n txtB9AK9_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan248.add(txtB9AK9_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan248, gridBagConstraints);\n\n txtB9AK10_12.setColumns(2);\n txtB9AK10_12.setMaxDigit('2');\n txtB9AK10_12.setMinDigit('1');\n txtB9AK10_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan249.add(txtB9AK10_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan249, gridBagConstraints);\n\n txtB9AK11_12.setColumns(2);\n txtB9AK11_12.setMaxDigit('2');\n txtB9AK11_12.setMinDigit('1');\n txtB9AK11_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan250.add(txtB9AK11_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan250, gridBagConstraints);\n\n panelTransparan251.setAlpha(70);\n panelTransparan251.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan251, gridBagConstraints);\n\n txtB9AK13_12.setColumns(2);\n txtB9AK13_12.setMaxDigit('2');\n txtB9AK13_12.setMinDigit('1');\n txtB9AK13_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12);\n\n txtB9AK13_12Als.setColumns(3);\n txtB9AK13_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan252, gridBagConstraints);\n\n panelTransparan253.setLayout(new java.awt.GridBagLayout());\n\n label110.setText(\"13\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan253.add(label110, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan253, gridBagConstraints);\n\n txtB9AK2_13.setColumns(3);\n txtB9AK2_13.setLength(2);\n txtB9AK2_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan254.add(txtB9AK2_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan254, gridBagConstraints);\n\n panelTransparan255.setAlpha(70);\n panelTransparan255.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan255, gridBagConstraints);\n\n txtB9AK5_13.setColumns(2);\n txtB9AK5_13.setMaxDigit('2');\n txtB9AK5_13.setMinDigit('1');\n txtB9AK5_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13);\n\n txtB9AK5_13Als.setColumns(3);\n txtB9AK5_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan256, gridBagConstraints);\n\n txtB9AK6_13.setColumns(2);\n txtB9AK6_13.setMaxDigit('2');\n txtB9AK6_13.setMinDigit('1');\n txtB9AK6_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan257.add(txtB9AK6_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan257, gridBagConstraints);\n\n txtB9AK7_13.setColumns(2);\n txtB9AK7_13.setMaxDigit('2');\n txtB9AK7_13.setMinDigit('1');\n txtB9AK7_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan258.add(txtB9AK7_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan258, gridBagConstraints);\n\n panelTransparan259.setAlpha(70);\n panelTransparan259.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan259, gridBagConstraints);\n\n txtB9AK8_13.setColumns(2);\n txtB9AK8_13.setMaxDigit('2');\n txtB9AK8_13.setMinDigit('1');\n txtB9AK8_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan260.add(txtB9AK8_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan260, gridBagConstraints);\n\n txtB9AK9_13.setColumns(2);\n txtB9AK9_13.setMaxDigit('2');\n txtB9AK9_13.setMinDigit('1');\n txtB9AK9_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan261.add(txtB9AK9_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan261, gridBagConstraints);\n\n txtB9AK10_13.setColumns(2);\n txtB9AK10_13.setMaxDigit('2');\n txtB9AK10_13.setMinDigit('1');\n txtB9AK10_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan262.add(txtB9AK10_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan262, gridBagConstraints);\n\n txtB9AK11_13.setColumns(2);\n txtB9AK11_13.setMaxDigit('2');\n txtB9AK11_13.setMinDigit('1');\n txtB9AK11_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan263.add(txtB9AK11_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan263, gridBagConstraints);\n\n panelTransparan264.setAlpha(70);\n panelTransparan264.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan264, gridBagConstraints);\n\n txtB9AK13_13.setColumns(2);\n txtB9AK13_13.setMaxDigit('2');\n txtB9AK13_13.setMinDigit('1');\n txtB9AK13_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13);\n\n txtB9AK13_13Als.setColumns(3);\n txtB9AK13_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan265, gridBagConstraints);\n\n panelTransparan266.setLayout(new java.awt.GridBagLayout());\n\n label111.setText(\"14\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan266.add(label111, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan266, gridBagConstraints);\n\n txtB9AK2_14.setColumns(3);\n txtB9AK2_14.setLength(2);\n txtB9AK2_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan267.add(txtB9AK2_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan267, gridBagConstraints);\n\n panelTransparan268.setAlpha(70);\n panelTransparan268.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan268, gridBagConstraints);\n\n txtB9AK5_14.setColumns(2);\n txtB9AK5_14.setMaxDigit('2');\n txtB9AK5_14.setMinDigit('1');\n txtB9AK5_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14);\n\n txtB9AK5_14Als.setColumns(3);\n txtB9AK5_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan269, gridBagConstraints);\n\n txtB9AK6_14.setColumns(2);\n txtB9AK6_14.setMaxDigit('2');\n txtB9AK6_14.setMinDigit('1');\n txtB9AK6_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan270.add(txtB9AK6_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan270, gridBagConstraints);\n\n txtB9AK7_14.setColumns(2);\n txtB9AK7_14.setMaxDigit('2');\n txtB9AK7_14.setMinDigit('1');\n txtB9AK7_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan271.add(txtB9AK7_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan271, gridBagConstraints);\n\n panelTransparan272.setAlpha(70);\n panelTransparan272.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan272, gridBagConstraints);\n\n txtB9AK8_14.setColumns(2);\n txtB9AK8_14.setMaxDigit('2');\n txtB9AK8_14.setMinDigit('1');\n txtB9AK8_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan273.add(txtB9AK8_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan273, gridBagConstraints);\n\n txtB9AK9_14.setColumns(2);\n txtB9AK9_14.setMaxDigit('2');\n txtB9AK9_14.setMinDigit('1');\n txtB9AK9_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan274.add(txtB9AK9_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan274, gridBagConstraints);\n\n txtB9AK10_14.setColumns(2);\n txtB9AK10_14.setMaxDigit('2');\n txtB9AK10_14.setMinDigit('1');\n txtB9AK10_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan275.add(txtB9AK10_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan275, gridBagConstraints);\n\n txtB9AK11_14.setColumns(2);\n txtB9AK11_14.setMaxDigit('2');\n txtB9AK11_14.setMinDigit('1');\n txtB9AK11_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan276.add(txtB9AK11_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan276, gridBagConstraints);\n\n panelTransparan277.setAlpha(70);\n panelTransparan277.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan277, gridBagConstraints);\n\n txtB9AK13_14.setColumns(2);\n txtB9AK13_14.setMaxDigit('2');\n txtB9AK13_14.setMinDigit('1');\n txtB9AK13_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14);\n\n txtB9AK13_14Als.setColumns(3);\n txtB9AK13_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan278, gridBagConstraints);\n\n panelTransparan279.setLayout(new java.awt.GridBagLayout());\n\n label112.setText(\"15\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan279.add(label112, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan279, gridBagConstraints);\n\n txtB9AK2_15.setColumns(3);\n txtB9AK2_15.setLength(2);\n txtB9AK2_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan280.add(txtB9AK2_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan280, gridBagConstraints);\n\n panelTransparan281.setAlpha(70);\n panelTransparan281.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan281, gridBagConstraints);\n\n panelTransparan282.setAlpha(70);\n panelTransparan282.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan282, gridBagConstraints);\n\n txtB9AK5_15.setColumns(2);\n txtB9AK5_15.setMaxDigit('2');\n txtB9AK5_15.setMinDigit('1');\n txtB9AK5_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15);\n\n txtB9AK5_15Als.setColumns(3);\n txtB9AK5_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan283, gridBagConstraints);\n\n txtB9AK6_15.setColumns(2);\n txtB9AK6_15.setMaxDigit('2');\n txtB9AK6_15.setMinDigit('1');\n txtB9AK6_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan284.add(txtB9AK6_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan284, gridBagConstraints);\n\n txtB9AK7_15.setColumns(2);\n txtB9AK7_15.setMaxDigit('2');\n txtB9AK7_15.setMinDigit('1');\n txtB9AK7_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan285.add(txtB9AK7_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan285, gridBagConstraints);\n\n txtB9AK8_15.setColumns(2);\n txtB9AK8_15.setMaxDigit('2');\n txtB9AK8_15.setMinDigit('1');\n txtB9AK8_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan286.add(txtB9AK8_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan286, gridBagConstraints);\n\n txtB9AK9_15.setColumns(2);\n txtB9AK9_15.setMaxDigit('2');\n txtB9AK9_15.setMinDigit('1');\n txtB9AK9_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan287.add(txtB9AK9_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan287, gridBagConstraints);\n\n txtB9AK10_15.setColumns(2);\n txtB9AK10_15.setMaxDigit('2');\n txtB9AK10_15.setMinDigit('1');\n txtB9AK10_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan288.add(txtB9AK10_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan288, gridBagConstraints);\n\n txtB9AK11_15.setColumns(2);\n txtB9AK11_15.setMaxDigit('2');\n txtB9AK11_15.setMinDigit('1');\n txtB9AK11_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan289.add(txtB9AK11_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan289, gridBagConstraints);\n\n panelTransparan290.setAlpha(70);\n panelTransparan290.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan290, gridBagConstraints);\n\n txtB9AK13_15.setColumns(2);\n txtB9AK13_15.setMaxDigit('2');\n txtB9AK13_15.setMinDigit('1');\n txtB9AK13_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15);\n\n txtB9AK13_15Als.setColumns(3);\n txtB9AK13_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan291, gridBagConstraints);\n\n panelTransparan292.setLayout(new java.awt.GridBagLayout());\n\n label113.setText(\"16\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan292.add(label113, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan292, gridBagConstraints);\n\n txtB9AK2_16.setColumns(3);\n txtB9AK2_16.setLength(2);\n txtB9AK2_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan293.add(txtB9AK2_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan293, gridBagConstraints);\n\n panelTransparan294.setAlpha(70);\n panelTransparan294.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan294, gridBagConstraints);\n\n panelTransparan295.setAlpha(70);\n panelTransparan295.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan295, gridBagConstraints);\n\n txtB9AK5_16.setColumns(2);\n txtB9AK5_16.setMaxDigit('2');\n txtB9AK5_16.setMinDigit('1');\n txtB9AK5_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16);\n\n txtB9AK5_16Als.setColumns(3);\n txtB9AK5_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan296, gridBagConstraints);\n\n txtB9AK6_16.setColumns(2);\n txtB9AK6_16.setMaxDigit('2');\n txtB9AK6_16.setMinDigit('1');\n txtB9AK6_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan297.add(txtB9AK6_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan297, gridBagConstraints);\n\n txtB9AK7_16.setColumns(2);\n txtB9AK7_16.setMaxDigit('2');\n txtB9AK7_16.setMinDigit('1');\n txtB9AK7_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan298.add(txtB9AK7_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan298, gridBagConstraints);\n\n txtB9AK8_16.setColumns(2);\n txtB9AK8_16.setMaxDigit('2');\n txtB9AK8_16.setMinDigit('1');\n txtB9AK8_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan299.add(txtB9AK8_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan299, gridBagConstraints);\n\n txtB9AK9_16.setColumns(2);\n txtB9AK9_16.setMaxDigit('2');\n txtB9AK9_16.setMinDigit('1');\n txtB9AK9_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan300.add(txtB9AK9_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan300, gridBagConstraints);\n\n txtB9AK10_16.setColumns(2);\n txtB9AK10_16.setMaxDigit('2');\n txtB9AK10_16.setMinDigit('1');\n txtB9AK10_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan301.add(txtB9AK10_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan301, gridBagConstraints);\n\n txtB9AK11_16.setColumns(2);\n txtB9AK11_16.setMaxDigit('2');\n txtB9AK11_16.setMinDigit('1');\n txtB9AK11_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan302.add(txtB9AK11_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan302, gridBagConstraints);\n\n panelTransparan303.setAlpha(70);\n panelTransparan303.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan303, gridBagConstraints);\n\n txtB9AK13_16.setColumns(2);\n txtB9AK13_16.setMaxDigit('2');\n txtB9AK13_16.setMinDigit('1');\n txtB9AK13_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16);\n\n txtB9AK13_16Als.setColumns(3);\n txtB9AK13_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan304, gridBagConstraints);\n\n panelTransparan305.setLayout(new java.awt.GridBagLayout());\n\n label114.setText(\"17\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan305.add(label114, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan305, gridBagConstraints);\n\n txtB9AK2_17.setColumns(3);\n txtB9AK2_17.setLength(2);\n txtB9AK2_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan306.add(txtB9AK2_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan306, gridBagConstraints);\n\n panelTransparan307.setAlpha(70);\n panelTransparan307.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan307, gridBagConstraints);\n\n panelTransparan308.setAlpha(70);\n panelTransparan308.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan308, gridBagConstraints);\n\n txtB9AK5_17.setColumns(2);\n txtB9AK5_17.setMaxDigit('2');\n txtB9AK5_17.setMinDigit('1');\n txtB9AK5_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17);\n\n txtB9AK5_17Als.setColumns(3);\n txtB9AK5_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan309, gridBagConstraints);\n\n txtB9AK6_17.setColumns(2);\n txtB9AK6_17.setMaxDigit('2');\n txtB9AK6_17.setMinDigit('1');\n txtB9AK6_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan310.add(txtB9AK6_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan310, gridBagConstraints);\n\n txtB9AK7_17.setColumns(2);\n txtB9AK7_17.setMaxDigit('2');\n txtB9AK7_17.setMinDigit('1');\n txtB9AK7_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan311.add(txtB9AK7_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan311, gridBagConstraints);\n\n txtB9AK8_17.setColumns(2);\n txtB9AK8_17.setMaxDigit('2');\n txtB9AK8_17.setMinDigit('1');\n txtB9AK8_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan312.add(txtB9AK8_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan312, gridBagConstraints);\n\n txtB9AK9_17.setColumns(2);\n txtB9AK9_17.setMaxDigit('2');\n txtB9AK9_17.setMinDigit('1');\n txtB9AK9_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan313.add(txtB9AK9_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan313, gridBagConstraints);\n\n txtB9AK10_17.setColumns(2);\n txtB9AK10_17.setMaxDigit('2');\n txtB9AK10_17.setMinDigit('1');\n txtB9AK10_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan314.add(txtB9AK10_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan314, gridBagConstraints);\n\n txtB9AK11_17.setColumns(2);\n txtB9AK11_17.setMaxDigit('2');\n txtB9AK11_17.setMinDigit('1');\n txtB9AK11_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan315.add(txtB9AK11_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan315, gridBagConstraints);\n\n panelTransparan316.setAlpha(70);\n panelTransparan316.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan316, gridBagConstraints);\n\n txtB9AK13_17.setColumns(2);\n txtB9AK13_17.setMaxDigit('2');\n txtB9AK13_17.setMinDigit('1');\n txtB9AK13_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17);\n\n txtB9AK13_17Als.setColumns(3);\n txtB9AK13_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan317, gridBagConstraints);\n\n panelTransparan318.setLayout(new java.awt.GridBagLayout());\n\n label115.setText(\"18\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan318.add(label115, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan318, gridBagConstraints);\n\n txtB9AK2_18.setColumns(3);\n txtB9AK2_18.setLength(2);\n txtB9AK2_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan319.add(txtB9AK2_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan319, gridBagConstraints);\n\n panelTransparan320.setAlpha(70);\n panelTransparan320.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan320, gridBagConstraints);\n\n panelTransparan321.setAlpha(70);\n panelTransparan321.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan321, gridBagConstraints);\n\n txtB9AK5_18.setColumns(2);\n txtB9AK5_18.setMaxDigit('2');\n txtB9AK5_18.setMinDigit('1');\n txtB9AK5_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18);\n\n txtB9AK5_18Als.setColumns(3);\n txtB9AK5_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan322, gridBagConstraints);\n\n txtB9AK6_18.setColumns(2);\n txtB9AK6_18.setMaxDigit('2');\n txtB9AK6_18.setMinDigit('1');\n txtB9AK6_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan323.add(txtB9AK6_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan323, gridBagConstraints);\n\n txtB9AK7_18.setColumns(2);\n txtB9AK7_18.setMaxDigit('2');\n txtB9AK7_18.setMinDigit('1');\n txtB9AK7_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan324.add(txtB9AK7_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan324, gridBagConstraints);\n\n txtB9AK8_18.setColumns(2);\n txtB9AK8_18.setMaxDigit('2');\n txtB9AK8_18.setMinDigit('1');\n txtB9AK8_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan325.add(txtB9AK8_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan325, gridBagConstraints);\n\n txtB9AK9_18.setColumns(2);\n txtB9AK9_18.setMaxDigit('2');\n txtB9AK9_18.setMinDigit('1');\n txtB9AK9_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan326.add(txtB9AK9_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan326, gridBagConstraints);\n\n txtB9AK10_18.setColumns(2);\n txtB9AK10_18.setMaxDigit('2');\n txtB9AK10_18.setMinDigit('1');\n txtB9AK10_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan327.add(txtB9AK10_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan327, gridBagConstraints);\n\n txtB9AK11_18.setColumns(2);\n txtB9AK11_18.setMaxDigit('2');\n txtB9AK11_18.setMinDigit('1');\n txtB9AK11_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan328.add(txtB9AK11_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan328, gridBagConstraints);\n\n panelTransparan329.setAlpha(70);\n panelTransparan329.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan329, gridBagConstraints);\n\n txtB9AK13_18.setColumns(2);\n txtB9AK13_18.setMaxDigit('2');\n txtB9AK13_18.setMinDigit('1');\n txtB9AK13_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18);\n\n txtB9AK13_18Als.setColumns(3);\n txtB9AK13_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan330, gridBagConstraints);\n\n panelTransparan331.setLayout(new java.awt.GridBagLayout());\n\n label116.setText(\"19\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan331.add(label116, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan331, gridBagConstraints);\n\n txtB9AK2_19.setColumns(3);\n txtB9AK2_19.setLength(2);\n txtB9AK2_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan332.add(txtB9AK2_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan332, gridBagConstraints);\n\n panelTransparan333.setAlpha(70);\n panelTransparan333.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan333, gridBagConstraints);\n\n panelTransparan334.setAlpha(70);\n panelTransparan334.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan334, gridBagConstraints);\n\n txtB9AK5_19.setColumns(2);\n txtB9AK5_19.setMaxDigit('2');\n txtB9AK5_19.setMinDigit('1');\n txtB9AK5_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19);\n\n txtB9AK5_19Als.setColumns(3);\n txtB9AK5_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan335, gridBagConstraints);\n\n txtB9AK6_19.setColumns(2);\n txtB9AK6_19.setMaxDigit('2');\n txtB9AK6_19.setMinDigit('1');\n txtB9AK6_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan336.add(txtB9AK6_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan336, gridBagConstraints);\n\n txtB9AK7_19.setColumns(2);\n txtB9AK7_19.setMaxDigit('2');\n txtB9AK7_19.setMinDigit('1');\n txtB9AK7_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan337.add(txtB9AK7_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan337, gridBagConstraints);\n\n txtB9AK8_19.setColumns(2);\n txtB9AK8_19.setMaxDigit('2');\n txtB9AK8_19.setMinDigit('1');\n txtB9AK8_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan338.add(txtB9AK8_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan338, gridBagConstraints);\n\n txtB9AK9_19.setColumns(2);\n txtB9AK9_19.setMaxDigit('2');\n txtB9AK9_19.setMinDigit('1');\n txtB9AK9_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan339.add(txtB9AK9_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan339, gridBagConstraints);\n\n txtB9AK10_19.setColumns(2);\n txtB9AK10_19.setMaxDigit('2');\n txtB9AK10_19.setMinDigit('1');\n txtB9AK10_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan340.add(txtB9AK10_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan340, gridBagConstraints);\n\n txtB9AK11_19.setColumns(2);\n txtB9AK11_19.setMaxDigit('2');\n txtB9AK11_19.setMinDigit('1');\n txtB9AK11_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan341.add(txtB9AK11_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan341, gridBagConstraints);\n\n panelTransparan342.setAlpha(70);\n panelTransparan342.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan342, gridBagConstraints);\n\n txtB9AK13_19.setColumns(2);\n txtB9AK13_19.setMaxDigit('2');\n txtB9AK13_19.setMinDigit('1');\n txtB9AK13_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19);\n\n txtB9AK13_19Als.setColumns(3);\n txtB9AK13_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan343, gridBagConstraints);\n\n panelTransparan344.setLayout(new java.awt.GridBagLayout());\n\n label117.setText(\"20\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan344.add(label117, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan344, gridBagConstraints);\n\n txtB9AK2_20.setColumns(3);\n txtB9AK2_20.setLength(2);\n txtB9AK2_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan345.add(txtB9AK2_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan345, gridBagConstraints);\n\n panelTransparan346.setAlpha(70);\n panelTransparan346.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan346, gridBagConstraints);\n\n panelTransparan347.setAlpha(70);\n panelTransparan347.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan347, gridBagConstraints);\n\n txtB9AK5_20.setColumns(2);\n txtB9AK5_20.setMaxDigit('2');\n txtB9AK5_20.setMinDigit('1');\n txtB9AK5_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20);\n\n txtB9AK5_20Als.setColumns(3);\n txtB9AK5_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan348, gridBagConstraints);\n\n txtB9AK6_20.setColumns(2);\n txtB9AK6_20.setMaxDigit('2');\n txtB9AK6_20.setMinDigit('1');\n txtB9AK6_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan349.add(txtB9AK6_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan349, gridBagConstraints);\n\n txtB9AK7_20.setColumns(2);\n txtB9AK7_20.setMaxDigit('2');\n txtB9AK7_20.setMinDigit('1');\n txtB9AK7_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan350.add(txtB9AK7_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan350, gridBagConstraints);\n\n txtB9AK8_20.setColumns(2);\n txtB9AK8_20.setMaxDigit('2');\n txtB9AK8_20.setMinDigit('1');\n txtB9AK8_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan351.add(txtB9AK8_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan351, gridBagConstraints);\n\n txtB9AK9_20.setColumns(2);\n txtB9AK9_20.setMaxDigit('2');\n txtB9AK9_20.setMinDigit('1');\n txtB9AK9_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan352.add(txtB9AK9_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan352, gridBagConstraints);\n\n txtB9AK10_20.setColumns(2);\n txtB9AK10_20.setMaxDigit('2');\n txtB9AK10_20.setMinDigit('1');\n txtB9AK10_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan353.add(txtB9AK10_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan353, gridBagConstraints);\n\n txtB9AK11_20.setColumns(2);\n txtB9AK11_20.setMaxDigit('2');\n txtB9AK11_20.setMinDigit('1');\n txtB9AK11_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan354.add(txtB9AK11_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan354, gridBagConstraints);\n\n panelTransparan355.setAlpha(70);\n panelTransparan355.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan355, gridBagConstraints);\n\n txtB9AK13_20.setColumns(2);\n txtB9AK13_20.setMaxDigit('2');\n txtB9AK13_20.setMinDigit('1');\n txtB9AK13_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20);\n\n txtB9AK13_20Als.setColumns(3);\n txtB9AK13_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan356, gridBagConstraints);\n\n panelTransparan357.setLayout(new java.awt.GridBagLayout());\n\n label118.setText(\"21\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan357.add(label118, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan357, gridBagConstraints);\n\n txtB9AK2_21.setColumns(3);\n txtB9AK2_21.setLength(2);\n txtB9AK2_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan358.add(txtB9AK2_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan358, gridBagConstraints);\n\n panelTransparan359.setAlpha(70);\n panelTransparan359.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan359, gridBagConstraints);\n\n panelTransparan360.setAlpha(70);\n panelTransparan360.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan360, gridBagConstraints);\n\n txtB9AK5_21.setColumns(2);\n txtB9AK5_21.setMaxDigit('2');\n txtB9AK5_21.setMinDigit('1');\n txtB9AK5_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21);\n\n txtB9AK5_21Als.setColumns(3);\n txtB9AK5_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan361, gridBagConstraints);\n\n txtB9AK6_21.setColumns(2);\n txtB9AK6_21.setMaxDigit('2');\n txtB9AK6_21.setMinDigit('1');\n txtB9AK6_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan362.add(txtB9AK6_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan362, gridBagConstraints);\n\n txtB9AK7_21.setColumns(2);\n txtB9AK7_21.setMaxDigit('2');\n txtB9AK7_21.setMinDigit('1');\n txtB9AK7_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan363.add(txtB9AK7_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan363, gridBagConstraints);\n\n txtB9AK8_21.setColumns(2);\n txtB9AK8_21.setMaxDigit('2');\n txtB9AK8_21.setMinDigit('1');\n txtB9AK8_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan364.add(txtB9AK8_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan364, gridBagConstraints);\n\n txtB9AK9_21.setColumns(2);\n txtB9AK9_21.setMaxDigit('2');\n txtB9AK9_21.setMinDigit('1');\n txtB9AK9_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan365.add(txtB9AK9_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan365, gridBagConstraints);\n\n txtB9AK10_21.setColumns(2);\n txtB9AK10_21.setMaxDigit('2');\n txtB9AK10_21.setMinDigit('1');\n txtB9AK10_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan366.add(txtB9AK10_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan366, gridBagConstraints);\n\n txtB9AK11_21.setColumns(2);\n txtB9AK11_21.setMaxDigit('2');\n txtB9AK11_21.setMinDigit('1');\n txtB9AK11_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan367.add(txtB9AK11_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan367, gridBagConstraints);\n\n panelTransparan368.setAlpha(70);\n panelTransparan368.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan368, gridBagConstraints);\n\n txtB9AK13_21.setColumns(2);\n txtB9AK13_21.setMaxDigit('2');\n txtB9AK13_21.setMinDigit('1');\n txtB9AK13_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21);\n\n txtB9AK13_21Als.setColumns(3);\n txtB9AK13_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan369, gridBagConstraints);\n\n panelTransparan370.setLayout(new java.awt.GridBagLayout());\n\n label119.setText(\"22\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan370.add(label119, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan370, gridBagConstraints);\n\n txtB9AK2_22.setColumns(3);\n txtB9AK2_22.setLength(2);\n txtB9AK2_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan371.add(txtB9AK2_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan371, gridBagConstraints);\n\n panelTransparan372.setAlpha(70);\n panelTransparan372.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan372, gridBagConstraints);\n\n panelTransparan373.setAlpha(70);\n panelTransparan373.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan373, gridBagConstraints);\n\n txtB9AK5_22.setColumns(2);\n txtB9AK5_22.setMaxDigit('2');\n txtB9AK5_22.setMinDigit('1');\n txtB9AK5_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22);\n\n txtB9AK5_22Als.setColumns(3);\n txtB9AK5_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan374, gridBagConstraints);\n\n txtB9AK6_22.setColumns(2);\n txtB9AK6_22.setMaxDigit('2');\n txtB9AK6_22.setMinDigit('1');\n txtB9AK6_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan375.add(txtB9AK6_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan375, gridBagConstraints);\n\n txtB9AK7_22.setColumns(2);\n txtB9AK7_22.setMaxDigit('2');\n txtB9AK7_22.setMinDigit('1');\n txtB9AK7_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan376.add(txtB9AK7_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan376, gridBagConstraints);\n\n txtB9AK8_22.setColumns(2);\n txtB9AK8_22.setMaxDigit('2');\n txtB9AK8_22.setMinDigit('1');\n txtB9AK8_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan377.add(txtB9AK8_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan377, gridBagConstraints);\n\n txtB9AK9_22.setColumns(2);\n txtB9AK9_22.setMaxDigit('2');\n txtB9AK9_22.setMinDigit('1');\n txtB9AK9_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan378.add(txtB9AK9_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan378, gridBagConstraints);\n\n txtB9AK10_22.setColumns(2);\n txtB9AK10_22.setMaxDigit('2');\n txtB9AK10_22.setMinDigit('1');\n txtB9AK10_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan379.add(txtB9AK10_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan379, gridBagConstraints);\n\n txtB9AK11_22.setColumns(2);\n txtB9AK11_22.setMaxDigit('2');\n txtB9AK11_22.setMinDigit('1');\n txtB9AK11_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan380.add(txtB9AK11_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan380, gridBagConstraints);\n\n panelTransparan381.setAlpha(70);\n panelTransparan381.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan381, gridBagConstraints);\n\n txtB9AK13_22.setColumns(2);\n txtB9AK13_22.setMaxDigit('2');\n txtB9AK13_22.setMinDigit('1');\n txtB9AK13_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22);\n\n txtB9AK13_22Als.setColumns(3);\n txtB9AK13_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan382, gridBagConstraints);\n\n panelTransparan383.setLayout(new java.awt.GridBagLayout());\n\n label120.setText(\"23\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan383.add(label120, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan383, gridBagConstraints);\n\n txtB9AK2_23.setColumns(3);\n txtB9AK2_23.setLength(2);\n txtB9AK2_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan384.add(txtB9AK2_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan384, gridBagConstraints);\n\n panelTransparan385.setAlpha(70);\n panelTransparan385.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan385, gridBagConstraints);\n\n panelTransparan386.setAlpha(70);\n panelTransparan386.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan386, gridBagConstraints);\n\n txtB9AK5_23.setColumns(2);\n txtB9AK5_23.setMaxDigit('2');\n txtB9AK5_23.setMinDigit('1');\n txtB9AK5_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23);\n\n txtB9AK5_23Als.setColumns(3);\n txtB9AK5_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan387, gridBagConstraints);\n\n txtB9AK6_23.setColumns(2);\n txtB9AK6_23.setMaxDigit('2');\n txtB9AK6_23.setMinDigit('1');\n txtB9AK6_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan388.add(txtB9AK6_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan388, gridBagConstraints);\n\n txtB9AK7_23.setColumns(2);\n txtB9AK7_23.setMaxDigit('2');\n txtB9AK7_23.setMinDigit('1');\n txtB9AK7_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan389.add(txtB9AK7_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan389, gridBagConstraints);\n\n txtB9AK8_23.setColumns(2);\n txtB9AK8_23.setMaxDigit('2');\n txtB9AK8_23.setMinDigit('1');\n txtB9AK8_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan390.add(txtB9AK8_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan390, gridBagConstraints);\n\n txtB9AK9_23.setColumns(2);\n txtB9AK9_23.setMaxDigit('2');\n txtB9AK9_23.setMinDigit('1');\n txtB9AK9_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan391.add(txtB9AK9_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan391, gridBagConstraints);\n\n txtB9AK10_23.setColumns(2);\n txtB9AK10_23.setMaxDigit('2');\n txtB9AK10_23.setMinDigit('1');\n txtB9AK10_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan392.add(txtB9AK10_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan392, gridBagConstraints);\n\n txtB9AK11_23.setColumns(2);\n txtB9AK11_23.setMaxDigit('2');\n txtB9AK11_23.setMinDigit('1');\n txtB9AK11_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan393.add(txtB9AK11_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan393, gridBagConstraints);\n\n panelTransparan394.setAlpha(70);\n panelTransparan394.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan394, gridBagConstraints);\n\n txtB9AK13_23.setColumns(2);\n txtB9AK13_23.setMaxDigit('2');\n txtB9AK13_23.setMinDigit('1');\n txtB9AK13_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23);\n\n txtB9AK13_23Als.setColumns(3);\n txtB9AK13_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan395, gridBagConstraints);\n\n panelTransparan396.setLayout(new java.awt.GridBagLayout());\n\n label121.setText(\"24\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan396.add(label121, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan396, gridBagConstraints);\n\n txtB9AK2_24.setColumns(3);\n txtB9AK2_24.setLength(2);\n txtB9AK2_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan397.add(txtB9AK2_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan397, gridBagConstraints);\n\n panelTransparan398.setAlpha(70);\n panelTransparan398.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan398, gridBagConstraints);\n\n panelTransparan399.setAlpha(70);\n panelTransparan399.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan399, gridBagConstraints);\n\n txtB9AK5_24.setColumns(2);\n txtB9AK5_24.setMaxDigit('2');\n txtB9AK5_24.setMinDigit('1');\n txtB9AK5_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24);\n\n txtB9AK5_24Als.setColumns(3);\n txtB9AK5_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan400, gridBagConstraints);\n\n txtB9AK6_24.setColumns(2);\n txtB9AK6_24.setMaxDigit('2');\n txtB9AK6_24.setMinDigit('1');\n txtB9AK6_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan401.add(txtB9AK6_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan401, gridBagConstraints);\n\n txtB9AK7_24.setColumns(2);\n txtB9AK7_24.setMaxDigit('2');\n txtB9AK7_24.setMinDigit('1');\n txtB9AK7_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan402.add(txtB9AK7_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan402, gridBagConstraints);\n\n txtB9AK8_24.setColumns(2);\n txtB9AK8_24.setMaxDigit('2');\n txtB9AK8_24.setMinDigit('1');\n txtB9AK8_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan403.add(txtB9AK8_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan403, gridBagConstraints);\n\n txtB9AK9_24.setColumns(2);\n txtB9AK9_24.setMaxDigit('2');\n txtB9AK9_24.setMinDigit('1');\n txtB9AK9_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan404.add(txtB9AK9_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan404, gridBagConstraints);\n\n txtB9AK10_24.setColumns(2);\n txtB9AK10_24.setMaxDigit('2');\n txtB9AK10_24.setMinDigit('1');\n txtB9AK10_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan405.add(txtB9AK10_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan405, gridBagConstraints);\n\n txtB9AK11_24.setColumns(2);\n txtB9AK11_24.setMaxDigit('2');\n txtB9AK11_24.setMinDigit('1');\n txtB9AK11_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan406.add(txtB9AK11_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan406, gridBagConstraints);\n\n panelTransparan407.setAlpha(70);\n panelTransparan407.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan407, gridBagConstraints);\n\n txtB9AK13_24.setColumns(2);\n txtB9AK13_24.setMaxDigit('2');\n txtB9AK13_24.setMinDigit('1');\n txtB9AK13_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24);\n\n txtB9AK13_24Als.setColumns(3);\n txtB9AK13_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan408, gridBagConstraints);\n\n panelTransparan409.setLayout(new java.awt.GridBagLayout());\n\n label122.setText(\"25\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan409.add(label122, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan409, gridBagConstraints);\n\n txtB9AK2_25.setColumns(3);\n txtB9AK2_25.setLength(2);\n txtB9AK2_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan410.add(txtB9AK2_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan410, gridBagConstraints);\n\n panelTransparan411.setAlpha(70);\n panelTransparan411.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan411, gridBagConstraints);\n\n panelTransparan412.setAlpha(70);\n panelTransparan412.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan412, gridBagConstraints);\n\n txtB9AK5_25.setColumns(2);\n txtB9AK5_25.setMaxDigit('2');\n txtB9AK5_25.setMinDigit('1');\n txtB9AK5_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25);\n\n txtB9AK5_25Als.setColumns(3);\n txtB9AK5_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan413, gridBagConstraints);\n\n txtB9AK6_25.setColumns(2);\n txtB9AK6_25.setMaxDigit('2');\n txtB9AK6_25.setMinDigit('1');\n txtB9AK6_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan414.add(txtB9AK6_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan414, gridBagConstraints);\n\n txtB9AK7_25.setColumns(2);\n txtB9AK7_25.setMaxDigit('2');\n txtB9AK7_25.setMinDigit('1');\n txtB9AK7_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan415.add(txtB9AK7_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan415, gridBagConstraints);\n\n txtB9AK8_25.setColumns(2);\n txtB9AK8_25.setMaxDigit('2');\n txtB9AK8_25.setMinDigit('1');\n txtB9AK8_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan416.add(txtB9AK8_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan416, gridBagConstraints);\n\n txtB9AK9_25.setColumns(2);\n txtB9AK9_25.setMaxDigit('2');\n txtB9AK9_25.setMinDigit('1');\n txtB9AK9_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan417.add(txtB9AK9_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan417, gridBagConstraints);\n\n txtB9AK10_25.setColumns(2);\n txtB9AK10_25.setMaxDigit('2');\n txtB9AK10_25.setMinDigit('1');\n txtB9AK10_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan418.add(txtB9AK10_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan418, gridBagConstraints);\n\n txtB9AK11_25.setColumns(2);\n txtB9AK11_25.setMaxDigit('2');\n txtB9AK11_25.setMinDigit('1');\n txtB9AK11_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan419.add(txtB9AK11_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan419, gridBagConstraints);\n\n panelTransparan420.setAlpha(70);\n panelTransparan420.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan420, gridBagConstraints);\n\n txtB9AK13_25.setColumns(2);\n txtB9AK13_25.setMaxDigit('2');\n txtB9AK13_25.setMinDigit('1');\n txtB9AK13_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25);\n\n txtB9AK13_25Als.setColumns(3);\n txtB9AK13_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan421, gridBagConstraints);\n\n panelTransparan422.setAlpha(70);\n panelTransparan422.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan422, gridBagConstraints);\n\n panelTransparan423.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan423, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan424, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan425, gridBagConstraints);\n\n panelTransparan426.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan426, gridBagConstraints);\n\n panelTransparan427.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan427, gridBagConstraints);\n\n panelTransparan428.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan428, gridBagConstraints);\n\n panelTransparan429.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan429, gridBagConstraints);\n\n panelTransparan430.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan430, gridBagConstraints);\n\n panelTransparan431.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan431, gridBagConstraints);\n\n panelTransparan432.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan432, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan433, gridBagConstraints);\n\n panelTransparan434.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan434, gridBagConstraints);\n\n javax.swing.GroupLayout panelScrollLayout = new javax.swing.GroupLayout(panelScroll);\n panelScroll.setLayout(panelScrollLayout);\n panelScrollLayout.setHorizontalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(275, Short.MAX_VALUE))\n );\n panelScrollLayout.setVerticalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(31, Short.MAX_VALUE))\n );\n\n scroolPane1.setViewportView(panelScroll);\n\n add(scroolPane1, java.awt.BorderLayout.CENTER);\n }", "void loadNewAnimatorPanel(ReadOnlyModel m, int width, int height);", "public BubbleSort(){\r\n super();\r\n }", "public void updatePanelWithAnimation() {\n AnimatorSet buildAnimatorSet = buildAnimatorSet(this.mLayoutView, 0.0f, (float) this.mLayoutView.findViewById(C0010R$id.panel_container).getHeight(), 1.0f, 0.0f, 200);\n ValueAnimator valueAnimator = new ValueAnimator();\n valueAnimator.setFloatValues(0.0f, 1.0f);\n buildAnimatorSet.play(valueAnimator);\n buildAnimatorSet.addListener(new AnimatorListenerAdapter() {\n /* class com.android.settings.panel.PanelFragment.AnonymousClass3 */\n\n public void onAnimationEnd(Animator animator) {\n PanelFragment.this.createPanelContent();\n }\n });\n buildAnimatorSet.start();\n }", "public PreviewPanel() {\n initComponents();\n\n }", "public SlideshowEditor()\n {\n // INITIALIZING THE WINDOW\n \t\n try { //set theme for SlideshowEditors\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n setTitle(\"Slideshow Editor\");\n setLayout(new BorderLayout());\n\n // CREATING THE TIMELINE\n\n timeline = Timeline.getInstance();\n add(timeline, BorderLayout.EAST);\n\n // CREATING THE MEDIA LIBRARIES\n\n libraries = new JTabbedPane();\n\n m_ImageLibrary = ImageLibrary.getInstance(timeline, null); //initialize libraries with null since user has not selected a directory\n JScrollPane spImages = new JScrollPane(m_ImageLibrary);\n spImages.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n spImages.getVerticalScrollBar().setUnitIncrement(20);\n libraries.add(\"Images\", spImages);\n\n m_AudioLibrary = AudioLibrary.getInstance(timeline, null);\n JScrollPane spAudio = new JScrollPane(m_AudioLibrary);\n spAudio.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n spAudio.getVerticalScrollBar().setUnitIncrement(20);\n libraries.add(\"Audio\", spAudio);\n\n libraries.setPreferredSize(new Dimension(1000,750));\n add(libraries, BorderLayout.WEST);\n\n libraries.setBorder(BorderFactory.createTitledBorder(\"Media\"));\n\n libraries.addChangeListener(new ChangeListener() {\n public void stateChanged(ChangeEvent e) {\n timeline.setActivePane(libraries.getSelectedIndex()); //makes sure Timeline tab matches selected library\n }\n });\n\n timeline.enablePaneMatch(libraries);\n\n // CONFIGURING THE WINDOW\n\n JMenuBar topMenu = new JMenuBar(); //create a menu bar for the window\n setJMenuBar(topMenu);\n\n JMenu fileMenu = new JMenu(\"File\");\n topMenu.add(fileMenu);\n\n JMenuItem newDirectory = new JMenuItem(\"Set Directory\"); //allow user to set directory for Slideshow creation\n newDirectory.addActionListener(event -> changeDirectory());\n newDirectory.setAccelerator(\n KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + O\n fileMenu.add(newDirectory);\n\n JMenuItem exportSlideshow = new JMenuItem(\"Export Slideshow\");\n exportSlideshow.addActionListener(event -> timeline.exportSlideshow(automated));\n exportSlideshow.setAccelerator(\n KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + S\n fileMenu.add(exportSlideshow);\n\n JMenuItem closeProgram = new JMenuItem(\"Exit\"); //add Exit Program button to File menu\n closeProgram.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n });\n fileMenu.add(closeProgram);\n\n JMenu settingsMenu = new JMenu(\"Settings\");\n topMenu.add(settingsMenu);\n\n JMenuItem changeSettings = new JMenuItem(\"Change Playback Settings\");\n changeSettings.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (!settingsPresent)\n {\n settingsPresent = true;\n settingsPopup();\n }\n else\n settingsFrame.toFront();\n }\n });\n\n settingsMenu.add(changeSettings);\n\n JMenu helpMenu = new JMenu(\"Help\");\n topMenu.add(helpMenu);\n\n JMenuItem tutorial = new JMenuItem(\"Tutorial\");\n String tutorialMsg = \"<html>Creating a slideshow is easy!<br><ol><li>Open the folder containing the image and audio files you'd like to use. (File -> Set Directory)</li>\" +\n \"<li>To add image and audio files to your slideshow, just click \\\"Add\\\" under the given image/audio file.</li>\" +\n \"<li>To set your slideshow to play back automatically, open the settings window (Settings -> Change Playback Settings) and click the \\\"Automatic Slideshow\\\" checkbox. <br>From there, click the \\\"Submit Changes\\\" button to save your settings. (To set it back to manual, just do the reverse!)</li>\" +\n \"<li>To change the default slide duration of an automatic slideshow, open the settings window and change the value in the \\\"Default Slide Duration\\\" textbox. <br>From there, click the \\\"Submit Changes\\\" button to save your settings.</li>\" +\n \"<li>To change the duration of an individual slide in an automatic slideshow, uncheck the \\\"Use Default Slide Duration\\\" at the bottom of the slide item in the Timeline.<br>From there, click the \\\"Change Duration\\\" button to the right of the slide duration value and enter a new value.<br>(To set it back to the default slide duration, just recheck the \\\"Use Default Slide Duration\\\" checkbox!)</li>\" +\n \"<li>To set a transition to play at the beginning of a slide, select a transition type from the \\\"Transition Type\\\" dropdown at the top of a slide item.</li>\" +\n \"<li>To change the duration of a slide's transition, select a transition duration from the \\\"Transition Duration\\\" dropdown at the top of a slide item.<br>(This dropdown will only be enabled if a transition has been set.)</li>\" +\n \"<li>To move a slide up/down the timeline, click the \\\"Move Up/Down\\\" button at the bottom of a slide item.</li>\" +\n \"<li>To remove a slide from your slideshow, click the \\\"Remove\\\" button at the bottom on a slide item.</li>\" +\n \"<li>Audio items in the Timeline work the same as slide items, except they can't use transitions.</li>\" +\n \"<li>To export your slideshow, navigate to File -> Export Slideshow. From there, give your slideshow a name and click save!<br>Your slideshow is now stored in the same folder as your image and audio files.</li></ol>\" +\n \"NOTE: The left column of blocks in the \\\"Timing\\\" area of the screen, present when creating an automatic slideshow, represents slides. The right column represents audio clips.<br></html>\";\n tutorial.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(null, tutorialMsg, \"Tutorial\", JOptionPane.INFORMATION_MESSAGE);\n }\n });\n\n helpMenu.add(tutorial);\n\n ImageIcon windowIcon = new ImageIcon(\"images\\\\SlideshowIcon.png\");\n // TODO: Uncomment below for JAR\n //ImageIcon windowIcon = new ImageIcon(getClass().getClassLoader().getResource(\"SlideshowIcon.png\"));\n Image icon = windowIcon.getImage();\n setIconImage(icon);\n setSize(new Dimension(1500, 750));\n setResizable(false);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n pack();\n setLocationRelativeTo(null);\n setVisible(true);\n\n\n String welcomeMsg = \"<html><div style='text-align: center;'>Welcome to the greatest slideshow creator ever made.<br>To start creating a slideshow, \" +\n \"use the \\\"File\\\" menu in the top left corner<br>and select \\\"Set Directory\\\" and find the directory containing the images and audio you'd like to work with.<br>\" +\n \"This will also be the directory you'll save your slideshow into.<br>Go ahead. Select one. (You know you want to.)</div></html>\";\n JOptionPane.showMessageDialog(null, welcomeMsg, \"Welcome to Slideshow Editor!\", JOptionPane.INFORMATION_MESSAGE);\n }", "public MazePanel(int width, int height) {\r\n\r\n\t\t\tsetLayout(null);\r\n\r\n\t\t\tMouseHandler listener = new MouseHandler();\r\n\t\t\taddMouseListener(listener);\r\n\t\t\taddMouseMotionListener(listener);\r\n\r\n\t\t\tsetBorder(BorderFactory.createMatteBorder(2, 2, 2, 2, Color.blue));\r\n\r\n\t\t\tsetPreferredSize(new Dimension(width, height));\r\n\r\n\t\t\tgrid = new int[rows][columns];\r\n\r\n\t\t\t// Criando o conteudo do panel\r\n\r\n\t\t\tmessage = new JLabel(msgDrawAndSelect, JLabel.CENTER);\r\n\t\t\tmessage.setForeground(Color.blue);\r\n\t\t\tmessage.setFont(new Font(\"Helvetica\", Font.PLAIN, 16));\r\n\r\n\t\t\tJLabel rowsLbl = new JLabel(\"Nº Linhas (5-50):\", JLabel.RIGHT);\r\n\t\t\trowsLbl.setFont(new Font(\"Helvetica\", Font.PLAIN, 13));\r\n\r\n\t\t\trowsField = new JTextField();\r\n\t\t\trowsField.setText(Integer.toString(rows));\r\n\r\n\t\t\tJLabel columnsLbl = new JLabel(\"Nº Colunas (5-50):\", JLabel.RIGHT);\r\n\t\t\tcolumnsLbl.setFont(new Font(\"Helvetica\", Font.PLAIN, 13));\r\n\r\n\t\t\tcolumnsField = new JTextField();\r\n\t\t\tcolumnsField.setText(Integer.toString(columns));\r\n\r\n\t\t\tJButton resetButton = new JButton(\"Novo GRID\");\r\n\t\t\tresetButton.addActionListener(new ActionHandler());\r\n\t\t\tresetButton.setBackground(Color.lightGray);\r\n\t\t\tresetButton\r\n\t\t\t\t\t.setToolTipText(\"Limpa e redesenha o GRID de acordo com o número de linhas e colunas estipulado.\");\r\n\t\t\tresetButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\r\n\t\t\t\t\tresetButtonActionPerformed(evt);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tJButton mazeButton = new JButton(\"Gerar Labirinto\");\r\n\t\t\tmazeButton.addActionListener(new ActionHandler());\r\n\t\t\tmazeButton.setBackground(Color.lightGray);\r\n\t\t\tmazeButton.setToolTipText(\"Cria um labirinto aleatório\");\r\n\t\t\tmazeButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\r\n\t\t\t\t\tmazeButtonActionPerformed(evt);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tJButton clearButton = new JButton(\"Limpar\");\r\n\t\t\tclearButton.addActionListener(new ActionHandler());\r\n\t\t\tclearButton.setBackground(Color.lightGray);\r\n\t\t\tclearButton.setToolTipText(\"Primeiro click: Limpa as buscas, Segundo click: Limpa obstáculos\");\r\n\r\n\t\t\tJButton stepButton = new JButton(\"Passo-a-Passo\");\r\n\t\t\tstepButton.addActionListener(new ActionHandler());\r\n\t\t\tstepButton.setBackground(Color.lightGray);\r\n\t\t\tstepButton.setToolTipText(\"A busca é realizada passo-a-passo pelo click\");\r\n\r\n\t\t\tJButton animationButton = new JButton(\"INICIAR\");\r\n\t\t\tanimationButton.addActionListener(new ActionHandler());\r\n\t\t\tanimationButton.setBackground(Color.lightGray);\r\n\t\t\tanimationButton.setToolTipText(\"A pesquisa é realizada automaticamente\");\r\n\r\n\t\t\tJLabel velocity = new JLabel(\"Velocidade\", JLabel.CENTER);\r\n\t\t\tvelocity.setFont(new Font(\"Helvetica\", Font.PLAIN, 10));\r\n\r\n\t\t\tslider = new JSlider(0, 1000, 500); // valor inicial do slider em 500 msec\r\n\t\t\tslider.setToolTipText(\"Regula o atraso para cada etapa (0 to 1 sec)\");\r\n\r\n\t\t\tdelay = 1000 - slider.getValue();\r\n\t\t\tslider.addChangeListener(new ChangeListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void stateChanged(ChangeEvent evt) {\r\n\t\t\t\t\tJSlider source = (JSlider) evt.getSource();\r\n\t\t\t\t\tif (!source.getValueIsAdjusting()) {\r\n\t\t\t\t\t\tdelay = 1000 - source.getValue();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// ButtonGroup que sincroniza os cinco botões de rádio \r\n\t\t\t// escolha do algoritmo, de modo que apenas uma \r\n\t\t\t// pode ser selecionada a qualquer momento\r\n\t\t\t\r\n\t\t\tButtonGroup algoGroup = new ButtonGroup();\r\n\r\n\t\t\tdfs = new JRadioButton(\"DFS\");\r\n\t\t\tdfs.setToolTipText(\"Depth First Search algorithm\");\r\n\t\t\talgoGroup.add(dfs);\r\n\t\t\tdfs.addActionListener(new ActionHandler());\r\n\r\n\t\t\tbfs = new JRadioButton(\"BFS\");\r\n\t\t\tbfs.setToolTipText(\"Breadth First Search algorithm\");\r\n\t\t\talgoGroup.add(bfs);\r\n\t\t\tbfs.addActionListener(new ActionHandler());\r\n\r\n\t\t\taStar = new JRadioButton(\"A*\");\r\n\t\t\taStar.setToolTipText(\"Algoritmo A Estrela \");\r\n\t\t\taStar.setSelected(true);\r\n\t\t\talgoGroup.add(aStar);\r\n\t\t\taStar.addActionListener(new ActionHandler());\r\n\r\n\t\t\tguloso = new JRadioButton(\"Guloso\");\r\n\t\t\tguloso.setToolTipText(\"Algoritmo de Busca Gulosa\");\r\n\t\t\talgoGroup.add(guloso);\r\n\t\t\tguloso.addActionListener(new ActionHandler());\r\n\r\n\t\t\tdijkstra = new JRadioButton(\"Dijkstra\");\r\n\t\t\tdijkstra.setToolTipText(\"Dijkstra's algorithm\");\r\n\t\t\talgoGroup.add(dijkstra);\r\n\t\t\tdijkstra.addActionListener(new ActionHandler());\r\n\r\n\t\t\tJPanel algoPanel = new JPanel();\r\n\t\t\talgoPanel.setBorder(\r\n\t\t\t\t\tjavax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(),\r\n\t\t\t\t\t\t\t\"Algoritmos\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\r\n\t\t\t\t\t\t\tjavax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Helvetica\", 0, 14)));\r\n\r\n\t\t\taStar.setSelected(true); // A* selecionado como inicial\r\n\r\n\t\t\tdiagonal = new JCheckBox(\"Movimentos Diagonais\");\r\n\t\t\tdiagonal.setToolTipText(\"Movimentos diagonais também estão autorizados\");\r\n\t\t\tdiagonal.setSelected(true);\r\n\r\n\t\t\tdrawArrows = new JCheckBox(\"Setas para antecessores\");\r\n\t\t\tdrawArrows.setToolTipText(\"Desenha setas para os antecessores\");\r\n\r\n\t\t\tJLabel robot = new JLabel(\"INICIO\", JLabel.LEFT);\r\n\t\t\trobot.setForeground(Color.red);\r\n\t\t\trobot.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\r\n\r\n\t\t\tJLabel target = new JLabel(\"ALVO\", JLabel.LEFT);\r\n\t\t\ttarget.setForeground(Color.green);\r\n\t\t\ttarget.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\r\n\r\n\t\t\tJLabel frontier = new JLabel(\"FRONTEIRA\", JLabel.LEFT);\r\n\t\t\tfrontier.setForeground(Color.blue);\r\n\t\t\tfrontier.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\r\n\r\n\t\t\tJLabel closed = new JLabel(\"FECHADOS\", JLabel.LEFT);\r\n\t\t\tclosed.setForeground(Color.cyan);\r\n\t\t\tclosed.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\r\n\r\n\t\t\tJButton aboutButton = new JButton(\"Sobre\");\r\n\t\t\taboutButton.addActionListener(new ActionHandler());\r\n\t\t\taboutButton.setBackground(Color.lightGray);\r\n\t\t\taboutButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\r\n\t\t\t\t\taboutButtonActionPerformed(evt);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t//Adicionando conteudo ao Panel\r\n\t\t\tadd(message);\r\n\t\t\tadd(rowsLbl);\r\n\t\t\tadd(rowsField);\r\n\t\t\tadd(columnsLbl);\r\n\t\t\tadd(columnsField);\r\n\t\t\tadd(resetButton);\r\n\t\t\tadd(mazeButton);\r\n\t\t\tadd(clearButton);\r\n\t\t\tadd(stepButton);\r\n\t\t\tadd(animationButton);\r\n\t\t\tadd(velocity);\r\n\t\t\tadd(slider);\r\n\t\t\tadd(dfs);\r\n\t\t\tadd(bfs);\r\n\t\t\tadd(aStar);\r\n\t\t\tadd(guloso);\r\n\t\t\tadd(dijkstra);\r\n\t\t\tadd(algoPanel);\r\n\t\t\tadd(diagonal);\r\n\t\t\t// add(drawArrows);\r\n\t\t\tadd(robot);\r\n\t\t\tadd(target);\r\n\t\t\tadd(frontier);\r\n\t\t\tadd(closed);\r\n\t\t\tadd(aboutButton);\r\n\r\n\t\t\t// Regulando posição dos componentes\r\n\t\t\tmessage.setBounds(0, 515, 500, 23);\r\n\t\t\trowsLbl.setBounds(520, 5, 140, 25);\r\n\t\t\trowsField.setBounds(665, 5, 25, 25);\r\n\t\t\tcolumnsLbl.setBounds(520, 35, 140, 25);\r\n\t\t\tcolumnsField.setBounds(665, 35, 25, 25);\r\n\t\t\tresetButton.setBounds(520, 65, 170, 25);\r\n\t\t\tmazeButton.setBounds(520, 95, 170, 25);\r\n\t\t\tclearButton.setBounds(520, 125, 170, 25);\r\n\t\t\tstepButton.setBounds(520, 155, 170, 25);\r\n\t\t\tanimationButton.setBounds(520, 185, 170, 25);\r\n\t\t\tvelocity.setBounds(520, 215, 170, 10);\r\n\t\t\tslider.setBounds(520, 225, 170, 25);\r\n\t\t\t// dfs.setBounds(530, 270, 70, 25);\r\n\t\t\t// bfs.setBounds(600, 270, 70, 25);\r\n\t\t\taStar.setBounds(530, 295, 70, 25);\r\n\t\t\tguloso.setBounds(600, 295, 85, 25);\r\n\t\t\t// dijkstra.setBounds(530, 320, 85, 25);\r\n\t\t\talgoPanel.setLocation(520, 250);\r\n\t\t\talgoPanel.setSize(170, 100);\r\n\t\t\tdiagonal.setBounds(520, 355, 170, 25);\r\n\t\t\t// drawArrows.setBounds(520, 380, 170, 25);\r\n\t\t\trobot.setBounds(530, 380, 80, 25);\r\n\t\t\ttarget.setBounds(530, 400, 80, 25);\r\n\t\t\tfrontier.setBounds(530, 420, 80, 25);\r\n\t\t\tclosed.setBounds(530, 440, 80, 25);\r\n\t\t\taboutButton.setBounds(520, 515, 170, 25);\r\n\r\n\t\t\t// Criando timer\r\n\t\t\ttimer = new Timer(delay, action);\r\n\r\n\t\t\t// Nós ligamos às células nos valores iniciais de grade.\r\n\t\t\t// Aqui é os primeiros passos dos algoritmos\r\n\t\t\tfillGrid();\r\n\r\n\t\t}", "public PrintingPreviewPanel(JComponent chartComponent, JComponent listComponent) {\n this.chartComponent = chartComponent;\n this.listComponent = listComponent;\n// initComponents();\n }", "private void createInterface(Container c) {\n\t\t\n\t\tBufferedImage myImage = null;\n\t\ttry { \n\t\t myImage = ImageIO.read(new File(\"JavaFormatHaloReach.jpg\"));\n\t\t \n\t\t } catch (IOException ex) {\n\t\t \n\t\t }\n\t\t\n\t\tNegativeImage negatImage = new NegativeImage(myImage);\n\t\tImagePanel image = new ImagePanel ( myImage);\n\t\timage = new ImagePanel(negatImage.MakeNegativeImage());\n\n\t\tBorderLayout layout = new BorderLayout();\n\t\tc.setLayout(layout);\n\n\t\tJPanel contentPane = new JPanel();\n\t\tcontentPane.setBackground(UIManager.getColor(\"Button.darkShadow\"));\n\t\t\n\n\t\tJToolBar toolBar = new JToolBar();\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\t\ttoolBar.setForeground(SystemColor.textHighlight);\n\t\ttoolBar.setBackground(UIManager.getColor(\"Button.highlight\"));\n\t\ttoolBar.setBackground(Color.GRAY);\n\t\t\n\n\t\tJButton rotate = new JButton(\"Rotate\");\n\t\trotate.setBackground(Color.LIGHT_GRAY);\n\t\trotate.setForeground(Color.WHITE);\n\t\ttoolBar.add(rotate);\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\t\t\n\t\t\n\t\tJButton negativeButton = new JButton(\"Negative\");\n\t\tButtonListener negative = new ButtonListener(negatImage, myImage);\n\t\tnegativeButton.addActionListener(negative);\n\t\t\n\t\tnegativeButton.setBackground(Color.LIGHT_GRAY);\n\t\tnegativeButton.setForeground(Color.WHITE);\n\t\ttoolBar.add(negativeButton);\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\t\t\n\n\t\tJButton changeSize = new JButton(\"Change size \");\n\t\tchangeSize.setBackground(Color.LIGHT_GRAY);\n\t\tchangeSize.setForeground(Color.WHITE);\n\t\ttoolBar.add(changeSize);\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\n\t\tJButton reset = new JButton(\"Reset\");\n\t\treset.setBackground(Color.LIGHT_GRAY);\n\t\treset.setForeground(Color.WHITE);\n\t\ttoolBar.add(reset);\n\t\n\t\tc.add(toolBar, BorderLayout.NORTH);\n\t//\tc.add(negatImage);\n\t\t\n\t}", "public ChooseParameterPanel() {\n initComponents();\n }", "public JavaPanel() {\n\t\tsuper();\n\t}", "public WithdrawPanel() {\n initComponents();\n }", "public Animation() {\n\t\tthis(new ArrayList());\n\t}", "public AssemblingMessageListPanel()\n {\n //initComponents();\n }", "void initAndDisplay() {\n\t\tFile fileNames = new File(IMG_PATH);\r\n\t\tfor (File f : fileNames.listFiles()) {\r\n\t\t\tSystem.out.println(f);\r\n\t\t}\r\n\t\tfiles = fileNames.listFiles();\r\n\r\n\t\tframe = new JFrame();\r\n\r\n\t\t// add a JLayeredPane to scrollPane, and add 2 layers to JLayeredPane\r\n\t\tlayeredPane = new JLayeredPane();\r\n\t\treadImg(files[currentImg]);\r\n\t\tint w = img.getWidth(), h = img.getHeight();\r\n\t\timgPanel = new ImagePanel(img);\r\n\t\timgPanel.setBounds(0, 0, w, h);\r\n\r\n\t\t// create TestDataPanel\r\n\t\ttestData = new TestDataPanel(new Dimension(w, h));\r\n\r\n\t\tlayeredPane.add(testData);\r\n\t\tlayeredPane.add(imgPanel);\r\n\t\t//layeredPane.setPreferredSize(new Dimension(w, h));\r\n\r\n\t\t// add to scrollPane\r\n\t\tscrollPane = new JScrollPane(layeredPane);\r\n\t\timgPanel.setScrollPane(scrollPane);\r\n\t\t\r\n\t\t// create buttons for navigation\r\n\t\tJButton previous = new JButton(\"<\");\r\n\t\tJButton next = new JButton(\">\");\r\n\t\tinfo = new JLabel(\"Loaded \" + files.length + \" images.\");\r\n\t\tJPanel buttonsPanel = new JPanel();\r\n\t\tBox buttonsBox = Box.createHorizontalBox();\r\n\t\tbuttonsPanel.setLayout(new BorderLayout());\r\n\t\tbuttonsBox.add(previous);\r\n\t\tbuttonsBox.add(next);\r\n\t\tbuttonsPanel.add(buttonsBox, BorderLayout.EAST);\r\n\t\tbuttonsPanel.add(info, BorderLayout.WEST);\r\n\r\n\t\t// add components to the frame\r\n\t\tframe.setLayout(new BorderLayout());\r\n\t\tframe.add(scrollPane, BorderLayout.CENTER);\r\n\t\tframe.add(buttonsPanel, BorderLayout.SOUTH);\r\n\t\t// --------------------------------\r\n\t\t// -preparing to display the frame-\r\n\t\t// --------------------------------\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.pack();\r\n\t\tframe.setLocation(100, 100);\r\n\t\tframe.setTitle(IMG_PATH);\r\n\t\t// show it now\r\n\t\tframe.setVisible(true);\r\n\r\n\t\t// ------------------\r\n\t\t// -adding listeners-\r\n\t\t// ------------------\r\n\t\tnext.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tcurrentImg = (currentImg + 1) % files.length;\r\n\t\t\t\tdisplayImg(files[currentImg]);\r\n\t\t\t}\r\n\t\t});\r\n\t\tprevious.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tcurrentImg = (files.length + currentImg - 1) % files.length;\r\n\t\t\t\tdisplayImg(files[currentImg]);\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tSystem.out.println(\"In frame: \" + e);\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.addComponentListener(new ComponentAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void componentResized(ComponentEvent e) {\r\n\t\t\t\tSystem.out.println(frame.getSize());\r\n\t\t\t}\r\n\t\t});\r\n\t\tscrollPane.addMouseWheelListener(new MouseWheelListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent e) {\r\n\t\t\t\t// System.out.println(\"Mouse wheel moved: \" + e);\r\n\t\t\t\tif (e.getPreciseWheelRotation() > 0) {\r\n\t\t\t\t\timgPanel.reScale(imgPanel.scale * 1.1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\timgPanel.reScale(imgPanel.scale * 0.9);\r\n\t\t\t\t}\r\n\t\t\t\tlayeredPane.setPreferredSize(new Dimension((int) (img.getWidth() * imgPanel.finalScale),\r\n\t\t\t\t\t\t(int) (imgPanel.getHeight() * imgPanel.finalScale)));\r\n\t\t\t\tlayeredPane.setBounds(0, 0, (int) (img.getWidth() * imgPanel.finalScale),\r\n\t\t\t\t\t\t(int) (imgPanel.getHeight() * imgPanel.finalScale));\r\n\t\t\t\tlayeredPane.repaint();\r\n\t\t\t\tscrollPane.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttestData.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tfor (int i = 0; i < testData.point.length; i++) {\r\n\t\t\t\t\tRectangle pointBounds = new Rectangle((int) testData.point[i].getX() - boxSize,\r\n\t\t\t\t\t\t\t(int) testData.point[i].getY() - boxSize, (int) testData.point[i].getX() + boxSize,\r\n\t\t\t\t\t\t\t(int) testData.point[i].getY() + boxSize);\r\n\t\t\t\t\tif (pointBounds.contains(e.getPoint())) {\r\n\t\t\t\t\t\tclickedPoint = i;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tclickedPoint = testData.point.length;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tclickedPoint = testData.point.length;\r\n\t\t\t}\r\n\t\t});\r\n\t\ttestData.addMouseMotionListener(new MouseMotionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent e) {\r\n\t\t\t\tif (clickedPoint < testData.point.length) {\r\n\t\t\t\t\ttestData.point[clickedPoint] = new Point(e.getX(), e.getY());\r\n\t\t\t\t\tlayeredPane.repaint();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t\t\tfor (Point point : testData.point) {\r\n\t\t\t\t\tRectangle pointBounds = new Rectangle((int) point.getX() - boxSize, (int) point.getY() - boxSize,\r\n\t\t\t\t\t\t\t(int) point.getX() + boxSize, (int) point.getY() + boxSize);\r\n\t\t\t\t\tif (pointBounds.contains(e.getPoint())) {\r\n\t\t\t\t\t\ttestData.setCursor(new Cursor(Cursor.MOVE_CURSOR));\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttestData.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "protected void initGameWindow(){\r\n \r\n // Erstellt das GameGrid\r\n this.gg_grid = new GameGrid();\r\n this.gg_grid.setBounds(this.xCoordGrid, this.yCoordGrid, this.widthGrid, this.heightGrid);\r\n this.gg_grid.addMouseListener(this);\r\n //Add game logic\r\n this.gg_logic = new GameLogic(gg_grid);\r\n this.gg_logic.drawLogic();\r\n // Erstellt das Steuerungs-Panel\r\n this.gg_panel = new JPanel();\r\n this.gg_panel.setBounds(this.xCoordPanel, this.yCoordPanel, this.widthPanel, this.heightPanel); \r\n // Erstellt die anderen Komponenten\r\n // Buttons + ActionListener\r\n this.gg_start = new JButton(\"Start\");\r\n this.gg_start.addActionListener(this);\r\n \r\n this.gg_stop = new JButton(\"Stop\");\r\n this.gg_stop.addActionListener(this);\r\n \r\n this.gg_reset = new JButton(\"Reset\");\r\n this.gg_reset.addActionListener(this);\r\n \r\n // Sliders + SliderDesign + ChangeListener\r\n this.gg_velocity = new JSlider(JSlider.HORIZONTAL, 0, 2, 1);\r\n this.gg_velocity.setMajorTickSpacing(1);\r\n this.gg_velocity.setPaintTicks(true);\r\n this.gg_velocity.addChangeListener(this);\r\n \r\n this.gg_groesse = new JSlider(JSlider.HORIZONTAL, 0, 2, 1);\r\n this.gg_groesse.setMajorTickSpacing(1);\r\n this.gg_groesse.setPaintTicks(true);\r\n this.gg_groesse.addChangeListener(this);\r\n \r\n // Fügt die Komponenten dem JPanel hinzu\r\n this.gg_panel.add(new JLabel(\"Langsam\"));\r\n this.gg_panel.add(gg_velocity);\r\n this.gg_panel.add(new JLabel(\"Schnell\"));\r\n this.gg_panel.add(gg_start);\r\n this.gg_panel.add(gg_stop);\r\n this.gg_panel.add(gg_reset);\r\n this.gg_panel.add(new JLabel(\"Klein\"));\r\n this.gg_panel.add(gg_groesse);\r\n this.gg_panel.add(new JLabel(\"Groß\"));\r\n \r\n // Fügt JCanvas+JPanel dem JFrame hinzu\r\n this.getContentPane().add(gg_grid);\r\n this.getContentPane().add(gg_panel);\r\n \r\n this.gg_grid.fillCell(5, 5);\r\n \r\n this.pack();\r\n }", "public void makeShortComps(JPanel[] subShort){\n\t\t\tsubShort[0] = new JPanel(){ //Side Panel #1\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[0], 0, h, shortColors[10]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[1] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[1], 0, h, shortColors[11]); \n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[2] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[2], 0, h, shortColors[12]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[3] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[3], 0, h, shortColors[13]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[4] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[4], 0, h, shortColors[14]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[5] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[5], 0, h, shortColors[15]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[6] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[6], 0, h, shortColors[16]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[7] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[7], 0, h, shortColors[17]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[8] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[8], 0, h, shortColors[18]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[9] = new JPanel(){\n\t\t\t\t@Override\n\t\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\t\tsuper.paintComponent(g);\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\t\tint w = getWidth();\n\t\t\t\t\tint h = getHeight();\n\t\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, shortColors[9], 0, h, shortColors[19]);\n\t\t\t\t\tg2d.setPaint(gp);\n\t\t\t\t\tg2d.fillRect(2, 2, w, h);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tsubShort[10] = new JPanel(); //Side Panel #2\n\t\t\tsubShort[11] = new JPanel(); //Side Panel #3\n\t\t}" ]
[ "0.62388057", "0.62353283", "0.6174811", "0.6092553", "0.6081535", "0.6021102", "0.60034066", "0.59871304", "0.59734917", "0.5968354", "0.5892975", "0.58504987", "0.58463174", "0.5834624", "0.5833571", "0.5829145", "0.58202845", "0.577977", "0.57788944", "0.57788944", "0.577851", "0.5776296", "0.5763319", "0.5754428", "0.572622", "0.5722387", "0.56696576", "0.5657013", "0.5651089", "0.5648727", "0.56307113", "0.5629082", "0.56251186", "0.5618549", "0.5612886", "0.56065416", "0.5605845", "0.560022", "0.55937713", "0.5589356", "0.5582521", "0.5577594", "0.55515456", "0.5546219", "0.5545832", "0.554394", "0.5538924", "0.5533543", "0.552527", "0.5523748", "0.55223393", "0.55202675", "0.55115664", "0.55100656", "0.55078757", "0.5506759", "0.55032915", "0.55030143", "0.54995424", "0.54994124", "0.5489462", "0.5487111", "0.54842466", "0.5482571", "0.54814774", "0.5465213", "0.54614115", "0.54507166", "0.5448369", "0.54473823", "0.54462326", "0.5446213", "0.5441555", "0.544151", "0.5429758", "0.5429655", "0.54278135", "0.5426965", "0.5425197", "0.5418456", "0.5413938", "0.5412436", "0.540923", "0.54092187", "0.5406225", "0.5402586", "0.5400297", "0.54001486", "0.5394764", "0.53945595", "0.53940064", "0.5392625", "0.5388196", "0.538755", "0.5372786", "0.5370511", "0.53701097", "0.53673077", "0.5367223", "0.53647316" ]
0.73651457
0
Function : populateArray Use : creates random values and assign to array Parameter : Nothing Returns : Nothing
public void populateArray() { Random rand = new Random(); // calling random class to generate random numbers randInt = new int[this.getWidth()]; // initializing array to its panel width rand.setSeed(System.currentTimeMillis()); for(int i = 0; i < this.getWidth();i++) // assigning the random values to array { randInt[i] = rand.nextInt(this.getHeight() -1) + 1; } this.repaint(); // calling paint method }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = data.clone();\n\t\tquickData = data.clone();\n\n\t}", "public static void fillArray() {\r\n\t\tfor (int i = 0; i < myOriginalArray.length - 1; i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tmyOriginalArray[i] = rand.nextInt(250);\r\n\t\t}\r\n\t\t// Copies original array 4 times for algorithm arrays\r\n\t\tmyBubbleArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmySelectionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyInsertionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyQuickArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t}", "public void generateRandomArray() {\n for (int i = 0; i < arraySize; i++) {\n theArray[i] = (int) (Math.random() * 10) + 10;\n }\n }", "private void populate ()\n\t{\n\t\t//create a random object\n\t\tRandom rand = new Random(); \n\t\t//for loop for row\n\t\tfor (int row =0; row < currentVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor(int column = 0; column < currentVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//assign byte values from [0 to state-1] into array\n\t\t\t\tcurrentVersion[row][column] = (byte) rand.nextInt((this.state-1));\n\t\t\t}\n\t\t}\n\t}", "private static int[] createArray() {\n\t\trnd = new Random();\r\n\t\trandomArray = new int[8];\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\trandomArray[i] = rnd.nextInt(45);\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}", "static void fillArray(int[] ar)\n\t{\n\t Random r= new Random();\n\t for(int i = 0; i< ar.length; i++)\n\t {\n\t\t ar[i]= r.nextInt(100);\n\t }\n\t}", "static int[] populateArray(int lenght) {\n\t\tint[] A = new int[lenght];\n\t\t\n\t\tfor(int i=0; i < A.length; i++) {\n\t\t\tA[i] = (int)(Integer.MAX_VALUE * Math.random());\n\t\t}\n\t\t\n\t\treturn A;\n\t}", "static void initValues()\n\t // Initializes the values array with random integers from 0 to 99.\n\t {\n\t Random rand = new Random();\n\t for (int index = 0; index < SIZE; index++)\n\t values[index] = Math.abs(rand.nextInt(100001));\n\t for (int i = 0; i < RANDSAMP; i++)\n\t \tvalues2[i] = values[Math.abs(rand.nextInt(SIZE+1))]; \n\t }", "static void fill(int[] array)\n\t{\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tarray[i] = r.nextInt(100);\n\t\t}\n\t}", "private static int[] arrayInitializer(int length) {\n int[] myArray = new int[length];\n Random rand = new Random();\n for (int i = 0; i < length; i++) {\n myArray[i] = rand.nextInt(1000);\n }\n return myArray;\n }", "void createArray(int n) {\n numbers = new int[n];\n for ( int i = 0; i < n; i++){\n numbers[i] = random.nextInt(1000);\n }\n }", "private void populate()\n\t{\n\t\tages = new int[] { 15, 18, 16, 16, 15, 16 }; \n\t}", "static void fillArray(int[] array) {\n\t\tint i = 0;\r\n\t\tint number = 1;\r\n\t\twhile (i < array.length) {\r\n\t\t\tif ((int) Math.floor(Math.random() * Integer.MAX_VALUE) % 2 == 0) {\r\n\t\t\t\tnumber = number + (int) Math.floor(Math.random() * 5);\r\n\t\t\t\tarray[i] = number;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tnumber++;\r\n\t\t\t\tarray[i] = number;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "static void initializeArray2() {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\t// Hash implementation\n\t\t\tint mod = val % m;\n\t\t\tarray[mod] = val;\n\t\t\tresult[1]++;\n\t\t}\n\t}", "static void populateArray(int[] array) {\n\n Random r = new Random();\n\n for (int i = 0; i < array.length; i++) {\n\n array[i] = r.nextInt() % 100;\n\n if (array[i] < 0) array[i] = array[i] * -1;\n\n }\n\n }", "public static void randFillArray(int[] array) {\r\n\t\tRandom random = new Random();\r\n\t\tfor (int i=0; i < SIZE_OF_ARRAY; i++)\r\n\t\t\tarray[i] = random.nextInt(100);\r\n\t}", "private static int[] createArray(int n) {\n\t \tint[] array = new int[n];\n\t \tfor(int i=0; i<n; i++){\n\t \t\tarray[i] = (int)(Math.random()*10);\n\t \t}\n\t\t\treturn array;\n\t\t}", "public int[] fillDatabase()\n {\n int [] db = new int [20];\n \n \n for (int i = 0; i < db.length; i++)\n {\n db[i] = new java.util.Random().nextInt(25);\n }\n return db;\n }", "public static void createArrays() {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tint size = rand.nextInt(5) + 5;\r\n\t\t\tTOTAL += size;\r\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\r\n\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\tint value = rand.nextInt(1000) + 1;\r\n\t\t\t\tnumList.add(value);\r\n\t\t\t}\r\n\t\t\tCollections.sort(numList);\r\n\t\t\tarrayMap.put(i + 1, numList);\r\n\t\t}\r\n\t}", "void permutateArrays()\n {\n for (int i = 0; i < sampleArrays.length; i++)\n {\n for (int i1 = 0; i1 < (r.nextInt() % 7); i1++)\n {\n addToArray(sampleArrays[i], sampleStrings[r.nextInt(5)]);\n addToArray(sampleArrays[i], sampleNumbers[r.nextInt(5)]);\n addToArray(sampleArrays[i], sampleObjects[r.nextInt(5)]);\n addToArray(sampleArrays[i], specialValues[r.nextInt(2)]);\n }\n }\n }", "private static int [] getRandomNumbers (int sizearray) {\n // create the array of the specified size\n int [] numberarray = new int[sizearray];\n // create the Java random number generator \n Random randomGenerator = new Random();\n \n // for each element of the array, get the next random number \n for (int index = 0; index < sizearray; index++)\n {\n numberarray[index] = randomGenerator.nextInt(100); \n }\n \n return numberarray; \n }", "public static int[][] raggedArray(){\n int n=(int)(Math.random()*11);\n n+=10; \n //this randomly assigns n to between 10 and 20\n int[][] ragged=new int[n][];\n //initialize this array with n first components\n //forloop to assign each inner array a length\n for(int i=0; i<n; i++){\n int m=(int)(Math.random()*11);\n m+=10; //m is between 10 and 20\n ragged[i]=new int[m];\n //another for loop to assign values\n for(int k=0; k<m; k++){\n int val=(int)(Math.random()*1001);\n int sign=(int)(Math.random()*2);\n if(sign==0){\n \n }\n else{\n val*=-1;\n //makes it 50/50 to be negative\n }\n ragged[i][k]=val;\n //assigns value to that spot of array\n }\n }\n return ragged;\n }", "private Countable[] generateArray(int rank){\n var numbers = new Countable[rank];\n for (int i = 0; i < rank; i++) {\n numbers[i] = getRandomCountable();\n }\n return numbers;\n }", "public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }", "public static int[] f_fill_vector_age_people(int N){\n int[] v_vector_age= new int[N];\n for(int i=0; i<N; i++){\n\n v_vector_age[i]= (int) (Math.random()*100)+1;\n\n }\n return v_vector_age;\n }", "private void fillInArray(int[] myArray, int searchedValue) {\n\t\t\n\t\tmyArray[0] = searchedValue;\n\t\t\n\t\tfor(int i=1; i<myArray.length; i++) {\n\t\t\tint valueTemp = (int) (Math.random() * myArray.length);\n\t\t\t\n\t\t\tmyArray[i] = valueTemp;\t\t\t\n\t\t}\n\t}", "static void initializeArray(boolean firstTime) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\tint mod = val % m;\n\t\t\tif (array[mod] == -1) {\n\t\t\t\tarray[mod] = val;\n\t\t\t\tresult[1]++;\n\t\t\t\tcount++;\n\t\t\t} else if (firstTime) {\n\t\t\t\tresult[0] = count;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "Array createArray();", "private static int[] initArray(int N){\n int[] a = new int[N];\n for (int i=0;i<N;i++)\n a[i] = (int)(Math.random()*99999 + 100000);\n return a;\n }", "public static void randomArray(int n) \r\n\t{\r\n\t\tnum = new int[n];\r\n\t\tRandom r = new Random();\r\n\t\tint Low = 1;\r\n\t\tint High = 10;\r\n\t\t\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tnum[i] = r.nextInt(High - Low) + Low;\r\n\t\t}\r\n\t\t\r\n\t}", "public void randomArray(int size){\n paintIntegers[] arrayNew = new paintIntegers[size];\n paintIntegers.initPaint(arrayNew);\n //updates n\n n = size;\n for(int i = 0; i < arrayNew.length; i++){\n arrayNew[i].val = i + 1;\n }//init the array with 0 to n;\n for(int i = 0; i < arrayNew.length; i++){ // shuffles the array\n //random index past current -> thats why random\n int ridx = i + rand.nextInt(arrayNew.length - i);\n //swap values\n int temp = arrayNew[ridx].val;\n arrayNew[ridx].val = arrayNew[i].val;\n arrayNew[i].val = temp;\n }\n // new origarray array\n origArray = arrayNew.clone();\n }", "public static int[] makeArray( Random random){\n\t\tint[] arr = new int[10];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tarr[i] = random.nextInt(200);\n\t\treturn arr;\n\t}", "ArrayValue createArrayValue();", "static int[] singleArrayGenerator(int num){\n int[] arr = new int[num];\n for(int i = 0; i < num; i++)\n arr[i] = new Random().nextInt(100);\n return arr;\n }", "public int[] initializingArray(int size) {\n\t\tint [] array = createArrays(size);\n\t\tfor(int i = 0;i < array.length; i++) {\n\t\t\tarray[i] = rand.nextInt(10);\n\t\t}\n\t\treturn array;\n\t}", "private static void fillArrayWithValues() {\n int[] myArray = new int[40];\n\n // fills my array with value 5\n Arrays.fill(myArray, 5);\n\n // iterate and then print\n for (int i = 0; i < myArray.length; i++) {\n System.out.println(myArray[i]);\n }\n }", "public static int[] populateArray(int [] array) {\n int userInput;\n System.out.println(\"Enter 10 integers: \");\n for(int i = 0; i < array.length; i++){\n Scanner input = new Scanner(System.in);\n userInput = CheckInput.getInt();\n array[i] = userInput;\n }\n return array;\n }", "private static int[] genValues(int[] original) {\n Random rand = new Random();\n int max = original.length - 1;\n\n while (max > 0) {\n swap(original, max, rand.nextInt(max));\n max--;\n }\n return original;\n }", "RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }", "private int[] getRandomArray() throws ComputationException {\n if (randomArray == null || randomArray.length == 0) {\n throw new ComputationException(\"Unable to compute\");\n }\n return randomArray;\n }", "private static int[] generateArray(int size, int startRange, int endRange) {\n\t\tint[] array = new int[size];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = (int)((Math.random()*(endRange - startRange + 1)) + startRange);\n\t\t}\n\t\treturn array;\n\t}", "public static void fillArray(int[] array)\r\n {\r\n //Create a local scanner object\r\n Scanner sc = new Scanner(System.in);\r\n \r\n //Prompt user to enter the number of values within the array\r\n System.out.println(\"Enter \" + array.length + \" values\");\r\n \r\n //Loop through array and assign a value to each individual element\r\n for (int n=0; n < array.length; ++n) \r\n {\r\n \r\n System.out.println(\"Enter a value for element \" + n + \":\");\r\n \r\n array[n] = sc.nextInt();\r\n \r\n \r\n \r\n }\r\n \r\n \r\n }", "public static void storeRandomNumbers(int [] num){\n\t\tRandom rand = new Random();\n\t\tfor(int i=0; i<num.length; i++){\n\t\t\tnum[i] = rand.nextInt(1000000);\n\t\t}\n\t}", "public static void initOneD(int[] array) {\n for (int i = 0; i < array.length; i++) {\n array[i] = (int) (Math.random() * 100);\n }\n }", "public int[] generateArray() {\n return generateArray(5);\n }", "private void getArr()\r\n {\r\n // Create array of '0'\r\n Random rand = new Random();\r\n arr = new int[Integer.parseInt(SizeField.getText())];\r\n\r\n // InOrder creates a list in ascending order\r\n if (InOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n // AlmostOrder creates a list which is 50% sorted and 50% unsorted\r\n } else if (AlmostOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length / 2; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n for (int i = arr.length / 2; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n\r\n // ReverseOrder creates list in descending order\r\n } else if (ReverseOrderRadio.isSelected())\r\n {\r\n for (int i = arr.length, j = 0; i > 0; i--, j++)\r\n {\r\n arr[j] = i;\r\n }\r\n\r\n // RandomOrder creates 100% unsorted list\r\n } else\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n }\r\n }", "public Integer[] createPermutation() {\n Integer[] value = createSortedArray();\n\n for (int c = 0; c < 5; c++) {\n for (int i = 0; i<value.length; i++) {\n int j = (int)(Math.random()*value.length);\n int temp = value[i];\n value[i] = value[j];\n value[j] = temp;\n }\n }\n \n return value;\n }", "public void generateIDs() {\n Random randomGenerator = new Random();\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n identificationNumbers[i][j] = randomGenerator.nextInt(2);\n }\n }", "@Override\n public <T> T getRandomElement(T[] array) {\n return super.getRandomElement(array);\n }", "public static void fill(int[] array,int start,int ende){\n\tfor (int c=0; c<array.length; c++){\r\n\t\tRandom rand = new Random(); \r\n\t\tarray[c] = rand.nextInt(ende+1-start) + start;\r\n\t}\r\n\tSystem.out.print(\"\\n\");\r\n}", "@Test\r\n public void testRandArr() {\r\n System.out.println(\"RandArr\");\r\n int length = 0;\r\n Class sortClass = null;\r\n int[] expResult = null;\r\n int[] result = GenerateArr.RandArr(length, sortClass);\r\n assertArrayEquals(expResult, result);\r\n }", "public static void randomArray(int array[]){\n DecimalFormat twoDig = new DecimalFormat(\"00\");\n System.out.print(\"\\nSample Random Numbers Generated: \");\n for (int i = 0; i < array.length; i++){\n array[i] = (int)(Math.random() * 100);\n System.out.print(twoDig.format(array[i]) + \" \");\n }\n }", "private short[] makeRandomArray(Random r) {\n short[] array = new short[r.nextInt(100)];\n for (int j = 0; j < array.length; j++) {\n array[j] = (short) r.nextInt();\n }\n return array;\n }", "public void randomize(){\r\n int random = (int) (Math.random()*36);\r\n for(int i = 0;i<7;i++){\r\n for(int j = 0;j<36;j++){\r\n temparray[1] = gameBoard[random];\r\n temparray[2] = gameBoard[j];\r\n gameBoard[j] = temparray[1];\r\n gameBoard[random] = temparray[2];\r\n \r\n }\r\n }\r\n \r\n }", "public static int[] genArray(int n){\r\n\r\n Random rand = new Random();\r\n int arr[] = new int[n];\r\n for(int i=0; i<n;i++){\r\n arr[i] = rand.nextInt(n);\r\n }\r\n\r\n return arr;\r\n\r\n }", "public static void main(String[] args) {\n fillArrayWithValues();\n }", "private static int[] createRandomFilledArrayOfLength(int n) {\n int[] list = new int[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++) {\n list[i] = rand.nextInt(2*MAX_VALUE) - MAX_VALUE;\n }\n return list;\n }", "private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "private static int[] buildArray(int num) {\n\t\t// TODO build an array with num elements\n\t\tif(num ==0) return null;\n\t\t\n\t\tint[] array = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\t\n\t\t\tarray[i] = (int)(Math.random()*15);\n\t\t}\n\t\t\n\t\treturn array;\n\t}", "private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n return data_random;\n }", "public static CreateUser[] createArrayOfEmployeeNames(){\n\n CreateUser[] arr1 = new CreateUser[5];\n\n for (int i=0; i < arr1.length; i++){\n int age = (int) Math.random()* 100;\n String name = \"John\"+i;\n arr1[i] = new CreateUser(age, name); // create random peop;e w/ ages\n\n }\n\n return arr1;\n }", "public static void populate() {\n for (int i = 1; i <= 15; i++) {\n B.add(i);\n Collections.shuffle(B);\n\n }\n for (int i = 16; i <= 30; i++) {\n I.add(i);\n Collections.shuffle(I);\n }\n for (int n = 31; n <= 45; n++) {\n N.add(n);\n Collections.shuffle(N);\n }\n for (int g = 46; g <= 60; g++) {\n G.add(g);\n Collections.shuffle(G);\n }\n for (int o = 61; o <= 75; o++) {\n O.add(o);\n Collections.shuffle(O);\n }\n\n for (int i = 1; i <= 75; i++) {\n roll.add(i); // adds the numbers in the check list\n }\n }", "public static void initIntegerArray(int[] arr) {\r\n\t\tRandom ra = new Random();\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tarr[i] = ra.nextInt(arr.length); \r\n\t\t}\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tif (arr[i] - ra.nextInt(arr.length) <5) {\r\n\t\t\t\tarr[i] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int[] generateRandomArray(){\n return new Random().ints(0, 100000)\n .distinct()\n .limit(1000).toArray();\n }", "public static int[] fillArray(int N) {\n\t\talgorithmThree = new int[N];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\talgorithmThree[i] = i;\n\t\t\tswap(algorithmThree[i], algorithmThree[randInt(0,i)]);\n\t\t}\n\t\t\n\t\treturn algorithmThree;\n\t}", "public void makeArray() {\r\n for (int i = 0; i < A.length; i++) {\r\n A[i] = i;\r\n }\r\n }", "private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public static void TestRandomArray() {\n\tSystem.out.println(\"\\nQuestion (6) Create Random Array & Sort it\");\n\tSystem.out.println(\"------------------------------------------\");\n\tint [] A = createRandomIntArray(20,101); \n\tSystem.out.println( \"Array Before Sort\");\n\tprint(A);\n\tSystem.out.println( \"Array After Sort\");\n\tArrays.sort(A);\n\tprint(A);\n }", "public static int[] constructor(int n) {\r\n int v[] = new int[n];\r\n\r\n for (int i = 0; i < v.length; i++) {\r\n int dato = (int) (Math.random() * 20);\r\n v[i] = dato;\r\n }\r\n return v;\r\n }", "public static String [] randomizeArray(String[] array){\n Random rgen = new Random(); // Random number generator\n\n for (int i=0; i<array.length; i++) {\n int randomPosition = rgen.nextInt(array.length);\n String temp = array[i];\n array[i] = array[randomPosition];\n array[randomPosition] = temp;\n }\n\n return array;\n }", "public static Double[] mutate(Double[] genotype) {\n\t\tRandom random = new Random();\n\t\tint position = random.nextInt(variableNum);\n\t\tgenotype[position]+=((Math.random()-0.5)*mutateVal);\n\t\tif(genotype[position] > maxValue) genotype[position] = maxValue;\n\t\tif(genotype[position] < minValue) genotype[position] = minValue;\n\t\treturn genotype;\n\t}", "public void initialiseNewRandomPopulation(Random rnd) {\n\t\tthis.population = new ArrayList<Individual>();\n\t\tfor (int i = 0; i < this.popSize; i++) {\t\t\t\t\t//FOR ALL DESIRED POPULATION SIZE\n\t\t\tdouble[] randomValues = new double[DIMENSIONS];\t\t\t//INITIATE RANDOM X ARRAY WITH CORRECT DIMENSIONS\n\t\t\tfor (int j = 0; j < DIMENSIONS; j++) {\t\t\t\t\t//CREATE RANDOM X VALUES\n\t\t\t\trandomValues[j] = -5 + rnd.nextDouble() * 10;\t\t//ASSIGN VALUES TO EACH POSITION IN ARRAY\n\t\t\t}\n\t\t\tIndividual newInd = new Individual(randomValues);\t\t//CREATE NEW INDIVIDUAL WITH RANDOM X VALUES\n\t\t\tthis.population.add(newInd);\t\t\t\t\t\t\t//ADD INDIVIDUAL TO POPULATION\n\t\t}\n\t}", "private void generateData(int popsize, int ntrials) {\n data = new double[ntrials][100];\n \n for (int i = 0; i < ntrials; i++) {\n Population pop = new Population(popsize, rand);\n for (int j = 0; j < 100; j++) {\n data[i][j] = pop.totalA();\n pop.advance();\n }\n }\n }", "public void random_init()\r\n\t{\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tchromosome[i] = random_generator.nextInt(num_colors)+1;\r\n\t\t}\r\n\t}", "private List<Integer> generateRandom() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n int amt = myStateMap.get(i).getAmount();\n end = amt + start;\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }", "private static int[] generateRandom(int n) {\n\t\tint[] arr = new int[n];\n\t\tRandom r = new Random();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarr[i] = r.nextInt(n);\n\t\t\t\t\t\n\t\treturn arr;\n\t}", "public static void randomize(Object[] v) throws NotImplementedException {\r\n if(v instanceof Integer[]) {\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] = getRandom(Integer.MIN_VALUE, Integer.MAX_VALUE);\r\n }\r\n } else if(v instanceof Short[]) {\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] = (short) getRandom(Short.MIN_VALUE, Short.MAX_VALUE);\r\n }\r\n } else if(v instanceof Boolean[]) {\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] = (getRandom(0, 1) == 1);\r\n }\r\n } else if(v instanceof Character[]) {\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] = (char) getRandom(0, 127); // 255\r\n }\r\n } else if(v instanceof Float[]) {\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] = (float) (-1000.0 + Math.random() * 1000.0);\r\n }\r\n } else {\r\n throw new NotImplementedException();\r\n }\r\n }", "private void populateRandom(double[][] matrix, double min, double max) {\n\t\tdouble range = max - min;\n\t\tfor (int i = 0; i < matrix.length; i++) {\n\t\t\tfor (int j = 0; j < matrix[0].length; j++) {\n\t\t\t\tmatrix[i][j] = (range * Math.random()) + min;\n\t\t\t}\n\t\t}\n\t}", "private static void fillArray(int[][] array) {\n for (int i = 0; i < array.length; i++)\n for (int j = 0; j < array[i].length; j++)\n array[i][j] = i + j;\n\n // The following lines do nothing\n array = new int[1][1];\n array[0][0] = 239;\n }", "public static void generator(){\n int vector[]= new int[5];\r\n vector[10]=20;\r\n }", "void populateData();", "@Test\n public void testSetAccountNumberArray() {\n System.out.println(\"setAccountNumberArray\");\n int[] accountNumberArray = {1, 2, 3, 4, 5, 6};\n AbstractMethod instance = new AbstractMethodImpl();\n instance.setAccountNumberArray(accountNumberArray);\n int[] result = instance.getAccountNumberArray();\n for (int r : result) {\n System.out.print(r);\n }\n assertArrayEquals(accountNumberArray, result);\n\n }", "public int[] rndArray(int[] anArray,int rndRange) \n\t{\n\t\tRandom rand = new Random();\n\t\tint n;\n\t\tfor(int i=0;i<anArray.length;i++)\n\t\t{\n\t\t n = rand.nextInt(rndRange) + 1;\n\t\t anArray[i] = n;\n\t\t}\n\t\treturn anArray;\n\t\n\t}", "private static int[] generate_random_array(int max) {\n int size = ThreadLocalRandom.current().nextInt(2, max + 1);\n int[] array = new int[size];\n for (int i = 0; i < size - 1; i++) {\n int distance = size - i > i ? size - i : i;\n array[i] = ThreadLocalRandom.current().nextInt(1, distance);\n }\n array[size - 1] = 0;\n return array;\n }", "private static int[] getMeRandomArray(int length) {\n\t\tint array[] = new int[length];\n\t\tint min = -1000;\n\t\tint max = 1000;\n\t\tfor(int i = 0; i < length; i++) {\n\t\t\tarray[i] = (int)(Math.random() * ((max - min) + 1)) + min;\n\t\t}\n\t\treturn array;\n\t}", "public static int[] populateRandomNumber(int count) {\n\t\tif (count < 1) {\n\t\t\tthrow new IllegalArgumentException(\"count less than 0\");\n\t\t}\n\t\tint[] data = new int[count];\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tdata[i] = i + 1;\n\t\t}\n\t\tfor (int i = count - 1; i >= 0; i--) {\n\t\t\t// Find random between 0 to i-1.\n\t\t\tint random = new Random().nextInt(i);\n\t\t\t// swap.\n\t\t\tint temp = data[i];\n\t\t\tdata[i] = data[random];\n\t\t\tdata[random] = temp;\n\t\t}\n\t\treturn data;\n\t}", "public Card[][] createArray() {\n //Reset the random number array\n numsArray = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};\n\n //Initialize a 4x4 array of cards and an integer to hold the random number\n Card[][] cArr = new Card[4][4];\n int randNum;\n\n //Iterate through the array of cards and assign each card a random number\n //and location in the surface view\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n randNum = randNums();\n cArr[i][j] = new Card((j * 350) + 250,(i * 350) + 20, randNum);\n }\n }\n\n //Return the 2D array of cards\n return cArr;\n }", "public int[] randomize(int inputSize){\n int[] list = new int[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(0, inputSize + 1);\n }\n// System.out.println(Arrays.toString(list));\n return list;\n }", "public void random(){\r\n\t\tRandom rand = new Random();\r\n\t\trandArray = new int[6];\r\n\t\tfor (int i = 0; i < 6; i++){\r\n\t\t\t//Randomly generated number from zero to nine\r\n\t\t\trandom = rand.nextInt(10);\r\n\t\t\t//Random values stored into the array\r\n\t\t\trandArray[i] = random;\r\n\t\t\tif(i == 0){\r\n\t\t\t\ta = random;\r\n\t\t\t}\r\n\t\t\tif(i == 1){\r\n\t\t\t\tb = random;\r\n\t\t\t}\r\n\t\t\tif(i == 2){\r\n\t\t\t\tc = random;\r\n\t\t\t}\r\n\t\t\tif(i == 3){\r\n\t\t\t\td = random;\r\n\t\t\t}\r\n\t\t\tif(i == 4){\r\n\t\t\t\tf = random;\r\n\t\t\t}\r\n\t\t\tif(i == 5){\r\n\t\t\t\tg = random;\r\n\t\t\t}\r\n\t\t\t//Random values outputted\r\n\t\t\t//Prints out if the hint was not used.\r\n\t\t\tif (executed == false || guessed == true ){\r\n\t\t\t\tprint(randArray[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Prints out if the hint was not used.\r\n\t\tif (executed == false || guessed == true){\r\n\t\t\tprintln(\" Randomly Generated Value\");\r\n\t\t}\r\n\t}", "private int[] makeRandomList(){\n\t\t\n\t\t//Create array and variables to track the index and whether it repeats\n\t\tint[] list = new int[ 9 ];\n\t\tint x = 0;\n\t\tboolean rep = false;\n\t\t\n\t\t//Until the last element is initialized and not a repeat...\n\t\twhile( list[ 8 ] == 0 || rep)\n\t\t{\n\t\t\t//Generate a random number between 1 and 9\n\t\t\tlist[ x ]= (int)(Math.random()*9) + 1;\n\t\t\trep = false;\n\t\t\t\n\t\t\t//Check prior values to check for repetition\n\t\t\tfor(int y = 0; y < x; y++)\n\t\t\tif( list[x] == list[y] ) rep = true;\n\t\t\t\n\t\t\t//Move on to the next element if there is no repeat\n\t\t\tif( !rep ) x++;\n\t\t}\n\t\t\n\t\t//return the array\n\t\treturn list;\n\t}", "public static void main(String[] args) {\n\t\tint arr[]=new int[5];\r\n\t\tfor(int i=0;i<5;i++){\r\n\t\t\tarr[i]=i;\r\n\t\t}\r\n\t\tArrays.fill(arr,1,4,9);\r\n\t\r\nfor(int i=0;i<5;i++){\r\n\tSystem.out.println(arr[i]);\r\n}\r\n}", "public void generateRandomVaraibles() {\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (!var.getType().equals(\"LOCAL_DATA\") && !var.getType().equals(\"OUTPUT_DATA\")) {\r\n\t\t\t\tif (var.getType().equals(\"boolean\") || var.getType().equals(\"Boolean\")) {\r\n\t\t\t\t\tvar.setValue(String.valueOf(getRandomBoolean()));\r\n\r\n\t\t\t\t} else if (var.getType().equals(\"int\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(Integer.parseInt(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tInteger.parseInt(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(0, 100)));\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (var.getType().equals(\"double\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(Double.parseDouble(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tDouble.parseDouble(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(0.0, 100.0)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testArray()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateArrays();\n genericTests();\n }\n }", "private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n else\r\n i--;\r\n }\r\n return array;\r\n }", "public Integer[] randomizeObject(int inputSize){\n Integer[] list = new Integer[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(-inputSize, inputSize + 1);\n }\n // System.out.println(Arrays.toString(list));\n return list;\n }", "private double[] generateRandomCoordinates() {\n return generateRandomCoordinates(CoordinateDomain.GEOGRAPHIC, 0.05f);\n }", "private void buildArray() throws VerificationException\n {\n \tindices = new int[length];\n \tcommonality = new int[length];\n \n \tcommonality[0] = -1;\n \tfor( int i=0; i<indices.length; i++ ){\n \t indices[i] = i;\n \t}\n \n sort();\n }", "public static int[] randomArray(int size){\n\t\tRandom array = new Random();\n\t\tint[] input = new int[size];\n\t for (int i = 0; i < input.length; i++) {\n\t input[i] = array.nextInt()/2; \n\t }\n\t\treturn input;\n\t}", "public static int[] generaValoresAleatorios() {\n\t\treturn new Random().ints(100, 0, 1000).toArray();\n\t}", "public static int[] RandomizeArray(int a, int b){\n\t\tRandom rgen = new Random(); \t\n\t\tint size = b-a+1;\n\t\tint[] array = new int[size];\n \n\t\tfor(int i=0; i< size; i++){\n\t\t\tarray[i] = a+i;\n\t\t}\n \n\t\tfor (int i=0; i<array.length; i++) {\n\t\t int randomPosition = rgen.nextInt(array.length);\n\t\t int temp = array[i];\n\t\t array[i] = array[randomPosition];\n\t\t array[randomPosition] = temp;\n\t\t}\n \n\t\t\n \n\t\treturn array;\n\t}" ]
[ "0.72123504", "0.71692795", "0.7063595", "0.6946259", "0.69341314", "0.69087887", "0.6768701", "0.67468333", "0.6742314", "0.6733746", "0.6726967", "0.6691213", "0.6686535", "0.6656436", "0.6555777", "0.65544796", "0.64792264", "0.64678186", "0.64646316", "0.64567333", "0.6439543", "0.6423888", "0.6423803", "0.63228464", "0.63111657", "0.629341", "0.6274056", "0.62611526", "0.6217056", "0.6214135", "0.6212825", "0.61997974", "0.61984456", "0.61818814", "0.6124852", "0.6101554", "0.60636294", "0.6052039", "0.60367906", "0.6028644", "0.60144967", "0.5999284", "0.5996939", "0.59829354", "0.5973241", "0.5959945", "0.59572744", "0.5925153", "0.5913661", "0.5912379", "0.59103876", "0.5900371", "0.58986366", "0.58899057", "0.58758634", "0.5864197", "0.58602345", "0.58580196", "0.584058", "0.58404034", "0.58387166", "0.58290994", "0.5828889", "0.5800303", "0.5780198", "0.576145", "0.5758352", "0.57579046", "0.5757186", "0.5754714", "0.5743708", "0.57348025", "0.5726488", "0.57242405", "0.56967217", "0.56896603", "0.5670528", "0.5665818", "0.5645619", "0.56354755", "0.5634486", "0.5624336", "0.56236446", "0.5613897", "0.56130886", "0.55889416", "0.55880964", "0.5580114", "0.5579529", "0.55786914", "0.5575538", "0.5571344", "0.55695814", "0.55674785", "0.5564431", "0.5562603", "0.5560068", "0.5558107", "0.555618", "0.5546707" ]
0.68737245
6
Function : paintComponent Use : paint the component using graphics Parameter : Graphics object Returns : Nothing
@Override protected void paintComponent(Graphics g) { super.paintComponent(g); //calling paintComponent method g.clearRect(this.getX(),this.getY(),this.getWidth(),this.getHeight()); g.fillRect(this.getX(),this.getY(),this.getWidth(),this.getHeight()); g.setColor(Color.BLACK); this.repaint(); if(randInt==null) return; //check if array is null for(int i = 0;i <this.getWidth();i++) // drawing the lines using graphics { g.setColor(Color.RED); g.drawLine(i,randInt[i],i,this.getHeight() ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintComponent(Graphics g);", "public void paintComponent(Graphics g)\r\n\t{\n\t}", "void paintComponent(Graphics g);", "@Override //paint component is overridden to allow super.paintCompnent to be called\r\n public void paintComponent(Graphics g) {\n \tsuper.paintComponent(g); //The super.paintComponent() method calls the method of the parent class, prepare a component for drawing\r\n doDrawing(g); //The drawing is delegated inside the doDrawing() method\r\n }", "protected void paintComponent(Graphics g)\n\t{\n\t}", "@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }", "@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t\r\n\t\r\n\t}", "public void paintComponent(Graphics myGraphic) \n\t{\n\t\tsuper.paintComponent(myGraphic);\t\n\t}", "void paintComponent();", "public void paint (Graphics g)\r\n {\n }", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n draw(g);\n }", "public void paint(Graphics g){\n\t\t\n\t}", "public void paintComponent(Graphics g)\r\n\t\t{\t\t\t\r\n\t\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t}", "public void paintComponent(Graphics g)\r\n\t\t{\t\t\t\r\n\t\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t}", "@Override\r\n\tpublic void paintComponent(Graphics g)\r\n\t{\r\n\t\t// Get the width and height of the component window\r\n\t\twidth = getWidth();\r\n\t\theight = getHeight();\t\t\t\t\r\n\t\t\r\n\t\tGraphics2D g2 = (Graphics2D) g;\r\n\t\tgenerateCircles();\r\n\t\tdrawCircles(g2);\r\n\t}", "public void paint (Graphics g){\n \r\n }", "public void paint(Graphics g) {\n }", "public void paint(Graphics g) {\n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }", "public void draw(Graphics graphics);", "public void paint(Graphics g) {\n\t\t\n\t}", "public void paintComponent(Graphics arg0) {\n\t\tsuper.paintComponent(arg0);\n\t\targ0.setColor(Color.BLACK); \n\t\tboard(arg0); \n\t\tdrawStone(arg0);\n\t}", "protected void paintComponent(Graphics graphics){\n super.paintComponent(graphics);\n\n Graphics2D g2d = (Graphics2D)graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n\n renderBackground(graphics);\n renderCard(graphics);\n renderCoin(graphics);\n }", "@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2d = (Graphics2D) g;\n drawAxis(g2d);\n \n drawCurve(g2d);\n \n drawPoints(g2d);\n \n // drawObject(g2d); **\n // El panel, por defecto no es \"focusable\". \n // Hay que incluir estas líneas para que el panel pueda\n // agregarse como KeyListsener.\n this.setFocusable(true);\n this.requestFocusInWindow();\n }", "public abstract void paint(Graphics g);", "public void paint( VisualGraphComponent component, Graphics2D g2d );", "public void drawOn(Graphics g);", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "public void paintComponent(Graphics g){\n\n\n\n r.render(g);\n }", "protected void paintComponent(Graphics g)\n/* */ {\n/* 126 */ if ((this.painter != null) || (isNimbus()))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 131 */ if (isOpaque())\n/* */ {\n/* 133 */ paintComponentWithPainter((Graphics2D)g);\n/* */ }\n/* */ else {\n/* 136 */ paintPainter(g);\n/* 137 */ super.paintComponent(g);\n/* */ }\n/* */ }\n/* */ else {\n/* 141 */ super.paintComponent(g);\n/* */ }\n/* */ }", "public void draw(Graphics g);", "public void draw(Graphics g);", "public void paintComponent(Graphics g) {\n\t\t// Use g to draw on the JPanel, lookup java.awt.Graphics in\n\t\t// the javadoc to see more of what this can do for you!!\n\t\t\n super.paintComponent(g); //paint background\n Graphics2D g2d = (Graphics2D) g; // lets use the advanced api\n\t\t// setBackground (Color.blue); \n\t\t// Origin is at the top left of the window 50 over, 75 down\n\t\tg2d.setColor(Color.white);\n g2d.drawString (\"i=\"+i, 50, 75);\n\t\ti=i+1;\n\t\t\n\t\t// Draw Shapes\n\t\tArrayList<Shape> shapes = this.model.getShapes();\n\t\tthis.dsf = new DrawShapeFactory(shapes, this.shape);\n\t\tthis.dsf.paintComponent(g2d);\n\t\t\n\t\tg2d.dispose();\n\t}", "public void draw(Graphics g){\n\t}", "public abstract void selfPaint(Graphics g);", "public void paintComponent(Graphics page) {\n\t super.paintComponent(page); // execute the paint method of JPanel\n\t dwg.draw(page); // have the drawing draw itself\n\t }", "public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tg2 = (Graphics2D) g;\n\t\tdibujar(g);\n\t\tactualizar();\n\t}", "public void paint(Graphics g)\n/* */ {\n/* 100 */ Graphics2D g2d = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 103 */ this.painter.paint(g2d, this.c, this.c.getWidth(), this.c.getHeight());\n/* */ } finally {\n/* 105 */ g2d.dispose();\n/* */ }\n/* */ }", "public void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\tthis.setBackground(Color.ORANGE);\r\n\t\t\r\n\t\t//-------------------------------------------------------------------------------\r\n\t\t\r\n\t\tclass SquareColours {\r\n\t\t\t\r\n\t\t\tprivate int x,y,z;\r\n\t\t\t\r\n\t\t\t//---------------------------------------------------------------------------\r\n\t\t\t\r\n\t\t\tSquareColours(int x, int y, int z) {\r\n\t\t\t\tthis.x = x;\r\n\t\t\t\tthis.y = y;\r\n\t\t\t\tthis.z = z;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//---------------------------------------------------------------------------\r\n\t\t\t\r\n\t\t\tpublic void chooseSquareColours() {\r\n\t\t\t\tint k = this.z;\r\n\t\t\t\t\r\n\t\t\t\tswitch(k) {\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\tg.setColor(new Color(0,0,255)); //draws unvisited squares as blue\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tg.setColor(new Color(0,255,0)); //draws squares on the mouse's path as green\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2: \r\n\t\t\t\t\t\tg.setColor(new Color(255,0,0)); //draws the mouse trap squares as red\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3: \r\n\t\t\t\t\t\tg.setColor(Color.BLACK);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault: g.setColor(new Color(100,100,100));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//---------------------------------------------------------------------------\r\n\t\t\t\r\n\t\t\tpublic void drawSquares(int i, int j) {\r\n\t\t\t\t\tg.fillRect(i*50,j*50,49,49);\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\tfor (int i = 0;i < 11;i++) {\r\n\t\t\tfor (int j = 0;j < 11; j++) {\r\n\t\t\t\tSquareColours A = new SquareColours(i,j,getVal(i,j));\r\n\t\t\t\tA.chooseSquareColours();\r\n\t\t\t\tA.drawSquares(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*SquareColours A = new SquareColours(0,0,getVal(0,0));\r\n\t\tA.chooseSquareColours();\r\n\t\tA.drawSquares(0,0);\r\n\t\t\r\n\t\tSquareColours B = new SquareColours(1,2,getVal(1,2));\r\n\t\tB.chooseSquareColours();\r\n\t\tB.drawSquares(1,2);*/\r\n\t\t\r\n\t}", "public abstract void draw(Graphics g);", "public abstract void draw(Graphics g);", "public abstract void draw(Graphics g);", "public abstract void draw(Graphics g);", "public void draw(Graphics g) {\r\n\t\t\r\n\t}", "public void paintComponent(Graphics g) {\n // Setup\n Graphics2D g2d = (Graphics2D) g; int txt_h = Utils.txtH(g2d, \"0\");\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n // Paint the super\n super.paintComponent(g2d); \n\n // Get the render context and draw if it's valid\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n // Draw the interactions\n drawInteractions(g2d, myrc);\n\n // Draw the edge lens\n if (mode() == UI_MODE.EDGELENS) drawEdgeLens(g2d, myrc);\n else if (mode() == UI_MODE.TIMELINE) drawTimeLine(g2d, myrc);\n\n // Draw the selection\n Set<String> sel = getRTParent().getSelectedEntities(); if (sel == null) sel = new HashSet<String>();\n if (sel.size() > 0 || sticky_labels.size() > 0) { drawSelectedEntities(g2d, myrc, sel, sticky_labels, txt_h);\n } else { String str = \"\" + mode(); modeColor(g2d); g2d.drawString(\"\" + str, 5, txt_h); }\n\n // Draw the dynamic labels -- under the mouse for context\n String dyn_labeler_copy = dyn_labeler;\n if (dyn_label_cbmi.isSelected() && \n dyn_labeler_copy != null && \n myrc.node_coord_set.containsKey(dyn_labeler_copy)) drawDynamicLabels(g2d, myrc, dyn_labeler_copy);\n\n // If graph info mode, provide additional information\n if (myrc.provideGraphInfo()) { drawGraphInfo(g2d, myrc, sel); }\n\n // Draw the vertex placement heatmap (experimental)\n if (vertex_placement_heatmap_cbmi.isSelected()) {\n\t// Make sure it's a single selection (and that it's also a vertex);\n if (sel != null && sel.size() == 1) {\n\t String sel_str = sel.iterator().next(); if (entity_to_wxy.containsKey(sel_str)) {\n\t int hm_w = myrc.getRCWidth()/4, hm_h = myrc.getRCHeight()/4;\n\t // Determine if the heatmap will be large enough to provide value\n\t if (hm_w >= 50 && hm_h >= 50) {\n\t // Determine if the heatmap needs to be recalculated (doesn't consider if the size is still correct... or if the node shifted...\n\t if (hm_sel == null || hm_sel.equals(sel_str) == false || hm_bi == null) {\n\t hm_bi = GraphUtils.vertexPlacementHeatmap(new UniGraph(graph), sel_str, entity_to_wxy, hm_w, hm_h);\n\t\thm_sel = sel_str;\n }\n Composite orig_comp = g2d.getComposite(); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.7f)); // Partially transparent\n\t g2d.drawImage(hm_bi, myrc.getRCWidth() - hm_bi.getWidth(null), myrc.getRCHeight() - hm_bi.getHeight(null), null);\n\t g2d.setComposite(orig_comp);\n\t }\n\t }\n\t}\n }\n\n // Draw the highlighted entities\n highlightEntities(g2d, myrc);\n\n // Draw the excerpts\n drawExcerpts(g2d, myrc);\n }\n\n // Draw the help chart\n if (draw_help) drawHelp(g2d);\n }", "protected synchronized void paintComponent(Graphics g) {\n /*Call the paintComponent of the super class*/\n super.paintComponent(g);\n\n /*Cast the object to a Graphics2D object*/\n Graphics2D g2 = (Graphics2D) g;\n\n /*Enable rendering Antialiasing and other rendering optimizations*/\n g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n\n /***\n * Loop through the List that holds all the shapes.\n * shapesBuffer list and Draw them on screen\n */\n for (int i=0; i<labelBuffer.size(); i++)\n {\n /*Get the Concept for each index i*/\n ShapesInterface currentConcept = (ShapesInterface) labelBuffer.get(i);\n\n \n /*Pass from the connected List*/\n if (currentConcept instanceof ShapeConcept || currentConcept instanceof ShapeLinking) {\n for (int k=0; k<currentConcept.getConnComponenetsList().size(); k++) {\n /*Get the center point of this Concept*/\n Point p1 = currentConcept.getCenter();\n Point p2 = ((ShapesInterface) currentConcept.getConnComponenetsList().get(k)).getCenter();\n \n //Point p2 = ((ShapeConcept) currentConcept.getConnComponenetsList().get(k)).getCenter();\n\n g2.draw(new Line2D.Double(p1.x, p1.y, p2.x, p2.y));\n }//end for\n }//end if check\n }//end for\n\n}", "protected void doPaint(Graphics2D g, T component, int width, int height)\n/* */ {\n/* 353 */ for (Painter p : getPainters()) {\n/* 354 */ Graphics2D temp = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 357 */ p.paint(temp, component, width, height);\n/* 358 */ if (isClipPreserved()) {\n/* 359 */ g.setClip(temp.getClip());\n/* */ }\n/* */ } finally {\n/* 362 */ temp.dispose();\n/* */ }\n/* */ }\n/* */ }", "public void update(Graphics param1Graphics) {\n/* 252 */ paint(param1Graphics);\n/* */ }", "abstract public void draw(Graphics g);", "public void paintComponent(Graphics g)\n {\n int xRange = Integer.parseInt(xLabel);\n \n // Udhezimi per kthimin e vleres se variablave x1-6 ne proporcion me gjatsine e boshtit x te shprehur ne pixela\n int propX1 = ((x1*axisLength)/xRange)+xPos;\n int propX2 = ((x2*axisLength)/xRange)+xPos;\n int propX3 = ((x3*axisLength)/xRange)+xPos;\n int propX4 = ((x4*axisLength)/xRange)+xPos;\n int propX5 = ((x5*axisLength)/xRange)+xPos;\n int propX6 = ((x6*axisLength)/xRange)+xPos;\n \n g.setColor(Color.white);\n g.fillRect(0,0,width,height);\n g.setColor(Color.black);\n \n // Boshti x dhe y me gjatesi prej axisLength\n g.drawLine(xPos+2, yPos, xPos+axisLength, yPos);\n g.drawLine(xPos, yPos, xPos, yPos-axisLength);\n \n // Paraqitja e pikes max te boshtit x(xLabel) dhe boshtit y(yLabel)\n g.drawString(xLabel, xPos+axisLength, yPos+20);\n g.drawString(yLabel, xPos-20, yPos-axisLength);\n g.drawString(\"0\", xPos+5,yPos+20);\n g.drawString(\"0\", xPos-15,yPos-5);\n \n // Udhezimi per paraqitjen grafike te pikave ne panel\n g.fillOval(propX1,propY1-3,4,4);\n g.fillOval(propX2,propY2-3,4,4);\n g.fillOval(propX3,propY3-3,4,4);\n g.fillOval(propX4,propY4-3,4,4);\n g.fillOval(propX5,propY5-3,4,4);\n g.fillOval(propX6,propY6-3,4,4);\n \n // Udhezimi per paraqitjen e drejtezave te cilat lidhin pikat x1-5\n g.drawLine(propX1, propY1, propX2 ,propY2);\n g.drawLine(propX2, propY2, propX3, propY3);\n g.drawLine(propX3, propY3, propX4, propY4);\n g.drawLine(propX4, propY4, propX5, propY5);\n g.drawLine(propX5, propY5, propX6, propY6);\n }", "public abstract void draw(Graphics g, Color color);", "public void paint(Graphics graphics) {\r\n\tselectLineTipe(graphics);\r\n\r\n\tPointList polygonPoints = constructPolygonPoints();\r\n\r\n\tgraphics.drawPolygon(polygonPoints);\r\n\r\n\tdrawInstruction(graphics);\r\n }", "@Override\n public void paint(Graphics g) {\n }", "public abstract void paint(Graphics2D g);", "protected void paintComponent(Graphics g){\n g.drawOval(110,110,50,50);\n }", "protected void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\r\n\t\t\r\n\t\tInsets ins = this.getInsets();\r\n\t\tint varX = ins.left+5;\r\n\t\tint varY = ins.top+5;\r\n\r\n\t\tif ( pozicijaIgraca.equals(\"gore\")){\t\t\t\r\n\t\t\tfor(Card karta : karte){\r\n\t\t\t\tkarta.moveTo(varX, varY);\r\n\t\t\t\tkarta.draw(g, this);\r\n\t\t\t\tvarX = varX + karta.getWidth()+5;\r\n\t\t\t}\r\n\t\t\tg.setColor(Color.RED);\r\n\t\t\tg.drawString(imeIgraca, varX - 120, varY + 100);\r\n\t\t} else {\r\n\t\t\tfor(Card karta : karte){\r\n\t\t\t\tkarta.moveTo(varX, varY);\r\n\t\t\t\tkarta.draw(g, this);\r\n\t\t\t\tvarX = varX + karta.getWidth()/2;\r\n\t\t\t\tvarY = varY + karta.getHeight()/10;\r\n\t\t\t}\r\n\t\t\tg.setColor(Color.RED);\r\n\t\t\tg.drawString(imeIgraca, varX - 100 , varY + 90);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public void paintComponent(Graphics g, int xBeginMap, int yBeginMap, int xEndMap, int yEndMap,\n int xBeginSrc, int yBeginSrc, int xEndSrc, int yEndSrc)\n {\n if(isSelected==true) {\n g.setColor(new Color(0,255,0,125));\n Graphics2D g2d = (Graphics2D)g;\n Ellipse2D.Double circle = new Ellipse2D.Double(xBeginMap+15,yBeginMap+35, abs(xEndMap - xBeginMap)-30, abs(yEndMap - yBeginMap)-30);\n g2d.fill(circle);\n }\n g.drawImage(mainTexture,xBeginMap,yBeginMap,xEndMap,yEndMap,\n xBeginSrc,yBeginSrc,xEndSrc,yEndSrc,null);\n\n\n\n }", "public void draw(Graphics g) {\n\t\t\r\n\t}", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics;\n\n for (int i = 0; i < myDrawingArray.size(); i++) {\n final Drawing drawing = myDrawingArray.get(i);\n g2d.setPaint(drawing.getColor());\n g2d.setStroke(new BasicStroke(drawing.getWidth()));\n g2d.draw(drawing.getShape());\n }\n \n if (myCurrentShape != null) {\n g2d.setPaint(myCurrentShape.getColor());\n g2d.setStroke(new BasicStroke(myCurrentShape.getWidth()));\n g2d.draw(myCurrentShape.getShape());\n }\n \n if (myGrid) { //Paints the grid if myGrid is true.\n g2d.setStroke(new BasicStroke(1));\n g2d.setPaint(Color.GRAY);\n for (int row = 0; row < getHeight() / GRID_SPACING; row++) {\n final Line2D line = new Line2D.Float(0, GRID_SPACING + (row * GRID_SPACING),\n getWidth(), GRID_SPACING + (row * GRID_SPACING));\n g2d.draw(line);\n }\n for (int col = 0; col < getWidth() / GRID_SPACING; col++) {\n final Line2D line = new Line2D.Float(GRID_SPACING \n + (col * GRID_SPACING), 0,\n GRID_SPACING\n + (col * GRID_SPACING), getHeight());\n g2d.draw(line);\n }\n \n }\n }", "public void draw(Graphics g) {\n\t\t\n\t}", "public void paintComponent( Graphics g )\r\n\t{\r\n Graphics2D g2 = (Graphics2D)g;\r\n \r\n // Draw the map\r\n if( showMap )\r\n drawMap( g2 );\r\n \r\n // Draw mobile objects, beacons, and information sources\r\n drawAWDDevices( g2, sim.getMobileObjects(), MOBILE_OBJECT_COLOUR, MOBILE_OBJECT_RADIUS );\r\n drawAWDDevices( g2, sim.getBeacons(), BEACON_COLOUR, BEACON_RADIUS );\r\n drawAWDDevices( g2, sim.getInformationSources(), INFORMATION_SOURCE_COLOUR, INFORMATION_SOURCE_RADIUS );\r\n \r\n // Draw communication sessions\r\n if( showCommunicationSessions )\r\n {\r\n drawAWDSessions( g2, sim.getMobileObjects() );\r\n drawAWDSessions( g2, sim.getBeacons() );\r\n drawAWDSessions( g2, sim.getInformationSources() );\r\n }\r\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n render(g);\n }", "protected abstract void paint(Graphics g, Object iDrawSurfaceID);", "protected void paintComponent(Graphics g) {\n \t\n \tif(refreshRate != 0)//if FPS is set to 0, this will simulate a 'frozen' state\n \tt.setDelay(1000 / refreshRate);//creates desired FPS\n \t//if-else statement used for incrementing and resetting repaintCount, and used for calculating the FPS which is displaye dby fpsPanel.java\n \tif (repaintCount++ > 0) {\n long curTime = System.currentTimeMillis();\n long elapseTime = curTime - startTime;\n rate = ((double)(repaintCount - 1)) / (elapseTime / 1000.0);\n } else {\n startTime = System.currentTimeMillis();\n }\n super.paintComponent(g);\n g.setColor(backColor);//backcolor controls the color of the background\n g.fillRect(0, 0, getWidth(), getHeight());\n g.setColor(objectColor);//objectColor controls the color of the shape\n if(oval)\n \tg.drawArc(x, y, width, height, 0, 360);\n if (rect)\n \tg.drawRect(x, y, width, height);\n if (rectround){\n RoundRectangle2D roundedRectangle = new RoundRectangle2D.Float(x, y, width, height,5,5);\n ((Graphics2D) g).draw(roundedRectangle); \n }\n g.setColor(textColor);//textColor controls the color of the text\n g.setFont(f);\n if (small)\n \tg.drawString(\"(\"+x+\",\"+y+\")\",x-15,y+13);//positioned properly for all small sizes\n if(medium)\n \tg.drawString(\"(\"+x+\",\"+y+\")\",x+1,y+16);//coordinates position properaly for all medium sizes\n if(large)\n \tg.drawString(\"(\"+x+\",\"+y+\")\",x+50,y+25);//coordinates position properly for all large sizes\n \t\n }", "@Override\n public void paintComponent() {\n Graphics2D graphics = gameInstance.getGameGraphics();\n graphics.setColor(Color.ORANGE);\n\n final int diff = (PacmanGame.GRID_SIZE/2) - pointCircleRadius;\n graphics.fill(new Ellipse2D.Double(this.x + diff, this.y + diff, pointCircleRadius*2, pointCircleRadius*2));\n }", "@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }", "@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tGraphics2D ga = (Graphics2D) g; \n\t\t\tif (currentColor == color) {\n\t\t\t\tShape check = factory.getShape(ShapeFactory.CHECK);\n\t\t\t\tcheck.setPosition(new Point2D.Double(point.getX() + getPreferredSize().width/2 - 7, point.getY()+ 25));\n\t\t\t\tga.setColor(currentColor);\n\t\t\t\tcheck.draw(ga);\n\t\t\t}\n\t\t}", "protected void paintComponent(final Graphics theGraphics) {\n\n super.paintComponent(theGraphics);\n final Graphics2D g2D = (Graphics2D) theGraphics;\n\n g2D.setPaint(COLOR_OLIVE);\n g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n final Point2D start = new Point2D.Float(0, 0);\n final Point2D end = new Point2D.Float(myFrame.getWidth(), myFrame.getHeight());\n final float[] dist = {0.0f, 0.5f, 1.0f};\n final Color[] colors = {COLOR_SAND, COLOR_OLIVE, COLOR_TAN};\n final LinearGradientPaint gradient = new LinearGradientPaint(start, end, dist, colors);\n \n g2D.setPaint(gradient);\n g2D.fill(new Rectangle(0, 0, myFrame.getWidth(), myFrame.getHeight()));\n\n }", "public void paintComponent(Graphics g){\n\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\tGradientPaint gradient = new GradientPaint(0, 0, Color.ORANGE, this.getWidth(), this.getHeight(), Color.RED);\n\t\t\tg2d.setPaint(gradient);\n\t\t\tg2d.fillRect(0, 0, this.getWidth(), this.getHeight());\n\t\t\t\n\t\t\tg2d.setColor(Color.green);\n\t\t\tg2d.fillOval(x, y, 40, 40);\n\t\t\n\t\t}", "public void paintComponent(Graphics g) {\n super.paintComponent(g);\n drawImage(g);\n }", "@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2 = (Graphics2D) g; \n\t\tg2.setColor(Color.lightGray);\n\t\tg2.fill(model.bg);\n\t\tg2.setColor(Color.darkGray);\n\t\tg2.fillPolygon(model.terrain);\n\t\tg2.setColor(Color.gray);\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tg2.draw(model.circles.get(i));\n\t\t}\n\t\tif (model.curCircleSel != -1) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.circles.get(model.curCircleSel));\n\t\t}\n\t\tg2.setColor(Color.RED);\n\t\tg2.fill(model.pad);\n\t\tif (curPadSel) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.pad);\n\t\t}\n\t}", "@Override\n\tpublic void draw(Graphics g, JPanel panel) {\n\t\t\n\t}", "protected void paintComponentWithPainter(Graphics2D g)\n/* */ {\n/* 200 */ if (this.ui != null)\n/* */ {\n/* */ \n/* */ \n/* 204 */ Graphics2D scratchGraphics = (Graphics2D)g.create();\n/* */ try {\n/* 206 */ scratchGraphics.setColor(getBackground());\n/* 207 */ scratchGraphics.fillRect(0, 0, getWidth(), getHeight());\n/* 208 */ paintPainter(g);\n/* 209 */ this.ui.paint(scratchGraphics, this);\n/* */ }\n/* */ finally {\n/* 212 */ scratchGraphics.dispose();\n/* */ }\n/* */ }\n/* */ }", "public void paint(GraphicsPanel graphicsPanel) {\r\n final int nonSelectedNodeDiameter = 6;\r\n final int selectedNodeDiameter = 20;\r\n \r\n \tPoint2D.Double point = getPoint(); \r\n \tgraphicsPanel.setStroke(1F);\r\n final Color color = network.isExpandedNode(this) ? Color.blue : Color.RED;\r\n graphicsPanel.setColor(color);\r\n graphicsPanel.drawString(getName_r(), point);\r\n graphicsPanel.setStroke(0f);\r\n graphicsPanel.drawCircle(point, color, nonSelectedNodeDiameter);\r\n graphicsPanel.setStroke(6f);\r\n \tif (network.selectedMicroZone != null) {\r\n \tfor (Integer nodeNumber : network.selectedMicroZone.getNodeList()) {\r\n \t\t\t\tNode node = network.lookupNode(nodeNumber, true);\r\n \t\t\t\tif (this == node)\r\n \t\t\t\t\tgraphicsPanel.drawCircle(point, Color.BLUE, selectedNodeDiameter);\r\n \t}\r\n \t}\r\n if ((null != network.startNode) && (getNodeID() == network.startNode.getNodeID()))\r\n \tgraphicsPanel.drawCircle(point, Color.RED, selectedNodeDiameter);\r\n if ((null != network.endNode) && (getNodeID() == network.endNode.getNodeID()))\r\n \tgraphicsPanel.drawCircle(point, Color.PINK, selectedNodeDiameter);\r\n if (null != conflictArea) {\r\n \tgraphicsPanel.setStroke(1F);\r\n \tgraphicsPanel.setColor(Color.CYAN);\r\n \tgraphicsPanel.drawPolyLine(conflictArea);\r\n }\r\n if (null != circle) {\r\n \tgraphicsPanel.setStroke(1F);\r\n \tdouble r = graphicsPanel.translate(new Point2D.Double(circle.radius(), 0)).distance(graphicsPanel.translate(new Point2D.Double(0, 0)));\r\n \tgraphicsPanel.drawCircle(circle.center(), Color.CYAN, (int) (2 * r));\r\n }\r\n \t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "public void paint(Graphics g) {\n\tupdate(g);\n }", "public void paintComponent(Graphics g)\n\t{\n\t\tsuper.paintComponent(g);\n\t\t// The following methods can be found in the Graphics class API\n\t\tg.setColor(Color.YELLOW); // Set the color to red\n\t\tg.fillOval(90, 100, 50, 50);\t// Draws a red circle\n\t\tg.setColor(Color.RED);\n\t\tg.fillRect(105, 150, 20, 100);\t// Draws a blue rectangle\n\t\tg.fillRect(40, 170, 60, 20);\n\t\tg.fillRect(120, 170, 60, 20);\n\t\tg.setColor(Color.BLUE);\n\t\tg.fillRect(90, 250, 20,100);\n\t\tg.fillRect(120, 250, 20,100);\n\t\t\n\t\tg.setColor(Color.YELLOW); // Set the color to red\n\t\tg.fillOval(390, 100, 50, 50);\t// Draws a red circle\n\t\tg.setColor(Color.RED);\n\t\tg.fillRect(405, 150, 20, 100);\t// Draws a blue rectangle\n\t\tg.fillRect(340, 170, 60, 20);\n\t\tg.fillRect(420, 170, 60, 20);\n\t\tg.setColor(Color.BLUE);\n\t\tg.fillRect(390, 250, 20,100);\n\t\tg.fillRect(420, 250, 20,100);\n\t}", "private void doDrawing(Graphics g) {//Void function takes in g from Old graphics class\r\n\r\n Graphics2D g2d = (Graphics2D) g; //Extends the old Graphics class into the newer more advanced\r\n g2d.drawString(\"Hello World!\", 50, 50);//Draws string on the panel with the draw string method\r\n }", "@Override\n\tpublic void draw(Graphics graphics) {\n\t\tgraphics.setColor(Color.black);\t\t\t\t\t\t\t\t\t//Farbe schwarz\n\t\tgraphics.drawRect(point.getX(),point.getY() , width, height);\t//malt ein leeren Rechteck\n\t}", "@Override\r\n public void paintComponent(Graphics g) {\r\n super.paintComponent(g); g.setColor(Color.ORANGE);\r\n if (drawCirc == 0) {\r\n \tg.fillOval(txtLft,txtTop,txtWidth,txtHeight);\r\n }\r\n }", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }", "public void paintComponent(Graphics g)\n\t{\n\t\tsuper.paintComponent(g);\t\n\t\tGraphics2D g2d = (Graphics2D)g;\t\t\n\t\t//Draw the results if they exist\n\t\tif (totalEntered == null) {\n\t\t\tdrawNoResultsMessage();\n\t\t} else {\n\t\t\tdrawBox(g2d);\n\t\t\tdrawScale(g2d);\n\t\t\tdrawLegend(g2d);\n\t\t\tdrawDescription();\n\t\t\tdrawGraphFromPoints(g2d);\n\t\t}\t\t\n\t}", "public void paintComponent(Graphics g)\n {\n Graphics2D g2 = (Graphics2D) g;\n g2.setColor(Color.ORANGE);\n g2.fillOval(currentBallX,currentBallY,diameter,diameter);\n }", "public void paintComponent(Graphics g){\n\t\tsuper.paintComponent(g);\n\t\tdisp.notifyAll(g);\n\t}", "public abstract void draw(Graphics2D graphics);", "@Override\r\n protected void paintComponent(Graphics g) {\r\n\r\n Graphics2D g2d = (Graphics2D) g;\r\n\r\n g2d.setColor(new Color(52, 73, 94));\r\n g2d.fillRect(0, 0, getWidth(), getHeight());\r\n }", "public void paintComponent(Graphics g) {\n \n super.paintComponent(g); // call superclass's paint method\n\n //this.setBackground(Color.GRAY); \n \n // Iterators & misc. variables\n int i;\n int j;\n char tempchar;\n String tempstring = null;\n \n // Length of the lines\n int rowlinelength = numcols*boxsize;\n int collinelength = numrows*boxsize;\n \n // Draw the row lines\n int yloc;\n for(i = 0;i<numrows+1;i++){\n yloc = i*boxsize;\n g.drawLine(0, yloc, rowlinelength, yloc); \n }\n \n // Draw the column lines\n int xloc;\n for(i = 0;i<numcols+1;i++){\n xloc = i*boxsize;\n g.drawLine(xloc, 0, xloc, collinelength);\n }\n \n // Set the font\n g.setFont(new Font(\"SansSerif\", Font.PLAIN, 24));\n \n // Draw the text\n for(i = 0;i<numrows;i++){\n yloc = (boxsize*i) + (int)Math.floor(boxsize/2); \n for(j = 0;j<numcols;j++){\n xloc = (boxsize*j) + (int)Math.floor(boxsize/2);\n tempchar = chargrid[i][j];\n tempstring = Character.toString(tempchar);\n g.drawString(tempstring, xloc, yloc);\n }\n }\n \n \n }", "protected void paintComponent(Graphics g) \n {\t\t\n // clear panel\n g.setColor(Color.white);\n g.fillRect(0, 0, getSize().width, getSize().height);\n if( coords == null )\n return;\n\n int[][] tour = scaleTour(getSize().width, getSize().height);\n int nnodes = tour[0].length;\n\t\t\n // draw red lines connecting successive nodes \n g.setColor(Color.red);\n for( int i = 0; i < nnodes; i++ )\n {\n g.drawLine(tour[0][i], tour[1][i], tour[0][(i+1) % nnodes], tour[1][(i+1) % nnodes]);\n }\n\n // draw a yellow circle with orange boundary for each node\n for( int i = 0; i < nnodes; i++ )\n {\n g.setColor(Color.yellow);\n g.fillOval(tour[0][i] - diam/2, tour[1][i] - diam/2, diam, diam);\n g.setColor(Color.orange);\n g.drawOval(tour[0][i] - diam/2, tour[1][i] - diam/2, diam, diam);\n }\n }", "public void paintComponent(Graphics thing)\n {\n int frameHeigth = PiSaver.getFrameHeight();\n int frameWidth = PiSaver.getFrameWidth();\n \n super.paintComponent(thing);\n if (frameHeigth > 0 && frameWidth > 0)\n {\n thing.drawImage(backgroundList.get(g_iBackgroundIndex), 0, 0, this);\n }\n \n thing.setColor(Color.yellow);\n thing.fillPolygon(myPi);\n }", "void paintMainArea(Graphics g);", "public void paintComponent(Graphics g){\n\t\tg.drawImage(bf, 0, 0, this);\n\t}", "@Override\n public void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,super.getWidth(),super.getHeight());\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, getWidth(), getHeight());\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, getWidth(), getHeight());\n }\n }", "public void paintComponent(Graphics g)\n\t{\n\t\t\n\t\t\n\t\t// Get the current width and height of the window.\n\t\tint width = getWidth(); // panel width\n\t\tint height = getHeight(); // panel height\n\t\t// Calculate the new xOffset position of the moving object.\n\t\t\n\t\t\t\txOffset = (xOffset +stepSize) % width;\n\t\t\t\t\n\t\t// Fill the graphics page with the background color.\n\t\tg.setColor(BACKGROUND_COLOR);\n\t\tg.fillRect(0, 0, width, height);\n\t\t\n\t\t//This draw the road\n\t\tint x = width/5;\n\t\tint y= height/4;\n\t\tg.setColor(new Color(211,211,211));\n\t\tg.fillRect(0, height/2, width, height/5);\n\t\t\n\t\t\n\t\t// \tThis draw the pavement \n\t\tg.setColor(new Color(245,245,220));\n\t\tg.fillRect(0,7*height/10, width, 3*height/10);\n\t\t\n\t\t// This draw paint on the road\n\t\tg.setColor(new Color(255,165,0));\n\t\tg.fillRect(0, 3*height/5, x/2, height/40);\n\t\tg.setColor(new Color(255,165,0));\n\t\tg.fillRect(x, 3*height/5, x/2, height/40);\n\t\tg.setColor(new Color(255,165,0));\n\t\tg.fillRect(2*x, 3*height/5, x/2, height/40);\n\t\tg.setColor(new Color(255,165,0));\n\t\tg.fillRect(3*x, 3*height/5, x/2, height/40);\n\t\tg.setColor(new Color(255,165,0));\n\t\tg.fillRect(4*x, 3*height/5, x/2, height/40);\n\t\tg.setColor(new Color(255,165,0));\n\t\tg.fillRect((int)(4.75*x), 3*height/5, x/2, height/40);\n\t\t\n\t\t\n\t\t// This draws background theme\n\t\tg.setColor(new Color(212,39,41));\n\t\tg.fillRect(0,0, x, height/2);\n\t\tg.setColor(new Color(1,87,174));\n\t\tg.fillRect(x,0, x, height/2);\n\t\tg.setColor(new Color(255,255,255));\n\t\tg.fillRect(2*x,0, x, height/2);\n\t\tg.setColor(Color.RED);\n\t\tg.fillRect(3*x,0, x, height/2);\n\t\tg.setColor(new Color(0,6,84));\n\t\tg.fillRect(4*x,0, x, height/2);\n\n\t\t\t\t\n\n\t\t// Insert a string \n\t\tg.setColor(Color.BLACK);\n\t\tString str = \"Stand up and Salute!!!!!\";\n\t\tg.setFont(new Font(\"Courier New\", Font.BOLD+ Font.ITALIC,y/5));\n g.drawString(str,(int)(1.5*x), height/6);\n\t\t\n // This draw a tank \n \n //This draw rectangle1\n \tg.setColor(new Color(29,33,13));\n \tg.fillRect(xOffset+7*width/50,23*height/72,3*width/25,height/9);\n \n // This draw rectangle2 \n\t\tg.setColor(new Color(29,33,13));\n\t\tg.fillRect(xOffset+width/10,(int)(1.5*y),width/5 ,height/9 );\n\t\t\n\t\t// This draw a logo on rect2\n\t\tg.setColor(Color.WHITE);\n\t\tString ban = \"TEAM USA\";\n\t\tg.setFont(new Font(\"Courier New\", Font.BOLD+ Font.ITALIC,y/5));\n g.drawString(ban,xOffset+(int)(0.12*width), 31*height/72);\n\t\t\n\t\t//This draw 2 triangles \n\t\tg.setColor(new Color(125,138,53));\n\t\t\n\t\tg.drawLine(xOffset, (int)(35*y/18),xOffset+width/10,(int)(1.5*y));\n\t\tg.drawLine(xOffset,(int)(35*y/18), xOffset+width/10,(int)(35*y/18));\n\t\t\n\t\tg.drawLine(xOffset+3*width/10, (int)(1.5*y),xOffset+4*width/10, 35*y/18);\n\t\tg.drawLine(xOffset+3*width/10,35*y/18, xOffset+4*width/10, 35*y/18);\n\t\t\n\t\n\t\t// This draw rectangle3\n\t\tg.fillRect(xOffset+13*width/50, 23*height/72, width/10, height/40);\n\t\t\n\t\t//This draw a rectangle4\n\t\tg.setColor(new Color(25,28,11));\n\t\tg.fillRect(xOffset+9*width/25,557*height/1800 ,7*width/90, (int)(1.5*height/35));\n\t\t//This draw a missile launched from the tank\n\t\tg.setColor(new Color(255,215,0));\n\t\tg.fillArc(xOffset+58*width/225,557*height/1800 ,xOffset+11*width/90, (int)(1.5*height/35),0, 45);\n\t\t\n\t\t//This draw 2 wheels\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillOval(xOffset, (int)(35*y/18),3*width/50 , 9*height/100);\n\t\tg.fillOval(xOffset+(int)(0.35*width),(int)(35*y/18), 3*width/50, 9*height/100);\n\t\t\n\t\t// This draw person1 watching the tank passing by\n\t\tg.setColor(new Color(205,183,158));\n\t\tg.fillOval(x, 3*y, 3*width/50, 9*height/100);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillRoundRect(x, 21*height/25, 3*width/40, 9*height/60,180,90);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillArc((int)(0.95*x), 3*y, 4*width/50, 9*height/100, 0, 180);\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillOval(19*width/80,183*height/200, width/80 , height/80);\n\t\tg.fillOval(19*width/80, 47*height/50, width/80, height/80);\n\t\tg.fillOval(19*width/80, 89*height/100, width/80, height/80);\n\t\t\n\t\t// This draw person2 watching the tank passing by\n\t\tg.setColor(new Color(205,183,158));\n\t\tg.fillOval((int)(1.5*x), 3*y, 3*width/50, 9*height/100);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillRoundRect((int)(1.5*x), 21*height/25, 3*width/40, 9*height/60,180,90);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillArc((int)(1.45*x), 3*y, 4*width/50, 9*height/100, 0, 180);\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillOval(27*width/80,183*height/200, width/80 , height/80);\n\t\tg.fillOval(27*width/80, 47*height/50, width/80, height/80);\n\t\tg.fillOval(27*width/80, 89*height/100, width/80, height/80);\n\t\t\n\t\t// This draw person3 watching the tank passing by\n\t\tg.setColor(new Color(205,183,158));\n\t\tg.fillOval((int)(2*x), 3*y, 3*width/50, 9*height/100);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillRoundRect((int)(2*x), 21*height/25, 3*width/40, 9*height/60,180,90);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillArc((int)(1.95*x), 3*y, 4*width/50, 9*height/100, 0, 180);\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillOval(7*width/16,183*height/200, width/80 , height/80);\n\t\tg.fillOval(7*width/16, 47*height/50, width/80, height/80);\n\t\tg.fillOval(7*width/16, 89*height/100, width/80, height/80);\n\t\t\n\t\t// This drawperson4 watching the tank passing by\n\t\tg.setColor(new Color(205,183,158));\n\t\tg.fillOval((int)(2.5*x), 3*y, 3*width/50, 9*height/100);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillRoundRect((int)(2.5*x), 21*height/25, 3*width/40, 9*height/60,180,90);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillArc((int)(2.45*x), 3*y, 4*width/50, 9*height/100, 0, 180);\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillOval(43*width/80,183*height/200, width/80 , height/80);\n\t\tg.fillOval(43*width/80, 47*height/50, width/80, height/80);\n\t\tg.fillOval(43*width/80, 89*height/100, width/80, height/80);\n\t\t\n\t\t// This draw person5 watching the tank passing by\n\t\tg.setColor(new Color(205,183,158));\n\t\tg.fillOval((int)(3*x), 3*y, 3*width/50, 9*height/100);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillRoundRect((int)(3*x), 21*height/25, 3*width/40, 9*height/60,180,90);\n\t\tg.setColor(new Color(125,138,53));\n\t\tg.fillArc((int)(2.95*x), 3*y, 4*width/50, 9*height/100, 0, 180);\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillOval(51*width/80,183*height/200, width/80 , height/80);\n\t\tg.fillOval(51*width/80, 47*height/50, width/80, height/80);\n\t\tg.fillOval(51*width/80, 89*height/100, width/80, height/80);\n\t\t\n\t\t// This draw a small plane flying across the screen with a banner \n\t\tg.setColor(new Color(255,87,51));\n\t\tg.fillRoundRect(-xOffset+(int)(0.75*width),0, width/8, height/9, 90, 90);\n\t\t\n\t\t\n\t\tg.setColor(new Color(218,247,166));\n\t\tg.fillRect(-xOffset+4*width/5,0,width/5,height/9);\n\t\t\n\t\tg.setColor(new Color(8,24,69));\n\t\tg.fillRoundRect(-xOffset+(int)(0.85*width),height/27,width/20,height/20,180,90);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t\t// Put your code above this line. This makes the drawing smoother.\n\t\tToolkit.getDefaultToolkit().sync();\n\t}", "public abstract void paint(Graphics2D g2d);", "@Override\r\n\t\tpublic void paint(Graphics g) {\n\t\t\tsuper.paint(g);\r\n\t\t}", "public abstract void draw( Graphics2D gtx );", "public void paint(Graphics g) {\n super.paint(g);\n\n }", "@Override\n public void draw(Graphics graphics){\n graphics.fillRect(referencePoint.getX() + width / 3, referencePoint.getY() + height / 3, width / 3, height / 3);\n }" ]
[ "0.8168317", "0.8025027", "0.802444", "0.79677856", "0.79393387", "0.78234065", "0.76889354", "0.76879615", "0.7620151", "0.76031077", "0.7587732", "0.75847363", "0.75536245", "0.75536245", "0.7540554", "0.7524253", "0.75003105", "0.75003105", "0.74645776", "0.74543524", "0.7412394", "0.7397597", "0.73916733", "0.73821884", "0.7360099", "0.7310777", "0.7288783", "0.7284663", "0.72665715", "0.7227873", "0.72074616", "0.7202782", "0.7202782", "0.71986073", "0.7188431", "0.71655905", "0.7149085", "0.7114142", "0.7107791", "0.7081628", "0.7076749", "0.7076749", "0.7076749", "0.7076749", "0.70719063", "0.7065367", "0.7061104", "0.7050899", "0.7044017", "0.70420176", "0.7039802", "0.7033439", "0.70332474", "0.70289475", "0.70251197", "0.7024364", "0.7013435", "0.70129335", "0.70108896", "0.70057636", "0.7001217", "0.6971371", "0.69664675", "0.69637513", "0.6961911", "0.69618446", "0.69606906", "0.6944959", "0.6935719", "0.693055", "0.69301087", "0.6914237", "0.69043124", "0.6901109", "0.68780637", "0.687086", "0.687086", "0.6870441", "0.68665326", "0.6860224", "0.685777", "0.68570226", "0.6849795", "0.68463945", "0.6846257", "0.68449646", "0.6843297", "0.684229", "0.68270946", "0.681628", "0.681406", "0.6812316", "0.6809191", "0.6804549", "0.6804062", "0.6796377", "0.67954373", "0.67948925", "0.6787911", "0.67764205", "0.67711884" ]
0.0
-1
Function : intializeThread Use : intialize the thread Parameter : String object Returns : Nothing
public void intializeThread(String algorithm) { thread = new Thread(this); // creating a new thread thread.start(); // starting a thread this.comboAlgorithm = algorithm; this.setThreadState(); // calling the thread state method }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ThreadStart createThreadStart();", "private static native Object setupMainThread0(Object thread);", "public void createThread() {\n }", "public static void initCommunicationClientThread(){\r\n new CommunicationClientThread();\r\n }", "private ThreadUtil() {\n \n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "public void setInitThread(Thread work) {\n\t\tinitThread = work;\n\t\t\n\t}", "NetThread(){}", "public UCharacterThreadTest()\n {\n }", "public void setThread(Thread t);", "public OneValueThread(ThreadLocal<Integer> threadLocal) {\n\t\tthis.threadLocal = threadLocal;\n\t}", "public void initReloj(){\r\n Thread r1 = new Thread(this,\"Reloj\");\r\n r1.start();\r\n }", "public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}", "void startThread();", "private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}", "public void setThread(LoadThread thread) {\r\n this.thread = thread;\r\n }", "private ThreadUtil() {\n }", "public void init() {\n Thread run = new Thread(new Run());\n run.start();\n }", "public MainThread()\n {\n super();\n setPriority(1);\n setId(0x55); \n }", "public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "private void initThread(String user, String pass){\n AutomatedClient c = new AutomatedClient(user, pass);\n Thread t = new Thread(c);\n threads.put(user, t);\n clients.put(user, c);\n t.start();\n }", "public void startThread(VirtualThread newThread) {\n\t\tlog.debug(\"**** CREATING A THREAD? ****\");\n\t}", "NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }", "public static void main(String[] args) {\n\t\n System.out.println(ANSI_Black+\"Hello from Main thread\");\n\tThread extendThread = new ThreadExtendsExample();\n\textendThread.setName(\"ThreadByExtends1~\");\n\textendThread.start();\n\t\n\t//java.lang.IllegalThreadStateException, same thread cannot be started again\n\t//extendThread.start();\n\tThread extendThread2 = new ThreadExtendsExample();\n\textendThread2.setName(\"ThreadByExtends2~\");\n\textendThread2.start();\n\t\n\t\n\t\n\tThreadImplExample implThread = new ThreadImplExample();\n\timplThread.run();\n\t\n\t\n\tThread runnableThread = new Thread(new ThreadImplExample());\n\trunnableThread.start();\n\t\n\t\n\t\n\tSystem.out.println(ANSI_Black+\"Hello Again from Main thread\");\n\t\n}", "PythonThread(Python python, String code) {\n this.python = python;\n this.code = code;\n this.ptf = new PythonTraceFunction();\n this.py = new PythonInterpreter();\n }", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "public ThreadState(KThread thread) \n {\n this.thread = thread;\n setPriority(priorityDefault);\n }", "protected void initJvmThreading(MBeanServer paramMBeanServer) throws Exception {\n/* 423 */ String str = getGroupOid(\"JvmThreading\", \"1.3.6.1.4.1.42.2.145.3.163.1.1.3\");\n/* 424 */ ObjectName objectName = null;\n/* 425 */ if (paramMBeanServer != null) {\n/* 426 */ objectName = getGroupObjectName(\"JvmThreading\", str, this.mibName + \":name=sun.management.snmp.jvmmib.JvmThreading\");\n/* */ }\n/* 428 */ JvmThreadingMeta jvmThreadingMeta = createJvmThreadingMetaNode(\"JvmThreading\", str, objectName, paramMBeanServer);\n/* 429 */ if (jvmThreadingMeta != null) {\n/* 430 */ jvmThreadingMeta.registerTableNodes(this, paramMBeanServer);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 436 */ JvmThreadingMBean jvmThreadingMBean = (JvmThreadingMBean)createJvmThreadingMBean(\"JvmThreading\", str, objectName, paramMBeanServer);\n/* 437 */ jvmThreadingMeta.setInstance(jvmThreadingMBean);\n/* 438 */ registerGroupNode(\"JvmThreading\", str, objectName, jvmThreadingMeta, jvmThreadingMBean, paramMBeanServer);\n/* */ } \n/* */ }", "private void initThread() {\r\n\t\tthreadPreviewDataToImageData = new ThreadPreviewDataToImageData();\r\n\t\t// threadPreviewDataToFakePictureImageData = new\r\n\t\t// ThreadPreviewDataToFakePictureImageData();\r\n\t\t// threadPreviewYUVDecode = new ThreadPreviewYUVDecode();\r\n\r\n\t\tthreadPreviewDataToImageData.start();\r\n\t\t/*\r\n\t\t * if (CameraConfigure.isUseFakeImageData) { //\r\n\t\t * threadPreviewDataToFakePictureImageData.start(); } else {\r\n\t\t * //threadPreviewYUVDecode.start(); }\r\n\t\t */\r\n\r\n\t\t/** preview callback to ThreadPreviewDataToImageData */\r\n\t\tif (null == BlockingQueuePreviewData.getBlockingQueuePreviewData()) {\r\n\t\t\tnew BlockingQueuePreviewData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadQRcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteData.getBlockingQueueGrayByteData()) {\r\n\t\t\tnew BlockingQueueGrayByteData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBarcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteDataArray\r\n\t\t\t\t.getBlockingQueueGrayByteDataArray()) {\r\n\t\t\tnew BlockingQueueGrayByteDataArray();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBCardScanning */\r\n\t\tif (null == BlockingQueueGrayByteDataPreviewData\r\n\t\t\t\t.getBlockingQueueGrayByteDataPreviewData()) {\r\n\t\t\tnew BlockingQueueGrayByteDataPreviewData();\r\n\t\t}\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueByteArray.getBlockingQueueByteArray()) { new\r\n\t\t * BlockingQueueByteArray(); }\r\n\t\t */\r\n\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueFakePictureImageData\r\n\t\t * .getBlockingQueueFakePictureImageData()) { new\r\n\t\t * BlockingQueueFakePictureImageData(); }\r\n\t\t */\r\n\t}", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "public Thread getThread(int type, String name, Runnable r);", "private void init(int threadCount, Type type) {\r\n //The backend starts to polling threads.\r\n mPoolThread=new Thread(){\r\n @Override\r\n public void run() {\r\n Looper.prepare();\r\n mPoolThreadHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //take a thread from the thread pool and execute it.\r\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n };\r\n //if this thread is finished, release a signal to the handler.\r\n mSemaphorePoolThreadHandler.release();\r\n Looper.loop();\r\n }\r\n };\r\n mPoolThread.start();\r\n //Get the maximum available memory for our service.\r\n int maxMemory= (int) Runtime.getRuntime().maxMemory();\r\n int cacheMemory = maxMemory / 8;//8\r\n mLruCache=new LruCache<String, Bitmap>(cacheMemory){\r\n @Override\r\n protected int sizeOf(String key, Bitmap value) {\r\n return value.getRowBytes()*value.getHeight();\r\n }\r\n };\r\n mThreadPool= Executors.newFixedThreadPool(threadCount);\r\n mTaskQueue=new LinkedList<>();\r\n mType=type==null? Type.LIFO:type;\r\n mSemaphoreThreadPool=new Semaphore(threadCount);\r\n\r\n }", "ThreadCounterRunner() {}", "public void initialize() {\n service = Executors.newCachedThreadPool();\n }", "public ThreadState(KThread thread) {\n this.thread = thread;\n this.time = 0;\n this.placement = 0;\n this.priority = priorityDefault;\n setPriority(priorityDefault);\n effectivePriority = priorityMinimum;\n }", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "public IThread createThread() throws IllegalWriteException, BBException;", "public SEDataThread(String storElement)\n {\n nodeChoice = storElement;\n }", "public ThreadTest(String testName) {\n\n super(testName);\n\n logger = LogManager.getLogger(testName);//T1.class.getName()\n\n }", "private synchronized void m2251c(String str) {\n if (this.f1831d == null || !this.f1831d.isAlive()) {\n this.f1831d = new Thread(new Oa(this, str));\n this.f1831d.start();\n }\n }", "public void initialize() {\n\t\t//start the processor thread\n\t\t//logger.debug(processorName+\" starting processor thread\");\n\t\tprocessorThread.start();\n\t\t\n\t\t//logger.debug(processorName+\" initialized\");\n\t}", "@Override\n public void threadStarted() {\n }", "public WorkerThread(int threadID) {\n\t\tthis.threadID = threadID;\n\t\tmanager = ThreadPoolManager.getInstance();\n\t\tsql = SQLDriver.getInstance();\n\t}", "public static void initialize()\n {\n // Initiate election\n Runnable sender = new BullyAlgorithm(\"Sender\",\"election\");\n new Thread(sender).start();\n }", "public JanelaThread() {\n initComponents();\n }", "public ThreadLocal() {}", "@Override\r\n\tpublic int call(Runnable thread_base, String strMsg) {\n\t\treturn 0;\r\n\t}", "public ImageThread() {\n\t}", "int XInitThreads();", "private static void ThreadCreationOldWay() {\r\n\t\tThread t1 = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"This is a runnable method done in old fashion < 1.8\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tt1.start();\r\n\t}", "void init() {\n try {\n // Start the send and receive threads and exit\n //scheduler.scheduleThread(new Thread(new UDPTransportThread(this, UDPTransportThread.RUN_SEND_THREAD)));\n //scheduler.scheduleThread(new Thread(new UDPTransportThread(this, UDPTransportThread.RUN_RCV_THREAD)));\n //scheduler.scheduleThread(new Thread(new UDPTransportThread(this, UDPTransportThread.RUN_GC_THREAD)));\n } catch (IllegalThreadStateException e) {\n Debug.exit(\"Fatal Error: \" + e.toString());\n }\n }", "protected JvmThreadingMeta createJvmThreadingMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 460 */ return new JvmThreadingMeta(this, this.objectserver);\n/* */ }", "public abstract void setThreadNumber(int threadIdx);", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public IRubyObject initialize(ThreadContext context, IRubyObject[] args, Block block) {\n switch (args.length) {\n case 0:\n return initialize(context, block);\n case 1:\n return initializeCommon(context, args[0], null, block);\n case 2:\n return initializeCommon(context, args[0], args[1], block);\n default:\n Arity.raiseArgumentError(getRuntime(), args.length, 0, 2);\n return null; // not reached\n }\n }", "public JvmThreadRunner(JvmThread jvmThread) {\n Objects.requireNonNull(jvmThread, \"JVM Thread Runner cannot construct by null thread\");\n this.jvmThread = jvmThread;\n }", "@Test\n public void construtorTest() {\n ThreadObserveSample person = new ThreadObserveSample(\"test\");\n }", "@Override\n public void init() {\n System.out.println(\"init: \" + Thread.currentThread().getName());\n }", "public static JSqVM sq_newthread(JSqVM friend, int initialStackSize) throws JSquirrelException {\r\n\t\tlong handle = sq_newthread_native(friend.m_nativeHandle, initialStackSize);\r\n\t\tif (handle == 0)\r\n\t\t\tthrow new JSquirrelException(\"Could not create a new thread.\");\r\n\t\treturn new JSqVM(handle);\r\n\t}", "private static void threadPoolInit() {\n ExecutorService service = Executors.newCachedThreadPool();\n try {\n for (int i = 1; i <= 10; i++) {\n service.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" 办理业务...\");\n });\n try {\n TimeUnit.MILLISECONDS.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n service.shutdown();\n }\n }", "tut65(int numero){\n\t\tthis.numero=numero; //me guardo un numero\n\t\t\n\t\tThread thread = new Thread(this); //Pasarle como parametro la clase runnable\n\t\tthread.start();\n\t}", "public AbstractConcurrentTestCase() {\n mainThread = Thread.currentThread();\n }", "public synchronized void startup() {\n\n if (mThread == null) {\n mThread = new CounterThread();\n new Thread(mThread).start();\n }\n Log.d(TAG, \"startup\");\n }", "void set_str(ThreadContext tc, RakudoObject classHandle, String Value);", "public void setUp() {\n threadName = Thread.currentThread().getName();\n }", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "public static void main(String[] args) {\n Thread thread=new Thread(new MyRunnable(),\"firstThread\");\n thread.start();\n System.out.println(thread.getName());\n }", "SyncObject(int numThreads)\n {\n this.numThreads = numThreads;\n }", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "private Thread createThreadFor(Agent ag) {\n ProcessData data = getDataFor(ag);\n\n data.thread = new Thread(threadGroup, ag);\n data.thread.setPriority(THREAD_PRIORITY);\n\n return data.thread;\n }", "public MummyThread(String name, int resId) {\r\n this.name = name;\r\n this.resId = resId;\r\n this.shutdown = false;\r\n }", "public abstract AbstractSctlThreadEntry addThread();", "private Thread createThread() {\n return new Thread(this::_loadCatalog, \"CDS Hooks Catalog Retrieval\"\n );\n }", "public ThreadLattice determineThread(SInvokeNode sInvokeNode){\n ThreadLattice result = ThreadLatticeManager.getUNDETERMINED();\n CInvokeNode cInvokeNode = (CInvokeNode) sInvokeNode.getSource();\n UInvokeNode uInvokeNode = (UInvokeNode) cInvokeNode.getSource();\n if(uInvokeNode == null){\n LOG.logln(String.format(\"Why UInvokeNode of %s is null? Thread CaSFGenerator\", cInvokeNode), LOG.ERROR);\n return result;\n }\n Stmt stmt = uInvokeNode.getSource();\n if(stmt == null)\n return result;\n if(!stmt.containsInvokeExpr() || !(stmt.getInvokeExpr() instanceof InstanceInvokeExpr))\n return result;\n InstanceInvokeExpr instanceInvokeExpr = (InstanceInvokeExpr) stmt.getInvokeExpr();\n Local base = (Local) instanceInvokeExpr.getBase();\n if (Util.v().isSubclass(base.getType(), \"java.util.TimerTask\")){\n result = ThreadLatticeManager.getUNKNOWNThreadLattice();\n }\n return result;\n }", "public static void main(String[] str) throws InterruptedException {\n CounterReEntered counter = new CounterReEntered();\r\n Runnable r1 = new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n counter.increment();\r\n System.out.println(\"thread name: \" + Thread.currentThread().getName());\r\n Thread.sleep(2000);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(LockDemo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n };\r\n\r\n Thread t1 = new Thread(r1, \"A\");\r\n Thread t2 = new Thread(r1, \"B\");\r\n Thread t3 = new Thread(r1, \"C\");\r\n Thread t4 = new Thread(r1, \"D\");\r\n t1.start();\r\n t2.start();\r\n t3.start();\r\n t4.start();\r\n }", "@PostConstruct\r\n\tprivate void init() {\n\t threadPool = Executors.newCachedThreadPool();\r\n\t}", "private ThreadUtil() {\n throw new UnsupportedOperationException(\"This class is non-instantiable\"); //$NON-NLS-1$\n }", "public static void main(String[] args) {\n\t\tMultiThreading a1= new MultiThreading();\n\t\tMultiThreading2 a2= new MultiThreading2();\n\t\ta1.setName(\"Bhains\");// hamesa start se pahle likha hota hai \n\t\ta2.setName(\"Hero\");\n\t\ta1.start();// agar yaha run ko call kia to multi thread nahi hai\n\t\t\n\t\ta2.start();\n\t//\tThread.sleep(10000);// ek thread pe ek hi baar \n\t\tMultiThreading b1=new MultiThreading();\n\t\t\n\t\t\n\t\t//a1.start();// ek baar start hui use fir nahi initialize nahi kar sakte Run time pe aaega error\n\t\tb1.start();\n\t\t\n\t\t\t//a1.m1();\n\t\t\t//a2.m2();\t\t\t\n\t}", "public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}", "public static void main(String[] args) {\n\n ArrayList<String> lstNames = null;\n try {\n\n lstNames = readFromFile_getNamesList();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n CountDownLatch latch = new CountDownLatch(1);\n MyThread threads[] = new MyThread[1000];\n for(int i = 0; i<threads.length; i++){\n\n threads[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads.length; i++){\n threads[i].start();\n }\n latch.countDown();\n for(int i = 0; i<threads.length; i++){\n try {\n threads[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n try {\n System.out.println(\"Sleeeeeeeping....\");\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n latch = new CountDownLatch(1);\n MyThread threads2[] = new MyThread[1000];\n for(int i = 0; i<threads2.length; i++){\n threads2[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads2.length; i++){\n threads2[i].start();\n }\n latch.countDown();\n }", "netthread(String url,Handler h) {\n this.urlstring = url;\n this.ntthrd_handler = h;//指定activity\n }", "public final void initialise (Uid u, String tn)\n {\n }", "public ThreadNameWithRunnable(String name, int n) {\n\t\t// Give a name to the thread\n\t\tt = new Thread(this, name);\n\n\t\t// sleepTime\n\t\tsleepTime = n;\n\n\t\t// Start the thread\n\t\tt.start();\n\t}", "public Thread getThread();", "public void initialize() throws InterruptedException, UnknownHostException;", "private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "ProcessorThread(SsmDataManager processor,\n String minDurationInMillis)\n {\n log.info(\"Begin ProcessorThread constructor\");\n this.processor = processor;\n\n try\n {\n this.minDurationInMillis = Long.parseLong(minDurationInMillis);\n log.debug(\"this.minDurationInMillis = \" + this.minDurationInMillis + \" milliseconds\");\n }\n catch (NumberFormatException e)\n {\n log.warn(\"Unable to parse minDurationInMillis = '\" +\n minDurationInMillis +\n \"'; using default value of \" + this.minDurationInMillis + \" milliseconds\");\n }\n\n instance = processor.getInstance();\n nextStartTime = System.currentTimeMillis();\n log.info(\"End ProcessorThread constructor\");\n }", "public ThreadAvnet(Element element) {\n this.element = element;\n // run();\n }", "private void initThread() {\n\t\tarticleInqList = new ArrayList<ArticleInq>();\n\t\tarticleImageList = new ArrayList<ArticleImage>();\n\t\t// for hide display\n\t\tif (statusThread == null) {\n\t\t\tproductDetailsLayOut = (TableLayout) findViewById(R.id.tblProductDetails);\n\t\t\tmWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (isAnyProductDisplaying) {\n\t\t\t\t\t\tproductDetailsLayOut.startAnimation(animBottom);\n\t\t\t\t\t\tproductDetailsLayOut.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\tisAnyProductDisplaying = false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tstatusThread = new Thread(mWaitRunnable);\n\t\tstatusThread.start();\n\n\t\t// For adding only Article images\n\t\tif (productImageAddThread == null) {\n\t\t\tpIAWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (currentPoolEanForImage.equals(\"\")\n\t\t\t\t\t\t\t&& !sacannedItemListForImage.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcurrentPoolEanForImage = sacannedItemListForImage\n\t\t\t\t\t\t\t\t\t.get(0);\n\t\t\t\t\t\t\taddArticleImage();\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tcurrentPoolEanForImage = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpIAHandler.postDelayed(pIAWaitRunnable, 1);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tproductImageAddThread = new Thread(pIAWaitRunnable);\n\t\tproductImageAddThread.start();\n\n\t\t// For adding only Article informations\n\t\tif (productAddThread == null) {\n\n\t\t\tpAWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (currentPoolEanForArticle.equals(\"\")\n\t\t\t\t\t\t\t&& !sacannedItemListForArticle.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcurrentPoolEanForArticle = sacannedItemListForArticle\n\t\t\t\t\t\t\t\t\t.get(0);\n\t\t\t\t\t\t\taddArticle();\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tcurrentPoolEanForArticle = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpAHandler.postDelayed(pAWaitRunnable, 2);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tproductAddThread = new Thread(pAWaitRunnable);\n\t\tproductAddThread.start();\n\n\t\t// For showing display\n\t\tif (productDisplayThread == null) {\n\t\t\tpDWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!isAnyProductDisplaying\n\t\t\t\t\t\t\t&& !displayArticleList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tisAnyProductDisplaying = true;\n\t\t\t\t\t\t\tint lastDisplayedItemIndex = displayArticleList\n\t\t\t\t\t\t\t\t\t.size();\n\t\t\t\t\t\t\taddProduct(displayArticleList\n\t\t\t\t\t\t\t\t\t.get(lastDisplayedItemIndex - 1));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdisplayRemovingStarted = true;\n\t\t\t\t\t\t\twhile (!displayAddingStarted) {\n\t\t\t\t\t\t\t\tfor (int i = 0; i < lastDisplayedItemIndex; i++) {\n\t\t\t\t\t\t\t\t\tdisplayArticleList.remove(0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// displayArticleList.removeAll(displayArticleList.subList(0,\n\t\t\t\t\t\t\t\t// lastDisplayedItemIndex-1));\n\t\t\t\t\t\t\t\tdisplayRemovingStarted = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tisAnyProductDisplaying = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpDHandler.postDelayed(pDWaitRunnable, 3);\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tproductDisplayThread = new Thread(pDWaitRunnable);\n\t\tproductDisplayThread.start();\n\n\t\t// For adding basket\n\t\tif (bThread == null) {\n\t\t\tbRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (isBasketAddingReady && basketArticleList.size() > 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tisBasketAddingReady = false;\n\t\t\t\t\t\t\taddBasket(basketArticleList.get(0));\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tisBasketAddingReady = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbHandler.postDelayed(bRunnable, 4);\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tbThread = new Thread(bRunnable);\n\t\tbThread.start();\n\t}", "public static void addedThread(ThreadXML threadXML) {\n }", "public void init()\n{\n \n //give each board a unique number so it can load data from the\n //simulation files and such\n \n notcherUnitNumber = notcherCounter++;\n\n super.init(notcherUnitNumber);\n\n //start the simulation thread\n new Thread(this).start();\n \n}", "public String reqToStart() {\n\t\treturn \"<thread thread=\\\"\" + this.thread\n\t\t\t\t+ \"\\\" version=\\\"20061206\\\" res_from=\\\"-0\\\" scores=\\\"1\\\" />\\0\";\n\t}", "private SchedulerThreadCounter()\n\t{\n\t\tii_counter = 100;\n\t}", "public MyRunnable(){\t\n\t}", "@Override\r\n\tpublic void initialized() throws InterruptedException {\n\r\n\t}", "private RunnerThread getData(String line) {\n \tString name = null;\n \ttry \n \t{\n \t\tString[] lineParse = line.split(\"\\t\");\n \t\tname = lineParse[0];\n \t\tString speedString = lineParse[1];\n \t\tString restString = lineParse[2];\n \t\tint speed = Integer.parseInt(speedString);\n \t\tint rest = Integer.parseInt(restString);\n \t\treturn (new RunnerThread(name,speed,rest));\n \t}\n \tcatch (NumberFormatException num) {\n \t\tSystem.out.println(\"The data entered for the speed/rest is not correct for the runner : \" + name);\t\n \t\tSystem.exit(1);\n \t}\n \tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"An error occured while reading the data from the file\");\n\t\t\tSystem.exit(1);\n \t}\n\t\treturn null; \t\n }", "public void setThreadName(String name) {\n threadName = name;\n }", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6406906", "0.62511355", "0.6236923", "0.6064522", "0.6025955", "0.5990925", "0.5962963", "0.5941425", "0.5931264", "0.5906596", "0.58750576", "0.58657867", "0.584907", "0.5841538", "0.583932", "0.58318514", "0.5827838", "0.5738343", "0.57376504", "0.56940573", "0.5678548", "0.5674855", "0.56667376", "0.5645942", "0.56430376", "0.5634861", "0.56305176", "0.55919814", "0.5544851", "0.5501769", "0.54791594", "0.5477633", "0.5430594", "0.5430448", "0.5430383", "0.5423855", "0.54076886", "0.5405496", "0.54039896", "0.5401657", "0.54016346", "0.53929824", "0.5389423", "0.53744847", "0.5366519", "0.53576976", "0.5357456", "0.5344869", "0.5344243", "0.5331788", "0.53237677", "0.53237283", "0.53225195", "0.53156894", "0.53036684", "0.5279198", "0.5276153", "0.5271744", "0.52532494", "0.5249376", "0.5244771", "0.52359456", "0.5220678", "0.52164155", "0.5208491", "0.52051884", "0.5198496", "0.5173321", "0.51688516", "0.5162196", "0.51515096", "0.51512975", "0.51422954", "0.5141776", "0.51412016", "0.5133429", "0.51329815", "0.5127775", "0.51222694", "0.5115888", "0.5096508", "0.5091743", "0.50902563", "0.50845253", "0.5081329", "0.5078557", "0.5078141", "0.5073476", "0.50455755", "0.50431645", "0.50306386", "0.50301117", "0.500762", "0.5006396", "0.5003529", "0.5000322", "0.4992022", "0.4983733", "0.49822342", "0.49812818" ]
0.67562366
0
Function : setThreadState() Use : setting the thread state after the sort completes Parameter : Nothing Returns : Nothing
public void setThreadState() { synchronized(pauseLock) { try { while(suspended) { pauseLock.wait(); //waiting the thread if the thread in suspended state } if(paused) pauseLock.wait(); //will make thread to block until notify is called } catch(InterruptedException e) { System.out.println("Exception occured" + e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort()throws InterruptedException{\n\t\tfor (int i = 0; i < a.length - 1; i++) {\n\t\t\tint minPos = minPosition(i);\n\t\t\tsortStateLock.lock();\n\t\t\ttry{\n\t\t\t\tswap(minPos, i);\n\t\t\t\t// For animation\n\t\t\t\talreadySorted = i;\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tsortStateLock.unlock();\n\t\t \t\t}\n\t\t\tpause(2);\n\t }\n }", "private static void evaluateMergesortUniversityWashingtonThreaded() {\n\n // LOGGER.info(\"evaluating parallel mergesort with Java Threads based on the version of the University\n // of Washington\");\n\n // The time before start to sort.\n long startTime;\n\n // The time after sort.\n long endTime;\n\n // generate sorted array\n numbers = generateSortedArray(ARRAY_SIZE);\n\n // get array to evaluate\n generateWorstUnsortArray(numbers);\n\n // get systemtime before sorting\n startTime = System.currentTimeMillis();\n\n // sort\n MergesortUniversityWashingtonThreaded.parallelMergeSort(numbers);\n\n // get systemtime after sorting\n endTime = System.currentTimeMillis();\n\n // show the result of the sorting process\n System.out.println(\"\\n- Sortierergebnis: Java Threads (University Washington) -\");\n System.out.println(\"Die sortierte Folge lautet: \" + arrayToString(numbers));\n System.out.printf(\"Für die Sortierung wurden %d ms benötigt\", endTime - startTime);\n System.out.println(\"\\n------------------------------------------------\\n\");\n }", "private static void evaluateMergesortVogellaThreaded() {\n\n // LOGGER.info(\"evaluating parallel mergesort with Java Threads based on the Vogella version\");\n\n // The time before start to sort.\n long startTime;\n\n // The time after sort.\n long endTime;\n\n // generate sorted array\n numbers = generateSortedArray(ARRAY_SIZE);\n\n // get array to evaluate\n generateWorstUnsortArray(numbers);\n\n // get systemtime before sorting\n startTime = System.currentTimeMillis();\n\n // sort\n msVogellaJThreads.sort(numbers);\n\n // get systemtime after sorting\n endTime = System.currentTimeMillis();\n\n // show the result of the sorting process\n System.out.println(\"\\n- Sortierergebnis: Java Threads (Vogella) -\");\n System.out.println(\"Die sortierte Folge lautet: \" + arrayToString(numbers));\n System.out.printf(\"Für die Sortierung wurden %d ms benötigt\", endTime - startTime);\n System.out.println(\"\\n------------------------------------------------\\n\");\n }", "public void setSortOnCPUTime() {\n this.sortedJobList = new TreeSet<Job>(new Comparator<Job>() {\n @Override\n public int compare(Job a, Job b) {\n\n int aCPUUsed = 0;\n int bCPUUsed = 0;\n\n try {\n aCPUUsed = a.getCPUUsed();\n bCPUUsed = b.getCPUUsed();\n } catch (AS400SecurityException e) {\n e.printStackTrace();\n } catch (ErrorCompletingRequestException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ObjectDoesNotExistException e) {\n e.printStackTrace();\n }\n\n if (aCPUUsed == bCPUUsed) return 0;\n else return bCPUUsed - aCPUUsed;\n }\n });\n }", "public void shellSort(int[] a) \n {\n int increment = a.length / 2;\n while (increment > 0) \n {\n \n for (int i = increment; i < a.length; i++) //looping over the array\n {\n int j = i;\n int temp = a[i]; // swapping the values to a temporary array\n try\n {\n if(!orderPanel) // checking for Descending order\n {\n while (j >= increment && a[j - increment] > temp) \n {\n a[j] = a[j - increment]; //swapping the values\n thread.sleep(100);\n repaint();\n this.setThreadState();\n j = j - increment;\n }\n }\n \n else\n {\n while (j >= increment && a[j - increment] < temp) //checking for Ascending order\n {\n a[j] = a[j - increment];\n thread.sleep(200);\n repaint();\n this.setThreadState();\n j = j - increment;\n }\n \n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n a[j] = temp;\n }\n \n if (increment == 2) \n {\n increment = 1;\n } \n else \n {\n increment *= (5.0 / 11);\n }\n }\n }", "SortThread(String id, String[]word_array, String[]word_array2, Monitor monitor){\n\t\tthis.id = id;\n\t\tthis.monitor = monitor;\n\t\tthis.word_array = word_array;\n\t\tthis.word_array2 = word_array2;\n\t\t//System.out.println(\"Created thread: \" + id);\n\t}", "SortThread(String id, String[]word_array, Monitor monitor){\n\t\tthis.id = id;\n\t\tthis.monitor = monitor;\n\t\tthis.word_array = word_array;\n\t\t//System.out.println(\"Created thread: \" + id);\n\t}", "public ThreadState(KThread thread) \n {\n this.thread = thread;\n setPriority(priorityDefault);\n }", "private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }", "private void runThreads() {\n\t\tinsertionSort = new InsertionSortDemo(insertionData);\n\t\tquickSort = new QuickSortDemo(quickData);\n\t\t// add change listener\n\t\tinsertionSort.addPropertyChangeListener(this);\n\t\tquickSort.addPropertyChangeListener(this);\n\t\t//start the thread\n\t\tinsertionSort.execute();\n\t\tquickSort.execute();\n\t}", "private void multiThreadSort(T[] array, int first, int last, boolean parallel) {\n int cursor = partition(array, first, last);\n\n nextPass(array, first, cursor - 1);\n nextPass(array, cursor, last);\n\n if (parallel) {\n synchronized (counter) {\n counter.threads--;\n counter.notify();\n }\n }\n }", "public void doTheAlgorithm() {\n this.swapCount = 0;\n this.compCount = 0;\n \n\t\tdoQuickSort(0, this.sortArray.length - 1);\n\t}", "public ThreadState(KThread thread) {\n this.thread = thread;\n this.time = 0;\n this.placement = 0;\n this.priority = priorityDefault;\n setPriority(priorityDefault);\n effectivePriority = priorityMinimum;\n }", "@Override // kotlin.jvm.functions.Function2\n public ThreadState invoke(ThreadState threadState, CoroutineContext.Element element) {\n ThreadState threadState2 = threadState;\n CoroutineContext.Element element2 = element;\n Intrinsics.checkParameterIsNotNull(threadState2, \"state\");\n Intrinsics.checkParameterIsNotNull(element2, \"element\");\n if (element2 instanceof ThreadContextElement) {\n CoroutineContext coroutineContext = threadState2.context;\n Object[] objArr = threadState2.a;\n int i = threadState2.i;\n threadState2.i = i + 1;\n ((ThreadContextElement) element2).restoreThreadContext(coroutineContext, objArr[i]);\n }\n return threadState2;\n }", "public void run()\n { // checking for appropriate sorting algorithm\n \n if(comboAlgorithm.equals(\"Shell Sort\"))\n {\n this.shellSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Selection Sort\"))\n {\n this.selectionSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Insertion Sort\"))\n {\n this.insertionSort(randInt);\n }\n if(comboAlgorithm.equals(\"Bubble Sort\"))\n {\n this.bubbleSort(randInt);\n }\n \n }", "public static void sort(int[] array, int from, int to) {\n int size = to - from + 1;\n int mid = from + (to - from)/2;\n if (size < cutoff|| counThread>20) \n \t{\n \t\tSystem.out.println(\"cut-off: \"+ (to-from+1));\n \t\tArrays.sort(array, from, to+1);\n \t}\n else {\n \n \tCompletableFuture<int[]> parsort1 = parsort(array, from, mid);\n \t\n \t\n CompletableFuture<int[]> parsort2 = parsort(array, mid+1, to);\n\n\n CompletableFuture<int[]> parsort = \n \t\tparsort1.thenCombine(parsort2, (xs1, xs2) -> {\n \tint[] result = new int[xs1.length + xs2.length];\n \tmerge(array, result, from);\n return result;\n });\n\n parsort.whenComplete((result, throwable) -> { \t\n// \tSystem.arraycopy(result, 0, array, from, to-from+1);\n// \tSystem.out.println(\"Thread count: \"+ counThread);\n \t\n \t\n }); \n parsort.join();\n }\n }", "private void nextPass(T[] array, int first, int last) {\n if (last > first) {\n boolean parallel = false;\n synchronized (counter) {\n if (counter.threads < maxThreads) {\n parallel = true;\n counter.threads++;\n }\n }\n\n if (parallel) {\n executor.submit(() -> multiThreadSort(array, first, last, true));\n } else {\n multiThreadSort(array, first, last, false);\n }\n }\n }", "private synchronized void freshSort(){\n Process[] newQueue = new Process[pros.proSize()];\n for(int i = 0; i <queue.length; i++){\n if(pros.isInList(queue[i])){\n newQueue[i] = queue[i];\n }\n }\n queue = new Process[pros.proSize()];\n queue = newQueue;\n }", "public void initialize() {\n ActionListener manipulateSortingActionListener = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String button = e.getActionCommand();\n switch (button) {\n case \"Start\": {\n if (isSorting) {\n JOptionPane.showMessageDialog(jframe, \"The data is already sorted! Let's try with new data.\",\n \"It's sorted!\", JOptionPane.PLAIN_MESSAGE, null);\n } else {\n // disable data pane\n genDataOptionComboBox.setEnabled(false);\n arrayLengthInput.setEnabled(false);\n inputArrayArea.setEnabled(false);\n btnGenerateArray.setEnabled(false);\n\n // disable algorithm option box\n algorithmComboBox.setEnabled(false);\n\n //data.setSorting(true);\n isSorting = true;\n isStop = false;\n //manipulateSortingProcess.setIsSorting(true);\n\n compared = 0;\n arrayAccessed = 0;\n\n btnStartSort.setVisible(false);\n btnPauseSort.setVisible(true);\n btnStopSort.setVisible(true);\n }\n break;\n }\n case \"Pause\": {\n// data.setSorting(false);\n// data.setPause(true);\n isPause = true;\n isSorting = false;\n isStop = false;\n //manipulateSortingProcess.setIsSorting(false);\n //manipulateSortingProcess.setIsPause(true);\n\n btnPauseSort.setVisible(false);\n btnStopSort.setVisible(false);\n btnResumeSort.setVisible(true);\n break;\n }\n case \"Stop\": {\n // enable data pane\n genDataOptionComboBox.setEnabled(true);\n arrayLengthInput.setEnabled(true);\n inputArrayArea.setEnabled(true);\n btnGenerateArray.setEnabled(true);\n\n // enable algorithm option box\n algorithmComboBox.setEnabled(true);\n\n //data.setStop(true);\n isStop = true;\n //manipulateSortingProcess.reset();\n //manipulateSortingProcess.reset();\n\n // update processing message when stop sort\n setSortingProcessMsg(sortingProcessListMsg[curAlg]);\n\n btnStopSort.setVisible(false);\n btnPauseSort.setVisible(false);\n btnStartSort.setVisible(true);\n break;\n }\n case \"Resume\": {\n// data.setSorting(true);\n// data.setPause(false);\n isSorting = true;\n isPause = false;\n isStop = false;\n //manipulateSortingProcess.setIsSorting(true);\n //manipulateSortingProcess.setIsPause(false);\n\n btnResumeSort.setVisible(false);\n btnPauseSort.setVisible(true);\n btnStopSort.setVisible(true);\n break;\n }\n default: {\n break;\n }\n }\n }\n };\n\n // FRAME\n jframe = new JFrame();\n jframe.setSize(816, 650);\n jframe.setTitle(\"Sorting Visualizer\");\n jframe.setVisible(true);\n jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jframe.setResizable(false);\n jframe.setLocationRelativeTo(null);\n jframe.getContentPane().setLayout(null);\n\n // GENERATE DATA PANE\n genDataPane.setLayout(null);\n genDataPane.setBounds(5, 10, 180, 200);\n genDataPane.setBorder(BorderFactory.createTitledBorder(loweredEtched, \"Data\"));\n\n // GENERATE DATA OPTION LABEL\n genDataOptionLabel.setHorizontalAlignment(JLabel.CENTER);\n genDataOptionLabel.setBounds(0, 20, 180, 25);\n genDataPane.add(genDataOptionLabel);\n\n // DROP DOWN FOR GENERATE DATA OPTIONS\n genDataOptionComboBox.setBounds(25, 45, 120, 25);\n genDataPane.add(genDataOptionComboBox);\n\n // HELP GENERATE ARRAY BUTTON\n btnHelpGenerateArray.setBounds(150, 45, 20, 25);\n btnHelpGenerateArray.setMargin(new Insets(1, 1, 1, 1));\n genDataPane.add(btnHelpGenerateArray);\n\n // ARRAY LENGTH LABEL\n arrayLengthLabel.setHorizontalAlignment(JLabel.CENTER);\n arrayLengthLabel.setBounds(0, 105, 100, 25);\n genDataPane.add(arrayLengthLabel);\n\n // ARRAY LENGTH INPUT TEXT FIELD\n arrayLengthInput.setHorizontalAlignment(JLabel.CENTER);\n arrayLengthInput.setBounds(95, 106, 65, 25);\n genDataPane.add(arrayLengthInput);\n\n // ARRAY LENGTH ERROR LABEL\n arrayLengthErrorLabel.setHorizontalAlignment(JLabel.CENTER);\n arrayLengthErrorLabel.setBounds(0, 130, 180, 25);\n arrayLengthErrorLabel.setForeground(Color.RED);\n genDataPane.add(arrayLengthErrorLabel);\n\n // INPUT ARRAY AREA\n inputArrayScrollPane.setBounds(10, 80, 160, 60);\n inputArrayScrollPane.setVisible(false);\n genDataPane.add(inputArrayScrollPane);\n\n // GENERATE ARRAY BUTTON\n btnGenerateArray.setBounds(40, 155, 100, 25);\n genDataPane.add(btnGenerateArray);\n\n // TOOLS PANE\n controlsPane.setLayout(null);\n controlsPane.setBounds(5, 210, 180, 390);\n controlsPane.setBorder(BorderFactory.createTitledBorder(loweredEtched, \"Controls\"));\n\n // ALGORITHM OPTION LABEL\n algorithmOptionLabel.setHorizontalAlignment(JLabel.CENTER);\n algorithmOptionLabel.setBounds(15, 20, 150, 25);\n controlsPane.add(algorithmOptionLabel);\n\n // ALGORITHMS DROP DOWN\n algorithmComboBox.setBounds(30, 45, 120, 25);\n controlsPane.add(algorithmComboBox);\n\n // START SORT BUTTON\n btnStartSort.setBounds(40, 80, 100, 25);\n btnStartSort.addActionListener(manipulateSortingActionListener);\n controlsPane.add(btnStartSort);\n\n // PAUSE SORT BUTTON\n btnPauseSort.setBounds(15, 80, 70, 25);\n btnPauseSort.addActionListener(manipulateSortingActionListener);\n btnPauseSort.setVisible(false);\n controlsPane.add(btnPauseSort);\n\n // STOP SORT BUTTON\n btnStopSort.setBounds(95, 80, 70, 25);\n btnStopSort.addActionListener(manipulateSortingActionListener);\n btnStopSort.setVisible(false);\n controlsPane.add(btnStopSort);\n\n // RESUME SORT BUTTON\n btnResumeSort.setBounds(40, 80, 100, 25);\n btnResumeSort.addActionListener(manipulateSortingActionListener);\n btnResumeSort.setVisible(false);\n controlsPane.add(btnResumeSort);\n\n // DELAY LABEL\n delayLabel.setHorizontalAlignment(JLabel.LEFT);\n delayLabel.setBounds(10, 120, 50, 25);\n controlsPane.add(delayLabel);\n\n // SPEED LABEL\n speedLabel.setHorizontalAlignment(JLabel.LEFT);\n speedLabel.setBounds(135, 120, 50, 25);\n controlsPane.add(speedLabel);\n\n // SPEED SLIDER\n speedSlider.setMajorTickSpacing(5);\n speedSlider.setBounds(55, 122, 75, 25);\n speedSlider.setPaintTicks(false);\n controlsPane.add(speedSlider);\n\n // COMPARISONS LABEL\n comparedLabel.setHorizontalAlignment(JLabel.LEFT);\n comparedLabel.setBounds(10, 155, 200, 25);\n controlsPane.add(comparedLabel);\n\n // HELP COMPARISON BUTTON\n btnHelpComparison.setBounds(153, 155, 20, 25);\n btnHelpComparison.setMargin(new Insets(1, 1, 1, 1));\n controlsPane.add(btnHelpComparison);\n\n // ARRAY ACCESSED LABEL\n arrayAccessedLabel.setHorizontalAlignment(JLabel.LEFT);\n arrayAccessedLabel.setBounds(10, 185, 200, 25);\n controlsPane.add(arrayAccessedLabel);\n\n // HELP ACCESS BUTTON\n btnHelpAccess.setBounds(153, 185, 20, 25);\n btnHelpAccess.setMargin(new Insets(1, 1, 1, 1));\n controlsPane.add(btnHelpAccess);\n\n // ALGORITHM INFO LABEL\n algorithmInfoLabel.setHorizontalAlignment(JLabel.LEFT);\n algorithmInfoLabel.setBounds(10, 220, 200, 25);\n controlsPane.add(algorithmInfoLabel);\n\n // ALGORITHM INFO AREA\n algorithmInfoArea.setBounds(10, 250, 160, 70);\n algorithmInfoArea.setEditable(false);\n algorithmInfoArea.setMargin(new Insets(10, 25, 10, 10));\n controlsPane.add(algorithmInfoArea);\n\n // HELP INSTRUCTIONS BUTTON\n btnHelpInstructions.setBounds(15, 340, 70, 25);\n controlsPane.add(btnHelpInstructions);\n\n // ABOUT BUTTON\n btnAbout.setBounds(95, 340, 70, 25);\n controlsPane.add(btnAbout);\n\n // SORTING PROCESS LABEL\n sortingProcessLabel.setBounds(200, 10, 580, 25);\n jframe.getContentPane().add(sortingProcessLabel);\n\n // CANVAS FOR GRAPH\n canvas = new GraphVisualizer(rectangle_width, length, array, current, check);\n canvas.setBounds(190, 35, GRAPH_SIZE, GRAPH_SIZE - 30);\n canvas.setBorder(BorderFactory.createLineBorder(Color.black));\n\n jframe.getContentPane().add(genDataPane);\n jframe.getContentPane().add(controlsPane);\n jframe.getContentPane().add(canvas);\n\n jframe.repaint();\n jframe.revalidate();\n\n // ADD ACTION LISTENERS\n genDataOptionComboBox.addItemListener(new ItemListener() {\n public void itemStateChanged(ItemEvent e) {\n // disable start btn\n btnStartSort.setEnabled(false);\n\n curInputDataOption = genDataOptionComboBox.getSelectedIndex();\n switch (curInputDataOption) {\n case 0: // random\n arrayLengthLabel.setVisible(true);\n arrayLengthInput.setVisible(true);\n arrayLengthInput.setText(\"50\");\n\n displayTextArea = \"[\\n \\n]\";\n inputArrayArea.setText(displayTextArea);\n arrayLengthErrorLabel.setText(\"\");\n arrayLengthErrorLabel.setBounds(0, 130, 180, 25);\n\n btnGenerateArray.setBounds(40, 155, 100, 25);\n btnGenerateArray.setEnabled(true);\n inputArrayScrollPane.setVisible(false);\n break;\n case 1: // manual input\n arrayLengthLabel.setVisible(false);\n arrayLengthInput.setVisible(false);\n\n arrayLengthErrorLabel.setText(\"\");\n arrayLengthErrorLabel.setBounds(0, 140, 180, 25);\n\n btnGenerateArray.setBounds(40, 165, 100, 25);\n btnGenerateArray.setEnabled(false);\n inputArrayScrollPane.setVisible(true);\n break;\n }\n }\n\n });\n\n btnHelpGenerateArray.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(jframe, helpGenDataMsg[genDataOptionComboBox.getSelectedIndex()],\n \"Help to generate array\", JOptionPane.PLAIN_MESSAGE, null);\n }\n });\n\n btnHelpComparison.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(jframe,\n \"Comparisons show number of times that sorting process have been compared two elements.\",\n \"What is Comparisons?\", JOptionPane.PLAIN_MESSAGE, null);\n }\n });\n\n btnHelpAccess.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(jframe,\n \"Array Accessed show number of times that sorting process have been accessed to array while sorting or comparison or swap.\",\n \"What is Array Accessed?\", JOptionPane.PLAIN_MESSAGE, null);\n }\n });\n\n arrayLengthInput.addKeyListener(new KeyAdapter() {\n public void keyReleased(KeyEvent e) {\n // disable start btn\n btnStartSort.setEnabled(false);\n\n String curInput = arrayLengthInput.getText();\n if (!validator.isNullOrEmpty(curInput)) {\n if (validator.isNumber(curInput)) {\n int arrLength = Integer.parseInt(curInput);\n if (arrLength > 1) {\n if (arrLength <= 300) {\n showErrorMsg(\"\");\n length = Integer.parseInt(curInput);\n //manipulateSortingProcess.reset();\n //manipulateSortingProcess.Update();\n\n //manipulateSortingProcess.reset();\n \n //--------reset-------------\n isSorting = false;\n current = -1;\n check = -1;\n //updateProcess(length, array, current, check);\n //--------------------------\n\n } else {\n showErrorMsg(\"Must less than or equal 300\");\n }\n } else {\n showErrorMsg(\"Must bigger than 1!\");\n }\n } else {\n showErrorMsg(\"Must be numberic!\");\n }\n } else {\n showErrorMsg(\"Cannot be null or empty!\");\n }\n }\n\n private void showErrorMsg(String errorMsg) {\n arrayLengthErrorLabel.setText(errorMsg);\n btnGenerateArray.setEnabled(validator.isNullOrEmpty(errorMsg) ? true : false);\n }\n });\n\n inputArrayArea.getDocument().addDocumentListener(new DocumentListener() {\n @Override\n public void removeUpdate(DocumentEvent e) {\n try {\n onChange();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n @Override\n public void insertUpdate(DocumentEvent e) {\n try {\n onChange();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n @Override\n public void changedUpdate(DocumentEvent arg0) {\n\n }\n\n private void onChange() throws Exception {\n // disable start btn\n btnStartSort.setEnabled(false);\n\n String curInput = inputArrayArea.getText();\n try {\n int[] arr = helpers.StringToIntArray(helpers.RemoveNewLineTabSpaces(curInput), \",\");\n if (arr.length > 1 && arr.length <= 300) {\n showErrorMsg(\"\");\n displayTextArea = curInput;\n//\t\t\t\t\t\tchangeText(arr, \",\");\n } else {\n showErrorMsg(\"Invalid array!\");\n }\n } catch (Exception ex) {\n if (ex.getMessage() == \"NotNumber\") {\n showErrorMsg(\"Invalid array!\");\n } else {\n ex.printStackTrace();\n showErrorMsg(\"There was an uncaught error!\");\n }\n }\n\n }\n\n private void showErrorMsg(String errorMsg) {\n arrayLengthErrorLabel.setText(errorMsg);\n btnGenerateArray.setEnabled(validator.isNullOrEmpty(errorMsg) ? true : false);\n }\n });\n\n btnGenerateArray.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n // enable start btn\n btnStartSort.setEnabled(true);\n // update to processing message when generate new data\n setSortingProcessMsg(sortingProcessListMsg[curAlg]);\n\n // reset statistics info to 0\n setCompared(0);\n setArrayAccessed(0);\n comparedLabel.setText(\"Comparisons: \" + getCompared());\n arrayAccessedLabel.setText(\"Array Accessed : \" + getArrayAccessed());\n\n curInputDataOption = genDataOptionComboBox.getSelectedIndex();\n switch (curInputDataOption) {\n case 0: // random\n// data.setLength(Integer.parseInt(arrayLengthInput.getText()));\n //data.generateRandomArray();\n length = Integer.parseInt(arrayLengthInput.getText());\n array = new int[length];\n for (int i = 0; i < length; i++) {\n array[i] = i + 1;\n }\n for (int a = 0; a < 500; a++) {\n for (int i = 0; i < length; i++) {\n int rand = r.nextInt(length);\n int temp = array[rand];\n array[rand] = array[i];\n array[i] = temp;\n }\n }\n isSorting = false;\n\n //manipulateSortingProcess.setLength(length);\n canvas.setLength(length);\n //manipulateSortingProcess.setArray(array);\n canvas.setArray(array);\n\n canvas.setRectangle_width(GRAPH_SIZE / length);\n canvas.repaint();\n\n break;\n case 1: // manual input\n int[] newArr;\n try {\n newArr = helpers.StringToIntArray(helpers.RemoveNewLineTabSpaces(displayTextArea), \",\");\n// data.setLength(newArr.length);\n// data.setArray(newArr);\n length = newArr.length;\n //manipulateSortingProcess.setLength(length);\n canvas.setLength(length);\n\n array = newArr;\n\n //manipulateSortingProcess.setArray(array);\n canvas.setArray(array);\n\n canvas.setRectangle_width(GRAPH_SIZE / length);\n canvas.repaint();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n break;\n }\n\n }\n });\n\n algorithmComboBox.addItemListener(new ItemListener() {\n public void itemStateChanged(ItemEvent e) {\n // update processing message when choose algorithm\n setSortingProcessMsg(sortingProcessListMsg[curAlg]);\n\n curAlg = algorithmComboBox.getSelectedIndex();\n algorithmInfoArea.setText(algorithmListInfo[curAlg]);\n }\n\n });\n\n speedSlider.addChangeListener(new ChangeListener() {\n @Override\n public void stateChanged(ChangeEvent arg0) {\n speed = (int) speedSlider.getValue();\n speedLabel.setText(speed + \" ms\");\n }\n });\n\n btnHelpInstructions.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(jframe, HELP_INSTRUCTION_MESSAGE, \"Help\", JOptionPane.PLAIN_MESSAGE, null);\n }\n });\n\n btnAbout.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(jframe, ABOUT_MESSAGE, \"About\", JOptionPane.PLAIN_MESSAGE, null);\n }\n });\n\n //manipulateSortingProcess.sorting();\n }", "public int[] selectionSort(int[] arr)\n {\n try\n {\n for (int i = 0; i < arr.length - 1; i++) //looping over the array to sort the elements\n {\n int index = i;\n for (int j = i + 1; j < arr.length; j++)\n if(!orderPanel) // checking for Descending order\n {\n if (arr[j] < arr[index])\n index = j;\n }\n else\n {\n if (arr[j] > arr[index]) //checking for Aescending order\n index = j;\n }\n int smallerNumber = arr[index]; \n arr[index] = arr[i];\n arr[i] = smallerNumber; //swapping the values\n thread.sleep(100);\n repaint();\n this.setThreadState();\n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured \" + e);\n }\n return arr;\n }", "public void setClickSort(boolean b) {\r\n\t\t_clickSort = b;\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tfor (int i = 0; i < 1000000; i++) {\n\t\t\t\tint[] a = Util.generateRandomArray(500, 200000);\n\t\t\t\tint[] b = a.clone();\n\t\t\t\t\n\t\t\t\ta = sort(a);\n\t\t\t\tArrays.sort(b);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < b.length; j++) {\n\t\t\t\t\tUtil.Assert(a[j] == b[j], \"shit\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Heap sort ok\");\n\t\t}", "public void setThread(Thread t);", "public void go(int boundary) {\n\t\tthis.b = boundary;\n\t\tSystem.out.println(\"Start QuickSort ...\");\n\t\tthis.startTime = new Date().getTime();\n\t\tsort(0, sequence.length - 1);\n\t\tthis.endTime = new Date().getTime();\n\t}", "public void sort() {\n\t\tSystem.out.println(\"Quick Sort Algorithm invoked\");\n\n\t}", "@Override\n\tpublic void run() {\n\t\tMPMergeSortTest.MPParallelRandomGen(start, end, r, data);\n\n\t}", "protected void pause() throws Exception {\n\tif (stopRequested) {\n\t throw new Exception(\"Sort Algorithm\");\n\t}\n\tparent.pause(parent.h1, parent.h2);\n }", "public static double testSelectionSort(Integer[] list){\n\t\tdouble totalTime = 0;\n\t\tfor (int i = 0; i < TEST_RUNS; i++){\n\t\t\tInteger[] tmp = Arrays.copyOf(list, list.length);\t// make copy of list\n\t\t\tt.start();\t\t\t\t\t\t\t\t\t\t\t// start clock\t\n\t\t\tSelectionSort.sort(tmp);\t\t\t\t\t\t\t// sort copy\n\t\t\ttotalTime += t.getTime();\t\t\t\t\t\t\t// end clock and increment total\n\t\t\tSystem.gc();\n\t\t}\n\t\treturn totalTime / TEST_RUNS;\n\t}", "private static void parallelSortInIsolatedPool(\n FullPageId[] pagesArr,\n Comparator<FullPageId> cmp\n ) throws IgniteCheckedException {\n ForkJoinPool.ForkJoinWorkerThreadFactory factory = new ForkJoinPool.ForkJoinWorkerThreadFactory() {\n @Override public ForkJoinWorkerThread newThread(ForkJoinPool pool) {\n ForkJoinWorkerThread worker = ForkJoinPool.defaultForkJoinWorkerThreadFactory.newThread(pool);\n\n worker.setName(\"checkpoint-pages-sorter-\" + worker.getPoolIndex());\n\n return worker;\n }\n };\n\n ForkJoinPool forkJoinPool = new ForkJoinPool(PARALLEL_SORT_THREADS + 1, factory, null, false);\n\n ForkJoinTask sortTask = forkJoinPool.submit(() -> Arrays.parallelSort(pagesArr, cmp));\n\n try {\n sortTask.get();\n }\n catch (InterruptedException e) {\n throw new IgniteInterruptedCheckedException(e);\n }\n catch (ExecutionException e) {\n throw new IgniteCheckedException(\"Failed to perform pages array parallel sort\", e.getCause());\n }\n\n forkJoinPool.shutdown();\n }", "private void runMergeSort(double[] heights, int numberOfThreads, List<List<List<double[]>>> animations) {\n // Merge sort splits the input into separate sections to sorted separately and then merged, so this list keeps\n // track of the starting index of each section of the input\n List<List<Integer>> starts = new ArrayList<List<Integer>>();\n starts.add(new ArrayList<Integer>());\n\n // The number of rectangles separating the start of each section created by the first stage of merge sort\n int interval;\n if(numberOfThreads > arrSize) {\n interval = 1;\n } else {\n interval = (int) Math.ceil((double) arrSize / (double) numberOfThreads);\n }\n\n /*\n The first stage of concurrent merge sort is to sort each separate section of the input with an individual\n thread. Then each subsequent stage consists of merging the separate sections such that the number of\n separately sorted sections is halved until the input is fully sorted. For the purposes of visualization,\n each stage in the process is represented as a time level in the animations list in the form of a list.\n Each separate section of the input at a given time level is represented as a list which is nested inside of\n the list corresponding to the time level at which the section (location) exists. Each list of locations\n holds arrays of doubles with each array representing some step in the process of merge sort (such as the\n comparison of two values, or the changing of some value in the input).\n */\n List<List<double[]>> firstTimeLevel = new ArrayList<List<double[]>>();\n animations.add(firstTimeLevel);\n\n // main.Sorting the separate sections of the input as defined by the number of threads being used\n for(int i = 0; i < arrSize - interval; i += interval) {\n List<double[]> location = new ArrayList<double[]>();\n firstTimeLevel.add(location);\n int start = i;\n int end = (i + interval - 1) > (arrSize - 1) ? arrSize - 1: i + interval - 1;\n starts.get(0).add(start);\n MergeSort.mergeSort(heights, start, end, location);\n }\n\n List<double[]> location = new ArrayList<double[]>();\n firstTimeLevel.add(location);\n int start = (arrSize - interval) >= 0 ? arrSize - interval : 0;\n int end = arrSize - 1;\n starts.get(0).add(start);\n MergeSort.mergeSort(heights, start, end, location);\n\n runMerge(heights, numberOfThreads / 2, starts, animations);\n }", "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 SortingBuffer(int numberOfThreads) \r\n {\r\n this.numberOfThreads = numberOfThreads;\r\n currentValue = new int[numberOfThreads];\r\n // Use a sentinel value to initialize array\r\n Arrays.fill(currentValue, Integer.MIN_VALUE);\r\n }", "@Test\n public void testSort() {\n System.out.println(\"sort\");\n ParallelMergeSort instance = null;\n instance.sort();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private static void do_swaps(State state, int threads, int trials)\n throws InterruptedException{\n Thread[] all_threads = new Thread[threads];\n for (int i = 0; i < threads; i++) {\n int thread_trials = (trials / threads);\n if( i< trials % threads)\n thread_trials+=1;\n all_threads[i] = new Thread (new SwapTest (thread_trials, state));\n }\n long start_time = System.nanoTime();\n for (int i = 0; i < threads; i++)\n all_threads[i].start ();\n for (int i = 0; i < threads; i++)\n all_threads[i].join ();\n long end_time = System.nanoTime();\n double elapsed_time_in_ns = end_time - start_time;\n System.out.printf(\"Threads average %f ns per transition\\n\",\n elapsed_time_in_ns * threads / trials);\n }", "public abstract void setThreadNumber(int threadIdx);", "public void sort() {\n }", "private void setup() {\r\n final int gsz = _g.getNumNodes();\r\n if (_k==2) {\r\n\t\t\tNodeComparator2 comp = new NodeComparator2();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t} else { // _k==1\r\n\t\t\tNodeComparator4 comp = new NodeComparator4();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t}\r\n for (int i=0; i<gsz; i++) {\r\n _origNodesq.add(_g.getNodeUnsynchronized(i)); // used to be _g.getNode(i)\r\n }\r\n _nodesq = new TreeSet(_origNodesq);\r\n //System.err.println(\"done sorting\");\r\n }", "public void moveSort() {\r\n\t\trefX = 0;\r\n\t\tmoveSort(root);\r\n\t}", "void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }", "private void sort(int low, int n) {\n\t\tif (n > 1) {\n\t\t\tint mid = n >> 1;\n\t\t\t// create a lambda expression of Runnable to sort the first half of the array as separate thread\n\t\t\tRunnable r1 = ()->sort(low, mid);\n\t\t\t// create a lambda expression of Runnable to sort the second half of the array as separate thread\n\t\t\tRunnable r2 = ()->sort(low + mid, mid);\n\t\t\t\n\t\t\tThread t1 = new Thread(r1);\n\t\t\tThread t2 = new Thread(r2);\n\t\t\t\n\t\t\t// start the first thread\n\t\t\tt1.start();\n\t\t\t// start the second thread\n\t\t\tt2.start();\n\t\t\t// the t1.join and t2.join will instruct the main thread not exit before t1 and t2 are complete\n\t\t\ttry {\n\t\t\t\tt1.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tt2.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Now time to combine\n\t\t\tcombine(low, n, 1);\n\t\t}\n\t}", "public void run (){\n String currThrdId = new String (\"\");\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n currThrdId = new Long(Thread.currentThread().getId()).toString(); \n tArray.add(currThrdId);\n ConcurrentTest.cb.await(); \n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n \n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads!\");\n ConcurrentTest.failed = true;\n }\n \n // The task for thread: try to find its name for 100 exchange operations\n int counter = rm.nextInt(300)+100;\n try {\n Thread.sleep(rm.nextInt(100)+1);\n } catch (InterruptedException e1) {\n ConcurrentTest.failed = true;\n }\n String thrdId = tArray.remove(0); \n while (counter > 0){\n if (thrdId == currThrdId){\n break;\n }\n try {\n thrdId = exch.exchange(thrdId, rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n } catch (TimeoutException e) {\n // Expected\n }\n counter--;\n }\n //System.out.println(counter);\n\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 2: test PriorityBlockingQueue \n //devide threads to sending and receiving\n // to thread: Who are you - sender or receiver?\n counter = rm.nextInt(100);\n int threadChoice = rm.nextInt(2);\n if (threadChoice == 0){\n while (counter > 0){\n //emit into queue\n String toQue = \"Que_\" + new Long(Thread.currentThread().getId()).toString() + \"_\" + rm.nextInt(100);\n if (counter == 50){\n // process one exception\n toQue = null;\n }\n try{\n bQue.put(toQue);\n }catch(NullPointerException e){\n // Expected\n }\n counter--;\n //System.out.println(\"Emmited \" + counter);\n }\n } else{\n while (counter > 0){\n //read from queue\n try {\n bQue.poll(rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n }\n counter--;\n //System.out.println(\"Read \" + counter);\n }\n }\n \n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 3: test Semaphore \n // limit Semathor with 1/3 of number of threads\n // replaced doing something with rundomized time thread sleep\n // sm is located in ConcurrentTest bacause we need to initialize it\n // with 1/3 number of threads\n counter = 1000;\n while (counter > 0){\n try {\n stats.getAndAdd(ConcurrentTest.sm.availablePermits());\n ConcurrentTest.sm.acquire();\n //System.out.println(\"in\");\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n ConcurrentTest.failed = true;\n }\n \n try {\n Thread.currentThread().sleep(rm.nextInt(5)+1);\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n //ConcurrentTest.failed = true;\n }\n \n stats.getAndAdd(ConcurrentTest.sm.getQueueLength());\n ConcurrentTest.sm.release();\n //System.out.println(\"out\");\n counter--; \n }\n\n // final actions\n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads, final!\");\n ConcurrentTest.failed = true;\n }\n \n ConcurrentTest.cb.reset();\n }", "public void clickedSortCFRButton(Button button) {\r\n this.updateRaceCFR(lastStateMemory);\r\n this.updateCFRCFR(lastStateMemory);\r\n this.updateBarCFR(lastStateMemory);\r\n }", "public void setSortingStatus(boolean sorted) {\n this.sorted = sorted;\n }", "public void clickedSortAlphaButton(Button button) {\r\n this.updateRaceABC(lastStateMemory);\r\n this.updateCFRABC(lastStateMemory);\r\n this.updateBarABC(lastStateMemory);\r\n }", "private static void evaluateMergesortUniversityWashington() {\n\n // LOGGER.info(\"evaluating sequential mergesort by the University of Washington\");\n\n // The time before start to sort.\n long startTime;\n\n // The time after sort.\n long endTime;\n\n // generate sorted array\n numbers = generateSortedArray(ARRAY_SIZE);\n\n // get array to evaluate\n generateWorstUnsortArray(numbers);\n\n // get systemtime before sorting\n startTime = System.currentTimeMillis();\n\n // sort\n MergesortUniversityWashington.parallelMergeSort(numbers);\n\n // get systemtime after sorting\n endTime = System.currentTimeMillis();\n\n // show the result of the sorting process\n System.out.println(\"\\n- Sortierergebnis: Sequential (University Washington) -\");\n System.out.println(\"Die sortierte Folge lautet: \" + arrayToString(numbers));\n System.out.printf(\"Für die Sortierung wurden %d ms benötigt\", endTime - startTime);\n System.out.println(\"\\n------------------------------------------------\\n\");\n }", "public void insertionSort(int[] arr) \n {\n int i, j, newValue;\n try\n { \n //looping over the array to sort the elements\n for (i = 1; i < arr.length; i++) \n {\n thread.sleep(100);\n newValue = arr[i];\n j = i;\n if(!orderPanel) //condition for Descending order\n {\n while (j > 0 && arr[j - 1] > newValue) \n {\n arr[j] = arr[j - 1]; // swapping the elements \n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n else // condition for Ascending order\n {\n while (j > 0 && arr[j - 1] < newValue) \n {\n arr[j] = arr[j - 1];\n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n arr[j] = newValue;\n \n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e); \n }\n \n \n }", "private static void evaluateMergesortUniversityWashingtonOpenMP() {\n\n // LOGGER.info(\"evaluating parallel mergesort with OpenMP based on the version of the University of\n // Washington\");\n\n // The time before start to sort.\n long startTime;\n\n // The time after sort.\n long endTime;\n\n // generate sorted array\n numbers = generateSortedArray(ARRAY_SIZE);\n\n // get array to evaluate\n generateWorstUnsortArray(numbers);\n\n // get systemtime before sorting\n startTime = System.currentTimeMillis();\n\n // sort @TODO\n // MergesortUniversityWashingtonOpenMP.parallelMerge(numbers);\n\n // get systemtime after sorting\n endTime = System.currentTimeMillis();\n\n // show the result of the sorting process\n System.out.println(\"\\n- Sortierergebnis: OpenMP (University Washington) -\");\n System.out.println(\"Die sortierte Folge lautet: \" + arrayToString(numbers));\n System.out.printf(\"Für die Sortierung wurden %d ms benötigt\", endTime - startTime);\n System.out.println(\"\\n------------------------------------------------\\n\");\n }", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "public void waitForAccess(KThread thread) \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n ThreadState waiterState = getThreadState(thread);\n waiterState.waitForAccess(this); //Call waitForAccess of ThreadState class\n waitQueue.add(thread); //Add this thread to this waitQueue \n if(owner != null)\n\t\t\t{\n\t\t\t getThreadState(owner).donatePriority(waiterState.getPriority()-getThreadState(owner).getPriority()); //See if the incoming thread has to donate priority to the owner\n\t\t\t}\n\t\t}", "public void bubbleSort(int [] intArray)\n {\n int n = intArray.length;\n int temp = 0;\n try\n {\n for(int i=0; i < n; i++)\n {\n thread.sleep(100); //sleep the thread to particular to view the results in panel\n this.setThreadState();\n for(int j=1; j < (n-i); j++)\n { \n if(!orderPanel) //check for Descending order\n {\n if(intArray[j-1] > intArray[j])\n {\n //swap the elements!\n temp = intArray[j-1];\n intArray[j-1] = intArray[j];\n intArray[j] = temp;\n repaint();\n \n \n }\n }\n else if(intArray[j-1] < intArray[j]) //check for Ascending order\n {\n temp = intArray[j-1]; \n intArray[j-1] = intArray[j];\n intArray[j] = temp;\n repaint();\n \n }\n \n }\n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n }", "public void setBubbleSort() \n\t{\n\t\tint last = recordCount + NOT_FOUND; //array.length() - 1\n\n\t\twhile(last > RESET_VALUE) //last > 0\n\t\t{\n\t\t\tint localIndex = RESET_VALUE; \n\t\t\tboolean swap = false;\n\n\t\t\twhile(localIndex < last) \n\t\t\t{\n\t\t\t\tif(itemIDs[localIndex] > itemIDs[localIndex + 1]) \n\t\t\t\t{\n\t\t\t\t\tsetSwapArrayElements(localIndex);\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t\t\tlocalIndex++;\n\t\t\t}\n\n\t\t\tif(swap == false) \n\t\t\t{\n\t\t\t\tlast = RESET_VALUE;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tlast = last + NOT_FOUND;\n\t\t\t}\n\n\t\t}//END while(last > RESET_VALUE)\n\t\treturn;\n\t}", "@Override\n\tpublic void onToggleSort(String header) {\n\t\tsynapseClient.toggleSortOnTableQuery(this.startingQuery.getSql(), header, new AsyncCallback<String>(){\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tshowError(caught);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String sql) {\n\t\t\t\trunSql(sql);\n\t\t\t}});\n\t}", "public void run()\n/* */ {\n/* 534 */ while (!this.dispose)\n/* */ {\n/* */ \n/* 537 */ if (!this.workToDo)\n/* */ {\n/* 539 */ synchronized (this) {\n/* 540 */ try { wait();\n/* */ } catch (InterruptedException e) {\n/* 542 */ e.printStackTrace(SingleThreadedTabuSearch.err); } } } else { synchronized (this) { this.bestMove = SingleThreadedTabuSearch.getBestMove(this.soln, this.moves, this.objectiveFunction, this.tabuList, this.aspirationCriteria, this.maximizing, this.chooseFirstImprovingMove, this.tabuSearch);this.workToDo = false;notifyAll();\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "public final void beforeExecute(Thread thread, Runnable runnable) {\r\n super.beforeExecute(thread, runnable);\r\n try {\r\n if (this.a > 0) {\r\n thread.setPriority(this.a);\r\n return;\r\n }\r\n if (runnable instanceof w) {\r\n thread.setPriority(((w) runnable).a);\r\n }\r\n } catch (Throwable unused) {\r\n }\r\n }", "public static void main(String[] args) {\n\t\tint []array = {1,10,2,6,3,11,13,41};\r\n\t\tSystem.out.println(\"Before Sorting: \"+Arrays.toString(array));\r\n\t\tselectionSort(array);\r\n\t\tSystem.out.println(\"After Sorting: \"+Arrays.toString(array));\r\n\r\n\t}", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // CHECK THREAD GROUP INFO\n log.info(\"Active count: \" + threadGroup.activeCount());\n log.info(\"Active Group Count: \" + threadGroup.activeGroupCount());\n threadGroup.list();\n\n // THREAD ENUMERATE\n Thread[] threads = new Thread[threadGroup.activeCount()];\n threadGroup.enumerate(threads);\n for (Thread thread : threads) {\n log.info(thread.getName() + \" present state: \" + thread.getState());\n }\n String name = \"€\";\n\n // INTERRUPT THREADS\n //threadGroup.interrupt();\n\n // CHECK RESULT WHEN FINISH\n if(waitFinish(threadGroup)) {\n log.error(\"Result is: \" + result.getName()); //last thread name\n }\n\n }", "public static void main(String[] args) {\n\t\t// Part 1 Bench Testing\n\t\t// -----------------------------------\n\n\t\t// -----------------------------------\n\t\t// Array and other declarations\n\t\t// -----------------------------------\n\t\tStopWatch sw = new StopWatch(); // timer for measuring execution speed\n\t\tfinal int SIZE = 100000; // size of array we are using\n\n\t\tint[] sourceArray, copyArray; // arrays for testing insertionSort and selectionSort\n\t\tInteger[] sourceArray2, copyArray2; // arrays for testing shell, merge, quicksort\n\n\t\t// -------------------------------------------------\n\t\t// Array initialization to a predetermined shuffle\n\t\t// -------------------------------------------------\n\t\tsourceArray = new int[SIZE]; // for use in selection, insertion sort\n\t\tscrambleArray(sourceArray, true); // scramble to a random state\n\t\tsourceArray2 = new Integer[SIZE]; // for use in shell,merge,quicksort\n\t\tscrambleArray(sourceArray2, true); // scramble to a random state\n\n\t\t// ---------------------------------------\n\t\t// SELECTION SORT\n\t\t// ---------------------------------------\n\t\t// for all sorts, we must reset copyArray\n\t\t// to sourceArray before sorting\n\t\t// ---------------------------------------\n\t\tcopyArray = Arrays.copyOf(sourceArray, SIZE);\n\n\t\tSystem.out.println(\"Before Selection Sort\");\n\t\t// printArray(copyArray);\n\t\tSystem.out.println(\"Selection Sort\");\n\t\tsw.start(); // start timer\n\t\tSortArray.selectionSort(copyArray, SIZE);\n\t\tsw.stop(); // stop timer\n\t\tSystem.out.println(\"selection sort took \" + sw.getElapsedTime() + \" msec\");\n\t\tSystem.out.println(\"After Selection Sort\");\n\t\t// printArray(copyArray);\n\n\t\t// -----------------------------------------\n\t\t// INSERTION SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 2 here\n\n\t\t// -----------------------------------------\n\t\t// SHELL SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray2 back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 3 here\n\n\t\t// -----------------------------------------\n\t\t// MERGE SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray2 back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 4 here\n\n\t\t// -----------------------------------------\n\t\t// QUICK SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray2 back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 5 here\n\n\t}", "public Sorter(ExecutorService pool, Phaser ph, int data[], int start, int len) {\n\t\t\tthis.pool = pool;\n\t\t\tthis.ph = ph;\n\t\t\tthis.data = data;\n\t\t\tthis.start = start;\n\t\t\tthis.len = len;\n\n\t\t\tph.register();\n\t\t}", "public void changeSortOrder();", "@Override public void run() {\n\t\t\t// Handle the base case:\n\t\t\tif(len - start < 2) {\n\t\t\t\t// Arrive at the base-case state & return:\n\t\t\t\tph.arrive();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TODO: Select an optimal pivot point:\n\t\t\tint pivot = start;\n\n\t\t\t// Perform the necessary swap operations:\n\t\t\tfor(int i = start; i < len; ++i) {\n\t\t\t\tif(data[i] < data[pivot]) {\n\t\t\t\t\tint tmp = data[pivot];\n\t\t\t\t\tdata[pivot] = data[i];\n\t\t\t\t\tdata[i] = data[pivot + 1];\n\t\t\t\t\tdata[pivot + 1] = tmp;\n\t\t\t\t\t++pivot;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Handle the single-threaded case:\n\t\t\tif(this.pool == null) {\n\t\t\t\t// Store local variables temporarily:\n\t\t\t\tint start = this.start;\n\t\t\t\tint len = this.len;\n\n\t\t\t\t// Do the first half:\n\t\t\t\tthis.len = pivot;\n\t\t\t\trun();\n\n\t\t\t\t// Prepare for the second half of the array:\n\t\t\t\tthis.len = len;\n\t\t\t} else {\n\t\t\t\t\t// Register a task to process the first half of the array:\n\t\t\t\t\t// TODO: Don't do this if that thread's base-case is met\n\t\t\t\t\tpool.submit(new Sorter(this.pool, this.ph, data, start, pivot));\n\t\t\t}\n\n\t\t\t// Recursively process the second half of the array:\n\t\t\tstart = pivot + 1;\n\t\t\trun();\n\t\t}", "public static void main(String[] args) throws IOException{\n final int ELEMENT_SIZE = 1000;\n \n // How large (how many elements) the arrays will be\n int dataSize = 0;\n // How many times the program will run\n int trials = 1;\n // User-inputted number that dictates what sort the program will use\n int sortSelector = 0;\n // Variables for running time caculations\n long startTime = 0;\n long endTime = 0;\n long duration = 0;\n // The longest time a sort ran, in seconds\n double maxTime = 0;\n // The fastest time a sort ran, in seconds\n double minTime = Double.MAX_VALUE;\n // The average time a sort ran, running \"trials\" times\n double average = 0;\n // A duration a sort ran, in seconds\n double durationSeconds = 0;\n\n Scanner reader = new Scanner(System.in);\n \n System.out.println(\"Please enter a size for the test array: \");\n dataSize = reader.nextInt();\n \n System.out.println(\"Please enter the amount of times you would like the sort to run: \");\n trials = reader.nextInt();\n // Slection menu for which sort to run\n System.out.println(\"Please designate the sorting algorithim you would like the program to use: \");\n System.out.println(\"Enter \\\"1\\\" for BubbleSort \");\n System.out.println(\"Enter \\\"2\\\" for SelectionSort \");\n System.out.println(\"Enter \\\"3\\\" for InsertionSort \");\n System.out.println(\"Enter \\\"4\\\" for QuickSort \");\n System.out.println(\"Enter \\\"5\\\" for MergeSort \");\n sortSelector = reader.nextInt();\n // Print sorting results header and begin running sort(s)\n System.out.println();\n System.out.println(\"Trial Running times (in seconds): \");\n \n int[] original = new int[dataSize];\n int[] sortingArray = new int[dataSize];\n \n // This loop controls the amount of times a sorting algorithim will run\n for(int i = 1; i <= trials; i++){\n // Start by generating test array\n for(int j = 0; j < dataSize; j++){\n original[j] = (int)((Math.random() * ELEMENT_SIZE) + 1);\n }\n // Copy the original to a working array\n for(int j = 0; j < dataSize; j++){\n sortingArray[j] = original[j];\n }\n // Start the \"timer\"\n startTime = System.nanoTime();\n // Run whatever sort the user selected, BubbleSort is default\n switch(sortSelector){\n case 1:\n BubbleSort.runSort(sortingArray);\n break;\n case 2:\n SelectionSort.runSort(sortingArray);\n break;\n case 3:\n InsertionSort.runSort(sortingArray);\n break;\n case 4:\n QuickSort.runSort(sortingArray);\n break;\n case 5:\n MergeSort.runSort(sortingArray);\n break;\n default:\n BubbleSort.runSort(sortingArray);\n break;\n }\n // End the \"timer\"\n endTime = System.nanoTime();\n // Generate the program's running duration\n duration = endTime - startTime;\n // Convert running time to seconds\n durationSeconds = ((double)duration / 1000000000.0);\n // Print the duration (to file)\n System.out.println(durationSeconds);\n // Update min/max running times\n if(durationSeconds < minTime){\n minTime = durationSeconds;\n }\n if(durationSeconds > maxTime){\n maxTime = durationSeconds;\n }\n // Add latest trial to running average\n average += durationSeconds;\n }\n // After trials conclude, the average running time has to be calculated\n average /= ((double)trials);\n \n System.out.println(\"\\nAfter running your selected sort \" + trials + \" times: \");\n System.out.println(\"The slowest sort took \" + maxTime + \" seconds, \");\n System.out.println(\"the fastest sort took \" + minTime + \" seconds, \");\n System.out.println(\"and the average running time was \" + average + \" seconds. \");\n \n // Left this in for testing the sorting algorithims themselves\n /*\n System.out.println();\n for(int element : original){\n System.out.println(element);\n }\n System.out.println();\n for(int element : sortingArray){\n System.out.println(element);\n }\n */\n }", "public static void main(String[] args) {\n LinkedList<Integer> myInts = new LinkedList<>();\n myInts.insert(1);\n myInts.insert(3);\n myInts.insert(7);\n myInts.insert(8);\n myInts.insert(5);\n myInts.insert(15);\n myInts.insert(22);\n\n myInts.displayList();\n\n// System.out.println(myInts.get(10));\n\n int[] values = {1, 1000, 200, 4000, 500, 700, 10000};\n sleepSort(values);\n }", "public static void main(String[] args) {\n SortSelection SelectionSort = new SortSelection();\n\n // mencetak data awal sebelum dilakukan sorting\n System.out.println(\"Data awal : \");\n\n // mendeklarsikan angka pada elenen array data bertipe data integer\n int data[] = {3, 10, 4, 6, 8, 9, 7, 2, 1, 5};\n\n // menampilkan function SelectionSort tampil dari array data\n SelectionSort.tampil(data);\n System.out.println();\n\n // memulai waktu jalannya proses program dengan currentTimeMillis\n long awal = System.currentTimeMillis();\n\n // proses perulangan untuk mengurutkan data menggunakan SelectionSort\n for (int i = 0; i < data.length; i++) {\n int min = i;\n for (int s = i + 1; s < data.length; s++) {\n if (data[s] < data[min]) {\n min = s;\n }\n }\n\n // menyimpan data hasil pengurutan pada variable array min\n int temp = data[min];\n data[min] = data[i];\n data[i] = temp;\n\n // mencetak data hasil SelectionSort\n System.out.println(\"index ke \" + i + \" dan index ke \" + min);\n SelectionSort.tampil(data);\n }\n System.out.println();\n\n // mencetak waktu sorting SelectionSort\n long waktu = System.currentTimeMillis() - awal;\n System.out.println(\"Waktu Sorting : \" + waktu);\n\n // Mencetak hasil akhit dari SelectionSort\n System.out.println(\"Hasil AKhir Sorting \");\n SelectionSort.tampil(data);\n }", "@Override\n public <T extends Comparable<? super T>> List<T> sort(List<T> list){\n return pool.invoke(new ForkJoinSorter<T>(list));\n }", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "public MultiThreadQuickSorter(Comparator<T> comparator, int maxThreads) {\n super(comparator);\n\n this.maxThreads = maxThreads;\n executor = Executors.newFixedThreadPool(maxThreads);\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "public synchronized void setThreads(int threads)\n/* */ {\n/* 122 */ if (threads <= 0) {\n/* 123 */ return;\n/* */ }\n/* */ \n/* 126 */ this.threads = threads;\n/* */ \n/* */ \n/* 129 */ if (this.helpers == null) {\n/* 130 */ this.helpers = new NeighborhoodHelper[threads];\n/* 131 */ for (int i = 0; i < threads; i++)\n/* */ {\n/* 133 */ this.helpers[i] = new NeighborhoodHelper(null);\n/* 134 */ this.helpers[i].start();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 140 */ if (this.helpers.length < threads)\n/* */ {\n/* */ \n/* 143 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 146 */ for (int i = 0; i < threads; i++) {\n/* 147 */ temp[i] = (i < this.helpers.length ? this.helpers[i] : new NeighborhoodHelper(null));\n/* */ }\n/* */ \n/* 150 */ this.helpers = temp;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 155 */ else if (this.helpers.length > threads)\n/* */ {\n/* */ \n/* 158 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 161 */ for (int i = 0; i < threads; i++) {\n/* 162 */ if (i < threads) {\n/* 163 */ temp[i] = this.helpers[i];\n/* */ } else {\n/* 165 */ this.helpers[i].dispose();\n/* */ }\n/* */ }\n/* 168 */ this.helpers = temp;\n/* */ }\n/* 170 */ notifyAll();\n/* */ }", "private void sort()\n {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Sorting movies...\");\n pd.setCancelable(false);\n pd.show();\n\n movieList.clear();\n if(show.equals(\"notWatched\"))\n watched(false);\n else if(show.equals(\"watched\"))\n watched(true);\n else movieList.addAll(baseMovieList);\n\n if(orderBy.equals(\"alphabet\"))\n sortAlphabet();\n else if(orderBy.equals(\"date\"))\n sortDate();\n else sortRating();\n\n if(orderType)\n Collections.reverse(movieList);\n\n recyclerView.setAdapter(movieAdapter);\n pd.dismiss();\n }", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public void intializeThread(String algorithm)\n {\n thread = new Thread(this); // creating a new thread\n thread.start(); // starting a thread\n this.comboAlgorithm = algorithm;\n this.setThreadState(); // calling the thread state method\n }", "void selectionSort(int[] array) {\r\n\r\n\t\tint size = array.length;\r\n\r\n\t\tfor (int step = 0; step < size; step++) {\r\n\t\t\tint minIndex = step;\r\n\t\t\tfor (int i = step + 1; i < size; i++) {\r\n\r\n\t\t\t\tif (array[i] < array[minIndex]) {\r\n\t\t\t\t\tminIndex = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tint temp = array[step];\r\n\t\t\tarray[step] = array[minIndex];\r\n\t\t\tarray[minIndex] = temp;\r\n\t\t\tSystem.out.println(\"Round - \" + (step + 1) + \" - \" + Arrays.toString(array));\r\n\t\t}\r\n\r\n\t}", "public void selectionSort(ArrayList <Comparable> list){\r\n\t\tsteps += 2;\r\n\t\tfor (int i = list.size() - 1; i >= 0; i--){\r\n\t\t\tsteps ++;\r\n\t\t\tint biggest = 0; \r\n\t\t\tsteps += 2;\r\n\t\t\tfor (int j = 0; j < i; j++){\r\n\t\t\t\tsteps += 4;\r\n\t\t\t\tif (list.get(j).compareTo(list.get(biggest)) > 0){\r\n\t\t\t\t\tsteps ++;\r\n\t\t\t\t\tbiggest = j;\r\n\t\t\t\t}\r\n\t\t\t\tsteps += 2;\r\n\t\t\t}\r\n\t\t\tsteps += 5;\r\n\t\t\tswap(list, i, biggest);\r\n\t\t\tsteps += 2;\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Selection Sort\");\r\n\t\tSystem.out.println();\r\n\t}", "private Sort() { }", "public static void parallelSort(List<Integer> data, int numProcessors) {\n if (((data.size() / numProcessors) <= 1) || (numProcessors <= 1)) {\n ParSort.sequentialSort(data, 0, data.size());\n return;\n }\n\n int splitDepth = (int) (Math.log(numProcessors) / Math.log(2));\n\n ThreadPool pool = new ThreadPool(numProcessors);\n List<Job> jobs = new ArrayList<>();\n\n ParSort.parallelSort(data, 0, data.size(), jobs, 0, splitDepth);\n\n for (Job job : jobs)\n pool.submit(job);\n\n for (Job job : jobs)\n job.waitUntilFinished();\n }", "public MultiThreadedTabuSearch() {}", "public void setSortindex(Integer sortindex) {\n this.sortindex = sortindex;\n }", "private void reset() throws ParallelException {\r\n\t\tif (_k==2) _g.makeNNbors(true); // force reset (from cache)\r\n\t\t// else _g.makeNbors(true); // don't force reset (from cache): no need\r\n _nodesq = new TreeSet(_origNodesq);\r\n }", "@Override\n public void threadStarted() {\n }", "public static int[] selectionSort(int[] array) {\n\n if(array.length== 0) {\n return new int[] {};\n }\n\n int[] arraySorted = new int[array.length];\n int[] arrayWaitToSorted = new int[array.length];\n\n\n\n int startIndex = 0;\n while ( startIndex < array.length ) {\n int swapMinIndex = startIndex;\n\n\n\n\n\n for (int j = startIndex+1; j < array.length ; j++) {\n\n\n if (array[j] < array[swapMinIndex] ) {\n swapMinIndex = j;\n }\n\n }\n\n int temp = array[swapMinIndex];\n array[swapMinIndex] = array[startIndex];\n array[startIndex] = temp;\n\n startIndex++;\n\n\n\n// int temp = array[swapMinIndex];\n// arraySorted[i] = array[swapMinIndex];\n// array[swapMinIndex]= array[i];\n }\n\n\n\n\n// return arraySorted;\n return array;\n }", "public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}", "public static void main(String[] args) throws Exception{\n testSort();\n }", "private static void allSorts(int[] array) {\n\t\tSystem.out.printf(\"%12d\",array.length);\n\t\tint[] temp;\n\t\tStopWatch1 timer;\n\t\t\n\t\t//Performs bubble sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.bubbleSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) throws Exception{\n\t\tint[] arr = { 3, 1, 7, 4, 9 };\n\t\tdisplay(arr);\n\t\t// bubbleSort(arr);\n\t\t// selectionSort(arr);\n\t\t// insertionSort(arr);\n\t\t// shellSort(arr);\n\t\t// mergeSort(arr, 0, arr.length - 1);\n\t\tquickSort(arr, 0, arr.length - 1);\n\t\tdisplay(arr);\n\t\t\n//\t\tAll_Sorting1 a = new All_Sorting1();\n//\t\ta.clone();\n//\t\ta.equals(a);\n//\t\ta.finalize();\n//\t\ta.hashCode();\n//\t\ta.notify();\n//\t\ta.notifyAll();\n//\t\ta.toString();\n//\t\ta.wait();\n\t\t\n\t}", "void initializeStateOrder( int nIdWorkflow );", "public static void performSort(Integer[] list, String sortType) {\r\n // make a copy of unsorted list\r\n Integer[] listCopy = new Integer[list.length];\r\n System.arraycopy(list,0,listCopy,0,list.length);\r\n System.out.println(sortType);\r\n // choose sort method. start timer. sort list\r\n long start = 0, end=0;\r\n if(sortType.equals(\"bubbleSort\")){\r\n start = System.nanoTime();\r\n Sorting.bubbleSort(listCopy);\r\n end = System.nanoTime();\r\n }\r\n else if(sortType.equals(\"bubbleSort2\")){\r\n start = System.nanoTime();\r\n Sorting.bubbleSort2(listCopy);\r\n end = System.nanoTime();\r\n }\r\n else if(sortType.equals(\"shellSort\")){\r\n start = System.nanoTime();\r\n Sorting.shellSort(listCopy);\r\n end = System.nanoTime();\r\n }\r\n // end timer. calculate and print duration\r\n //long end = System.nanoTime();\r\n long duration = (end - start);\r\n System.out.println(\"time to sort: \" + duration + \" nanoseconds\");\r\n // print sorted list\r\n System.out.println(\"sorted list\");\r\n for(Integer i: listCopy){\r\n System.out.print(i + \" \");\r\n }\r\n System.out.println(\"\\n\");\r\n }", "public static void selfTest() {\n System.out.println(\"+++Beginning tests for priority scheduler+++\");\n int numTests = 5;\n int count = 0;\n\n boolean machine_start_status = Machine.interrupt().disabled();\n Machine.interrupt().disable();\n\n PriorityScheduler p = new PriorityScheduler();\n\n ThreadQueue t = p.newThreadQueue(true);\n ThreadQueue t1 = p.newThreadQueue(true);\n ThreadQueue t2 = p.newThreadQueue(true);\n ThreadQueue masterQueue = p.newThreadQueue(true);\n\n KThread tOwn = new KThread();\n KThread t1Own = new KThread();\n KThread t2Own = new KThread();\n\n t.acquire(tOwn);\n t1.acquire(t1Own);\n t2.acquire(t2Own);\n\n\n for (int i = 0; i < 3; i++) {\n for (int j = 1; j <= 3; j++) {\n KThread curr = new KThread();\n\n if (i == 0)\n t.waitForAccess(curr);\n else if (i == 1)\n t1.waitForAccess(curr);\n else\n t2.waitForAccess(curr);\n\n p.setPriority(curr, j);\n }\n }\n\n KThread temp = new KThread();\n t.waitForAccess(temp);\n p.getThreadState(temp).setPriority(4);\n\n temp = new KThread();\n t1.waitForAccess(temp);\n p.getThreadState(temp).setPriority(5);\n\n temp = new KThread();\n t2.waitForAccess(temp);\n p.getThreadState(temp).setPriority(7);\n\n temp = new KThread();\n\n masterQueue.waitForAccess(tOwn);\n masterQueue.waitForAccess(t1Own);\n masterQueue.waitForAccess(t2Own);\n\n masterQueue.acquire(temp);\n\n System.out.println(\"master queue: \"); masterQueue.print();\n// System.out.println(\"t queue: \"); t.print();\n// System.out.println(\"t1 queue: \"); t1.print();\n// System.out.println(\"t2 queue: \"); t2.print();\n//\n// System.out.println(\"tOwn effective priority = \" + p.getThreadState(tOwn).getEffectivePriority() + \" and priority = \" + p.getThreadState(tOwn).getPriority());\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority());\n\n System.out.println(\"After taking away max from master queue\");\n KThread temp1 = masterQueue.nextThread();\n masterQueue.print();\n System.out.println(\"temp's effective priority = \" + p.getThreadState(temp).getEffectivePriority() + \" and it's priority = \" + p.getThreadState(temp).getPriority());\n System.out.println(\"nextThread's effective priority = \" + p.getThreadState(temp1).getEffectivePriority());\n Machine.interrupt().restore(machine_start_status);\n// while(count < numTests) {\n// KThread toRun = new KThread(new PriSchedTest(count++));\n// System.out.println(toRun);\n// t.waitForAccess(toRun);\n// p.getThreadState(toRun).setPriority(numTests-count);\n// toRun.fork();\n// }\n// count = 0;\n// while(count++ < numTests) {\n// KThread next = t.nextThread();\n// Lib.assertTrue(p.getThreadState(next).getPriority() == numTests-count);\n// System.out.println(\"Priority is \" + p.getThreadState(next).getPriority());\n// }\n }", "public void setThread(LoadThread thread) {\r\n this.thread = thread;\r\n }", "protected void pause(int H1) throws Exception {\n\tif (stopRequested) {\n\t throw new Exception(\"Sort Algorithm\");\n\t}\n\tparent.pause(H1, parent.h2);\n }", "public abstract void putThread(Waiter waiter, Thread thread);", "private void startComparison(boolean[] selected) throws Exception {\n\n if (showArray) {\n System.out.println(\"target array: \" + Arrays.toString(intSelect.getArray()) + \"\\n\");\n }\n\n\n if (selected[0] == true) {\n timedSort(mergeSort);\n }\n if (selected[1] == true) {\n timedSort(quickSort);\n }\n if (selected[2] == true) {\n timedSort(heapSort);\n }\n\n }", "public void sortBasedPendingJobs();", "protected void pause(int H1, int H2) throws Exception {\n\tif (stopRequested) {\n\t throw new Exception(\"Sort Algorithm\");\n\t}\n\tparent.pause(H1, H2);\n }", "public void selectionSort()\r\n {\r\n for(int x = 0; x < numItems; x++)\r\n {\r\n int smallestLoc = x;\r\n for(int y = x+1; y<numItems; y++)\r\n {\r\n if(mArray[y]< mArray[smallestLoc])\r\n {\r\n smallestLoc = y;\r\n }\r\n }\r\n int temp = mArray[x];\r\n mArray[x] = mArray[smallestLoc];\r\n mArray[smallestLoc] = temp;\r\n }\r\n }", "protected static void resetStateOfExecution(){\n collumsCalculated.set(0);\n updateExecutionStateProperty();\n }", "public void sort(){\r\n\t\t\t// we pass this doubly linked list's head to merge sort it\r\n\t\t\tthis.head = mergeSort(this.head);\r\n\t\t}", "public void run()\n\t{\n\t\tthis.partition();\n\t}", "private Button createExecuteMergeSortButton(BorderPane root) {\n Button executeMergeSortButton = new Button(\"Execute Merge Sort\");\n\n executeMergeSortButton.setOnMouseClicked(event -> {\n // The list of rectangles being displayed to be sorted\n ObservableList<Node> recs = ((HBox) root.getBottom()).getChildren();\n\n // A separate thread is required to show the progress of the sort because the JavaFX thread can't run\n // animations and update the screen at the same time\n Service<Void> sortingThread = new Service<Void>() {\n\n @Override\n protected Task<Void> createTask() {\n return new Task<Void>() {\n\n @Override\n protected Void call() {\n // The user is not allowed to change the number of threads or click the \"Execute Merge Sort\"\n // button while sorting is in progress\n ((HBox) root.getTop()).getChildren().get(2).setDisable(true);\n ((HBox) root.getTop()).getChildren().get(3).setDisable(true);\n\n // The array of rectangle heights is sorted and a list of animations for the rectangles\n // on the screen is created as the sorting executes\n List<List<List<double[]>>> animations = new ArrayList<List<List<double[]>>>();\n runMergeSort(heights, numOfThreads, animations);\n runAnimations(recs, animations);\n\n return null;\n }\n };\n }\n };\n\n sortingThread.setOnSucceeded(workerStateEvent -> {\n ((HBox) root.getTop()).getChildren().get(2).setDisable(false);\n ((HBox) root.getTop()).getChildren().get(3).setDisable(false);\n });\n\n sortingThread.restart();\n });\n\n return executeMergeSortButton;\n }", "public void setSort(Integer sort) {\r\n this.sort = sort;\r\n }", "private static void selectionSort (int[] array) {\n\t\tfor (int i = array.length-1; i >= 0; i--)\n\t\t{\n\t\t\tint index = i;\n\t\t\tfor (int j = i - 1; j >= 0; j--)\n\t\t\t\tif (array[j] > array[index])\n\t\t\t\t\tindex = j;\n\n\t\t\tif (isSorted(array)) return;\n\t\t\tswap(array, index, i);\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}" ]
[ "0.64654565", "0.6241374", "0.6016782", "0.5979919", "0.59258515", "0.59142643", "0.5907611", "0.58625835", "0.5838344", "0.5807298", "0.57850134", "0.5716586", "0.54928845", "0.5490198", "0.5427026", "0.5411281", "0.5410571", "0.54052806", "0.53678083", "0.53115356", "0.52905047", "0.52825576", "0.52764976", "0.5258245", "0.5252605", "0.52487177", "0.52177644", "0.5195263", "0.5187333", "0.51758707", "0.5171722", "0.5145964", "0.5144278", "0.5141862", "0.5141435", "0.51317686", "0.5128153", "0.5123152", "0.5117124", "0.5108313", "0.5094998", "0.5094926", "0.50922287", "0.50810444", "0.50794667", "0.5070759", "0.5036758", "0.50188553", "0.501311", "0.5003188", "0.49880883", "0.4987631", "0.49733195", "0.49612498", "0.4958526", "0.49452814", "0.4943526", "0.49395683", "0.49376407", "0.4920442", "0.4919802", "0.4916195", "0.49050564", "0.49049717", "0.49038097", "0.49031207", "0.49030066", "0.48812836", "0.48779112", "0.48775488", "0.48738486", "0.48677668", "0.4867683", "0.4851867", "0.48475972", "0.48447603", "0.48436663", "0.48355663", "0.48283193", "0.48257372", "0.48252636", "0.48252428", "0.4815168", "0.48133138", "0.48078465", "0.48077008", "0.48068112", "0.48059943", "0.48027456", "0.48000675", "0.47962835", "0.47910875", "0.47826517", "0.478262", "0.4775077", "0.47741306", "0.47724545", "0.47694525", "0.47688174", "0.4763527" ]
0.55038095
12
Function : run Use : thread to execute Parameter : Nothing Returns : Nothing
public void run() { // checking for appropriate sorting algorithm if(comboAlgorithm.equals("Shell Sort")) { this.shellSort(randInt); } if(comboAlgorithm.equals("Selection Sort")) { this.selectionSort(randInt); } if(comboAlgorithm.equals("Insertion Sort")) { this.insertionSort(randInt); } if(comboAlgorithm.equals("Bubble Sort")) { this.bubbleSort(randInt); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run(){\n //logic to execute in a thread \n }", "public static void run(){}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "void run();", "void run();", "void run();", "void run();", "@Override\npublic void run() {\n perform();\t\n}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"Thread working\");\n\t\t\t}", "public void run()\n\t{\n\t}", "@Override\r\n\tabstract public void run();", "public void run(){\n\t}", "@Override\r\n\tpublic abstract void run();", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "public void run() {\r\n }", "@Override\n abstract public void run();", "public static void run() {\n }", "public abstract void run();", "public abstract void run();", "public abstract void run();", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public abstract void run() ;", "public void run()\n {\n\n }", "public void run() {\n\t}", "public void run() {\n\t}", "public void run() {\n\n\n }", "public void run() {\n\n\t}", "public void run() {\n\n\t}", "public void run()\n {\n }", "public void run()\n {\n }", "public void run() {\n\n }", "public final void run() {\r\n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n\t\t\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n }", "public void run() {\n\t\tthis.launch( null );\n\t}", "public void run () { run (true); }", "public abstract void run()\n\t\tthrows Exception;", "public void run() {\n }", "public void run() {\n\t\t\t\t\t\t}", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run()\n\t\t{\n\t\t}", "void runInAudioThread(Runnable runnable) {\n executor.execute(runnable);\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "public void run() throws Exception;", "public void run() {\n }", "public void run() {\n }", "public void runInThread() {\n\t\tTaskRunner taskRunner = Dep.get(TaskRunner.class);\n\t\tATask atask = new ATask<Object>(getClass().getSimpleName()) {\n\t\t\t@Override\n\t\t\tprotected Object run() throws Exception {\n\t\t\t\tBuildTask.this.run();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t};\n\t\ttaskRunner.submitIfAbsent(atask);\n\t}", "@Override\r\n\tpublic void run() {\n\t\tSystem.out.println(this.nome + \"iniciada\");\r\n\t\tint soma = somador.somaArray(this.nums);\r\n\t\tSystem.out.println(\"Resultado da soma para thread \"+this.nome + \" é: \"+ soma);\r\n\t\tSystem.out.println(this.nome + \"terminada\");\r\n\t}", "public static native void run();", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "protected void run() {\r\n\t\t//\r\n\t}", "public void run() {\n // no-op.\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void run() {\n }", "@Override\r\n public void run() {}", "@Override\n public void run() {\n task.run();\n }", "@Override\n\tpublic void run()\n\t{\n\n\t}", "@Override\n\tpublic void run()\n\t{\n\t}", "@Override\n\tpublic void run() {\n\t\tString result = null;\n\t\twhile (checkToStart()) {\n\t\t\tresult = doRun();\n\t\t\tsendResult(result);\n\t\t}\n\t\t// System.out.println(\"Thread - \" + name + \" is dead\");\n\t}", "@Override\n public void run() {\n runTask();\n\n }", "@Override\n public void run() {\n }", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\t\t\t\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.err.println(\"Test:\"+Thread.currentThread());\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void run() {\n }", "public void execute() throws InterruptedException;", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "@Override\n\t\tpublic void run() {\n\n\t\t}", "public void run() {\n\n }", "boolean run();" ]
[ "0.7623069", "0.71636546", "0.7087338", "0.6999483", "0.6999483", "0.6999483", "0.6999483", "0.6999483", "0.6898509", "0.6898509", "0.6898509", "0.6898509", "0.6896329", "0.6842912", "0.6828863", "0.6817432", "0.6782176", "0.6774684", "0.6748725", "0.6741916", "0.6739058", "0.6738839", "0.66423184", "0.66423184", "0.66423184", "0.66071546", "0.66063416", "0.66047776", "0.65942526", "0.65942526", "0.6583055", "0.6581789", "0.6581789", "0.65683734", "0.65683734", "0.6560768", "0.65525264", "0.65493834", "0.654806", "0.6539128", "0.6539128", "0.6539128", "0.6539128", "0.6539003", "0.65368664", "0.65368664", "0.65327495", "0.65212226", "0.6516017", "0.65106964", "0.650805", "0.6507946", "0.65033996", "0.65033996", "0.65033996", "0.6489092", "0.6484369", "0.6475052", "0.6461463", "0.6453116", "0.6453116", "0.6451719", "0.64492744", "0.6446846", "0.6434889", "0.643309", "0.64324075", "0.6429597", "0.6429597", "0.6426225", "0.6414968", "0.64142597", "0.6400712", "0.63942206", "0.63903666", "0.63883877", "0.6387756", "0.638148", "0.63695955", "0.63695955", "0.63695955", "0.6364497", "0.6364497", "0.63642377", "0.6362189", "0.6362189", "0.6362189", "0.6362189", "0.6362189", "0.6362189", "0.6362189", "0.6362189", "0.6362189", "0.63361514", "0.6328107", "0.6324244", "0.632232", "0.63130754", "0.629848", "0.62841225", "0.62799853" ]
0.0
-1
Function : selectionSort Use : sorting the algorithm using appropraite selections Parameter : array of random values Returns : sorted array
public int[] selectionSort(int[] arr) { try { for (int i = 0; i < arr.length - 1; i++) //looping over the array to sort the elements { int index = i; for (int j = i + 1; j < arr.length; j++) if(!orderPanel) // checking for Descending order { if (arr[j] < arr[index]) index = j; } else { if (arr[j] > arr[index]) //checking for Aescending order index = j; } int smallerNumber = arr[index]; arr[index] = arr[i]; arr[i] = smallerNumber; //swapping the values thread.sleep(100); repaint(); this.setThreadState(); } } catch(Exception e) { System.out.println("Exception occured " + e); } return arr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectionSort()\r\n {\r\n for(int x = 0; x < numItems; x++)\r\n {\r\n int smallestLoc = x;\r\n for(int y = x+1; y<numItems; y++)\r\n {\r\n if(mArray[y]< mArray[smallestLoc])\r\n {\r\n smallestLoc = y;\r\n }\r\n }\r\n int temp = mArray[x];\r\n mArray[x] = mArray[smallestLoc];\r\n mArray[smallestLoc] = temp;\r\n }\r\n }", "static void selectionSort(int a[])\n {\n int n = a.length;\n for(int i = 0; i < n-1; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n if(a[i] > a[j])\n swap(a,i,j);\n }\n }\n }", "public static void Selectionsort(int a[]) { \n\t int n = a.length; \n\t for (int i = 0; i < n-1; i++) \n\t { \n\t int min_idx = i; \n\t for (int j = i+1; j < n; j++) \n\t if (a[j] < a[min_idx]) \n\t min_idx = j; \n\t \n\t int temp = a[min_idx]; \n\t a[min_idx] = a[i]; \n\t a[i] = temp; \n\t } \n\t }", "public static double [] selectionSort (double a[]) {\n int length = a.length;\n int i, j;\n boolean needToExchange = false; // can be used to reduce the number of exchanges\n\n for(i = 0; i < length-1; i++)\n {\n int minIndex = i;\n for(j = i+1; j < length; j++)\n {\n if(a[j] < a[minIndex])\n {\n minIndex = j;\n needToExchange = true;\n }\n\n }\n\n if(needToExchange) {\n double tempValue = a[minIndex];\n a[minIndex] = a[i];\n a[i] = tempValue;\n needToExchange = false;\n }\n }\n\n return a;\n }", "static void selectionSort(int[] arr){\r\n\t\t\r\n\t\tfor(int i=0;i<arr.length-1;i++) {\r\n\t\t\t\r\n\t\t\tfor(int j=(i+1);j<arr.length;j++) {\r\n\t\t\t\t\r\n\t\t\t\tif(arr[j] < arr[i]) MyUtil.swap(arr,i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tMyUtil.displayArray(arr);\r\n\t\t\r\n\t}", "static void selectionSort(int arr[]) {\n\t\tfor (int i = 0; i < arr.length - 1; i++) {\r\n\t\t\tfor (int j = i + 1; j < arr.length; j++) {\r\n\t\t\t\tif (arr[i] > arr[j]) {\r\n\t\t\t\t\tswap(arr, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void selectionSort(int[] data){ \n for (int i = 0; i < data.length; i++) {\n\t int placeholder = 0;\n\t for( int j = i; j < data.length; j++) {\n\t if (data[j] < data[i]) {\n\t\t placeholder = data[i];\n\t\t data [i] = data[j];\n\t\t data[j] = placeholder;\n\t }\n\t }\n }\n }", "public static int[] selectionSort(int[] array) {\n\n if(array.length== 0) {\n return new int[] {};\n }\n\n int[] arraySorted = new int[array.length];\n int[] arrayWaitToSorted = new int[array.length];\n\n\n\n int startIndex = 0;\n while ( startIndex < array.length ) {\n int swapMinIndex = startIndex;\n\n\n\n\n\n for (int j = startIndex+1; j < array.length ; j++) {\n\n\n if (array[j] < array[swapMinIndex] ) {\n swapMinIndex = j;\n }\n\n }\n\n int temp = array[swapMinIndex];\n array[swapMinIndex] = array[startIndex];\n array[startIndex] = temp;\n\n startIndex++;\n\n\n\n// int temp = array[swapMinIndex];\n// arraySorted[i] = array[swapMinIndex];\n// array[swapMinIndex]= array[i];\n }\n\n\n\n\n// return arraySorted;\n return array;\n }", "public static void selectionSort(int[] arr) {\n for (int firstUnordered = 0; firstUnordered < arr.length; firstUnordered++) {\n int smallestIndex = firstUnordered;\n for (int j = firstUnordered; j < arr.length; j++) {\n if (arr[j] < arr[smallestIndex]) {\n smallestIndex = j;\n }\n }\n int aux = arr[firstUnordered];\n arr[firstUnordered] = arr[smallestIndex];\n arr[smallestIndex] = aux;\n }\n }", "public static void selectionSort(Comparable[] a) {\n int n = a.length;\n int im;\n for (int i = 0; i < n; i++) {\n im = i;\n for (int j = im; j < n; j++) {\n // Find the min\n if (less(a[j], a[im])) im = j;\n if (i != im) exch(a, i, im);\n }\n }\n }", "public static void selectionSort(int[] arr)\n\t{\n\t\tint len=arr.length;\n\t\tint mIndex;\n\t\tfor(int i=0;i<len;i++){\n\t\t\tmIndex=i;\n\t\t\tfor(int j=i+1;j<len;j++)\n\t\t\t{\n\t\t\t\tif(arr[mIndex]>arr[j])\n\t\t\t\t\tmIndex=j;\n\t\t\t}\n\t\t\tif(mIndex!=i)\n\t\t\t{\n\t\t\t\tint temp=arr[mIndex];\n\t\t\t\tarr[mIndex]=arr[i];\n\t\t\t\tarr[i]=temp;\n\t\t\t}\n\t\t}\n\t}", "public static void selectionSort(int input[]) {\n\t\tfor(int i = 0;i<input.length-1;i++) {\n\t\t\tint min = input[i];\n\t\t\tint minindex = i;\n\t\t\tfor(int j = i+1 ;j<input.length;j++) {\n\t\t\t\tif(min > input[j] ) {\n\t\t\t\t\tmin = input[j];\n\t\t\t\t\tminindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minindex!=i) {\n\t\t\tinput[minindex] = input[i];\n\t\t\t input[i]= min;\n\t\t\t}\n\t\t}\n\t}", "public void selectionSort(int [] array) {\n\t\t\n\t\t//10,3,6,13,2,1\n\t\t//1,3,6,13,2,10 \n\t\t//1,2,6,13,3,10\n\t\t//1,2,3,13,6,10\n\t\t//1,2,3,6,13,10\n\t\t//1,2,3,6,10,13\n\t\t\n\t\tint minValue = 0;\n\t\tint minIndex = 0; \n\t\t\n\t\tfor(int i=0; i<array.length-1; i++) {\n\t\t\t\n\t\t\tminValue = array[i];\n\t\t\t\n\t\t\tfor(int j=i; j<array.length; j++) {\n\t\t\t\t\n\t\t\t\tif(array[j]<minValue) {\n\t\t\t\t\t\n\t\t\t\t\tminValue = array[j];\n\t\t\t\t\tminIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint temp = array[i];\n\t\t\tarray[i] = array[minIndex];\n\t\t\tarray[minIndex] = temp;\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}", "void selectionSort(int[] array) {\r\n\r\n\t\tint size = array.length;\r\n\r\n\t\tfor (int step = 0; step < size; step++) {\r\n\t\t\tint minIndex = step;\r\n\t\t\tfor (int i = step + 1; i < size; i++) {\r\n\r\n\t\t\t\tif (array[i] < array[minIndex]) {\r\n\t\t\t\t\tminIndex = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tint temp = array[step];\r\n\t\t\tarray[step] = array[minIndex];\r\n\t\t\tarray[minIndex] = temp;\r\n\t\t\tSystem.out.println(\"Round - \" + (step + 1) + \" - \" + Arrays.toString(array));\r\n\t\t}\r\n\r\n\t}", "private static void selectionSort (int[] array) {\n\t\tfor (int i = array.length-1; i >= 0; i--)\n\t\t{\n\t\t\tint index = i;\n\t\t\tfor (int j = i - 1; j >= 0; j--)\n\t\t\t\tif (array[j] > array[index])\n\t\t\t\t\tindex = j;\n\n\t\t\tif (isSorted(array)) return;\n\t\t\tswap(array, index, i);\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}", "public void selectionSort(){\n for(int x=0; x < arraySize; x++){\n int minimum = x;\n for(int y = x; y < arraySize; y++){\n // Change to < for descending sort\n if(theArray[minimum] > theArray[y]){\n minimum = y;\n }\n }\n swapValues(x, minimum);\n printHorizontalArray(x, -1);\n }\n }", "static double [] selectionSort (double a[]){\r\n \tif(a==null){\r\n \t\tSystem.out.print(\"Array empty\");\r\n \t\treturn null;\r\n \t}\r\n \tfor (int i =0; i<a.length-1;i++) {\r\n \t\tint minIndex = i;\r\n \t\tfor(int j =i+1; j<a.length ;j++) { //Find min element in unsorted array\r\n \t\t\tif(a[j]<a[minIndex]) {\r\n \t\t\t\tminIndex =j;\r\n \t\t\t}\r\n \t\t}\r\n \t\tdouble temp = a[minIndex]; //Swap min with first element \r\n \t\ta[minIndex]=a[i];\r\n \t\ta[i]=temp;\r\n \t}\r\n \treturn a;\r\n }", "public static void selectionSort(int[] data){\n\n\tfor(int i = 0; i < data.length; i++){\n\t int min = data[i];\n\t int indexToReplace = i;\n\n\t for(int k = i; k < data.length; k++){\n\t\tif(data[k] < min){\n\t\t indexToReplace = k;\n\t\t min = data[k];\n\t\t}\n\t }\n\n\t int old = data[i];\n\t data[i] = min;\n\t data[indexToReplace] = old;\n\t}\n }", "@Test\n\tvoid SelectionSortTest() \n\t{\t\n\t\tint[] twoNumbers = new int[] {2, 1};\n\t\tint[] expTwoNumbers = new int[] {1, 2};\n\t\tint[] everyOther = new int[] {1, 3, 5, 6, 4, 2};\n\t\tint[] expEveryOther = new int[] {1, 2, 3, 4, 5, 6};\n\t\tint[] smallestFirst = new int[] {1, 2, 5, 6, 3, 4};\n\t\tint[] expSmallestFirst = new int[] {1, 2, 3, 4, 5, 6};\n\t\tint[] smallestMiddle = new int[] {3, 4, 1, 2, 5, 6};\n\t\tint[] expSmallestMiddle = new int[] {1, 2, 3, 4, 5, 6};\n\t\t\n\t\tassertArrayEquals(expTwoNumbers, utilities.SelectionSort(twoNumbers));\n\t\tassertArrayEquals(expEveryOther, utilities.SelectionSort(everyOther));\n\t\tassertArrayEquals(expSmallestFirst, utilities.SelectionSort(smallestFirst));\n\t\tassertArrayEquals(expSmallestMiddle, utilities.SelectionSort(smallestMiddle));\n\t}", "public int[] selectionSort(int[] array) {\n for (int i = 0; i < array.length; i++) {\n int smallest = i;\n for (int j = i; j < array.length; j++) {\n if (array[j] < array[smallest]) {\n smallest = j;\n }\n }\n int temp = array[i];\n array[i] = array[smallest];\n array[smallest] = temp;\n }\n return array;\n }", "public static void selectionSort(int[] data){\n\n int sfIndex, lowestSF, store;\n sfIndex = 0;\n for (int i = 0; i < data.length; i++){\n lowestSF = data[i];\n for (int j = i; j < data.length; j++){\n if (data[j] < lowestSF){\n lowestSF = data[j];\n sfIndex = j;\n }\n }\n store = data[i];\n data[i] = lowestSF;\n data[sfIndex] = store;\n }\n }", "public static void selectionSort(int[] arr) {\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tint min_index = i;\n\t\t\tfor (int j = i; j < arr.length; j++) {\n\t\t\t\tif (arr[min_index] > arr[j])\n\t\t\t\t\tmin_index = j;\n\t\t\t}\n\t\t\tif (min_index != i) \n\t\t\t\tUtilities.swap(arr, i, min_index);\n//\t\t\tSystem.out.println(Arrays.toString(arr));\n\t\t}\n\t}", "public static void selectionSort(int[] a) \n {\n for (int i = 0; i < a.length; i++) \n {\n int minPos = minimumPosition(a, i);\n swap(a, minPos, i);\n }\n }", "public static void main(String[] args) {\n\n int[] intArray = { 20, 35, -15, 7, 55, 1, -22};\n\n System.out.println(Arrays.toString(selectionSort(intArray)));\n\n }", "static void SelectionSort(int[] arr){\n int minIndex;\n for(int i = 0; i<arr.length-1; i++){\n minIndex = i;\n for(int j = i+1; j<arr.length;j++){\n if(arr[minIndex]>arr[j]){\n minIndex = j;\n }\n }\n if(minIndex>i){\n Swap(arr,i,minIndex);\n }\n }\n }", "private void selectionSort(T[] arr) {\n for (int i = 0; i < n; i++) {\n int min = i; // the index of the minimal element is set to i by default\n for (int j = i + 1; j < n; j++) {\n if (arr[j].compareTo(arr[min]) < 0)\n min = j;\n }\n swap(arr, i, min);\n }\n }", "public static int[] selectionSort(int[] inputArray) {\n for (int i = 0; i < inputArray.length; i++) {\n int minIndex = i;\n for (int j = i + 1; j < inputArray.length; j++) {\n if (inputArray[j] < inputArray[minIndex]) {\n minIndex = j;\n }\n }\n int temp = inputArray[minIndex];\n inputArray[minIndex] = inputArray[i];\n inputArray[i] = temp;\n }\n return inputArray;\n }", "public static int[] selectionSort(int[] array){\n\t\tint length=array.length;\n\t\tfor(int i=0;i<length-1;i++){\n\t\t\tint index=i;\n\t\t\tfor(int j=i+1;j<length;j++)\n\t\t\t\tif(array[j]<array[index])\n\t\t\t\t\tindex=j;\n\t\t\tint smallestNumber=array[index];\n\t\t\tarray[index]=array[i];\n\t\t\tarray[i]=smallestNumber;\n\t\t}\n\t\treturn array;\n\t}", "public static void selectionSort(int[] arr) {\r\n int min = 0;\r\n int max = arr.length - 1;\r\n while (max > min) {\r\n for (int i = min; i < max; i++) {\r\n if (arr[i] < arr[min]) {\r\n swap(arr, i, min);\r\n }\r\n if (arr[i] > arr[max]) {\r\n swap(arr, i, max);\r\n }\r\n }\r\n min = min + 1;\r\n max = max - 1;\r\n }\r\n }", "private static void selectionSort(double[] numbers) {\n for (int top = numbers.length-1; top > 0; top-- ) {\n int maxloc = 0;\n for (int i = 1; i <= top; i++) {\n if (numbers[i] > numbers[maxloc])\n maxloc = i;\n }\n double temp = numbers[top];\n numbers[top] = numbers[maxloc];\n numbers[maxloc] = temp;\n }\n }", "public void selectionSort(int[] x)\n {\n for (int i = 0; i < x.length-1; i++) {\n int minIndex = i;\n for (int j = i+1; j < x.length; j++) {\n if (x[minIndex] > x[j]) {\n minIndex = j;\n }\n }\n int temp = x[i];\n x[i] = x[minIndex];\n x[minIndex] = temp;\n }\n \n public void replaceFirst(int oldVal, int newVal)\n {\n \n }\n}", "public static int[] selectionSort(int[] arr) {\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tint current = arr[i];\n\t\t\tint indexLess = i;\n\t\t\tfor (int j = i + 1; j < arr.length; j++) {\n\t\t\t\tif (arr[indexLess] > arr[j]) {\n\t\t\t\t\tindexLess = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = arr[indexLess];\n\t\t\tarr[indexLess] = current;\n\t\t}\n\t\treturn arr;\n\t}", "public static int[] SelectionSort(int array[]){\n int j;\n for(int i = 0;i<array.length-1;i++) {\n int minPos = i;\n for (j = i + 1; j < array.length-1; j++) {\n if (array[j] < array[minPos]) {\n minPos = j;\n }\n }\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }\n return array;\n }", "public static void selectionSort(int[] arr) {\r\n\t\tfor (int pos = 0; pos < arr.length - 1; pos++) {\r\n\t\t\tint minIdx = pos;\r\n\t\t\tfor (int scan = pos + 1; scan < arr.length; scan++)\r\n\t\t\t\tif (arr[scan] < arr[minIdx])\r\n\t\t\t\t\tminIdx = scan;\r\n\r\n\t\t\tif (pos != minIdx) {\r\n\t\t\t\tint temp = arr[pos];\r\n\t\t\t\tarr[pos] = arr[minIdx];\r\n\t\t\t\tarr[minIdx] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void selectionSort (int[] arr)\n {\n for (int x = 0; x < arr.length; x++)\n {\n //A variable is used to keep track of the index of the current minumum value\n int minimum = x; \n //The second loop is used to find the smallest element in the unsorted section of the array\n for (int y = x + 1; y < arr.length; y++)\n {\n if (arr[y] < arr[minimum])\n minimum = y;\n }\n //A temporary variable allows the minimum element and the element after the sorted sectino to be swapped\n int temp = arr [minimum];\n arr [minimum] = arr [x];\n arr [x] = temp;\n }\n }", "static void selectionSort(int[] arr) {\n\t\t\t\n\t\tfor(int i = 0; i<arr.length-1;i++) {\n\t\t\tint index =i;\n\t\t\tfor(int j =i+1; j<arr.length;j++) {\n\t\t\t\tif(arr[j]<arr[index]) {\n\t\t\t\t\tindex = j; //finding the smallest index\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t//Swap the found minimum element with the first element\n\t\t\tint temp = arr[index]; \n arr[index] = arr[i]; \n arr[i] = temp;\n\t\t\t\t\t\t}\t\n\t\tfor(int a:arr) \n\t\t{\t\n\t\t\tSystem.out.print(a+ \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public static Comparable[] selectionSort(Comparable[] array) {\n int indexSorted = 0;\r\n //loops once for every array member, although value itself is unused\r\n for (Comparable member : array) {\r\n //remembers the index of the next ,owest member, by default the next index\r\n int low = indexSorted;\r\n \r\n //loops over every array member and comares with current lowest value\r\n for(int j = indexSorted; j < array.length; j++) {\r\n //if a lower value than low is found, set low to index of lower value\r\n if (array[j].compareTo(array[low]) < 0) {\r\n low = j;\r\n }\r\n }\r\n \r\n //if an index other than the next one is the lowest, swap the values of the two indexs\r\n if (low != indexSorted) {\r\n Comparable toShift = array[indexSorted];\r\n array[indexSorted] = array[low];\r\n array[low] = toShift;\r\n }\r\n \r\n //adds one index to the amount of sorted index\r\n indexSorted++;\r\n }\r\n \r\n return array;\r\n }", "public static void selectionsort(Integer[] arr){\n\t\tfor(int i=0;i<arr.length;i++){\n\t\t\tint minIndex=i;\n\t\t\tfor(int j=i+1;j<arr.length;j++){\n\t\t\t\tif(arr[minIndex] > arr[j]){\n\t\t\t\t\tminIndex=j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint temp=arr[i];\n\t\t\tarr[i]=arr[minIndex];\n\t\t\tarr[minIndex]=temp;\n\t\t}\n\t\t\n\t\tfor(int i:arr){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}", "public static void selectionSort(int[] a) {\r\n int temp; // catalyst variable for Integer swapping\r\n int spot; //location in array where minimum will be inserted\r\n int minimum; //location of minimum value in remainder\r\n\r\n for (spot = 0; spot < a.length - 1; spot++) {\r\n minimum = spot; //\r\n for (int i = spot + 1; i < a.length; i++) {\r\n if (a[i] < a[minimum]) {\r\n minimum = i; //if i is less than minimum, i is new minimum\r\n }\r\n }//end for i\r\n\r\n //swap a[spot] and a[minimum]\r\n temp = a[minimum];\r\n a[minimum] = a[spot];\r\n a[spot] = temp;\r\n }//end for spot\r\n }", "public static void selectionSort (int array[])\n {\n for (int i = 0; i < (array.length -1); i++)\n {\n for (int j = i + 1; j < (array.length); j++)\n {\n if(array[i] > array[j])\n //the new found smallest element is swapped\n swap(array, j, i);\n }\n }\n }", "@Test\n public void testSelectionSort(){\n SimpleList<Integer> simpleList = new SimpleList<Integer>();\n simpleList.append(1);\n simpleList.append(2);\n simpleList.append(3);\n simpleList.append(4);\n simpleList.append(5);\n simpleList.append(6);\n simpleList.append(7);\n simpleList.append(8);\n simpleList.append(9);\n simpleList.append(10);\n Sorter.selectionSort(simpleList);\n List<Integer> list = simpleList.getList();\n Integer[] expected = new Integer[]{10,9,8,7,6,5,4,3,2,1};\n Integer[] real = new Integer[simpleList.size()];\n list.toArray(real);\n assertArrayEquals(expected, real);\n }", "static void selection(int arr[]){\n for (int i =0; i < arr.length -1 ; i++){\n for (int j = i +1; j < arr.length; j++){\n if (arr[j] < arr[i]){\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }\n }\n }\n }", "public void selectionSort(int [] nums) {\n\t\tfor(int i=0;i<nums.length;i++) {\n\t\t\tint min=i;\n\t\t\tfor(int j=i+1;j<nums.length;j++) {\n\t\t\t\tif(less(nums[j],nums[i])) \n\t\t\t\t\tmin=j;\n\t\t\t}\n\t\t\tswap(nums,i,min);\n\t\t}\n\t}", "public void selectionSort(int [] nums) {\n\t\tfor(int i=0;i<nums.length;i++) {\n\t\t\tint min=i;\n\t\t\tfor(int j=i+1;j<nums.length;j++) {\n\t\t\t\tif(less(nums[j],nums[i])) \n\t\t\t\t\tmin=j;\n\t\t\t}\n\t\t\tswap(nums,i,min);\n\t\t}\n\t}", "public void selectionSort(int[] array){\n for(int position = 0; position < array.length; position++){\r\n // go through the rest looking for a smaller number\r\n for(int i = position+1; i < array.length; i++){\r\n // have we found smaller?\r\n if(array[i] < array[position]){\r\n // swap numbers\r\n swap(array, i, position);\r\n }\r\n }\r\n }\r\n }", "public void selectionSort(ArrayList <Comparable> list){\r\n\t\tsteps += 2;\r\n\t\tfor (int i = list.size() - 1; i >= 0; i--){\r\n\t\t\tsteps ++;\r\n\t\t\tint biggest = 0; \r\n\t\t\tsteps += 2;\r\n\t\t\tfor (int j = 0; j < i; j++){\r\n\t\t\t\tsteps += 4;\r\n\t\t\t\tif (list.get(j).compareTo(list.get(biggest)) > 0){\r\n\t\t\t\t\tsteps ++;\r\n\t\t\t\t\tbiggest = j;\r\n\t\t\t\t}\r\n\t\t\t\tsteps += 2;\r\n\t\t\t}\r\n\t\t\tsteps += 5;\r\n\t\t\tswap(list, i, biggest);\r\n\t\t\tsteps += 2;\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Selection Sort\");\r\n\t\tSystem.out.println();\r\n\t}", "public static void selectionSort(int data[], int order) {\n int i = 0;\n for (int j = 0; j < data.length; j++) {\n int min = j;\n for (int k = j + 1; k < data.length; k++)\n if (data[k] < data[min])\n min = k;\n int temp = data[i];\n data[i] = data[min];\n data[min] = temp;\n i++;\n }\n }", "public static void main(String[] args) {\n\t\tint []array = {1,10,2,6,3,11,13,41};\r\n\t\tSystem.out.println(\"Before Sorting: \"+Arrays.toString(array));\r\n\t\tselectionSort(array);\r\n\t\tSystem.out.println(\"After Sorting: \"+Arrays.toString(array));\r\n\r\n\t}", "private static void selectionSort(String[] numbers) {\n for (int top = numbers.length-1; top > 0; top-- ) {\n int maxloc = 0;\n for (int i = 1; i <= top; i++) {\n if (numbers[i].compareTo(numbers[maxloc]) > 0)\n maxloc = i;\n }\n String temp = numbers[top];\n numbers[top] = numbers[maxloc];\n numbers[maxloc] = temp;\n }\n }", "public static <T extends Comparable<? super T>> \n\t\t\tvoid selectionSort (T [] array)\n {\t\n\t int startScan, index, minIndex;\n T minValue; \t// Note that T is now a type that can be used in\n \t\t\t\t// this method\n\n for (startScan = 0; startScan < (array.length-1); startScan++)\n {\n minIndex = startScan;\n minValue = array[startScan];\n for(index = startScan + 1; index < array.length; index++)\n {\n if (array[index].compareTo(minValue) < 0)\n {\n minValue = array[index];\n minIndex = index;\n }\n }\n array[minIndex] = array[startScan];\n array[startScan] = minValue;\n }\n \n }", "public void selectionSort() {\n int nextMin;\n\n for (int i = 0; i < IntList.length - 1; i++) {\n nextMin = i;\n for (int j = i + 1; j < IntList.length; j++) {\n if (IntList[j] < IntList[nextMin])\n nextMin = j;\n }\n if (nextMin != i)\n swapSelection(IntList, i, nextMin);\n }\n }", "public static void selectionSort(int[] array) {\n int iOfTempMin;\n\n for (int i = 0; i < array.length - 1; i++) {\n iOfTempMin = i; // 1 - FIND INDEX OF MIN\n \n for (int index = i + 1; index < array.length; index++) {\n \n if (array[index] < array[iOfTempMin])\n iOfTempMin = index; \n }\n swap(array, i, iOfTempMin); // 2 - SWAP\n }\n }", "static void doubleSelectionSort (int [] array) {\n\t for (int i = 0, j = array.length - 1; (i < array.length && j >= 0); i++, j--)\n {\n int minIndex = i;\n int maxIndex = j;\n\n for (int a = i + 1; a < array.length; a++)\n if (array[a] < array[minIndex])\n minIndex = a;\n\n for (int b = j - 1; b >= 0; b--)\n if (array[b] > array[maxIndex])\n maxIndex = b;\n\n if (isSorted(array)) return;\n\n swap(array, minIndex, i);\n System.out.println(Arrays.toString(array));\n swap(array, maxIndex, j);\n System.out.println(Arrays.toString(array));\n }\n\t}", "public static int[] selectionSort(int[] array)\r\n {\n for (int i = 0; i < array.length-1; i++)\r\n {\r\n // This variable will keep track of the index of the smallest\r\n // element found during this pass of the unsorted portion of the\r\n // array. Since we start at i, that will be the smallest as we\r\n // start each iteration of the outer loop.\r\n int minIndex = i;\r\n \r\n // this inner for loop starts at i+1 and searches through the entire\r\n // remaining unsorted array to see if it can find an item that is\r\n // less than what is currently at array[minIndex]\r\n for (int j = i+1; j < array.length; j++)\r\n {\r\n // during each iteration of this inner loop, check to see if the\r\n // item we are currently looking at is less than the item at\r\n // array[minIndex]. If it is less, we need to change our\r\n // minIndex to be set to the current index we are looking at, in\r\n // this case j.\r\n if (array[j] < array[minIndex])\r\n {\r\n minIndex = j;\r\n }\r\n }\r\n \r\n // once we have found the smallest element in the unsorted portion\r\n // of the array, we need to swap it with the item at index i. But we\r\n // don't want to do this if they are the same index, so if minIndex\r\n // equals i, then do nothing, otherwise we need to perform the swap.\r\n if (minIndex != i)\r\n {\r\n int temp = array[i];\r\n array[i] = array[minIndex];\r\n array[minIndex] = temp;\r\n }\r\n }\r\n \r\n return array;\r\n }", "public static void selectionSort (int[] elts) {\r\n\t\tint minPosition;\r\n\t\tint length = elts.length;\r\n\t\tfor (int i = 0; i < length-1; i++) {\r\n\t\t\tminPosition = findMinPositionSegment (elts, i, length-i);\r\n\t\t\tif (minPosition != i)\r\n\t\t\t\tswap (elts, i, minPosition);\r\n\t\t}\r\n\t}", "public static void selectionSort (int[] elts) {\r\n\t\tint minPosition;\r\n\t\tint length = elts.length;\r\n\t\tfor (int i = 0; i < length-1; i++) {\r\n\t\t\tminPosition = findMinPositionSegment (elts, i, length-i);\r\n\t\t\tif (minPosition != i)\r\n\t\t\t\tswap (elts, i, minPosition);\r\n\t\t}\r\n\t}", "public static void selectionSorter(int[] arr) {\n //run n-1 times where n is array length\n for(int i = 0; i < arr.length - 1; i++) {\n //find the minimum element in unsorted list\n //swap it with arr[i]\n int min = i;\n for(int j = i + 1; j < arr.length; j++) {\n if(arr[j] < arr[min]) {\n min = j;\n }\n }\n swap(arr,min,i);\n }\n }", "static void selectionSort(int[] A) {\n\t // Sort A into increasing order, using selection sort\n\t \n\t for (int lastPlace = A.length-1; lastPlace > 0; lastPlace--) {\n\t // Find the largest item among A[0], A[1], ...,\n\t // A[lastPlace], and move it into position lastPlace \n\t // by swapping it with the number that is currently \n\t // in position lastPlace.\n\t \n\t int maxLoc = 0; // Location of largest item seen so far.\n\t \n\t for (int j = 1; j <= lastPlace; j++) {\n\t if (A[j] > A[maxLoc]) {\n\t // Since A[j] is bigger than the maximum we've seen\n\t // so far, j is the new location of the maximum value\n\t // we've seen so far.\n\t maxLoc = j; \n\t }\n\t }\n\t \n\t int temp = A[maxLoc]; // Swap largest item with A[lastPlace].\n\t A[maxLoc] = A[lastPlace];\n\t A[lastPlace] = temp;\n\t \n\t } // end of for loop\n\t \n\t}", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test(timeout = SHORT_TIMEOUT)\n public void testTinySelectionSort() {\n //size-0 arr\n toSort = new IntPlus[0];\n sortedInts = cloneArr(toSort);\n Sorting.selectionSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n\n //size-1 arr\n toSort = new IntPlus[1];\n toSort[0] = new IntPlus(42);\n sortedInts = cloneArr(toSort);\n Sorting.selectionSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n }", "public static void selectionSort(double[] list) {\r\n for (int i = 0; i < list.length - 1; i++) {\r\n // Find the minimum in the list[i..list.length-1]\r\n \t\tint min_index = i;\r\n \t\tfor(int k = i+1; k < list.length; k++) {\r\n \t\t if(list[k] < list[min_index]) {\r\n \t\t min_index = k;\r\n }\r\n }\r\n\r\n // Swap list[i] with list[currentMinIndex] if necessary;\r\n \t\tdouble temp = list[i];\r\n \t\tlist[i] = list[min_index];\r\n \t\tlist[min_index] = temp;\r\n }\r\n }", "public static void sort (int[] data)\n {\n \t\n \tfor(int i = 0; i < data.length-1; i++)\n \t{\n \t\tint max = data[i];\n \t\tint indexOfMax = i;\n \t\t\n \t\tfor(int j = i + 1; j < data.length; j++)\n \t\t{\n \t\t\tif(data[j] > max)\n \t\t\t{\n \t\t\t\tmax = data[j];\n \t\t\t\tindexOfMax = j;\n \t\t\t}\n \t\t}\n \t\t\n \t\tdata[indexOfMax] = data[i];\n \t\tdata[i] = max;\n \t}\n \t\n // Your TA will help you write selection sort in lab. \n }", "public static void main(String[] args) {\n\t\t// Part 1 Bench Testing\n\t\t// -----------------------------------\n\n\t\t// -----------------------------------\n\t\t// Array and other declarations\n\t\t// -----------------------------------\n\t\tStopWatch sw = new StopWatch(); // timer for measuring execution speed\n\t\tfinal int SIZE = 100000; // size of array we are using\n\n\t\tint[] sourceArray, copyArray; // arrays for testing insertionSort and selectionSort\n\t\tInteger[] sourceArray2, copyArray2; // arrays for testing shell, merge, quicksort\n\n\t\t// -------------------------------------------------\n\t\t// Array initialization to a predetermined shuffle\n\t\t// -------------------------------------------------\n\t\tsourceArray = new int[SIZE]; // for use in selection, insertion sort\n\t\tscrambleArray(sourceArray, true); // scramble to a random state\n\t\tsourceArray2 = new Integer[SIZE]; // for use in shell,merge,quicksort\n\t\tscrambleArray(sourceArray2, true); // scramble to a random state\n\n\t\t// ---------------------------------------\n\t\t// SELECTION SORT\n\t\t// ---------------------------------------\n\t\t// for all sorts, we must reset copyArray\n\t\t// to sourceArray before sorting\n\t\t// ---------------------------------------\n\t\tcopyArray = Arrays.copyOf(sourceArray, SIZE);\n\n\t\tSystem.out.println(\"Before Selection Sort\");\n\t\t// printArray(copyArray);\n\t\tSystem.out.println(\"Selection Sort\");\n\t\tsw.start(); // start timer\n\t\tSortArray.selectionSort(copyArray, SIZE);\n\t\tsw.stop(); // stop timer\n\t\tSystem.out.println(\"selection sort took \" + sw.getElapsedTime() + \" msec\");\n\t\tSystem.out.println(\"After Selection Sort\");\n\t\t// printArray(copyArray);\n\n\t\t// -----------------------------------------\n\t\t// INSERTION SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 2 here\n\n\t\t// -----------------------------------------\n\t\t// SHELL SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray2 back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 3 here\n\n\t\t// -----------------------------------------\n\t\t// MERGE SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray2 back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 4 here\n\n\t\t// -----------------------------------------\n\t\t// QUICK SORT\n\t\t// -----------------------------------------\n\t\t// Reset copyArray2 back to unsorted state\n\t\t// -----------------------------------------\n\n\t\t// add statements for STEP 5 here\n\n\t}", "public int[] selectionSort(int[] lista) {\r\n\t for (int i = 0; i < lista.length; i++) {\r\n\t int inicial = lista[i];\r\n\t int minId = i;\r\n\t for (int j = i+1; j < lista.length; j++) {\r\n\t if (lista[j] < inicial) {\r\n\t inicial = lista[j];\r\n\t minId = j;\r\n\t }\r\n\t }\r\n\t // swapping\r\n\t int cambiar = lista[i];\r\n\t lista[i] = inicial;\r\n\t lista[minId] = cambiar;\r\n\t }\r\n\t return lista;\r\n\t}", "public static int[] selectionSort(int[] arr, int n){\n for(int i=0; i<n-1; i++){\n int minIndex = i;\n for(int j= i+1; j<n; j++){\n if(arr[j] < arr[minIndex]){\n minIndex = j;\n }\n }\n int temp = arr[minIndex];\n arr[minIndex] = arr[i];\n arr[i] = temp;\n }\n return arr;\n }", "public static void selectionSort(int[] list) {\n for (int i=0; i<list.length-1; i++) {\n //find the minimum in the list [i... list.length-1]\n int currentMin= list[i];\n int currentMinIndex=i;\n \n for (int j=i+1; j<list.length; j++) {\n if (currentMin>list[j]) {\n currentMin=list[j];\n currentMinIndex=j;\n }\n }\n \n //swap list[i] with list[currentMinIndex] if necessary\n if (currentMinIndex != i) {\n list[currentMinIndex]=list[i];\n list[i]= currentMin;\n }\n }\n for (int j=0;j<list.length;j++) { //loop that print out all the values inputed\n System.out.print(list[j]+\" \");\n }\n }", "public static void selectionSort(int[] list) {\n for (int i = 0; i < list.length - 1; i++) {\n int currentMin = list[i];\n int currentMinIndex = i;\n \n for (int j = i + 1; j < list.length; j++) {\n if (currentMin < list[j]) {\n currentMin = list[j];\n currentMinIndex = j;\n }\n }\n \n // swap list[i] with list[currentMinIndex] if necessary\n if (currentMinIndex != i) {\n list[currentMinIndex] = list[i];\n list[i] = currentMin;\n }\n }\n }", "private static void selectionSort(ArrayList<Box> BoxArray) { \n\n\t\tfor ( int i = 0; i < BoxArray.size(); i++ ) { \n\t\t\tint lowPos = i; \n\t\t\tfor ( int j = i + 1; j < BoxArray.size(); j++ ) \n\t\t\t\tif ( BoxArray.get(j).volume() < BoxArray.get(lowPos).volume() ) \n\t\t\t\t\tlowPos = j;\n\t\t\tif ( BoxArray.get(lowPos) != BoxArray.get(i) ) { \n\t\t\t\tBox temp = BoxArray.get(lowPos);\n\t\t\t\tBoxArray.set(lowPos, BoxArray.get(i));\n\t\t\t\tBoxArray.set(i, temp);\n\t\t\t}\n\t\t}\n\t}", "public static void SelectionSort(int[] array) {\n for (int i=0; i<array.length; i++){\n int min_element = array[i];\n int min_ind = i;\n for (int j=i; j<array.length; j++) {\n if (array[j] < min_element) {\n min_element = array[j];\n min_ind = j;\n }\n }\n swap(array, i, min_ind);\n }\n }", "public static void selectionSort(int[] data, int i, int j){\n\t\tfor(int k = i; k <= j && k < data.length; k++){\n\t\t\tint minIndex = k;\n\t\t\tfor(int s = k + 1; s <= j && s < data.length; s++){\n\t\t\t\tif(data[minIndex] > data[s])\n\t\t\t\t\tminIndex = s;\n\t\t\t}\n\t\t\tif(minIndex != k){\n\t\t\t\tint tmp = data[k];\n\t\t\t\tdata[k] = data[minIndex];\n\t\t\t\tdata[minIndex] = tmp;\n\t\t\t}\n\t\t}\n\t}", "public static void selectionSort(double [] list1)\r\n\t{\r\n\t\tdouble temp= 0.0;\r\n\t\tint smallest=0;\r\n\t\r\n\t\tfor(int outside=0; outside<list1.length; outside++)\r\n\t\t{\r\n\t\t\t//System.out.println(\"Outside: \" + outside);\r\n\t\t\tsmallest=outside;\r\n\t\t\tfor(int inside=1+outside; inside<list1.length; inside++)\r\n\t\t\t{\r\n\t\t\t\tif(list1[inside]<list1[smallest])\r\n\t\t\t\t{\r\n\t\t\t\t\tsmallest = inside;\t\t\r\n\t\t\t\t\t//System.out.println(smallest);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttemp=list1[smallest];\r\n\t\t\tlist1[smallest]=list1[outside];\r\n\t\t\tlist1[outside]=temp;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n SortSelection SelectionSort = new SortSelection();\n\n // mencetak data awal sebelum dilakukan sorting\n System.out.println(\"Data awal : \");\n\n // mendeklarsikan angka pada elenen array data bertipe data integer\n int data[] = {3, 10, 4, 6, 8, 9, 7, 2, 1, 5};\n\n // menampilkan function SelectionSort tampil dari array data\n SelectionSort.tampil(data);\n System.out.println();\n\n // memulai waktu jalannya proses program dengan currentTimeMillis\n long awal = System.currentTimeMillis();\n\n // proses perulangan untuk mengurutkan data menggunakan SelectionSort\n for (int i = 0; i < data.length; i++) {\n int min = i;\n for (int s = i + 1; s < data.length; s++) {\n if (data[s] < data[min]) {\n min = s;\n }\n }\n\n // menyimpan data hasil pengurutan pada variable array min\n int temp = data[min];\n data[min] = data[i];\n data[i] = temp;\n\n // mencetak data hasil SelectionSort\n System.out.println(\"index ke \" + i + \" dan index ke \" + min);\n SelectionSort.tampil(data);\n }\n System.out.println();\n\n // mencetak waktu sorting SelectionSort\n long waktu = System.currentTimeMillis() - awal;\n System.out.println(\"Waktu Sorting : \" + waktu);\n\n // Mencetak hasil akhit dari SelectionSort\n System.out.println(\"Hasil AKhir Sorting \");\n SelectionSort.tampil(data);\n }", "public static void main(String[] args) {\n\t\tSelectionSort ob=new SelectionSort();\n\t\tint i=0;\n\t\tint min=0;\n\t\tfor(int j=i+1;j<a.length;j++){\n\t\t\tmin=ob.mini(a, j);\n\t\t\tif(a[i]>a[min]){\n\t\t\t\tob.exch(a, i, min);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tfor(int i1=0;i1<a.length;i1++){\n\t\t\tSystem.out.println(a[i1]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}", "public static int[] selectionSort(int[] numbers) {\n\n\t\t// double for loop to iterate over next position in array to be sorted (i)\n\t\t// and to iterate over remaining numbers in the array (j)\n\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < numbers.length; j++) {\n\t\t\t\tif (numbers[j] < numbers[index]) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// swap numbers if a smaller number is found\n\t\t\tint smallestNumber = numbers[index];\n\t\t\tnumbers[index] = numbers[i];\n\t\t\tnumbers[i] = smallestNumber;\n\n\t\t}\n\n\t\treturn numbers;\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tint[] a;\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.bubble(a);\r\n\r\n\t\tSystem.out.println(\"BubbleSort: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.selection(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nSelection: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.insertion(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nInsertion: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.mergeSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nMerge: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.quickSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.qs(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick1: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args)\n {\n //reading the size of array\n Scanner in = new Scanner(System.in);\n int size = 0;\n System.out.println(\"Enter the size of the array\\n\");\n size = in.nextInt();\n\n // creating a random array of given size\n Random rd = new Random();\n int[] array = new int[size];\n for (int i = 0; i < array.length; i++)\n array[i] = rd.nextInt(size);\n\n //System.nanoTime() is used to calculate the time taken by the algorithm to multiply the numbers\n //implementing selection sort and timing the performance\n final long startTimeS = System.nanoTime();\n selectionSort(array);\n System.out.print(\"Sorted array via selection sort: \");\n printArray(array);\n final long elapsedTimeS = System.nanoTime() - startTimeS;\n System.out.println(\"The time taken: \" + elapsedTimeS);\n\n //implementing bogo sort and timing the performance\n final long startTime = System.nanoTime();\n bogoSort(array);\n System.out.print(\"Sorted array via bogo sort: \");\n printArray(array);\n final long elapsedTime = System.nanoTime() - startTime;\n System.out.println(\"The time taken: \" + elapsedTime);\n\n //implementing insertion sort and timing the performance\n final long startTimeI = System.nanoTime();\n insertSort(array);\n System.out.print(\"Sorted array via insertion sort: \");\n printArray(array);\n final long elapsedTimeI = System.nanoTime() - startTimeI;\n System.out.println(\"The time taken: \" + elapsedTimeI);\n\n //implementing merge sort and timing the performance\n final long startTimeM = System.nanoTime();\n mergeSort(array, size);\n System.out.print(\"Sorted array via merge sort: \");\n printArray(array);\n final long elapsedTimeM = System.nanoTime() - startTimeM;\n System.out.println(\"The time taken: \" + elapsedTimeM);\n\n //implementing enhanced merge sort and timing the performance\n final long startTimeEm = System.nanoTime();\n enhancedMergeSort(array, size);\n System.out.print(\"Sorted array via enhanced merge sort: \");\n printArray(array);\n final long elapsedTimeEm = System.nanoTime() - startTimeEm;\n System.out.println(\"The time taken: \" + elapsedTimeEm);\n\n //implementing quick sort and timing the performance\n final long startTimeQ= System.nanoTime();\n quickSort(array);\n System.out.print(\"Sorted array via quick sort: \");\n printArray(array);\n final long elapsedTimeQ = System.nanoTime() - startTimeQ;\n System.out.println(\"The time taken: \" + elapsedTimeQ);\n\n //implementing enhanced quick sort and timing the performance\n final long startTimeEq = System.nanoTime();\n enhancedQuickSort(array);\n System.out.print(\"Sorted array via enhanced quick sort: \");\n printArray(array);\n final long elapsedTimeEq= System.nanoTime() - startTimeEq;\n System.out.println(\"The time taken: \" + elapsedTimeEq);\n\n }", "private void sortArray(int[] myArray) {\n\t\t// Selection sort\n\t\tint n = myArray.length;\n\t\tint temp = 0;\n\t\t\n\t\tfor(int i=0; i<n-1; i++) {\n\t\t\t\n\t\t\tint min = i;\n\t\t\t\n\t\t\tfor(int j=n-1; j>i; j--) {\n\t\t\t\tif( myArray[j] < myArray[min] ) {\n\t\t\t\t\tmin = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif( min != i ) {\n\t\t\t\ttemp = myArray[i];\n\t\t\t\tmyArray[i] = myArray[min];\n\t\t\t\tmyArray[min] = temp;\n\t\t\t}\n\t\t}\n\t}", "public static void sortIntegersBySelect(int[] A) {\n\n for (int i = 0; i < A.length; i++) {\n int minIndex = i;\n for (int j = i; j < A.length; j++) {\n if (A[j] < A[minIndex]) {\n minIndex = j;\n }\n }\n // 选择排序的关键:找出最小值的那个下标,然后第一个数和它交换\n // 然后依次交换第二个,第三个。。。\n int temp = A[minIndex];\n A[minIndex] = A[i];\n A[i] = temp;\n }\n }", "public static void main(String[] args) {\n\t\tint []arr={1,5,3,4,2,9,6,8};\n\t\tSort.selectSort(arr);\n\n\t}", "public static void main(String[] args) {\n int size = 100;\n int mult = 100;\n\n ArrayList<Integer> numbers = new ArrayList<>();\n\n //generate random array to sort\n for (int i = 0; i < size; i++) {\n numbers.add((int) (Math.random() * mult));\n }\n\n System.out.println(numbers.toString());\n\n numbers = quickSortSubset(numbers,0);\n\n System.out.println(numbers.toString());\n\n }", "void ascendingSelectionSort(int[] arr,int n){\n for(int i=0;i<n-1;i++){\n int min_index = i;\n for(int j=i+1;j<n;j++){\n if(arr[j]<arr[min_index]){\n min_index = j;\n }\n }\n if(i != min_index){\n int temp = arr[i];\n arr[i] = arr[min_index];\n arr[min_index]= temp;\n }\n }\n }", "public SortedArrayInfo sortArray(List<Integer> randomNumbers);", "public static double testSelectionSort(Integer[] list){\n\t\tdouble totalTime = 0;\n\t\tfor (int i = 0; i < TEST_RUNS; i++){\n\t\t\tInteger[] tmp = Arrays.copyOf(list, list.length);\t// make copy of list\n\t\t\tt.start();\t\t\t\t\t\t\t\t\t\t\t// start clock\t\n\t\t\tSelectionSort.sort(tmp);\t\t\t\t\t\t\t// sort copy\n\t\t\ttotalTime += t.getTime();\t\t\t\t\t\t\t// end clock and increment total\n\t\t\tSystem.gc();\n\t\t}\n\t\treturn totalTime / TEST_RUNS;\n\t}", "public static void main(String[] args) {\n\t\tint input[]= {5,6,3,1,8,7,2,4};\t\t\n\t\t//print(input);\n\t\tprint(fnSelectionSort(input));\t\n\t}", "public static void main(String[] args) {\n\t\tArraySel arr = new ArraySel(10);\n\t\tarr.insert(10);\n\t\tarr.insert(35);\n\t\tarr.insert(5);\n\t\tarr.insert(2);\n\t\tarr.insert(15);\n\t\tarr.insert(20);\n\t\tarr.insert(30);\n\t\tarr.display();\n\t\tarr.selectionSort();\n\n\t}", "public static <T extends Comparable<? super T>> void selectionSort(List<T> list){\n int size = list.size();\n if(size > 1){\n for(int i = 0; i < size; i++){\n int lowestIndex = i;\n for(int j = i; j < size; j++){\n if(list.get(lowestIndex).compareTo(list.get(j)) > 0){\n lowestIndex = j;\n }\n }\n if(lowestIndex != i){\n swap(list, i, lowestIndex);\n }\n }\n }\n }", "private static int[] sortedArray(int[] randomArray) {\n\t\tint temp = 0;\r\n\t\tfor (int i = 0; i < randomArray.length; i++) {\r\n\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\tif (randomArray[i] > randomArray[j]) {\r\n\t\t\t\t\ttemp = randomArray[i];\r\n\t\t\t\t\trandomArray[i] = randomArray[j];\r\n\t\t\t\t\trandomArray[j] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}", "public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }", "public SelectionSort2 (Integer [] nums)\n\t{\n\t\tthis.nums = nums;\n\t}", "public static void main(String[] args) throws IOException{\n final int ELEMENT_SIZE = 1000;\n \n // How large (how many elements) the arrays will be\n int dataSize = 0;\n // How many times the program will run\n int trials = 1;\n // User-inputted number that dictates what sort the program will use\n int sortSelector = 0;\n // Variables for running time caculations\n long startTime = 0;\n long endTime = 0;\n long duration = 0;\n // The longest time a sort ran, in seconds\n double maxTime = 0;\n // The fastest time a sort ran, in seconds\n double minTime = Double.MAX_VALUE;\n // The average time a sort ran, running \"trials\" times\n double average = 0;\n // A duration a sort ran, in seconds\n double durationSeconds = 0;\n\n Scanner reader = new Scanner(System.in);\n \n System.out.println(\"Please enter a size for the test array: \");\n dataSize = reader.nextInt();\n \n System.out.println(\"Please enter the amount of times you would like the sort to run: \");\n trials = reader.nextInt();\n // Slection menu for which sort to run\n System.out.println(\"Please designate the sorting algorithim you would like the program to use: \");\n System.out.println(\"Enter \\\"1\\\" for BubbleSort \");\n System.out.println(\"Enter \\\"2\\\" for SelectionSort \");\n System.out.println(\"Enter \\\"3\\\" for InsertionSort \");\n System.out.println(\"Enter \\\"4\\\" for QuickSort \");\n System.out.println(\"Enter \\\"5\\\" for MergeSort \");\n sortSelector = reader.nextInt();\n // Print sorting results header and begin running sort(s)\n System.out.println();\n System.out.println(\"Trial Running times (in seconds): \");\n \n int[] original = new int[dataSize];\n int[] sortingArray = new int[dataSize];\n \n // This loop controls the amount of times a sorting algorithim will run\n for(int i = 1; i <= trials; i++){\n // Start by generating test array\n for(int j = 0; j < dataSize; j++){\n original[j] = (int)((Math.random() * ELEMENT_SIZE) + 1);\n }\n // Copy the original to a working array\n for(int j = 0; j < dataSize; j++){\n sortingArray[j] = original[j];\n }\n // Start the \"timer\"\n startTime = System.nanoTime();\n // Run whatever sort the user selected, BubbleSort is default\n switch(sortSelector){\n case 1:\n BubbleSort.runSort(sortingArray);\n break;\n case 2:\n SelectionSort.runSort(sortingArray);\n break;\n case 3:\n InsertionSort.runSort(sortingArray);\n break;\n case 4:\n QuickSort.runSort(sortingArray);\n break;\n case 5:\n MergeSort.runSort(sortingArray);\n break;\n default:\n BubbleSort.runSort(sortingArray);\n break;\n }\n // End the \"timer\"\n endTime = System.nanoTime();\n // Generate the program's running duration\n duration = endTime - startTime;\n // Convert running time to seconds\n durationSeconds = ((double)duration / 1000000000.0);\n // Print the duration (to file)\n System.out.println(durationSeconds);\n // Update min/max running times\n if(durationSeconds < minTime){\n minTime = durationSeconds;\n }\n if(durationSeconds > maxTime){\n maxTime = durationSeconds;\n }\n // Add latest trial to running average\n average += durationSeconds;\n }\n // After trials conclude, the average running time has to be calculated\n average /= ((double)trials);\n \n System.out.println(\"\\nAfter running your selected sort \" + trials + \" times: \");\n System.out.println(\"The slowest sort took \" + maxTime + \" seconds, \");\n System.out.println(\"the fastest sort took \" + minTime + \" seconds, \");\n System.out.println(\"and the average running time was \" + average + \" seconds. \");\n \n // Left this in for testing the sorting algorithims themselves\n /*\n System.out.println();\n for(int element : original){\n System.out.println(element);\n }\n System.out.println();\n for(int element : sortingArray){\n System.out.println(element);\n }\n */\n }", "public static void selection(double[] list){\n \n double currentMin = 0;\n int currentMinIndex = 0;\n \n // searches overall array\n for(int i = 0; i < list.length - 1; i++){\n currentMin = list[i];\n currentMinIndex = i;\n \n // This is where the array will be sorted\n for(int j = i + 1; j < list.length; j++){\n // will comapre current numbers to next\n if(currentMin < list[j]){\n currentMin = list[j];\n currentMinIndex = j;\n }\n }\n \n // This is where the values are swaped\n if(currentMinIndex != i){\n list[currentMinIndex] = list[i];\n list[i] = currentMin;\n }\n } \n }", "@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }", "public static void selectionSortDescendTrace(int [] numbers, int numElements) {\r\n int max;\r\n for(int j = 0; j < numElements; j++){ //finds first index of array at time\r\n max = j;\r\n for(int i = j; i < numElements; i++){\r\n if(numbers[max] < numbers[i]){\r\n max = i;\r\n }\r\n // System.out.print(max);\r\n }\r\n //System.out.println(max);\r\n if(j > 0){\r\n for (int num : numbers){\r\n System.out.print(num + \" \");\r\n }\r\n System.out.println();\r\n }\r\n\r\n int temp = numbers[max];\r\n numbers[max] = numbers[j];\r\n numbers[j] = temp;\r\n }\r\n }", "public static void main(String[] args) {\n\t\tint [] a1= {10,4,5,6,34,46,7,23};\r\n\t\tSelection_Sort s=new Selection_Sort(a1);\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Bubble Sort\");\r\n\t\tint[] arr1 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr1));\r\n\t\tBubble.sort(arr1);\r\n\t\tSystem.out.println(Arrays.toString(arr1));\r\n\t\t\r\n\t\tSystem.out.println(\"Select Sort\");\r\n\t\tint[] arr2 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr2));\r\n\t\tSelect.sort(arr2);\r\n\t\tSystem.out.println(Arrays.toString(arr2));\r\n\t\t\r\n\t\tSystem.out.println(\"Insert Sort\");\r\n\t\tint[] arr3 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr3));\r\n\t\tInsert.sort(arr3);\r\n\t\tSystem.out.println(Arrays.toString(arr3));\r\n\t\t\r\n\t\tSystem.out.println(\"Quick Sort\");\r\n\t\tint[] arr4 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr4));\r\n\t\tQuickSort.sort(arr4, 0, arr4.length-1);\r\n\t\tSystem.out.println(Arrays.toString(arr4));\r\n\t\t\r\n\t\tbyte b = -127;\r\n\t\tb = (byte) (b << 1);\r\n\t\tSystem.out.println(b);\r\n\t}", "public void simpleSelectionSort(int start, int end, int[] array) {\n\t\tfor (int i = start; i <= end - 1; i++) {\n\t\t\tint minIndex = i;\n\t\t\tfor (int k = i + 1; k <= end; k++) {\n\t\t\t\tif (array[k] < array[minIndex]) {\n\t\t\t\t\tminIndex = k;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Yes, find smaller element\n\t\t\tif (minIndex != i) {\n\t\t\t\tCommUtil.swap(i, minIndex, array);\n\t\t\t}\n\t\t}\n\t}", "void sort(int[] sort);", "void sort();", "void sort();", "public static void sort(int[] ds){\n\t\tfor(int i = 0, maxi = ds.length - 1; i < maxi; i++){\n\t\t\tint min = i;\n\t\t\tfor(int j = i + 1, maxj = ds.length; j < maxj; j++){\n\t\t\t\tif(ds[min] > ds[j]){\n\t\t\t\t\tmin = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint t = ds[min];\n\t\t\tds[min] = ds[i];\n\t\t\tds[i] = t;\n\t\t}\n\t}" ]
[ "0.77528894", "0.76205856", "0.75722533", "0.75445825", "0.74927914", "0.74708277", "0.74319303", "0.7426419", "0.7344428", "0.7335507", "0.72796565", "0.72740823", "0.72596663", "0.72581106", "0.72393626", "0.7212158", "0.72115034", "0.71894634", "0.71688604", "0.7164569", "0.7164219", "0.715413", "0.7146188", "0.71336275", "0.7122928", "0.71133137", "0.7095363", "0.70952445", "0.70916873", "0.7082637", "0.70701", "0.7054526", "0.70521265", "0.7036343", "0.7019854", "0.70181", "0.7011329", "0.69875294", "0.69819486", "0.6966182", "0.6950289", "0.69429785", "0.6915773", "0.6915773", "0.68961096", "0.68753964", "0.68685734", "0.68578756", "0.68448323", "0.68321157", "0.6819655", "0.68177813", "0.68152964", "0.68015105", "0.6794835", "0.6794835", "0.67506903", "0.6749276", "0.6741766", "0.67331076", "0.671239", "0.6708876", "0.6682561", "0.66712976", "0.66548437", "0.6654072", "0.6632382", "0.6609104", "0.6606321", "0.65984625", "0.65664095", "0.6537723", "0.65115255", "0.6509764", "0.64963686", "0.647982", "0.6417405", "0.6411483", "0.6403386", "0.6356173", "0.63035774", "0.6293554", "0.62933815", "0.62870485", "0.6272088", "0.6242949", "0.61963683", "0.6191305", "0.61736476", "0.6163384", "0.6161361", "0.61244977", "0.6124023", "0.6115075", "0.61068046", "0.603595", "0.6027737", "0.6021063", "0.6021063", "0.600869" ]
0.71256894
24
Function : insertionSort Use : sorting the algorithm using appropraite insertions Parameter : array of random values Returns : nothing
public void insertionSort(int[] arr) { int i, j, newValue; try { //looping over the array to sort the elements for (i = 1; i < arr.length; i++) { thread.sleep(100); newValue = arr[i]; j = i; if(!orderPanel) //condition for Descending order { while (j > 0 && arr[j - 1] > newValue) { arr[j] = arr[j - 1]; // swapping the elements repaint(); // painting the GUI this.setThreadState(); j--; } } else // condition for Ascending order { while (j > 0 && arr[j - 1] < newValue) { arr[j] = arr[j - 1]; repaint(); // painting the GUI this.setThreadState(); j--; } } arr[j] = newValue; } } catch(Exception e) { System.out.println("Exception occured" + e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertionSort() {\n\t\tfor (int i = 1; i < numberOfElements; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\twhile (j > 0) {\n\t\t\t\tif (arr[j - 1] <= temp) {\n\t\t\t\t\tnumberOfComparisons++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumberOfComparisons++;\n\t\t\t\tarr[j] = arr[j - 1];\n\t\t\t\tnumberOfCopies++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j] = temp;\n\t\t}\n\t}", "public static void main(String[] args)\n {\n int[] array=new int[5];\n Random ran=new Random();\n for(int i=0;i<array.length;i++)\n {\n //assign each item a value range from 0~99\n array[i]=ran.nextInt(100);\n }\n\n System.out.println(\"Before Insertion Sort: \"+Arrays.toString(array));\n insertionSort(array,array.length);\n System.out.println(\"After Insertion Sort : \"+Arrays.toString(array));\n\n }", "public static void Insertionsort(int a[]) \n\t { \n\t int n = a.length; \n\t for (int i=1; i<n; ++i) \n\t { \n\t int key = a[i]; \n\t int j = i-1;\n\t while (j>=0 && a[j] > key) \n\t { \n\t a[j+1] = a[j]; \n\t j = j-1; \n\t } \n\t a[j+1] = key; \n\t } \n\t }", "public void insertionSort() {\n Comparable p = (Comparable) array[0];\n Comparable[] sorted = new Comparable[array.length];\n sorted[0] = p;\n for (int i = 0; i < array.length - 1; i++) {\n if (p.compareTo(array[i + 1]) < 0) {\n p = (Comparable) array[i + 1];\n sorted[i + 1] = p;\n } else {\n Comparable temp = (Comparable) array[i + 1];\n int j = i;\n while (j >= 0 && sorted[j].compareTo(array[i + 1]) > 0) {\n j--;\n }\n for (int q = i; q > j; q--) {\n sorted[q + 1] = sorted[q];\n }\n sorted[j + 1] = temp;\n }\n }\n this.array = (T[]) sorted;\n }", "static void insertionSort(int array[]) {\n int n = array.length;\n //for key selection\n for (int i = 1; i < n; ++i) {\n int key = array[i];\n int j = i - 1;\n\n //Compare the key and elements of array, move greater elements to one position further \n while (j >= 0 && array[j] > key) {\n array[j + 1] = array[j];\n j = j - 1;\n\n }\n array[j + 1] = key;\n }\n\n }", "@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }", "public static void insertSort (int array[])\n {\n for (int i = 1; i < array.length; ++i)\n {\n int key = array[i];\n int j = i -1;\n\n while(j >= 0 && array[j] > key)\n {\n array[j + 1] = array[j];\n j = j - 1;\n }\n array[j+1] = key;\n }\n }", "static double [] insertionSort (double a[]){\r\n //todo: implement the sort\r\n \tif(a==null){ //could be length\r\n \t\tSystem.out.print(\"Array empty\");\r\n \t\treturn null;\r\n \t}\r\n \tfor(int i = 1; i <a.length; i++) {\r\n \t\tdouble current = a[i];\r\n \t\tint j = i;\r\n \t\twhile(j>0 && a[j-1]> current) {\r\n \t\t\ta[j] =a[j-1];\r\n \t\t\tj--;\r\n \t\t} \r\n \t\ta[j]=current;\r\n \t}\r\n \treturn a;\r\n }", "@Test(timeout = SHORT_TIMEOUT)\n public void testAdaptiveInsertionSort() {\n //Test adaptiveness of completely ordered sort\n\n //Generate sorted array\n toSort = randArrDuplicates(MAX_ARR_SIZE, new Random(2110));\n Arrays.parallelSort(toSort, comp);\n sortedInts = cloneArr(toSort);\n\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n int numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n //Should require only 1 pass through array, for n-1 comparisons\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= MAX_ARR_SIZE - 1);\n\n //Check adaptiveness with 1 item out-of-order\n\n //Set up list\n toSort = new IntPlus[6];\n for (int i = 0; i < toSort.length; i++) {\n toSort[i] = new IntPlus(2 * i);\n }\n toSort[3] = new IntPlus(-1);\n\n sortedInts = cloneArr(toSort);\n\n /*\n Initial Array: [0, 2, 4, -1, 8, 10]\n Should require 7 comparisons to sort\n */\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= 7);\n }", "public static void insertionSort(Comparable[] a) {\n\n for (int i = 1; i < a.length; i++) {\n for (int j = i; j > 0; j--) {\n if (less(a[j], a[j-1])) exch(a, j, j-1);\n else break;\n }\n }\n }", "public static void InsertationSort(int[] data)\n {\n int key;\n // loop for select values from the array\n for(int i = 1; i <data.length;i++)\n {\n // key= select the value of index [i]\n key = data[i];\n // select the value that is Previous of the key to compare with.\n int j = i -1 ;\n // loop for comparing and sort, change the order of the values.\n while(j >= 0 && key < data[j])\n {\n data[j+1]=data[j];\n j--;\n }\n data[j+1]=key;\n }\n }", "private static void insertionSortArray2(int[] arr) {\n\n int key,j;\n\n for(int index=1;index<arr.length;index++){\n\n key=arr[index];\n\n j=index-1;\n\n while(j>=0 && arr[j]>key){\n arr[j+1]=arr[j];\n j--;\n }\n arr[j+1]=key;\n }\n\n\n }", "public static void insertionSort(int[] a) {\r\n\r\n int i; //pointer to item in unsorted list\r\n int j; //pointer to an item in sorted list\r\n int value; //the next value to be inserted into sorted list\r\n\r\n for (i = 1; i < a.length; i++) { // iterate for each item in unsorted list\r\n\r\n value = a[i]; //assigns value of element in list to be sorted\r\n j = i - 1; //assign j to be the last element in sorted list\r\n\r\n while (j >= 0 && (a[j] >= value)) {\r\n //if there are still elements in unsorted list \r\n //and if the value to be inserted is less than the the value at index\r\n a[j + 1] = a[j]; //copy element to the right\r\n j--; //increment to check value to the left\r\n }//end while --the array continues moving each element right\r\n a[j + 1] = value; //assign value to it's place \r\n }//end for loop\r\n }", "private void insertionSort(T[] arr) {\n for (int i = 1; i < n; i++)\n for (int j = i; j > 0 && arr[j].compareTo(arr[j - 1]) < 0; j--) // we create the variable j to shift the element\n swap(arr, j, j - 1);\n }", "static void InsertionSort(int[] arr){\n int inner, temp;\n for(int outer = 1; outer<arr.length;outer++){\n temp = arr[outer];\n inner = outer;\n while (inner>0 && arr[inner-1]>temp){\n arr[inner] = arr[inner-1];\n inner--;\n }\n arr[inner]=temp;\n }\n }", "void InsertionSort(int a[])\n {\n int i,j;\n\n for( j=1;j<a.length;j++)\n {\n int key =a[j];\n i=j-1;\n\n\n while(i>=0 && a[i]>key)\n {\n a[i+1]=a[i];\n i=i-1;\n }\n a[i+1]=key;\n\n }\n\n }", "public static void insertionSort(int[] array) {\n for (int i = 1; i < array.length; i++) {\n int temp = array[i];\n int j = i;\n /**\n * Compare the variable temp with each element on the right until a larger element than it is found.\n */\n while (j > 0 && temp > array[j - 1]) {\n array[j] = array[j - 1];\n j--;\n }\n /**\n * Places temp before the element smaller than it\n */\n array[j] = temp;\n }\n }", "private static int[] insertionSort(int[] inputArr) {\n\t\tint temp;\n\t\tfor(int i=1;i<inputArr.length;i++)\n\t\t{\n\t\t\tfor(int j=i;j>0;j--)\n\t\t\t{\n\t\t\t\tif(inputArr[j-1]>inputArr[j])\n\t\t\t\t{\n\t\t\t\t\ttemp=inputArr[j-1];\n\t\t\t\t\tinputArr[j-1]=inputArr[j];\n\t\t\t\t\tinputArr[j]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn inputArr;\n\t}", "public static void insertionSort(int[] data) {\n for(int i = 1; i < data.length; i++) {\n int j = i;\n while(j > 0 && data[j] < data[j - 1]) { //can get all the way to the front if need be\n int temp = data[j - 1];\n data[j - 1] = data[j];\n data[j] = temp;\n j--;\n }\n }\n }", "private static void insertionSortArray(int[] arr) {\n\n int key,index;\n for( index=1;index<arr.length;index++){\n key=arr[index];\n for(int j=index-1; j>=0;j--){\n if(key<arr[j]){\n arr[index]=arr[j]; //swap\n arr[j]=key;\n index--; //since a[i] & a[j] are swapped, index of key(i) has to changed\n }else {\n break;\n }\n }\n }\n\n }", "private static int[] insertionSort(int[] arr) {\n\t\tif(null == arr || arr.length == 0 || arr.length == 1) {\n\t\t\treturn arr;\n\t\t}\n\t\tint i, j;\n\t\tint key = 0;\n\t\tfor(i =1; i<arr.length; i++) {\n\t\t\tkey = arr[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && arr[j]>key) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj = j-1;\n\t\t\t\t\n\t\t\t}\n\t\t\tarr[j+1] = key;\n\t\t}\n\t\treturn arr;\n\t}", "public static void insertionSort(int[] arr)\n\t{\n\t\tint len=arr.length;\n\t\tfor(int i=1;i<len;i++){\n\t\t\tfor(int j=i;j>0&&arr[j]<arr[j-1];j--)\n\t\t\t{\n\t\t\t\tint temp=arr[j-1];\n\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\tarr[j]=temp;\n\t\t\t}\n\t\t}\n\t}", "public void insertionSortAsc(){\r\n for(int x=1 ; x<numItems ; x++){ //get the starting point\r\n int temp = mArray[x]; //take the item out\r\n int pos = x -1;\r\n while(pos >= 0 && mArray[pos]>temp){\r\n mArray[pos+1] = mArray[pos]; //shift item up\r\n pos--; //move position left\r\n }\r\n mArray[pos+1] = temp; //insert item in the empty spot\r\n }\r\n }", "public void insertionSort(int[]array) {\n\t\t\n\t\tfor(int i=1; i<array.length; i++) {\n\t\t\t\n\t\t\tint key = array[i];\n\t\t\tint j = i - 1;\n\t\t\t\n\t\t\twhile(j >=0 && array[j] > key) {\n\t\t\t\t\n\t\t\t\tarray[j+1] = array[j];\n\t\t\t\tj = j - 1;\n\t\t\t}\n\t\t\tarray[j+1] = key;\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}", "public static void insertionSort(int[] arr) {\r\n\t\tfor (int scan = 1; scan < arr.length; scan++) {\r\n\t\t\tint temp = arr[scan];\r\n\t\t\t\r\n\t\t\tint pos = scan;\r\n\t\t\twhile (pos > 0 && arr[pos - 1] > temp) {\r\n\t\t\t\tarr[pos] = arr[pos - 1];\r\n\t\t\t\tpos--;\r\n\t\t\t}\r\n\t\t\tarr[pos] = temp;\r\n\t\t}\r\n\t}", "public void insertionSort(int[] nums) {\n\t\tif(nums.length<=1) return ;\n\t\tfor(int i=1;i<nums.length;i++) {\n\t\t\tint j=i;\n\t\t\twhile( j>=1 && less(nums[j],nums[j-1])) {\n\t\t\t\tswap(nums,j,j-1);\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\t}", "public static void insertionSort(int[] array) {\n\n int saveElement;\n int i;\n\n for (int iNextEl = 1; iNextEl < array.length; iNextEl++) {\n saveElement = array[iNextEl]; // 1 - SAVE NEXT ELEMENT\n\n i = iNextEl;\n while ((i > 0) && (array[i - 1] > saveElement)) { // 2 - SHIFT LOOP\n array[i] = array[i - 1];\n i--;\n }\n array[i] = saveElement; // 3 - PUT SAVED ELEMENT BACK\n }\n }", "public static void insertionSort(int[] array) {\n for (int i = 1; i < array.length; i++) {\n for (int j = i; j > 0 && array[j] < array[j - 1]; j--) {\n swap(array, j, j - 1);\n }\n }\n }", "private static void insertion(int[] a){\n int size = a.length;\n int key = 0;\n \n for(int i = 1; i < size; i++){\n key = a[i];\n for(int j = i-1; j >= 0 && key < a[j]; j--){\n a[j+1] = a[j];\n a[j] = key;\n }\n }\n }", "public static void insertionSortPart2(int[] ar)\n {\n for(int i = 1; i < ar.length; i++){\n for(int j = 0; j < i; j++){\n if(ar[i] <= ar[j]){\n int tmp = ar[i];\n ar[i] = ar[j];\n ar[j] = tmp;\n }\n }\n printArray(ar);\n }\n }", "public static void main(String[] args)\n {\n Integer[] array = new Integer[50];\n Random rnd = new Random();\n for (int i = 0; i < array.length; i++)\n array[i] = rnd.nextInt(100);\n\n System.out.println(\"array before sorted: \" + Arrays.toString(array));\n\n insertionSort(array);\n\n // check if it is really sorted now\n for (int i = 0; i < array.length - 1; i++ )\n {\n if (array[i] > array[i + 1])\n {\n System.out.println(\"something wrong\");\n return;\n }\n }\n\n System.out.println(\"array sorted: \" + Arrays.toString(array));\n }", "public void insertionSort(int[] sortList) {\r\n\t\tint n = sortList.length;\r\n\t\tfor (int j = 1; j < n && sortList[j] != -1; j++) {\r\n\t\t\tint key = sortList[j];\r\n\t\t\tint i = j - 1;\r\n\t\t\twhile ((i > -1) && (sortList[i] > key)) {\r\n\t\t\t\tsortList[i + 1] = sortList[i];\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t\tsortList[i + 1] = key;\r\n\t\t}\r\n\t}", "public void insertionSort(int[] nums) {\n for (int i = 1; i < nums.length; i++) {\n // Hold the current element which is processed\n int current = nums[i];\n int j = i;\n\n // Trace backwards and find a place to insert current by shifting elements\n // towards the right\n while (j - 1 >= 0 && nums[j - 1] > current) {\n nums[j] = nums[j - 1];\n j--;\n }\n\n // j is the right place to insert current\n nums[j] = current;\n }\n\n }", "public void insertionSort (Integer [] inNums)\n\t{\n\t\tnums = inNums.clone();\n\t\tfor (int i=0; i<nums.length; i++)\n\t\t{\n\t\t\tfor (int j=i; j>0; j--)\n\t\t\t{\n\t\t\t\t//System.out.println (\"i=\"+i+\"; j=\"+j);\n\t\t\t\tprint ();\n\t\t\t\t//if (nums[j] < nums[j-1])\n\t\t\t\tif (nums[j].compareTo (nums[j-1]) < 0)\n\t\t\t\t{\n\t\t\t\t\ttemp = nums[j-1];\n\t\t\t\t\tnums [j-1] = nums[j];\n\t\t\t\t\tnums[j]=temp;\n\t\t\t\t}\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}", "static void insertionSort(int[] A) {\n\t // Sort the array A into increasing order.\n\t \n\t int itemsSorted; // Number of items that have been sorted so far.\n\n\t for (itemsSorted = 1; itemsSorted < A.length; itemsSorted++) {\n\t // Assume that items A[0], A[1], ... A[itemsSorted-1] \n\t // have already been sorted. Insert A[itemsSorted]\n\t // into the sorted part of the list.\n\t \n\t int temp = A[itemsSorted]; // The item to be inserted.\n\t int loc = itemsSorted - 1; // Start at end of list.\n\t \n\t while (loc >= 0 && A[loc] > temp) {\n\t A[loc + 1] = A[loc]; // Bump item from A[loc] up to loc+1.\n\t loc = loc - 1; // Go on to next location.\n\t }\n\t \n\t A[loc + 1] = temp; // Put temp in last vacated space.\n\t }\n\t}", "public static int[] insertionSort(int[] inputArray){\n for (int i = 1; i < inputArray.length; i++){\n int check = inputArray[i];\n int j = i -1;\n\n while (j >= 0 && inputArray[j] > check){\n inputArray[j + 1] = inputArray[j];\n j = j -1; \n }\n inputArray[j + 1] = check;\n }\n return inputArray;\n }", "public void InsertionSort(T[] arr)\n {\n for(int i = 1; i < arr.length; i++)\n {\n int j = i -1;\n T value = arr[i];\n\n while(j >= 0 && arr[j].compareTo(value) > 0)\n {\n arr[j + 1] = arr[j];\n j--;\n }\n arr[j+1] = value;\n }\n }", "public static void InsertionSort(int[] array) {\n for (int i=0; i<array.length; i++) {\n int cur_element = array[i];\n int j = i - 1;\n while (j >= 0 && array[j] > cur_element) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = cur_element;\n }\n }", "public static void insertionSort(int[] list1)\r\n\t{\r\n\t\tint temp=0;\r\n\t\tfor(int outside=1; outside<list1.length; outside++)\r\n\t\t{\r\n\t\t\tfor(int inside=outside; inside>0; inside--)\r\n\t\t\t{\r\n\t\t\t\tif(list1[inside]<list1[inside-1])\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=list1[inside-1];\r\n\t\t\t\t\tlist1[inside-1]=list1[inside];\r\n\t\t\t\t\tlist1[inside]=temp;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insertionSort(Long[] keys) {\n int n = keys.length;\n for(int i = 1; i< n; ++i) {\n long current = keys[i];\n int j = i-1;\n\n while(j >= 0 && current < keys[j]) {\n keys[j+1] = keys[j];\n j--;\n\n }\n keys[j+1] = current;\n }\n }", "public void insertionSort(ArrayList<T> arr, int p, int r) {\n\t}", "private static void sortUsingInsertionSort(int[] array, int k) {\n \n for(int i = 1; i < array.length; ++i) {\n int j = 0;\n while (array[j] < array[i]) {\n j++;\n }\n \n int temp = array[j];\n array[j] = array[i];\n array[i] = temp;\n }\n \n PrintUtil.printArray(array, \"Sorted Array\");\n }", "public void insertionNumberSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Integer.parseInt(AL.get(possibleIndex - 1).toString()) < Integer.parseInt(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "public static <T extends Comparable<T>> void insertionSort(T[] arrayToSort) {\n for(int i = 1; i < arrayToSort.length; i++) {\n T currentValue = arrayToSort[i];\n int sortedIterator = i - 1;\n // iterate through sorted portion of array\n while((sortedIterator >= 0) && (currentValue.compareTo(arrayToSort[sortedIterator]) < 0))\n arrayToSort[sortedIterator + 1] = arrayToSort[sortedIterator--];\n arrayToSort[sortedIterator + 1] = currentValue;\n }\n }", "Vector<NewsArticle> insertionSort(Vector<NewsArticle> articles) {\n int i, j;\n int size = articles.size();\n NewsArticle sortedList[] = new NewsArticle[articles.size()];\n\n articles.copyInto(sortedList);\n NewsArticle temp;\n\n for (i = 1; i < size; i++) {\n temp = sortedList[i];\n\n j = i;\n while ((j > 0) && (sortedList[j - 1].getScore(filterType) < temp.getScore(filterType))) {\n sortedList[j] = sortedList[j - 1];\n j = j - 1;\n }\n sortedList[j] = temp;\n }\n Vector<NewsArticle> outList = new Vector<NewsArticle>();\n\n for (i = 0; i < size; i++) {\n temp = sortedList[i];\n outList.addElement(temp);\n }\n return outList;\n }", "@Test\n public void testSort(){\n InsertionSort sort = new InsertionSort();\n int arr[] = sort.shellInsertionSort(initArr());\n scan(arr);\n }", "public static void insertionSort(int[] arr) {\n //write your code here\n for(int i=1;i<arr.length;i++) {\n for(int j=i-1;j>=0;j--) {\n if(isGreater(arr, j, j+1))\n swap(arr, j, j+1);\n else\n break;\n }\n }\n}", "private static void insertionSort(int[] array, int n) {\n \t\n \tfor (int index = 1; index < n; index++) {\n \t\tint temp = array[index];\n \t\tint j = index;\n\n\t\t\tint finalPosition = binarySearch(array, temp, 0, j - 1);\n\n \t\twhile (j > finalPosition) {\n \t\t\tarray[j] = array[j - 1];\n \t\t\tj -= 1;\n \t\t}\n \t\tarray[j] = temp;\n \t}\n }", "public static int[] insertionSort(int[] elements) {\n\t\tif (elements.length == 0 || elements.length == 1)\n\t\t\treturn elements;\n\t\t\n\t\tfor (int i=1;i < elements.length;i++) {\n\t\t\tint temp = elements[i];\n\t\t\tfor (int j=i-1;j >= 0;j--) {\n\t\t\t\tif (temp < elements[j]) {\n\t\t\t\t\telements[j+1] = elements[j];\n\t\t\t\t\telements[j] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn elements;\n\t}", "public static void insertionSort(int data[], int order) {\n for (int i = 1; i < data.length; i++) {\n int j = i;\n int k = i - 1;\n while (k >= 0) {\n if (data[j] < data[k]) {\n int temp = data[j];\n data[j] = data[k];\n data[k] = temp;\n j = k;\n k--;\n }\n else\n break;\n }\n }\n }", "public static int[] doInsertionSort(int[] input){\n int temp;\n for (int i = 1; i < input.length; i++) {\n for(int j = i ; j > 0 ; j--){\n if(input[j] < input[j-1]){\n temp = input[j];\n input[j] = input[j-1];\n input[j-1] = temp;\n }\n }\n }\n return input;\n }", "public static void main(String[] args) {\n\r\n\t\tint[] a = { 1, 8, 20, 5, 4, 9 };\r\n\t\tinsertSort(a);\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t}", "@Test(timeout = SHORT_TIMEOUT)\n public void testTinyInsertionSort() {\n //size-0 arr\n toSort = new IntPlus[0];\n sortedInts = cloneArr(toSort);\n Sorting.insertionSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n\n //size-1 arr\n toSort = new IntPlus[1];\n toSort[0] = new IntPlus(42);\n sortedInts = cloneArr(toSort);\n Sorting.insertionSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n }", "public static String[] insertionSort(String[] list){\n for (int i=1; i<list.length; i++){\r\n //use a variable a to temporarily store the index of the current item\r\n int a = i;\r\n //loop through comparisons with items before it until it reaches an item that is smaller than it\r\n while(list[a].compareTo(list[a-1])<0){\r\n //when item before it is larger, use a temporary string variable to store the current item's value\r\n String temp = list[a];\r\n list[a]=list[a-1];//give list[a] the value of the list[a-1]\r\n list[a-1]=temp;//give list[a-1] the value that is stored in the temporary\r\n a-=1;\r\n if(a==0)\r\n break;\r\n }\r\n }\r\n return list;\r\n }", "public static <E extends Comparable<E>> E[] insertionsort(E[] arr){\n\t\tfor(int i=0;i<arr.length;i++){\n\t\t\tE key = arr[i];\n\t\t\tboolean flag = false;\n\t\t\tE temp = arr[i];\n\t\t\tfor(int j=0;j<=i;j++){\n\t\t\t\tif(!flag && key.compareTo(arr[j]) <=0){\n\t\t\t\t\tflag = true;\n\t\t\t\t\ttemp = key;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tE t = arr[j];\n\t\t\t\t\tarr[j] = temp;\n\t\t\t\t\ttemp = t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public static void main(String[] args) {\n\n int arr[]= {3, 4, 5, 7, 9, 1, 2};\n int arr2[]= {7,72,90, 21 ,60};\n\n insertionSortArray2(arr2);\n\n System.out.println(Arrays.toString(arr2));\n }", "private void testInsertionSort() {\n System.out.println(\"------ TESTING : insertionSort() ------\");\n try{\n iTestFileList.insertionSort(); // calling insertion sort function\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public void insertionSort(ArrayList <Comparable> list){\r\n\t\tsteps += 2; //init, check condition\r\n\t\tfor (int i = 1 ; i < list.size(); i++){\r\n\t\t\tsteps ++; //=\r\n\t\t\tint j = i;\r\n\t\t\tsteps += 7; //-, >, get(), compareTo(), get(), -, <\r\n\t\t\twhile ((j - 1 > 0) && (list.get(j).compareTo(list.get(j - 1)) > 0)){\r\n\t\t\t\tsteps += 3; // swap(), -, --\r\n\t\t\t\tswap(list, j, j - 1);\r\n\t\t\t\tsteps += 5;\r\n\t\t\t\tj--;\r\n\t\t\t\tsteps += 7; //-, >, get(), compareTo(), get(), -, <\r\n\t\t\t}\r\n\t\t\tsteps += 2; //increment, check condition\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Insertion Sort\");\r\n\t\tSystem.out.println();\r\n\t}", "public static double [] insertionSort(double a[]) {\n insertionSort(a, 0, a.length-1);\n return a;\n }", "public static void main(String[] args) {\n\t\tInsertionSort insertionSort = new InsertionSort();\r\n\t\tSystem.out.print(\"Before sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array1));\r\n\t\tinsertionSort.insertionSort(insertionSort.array1, insertionSort.array1.length);\r\n\t\tSystem.out.print(\"After sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array1));\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.print(\"Before sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array2));\r\n\t\tinsertionSort.insertionSort(insertionSort.array2, insertionSort.array2.length);\r\n\t\tSystem.out.print(\"After sort: \");\r\n\t\tSystem.out.println(Arrays.toString(insertionSort.array2));\r\n\r\n\t}", "public static int[] insertionSort(int[] array) {\n if (array == null || array.length == 0) return new int[]{};\n for (int i = 1; i < array.length; i++) {\n int j = i;\n while (j > 0 && array[j] < array[j - 1]) {\n int temp = array[j];\n array[j] = array[j - 1];\n array[j - 1] = temp;\n j--;\n }\n }\n\n return array;\n }", "public static int[] insertionSort(int[] array)\r\n {\n for (int i = 1; i < array.length; i++)\r\n {\r\n // during each iteration as we travel to the right of the array, we\r\n // first need to set our iterator that will move back to the left\r\n // as we find the correct place to put the item we are inserting\r\n // into the left side of the array. Since we know that at this point\r\n // everything to the left of index i is already sorted, we want our\r\n // new item to be inserted to be the first element to the right of \r\n // the sorted section, which is at array[i].\r\n int j = i;\r\n \r\n // now we start moving our backwards iterator, j, to the left one\r\n // array slot at a time. During each iteration we'll check to see\r\n // if the item at array[j] is less than array[j-1], or the item to\r\n // the left. If it is then we swap them and compare again with the\r\n // next item to the left. We repeat this process until we either\r\n // find that array[j] is greater than or equal to the item to the\r\n // left, or that we reach the far left side of the array.\r\n while (j > 0 && array[j] < array[j-1])\r\n {\r\n // create a temp variable to allow us to swap array[j] with\r\n // array[j-1] and then swap the two.\r\n int temp = array[j];\r\n array[j] = array[j-1];\r\n array[j-1] = temp;\r\n \r\n j--;\r\n }\r\n }\r\n \r\n return array;\r\n }", "public int[] insertionSortInt(int[] input){\r\n\t for(int i=1;i<input.length;i++){\r\n\t\t for(int j=i;j>0;j--){\r\n\t\t\t if(input[j-1]>input[j]){\r\n\t\t\t\t\tinput[j-1]=input[j-1]+input[j];\r\n\t\t\t\t\tinput[j]=input[j-1]-input[j];\r\n\t\t\t\t\tinput[j-1]=input[j-1]-input[j];\r\n\t\t\t\t}\r\n\t\t }\r\n\t }return input;\r\n }", "private static void insertionSortSentinel(Comparable[] a) {\n Comparable min = Double.MAX_VALUE;\n int ind = 0;\n for (int i = 0; i < a.length; i++) {\n if (a[i].compareTo(min) < 0) {\n min = a[i];\n ind = i;\n }\n }\n\n Comparable temp = a[0];\n a[0] = a[ind];\n a[ind] = temp;\n\n for (int i = 1; i < a.length; i++) {\n for (int j = i; a[j].compareTo(a[j - 1]) < 0; j--) {\n temp = a[j - 1];\n a[j - 1] = a[j];\n a[j] = temp;\n }\n }\n }", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t int s = in.nextInt();\n\t int[] ar = new int[s];\n\t \n\t for(int i=0;i<s;i++){\n\t ar[i]=in.nextInt(); \n\t }\n\t \n\t long start = System.nanoTime();\n\t sort(ar);\n\t long end = System.nanoTime();\n\t \n\t long duration = (end-start);\n\t \n\t \n\t \n\t\tSystem.out.println(\"The Insertion sort was completed in \"+duration +\" nanoseconds\");\n\t\tprintArray(ar);\n\t}", "public static void insertionSort(double a[], int low, int high)\n {\n double value;\n int i, j;\n int size = high - low;\n\n for(i = low + 1; i < size; i++) {\n value = a[i];\n j = i;\n\n while(j > 0 && a[j-1] < value) {\n a[j] = a[j-1];\n j = j - 1;\n }\n a[j] = value;\n }\n }", "public int[] InsertionSort(int[] A) {\n int n = A.length;\n for(int k = 0; k < n; k++) {\n if(k == minimum) {\n int temp = A[k];\n A[k] = A[0];\n A[0] = temp;\n }\n }\n for(int i = 1; i < n; ++i) {\n int key = A[i];\n int j = i - 1;\n while(j >= minimum && A[j] > key) {\n A[j + 1] = A[j];\n j = j - 1;\n } \n A[j + 1] = key; \n }\n return A;\n }", "private static void InsertionSort(RandomVector v) {\n\t\tfor(int i = 1; i < v.size(); i++) {\n\t\t\t\n\t\t\t\n\t\t\tint j = 0, //start looking through sorted section from beginning\n\t\t\t\t\ttemp = v.get(i); //stash our current unsorted element\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(j=0; j < i && v.get(j) <= v.get(i); j++){}\n\t\t\t\n\t\t\t//walk from one element to the left of i through to j to the left\n\t\t\tfor(int k = i-1; k >= j; k--){\n\t\t\t\t//move element at k one step to the right\n\t\t\t\tv.set(k+1, v.get(k));\n\t\t\t}\n\t\t//copy temp into element j\t\n\t\t\tv.set(j, temp);\n\t\t\tSystem.out.println(v);\n\t\t}\n\t\t\n\t}", "public static void insertSort(int[] a, int n){\n // 插入排序,把数组分为已排序区和未排序区,依次把未排序中的元素插入的已排序中\n\n for (int i = 1; i < n ; ++i){\n // 遍历已排序区,找到已排序中符合要求的位置\n // value 待插入的数据\n int value = a[i];\n // j = 已排序的区间索引前一位\n int j = i-1;\n for (;j>=0;--j){\n\n // System.out.printf(\"\\n[%s : %s]\", Arrays.stream(a).boxed().collect(Collectors.toList()).subList(0,i).toString(),Arrays.stream(a).boxed().collect(Collectors.toList()).subList(i,n).toString());\n if (a[j] > value){\n // 大于待插入的数据的都自觉往后移动一位\n a[j+1] = a[j];\n move++;\n }else {\n // 中止 当前j为目标位置\n break;\n }\n }\n a[j+1] = value;\n }\n }", "static void insertIntoSorted(int ar[]) {\n\n\t\tint valueToInsert, holePosition;\n\n\t\tfor (int i = ar.length - 1; i > 0; i--) {\n\n\t\t\tvalueToInsert = ar[i];\n\t\t\tholePosition = i;\n\n\t\t\twhile (holePosition < ar.length\n\t\t\t\t\t&& ar[holePosition - 1] > valueToInsert) {\n\t\t\t\tar[holePosition] = ar[holePosition - 1];\n\t\t\t\tholePosition -= 1;\n\n\t\t\t\tdisplaySteps(ar);\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (holePosition == 0) {\n\t\t\t\t\tif (ar[holePosition] > valueToInsert) {\n\t\t\t\t\t\tar[holePosition] = valueToInsert;\n\t\t\t\t\t\tdisplaySteps(ar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tar[holePosition] = valueToInsert;\n\t\t\tif (i == 1 && holePosition != 0) {\n\t\t\t\tdisplaySteps(ar);\n\t\t\t}\n\n\t\t}\n\t}", "public String[] insertionSort(String[] in) {\n\t\tString[] out = new String[in.length]; // create a copy so I can reuse the array, not sure that's necessary with the junit test but I'll keep it\n\t\tSystem.arraycopy(in, 0, out, 0, in.length);\n\t\t\n\t\tfor (int i = 1; i < out.length; i += 1){\n\t\t\tString temp = out[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\t//swap strings like the int insertionSort\n\t\t\twhile(j > 0 && out[j - 1].compareTo(temp) > 0) {\n\t\t\t\tout[j] = out[j - 1];\n\t\t\t\tj = j - 1;\n\t\t\t}\n\t\t\tout[j] = temp;\n\t\t}\n\t\treturn out;\n\t}", "public void insertionSort(ArrayList <Integer> list){\n System.out.println();\n System.out.println(\"Insertion Sort\");\n System.out.println();\n\n int current = 0;\n int len = list.size();\n for (int n = 1; n < len; n++) {\n current = list.get(n);\n int j = n - 1;\n while (j >= 0 && list.get(j) > current) {\n list.set(j + 1, list.get(j));\n j = j - 1;\n }\n list.set(j + 1, current);\n }\n }", "public static int[] insertionSort(int[] arr, int n){\n for(int i=1; i<n; i++){\n int value = arr[i];\n int hole = i;\n while(hole > 0 && arr[hole -1] > value){\n arr[hole] = arr[hole-1];\n hole = hole - 1;\n }\n arr[hole] = value;\n }\n return arr;\n }", "public static void randomArraySorts() {\n int[] randomArr = new int[1000];\n for (int i = 0; i < randomArr.length; i++) {\n randomArr[i] = (int) (Math.random() * 5000 + 1);\n }\n\n // Heap Sort of random array\n int arr[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr[i] = randomArr[i];\n }\n\n HeapSort hs = new HeapSort();\n\n System.out.println(\"Given Array: \");\n hs.printArray(arr);\n\n long start = System.currentTimeMillis();\n hs.sort(arr);\n long end = System.currentTimeMillis();\n long time = end - start;\n\n System.out.println(\"Heap Sorted Array: \");\n hs.printArray(arr);\n System.out.println(\"Heap Sort Time: \" + time);\n\n // Merge Sort of random array\n System.out.println();\n int arr2[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr2[i] = randomArr[i];\n }\n\n MergeSort ms = new MergeSort();\n\n System.out.println(\"Given Array: \");\n ms.printArray(arr2);\n\n start = System.currentTimeMillis();\n ms.sort(arr2, 0, arr.length - 1);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Merge Sorted Array: \");\n ms.printArray(arr2);\n System.out.println(\"Merge Sort Time: \" + time);\n\n // Insert Sort of random array\n System.out.println();\n int arr3[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr3[i] = randomArr[i];\n }\n\n System.out.println(\"Given Array: \");\n print(arr3, arr3.length);\n\n start = System.currentTimeMillis();\n insertSort(arr3);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Insert Sorted Array: \");\n print(arr3, arr3.length);\n System.out.println(\"Insert Sort Time: \" + time);\n }", "public static void insertionSort(int[] array, int lo, int hi){\n for (int i = lo; i <= hi;i++){//loops through the subarray from left to right\n for (int j = i; j > 0;j--){//copy the current array pointer and start to move backwards from there\n if(array[j] < array[j-1]){//check if the current value is misplaced in relation to teh previous one\n int copy = array[j];//the next 3 lines of code are to swap\n array[j] = array[j-1];\n array[j-1] = copy;\n } else{break;}//if the position is correct than we break the loop\n }\n }\n }", "public int[] insertionSort(int[] in) {\n\t\t\n\t\tint[] out = new int[in.length]; \t\t\t// make a copy of the array so it can be reused for all methods\n\t\tSystem.arraycopy(in, 0, out, 0, in.length);\n\t\t\n\t\tfor(int i = 1; i < out.length; i += 1) {\n\t\t\tint temp = out[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\t// Swap the integers as long the left is bigger then right, as long there is a left from scratch\n\t\t\twhile(j > 0 && out[j - 1] > temp) {\n\t\t\t\tout[j] = out[j - 1];\n\t\t\t\tj = j - 1;\n\t\t\t}\n\t\t\tout[j] = temp;\n\t\t}\n\t\treturn out;\n\t}", "public static int insertionSort(int[] array)\n {\n int totalShifts = 0;\n int nSorted = 1; // the first n items are sorted\n int n = array.length; // total number of items in the array\n while (nSorted < n)\n {\n // get the next item\n int newInt = array[nSorted];\n int i = 0;\n // locate its position in smaller array\n // equivalent to for (int i)\n // thus can't use i for a different loop\n for (i = 0; i < nSorted; i++){\n\n // if you find a smaller item in there, exchange the two\n if (array[i] > newInt){\n array[nSorted] = array[i];\n array[i] = newInt; \n // make sure exchanging the two didnt make a new imbalance, continue searching through\n newInt = array[nSorted];\n totalShifts++;\n }\n \tnSorted++;\n \t}\n }\n // print total number of shifts\n System.out.print(totalShifts);\n return totalShifts;\n }", "public static void main(String[] args) {\n\t\tInsertionSort in = new InsertionSort();\n\t\t\n//\t\tint a[] = {2, 4, 1};\n//\t\tint a[] = {2};\n\t\tint a[] = {1, 2, 9, 1, 8};\n//\t\tin.straightInsertionSort(a);\n\t\tin.shellSort(a);\n\t\t\n\t\tPrint.printArray(a);\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int s = in.nextInt();\n int[] ar = new int[s];\n for(int i=0;i<s;i++){\n ar[i]=in.nextInt();\n }\n insertionSortPart2(ar);\n\n }", "public void insertionSort(String[] s1) {\r\n for(int i=0;i<s1.length;i++){\r\n \tArrays.sort(s1);\r\n \tSystem.out.println(s1[i]);\r\n\t\t}\r\n\t\r\n }", "public static void main(String[] args) {\n\t\t\n int array[] = {20,50,10,43,543,-43,-42,-245,5,21,5,1010};\n \n for(int firstUnsortedIndex = 1; firstUnsortedIndex < array.length; firstUnsortedIndex++) {\n \t\n \tint newElement = array[firstUnsortedIndex]; //storing the element of the unsorted array temporary to newElement\tin case we need to overwrite\n \n \tint i;\n \t//we want to keep looking for the insertion position as long as we havent hit the front of the array\n \tfor(i = firstUnsortedIndex; (i > 0 && array[i-1] > newElement); i--) {\n \t\tarray[i] = array[i-1];\n \t}\n \t\n \tarray[i] = newElement;\n }\n \n printer(array);\n \n\t}", "public static void insertionSort(int[] arr, int left, int right) {\n for (int i = left + 1; i <= right; i++){\n int temp = arr[i];\n int j = i - 1;\n while (j >= left && arr[j] > temp) {\n arr[j + 1] = arr[j];\n j--;\n }\n arr[j + 1] = temp;\n }\n }", "public static void sort(Comparable[] a){\n for(int i=1;i<a.length;i++){\n // Insert a[i] among a[i-1],a[i-2],a[i-3]...\n for (int j=i;j>0&&less(a[j],a[j-1]);j--){\n exch(a,j,j-1);\n }\n }\n }", "public static void insertionSort(int[] arr, int left, int right) {\n\t\t int i, j, newValue;\n\t\t for (i = left; i <= right; i++) {\n\t\t\t\tnewValue = arr[i];\n\t\t\t\tj = i;\n\t\t\t\twhile (j > 0 && arr[j - 1] > newValue) {\n\t\t\t\t\t arr[j] = arr[j - 1];\n\t\t\t\t\t j--;\n\t\t\t\t}\n\t\t\t\tarr[j] = newValue;\n\t\t }\n\t}", "public int insertionSort()\n {\n // initialize the number of sort checks to 0\n int numSortChecks = 0;\n\n /** FOR INSERTION SORT, EPUT YOUR CODE HERE **/\n\n // Loop through the array of cards ... put each one in the heap\n // add to the heap ... increase the number of sort checks based\n // on the number returned from myCardHeap.add( )\n\n // Loop over all the card in the heap, keep a counter as to which card \n // number we are on\n // use extractMin() to remove a card from the heap\n // place this card into the array at the appropriate position.\n // iuncrement the numChecks variable\n\n return numSortChecks;\n }", "public static void insertIntoSorted(int[] ar) {\n int index = ar.length-1;\n int val = ar[index];\n while(index > 0){\n for(int i = ar.length-2; i >=0; i--) {\n if(ar[i] >= val) {\n ar[i+1] = ar[i];\n printArray(ar);\n\n }else if(ar[i] < val && ar[i+1] > val){\n ar[i+1] = val;\n printArray(ar);\n }\n }\n if(ar[0] >= val){\n ar[0] = val;\n printArray(ar);\n }\n index--;\n val = ar[ar.length-1];\n }\n }", "private void insertionSort(ArrayList<ArrayList<Piece>> combinations2) {\n for (int index = 1; index < combinations2.size(); index++) {\n ArrayList<Piece> compareWord = combinations2.get(index);\n\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord.size()<combinations2.get(lowerIndex).size()){\n combinations2.set(lowerIndex+1, combinations2.get(lowerIndex));\n lowerIndex--;\n }\n\n combinations2.set(lowerIndex+1,compareWord);\n }\n }", "public static <T extends Comparable<? super T>> void insertionSort(List<T> list){\n int size = list.size();\n if(size > 1){\n for(int i = 0; i < size; i++){\n int sortedSideIndex = i;\n while(sortedSideIndex > 0 && list.get(sortedSideIndex - 1).compareTo(list.get(sortedSideIndex)) > 0){\n swap(list, sortedSideIndex, sortedSideIndex - 1);\n sortedSideIndex--;\n }\n }\n }\n }", "public static <T extends Comparable<? super T>> void insertionSort(List<T> a){\n insertionSort(a, 0, a.size()-1);\n }", "public static <E extends Comparable<E>> void insertionSort(\r\n\t\t\tComparable<E>[] data) {\r\n\t\tinsertionSort(data, 0, data.length - 1);\r\n\t}", "public static int[] insert(int x, int[] a) {\n Arrays.sort(a);\n a = Arrays.copyOf(a, a.length + 1);\n if (a[a.length - 2] <= x) {\n a[a.length - 1] = x;\n } else {\n int i = a.length - 2;\n while ((i + 1 > 0) && (x < a[i])) {\n a[i+1] = a[i];\n i--;\n }\n a[i+1] = x;\n }\n return a;\n}", "public void insertionNumberSortDouble()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Double.parseDouble(AL.get(possibleIndex - 1).toString()) < Double.parseDouble(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "public static void insertionSort(List<Integer> values) {\r\n for (int i = 1; i < values.size(); i++) {\r\n insert(values, i);\r\n } // for\r\n }", "public void insertionSort(StringCount s, StringCount[] array, int entries)\n\t{\n\t\tint insert = 0;\n\t\t\n\t\tfor (int i = 0; i < entries; i++, insert++)\n\t\t{\n\t\t\tif(s.str.compareTo(array[i].str) <= 0)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif(insert == entries)\n\t\t\tarray[insert] = s;\n\t\telse\n\t\t{\n\t\t\tfor(int i = entries; i > insert; i--)\n\t\t\t\tarray[i] = array[i-1];\n\t\t\t\n\t\t\tarray[insert] = s;\n\t\t}\n\t}", "public static void main(String[] args) {\n int[] arrayList = {4, 2, 5, 6, 8};\n insertionSort(arrayList);\n printArray(arrayList);\n\n }", "public static void main(String[] args) {\n\r\n\t\tScanner in = new Scanner (System.in);\r\n\t\tint n =in.nextInt();\r\n\t\tint a []=new int [n];\r\n\t\t\r\n\t\tfor (int i = 0;i <n ;i++) {\r\n\t\t\ta[i]=in.nextInt();\r\n\t\t}\r\n\t\tinsertionSort1(n, a);\r\n\t\t\r\n\t}", "public void insertionStringSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0)\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "public String[] insertionSortString(String[] input){\r\n\t\tString temp=\"\";\r\n\t\tfor(int i=1;i<input.length;i++){\r\n\t\t\tfor(int j=i;j>0;j--){\r\n\t if(input[j-1].compareTo(input[j])>0){\r\n\t \t temp=input[j-1];\r\n\t \t input[j-1]=input[j];\r\n\t \t input[j]=temp;\r\n\t }\r\n\t\t\t}\r\n\t\t}return input;\r\n\t}", "public static void main(String[] args) {\n\r\n String[] strList = {\"aab\", \"aaa\" };\r\n\r\n A3Q8 test = new A3Q8();\r\n\r\n\r\n\r\n test.insertionSort(strList);\r\n for (int i = 0; i < strList.length; i++) {\r\n System.out.println(strList[i]);\r\n }\r\n }", "public static void insertionSort1(int n, List<Integer> arr) {\n List<String> steps = insertionSortSteps(arr);\n for (String step : steps) {\n System.out.println(step);\n }\n }" ]
[ "0.7879154", "0.77348393", "0.7723858", "0.7722332", "0.76204985", "0.75437915", "0.7525441", "0.749391", "0.7476918", "0.7470727", "0.7454716", "0.73804975", "0.7363349", "0.73600554", "0.7327602", "0.73185825", "0.72993386", "0.7297956", "0.7285108", "0.7254811", "0.72479266", "0.72370875", "0.7216391", "0.71838206", "0.7182929", "0.7178312", "0.717028", "0.7151656", "0.7149054", "0.7148443", "0.7117635", "0.7116393", "0.71044385", "0.70789313", "0.70773476", "0.7075172", "0.70665526", "0.7062227", "0.7046011", "0.70418686", "0.7032489", "0.7027818", "0.7026102", "0.7017317", "0.70120025", "0.69868416", "0.6982111", "0.69707966", "0.6963275", "0.69609505", "0.69598126", "0.6952668", "0.69081724", "0.68971", "0.68807876", "0.6853841", "0.6836847", "0.6827421", "0.68102545", "0.67936414", "0.67919827", "0.6782501", "0.6777008", "0.6775689", "0.67602825", "0.67598003", "0.6758531", "0.6723167", "0.6702438", "0.66936654", "0.66896534", "0.6675562", "0.66377276", "0.6625244", "0.66208357", "0.66111", "0.6590766", "0.65554214", "0.65382916", "0.65375847", "0.65271634", "0.65187824", "0.65185374", "0.64944667", "0.64711505", "0.6469494", "0.646581", "0.6453226", "0.6450953", "0.64451784", "0.64432806", "0.64376855", "0.643285", "0.6407131", "0.64060897", "0.6336782", "0.63166654", "0.62680584", "0.6266238", "0.62426513" ]
0.67388535
67
Function : bubbleSort Use : sorting the algorithm using appropraite insertions Parameter : array of random values Returns : nothing
public void bubbleSort(int [] intArray) { int n = intArray.length; int temp = 0; try { for(int i=0; i < n; i++) { thread.sleep(100); //sleep the thread to particular to view the results in panel this.setThreadState(); for(int j=1; j < (n-i); j++) { if(!orderPanel) //check for Descending order { if(intArray[j-1] > intArray[j]) { //swap the elements! temp = intArray[j-1]; intArray[j-1] = intArray[j]; intArray[j] = temp; repaint(); } } else if(intArray[j-1] < intArray[j]) //check for Ascending order { temp = intArray[j-1]; intArray[j-1] = intArray[j]; intArray[j] = temp; repaint(); } } } } catch(Exception e) { System.out.println("Exception occured" + e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bubbleSort() {\n boolean unordered = false;\n do {\n unordered = false;\n for (int i = 0; i < array.length - 1; i++) {\n if (((Comparable) array[i]).compareTo(array[i + 1]) > 0) {\n T temp = array[i + 1];\n array[i + 1] = array[i];\n array[i] = temp;\n unordered = true;\n }\n }\n } while (unordered);\n }", "public void bubbleSort() {\n\t\tint n = data.size();\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tfor (int j = 1; j < n - i; j++) {\n\t\t\t\tif (data.get(j - 1) > data.get(j)) {\n\t\t\t\t\tswap(j, j - 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "static int[] bubbleSort(int[] a) {\n int n = a.length;\n while(n > 0) {\n int newLastN = 0; // if no swap occurred in last step we won't need to run next iteration\n for (int i = 1; i < n; i++) {\n comparisonCount++;\n if (a[i - 1] > a[i]) {\n swapCount++;\n swap(a, i - 1, i);\n newLastN = i;\n }\n }\n n = newLastN;\n }\n return a;\n }", "@Test\n public void testBubbleSort() {\n BubbleSort<Integer> testing = new BubbleSort<>();\n\n testing.sort(array, new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return i1.compareTo(i2);\n }\n });\n\n checkArray(\"Bubble sort doesn't work!\", array);\n }", "public static void bubbleSortAlgo(int[] arr) {\n for(int i = 1; i<arr.length-1; i++){\n // inner loop to compare each element with it's next one in every iteration in one complete outer loop\n for(int j = 0; j<arr.length -1; j++){\n if(isSmaller(arr, j+1, j)){ // compares the jth element from it's next element\n swap(arr, j+1, j); // if ismaller condition is true swaps both the elements\n }\n }\n }\n \n }", "private void bubbleSort(T[] arr) {\n boolean swaps;\n for (int i = 0; i < n - 1; i++) { // since we always compare two elements, we will need to iterate up to (n - 1) times\n swaps = false;\n for (int j = 1; j < n - i; j++) // we reduce the inspected area by one element at each loop, because the largest element will already be pushed to the right\n if (arr[j].compareTo(arr[j - 1]) < 0) {\n swap(arr, j, j - 1); // the swap method is implemented further\n swaps = true;\n }\n if (!swaps) break; // we stop if there were no swaps during the last iteration\n }\n }", "public static void BubbleSort(int[] a) {\n\t int n = a.length;\n\t int temp = 0;\n\n\t for(int i = 0; i < n; i++) {\n\t for(int j=1; j < (n-i); j++) {\n\t if(a[j-1] > a[j]) {\n\t temp = a[j-1];\n\t a[j-1] = a[j];\n\t a[j] = temp;\n\t }\n\t }\n\t }\n\t}", "public static void main(String[] args) {\r\n int[] numbers = {25, 43, 29, 50, -6, 32, -20, 43, 8, -6};\r\n\t\r\n\tSystem.out.print(\"before sorting: \");\r\n\toutputArray(numbers);\r\n \r\n\tbubbleSort(numbers);\r\n\t\r\n\tSystem.out.print(\"after sorting: \");\r\n\toutputArray(numbers);\r\n }", "public static void bubbleSort(Array a) {\n int temp;\n for (int i = 0; i < a.length - 1; i++) { // for passes\n int flag = 0;\n for (int j = 0; j < a.length - 1 - i; j++) { // for iteration\n if (a.get(j) > a.get(j + 1)) {\n temp = a.get(j);\n a.set(j, a.get(j + 1));\n a.set(j + 1, temp);\n flag = 1;\n }\n }\n if (flag == 0) break; // if the list is already sorted\n }\n }", "public void bubbleSort(long [] a){\n\t\tint upperBound=a.length-1;\n\t\tint lowerBound =0;\n\t\tint swaps=0;\n\t\tint iterations=0;\n\t\twhile(upperBound>=lowerBound){\n\t\t\tfor(int i=0,j=1;i<=upperBound && j<=upperBound; j++,i++){\n\t\t\t\tlong lowerOrderElement = a[i];\n\t\t\t\tlong upperOrderElement = a[j];\n\t\t\t\titerations++;\n\t\t\t\tif(lowerOrderElement>upperOrderElement){ //swap positions\n\t\t\t\t\ta[i] = a[j];\n\t\t\t\t\ta[j]= lowerOrderElement;\n\t\t\t\t\tswaps=swaps+1;\n\t\t\t\t}\n\t\t\t\telse{ // sorted.\n\t\t\t\t\tcontinue;\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\tupperBound--;\n//\t\tSystem.out.println(\"upperBound:- \" +upperBound);\n//\t\tSystem.out.println(\"lowerBound:- \" +lowerBound);\n\t\t}displayArr(a);\n\t\t\n\t\tSystem.out.println(\"Total Swaps:- \" + swaps);\n\t\tSystem.out.println(\"Total Iterations:- \" + iterations);\n\t}", "public static void bubbleSort(int[] arr)\n\t{\n\t\tint len=arr.length;\n\t\tboolean swapped=true;\n\t\twhile(swapped){\n\t\t\tswapped=false;\n\t\t\tfor(int j=1;j<len;j++){\n\t\t\t\tif(arr[j-1]>arr[j]){\n\t\t\t\t\tint temp=arr[j-1];\n\t\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\t\tarr[j]=temp;\n\t\t\t\t\tswapped=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void insertionSort() {\n\t\tfor (int i = 1; i < numberOfElements; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\twhile (j > 0) {\n\t\t\t\tif (arr[j - 1] <= temp) {\n\t\t\t\t\tnumberOfComparisons++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumberOfComparisons++;\n\t\t\t\tarr[j] = arr[j - 1];\n\t\t\t\tnumberOfCopies++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j] = temp;\n\t\t}\n\t}", "public int[] bubbleSort(int[] a) {\r\n\t\t boolean sorted = false;\r\n\t\t int temp;\r\n\t\t while(!sorted) {\r\n\t\t sorted = true;\r\n\t\t for (int i = 0; i < a.length - 1; i++) {\r\n\t\t if (a[i] > a[i+1]) {\r\n\t\t temp = a[i];\r\n\t\t a[i] = a[i+1];\r\n\t\t a[i+1] = temp;\r\n\t\t sorted = false;\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\treturn a;\r\n\t\t}", "public static void main(String[] args)\n {\n int[] array=new int[5];\n Random ran=new Random();\n for(int i=0;i<array.length;i++)\n {\n //assign each item a value range from 0~99\n array[i]=ran.nextInt(100);\n }\n\n System.out.println(\"Before Insertion Sort: \"+Arrays.toString(array));\n insertionSort(array,array.length);\n System.out.println(\"After Insertion Sort : \"+Arrays.toString(array));\n\n }", "void bubbleSort(int arr[]) {\r\n\r\n int n = arr.length;\r\n boolean swapped;\r\n for(int i = 0; i < n-1; i++) { //denotes pass #\r\n for(int j = 0; j < n-i-1; j++) { //denotes element in the pass\r\n if(arr[j] > arr[j+1]) {\r\n //swapping of the element\r\n arr[j] += arr[j+1];\r\n arr[j+1] = arr[j] - arr[j+1];\r\n arr[j] -= arr[j+1];\r\n swapped = true;\r\n\r\n } //end of if block\r\n }//end of element checking loop\r\n //if no 2 elements were swapped by inner loop, then break\r\n if (swapped == false)\r\n break;\r\n }//end of pass loop\r\n }", "public void bubbleSort(int[] array){\n int last = array.length;\r\n // boolean to flag a swap\r\n boolean swap = true;\r\n // continue if a swap has been made\r\n while(swap){\r\n // assume no swaps will be done\r\n swap = false;\r\n // look for swaps\r\n for(int i = 0; i < last - 1; i++){\r\n // find a bigger value?\r\n if(array[i] > array[i+1]){\r\n // swap\r\n swap(array, i, i+1);\r\n // set flag to true\r\n swap = true;\r\n }\r\n }\r\n // move the last position tracker\r\n last--;\r\n }\r\n }", "public static void bubbleSort(int[] arr){\r\n \tfor(int i = 0; i< arr.length - 1;i++)\r\n \t{\r\n \t\tfor(int j = 0; j< arr.length - 1; j++)\r\n \t\t{\r\n \t\t\tif(arr[j] > arr[j + 1])\r\n \t\t\t{\r\n \t\t\t\tint temp = arr[j];\r\n \t\t\t\tarr[j] = arr[j + 1];\r\n \t\t\t\tarr[j + 1] = temp;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n }", "public void bubbleSort(ArrayList <Comparable> list){\r\n\t\tsteps += 2; //init, check condition\r\n\t\tfor (int i = list.size() - 1; i >= 0; i --){\r\n\t\t\tsteps += 2; //init, check condition\r\n\t\t\tfor (int j = 0; j < i ; j ++){\r\n\t\t\t\tsteps += 5;\r\n\t\t\t\tif (list.get(j).compareTo(list.get(j + 1)) < 0){\r\n\t\t\t\t\tsteps += 2;\r\n\t\t\t\t\tswap(list, j, j + 1);\r\n\t\t\t\t\tsteps += 5;\r\n\t\t\t\t}\r\n\t\t\t\tsteps += 2;\r\n\t\t\t}\r\n\t\t\tsteps += 2;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Bubble Sort\");\r\n\t\tSystem.out.println();\r\n\t}", "public static void bubbleSort(int[] a) {\n\t\tboolean loop;\n\t\tdo {\n\t\t\tloop = false;\n\t\t\tfor (int i = 0; i < a.length - 1; i ++) {\n\t\t\t\tif (a[i] > a[i + 1]) {\n\t\t\t\t\tint temp = a[i];\n\t\t\t\t\ta[i] = a[i + 1];\n\t\t\t\t\ta[i + 1] = temp;\n\t\t\t\t\tloop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (loop);\n\t}", "public static void bubbleSort(int[] arr){\n\n\t\tboolean swaps = true; //setting boolean swaps to true \n\t\tint l = arr.length; //varibale to hold the length of the array \n\n\t\twhile (swaps == true) { //goes through while swaps is true \n\n\t\t\tswaps = false; //setting swaps to false \n\n\t\t\tfor(int i = 0; i < l-1; i++) { //iterates through the length of the array \n\t\t\t\t\n\t\t\t\tif (arr[i + 1] < arr[i]) { //if the element on the right is less than the one on the left (54321)\n\n\n\t\t\t\t\tint temp = arr[i]; //holds the value of element at that index position \n\t\t\t\t\tarr[i] = arr[i+1]; //swaps the elments over \n\t\t\t\t\tarr[i+1] = temp; //moves onto the next element \n\n\t\t\t\t\tswaps = true; //as n-1, moves back and repeats to do the last element \n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void testbubbleSort_Sorted() {\r\n\t\tItem[] input = new Item[]{new Item(2),new Item(9),new Item(12),new Item(41),new Item(55)};\r\n\t\tobj.bubbleSort(input);\r\n\t\tassertTrue(expected[1].key == input[1].key);\r\n\t\tassertTrue(expected[2].key == input[2].key);\r\n\t\tassertTrue(expected[3].key == input[3].key);\r\n\t\tassertTrue(expected[4].key == input[4].key);\r\n\t}", "private void createArrays(){\n array1 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n array2 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n BubbleSort.listArrayElements(array1);\n BubbleSort.listArrayElements(array2);\n\n int[] array = new int[array1.length + array2.length];\n\n int i = 0, j = 0;\n for (int k = 0; k < array.length; k++){\n if(i > array1.length - 1){\n array[k] = array2[j];\n j++;\n } else if(j > array2.length - 1){\n array[k] = array1[i];\n i++;\n } else if (array1[i] < array2[j]){\n array[k] = array1[i];\n i++;\n } else {\n array[k] = array2[j];\n j++;\n }\n\n }\n BubbleSort.listArrayElements(array);\n\n\n }", "public void bubbleSort(ArrayList<Pokemon> p);", "public static void bubbleSort(int[] a) {\r\n boolean swapped; // keeps track of when array values are swapped \r\n int i; // a loop counter\r\n int temp; // catalyst variable for String swapping\r\n\r\n // Each iteration of the outer do loop is is one pass through the loop. \r\n // If anything was swapped, it makes another pass\r\n do {\r\n // set swapped to false before each pass\r\n swapped = false;\r\n\r\n // the for loop is a pass through the array to the second to last element\r\n for (i = 0; (i < a.length - 1); i++) {\r\n // if the two items are out of order see page 16 for String compareTo() \r\n if (a[i + 1] < (a[i])) {\r\n // swap the two items and set swapped to true \r\n temp = a[i];//catalyst variable assignment to item\r\n a[i] = a[i + 1];//copy second item to first item slot\r\n a[i + 1] = temp;//copy catalyst variable to second slot\r\n\r\n swapped = true; //something was swapped!\r\n\r\n } // end if\r\n } // end for\r\n\r\n // the outer loop will repeat if a swap was made – another passs\r\n } while (swapped);\r\n\r\n }", "public static void sortBubble(int[] tab) {\n boolean alreadySorted=false;\n int temp;\n int n=tab.length;\n int i=0;\n if(tab.length!=0){\n while (i<n-1 && !alreadySorted){\n alreadySorted=true;\n for (int j=0; j<n-1-i;j++){\n if (tab[j]>tab[j+1]){\n alreadySorted=false;\n temp=tab[j];\n tab[j]=tab[j+1];\n tab[j+1]=temp;\n }\n }\n i=i+1;\n }\n }\n}", "public void bubbleSort(){\n for(int i = arraySize -1; i > 1; i--){\n for(int j = 0; j < i; j++){\n // Use < to change it to Descending order\n if(theArray[j] > theArray[j+1]){\n swapValues(j, j+1);\n printHorizontalArray(i, j);\n }\n printHorizontalArray(i, j);\n }\n }\n }", "static void bubbleSort(int[] arr) {\n\t\tboolean swapped; //using swapped for optimization, inner loop will continue only if swapping is possible\n\t\tfor(int i=0;i<arr.length-1;i++) {\n\t\t\tswapped =false;\n\t\t\tfor(int j =0;j<arr.length-i-1;j++) {\n\t\t\t\tif(arr[j]>arr[j+1]) {\n\t\t\t\t\tint temp = arr[j+1]; \n\t\t arr[j+1] = arr[j]; \n\t\t arr[j] = temp;\n\t\t swapped = true;\n\t\t\t\t}\n\t\t\t\t// IF no two elements were \n\t // swapped by inner loop, then break \n\t\t\t\t if (swapped == false) \n\t\t break;\n\t\t\t}\n\t\t}\n\t\tfor(int a:arr) \n\t\t{ \n\t\t\tSystem.out.print(a+ \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "private void bubbleSort() {\r\n\r\n int n = leaderboardScores.size();\r\n int intChange;\r\n String stringChange;\r\n\r\n for (int i = 0 ; i < n - 1 ; i ++ ) {\r\n for (int j = 0 ; j < n - i - 1 ; j ++ ) {\r\n\r\n if (leaderboardScores.get(j) > leaderboardScores.get(j + 1)) {\r\n // swap arr[j+1] and arr[i]\r\n intChange = leaderboardScores.get(j);\r\n leaderboardScores.set(j, leaderboardScores.get(j + 1));\r\n leaderboardScores.set(j + 1, intChange);\r\n\r\n stringChange = leaderboardUsers.get(j);\r\n leaderboardUsers.set(j, leaderboardUsers.get(j + 1));\r\n leaderboardUsers.set(j + 1, stringChange);\r\n }\r\n\r\n }\r\n }\r\n }", "public void bubbleSort(int [] array) {\n\t\t\n\t\tfor(int i=0; i<array.length - 1; i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<array.length-i-1; j++) {\n\t\t\t\t\n\t\t\t\tif(array[j]>array[j+1]) {\n\t\t\t\t\t\n\t\t\t\t\tint temp = array[j];\n\t\t\t\t\tarray[j] = array[j+1];\n\t\t\t\t\tarray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}", "static void BubbleSort(int[] arr){\n for(int i = 0; i< arr.length-1;i++){\n int numberOfSwaps = 0;\n for(int j = 0; j<arr.length-i-1;j++){\n if(arr[j]>arr[j+1]){\n Swap(arr, j, j+1);\n numberOfSwaps++;\n }\n }\n if(numberOfSwaps == 0){\n break;\n }\n }\n }", "public void setBubbleSort() \n\t{\n\t\tint last = recordCount + NOT_FOUND; //array.length() - 1\n\n\t\twhile(last > RESET_VALUE) //last > 0\n\t\t{\n\t\t\tint localIndex = RESET_VALUE; \n\t\t\tboolean swap = false;\n\n\t\t\twhile(localIndex < last) \n\t\t\t{\n\t\t\t\tif(itemIDs[localIndex] > itemIDs[localIndex + 1]) \n\t\t\t\t{\n\t\t\t\t\tsetSwapArrayElements(localIndex);\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t\t\tlocalIndex++;\n\t\t\t}\n\n\t\t\tif(swap == false) \n\t\t\t{\n\t\t\t\tlast = RESET_VALUE;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tlast = last + NOT_FOUND;\n\t\t\t}\n\n\t\t}//END while(last > RESET_VALUE)\n\t\treturn;\n\t}", "public static void main(String[] args) {\n // auxIntArr is found in AuxPkg.AuxFuncs\n int[] arr = auxIntArr.clone();\n\n System.out.println(\"BubbleSort:\");\n System.out.print(\"Before: \");\n printIntArr(arr);\n\n // Main loop where the index will grow smaller as the array gets sorted\n for( int lastUnsortedIdx = arr.length -1;\n lastUnsortedIdx > 0;\n lastUnsortedIdx--)\n {\n // Nested loop for bubbling highest values to the next sorted slot\n // in the main loop\n for(int idx = 0; idx < lastUnsortedIdx; idx++)\n {\n if(arr[idx] > arr[idx+1])\n {\n swap(arr, idx, idx+1);\n }\n }\n }\n\n System.out.print(\"After: \");\n printIntArr(arr);\n System.out.println();\n }", "public static void main(String[] args) {\n\r\n\t\tint[] a;\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.bubble(a);\r\n\r\n\t\tSystem.out.println(\"BubbleSort: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.selection(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nSelection: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.insertion(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nInsertion: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.mergeSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nMerge: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.quickSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.qs(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick1: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args)\n {\n Integer[] array = new Integer[50];\n Random rnd = new Random();\n for (int i = 0; i < array.length; i++)\n array[i] = rnd.nextInt(100);\n\n System.out.println(\"array before sorted: \" + Arrays.toString(array));\n\n insertionSort(array);\n\n // check if it is really sorted now\n for (int i = 0; i < array.length - 1; i++ )\n {\n if (array[i] > array[i + 1])\n {\n System.out.println(\"something wrong\");\n return;\n }\n }\n\n System.out.println(\"array sorted: \" + Arrays.toString(array));\n }", "public static <T extends Comparable<T>> void myBubbleSort(T[] arrayToSort) {\n boolean isNotSorted = true;\n while(isNotSorted) {\n isNotSorted = false;\n for(int i = 0; i < arrayToSort.length - 1; i++)\n if(arrayToSort[i].compareTo(arrayToSort[i + 1]) > 0) {\n T value = arrayToSort[i];\n arrayToSort[i] = arrayToSort[i + 1];\n arrayToSort[i + 1] = value;\n isNotSorted = true;\n }\n }\n }", "public static void bubbleSort(int[] array) {\n boolean swapped = true;\n for (int i = 0; i < array.length && swapped != false; i++) {\n swapped = false;\n for (int j = 1; j < (array.length - i); j++) {\n if (array[j - 1] > array[j]) {\n swap(array, j, j - 1);\n swapped = true;\n }\n }\n }\n }", "@Test\n public void testPrueba1(){\n \n System.out.println(\"Prueba 1\");\n int[] input = new int[]{1, 2, 3, 5, 4};\n int[] expectedResult = new int[]{1, 2, 3, 4, 5};\n int[] actualResult = BubbleSort.sortBasic(input);\n assertArrayEquals(expectedResult, actualResult);\n \n }", "public void myBubbleSort(int array[]) {\n for (int i = 0; i < array.length - 1; i++) {\n //Iterate through the array to the index to the left of i\n for (int j = 0; j < array.length - i - 1; j++) {\n //Check if the value of the index on the left is less than the index on the right\n if (array[j] > array[j + 1]) {\n //If so, swap them.\n int temp = array[j];\n array[j] = array[j + 1];\n array[j + 1] = temp;\n\n }\n }\n }\n }", "public static void BubbleSort(int[] input) {\r\n for (int i = input.length - 1; i > 0; i--) {\r\n for (int j = 0; j < i; i++) {\r\n if (input[j] > input[j + 1]) {\r\n swap(input, j, j + 1);\r\n }\r\n }\r\n }\r\n }", "private static Integer[] optimisedBubbleSort(Integer[] n) {\n int len = n.length - 1;\n boolean swapped = false;\n for (int i = 0; i < len; i++) {\n for (int j = 0; j < len - i; j++) {\n if (n[j] > n[j + 1]) {\n int temp = n[j];\n n[j] = n[j + 1];\n n[j + 1] = temp;\n swapped = true;\n }\n }\n if(swapped == false) {\n break;\n }\n }\n return n;\n }", "public void bubbleSort() {\n \tfor (int i = 0; i < contarElementos()-1; i++) {\n\t\t\tboolean intercambiado= false;\n\t\t\tfor (int j = 0; j < contarElementos()-1; j++) {\n\t\t\t\tif (encontrarNodoEnElndice(j).getElemento().compareTo(encontrarNodoEnElndice(j+1).getElemento())>0) {\n\t\t\t\t\tintercambiar(j, j+1);\n\t\t\t\t\tintercambiado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!intercambiado) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }", "public static int[] bubbleSort(int array[]) {\n \t\t// TODO S1 implements bubble sort\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array.length - i - 1; j++) {\n\t\t\t\tif (array[j] > array[j + 1]) {\n\t\t\t\t\tint smaller = array[j + 1];\n\t\t\t\t\tint larger = array[j];\n\t\t\t\t\tarray[j] = smaller;\n\t\t\t\t\tarray[j + 1] = larger;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t return array;\n \t}", "public static void main(String[] args) {\n \n int swap = 0;\n \n Scanner scan = new Scanner(System.in);\n System.out.print(\"Kaç elemanlı = \");\n int max = scan.nextInt();\n\n int[] toSortArray = new int[max];\n\n toSortArray[0] = 0;\n\n for (int i = 1; i < max; i++) {\n\n toSortArray[i] = (int) (Math.random() * 100);\n toSortArray[0]++; //holds the number of values in the array;\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp;\n index = index / 2;\n\n }\n\n\t\t\t//Hence the heap is created!\n }\n\n System.out.println(\"The array to be sorted is:\");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n\n }\n\n System.out.println(\" | \");\n\n\t\t//Start\n\t\t//Let's Sort it out now!\n while (toSortArray[0] > 0) {\n\n int temp = toSortArray[1];\n toSortArray[1] = toSortArray[toSortArray[0]];\n toSortArray[toSortArray[0]] = temp;\n\n for (int i = 1; i < toSortArray[0]; i++) {\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp1 = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp1;\n index = index / 2;\n swap = swap+1;\n\n }\n\n }\n\n toSortArray[0]--;\n\n }\n\n\t\t//End\n System.out.println(\"The sorted array is: \");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n }\n\n System.out.println(\" | \");\n System.out.println(max + \" eleman için \"+ swap + \" adet eleman yerdeğiştirildi. \" );\n\n }", "@Test(timeout = SHORT_TIMEOUT)\n public void testAdaptiveInsertionSort() {\n //Test adaptiveness of completely ordered sort\n\n //Generate sorted array\n toSort = randArrDuplicates(MAX_ARR_SIZE, new Random(2110));\n Arrays.parallelSort(toSort, comp);\n sortedInts = cloneArr(toSort);\n\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n int numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n //Should require only 1 pass through array, for n-1 comparisons\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= MAX_ARR_SIZE - 1);\n\n //Check adaptiveness with 1 item out-of-order\n\n //Set up list\n toSort = new IntPlus[6];\n for (int i = 0; i < toSort.length; i++) {\n toSort[i] = new IntPlus(2 * i);\n }\n toSort[3] = new IntPlus(-1);\n\n sortedInts = cloneArr(toSort);\n\n /*\n Initial Array: [0, 2, 4, -1, 8, 10]\n Should require 7 comparisons to sort\n */\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= 7);\n }", "public static int[] bubbleSort(int[] values) {\n int temp;\n boolean nextPass = true;\n \n for (int i = 1; i < values.length && nextPass; i++) { // terminate loop if at end of array or a new pass is not needed\n nextPass = false;\n for (int j = 0; j < values.length - i; j++) {\n if (values[j] > values[j + 1]) { // current value greater than the next? swap values\n temp = values[j];\n values[j] = values[j + 1];\n values[j + 1] = temp;\n nextPass = true; \n }\n }\n }\n \n return values;\n }", "public static void main(String[] args) {\n\t\t\n int array[] = {20,50,10,43,543,-43,-42,-245,5,21,5,1010};\n \n for(int firstUnsortedIndex = 1; firstUnsortedIndex < array.length; firstUnsortedIndex++) {\n \t\n \tint newElement = array[firstUnsortedIndex]; //storing the element of the unsorted array temporary to newElement\tin case we need to overwrite\n \n \tint i;\n \t//we want to keep looking for the insertion position as long as we havent hit the front of the array\n \tfor(i = firstUnsortedIndex; (i > 0 && array[i-1] > newElement); i--) {\n \t\tarray[i] = array[i-1];\n \t}\n \t\n \tarray[i] = newElement;\n }\n \n printer(array);\n \n\t}", "public static void bubbleSort(int[] arr) {\r\n for (int i = 0; i < arr.length; i++) {\r\n boolean swapped = false;\r\n for (int j = 1; j < arr.length - i; j++) {\r\n if (arr[j] < arr[j - 1]) {\r\n swap(arr, j, j - 1);\r\n swapped = true;\r\n }\r\n }\r\n if (!swapped) {\r\n break;\r\n }\r\n }\r\n }", "public static void insertionSort(int[] arr) {\n //write your code here\n for(int i=1;i<arr.length;i++) {\n for(int j=i-1;j>=0;j--) {\n if(isGreater(arr, j, j+1))\n swap(arr, j, j+1);\n else\n break;\n }\n }\n}", "public static void bubbleSort() {\r\n\t\tfor(int i = nodeArrList.size() -1; i > 0; i--) {\r\n\t\t\tfor(int j = 0; j < i; j++) {\r\n\t\t\t\tif(nodeArrList.get(j).frequency > nodeArrList.get(j +1).frequency) {\r\n\t\t\t\t\tHuffmanNode temp = nodeArrList.get(j);\r\n\t\t\t\t\tnodeArrList.set(j, nodeArrList.get(j + 1));\r\n\t\t\t\t\tnodeArrList.set(j + 1, temp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }", "public void bubbleSort(ArrayList <Integer> list){\n System.out.println();\n System.out.println(\"Bubble Sort\");\n System.out.println();\n\n steps = 0;\n for (int outer = 0; outer < list.size() - 1; outer++){\n for (int inner = 0; inner < list.size()-outer-1; inner++){\n steps += 3;//count one compare and 2 gets\n if (list.get(inner)>(list.get(inner + 1))){\n steps += 4;//count 2 gets and 2 sets\n int temp = list.get(inner);\n list.set(inner,list.get(inner + 1));\n list.set(inner + 1,temp);\n }\n }\n }\n }", "@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }", "public static void bubbleSort(String [] list1)\r\n\t{\r\n\t\t\r\n\t String temp;\r\n\t int swap=1000;\r\n\t while(swap>0) \r\n\t {\r\n\t \tswap=0;\r\n\t \tfor(int outside=0; outside<list1.length-1; outside++)\r\n\t \t{\r\n\t \t\tif(list1[outside+1].compareTo(list1[outside])<0)\r\n\t \t\t{\r\n\t \t\t\tswap++;\r\n\t \t\t\ttemp=list1[outside];\r\n\t \t\t\tlist1[outside]=list1[outside+1];\r\n\t \t\t\tlist1[outside+1]=temp;\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t \r\n\t}", "public static int[] bubbleSort(int[] inputArray) {\n boolean done = false;\n\n for (int i = 0; i < inputArray.length && !done; i++) {\n done = true;\n for (int j = 0; j < inputArray.length - i - 1; j++) {\n if (inputArray[j] > inputArray[j + 1]) {\n int temp = inputArray[j];\n inputArray[j] = inputArray[j + 1];\n inputArray[j + 1] = temp;\n done = false;\n }\n }\n }\n return inputArray;\n\n }", "public static int[] BubbleSort(int[] array){\n int j;\n int temp;\n boolean flag=false;\n while ( flag )\n {\n flag= false;\n for( j=0;j<array.length-1;j++ )\n {\n if ( array[j] < array[j+1] )\n {\n temp = array[j];\n array[j] = array[j+1];\n array[j+1] = temp;\n flag = true;\n }\n }\n }\n return array;\n }", "public void printSortedByBubbleSort(int[] array){\r\n\t\tint temp;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = 0; j < array.length - 1; j++) {\r\n\t\t\t\tif(array[j] > array[j + 1]){\r\n\t\t\t\t\ttemp = array[j];\r\n\t\t\t\t\tarray[j] = array[j + 1];\r\n\t\t\t\t\tarray[j + 1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nSorted by BubleSort: \");\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tSystem.out.print(array[i] + \" \");\r\n\t\t}\r\n\t}", "public static int[] bubleSort(int[] elements) {\n\t\tif (elements.length == 0 || elements.length == 1)\n\t\t\treturn elements;\n\t\t\n\t\tboolean swapped = true;\n\t\t\n\t\twhile (swapped) {\n\t\t\tswapped = false;\n\t\t\tfor (int i=0;i < elements.length-1;i++) {\n\t\t\t\tif (elements[i] > elements[i+1]) {\n\t\t\t\t\tint temp = elements[i];\n\t\t\t\t\telements[i] = elements[i+1];\n\t\t\t\t\telements[i+1] = temp;\n\t\t\t\t\tswapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn elements;\n\t}", "public static <T extends Comparable<T>> void bubbleSort(T[] arrayToSort) {\n for(int i = 0; i < arrayToSort.length - 1; i++)\n for(int j = arrayToSort.length - 1; j > i + 1; j--)\n if(arrayToSort[j].compareTo(arrayToSort[j - 1]) < 0) {\n T value = arrayToSort[j];\n arrayToSort[j] = arrayToSort[j - 1];\n arrayToSort[j - 1] = value;\n }\n }", "public static void bubbleSort(int [] arr){\n int temp = 0; //temporary variable\n boolean flag = false; //mark if any reversion has happened\n for (int i = 0; i < arr.length - 1;i++){\n\n for (int j = 0; j < arr.length - 1-i; j++) {\n //if the previous number is bigger than the latter, reverse\n if (arr[j] > arr[j + 1]) {\n flag = true;\n temp = arr[j];\n arr[j] = arr[j + 1];\n arr[j + 1] = temp;\n }\n }\n\n //System.out.printf(\"After the %d round of sorting\",i+1);\n //System.out.println(Arrays.toString(arr));\n\n if(!flag){\n break;\n } else {\n flag = false;\n //reset flag to true to do the next check\n }\n }\n }", "public static void Insertionsort(int a[]) \n\t { \n\t int n = a.length; \n\t for (int i=1; i<n; ++i) \n\t { \n\t int key = a[i]; \n\t int j = i-1;\n\t while (j>=0 && a[j] > key) \n\t { \n\t a[j+1] = a[j]; \n\t j = j-1; \n\t } \n\t a[j+1] = key; \n\t } \n\t }", "public static int[] bubble(int[] arr)\n {\n int l=arr.length;\n\n for (int i = 0; i <l-1; i++)\n {\n for (int j=0; j<l-1-i; j++)\n {\n if (arr[j] > arr[j + 1])\n {\n swap(j, j+ 1, arr);\n }\n }\n }\n return arr;\n }", "public static void main(String[] args) {\n\t\tBubbleSort bs = new BubbleSort();\n\t\tint[] arr = {9, 1, 5, 8, 3, 7, 6, 4, 2};\n//\t\tint[] arr = {2, 1, 3, 4, 5, 6, 7, 8, 9};\n\t\t\n//\t\tbs.bubbleSort0(arr);\n//\t\tbs.bubbleSortNormal(arr);\n\t\tbs.bubbleSortImporve(arr);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Bubble Sort\");\r\n\t\tint[] arr1 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr1));\r\n\t\tBubble.sort(arr1);\r\n\t\tSystem.out.println(Arrays.toString(arr1));\r\n\t\t\r\n\t\tSystem.out.println(\"Select Sort\");\r\n\t\tint[] arr2 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr2));\r\n\t\tSelect.sort(arr2);\r\n\t\tSystem.out.println(Arrays.toString(arr2));\r\n\t\t\r\n\t\tSystem.out.println(\"Insert Sort\");\r\n\t\tint[] arr3 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr3));\r\n\t\tInsert.sort(arr3);\r\n\t\tSystem.out.println(Arrays.toString(arr3));\r\n\t\t\r\n\t\tSystem.out.println(\"Quick Sort\");\r\n\t\tint[] arr4 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr4));\r\n\t\tQuickSort.sort(arr4, 0, arr4.length-1);\r\n\t\tSystem.out.println(Arrays.toString(arr4));\r\n\t\t\r\n\t\tbyte b = -127;\r\n\t\tb = (byte) (b << 1);\r\n\t\tSystem.out.println(b);\r\n\t}", "public void insertionSort(int[] arr) \n {\n int i, j, newValue;\n try\n { \n //looping over the array to sort the elements\n for (i = 1; i < arr.length; i++) \n {\n thread.sleep(100);\n newValue = arr[i];\n j = i;\n if(!orderPanel) //condition for Descending order\n {\n while (j > 0 && arr[j - 1] > newValue) \n {\n arr[j] = arr[j - 1]; // swapping the elements \n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n else // condition for Ascending order\n {\n while (j > 0 && arr[j - 1] < newValue) \n {\n arr[j] = arr[j - 1];\n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n arr[j] = newValue;\n \n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e); \n }\n \n \n }", "public static void bubbleSort(String[] words) {\n \n for(int i=0; i< words.length-1; i++) {\n for(int j=i+1; j<words.length; j++) {\n if(words[j].compareTo(words[i]) < 0) {\n String s = words[j];\n words[j] = words[i];\n words[i] = s;\n }\n } \n }\n }", "public void recursiveBubbleSort(int[] numbers) {\n boolean sorted = false;\n int posA;\n int posB;\n\n for(int i = 0; i < numbers.length - 1; i++) {\n if(numbers[i] > numbers[i + 1] && numbers[i] != numbers.length) {\n posA = numbers[i];\n posB = numbers[i + 1];\n numbers[i] = posB;\n numbers[i + 1] = posA;\n sorted = true;\n }\n }\n if (sorted) {\n recursiveBubbleSort(numbers);\n }\n }", "public void insertionSort(int[] nums) {\n\t\tif(nums.length<=1) return ;\n\t\tfor(int i=1;i<nums.length;i++) {\n\t\t\tint j=i;\n\t\t\twhile( j>=1 && less(nums[j],nums[j-1])) {\n\t\t\t\tswap(nums,j,j-1);\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void sort(int[] demo) {\n\t\tint temp;\r\n\t\tfor(int gap = 5;gap > 0;gap /= 2){\r\n\t\t\tfor(int i = gap;i < demo.length;i++){\r\n\t\t\t\tfor(int j = i - gap;j >= 0;j -= gap){\r\n\t\t\t\t\tif (demo[j] > demo[j + gap]) {\r\n\t\t\t\t\t\ttemp =demo[j];\r\n\t\t\t\t\t\tdemo[j] =demo[j + gap];\r\n\t\t\t\t\t\tdemo[j + gap] = temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(Arrays.toString(demo));\r\n\t}", "public static void main(String[] args) {\n\t\tint maxSize = 100;\n\t\tArray array = new Array(maxSize);\n\t\tarray.insert(77);\n\t\tarray.insert(99);\n\t\tarray.insert(44);\n\t\tarray.insert(55);\n\t\tarray.insert(22);\n\t\tarray.insert(88);\n\t\tarray.insert(11);\n\t\tarray.insert(00);\n\t\tarray.insert(66);\n\t\tarray.insert(33);\n\t\t\n\t\tarray.display();\n\t\tSystem.out.println();\n\t\tarray.bubblesort();\n\t\tarray.display();\n\t}", "public static void main(String[] args) {\n\r\n\t\tint[] a = { 1, 8, 20, 5, 4, 9 };\r\n\t\tinsertSort(a);\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t}", "static void InsertionSort(int[] arr){\n int inner, temp;\n for(int outer = 1; outer<arr.length;outer++){\n temp = arr[outer];\n inner = outer;\n while (inner>0 && arr[inner-1]>temp){\n arr[inner] = arr[inner-1];\n inner--;\n }\n arr[inner]=temp;\n }\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "public static int[] bubbleSortBasic(int [] arrayToSort , SorterObject results)\n {\n \t// Create a copy of array than was send\n int [] arr = Arrays.copyOf(arrayToSort,arrayToSort.length);\n // Start the timer\n long startTime = System.currentTimeMillis(); \n // Variable used for swaping elements\n int temp = 0; \n // Outer loop\n for(int i=0; i < arr.length-1; i++)\n { \n // inner loop\n for(int j=0; j < arr.length-1; j++)\n { \n \t// Increase number of comparisons\n \tresults.numberOfComparisons++;\n if(arr[j] > arr[j+1])\n { \n\t temp = arr[j]; \n\t arr[j] = arr[j+1]; \n\t arr[j+1] = temp; \n\t // Increase number of swaps\n\t results.numberOfSwaps++;\n }\n }\n } \n // Stop the timer\n long stopTime = System.currentTimeMillis();\n // Calculate time \n long elapsedTime = stopTime - startTime;\n // Save time elapsed in global results object\n results.time = elapsedTime;\n // Return sorted array\n return arr;\n \n }", "public static void main(String[] args) {\n\t\tint[] sortArray = new int[] {1,-5,10,2,8};\r\n\t\tBubbleSort.sort(sortArray);\r\n\t\tfor(int elm:sortArray){\r\n\t\t\tSystem.out.println(\"Sorted Array \"+elm);\r\n\t\t}\r\n\r\n\r\n\t}", "void sort (int [] items) {\r\n\tint length = items.length;\r\n\tfor (int gap=length/2; gap>0; gap/=2) {\r\n\t\tfor (int i=gap; i<length; i++) {\r\n\t\t\tfor (int j=i-gap; j>=0; j-=gap) {\r\n\t\t \t\tif (items [j] <= items [j + gap]) {\r\n\t\t\t\t\tint swap = items [j];\r\n\t\t\t\t\titems [j] = items [j + gap];\r\n\t\t\t\t\titems [j + gap] = swap;\r\n\t\t \t\t}\r\n\t \t}\r\n\t }\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\tint[] nums={1,3,7,2,5,9};\n\t\tint[] sorted=bubbleSort(nums);\n\t\t\n\t\tprint(sorted);\n\n\t}", "void bubblesort(int arr[],int n)\n {\n for(int i=0;i<n;i++)\n {\n for(int j=0;j<n-1;j++) //after its 1st iteration we have our maximum value sorted\n {\n if(arr[j]>arr[j+1]) // if value at present index is > the next index value then its swap the value \n {\n int temp=arr[j];\n arr[j]=arr[j+1];\n arr[j+1]=temp;\n }\n }\n }\n }", "private static void insertionSortArray2(int[] arr) {\n\n int key,j;\n\n for(int index=1;index<arr.length;index++){\n\n key=arr[index];\n\n j=index-1;\n\n while(j>=0 && arr[j]>key){\n arr[j+1]=arr[j];\n j--;\n }\n arr[j+1]=key;\n }\n\n\n }", "public static void insertSort (int array[])\n {\n for (int i = 1; i < array.length; ++i)\n {\n int key = array[i];\n int j = i -1;\n\n while(j >= 0 && array[j] > key)\n {\n array[j + 1] = array[j];\n j = j - 1;\n }\n array[j+1] = key;\n }\n }", "static void sort(int[] a)\n {\n for ( int j = 1; j<a.length; j++)\n {\n int i = j - 1;\n while(i>=0 && a[i]>a[i+1])\n {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n i--;\n }\n }\n }", "public static void randomArraySorts() {\n int[] randomArr = new int[1000];\n for (int i = 0; i < randomArr.length; i++) {\n randomArr[i] = (int) (Math.random() * 5000 + 1);\n }\n\n // Heap Sort of random array\n int arr[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr[i] = randomArr[i];\n }\n\n HeapSort hs = new HeapSort();\n\n System.out.println(\"Given Array: \");\n hs.printArray(arr);\n\n long start = System.currentTimeMillis();\n hs.sort(arr);\n long end = System.currentTimeMillis();\n long time = end - start;\n\n System.out.println(\"Heap Sorted Array: \");\n hs.printArray(arr);\n System.out.println(\"Heap Sort Time: \" + time);\n\n // Merge Sort of random array\n System.out.println();\n int arr2[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr2[i] = randomArr[i];\n }\n\n MergeSort ms = new MergeSort();\n\n System.out.println(\"Given Array: \");\n ms.printArray(arr2);\n\n start = System.currentTimeMillis();\n ms.sort(arr2, 0, arr.length - 1);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Merge Sorted Array: \");\n ms.printArray(arr2);\n System.out.println(\"Merge Sort Time: \" + time);\n\n // Insert Sort of random array\n System.out.println();\n int arr3[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr3[i] = randomArr[i];\n }\n\n System.out.println(\"Given Array: \");\n print(arr3, arr3.length);\n\n start = System.currentTimeMillis();\n insertSort(arr3);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Insert Sorted Array: \");\n print(arr3, arr3.length);\n System.out.println(\"Insert Sort Time: \" + time);\n }", "static int[] Bubble_sort(int[] input) {\n\t\t//int n=input.length;\t\t\t\t\t//length of the array\n\t\tfor(int i=0;i<input.length;i++)\n\t\t{\t\t\t\t\t\t\t\t\n\t\t\tint pos=0;\t\t\t//setting the first element as the Max element\n\t\t\tint max=input[pos];\n\t\t\tfor(int j=0;j<input.length-i;j++)\n\t\t\t{\t\t\t\t\t//traversing the array to find the max element\n\t\t\t\tif(input[j]>max)\n\t\t\t\t{\n\t\t\t\t\tpos=j;\n\t\t\t\t\tmax=input[pos];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t//swapping the Max element with input.length-i-1 position\n\t\t\tinput[pos]=input[input.length-i-1];\n\t\t\tinput[input.length-i-1]=max;\n\t\t}\n\t\treturn input;\n\t}", "public static int[] insertionSort(int[] elements) {\n\t\tif (elements.length == 0 || elements.length == 1)\n\t\t\treturn elements;\n\t\t\n\t\tfor (int i=1;i < elements.length;i++) {\n\t\t\tint temp = elements[i];\n\t\t\tfor (int j=i-1;j >= 0;j--) {\n\t\t\t\tif (temp < elements[j]) {\n\t\t\t\t\telements[j+1] = elements[j];\n\t\t\t\t\telements[j] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn elements;\n\t}", "private void insertionSort(T[] arr) {\n for (int i = 1; i < n; i++)\n for (int j = i; j > 0 && arr[j].compareTo(arr[j - 1]) < 0; j--) // we create the variable j to shift the element\n swap(arr, j, j - 1);\n }", "public void insertionSort(int[] nums) {\n for (int i = 1; i < nums.length; i++) {\n // Hold the current element which is processed\n int current = nums[i];\n int j = i;\n\n // Trace backwards and find a place to insert current by shifting elements\n // towards the right\n while (j - 1 >= 0 && nums[j - 1] > current) {\n nums[j] = nums[j - 1];\n j--;\n }\n\n // j is the right place to insert current\n nums[j] = current;\n }\n\n }", "private static void insertionSortArray(int[] arr) {\n\n int key,index;\n for( index=1;index<arr.length;index++){\n key=arr[index];\n for(int j=index-1; j>=0;j--){\n if(key<arr[j]){\n arr[index]=arr[j]; //swap\n arr[j]=key;\n index--; //since a[i] & a[j] are swapped, index of key(i) has to changed\n }else {\n break;\n }\n }\n }\n\n }", "public static void main(String[] args) {\n\n\t\tint[] a= {10,9,7,13,2,6,14,20};\n\t\tSystem.out.println(\"before sort\"+Arrays.toString(a));\n\t\tfor(int k=1;k<a.length;k++) {\n\t\t\tint temp=a[k];\n\t\t\tint j=k-1;\n\t\t\t\n\t\t\twhile(j>=0 && temp<=a[j]) {\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\tj=j-1;\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t}\n\n\t\t\n\t\tSystem.out.println(\"After sort\"+Arrays.toString(a));\n\t\t\n\t\tSystem.out.println(\"print uing for loop\");\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.print(a[i]+\"\");\n\t\t}\n\t}", "public static void bubbleSort(int arr[], int n)\n {\n for (int i = 0; i < n - 1; i++) { \n\t\t\tfor (int j = 0; j < n - i - 1; j++) { \n\t\t\t\tif (arr[j] > arr[j + 1]) { \n\t\t\t\t\tint temp = arr[j]; \n\t\t\t\t\tarr[j] = arr[j + 1]; \n\t\t\t\t\tarr[j + 1] = temp; \n\t\t\t\t} \n\t\t\t} \n\t\t} \n }", "public static int[] bubbleSort(int[] arr, int n){\n for(int j=1; j<n; j++) {\n for (int i = 1; i < n; i++) {\n if (arr[i - 1] > arr[i]) {\n int temp = arr[i - 1];\n arr[i - 1] = arr[i];\n arr[i] = temp;\n }\n }\n }\n return arr;\n }", "public void sortArray(){\n\t\tfor (int i=0; i<population.length;i++){\n\n\t\t\tfor (int j=0; j<population.length-i-1;j++){\n\n\t\t\t\tif(population[j].computeFitness()>population[j+1].computeFitness()) {\n\t\t\t\t\t//swap their positions in the array\n\t\t\t\t\tChromosome temp1 = population[j];\n\t\t\t\t\tpopulation[j] = population[j+1];\n\t\t\t\t\tpopulation[j+1] = temp1;\n\t\t\t\t}//end if\n\n\t\t\t}//end j for\n\n\t\t}//end i for\n\t}", "public int[] bubbleSortInt(int[] input){\r\n\t\tfor(int i=0;i<input.length;i++){\r\n\t\t\tfor(int j=i+1;j<input.length;j++){\r\n\t\t\t\tif(input[i]>input[j]){\r\n\t\t\t\t\tinput[i]=input[i]+input[j];\r\n\t\t\t\t\tinput[j]=input[i]-input[j];\r\n\t\t\t\t\tinput[i]=input[i]-input[j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn input;\r\n\t}", "public static void main(String[] args) {\r\n\t\tint arr[] = {1,0,5,6,3,2,3,7,9,8,4};\r\n\t\tint temp;\r\n\t\t\r\n\t\tfor(int i = 0; i < 10; i ++) {\r\n\t\t\tfor(int j = 0; j < 10 - i; j ++) {\r\n\t\t\t\tif(arr[j] > arr[j+1]){\r\n\t\t\t\t\ttemp = arr[j+1];\r\n\t\t\t\t\tarr[j+1] = arr[j];\r\n\t\t\t\t\tarr[j] = temp;\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < 11; i ++) {\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t}", "void InsertionSort(int a[])\n {\n int i,j;\n\n for( j=1;j<a.length;j++)\n {\n int key =a[j];\n i=j-1;\n\n\n while(i>=0 && a[i]>key)\n {\n a[i+1]=a[i];\n i=i-1;\n }\n a[i+1]=key;\n\n }\n\n }", "public static void getBubbleSort(int range) {\n\n Integer[] number = GetRandomArray.getIntegerArray(range);\n\n //main cursor to run across array\n int pivot_main = 0;\n\n //secondary cursor to run of each index of array\n int pivot_check = 0;\n\n //variable to hold current check number\n int check_num = 0;\n\n //run loop for array length time\n for (int i = number.length; i > 0; i--) {\n\n //set cursor to first number\n pivot_main = number[0];\n\n //loop size decreases with main loop (i - 1234 | j - 4321)\n for (int j = 0; j < i - 1; j++) {\n\n //set cursor to next number in loop\n pivot_check = j + 1;\n\n //get number at above cursor\n check_num = number[j + 1];\n\n //check if number at current cursor is less than number at main cursor\n if (check_num < pivot_main) {\n //swap there position\n number[pivot_check] = pivot_main;\n number[j] = check_num;\n }\n\n //check if number at current cursor is greater than number at main cursor\n if (check_num > pivot_main) {\n //transfer current number to main cursor\n pivot_main = check_num;\n }\n }\n System.out.println(Arrays.toString(number));\n }\n }", "public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }", "public void insertionSort (Integer [] inNums)\n\t{\n\t\tnums = inNums.clone();\n\t\tfor (int i=0; i<nums.length; i++)\n\t\t{\n\t\t\tfor (int j=i; j>0; j--)\n\t\t\t{\n\t\t\t\t//System.out.println (\"i=\"+i+\"; j=\"+j);\n\t\t\t\tprint ();\n\t\t\t\t//if (nums[j] < nums[j-1])\n\t\t\t\tif (nums[j].compareTo (nums[j-1]) < 0)\n\t\t\t\t{\n\t\t\t\t\ttemp = nums[j-1];\n\t\t\t\t\tnums [j-1] = nums[j];\n\t\t\t\t\tnums[j]=temp;\n\t\t\t\t}\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}", "public static void InsertationSort(int[] data)\n {\n int key;\n // loop for select values from the array\n for(int i = 1; i <data.length;i++)\n {\n // key= select the value of index [i]\n key = data[i];\n // select the value that is Previous of the key to compare with.\n int j = i -1 ;\n // loop for comparing and sort, change the order of the values.\n while(j >= 0 && key < data[j])\n {\n data[j+1]=data[j];\n j--;\n }\n data[j+1]=key;\n }\n }", "static double [] insertionSort (double a[]){\r\n //todo: implement the sort\r\n \tif(a==null){ //could be length\r\n \t\tSystem.out.print(\"Array empty\");\r\n \t\treturn null;\r\n \t}\r\n \tfor(int i = 1; i <a.length; i++) {\r\n \t\tdouble current = a[i];\r\n \t\tint j = i;\r\n \t\twhile(j>0 && a[j-1]> current) {\r\n \t\t\ta[j] =a[j-1];\r\n \t\t\tj--;\r\n \t\t} \r\n \t\ta[j]=current;\r\n \t}\r\n \treturn a;\r\n }", "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t int s = in.nextInt();\n\t int[] ar = new int[s];\n\t \n\t for(int i=0;i<s;i++){\n\t ar[i]=in.nextInt(); \n\t }\n\t \n\t long start = System.nanoTime();\n\t sort(ar);\n\t long end = System.nanoTime();\n\t \n\t long duration = (end-start);\n\t \n\t \n\t \n\t\tSystem.out.println(\"The Insertion sort was completed in \"+duration +\" nanoseconds\");\n\t\tprintArray(ar);\n\t}", "public static void bubble(int [] sortThis)\n\t{\n\t\tint temp =0;\n\t\tfor(int i = 0; i < sortThis.length; i ++)\n\t\t{\n\t\t\tfor(int j = 0; j <sortThis.length-1; j ++)\n\t\t\t{\n\t\t\t\tif(sortThis[j] > sortThis[j+1])\n\t\t\t\t{\n\t\t\t\t\ttemp = sortThis[j];\n\t\t\t\t\tsortThis[j] = sortThis[j+1];\n\t\t\t\t\tsortThis[j+1] = temp;\n\t\t\t\t}//end if \n\t\t\t}//end inner for \n\t\t}//end for\n\t\t\n\t\t//This for loop and print line is for the simple matter to see the test results clearly. \n\t\tSystem.out.println(\"This is the arragned set\");\n\t\t//this loop prints out the array of ints\n\t\tfor(int x = 0;x < sortThis.length; x ++)\n\t\t{\n\t\t\tSystem.out.println(sortThis[x]+\",\");\n\t\t}\n\t}" ]
[ "0.7369574", "0.7248795", "0.70550174", "0.7032679", "0.70109886", "0.70084554", "0.698109", "0.6930369", "0.6889616", "0.68807507", "0.6832329", "0.6803587", "0.67732716", "0.6767851", "0.67439324", "0.6742622", "0.6740008", "0.6739681", "0.6732426", "0.6729889", "0.67049384", "0.6701632", "0.66996455", "0.66968286", "0.6694803", "0.6682917", "0.6679878", "0.6664287", "0.66541916", "0.6647961", "0.6647889", "0.66432", "0.66341984", "0.6609624", "0.66045046", "0.66018504", "0.6590416", "0.65626067", "0.655216", "0.654932", "0.6543122", "0.6534936", "0.6527787", "0.65185326", "0.6506918", "0.65031934", "0.64957607", "0.6490554", "0.64901286", "0.64705205", "0.6464809", "0.64576745", "0.6457606", "0.64557374", "0.6454496", "0.6422006", "0.6421915", "0.6420141", "0.6416451", "0.6401413", "0.6399257", "0.63887095", "0.6384551", "0.63795924", "0.637007", "0.63442796", "0.63432324", "0.6335964", "0.63260233", "0.6304597", "0.63044375", "0.6293102", "0.62645954", "0.62575525", "0.6251719", "0.62475437", "0.6242443", "0.6233739", "0.6232973", "0.6220495", "0.6204733", "0.6203795", "0.619759", "0.6197344", "0.61901575", "0.6188067", "0.6182442", "0.6181635", "0.61677945", "0.6164554", "0.61601806", "0.61591905", "0.615565", "0.61476165", "0.6144208", "0.6135828", "0.6128569", "0.61276", "0.612006", "0.6117187", "0.6111958" ]
0.0
-1
Function : bubbleSort Use : sorting the algorithm using appropraite insertions Parameter : array of random values Returns : nothing
public void shellSort(int[] a) { int increment = a.length / 2; while (increment > 0) { for (int i = increment; i < a.length; i++) //looping over the array { int j = i; int temp = a[i]; // swapping the values to a temporary array try { if(!orderPanel) // checking for Descending order { while (j >= increment && a[j - increment] > temp) { a[j] = a[j - increment]; //swapping the values thread.sleep(100); repaint(); this.setThreadState(); j = j - increment; } } else { while (j >= increment && a[j - increment] < temp) //checking for Ascending order { a[j] = a[j - increment]; thread.sleep(200); repaint(); this.setThreadState(); j = j - increment; } } } catch(Exception e) { System.out.println("Exception occured" + e); } a[j] = temp; } if (increment == 2) { increment = 1; } else { increment *= (5.0 / 11); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bubbleSort() {\n boolean unordered = false;\n do {\n unordered = false;\n for (int i = 0; i < array.length - 1; i++) {\n if (((Comparable) array[i]).compareTo(array[i + 1]) > 0) {\n T temp = array[i + 1];\n array[i + 1] = array[i];\n array[i] = temp;\n unordered = true;\n }\n }\n } while (unordered);\n }", "public void bubbleSort() {\n\t\tint n = data.size();\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tfor (int j = 1; j < n - i; j++) {\n\t\t\t\tif (data.get(j - 1) > data.get(j)) {\n\t\t\t\t\tswap(j, j - 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "static int[] bubbleSort(int[] a) {\n int n = a.length;\n while(n > 0) {\n int newLastN = 0; // if no swap occurred in last step we won't need to run next iteration\n for (int i = 1; i < n; i++) {\n comparisonCount++;\n if (a[i - 1] > a[i]) {\n swapCount++;\n swap(a, i - 1, i);\n newLastN = i;\n }\n }\n n = newLastN;\n }\n return a;\n }", "@Test\n public void testBubbleSort() {\n BubbleSort<Integer> testing = new BubbleSort<>();\n\n testing.sort(array, new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return i1.compareTo(i2);\n }\n });\n\n checkArray(\"Bubble sort doesn't work!\", array);\n }", "public static void bubbleSortAlgo(int[] arr) {\n for(int i = 1; i<arr.length-1; i++){\n // inner loop to compare each element with it's next one in every iteration in one complete outer loop\n for(int j = 0; j<arr.length -1; j++){\n if(isSmaller(arr, j+1, j)){ // compares the jth element from it's next element\n swap(arr, j+1, j); // if ismaller condition is true swaps both the elements\n }\n }\n }\n \n }", "private void bubbleSort(T[] arr) {\n boolean swaps;\n for (int i = 0; i < n - 1; i++) { // since we always compare two elements, we will need to iterate up to (n - 1) times\n swaps = false;\n for (int j = 1; j < n - i; j++) // we reduce the inspected area by one element at each loop, because the largest element will already be pushed to the right\n if (arr[j].compareTo(arr[j - 1]) < 0) {\n swap(arr, j, j - 1); // the swap method is implemented further\n swaps = true;\n }\n if (!swaps) break; // we stop if there were no swaps during the last iteration\n }\n }", "public static void BubbleSort(int[] a) {\n\t int n = a.length;\n\t int temp = 0;\n\n\t for(int i = 0; i < n; i++) {\n\t for(int j=1; j < (n-i); j++) {\n\t if(a[j-1] > a[j]) {\n\t temp = a[j-1];\n\t a[j-1] = a[j];\n\t a[j] = temp;\n\t }\n\t }\n\t }\n\t}", "public static void main(String[] args) {\r\n int[] numbers = {25, 43, 29, 50, -6, 32, -20, 43, 8, -6};\r\n\t\r\n\tSystem.out.print(\"before sorting: \");\r\n\toutputArray(numbers);\r\n \r\n\tbubbleSort(numbers);\r\n\t\r\n\tSystem.out.print(\"after sorting: \");\r\n\toutputArray(numbers);\r\n }", "public static void bubbleSort(Array a) {\n int temp;\n for (int i = 0; i < a.length - 1; i++) { // for passes\n int flag = 0;\n for (int j = 0; j < a.length - 1 - i; j++) { // for iteration\n if (a.get(j) > a.get(j + 1)) {\n temp = a.get(j);\n a.set(j, a.get(j + 1));\n a.set(j + 1, temp);\n flag = 1;\n }\n }\n if (flag == 0) break; // if the list is already sorted\n }\n }", "public void bubbleSort(long [] a){\n\t\tint upperBound=a.length-1;\n\t\tint lowerBound =0;\n\t\tint swaps=0;\n\t\tint iterations=0;\n\t\twhile(upperBound>=lowerBound){\n\t\t\tfor(int i=0,j=1;i<=upperBound && j<=upperBound; j++,i++){\n\t\t\t\tlong lowerOrderElement = a[i];\n\t\t\t\tlong upperOrderElement = a[j];\n\t\t\t\titerations++;\n\t\t\t\tif(lowerOrderElement>upperOrderElement){ //swap positions\n\t\t\t\t\ta[i] = a[j];\n\t\t\t\t\ta[j]= lowerOrderElement;\n\t\t\t\t\tswaps=swaps+1;\n\t\t\t\t}\n\t\t\t\telse{ // sorted.\n\t\t\t\t\tcontinue;\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\tupperBound--;\n//\t\tSystem.out.println(\"upperBound:- \" +upperBound);\n//\t\tSystem.out.println(\"lowerBound:- \" +lowerBound);\n\t\t}displayArr(a);\n\t\t\n\t\tSystem.out.println(\"Total Swaps:- \" + swaps);\n\t\tSystem.out.println(\"Total Iterations:- \" + iterations);\n\t}", "public static void bubbleSort(int[] arr)\n\t{\n\t\tint len=arr.length;\n\t\tboolean swapped=true;\n\t\twhile(swapped){\n\t\t\tswapped=false;\n\t\t\tfor(int j=1;j<len;j++){\n\t\t\t\tif(arr[j-1]>arr[j]){\n\t\t\t\t\tint temp=arr[j-1];\n\t\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\t\tarr[j]=temp;\n\t\t\t\t\tswapped=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void insertionSort() {\n\t\tfor (int i = 1; i < numberOfElements; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\twhile (j > 0) {\n\t\t\t\tif (arr[j - 1] <= temp) {\n\t\t\t\t\tnumberOfComparisons++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumberOfComparisons++;\n\t\t\t\tarr[j] = arr[j - 1];\n\t\t\t\tnumberOfCopies++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j] = temp;\n\t\t}\n\t}", "public int[] bubbleSort(int[] a) {\r\n\t\t boolean sorted = false;\r\n\t\t int temp;\r\n\t\t while(!sorted) {\r\n\t\t sorted = true;\r\n\t\t for (int i = 0; i < a.length - 1; i++) {\r\n\t\t if (a[i] > a[i+1]) {\r\n\t\t temp = a[i];\r\n\t\t a[i] = a[i+1];\r\n\t\t a[i+1] = temp;\r\n\t\t sorted = false;\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\treturn a;\r\n\t\t}", "public static void main(String[] args)\n {\n int[] array=new int[5];\n Random ran=new Random();\n for(int i=0;i<array.length;i++)\n {\n //assign each item a value range from 0~99\n array[i]=ran.nextInt(100);\n }\n\n System.out.println(\"Before Insertion Sort: \"+Arrays.toString(array));\n insertionSort(array,array.length);\n System.out.println(\"After Insertion Sort : \"+Arrays.toString(array));\n\n }", "void bubbleSort(int arr[]) {\r\n\r\n int n = arr.length;\r\n boolean swapped;\r\n for(int i = 0; i < n-1; i++) { //denotes pass #\r\n for(int j = 0; j < n-i-1; j++) { //denotes element in the pass\r\n if(arr[j] > arr[j+1]) {\r\n //swapping of the element\r\n arr[j] += arr[j+1];\r\n arr[j+1] = arr[j] - arr[j+1];\r\n arr[j] -= arr[j+1];\r\n swapped = true;\r\n\r\n } //end of if block\r\n }//end of element checking loop\r\n //if no 2 elements were swapped by inner loop, then break\r\n if (swapped == false)\r\n break;\r\n }//end of pass loop\r\n }", "public void bubbleSort(int[] array){\n int last = array.length;\r\n // boolean to flag a swap\r\n boolean swap = true;\r\n // continue if a swap has been made\r\n while(swap){\r\n // assume no swaps will be done\r\n swap = false;\r\n // look for swaps\r\n for(int i = 0; i < last - 1; i++){\r\n // find a bigger value?\r\n if(array[i] > array[i+1]){\r\n // swap\r\n swap(array, i, i+1);\r\n // set flag to true\r\n swap = true;\r\n }\r\n }\r\n // move the last position tracker\r\n last--;\r\n }\r\n }", "public void bubbleSort(ArrayList <Comparable> list){\r\n\t\tsteps += 2; //init, check condition\r\n\t\tfor (int i = list.size() - 1; i >= 0; i --){\r\n\t\t\tsteps += 2; //init, check condition\r\n\t\t\tfor (int j = 0; j < i ; j ++){\r\n\t\t\t\tsteps += 5;\r\n\t\t\t\tif (list.get(j).compareTo(list.get(j + 1)) < 0){\r\n\t\t\t\t\tsteps += 2;\r\n\t\t\t\t\tswap(list, j, j + 1);\r\n\t\t\t\t\tsteps += 5;\r\n\t\t\t\t}\r\n\t\t\t\tsteps += 2;\r\n\t\t\t}\r\n\t\t\tsteps += 2;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Bubble Sort\");\r\n\t\tSystem.out.println();\r\n\t}", "public static void bubbleSort(int[] arr){\r\n \tfor(int i = 0; i< arr.length - 1;i++)\r\n \t{\r\n \t\tfor(int j = 0; j< arr.length - 1; j++)\r\n \t\t{\r\n \t\t\tif(arr[j] > arr[j + 1])\r\n \t\t\t{\r\n \t\t\t\tint temp = arr[j];\r\n \t\t\t\tarr[j] = arr[j + 1];\r\n \t\t\t\tarr[j + 1] = temp;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n }", "public static void bubbleSort(int[] a) {\n\t\tboolean loop;\n\t\tdo {\n\t\t\tloop = false;\n\t\t\tfor (int i = 0; i < a.length - 1; i ++) {\n\t\t\t\tif (a[i] > a[i + 1]) {\n\t\t\t\t\tint temp = a[i];\n\t\t\t\t\ta[i] = a[i + 1];\n\t\t\t\t\ta[i + 1] = temp;\n\t\t\t\t\tloop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (loop);\n\t}", "public static void bubbleSort(int[] arr){\n\n\t\tboolean swaps = true; //setting boolean swaps to true \n\t\tint l = arr.length; //varibale to hold the length of the array \n\n\t\twhile (swaps == true) { //goes through while swaps is true \n\n\t\t\tswaps = false; //setting swaps to false \n\n\t\t\tfor(int i = 0; i < l-1; i++) { //iterates through the length of the array \n\t\t\t\t\n\t\t\t\tif (arr[i + 1] < arr[i]) { //if the element on the right is less than the one on the left (54321)\n\n\n\t\t\t\t\tint temp = arr[i]; //holds the value of element at that index position \n\t\t\t\t\tarr[i] = arr[i+1]; //swaps the elments over \n\t\t\t\t\tarr[i+1] = temp; //moves onto the next element \n\n\t\t\t\t\tswaps = true; //as n-1, moves back and repeats to do the last element \n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void testbubbleSort_Sorted() {\r\n\t\tItem[] input = new Item[]{new Item(2),new Item(9),new Item(12),new Item(41),new Item(55)};\r\n\t\tobj.bubbleSort(input);\r\n\t\tassertTrue(expected[1].key == input[1].key);\r\n\t\tassertTrue(expected[2].key == input[2].key);\r\n\t\tassertTrue(expected[3].key == input[3].key);\r\n\t\tassertTrue(expected[4].key == input[4].key);\r\n\t}", "private void createArrays(){\n array1 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n array2 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n BubbleSort.listArrayElements(array1);\n BubbleSort.listArrayElements(array2);\n\n int[] array = new int[array1.length + array2.length];\n\n int i = 0, j = 0;\n for (int k = 0; k < array.length; k++){\n if(i > array1.length - 1){\n array[k] = array2[j];\n j++;\n } else if(j > array2.length - 1){\n array[k] = array1[i];\n i++;\n } else if (array1[i] < array2[j]){\n array[k] = array1[i];\n i++;\n } else {\n array[k] = array2[j];\n j++;\n }\n\n }\n BubbleSort.listArrayElements(array);\n\n\n }", "public void bubbleSort(ArrayList<Pokemon> p);", "public static void bubbleSort(int[] a) {\r\n boolean swapped; // keeps track of when array values are swapped \r\n int i; // a loop counter\r\n int temp; // catalyst variable for String swapping\r\n\r\n // Each iteration of the outer do loop is is one pass through the loop. \r\n // If anything was swapped, it makes another pass\r\n do {\r\n // set swapped to false before each pass\r\n swapped = false;\r\n\r\n // the for loop is a pass through the array to the second to last element\r\n for (i = 0; (i < a.length - 1); i++) {\r\n // if the two items are out of order see page 16 for String compareTo() \r\n if (a[i + 1] < (a[i])) {\r\n // swap the two items and set swapped to true \r\n temp = a[i];//catalyst variable assignment to item\r\n a[i] = a[i + 1];//copy second item to first item slot\r\n a[i + 1] = temp;//copy catalyst variable to second slot\r\n\r\n swapped = true; //something was swapped!\r\n\r\n } // end if\r\n } // end for\r\n\r\n // the outer loop will repeat if a swap was made – another passs\r\n } while (swapped);\r\n\r\n }", "public static void sortBubble(int[] tab) {\n boolean alreadySorted=false;\n int temp;\n int n=tab.length;\n int i=0;\n if(tab.length!=0){\n while (i<n-1 && !alreadySorted){\n alreadySorted=true;\n for (int j=0; j<n-1-i;j++){\n if (tab[j]>tab[j+1]){\n alreadySorted=false;\n temp=tab[j];\n tab[j]=tab[j+1];\n tab[j+1]=temp;\n }\n }\n i=i+1;\n }\n }\n}", "public void bubbleSort(){\n for(int i = arraySize -1; i > 1; i--){\n for(int j = 0; j < i; j++){\n // Use < to change it to Descending order\n if(theArray[j] > theArray[j+1]){\n swapValues(j, j+1);\n printHorizontalArray(i, j);\n }\n printHorizontalArray(i, j);\n }\n }\n }", "static void bubbleSort(int[] arr) {\n\t\tboolean swapped; //using swapped for optimization, inner loop will continue only if swapping is possible\n\t\tfor(int i=0;i<arr.length-1;i++) {\n\t\t\tswapped =false;\n\t\t\tfor(int j =0;j<arr.length-i-1;j++) {\n\t\t\t\tif(arr[j]>arr[j+1]) {\n\t\t\t\t\tint temp = arr[j+1]; \n\t\t arr[j+1] = arr[j]; \n\t\t arr[j] = temp;\n\t\t swapped = true;\n\t\t\t\t}\n\t\t\t\t// IF no two elements were \n\t // swapped by inner loop, then break \n\t\t\t\t if (swapped == false) \n\t\t break;\n\t\t\t}\n\t\t}\n\t\tfor(int a:arr) \n\t\t{ \n\t\t\tSystem.out.print(a+ \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "private void bubbleSort() {\r\n\r\n int n = leaderboardScores.size();\r\n int intChange;\r\n String stringChange;\r\n\r\n for (int i = 0 ; i < n - 1 ; i ++ ) {\r\n for (int j = 0 ; j < n - i - 1 ; j ++ ) {\r\n\r\n if (leaderboardScores.get(j) > leaderboardScores.get(j + 1)) {\r\n // swap arr[j+1] and arr[i]\r\n intChange = leaderboardScores.get(j);\r\n leaderboardScores.set(j, leaderboardScores.get(j + 1));\r\n leaderboardScores.set(j + 1, intChange);\r\n\r\n stringChange = leaderboardUsers.get(j);\r\n leaderboardUsers.set(j, leaderboardUsers.get(j + 1));\r\n leaderboardUsers.set(j + 1, stringChange);\r\n }\r\n\r\n }\r\n }\r\n }", "public void bubbleSort(int [] array) {\n\t\t\n\t\tfor(int i=0; i<array.length - 1; i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<array.length-i-1; j++) {\n\t\t\t\t\n\t\t\t\tif(array[j]>array[j+1]) {\n\t\t\t\t\t\n\t\t\t\t\tint temp = array[j];\n\t\t\t\t\tarray[j] = array[j+1];\n\t\t\t\t\tarray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}", "public void setBubbleSort() \n\t{\n\t\tint last = recordCount + NOT_FOUND; //array.length() - 1\n\n\t\twhile(last > RESET_VALUE) //last > 0\n\t\t{\n\t\t\tint localIndex = RESET_VALUE; \n\t\t\tboolean swap = false;\n\n\t\t\twhile(localIndex < last) \n\t\t\t{\n\t\t\t\tif(itemIDs[localIndex] > itemIDs[localIndex + 1]) \n\t\t\t\t{\n\t\t\t\t\tsetSwapArrayElements(localIndex);\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t\t\tlocalIndex++;\n\t\t\t}\n\n\t\t\tif(swap == false) \n\t\t\t{\n\t\t\t\tlast = RESET_VALUE;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tlast = last + NOT_FOUND;\n\t\t\t}\n\n\t\t}//END while(last > RESET_VALUE)\n\t\treturn;\n\t}", "static void BubbleSort(int[] arr){\n for(int i = 0; i< arr.length-1;i++){\n int numberOfSwaps = 0;\n for(int j = 0; j<arr.length-i-1;j++){\n if(arr[j]>arr[j+1]){\n Swap(arr, j, j+1);\n numberOfSwaps++;\n }\n }\n if(numberOfSwaps == 0){\n break;\n }\n }\n }", "public static void main(String[] args) {\n // auxIntArr is found in AuxPkg.AuxFuncs\n int[] arr = auxIntArr.clone();\n\n System.out.println(\"BubbleSort:\");\n System.out.print(\"Before: \");\n printIntArr(arr);\n\n // Main loop where the index will grow smaller as the array gets sorted\n for( int lastUnsortedIdx = arr.length -1;\n lastUnsortedIdx > 0;\n lastUnsortedIdx--)\n {\n // Nested loop for bubbling highest values to the next sorted slot\n // in the main loop\n for(int idx = 0; idx < lastUnsortedIdx; idx++)\n {\n if(arr[idx] > arr[idx+1])\n {\n swap(arr, idx, idx+1);\n }\n }\n }\n\n System.out.print(\"After: \");\n printIntArr(arr);\n System.out.println();\n }", "public static void main(String[] args) {\n\r\n\t\tint[] a;\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.bubble(a);\r\n\r\n\t\tSystem.out.println(\"BubbleSort: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.selection(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nSelection: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.insertion(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nInsertion: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.mergeSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nMerge: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.quickSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.qs(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick1: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args)\n {\n Integer[] array = new Integer[50];\n Random rnd = new Random();\n for (int i = 0; i < array.length; i++)\n array[i] = rnd.nextInt(100);\n\n System.out.println(\"array before sorted: \" + Arrays.toString(array));\n\n insertionSort(array);\n\n // check if it is really sorted now\n for (int i = 0; i < array.length - 1; i++ )\n {\n if (array[i] > array[i + 1])\n {\n System.out.println(\"something wrong\");\n return;\n }\n }\n\n System.out.println(\"array sorted: \" + Arrays.toString(array));\n }", "public static <T extends Comparable<T>> void myBubbleSort(T[] arrayToSort) {\n boolean isNotSorted = true;\n while(isNotSorted) {\n isNotSorted = false;\n for(int i = 0; i < arrayToSort.length - 1; i++)\n if(arrayToSort[i].compareTo(arrayToSort[i + 1]) > 0) {\n T value = arrayToSort[i];\n arrayToSort[i] = arrayToSort[i + 1];\n arrayToSort[i + 1] = value;\n isNotSorted = true;\n }\n }\n }", "public static void bubbleSort(int[] array) {\n boolean swapped = true;\n for (int i = 0; i < array.length && swapped != false; i++) {\n swapped = false;\n for (int j = 1; j < (array.length - i); j++) {\n if (array[j - 1] > array[j]) {\n swap(array, j, j - 1);\n swapped = true;\n }\n }\n }\n }", "@Test\n public void testPrueba1(){\n \n System.out.println(\"Prueba 1\");\n int[] input = new int[]{1, 2, 3, 5, 4};\n int[] expectedResult = new int[]{1, 2, 3, 4, 5};\n int[] actualResult = BubbleSort.sortBasic(input);\n assertArrayEquals(expectedResult, actualResult);\n \n }", "public void myBubbleSort(int array[]) {\n for (int i = 0; i < array.length - 1; i++) {\n //Iterate through the array to the index to the left of i\n for (int j = 0; j < array.length - i - 1; j++) {\n //Check if the value of the index on the left is less than the index on the right\n if (array[j] > array[j + 1]) {\n //If so, swap them.\n int temp = array[j];\n array[j] = array[j + 1];\n array[j + 1] = temp;\n\n }\n }\n }\n }", "public static void BubbleSort(int[] input) {\r\n for (int i = input.length - 1; i > 0; i--) {\r\n for (int j = 0; j < i; i++) {\r\n if (input[j] > input[j + 1]) {\r\n swap(input, j, j + 1);\r\n }\r\n }\r\n }\r\n }", "private static Integer[] optimisedBubbleSort(Integer[] n) {\n int len = n.length - 1;\n boolean swapped = false;\n for (int i = 0; i < len; i++) {\n for (int j = 0; j < len - i; j++) {\n if (n[j] > n[j + 1]) {\n int temp = n[j];\n n[j] = n[j + 1];\n n[j + 1] = temp;\n swapped = true;\n }\n }\n if(swapped == false) {\n break;\n }\n }\n return n;\n }", "public void bubbleSort() {\n \tfor (int i = 0; i < contarElementos()-1; i++) {\n\t\t\tboolean intercambiado= false;\n\t\t\tfor (int j = 0; j < contarElementos()-1; j++) {\n\t\t\t\tif (encontrarNodoEnElndice(j).getElemento().compareTo(encontrarNodoEnElndice(j+1).getElemento())>0) {\n\t\t\t\t\tintercambiar(j, j+1);\n\t\t\t\t\tintercambiado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!intercambiado) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }", "public static int[] bubbleSort(int array[]) {\n \t\t// TODO S1 implements bubble sort\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tfor (int j = 0; j < array.length - i - 1; j++) {\n\t\t\t\tif (array[j] > array[j + 1]) {\n\t\t\t\t\tint smaller = array[j + 1];\n\t\t\t\t\tint larger = array[j];\n\t\t\t\t\tarray[j] = smaller;\n\t\t\t\t\tarray[j + 1] = larger;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t return array;\n \t}", "public static void main(String[] args) {\n \n int swap = 0;\n \n Scanner scan = new Scanner(System.in);\n System.out.print(\"Kaç elemanlı = \");\n int max = scan.nextInt();\n\n int[] toSortArray = new int[max];\n\n toSortArray[0] = 0;\n\n for (int i = 1; i < max; i++) {\n\n toSortArray[i] = (int) (Math.random() * 100);\n toSortArray[0]++; //holds the number of values in the array;\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp;\n index = index / 2;\n\n }\n\n\t\t\t//Hence the heap is created!\n }\n\n System.out.println(\"The array to be sorted is:\");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n\n }\n\n System.out.println(\" | \");\n\n\t\t//Start\n\t\t//Let's Sort it out now!\n while (toSortArray[0] > 0) {\n\n int temp = toSortArray[1];\n toSortArray[1] = toSortArray[toSortArray[0]];\n toSortArray[toSortArray[0]] = temp;\n\n for (int i = 1; i < toSortArray[0]; i++) {\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp1 = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp1;\n index = index / 2;\n swap = swap+1;\n\n }\n\n }\n\n toSortArray[0]--;\n\n }\n\n\t\t//End\n System.out.println(\"The sorted array is: \");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n }\n\n System.out.println(\" | \");\n System.out.println(max + \" eleman için \"+ swap + \" adet eleman yerdeğiştirildi. \" );\n\n }", "@Test(timeout = SHORT_TIMEOUT)\n public void testAdaptiveInsertionSort() {\n //Test adaptiveness of completely ordered sort\n\n //Generate sorted array\n toSort = randArrDuplicates(MAX_ARR_SIZE, new Random(2110));\n Arrays.parallelSort(toSort, comp);\n sortedInts = cloneArr(toSort);\n\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n int numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n //Should require only 1 pass through array, for n-1 comparisons\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= MAX_ARR_SIZE - 1);\n\n //Check adaptiveness with 1 item out-of-order\n\n //Set up list\n toSort = new IntPlus[6];\n for (int i = 0; i < toSort.length; i++) {\n toSort[i] = new IntPlus(2 * i);\n }\n toSort[3] = new IntPlus(-1);\n\n sortedInts = cloneArr(toSort);\n\n /*\n Initial Array: [0, 2, 4, -1, 8, 10]\n Should require 7 comparisons to sort\n */\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= 7);\n }", "public static int[] bubbleSort(int[] values) {\n int temp;\n boolean nextPass = true;\n \n for (int i = 1; i < values.length && nextPass; i++) { // terminate loop if at end of array or a new pass is not needed\n nextPass = false;\n for (int j = 0; j < values.length - i; j++) {\n if (values[j] > values[j + 1]) { // current value greater than the next? swap values\n temp = values[j];\n values[j] = values[j + 1];\n values[j + 1] = temp;\n nextPass = true; \n }\n }\n }\n \n return values;\n }", "public static void main(String[] args) {\n\t\t\n int array[] = {20,50,10,43,543,-43,-42,-245,5,21,5,1010};\n \n for(int firstUnsortedIndex = 1; firstUnsortedIndex < array.length; firstUnsortedIndex++) {\n \t\n \tint newElement = array[firstUnsortedIndex]; //storing the element of the unsorted array temporary to newElement\tin case we need to overwrite\n \n \tint i;\n \t//we want to keep looking for the insertion position as long as we havent hit the front of the array\n \tfor(i = firstUnsortedIndex; (i > 0 && array[i-1] > newElement); i--) {\n \t\tarray[i] = array[i-1];\n \t}\n \t\n \tarray[i] = newElement;\n }\n \n printer(array);\n \n\t}", "public static void bubbleSort(int[] arr) {\r\n for (int i = 0; i < arr.length; i++) {\r\n boolean swapped = false;\r\n for (int j = 1; j < arr.length - i; j++) {\r\n if (arr[j] < arr[j - 1]) {\r\n swap(arr, j, j - 1);\r\n swapped = true;\r\n }\r\n }\r\n if (!swapped) {\r\n break;\r\n }\r\n }\r\n }", "public static void bubbleSort() {\r\n\t\tfor(int i = nodeArrList.size() -1; i > 0; i--) {\r\n\t\t\tfor(int j = 0; j < i; j++) {\r\n\t\t\t\tif(nodeArrList.get(j).frequency > nodeArrList.get(j +1).frequency) {\r\n\t\t\t\t\tHuffmanNode temp = nodeArrList.get(j);\r\n\t\t\t\t\tnodeArrList.set(j, nodeArrList.get(j + 1));\r\n\t\t\t\t\tnodeArrList.set(j + 1, temp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void insertionSort(int[] arr) {\n //write your code here\n for(int i=1;i<arr.length;i++) {\n for(int j=i-1;j>=0;j--) {\n if(isGreater(arr, j, j+1))\n swap(arr, j, j+1);\n else\n break;\n }\n }\n}", "void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }", "public void bubbleSort(ArrayList <Integer> list){\n System.out.println();\n System.out.println(\"Bubble Sort\");\n System.out.println();\n\n steps = 0;\n for (int outer = 0; outer < list.size() - 1; outer++){\n for (int inner = 0; inner < list.size()-outer-1; inner++){\n steps += 3;//count one compare and 2 gets\n if (list.get(inner)>(list.get(inner + 1))){\n steps += 4;//count 2 gets and 2 sets\n int temp = list.get(inner);\n list.set(inner,list.get(inner + 1));\n list.set(inner + 1,temp);\n }\n }\n }\n }", "public static void bubbleSort(String [] list1)\r\n\t{\r\n\t\t\r\n\t String temp;\r\n\t int swap=1000;\r\n\t while(swap>0) \r\n\t {\r\n\t \tswap=0;\r\n\t \tfor(int outside=0; outside<list1.length-1; outside++)\r\n\t \t{\r\n\t \t\tif(list1[outside+1].compareTo(list1[outside])<0)\r\n\t \t\t{\r\n\t \t\t\tswap++;\r\n\t \t\t\ttemp=list1[outside];\r\n\t \t\t\tlist1[outside]=list1[outside+1];\r\n\t \t\t\tlist1[outside+1]=temp;\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t \r\n\t}", "@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }", "public static int[] bubbleSort(int[] inputArray) {\n boolean done = false;\n\n for (int i = 0; i < inputArray.length && !done; i++) {\n done = true;\n for (int j = 0; j < inputArray.length - i - 1; j++) {\n if (inputArray[j] > inputArray[j + 1]) {\n int temp = inputArray[j];\n inputArray[j] = inputArray[j + 1];\n inputArray[j + 1] = temp;\n done = false;\n }\n }\n }\n return inputArray;\n\n }", "public static int[] BubbleSort(int[] array){\n int j;\n int temp;\n boolean flag=false;\n while ( flag )\n {\n flag= false;\n for( j=0;j<array.length-1;j++ )\n {\n if ( array[j] < array[j+1] )\n {\n temp = array[j];\n array[j] = array[j+1];\n array[j+1] = temp;\n flag = true;\n }\n }\n }\n return array;\n }", "public static int[] bubleSort(int[] elements) {\n\t\tif (elements.length == 0 || elements.length == 1)\n\t\t\treturn elements;\n\t\t\n\t\tboolean swapped = true;\n\t\t\n\t\twhile (swapped) {\n\t\t\tswapped = false;\n\t\t\tfor (int i=0;i < elements.length-1;i++) {\n\t\t\t\tif (elements[i] > elements[i+1]) {\n\t\t\t\t\tint temp = elements[i];\n\t\t\t\t\telements[i] = elements[i+1];\n\t\t\t\t\telements[i+1] = temp;\n\t\t\t\t\tswapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn elements;\n\t}", "public void printSortedByBubbleSort(int[] array){\r\n\t\tint temp;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = 0; j < array.length - 1; j++) {\r\n\t\t\t\tif(array[j] > array[j + 1]){\r\n\t\t\t\t\ttemp = array[j];\r\n\t\t\t\t\tarray[j] = array[j + 1];\r\n\t\t\t\t\tarray[j + 1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nSorted by BubleSort: \");\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tSystem.out.print(array[i] + \" \");\r\n\t\t}\r\n\t}", "public static <T extends Comparable<T>> void bubbleSort(T[] arrayToSort) {\n for(int i = 0; i < arrayToSort.length - 1; i++)\n for(int j = arrayToSort.length - 1; j > i + 1; j--)\n if(arrayToSort[j].compareTo(arrayToSort[j - 1]) < 0) {\n T value = arrayToSort[j];\n arrayToSort[j] = arrayToSort[j - 1];\n arrayToSort[j - 1] = value;\n }\n }", "public static void bubbleSort(int [] arr){\n int temp = 0; //temporary variable\n boolean flag = false; //mark if any reversion has happened\n for (int i = 0; i < arr.length - 1;i++){\n\n for (int j = 0; j < arr.length - 1-i; j++) {\n //if the previous number is bigger than the latter, reverse\n if (arr[j] > arr[j + 1]) {\n flag = true;\n temp = arr[j];\n arr[j] = arr[j + 1];\n arr[j + 1] = temp;\n }\n }\n\n //System.out.printf(\"After the %d round of sorting\",i+1);\n //System.out.println(Arrays.toString(arr));\n\n if(!flag){\n break;\n } else {\n flag = false;\n //reset flag to true to do the next check\n }\n }\n }", "public static void Insertionsort(int a[]) \n\t { \n\t int n = a.length; \n\t for (int i=1; i<n; ++i) \n\t { \n\t int key = a[i]; \n\t int j = i-1;\n\t while (j>=0 && a[j] > key) \n\t { \n\t a[j+1] = a[j]; \n\t j = j-1; \n\t } \n\t a[j+1] = key; \n\t } \n\t }", "public static int[] bubble(int[] arr)\n {\n int l=arr.length;\n\n for (int i = 0; i <l-1; i++)\n {\n for (int j=0; j<l-1-i; j++)\n {\n if (arr[j] > arr[j + 1])\n {\n swap(j, j+ 1, arr);\n }\n }\n }\n return arr;\n }", "public static void main(String[] args) {\n\t\tBubbleSort bs = new BubbleSort();\n\t\tint[] arr = {9, 1, 5, 8, 3, 7, 6, 4, 2};\n//\t\tint[] arr = {2, 1, 3, 4, 5, 6, 7, 8, 9};\n\t\t\n//\t\tbs.bubbleSort0(arr);\n//\t\tbs.bubbleSortNormal(arr);\n\t\tbs.bubbleSortImporve(arr);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Bubble Sort\");\r\n\t\tint[] arr1 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr1));\r\n\t\tBubble.sort(arr1);\r\n\t\tSystem.out.println(Arrays.toString(arr1));\r\n\t\t\r\n\t\tSystem.out.println(\"Select Sort\");\r\n\t\tint[] arr2 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr2));\r\n\t\tSelect.sort(arr2);\r\n\t\tSystem.out.println(Arrays.toString(arr2));\r\n\t\t\r\n\t\tSystem.out.println(\"Insert Sort\");\r\n\t\tint[] arr3 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr3));\r\n\t\tInsert.sort(arr3);\r\n\t\tSystem.out.println(Arrays.toString(arr3));\r\n\t\t\r\n\t\tSystem.out.println(\"Quick Sort\");\r\n\t\tint[] arr4 = {8,3,2,1,4,6,5,7};\r\n\t\tSystem.out.println(Arrays.toString(arr4));\r\n\t\tQuickSort.sort(arr4, 0, arr4.length-1);\r\n\t\tSystem.out.println(Arrays.toString(arr4));\r\n\t\t\r\n\t\tbyte b = -127;\r\n\t\tb = (byte) (b << 1);\r\n\t\tSystem.out.println(b);\r\n\t}", "public void insertionSort(int[] arr) \n {\n int i, j, newValue;\n try\n { \n //looping over the array to sort the elements\n for (i = 1; i < arr.length; i++) \n {\n thread.sleep(100);\n newValue = arr[i];\n j = i;\n if(!orderPanel) //condition for Descending order\n {\n while (j > 0 && arr[j - 1] > newValue) \n {\n arr[j] = arr[j - 1]; // swapping the elements \n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n else // condition for Ascending order\n {\n while (j > 0 && arr[j - 1] < newValue) \n {\n arr[j] = arr[j - 1];\n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n arr[j] = newValue;\n \n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e); \n }\n \n \n }", "public static void bubbleSort(String[] words) {\n \n for(int i=0; i< words.length-1; i++) {\n for(int j=i+1; j<words.length; j++) {\n if(words[j].compareTo(words[i]) < 0) {\n String s = words[j];\n words[j] = words[i];\n words[i] = s;\n }\n } \n }\n }", "public void recursiveBubbleSort(int[] numbers) {\n boolean sorted = false;\n int posA;\n int posB;\n\n for(int i = 0; i < numbers.length - 1; i++) {\n if(numbers[i] > numbers[i + 1] && numbers[i] != numbers.length) {\n posA = numbers[i];\n posB = numbers[i + 1];\n numbers[i] = posB;\n numbers[i + 1] = posA;\n sorted = true;\n }\n }\n if (sorted) {\n recursiveBubbleSort(numbers);\n }\n }", "public void insertionSort(int[] nums) {\n\t\tif(nums.length<=1) return ;\n\t\tfor(int i=1;i<nums.length;i++) {\n\t\t\tint j=i;\n\t\t\twhile( j>=1 && less(nums[j],nums[j-1])) {\n\t\t\t\tswap(nums,j,j-1);\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void sort(int[] demo) {\n\t\tint temp;\r\n\t\tfor(int gap = 5;gap > 0;gap /= 2){\r\n\t\t\tfor(int i = gap;i < demo.length;i++){\r\n\t\t\t\tfor(int j = i - gap;j >= 0;j -= gap){\r\n\t\t\t\t\tif (demo[j] > demo[j + gap]) {\r\n\t\t\t\t\t\ttemp =demo[j];\r\n\t\t\t\t\t\tdemo[j] =demo[j + gap];\r\n\t\t\t\t\t\tdemo[j + gap] = temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(Arrays.toString(demo));\r\n\t}", "public static void main(String[] args) {\n\t\tint maxSize = 100;\n\t\tArray array = new Array(maxSize);\n\t\tarray.insert(77);\n\t\tarray.insert(99);\n\t\tarray.insert(44);\n\t\tarray.insert(55);\n\t\tarray.insert(22);\n\t\tarray.insert(88);\n\t\tarray.insert(11);\n\t\tarray.insert(00);\n\t\tarray.insert(66);\n\t\tarray.insert(33);\n\t\t\n\t\tarray.display();\n\t\tSystem.out.println();\n\t\tarray.bubblesort();\n\t\tarray.display();\n\t}", "public static void main(String[] args) {\n\r\n\t\tint[] a = { 1, 8, 20, 5, 4, 9 };\r\n\t\tinsertSort(a);\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t}", "static void InsertionSort(int[] arr){\n int inner, temp;\n for(int outer = 1; outer<arr.length;outer++){\n temp = arr[outer];\n inner = outer;\n while (inner>0 && arr[inner-1]>temp){\n arr[inner] = arr[inner-1];\n inner--;\n }\n arr[inner]=temp;\n }\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "public static int[] bubbleSortBasic(int [] arrayToSort , SorterObject results)\n {\n \t// Create a copy of array than was send\n int [] arr = Arrays.copyOf(arrayToSort,arrayToSort.length);\n // Start the timer\n long startTime = System.currentTimeMillis(); \n // Variable used for swaping elements\n int temp = 0; \n // Outer loop\n for(int i=0; i < arr.length-1; i++)\n { \n // inner loop\n for(int j=0; j < arr.length-1; j++)\n { \n \t// Increase number of comparisons\n \tresults.numberOfComparisons++;\n if(arr[j] > arr[j+1])\n { \n\t temp = arr[j]; \n\t arr[j] = arr[j+1]; \n\t arr[j+1] = temp; \n\t // Increase number of swaps\n\t results.numberOfSwaps++;\n }\n }\n } \n // Stop the timer\n long stopTime = System.currentTimeMillis();\n // Calculate time \n long elapsedTime = stopTime - startTime;\n // Save time elapsed in global results object\n results.time = elapsedTime;\n // Return sorted array\n return arr;\n \n }", "public static void main(String[] args) {\n\t\tint[] sortArray = new int[] {1,-5,10,2,8};\r\n\t\tBubbleSort.sort(sortArray);\r\n\t\tfor(int elm:sortArray){\r\n\t\t\tSystem.out.println(\"Sorted Array \"+elm);\r\n\t\t}\r\n\r\n\r\n\t}", "void sort (int [] items) {\r\n\tint length = items.length;\r\n\tfor (int gap=length/2; gap>0; gap/=2) {\r\n\t\tfor (int i=gap; i<length; i++) {\r\n\t\t\tfor (int j=i-gap; j>=0; j-=gap) {\r\n\t\t \t\tif (items [j] <= items [j + gap]) {\r\n\t\t\t\t\tint swap = items [j];\r\n\t\t\t\t\titems [j] = items [j + gap];\r\n\t\t\t\t\titems [j + gap] = swap;\r\n\t\t \t\t}\r\n\t \t}\r\n\t }\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\tint[] nums={1,3,7,2,5,9};\n\t\tint[] sorted=bubbleSort(nums);\n\t\t\n\t\tprint(sorted);\n\n\t}", "void bubblesort(int arr[],int n)\n {\n for(int i=0;i<n;i++)\n {\n for(int j=0;j<n-1;j++) //after its 1st iteration we have our maximum value sorted\n {\n if(arr[j]>arr[j+1]) // if value at present index is > the next index value then its swap the value \n {\n int temp=arr[j];\n arr[j]=arr[j+1];\n arr[j+1]=temp;\n }\n }\n }\n }", "private static void insertionSortArray2(int[] arr) {\n\n int key,j;\n\n for(int index=1;index<arr.length;index++){\n\n key=arr[index];\n\n j=index-1;\n\n while(j>=0 && arr[j]>key){\n arr[j+1]=arr[j];\n j--;\n }\n arr[j+1]=key;\n }\n\n\n }", "public static void insertSort (int array[])\n {\n for (int i = 1; i < array.length; ++i)\n {\n int key = array[i];\n int j = i -1;\n\n while(j >= 0 && array[j] > key)\n {\n array[j + 1] = array[j];\n j = j - 1;\n }\n array[j+1] = key;\n }\n }", "static void sort(int[] a)\n {\n for ( int j = 1; j<a.length; j++)\n {\n int i = j - 1;\n while(i>=0 && a[i]>a[i+1])\n {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n i--;\n }\n }\n }", "static int[] Bubble_sort(int[] input) {\n\t\t//int n=input.length;\t\t\t\t\t//length of the array\n\t\tfor(int i=0;i<input.length;i++)\n\t\t{\t\t\t\t\t\t\t\t\n\t\t\tint pos=0;\t\t\t//setting the first element as the Max element\n\t\t\tint max=input[pos];\n\t\t\tfor(int j=0;j<input.length-i;j++)\n\t\t\t{\t\t\t\t\t//traversing the array to find the max element\n\t\t\t\tif(input[j]>max)\n\t\t\t\t{\n\t\t\t\t\tpos=j;\n\t\t\t\t\tmax=input[pos];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t//swapping the Max element with input.length-i-1 position\n\t\t\tinput[pos]=input[input.length-i-1];\n\t\t\tinput[input.length-i-1]=max;\n\t\t}\n\t\treturn input;\n\t}", "public static void randomArraySorts() {\n int[] randomArr = new int[1000];\n for (int i = 0; i < randomArr.length; i++) {\n randomArr[i] = (int) (Math.random() * 5000 + 1);\n }\n\n // Heap Sort of random array\n int arr[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr[i] = randomArr[i];\n }\n\n HeapSort hs = new HeapSort();\n\n System.out.println(\"Given Array: \");\n hs.printArray(arr);\n\n long start = System.currentTimeMillis();\n hs.sort(arr);\n long end = System.currentTimeMillis();\n long time = end - start;\n\n System.out.println(\"Heap Sorted Array: \");\n hs.printArray(arr);\n System.out.println(\"Heap Sort Time: \" + time);\n\n // Merge Sort of random array\n System.out.println();\n int arr2[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr2[i] = randomArr[i];\n }\n\n MergeSort ms = new MergeSort();\n\n System.out.println(\"Given Array: \");\n ms.printArray(arr2);\n\n start = System.currentTimeMillis();\n ms.sort(arr2, 0, arr.length - 1);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Merge Sorted Array: \");\n ms.printArray(arr2);\n System.out.println(\"Merge Sort Time: \" + time);\n\n // Insert Sort of random array\n System.out.println();\n int arr3[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr3[i] = randomArr[i];\n }\n\n System.out.println(\"Given Array: \");\n print(arr3, arr3.length);\n\n start = System.currentTimeMillis();\n insertSort(arr3);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Insert Sorted Array: \");\n print(arr3, arr3.length);\n System.out.println(\"Insert Sort Time: \" + time);\n }", "private void insertionSort(T[] arr) {\n for (int i = 1; i < n; i++)\n for (int j = i; j > 0 && arr[j].compareTo(arr[j - 1]) < 0; j--) // we create the variable j to shift the element\n swap(arr, j, j - 1);\n }", "public static int[] insertionSort(int[] elements) {\n\t\tif (elements.length == 0 || elements.length == 1)\n\t\t\treturn elements;\n\t\t\n\t\tfor (int i=1;i < elements.length;i++) {\n\t\t\tint temp = elements[i];\n\t\t\tfor (int j=i-1;j >= 0;j--) {\n\t\t\t\tif (temp < elements[j]) {\n\t\t\t\t\telements[j+1] = elements[j];\n\t\t\t\t\telements[j] = temp;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn elements;\n\t}", "public void insertionSort(int[] nums) {\n for (int i = 1; i < nums.length; i++) {\n // Hold the current element which is processed\n int current = nums[i];\n int j = i;\n\n // Trace backwards and find a place to insert current by shifting elements\n // towards the right\n while (j - 1 >= 0 && nums[j - 1] > current) {\n nums[j] = nums[j - 1];\n j--;\n }\n\n // j is the right place to insert current\n nums[j] = current;\n }\n\n }", "private static void insertionSortArray(int[] arr) {\n\n int key,index;\n for( index=1;index<arr.length;index++){\n key=arr[index];\n for(int j=index-1; j>=0;j--){\n if(key<arr[j]){\n arr[index]=arr[j]; //swap\n arr[j]=key;\n index--; //since a[i] & a[j] are swapped, index of key(i) has to changed\n }else {\n break;\n }\n }\n }\n\n }", "public static void main(String[] args) {\n\n\t\tint[] a= {10,9,7,13,2,6,14,20};\n\t\tSystem.out.println(\"before sort\"+Arrays.toString(a));\n\t\tfor(int k=1;k<a.length;k++) {\n\t\t\tint temp=a[k];\n\t\t\tint j=k-1;\n\t\t\t\n\t\t\twhile(j>=0 && temp<=a[j]) {\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\tj=j-1;\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t}\n\n\t\t\n\t\tSystem.out.println(\"After sort\"+Arrays.toString(a));\n\t\t\n\t\tSystem.out.println(\"print uing for loop\");\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.print(a[i]+\"\");\n\t\t}\n\t}", "public static void bubbleSort(int arr[], int n)\n {\n for (int i = 0; i < n - 1; i++) { \n\t\t\tfor (int j = 0; j < n - i - 1; j++) { \n\t\t\t\tif (arr[j] > arr[j + 1]) { \n\t\t\t\t\tint temp = arr[j]; \n\t\t\t\t\tarr[j] = arr[j + 1]; \n\t\t\t\t\tarr[j + 1] = temp; \n\t\t\t\t} \n\t\t\t} \n\t\t} \n }", "public static int[] bubbleSort(int[] arr, int n){\n for(int j=1; j<n; j++) {\n for (int i = 1; i < n; i++) {\n if (arr[i - 1] > arr[i]) {\n int temp = arr[i - 1];\n arr[i - 1] = arr[i];\n arr[i] = temp;\n }\n }\n }\n return arr;\n }", "public void sortArray(){\n\t\tfor (int i=0; i<population.length;i++){\n\n\t\t\tfor (int j=0; j<population.length-i-1;j++){\n\n\t\t\t\tif(population[j].computeFitness()>population[j+1].computeFitness()) {\n\t\t\t\t\t//swap their positions in the array\n\t\t\t\t\tChromosome temp1 = population[j];\n\t\t\t\t\tpopulation[j] = population[j+1];\n\t\t\t\t\tpopulation[j+1] = temp1;\n\t\t\t\t}//end if\n\n\t\t\t}//end j for\n\n\t\t}//end i for\n\t}", "public static void main(String[] args) {\r\n\t\tint arr[] = {1,0,5,6,3,2,3,7,9,8,4};\r\n\t\tint temp;\r\n\t\t\r\n\t\tfor(int i = 0; i < 10; i ++) {\r\n\t\t\tfor(int j = 0; j < 10 - i; j ++) {\r\n\t\t\t\tif(arr[j] > arr[j+1]){\r\n\t\t\t\t\ttemp = arr[j+1];\r\n\t\t\t\t\tarr[j+1] = arr[j];\r\n\t\t\t\t\tarr[j] = temp;\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < 11; i ++) {\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t}", "public int[] bubbleSortInt(int[] input){\r\n\t\tfor(int i=0;i<input.length;i++){\r\n\t\t\tfor(int j=i+1;j<input.length;j++){\r\n\t\t\t\tif(input[i]>input[j]){\r\n\t\t\t\t\tinput[i]=input[i]+input[j];\r\n\t\t\t\t\tinput[j]=input[i]-input[j];\r\n\t\t\t\t\tinput[i]=input[i]-input[j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn input;\r\n\t}", "void InsertionSort(int a[])\n {\n int i,j;\n\n for( j=1;j<a.length;j++)\n {\n int key =a[j];\n i=j-1;\n\n\n while(i>=0 && a[i]>key)\n {\n a[i+1]=a[i];\n i=i-1;\n }\n a[i+1]=key;\n\n }\n\n }", "public static void getBubbleSort(int range) {\n\n Integer[] number = GetRandomArray.getIntegerArray(range);\n\n //main cursor to run across array\n int pivot_main = 0;\n\n //secondary cursor to run of each index of array\n int pivot_check = 0;\n\n //variable to hold current check number\n int check_num = 0;\n\n //run loop for array length time\n for (int i = number.length; i > 0; i--) {\n\n //set cursor to first number\n pivot_main = number[0];\n\n //loop size decreases with main loop (i - 1234 | j - 4321)\n for (int j = 0; j < i - 1; j++) {\n\n //set cursor to next number in loop\n pivot_check = j + 1;\n\n //get number at above cursor\n check_num = number[j + 1];\n\n //check if number at current cursor is less than number at main cursor\n if (check_num < pivot_main) {\n //swap there position\n number[pivot_check] = pivot_main;\n number[j] = check_num;\n }\n\n //check if number at current cursor is greater than number at main cursor\n if (check_num > pivot_main) {\n //transfer current number to main cursor\n pivot_main = check_num;\n }\n }\n System.out.println(Arrays.toString(number));\n }\n }", "public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }", "public void insertionSort (Integer [] inNums)\n\t{\n\t\tnums = inNums.clone();\n\t\tfor (int i=0; i<nums.length; i++)\n\t\t{\n\t\t\tfor (int j=i; j>0; j--)\n\t\t\t{\n\t\t\t\t//System.out.println (\"i=\"+i+\"; j=\"+j);\n\t\t\t\tprint ();\n\t\t\t\t//if (nums[j] < nums[j-1])\n\t\t\t\tif (nums[j].compareTo (nums[j-1]) < 0)\n\t\t\t\t{\n\t\t\t\t\ttemp = nums[j-1];\n\t\t\t\t\tnums [j-1] = nums[j];\n\t\t\t\t\tnums[j]=temp;\n\t\t\t\t}\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}", "public static void InsertationSort(int[] data)\n {\n int key;\n // loop for select values from the array\n for(int i = 1; i <data.length;i++)\n {\n // key= select the value of index [i]\n key = data[i];\n // select the value that is Previous of the key to compare with.\n int j = i -1 ;\n // loop for comparing and sort, change the order of the values.\n while(j >= 0 && key < data[j])\n {\n data[j+1]=data[j];\n j--;\n }\n data[j+1]=key;\n }\n }", "static double [] insertionSort (double a[]){\r\n //todo: implement the sort\r\n \tif(a==null){ //could be length\r\n \t\tSystem.out.print(\"Array empty\");\r\n \t\treturn null;\r\n \t}\r\n \tfor(int i = 1; i <a.length; i++) {\r\n \t\tdouble current = a[i];\r\n \t\tint j = i;\r\n \t\twhile(j>0 && a[j-1]> current) {\r\n \t\t\ta[j] =a[j-1];\r\n \t\t\tj--;\r\n \t\t} \r\n \t\ta[j]=current;\r\n \t}\r\n \treturn a;\r\n }", "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t int s = in.nextInt();\n\t int[] ar = new int[s];\n\t \n\t for(int i=0;i<s;i++){\n\t ar[i]=in.nextInt(); \n\t }\n\t \n\t long start = System.nanoTime();\n\t sort(ar);\n\t long end = System.nanoTime();\n\t \n\t long duration = (end-start);\n\t \n\t \n\t \n\t\tSystem.out.println(\"The Insertion sort was completed in \"+duration +\" nanoseconds\");\n\t\tprintArray(ar);\n\t}", "public static void bubble(int [] sortThis)\n\t{\n\t\tint temp =0;\n\t\tfor(int i = 0; i < sortThis.length; i ++)\n\t\t{\n\t\t\tfor(int j = 0; j <sortThis.length-1; j ++)\n\t\t\t{\n\t\t\t\tif(sortThis[j] > sortThis[j+1])\n\t\t\t\t{\n\t\t\t\t\ttemp = sortThis[j];\n\t\t\t\t\tsortThis[j] = sortThis[j+1];\n\t\t\t\t\tsortThis[j+1] = temp;\n\t\t\t\t}//end if \n\t\t\t}//end inner for \n\t\t}//end for\n\t\t\n\t\t//This for loop and print line is for the simple matter to see the test results clearly. \n\t\tSystem.out.println(\"This is the arragned set\");\n\t\t//this loop prints out the array of ints\n\t\tfor(int x = 0;x < sortThis.length; x ++)\n\t\t{\n\t\t\tSystem.out.println(sortThis[x]+\",\");\n\t\t}\n\t}" ]
[ "0.73693264", "0.7250332", "0.7055143", "0.7033051", "0.70113415", "0.7008331", "0.69815826", "0.6930434", "0.68896866", "0.68813", "0.68313223", "0.68035865", "0.6773315", "0.67668176", "0.67439187", "0.6741592", "0.67402005", "0.6739622", "0.67313385", "0.67297554", "0.67053354", "0.67031264", "0.66997397", "0.6696282", "0.6695313", "0.66838056", "0.6679742", "0.66653776", "0.66532385", "0.6649893", "0.66484016", "0.66437995", "0.6633735", "0.66081923", "0.6604259", "0.6600408", "0.659128", "0.6561898", "0.65522534", "0.6549293", "0.65448934", "0.6533864", "0.6527998", "0.6517489", "0.6507771", "0.6502686", "0.64950657", "0.6492185", "0.6489851", "0.64698946", "0.6465815", "0.64575875", "0.64571536", "0.6455223", "0.6454811", "0.64225745", "0.64211017", "0.64200336", "0.64166796", "0.6400101", "0.639888", "0.63894814", "0.63846105", "0.6378958", "0.6369847", "0.6344755", "0.63419425", "0.63346744", "0.63260776", "0.63039386", "0.63034564", "0.629375", "0.6264924", "0.625822", "0.6251403", "0.6247586", "0.62430865", "0.6233131", "0.62311554", "0.6220451", "0.62042594", "0.6203726", "0.619641", "0.6196257", "0.6189008", "0.61871827", "0.6183182", "0.61812836", "0.61674786", "0.6164882", "0.61600375", "0.6159942", "0.6155525", "0.6148843", "0.6145562", "0.61350566", "0.61283386", "0.61269826", "0.6121092", "0.61168075", "0.61120623" ]
0.0
-1
Function : checkPaused() Use : pausing the thread Parameter : nothing Returns : nothing
public void checkPaused() { paused = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkPaused() {\n\t\twhile (paused) {\n\t\t\ttry {\n\t\t\t\tthis.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public boolean isPaused();", "public void checkPause();", "synchronized void pause() {\n\t\tpaused = true;\n\t}", "synchronized boolean isPaused(){\n\t\treturn paused;\n\t}", "void pauseThread();", "public synchronized void pause() {\r\n\r\n\t\tpaused = true;\r\n\t}", "synchronized void userPauseThreads() {\n myGamePause = true;\n pauseThreads();\n }", "public void threadResume()\n {\n synchronized(pauseLock)\n {\n try\n {\n paused = false;\n pauseLock.notifyAll(); //notifying the thread to resume its execution \n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n }\n \n }", "public boolean isPaused()\r\n\t{\r\n\t\treturn currentstate == TIMER_PAUSE;\r\n\t}", "private void waitForCpmToResumeIfPaused() {\n synchronized (lockForPause) {\n // Pause this thread if CPM has been paused\n while (pause) {\n // threadState = 2016; thread state is not kept here, only in the ProcessingUnit\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_pausing_pp__FINEST\",\n new Object[] { Thread.currentThread().getName() });\n }\n\n try {\n // Wait until resumed\n lockForPause.wait();\n } catch (InterruptedException e) {\n }\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_resuming_pp__FINEST\",\n new Object[] { Thread.currentThread().getName() });\n }\n }\n }\n }", "public void pause()\n {\n paused = true;\n }", "public void pause() {\n paused = true;\n }", "public void pause() {\n paused = true;\n }", "public void pause(){\r\n isRunning = false;\r\n while (true){\r\n try{\r\n ourThread.join();\r\n\r\n\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n break;\r\n }\r\n\r\n ourThread = null;\r\n\r\n }", "public void pause() {\r\n fPause = true;\r\n }", "public boolean isPaused() {\n synchronized (lockForPause) {\n return (pause == true);\n }\n }", "boolean isPause();", "public void pause() {\n executor.submit(new Runnable() {\n public void run() {\n resume = false;\n pauseNoWait();\n }\n });\n }", "public boolean isPaused() {\n \t\treturn isPaused;\n \t}", "public void isPaused() { \r\n myGamePaused = !myGamePaused; \r\n repaint(); \r\n }", "public void pause() {\n isPaused = true;\n System.out.println(\"pausing\");\n timeline.stop();\n }", "public boolean isPaused()\n\t{\n\t\treturn isPaused;\n\t}", "public void pause() {\n pause = true;\n }", "public boolean pause();", "public boolean pause();", "public boolean isPaused(){\r\n\t\tif (this.pauseGame(_p)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "public void pause() {\n\t\tsynchronized(this) {\n\t\t\tpaused = true;\n\t\t}\n\t}", "public void pause() {\n running = false;\n try {\n gameThread.join();\n } catch (InterruptedException e) {\n // Error\n }\n }", "public void pauseOrUnpause( ) {\n\t\t// Toggle the paused status:\n\t\tif (verbose) System.out.println(\"pauseOrUnpause called, about to enter synchronized\");\n\t\tsynchronized (this) {\n\t\t\tif (verbose) System.out.println(\"... entered synchronized\");\n\t\t\tswitch( threadStatus) {\n\t\t\tcase PAUSED:\n\t\t\t\tif (verbose) System.out.println(\"paused, going to switch to running - interrupting first\");\n\t\t\t\tthis.interrupt();\n\t\t\t\tif (verbose) System.out.println(\"finished interrupting\");\n\t\t\t\tthreadStatus = RUNNING;\n\t\t\t\tbreak;\n\t\t\tcase RUNNING:\n\t\t\t\tif (verbose) System.out.println(\"running, going to switch to paused\");\n\t\t\t\tthreadStatus = PAUSED;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// Do nothing, we're actually stopping anyway.\n\t\t\t}\n\t\t\treportThreadStatus();\n\t\t\tif (verbose) System.out.println(\"... leaving synchronized\");\n\t\t}\n\t\tif (verbose) System.out.println(\"pauseOrUnpause finished\");\n\t}", "protected abstract boolean pause();", "public void pause()\n\t{\n\t\tplayState = Status.PAUSED;\n\t\tlastUpdate = -1;\n\t\ttmr.stop();\n\t}", "public boolean isPaused() {\r\n return DownloadWatchDog.this.stateMachine.isState(PAUSE_STATE);\r\n }", "public void pause()\n {\n playing = false; // stop the update() method\n\n try {\n\n gameThread.join(); // Waiting for gameThread to finish\n\n } catch (InterruptedException e) {\n\n Log.e(\"error\", \"failed to stop the thread\");\n }\n }", "public void pause() {\n running = false;\n }", "void pauseGame() {\n myShouldPause = true;\n }", "void pauseGame() {\n myShouldPause = true;\n }", "void systemPauseThreads() {\n myHiddenPause = true;\n pauseThreads();\n }", "public void suspend() throws AlreadyPausedException;", "public void pause() {}", "public boolean isPaused() {\n return _isPaused;\n }", "@Override\r\n\tpublic boolean canPause() {\n\t\treturn true;\r\n\t}", "protected void pause(){}", "private void pause() {\n\t\t// TODO\n\t}", "public synchronized boolean isPaused() {\n\t\treturn State.PAUSED.equals(state);\n\t}", "synchronized void resumeGame() {\n myShouldPause = false;\n notify();\n }", "synchronized void resumeGame() {\n myShouldPause = false;\n notify();\n }", "public void pause() {\r\n\t}", "public void paused() {\n System.out.println(\"Paused\");\n }", "private void pause()\n {\n mPaused = true;\n mCurrentTurn.addTurnTime( getElapsedTime() );\n mCountdownTimer.cancel();\n mPauseResumeButton.setText( \"Resume\" ); // TODO resourcify\n }", "public synchronized boolean pause() {\n if (started && !stopped) {\n return pause.tryAcquire();\n }\n return false;\n }", "public boolean doPause() {\n return false;\n }", "public void pause() {\n playing = false;\n try {\n gameThread.join();\n } catch (InterruptedException e) {\n Log.e(\"Error:\", \"joining thread\");\n }\n\n }", "public void resume()\n\t{\n\t\tisPaused = false;\n\t}", "public void pause(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t}", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "public void pause() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void setThreadState()\n {\n synchronized(pauseLock)\n {\n try\n {\n while(suspended)\n {\n pauseLock.wait(); //waiting the thread if the thread in suspended state\n }\n if(paused) \n pauseLock.wait(); //will make thread to block until notify is called\n } \n catch(InterruptedException e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n }\n \n }", "@Override\n\tpublic void onUserPaused(String arg0, boolean arg1, String arg2) {\n\t\t\n\t}", "public void pause();", "public void pause();", "public void pause();", "private void pauseThreads() {\n if (myGameThread != null) {\n myGameThread.pauseGame();\n }\n if (myTumbleweedThread != null) {\n myTumbleweedThread.pauseGame();\n }\n if (myMusicMaker != null) {\n myMusicMaker.pauseGame();\n }\n }", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "public void resume() throws NotYetPausedException;", "public void pause() {\n }", "private void togglePaused() {\n \t\tif (!isPaused) {\n \t\t\ttimeFirstPaused = System.nanoTime();\n \t\t} else {\n \t\t\t// Offset the time spent paused.\n \t\t\ttimeGameStarted += (System.nanoTime() - timeFirstPaused);\n \t\t}\n \t\tisPaused = !isPaused;\n \t}", "public boolean isPaused() {\n\t\tsynchronized(this) {\n\t\t\treturn paused;\n\t\t}\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}" ]
[ "0.81235105", "0.75843203", "0.75701714", "0.7380518", "0.7303571", "0.7301676", "0.7232004", "0.72225845", "0.7222423", "0.7206456", "0.71781325", "0.71748394", "0.7070143", "0.7070143", "0.70282793", "0.70204777", "0.6940402", "0.6886253", "0.6871021", "0.6846894", "0.68352056", "0.6814455", "0.6809683", "0.6809596", "0.68052757", "0.68052757", "0.6800618", "0.67950904", "0.6767088", "0.6761741", "0.6759155", "0.6752098", "0.67418426", "0.6706767", "0.6699406", "0.6696882", "0.6696882", "0.66946894", "0.66902566", "0.66547686", "0.66532016", "0.665158", "0.6634112", "0.65885264", "0.6574082", "0.65659446", "0.65659446", "0.6564696", "0.656035", "0.6559104", "0.65429026", "0.6525355", "0.65172297", "0.6510602", "0.6503208", "0.65006113", "0.6495103", "0.64950037", "0.64849836", "0.64770305", "0.64770305", "0.64770305", "0.647375", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.64686745", "0.6464298", "0.6460829", "0.64553136", "0.64490014", "0.6434071", "0.6434071", "0.6434071", "0.6434071", "0.6434071", "0.6434071" ]
0.81835973
0